On Sun, 27 Feb 2005, Ale[x] Garbino wrote: > I'm done with all the PIC side of code, which I tought would be the hard part > to learn. Until I tried reading the serial port! > > I assumed a simple: > ofstream serial ("/dev/ttyS1", ios::out | ios::app); > if ( !serial.is_open() ) { > cout << "Can't open serial port" << endl; > return 0; > } > serial << "Hello"; use setserial to set the speed and set option low_latency for the used serial port. then use stty clocal cread cs8 raw crtscts on that port, then run your program. C++ io also has buffering and such which you may want to turn off. Most of these settings can be set using ioctls on linux. Peter -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist