This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem open(...) serial port /dev/com20 and tcgetattr(...)


Dear Corinna,

Thanks for your quick follow-up!

I tried the more POSIXy /dev/ttySxx, and they work until /dev/ttyS16.
This, and the next ones (I tested up to ttyS20) fail with a "No such
file or directory" error.

One note: I am using VSPD5 from eltima software to create virtual serial
ports under windows XP. However, all my other windows applications seem
to be perfectly able to taok to these virtuals serial ports.

Stan.

Corinna Vinschen a écrit :
> On Jan 17 10:48, Stan Pinte wrote:
>   
>> Hello,
>>
>> accessing serial port under cygwin, with ids above 10 is broken:
>>
>> Using "/dev/com20" results in a "No such file or directory" error.
>>     
>
> Try the more POSIXy "/dev/ttyS19" instead.  /dev/ttyS0 == /dev/com1
> This is supposed to be supported up to /dev/ttyS63.
>
>   
>> The following post:
>> http://www.cygwin.com/ml/cygwin/1999-12/msg00323.html says I should use
>>
>> "\\\\.\\com20" instead of "/dev/com20". If I do that, the call to open(...) succeed, 
>> but the call to tcgetattr raises a "Inappropriate ioctl for device" error.
>>     
>
> This posting is 7(!) years old.  Things have changed in the meantime.
> Don't use the Windows notation "\\.\comXX".  It's not supported.
>
>
> Corinna
>
>   


Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]