Brian Ford wrote:
On Fri, 16 Feb 2007, David le Comte wrote:

Note that using stty -F /dev/comX where X is the "Comm port number"
still works, ie it can still set the baud rate to 230400 (or even
250000).

Sorry, but note also that if you are going to use Posix style termio
calls, you need to use the Posix device name (/dev/ttySx).

Are you sure Brian? I am running Cygwin on WinXP, and using stty on /dev/ttyX fails,
whereas on /dev/comX  it works (where X is valid of course).

Similarly open("/dev/ttyX",O_RDWR) returns -1, but returns a valid file ID with open("/dev/comX",O_RDWR).

My understanding is, that on a PC, psuedo-device files of the form "/dev/ttyX" do not exist?

At any rate, the code has been working for two months using the /dev/comX naming convention.

regards,

David le Comte
stty -F /dev/$1 $2 
stty -F /dev/$1 intr ^- quit ^- erase ^- kill ^- eof ^- 
stty -F /dev/$1 eol ^- eol2 ^- swtch ^- start ^Q stop ^S susp ^- rprnt ^- 
werase ^- lnext ^- 
stty -F /dev/$1 flush ^- min 0 time 0 -parenb -parodd cs8 -hupcl -cstopb -cread 
clocal -crtscts 
stty -F /dev/$1 -ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr 
-icrnl -ixon -ixoff 
stty -F /dev/$1 -iuclc -ixany -imaxbel -opost -olcuc -ocrnl -onlcr -onocr 
-onlret -ofill -ofdel
stty -F /dev/$1 nl0 cr0 tab0 bs0 vt0 ff0 -isig -icanon -iexten -echo -echoe 
-echok -echonl 
stty -F /dev/$1 -noflsh -tostop -echoctl -echoke

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to