Mail Archives: cygwin/2007/02/15/21:54:34
--------------010007080709060109030200
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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
--------------010007080709060109030200
Content-Type: text/plain;
name="setup_stty.sh"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="setup_stty.sh"
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
--------------010007080709060109030200
Content-Type: text/plain; charset=us-ascii
--
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/
--------------010007080709060109030200--
- Raw text -