X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <7c5010d60805290947j65fe00ebn37080b495a73a333@mail.gmail.com> Date: Thu, 29 May 2008 18:47:55 +0200 From: "Giovanni Maruzzelli" To: cygwin AT cygwin DOT com Subject: Re: serial ports not visible with 1.7 under Vista In-Reply-To: <008701c8c1a7$251d8550$2708a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7c5010d60805290558o3717c302u959dd34f396cdb81 AT mail DOT gmail DOT com> <005a01c8c196$587b9b50$2708a8c0 AT CAM DOT ARTIMI DOT COM> <7c5010d60805290726s4faa42e2l4dc276e0118b8808 AT mail DOT gmail DOT com> <007901c8c19c$cd9bd520$2708a8c0 AT CAM DOT ARTIMI DOT COM> <7c5010d60805290811i38d4464y7da05d2d62f2061 AT mail DOT gmail DOT com> <008001c8c19f$ad1bcbe0$2708a8c0 AT CAM DOT ARTIMI DOT COM> <7c5010d60805290840s300f607ep999ff62720fedadb AT mail DOT gmail DOT com> <008701c8c1a7$251d8550$2708a8c0 AT CAM DOT ARTIMI DOT COM> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com \\\\.\\com6 gives me "Device or resource busy", while all other com* give me "not existing". So, it is definitely better. But do not yet works. Opening and read/writing to it with native win32 API works (readfile etc) following is the relevant strace: 67 36177 [main] ciapa 756 open: open (\\.\com6, 0x4002)^M 54 36231 [main] ciapa 756 normalize_posix_path: src \\.\com6^M 45 36276 [main] ciapa 756 normalize_win32_path: \\.\com6 = normalize_win32_path (\\.\com6)^M 44 36320 [main] ciapa 756 mount_info::conv_to_win32_path: conv_to_win32_path (//./com6)^M 43 36363 [main] ciapa 756 mount_info::conv_to_win32_path: src_path //./com6, dst \\.\com6, flags 0x0, rc 0^M 2742 39105 [main] ciapa 756 symlink_info::check: 0xC0000010 = NtQueryInformationFile (\??\com6)^M 140 39245 [main] ciapa 756 symlink_info::check: 0xC0000033 = NtOpenFile(\??\)^M 109 39354 [main] ciapa 756 symlink_info::check: not a symlink^M 41 39395 [main] ciapa 756 symlink_info::check: 0 = symlink.check (\\.\com6, 0x223990) (0x0)^M 41 39436 [main] ciapa 756 path_conv::check: this->path(\\.\com6), has_acls(0)^M 72 39508 [main] ciapa 756 build_fh_pc: fh 0x6125271C^M 49 39557 [main] ciapa 756 fhandler_base::open: (\??\com6, 0x104002)^M 123 39680 [main] ciapa 756 seterrno_from_win_error: /netrel/src/cygwin-1.7.0-16/winsup/cygwin/fhandler.cc:631 windows error 32^M 45 39725 [main] ciapa 756 geterrno_from_win_error: windows error 32 == errno 16^M 42 39767 [main] ciapa 756 __set_errno: void seterrno_from_win_error(const char*, int, DWORD):313 val 16^M 43 39810 [main] ciapa 756 fhandler_base::open: C0000043 = NtCreateFile (0x0, C0100000, \??\com6, io, NULL, 0, 7, 1, 4420, NULL, 0)^M 108 39918 [main] ciapa 756 fhandler_base::open: 0 = fhandler_base::open (\??\com6, 0x104002)^M 104 40022 [main] ciapa 756 fhandler_base::open_fs: 0 = fhandler_disk_file::open (\??\com6, 0x4002)^M 108 40130 [main] ciapa 756 open: -1 = open (\\.\com6, 0x4002)^M On Thu, May 29, 2008 at 6:15 PM, Dave Korn wrote: > Giovanni Maruzzelli wrote on 29 May 2008 16:41: > >> Thanks a lot Dave! >> >> Seems that it is looking for a \Device\Serial5 > > Ouch. That's a problem. Not all serial devices use the same name format. > > Although it's not strictly supported, you might be able to work around it > by using "\\\\.\\com6" instead. > > > 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/