delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/16/08:16:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.0.14.0.20041216080323.04fc6298@pop.prospeed.net>
Date: Thu, 16 Dec 2004 08:11:16 -0500
To: BMetzenthen AT cochlear DOT com DOT au, cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: Python, USB and cygwin
In-Reply-To: <OF585A88F3.3EB3A624-ONCA256F6C.0015C9B5-CA256F6C.0019CC34@ cochlear.com.au>
References: <OF585A88F3 DOT 3EB3A624-ONCA256F6C DOT 0015C9B5-CA256F6C DOT 0019CC34 AT cochlear DOT com DOT au>
Mime-Version: 1.0

At 11:41 PM 12/15/2004, you wrote:





>I have a couple of USB devices which are based upon FTDI chips.  I am using
>the FTDI virtual serial port drivers.
>
>The devices appear to work properly except when attempting to communicate
>with them via cygwin python.  Scripts which work o.k. with Windows python
>will not work properly with cygwin python.  The point of failure depends
>upon the Windows version.
>
>Under Windows 98, the scripts fail to complete the opening of the virtual
>serial port,.  The failure occurs in tcgetattr and an error '22, Invalid
>argument' is returned.  I haven't followed this further into the bowels of
>python to work out what this means but tcgetattr() in cygwin 'C' does not
>fail.
>
>Under Windows 2000, the same python scripts go further but fail further
>down the track, early during the attempted transfer of data.
>
>The same python scripts have worked well in the past under cygwin when I
>use a real serial port.
>
>Are there known problems with cygwin python and USB virtual serial ports?
>If so, are there any solutions or work-arounds?


There's nothing about your configuration that looks troublesome that I 
can see.  If things work well with real serial ports and Cygwin but not
with virtual serial ports, the problem may actually be with the virtual
serial port drivers.  But there's no way to really tell without 
investigating further.  If there are others on this list using the 
chips you are with the same problems with those virtual serial port drivers,
then they may have more information or be willing to track down this 
problem for you.  If not, you may be "stuck" trying to figure out
what's wrong on your own, more or less.  Since the problem isn't obvious
without the virtual serial port drivers, only those with them could track
this further. :-(



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019