Serial Port ,Com1

BZ Benny bennybbz at yahoo.fr
Tue Feb 15 10:31:47 UTC 2005


Hi,
I want to use my serial port with a board.
it works very well with windows I configure the speed
to 115200 bauds, no parity, stop bit , no flow control
etc...

I did the same thing under fedoraC3 with stty
I configure the speed like that
#stty -F /dev/ttyS0 speed 115200 cs8 parenb -cstopb
crtscts
and when I use -a it print: 

speed 115200 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D;
eol = <undef>; eol2 = <undef>; start = ^Q; stop = ^S;
susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min =
1; time = 0;
parenb -parodd cs8 hupcl -cstopb cread clocal crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr
-igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel
nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh
-xcase -tostop -echoprt echoctl echoke


now I want to open and use the specified DEVICE
instead of stdin but how can I do that:

I tried with:
# /dev/ttyS0
bash: /dev/ttyS0: Permission denied

I tried:
#stty -F /dev/ttyS0
speed 115200 baud; line = 0;
-brkint -imaxbel

how can I do that? please.

regards



	

	
		
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/




More information about the fedora-list mailing list