pref home next
day1: test RS232

First the basics, always start with a small thing;

sending to RS232

I tested if I could write i tiny program that sends signals to the RS232 port.
here is the schematic:

now it was time to turn the led on with a linux program. after searching on the internet and some testing, it finally worked,
  • click here to view the source
  • click here to get the rs232 serial-programming-HOWTO
  • http://www.cm.cf.ac.uk/Dave/C/ a good c reference site with many examples
  • click here for another good c reference

    receiving from RS232

    now sending worked, it was time to use it to receive data. I added a switch to the LED, and tried to let the program recieve the data.
    Finding the right example on the internet that work with my test, took me an hour or so.

  • click here to view the source
    As you can see it is first needed to set that led on, so the right voltage is available.