delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/07/11:42:08

X-Spam-Check-By: sourceware.org
From: "R. Steve McKown" <rsmckown AT yahoo DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Trouble with DLL and file (com port) IO
Date: Thu, 7 Dec 2006 09:40:14 -0700
User-Agent: KMail/1.8.2
Cc: Matthew Woehlke <mw_triad AT users DOT sourceforge DOT net>
References: <200612061001 DOT 08554 DOT rsmckown AT yahoo DOT com> <003e01c71983$c7522c90$a501a8c0 AT CAM DOT ARTIMI DOT COM> <el7jl7$14p$1 AT sea DOT gmane DOT org>
In-Reply-To: <el7jl7$14p$1@sea.gmane.org>
MIME-Version: 1.0
Message-Id: <200612070940.14556.rsmckown@yahoo.com>
X-Virus-Status: Clean
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

On Wednesday 06 December 2006 04:27 pm, Matthew Woehlke wrote:
> Dave Korn wrote:
> >   BTW, mixing MSVC-based code with cygwin-based is inherently unreliable
> > and liable to fail unpredictably.  I guess the vendor isn't likely to
> > want to share their dll source with you so you could recompile it with
> > gcc, but it might not be /too/ complicated to just take a look at the USB
> > transactions that get sent across the bus when you try to manipulate the
> > gpios using their dll, then throw together your own custom library to
> > send the same transactions using libusb or similar.
> >
> >> This works in Linux already (we extended the
> >> linux driver to emulate the gpio capbilities of the vendor DLL).
>
> ...especially since he seemed to imply that he already has his own
> working source for Linux. It should (FLW) be fairly easy to port this to
> Cygwin (seeing as how Cygwin's purpose is to emulate Linux, and make
> porting Linux code easy).

To use libusb, a native driver can't have allocated the device, right?  The 
windows driver is currently providing a USB/serial interface so the device 
can be opened by its tty/com port.  This functionality is required.

In Linux, this was easy; extend the part's kernel driver to provide ioctl()s 
that implement the additional USB transactions to support gpio.  There's no 
such analog in the vendor's windows driver; instead they provide this 
"add-on" DLL.

Any feedback is appreciated.  I'm possibly missing some simpler alternative.

Thanks,
Steve

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