serial ports not visible with 1.7 under Vista

Giovanni Maruzzelli gmaruzz.lists@gmail.com
Thu May 29 16:15:00 GMT 2008


Thanks a lot Dave!

Seems that it is looking for a \Device\Serial5

This is the relevant part from strace on Vista:


   39   36235 [main] ciapa 3780 open: open (/dev/ttyS5, 0xC002)^M
   47   36282 [main] ciapa 3780 normalize_posix_path: src /dev/ttyS5^M
   38   36320 [main] ciapa 3780 normalize_posix_path: /dev/ttyS5 =
normalize_posix_path (/dev/ttyS5)^M
   42   36362 [main] ciapa 3780 mount_info::conv_to_win32_path:
conv_to_win32_path (/dev/ttyS5)^M
   43   36405 [main] ciapa 3780 mount_info::conv_to_win32_path:
src_path /dev/ttyS5, dst \Device\Serial5, flags 0x2, rc 0^M
   70   36475 [main] ciapa 3780 build_fh_pc: fh 0x6125271C^M
   39   36514 [main] ciapa 3780 fhandler_serial::open:
fhandler_serial::open (/dev/ttyS5, 0xC002, 0x9)^M
   49   36563 [main] ciapa 3780 fhandler_base::open: (\Device\Serial5, 0xC002)^M
  105   36668 [main] ciapa 3780 seterrno_from_win_error:
/netrel/src/cygwin-1.7.0-16/winsup/cygwin/fhandler.cc:631 windows
error 2^M
   42   36710 [main] ciapa 3780 geterrno_from_win_error: windows error
2 == errno 2^M
   38   36748 [main] ciapa 3780 __set_errno: void
seterrno_from_win_error(const char*, int, DWORD):313 val 2^M
   38   36786 [main] ciapa 3780 fhandler_base::open: C0000034 =
NtCreateFile (0x60FF0000, C0000000, \Device\Serial5, io, NULL, 0, 7,
1, 4400, NULL, 0)^M
   98   36884 [main] ciapa 3780 fhandler_base::open: 0 =
fhandler_base::open (\Device\Serial5, 0xC002)^M
  101   36985 [main] ciapa 3780 open: -1 = open (/dev/ttyS5, 0xC002)^M
  163   37148 [main] ciapa 3780 cygpsid::debug_print: get_sids_info:
owner SID = S-1-5-21-1379031178-664686864-1231587414-1001^M
   43   37191 [main] ciapa 3780 cygpsid::debug_print: get_sids_info:
group SID = S-1-5-21-1379031178-664686864-1231587414-513^M
   42   37233 [main] ciapa 3780 get_info_from_sd: ACL 1A4, uid 1001, gid 513^M
   73   37306 [main] ciapa 3780 fhandler_base::fstat_helper: 0 = fstat
(, 0x22C3F0) st_atime=483ECD0F st_size=26173, st_mode=0x81A4,
st_ino=4503599627584995, sizeof=96^M
   41   37347 [main] ciapa 3780 fstat64: 0 = fstat (1, 0x22C3F0)^M
  286   37633 [main] ciapa 3780 close: close (0)^M
   65   37698 [main] ciapa 3780 init_cygheap::manage_console_count:
fhandler_tty_slave::close: console_count 2, amount -1, ctty /dev/tty1,
avoid_freeing_console 0^M
   39   37737 [main] ciapa 3780 fhandler_tty_slave::close: /dev/tty1
closed, usecount 2^M
   38   37775 [main] ciapa 3780 fhandler_tty_slave::close: just
returning because archetype usecount is != 0^M
   39   37814 [main] ciapa 3780 close: 0 = close (0)^M
  272   38086 [main] ciapa 3780 fhandler_base::write: binary write^M
Unable to open /dev/ttyS5: No such file or directory


On Thu, May 29, 2008 at 5:21 PM, Dave Korn <dave.korn@artimi.com> wrote:
> Giovanni Maruzzelli wrote on 29 May 2008 16:12:
>
>> Errno reports just "no such file or directory".
>> Same if you try something like "echo ATH > /dev/ttyS5"
>>
>> Probably some 1.7 initialization is not done in the same way as in 1.5.25.
>>
>> It is a sad situation for me:
>> with 1.5.25 waveinopen crashes (but it works in 1.7)
>> with 1.7 serial ports are missing (but present in 1.5.25)
>>
>> Any help very appreciated
>
>  Until one of the main developers can attend to it and then upload an
> updated snapshot, you might be able to get some useful information for them
> by running your test under 'strace'; you'll be able to see the translation
> from unix to dos path, and see what gets passed to the actual underlying O/S
> CreateFile call.  By comparing it between 1.5 and 1.7, you might narrow down
> the cause pretty well.
>
>
>    cheers,
>      DaveK
> --
> Can't think of a witty .sigline today....
>
>
> --
> 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/
>
>

--
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/



More information about the Cygwin mailing list