[LCP]Serial prog. (again)

ianezz at sodalia.it ianezz at sodalia.it
Fri Jul 5 23:57:05 UTC 2002


Pare che devraj  sanyal, in un momento di ispirazione, abbia scritto:
 > change /dev/ttyS0 to /dev/tty

Uh? /dev/tty represents the current console... 

Probably you just missed to properly setup the serial port parameters
(speed, data bits, stop bits, input processing type, etc.).

Have a look at the section 3 of the Serial-programming-HOWTO for examples.
http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/x115.html#AEN129

If you want to control some serial device, you probably want to use
non-canonical input processing (i.e. data flowing through the port is
not furtherly interpreted).

-- 
 |   \    \  | ___|_  |_  | ianezz AT sodalia.it
 |  _ \  | \ | _|    /   /  Visita il LinuxTrent a
_|_/  _\_|  _|____|___|___| http://www.linuxtrent.it




More information about the linuxCprogramming mailing list