Graeme Gill | 1 Jun 2008 03:49

Re: Win Vista 32/64 Build.

Ribamar Santarosa de Sousa wrote:

>>Thanks again. Just one more thing came up to me now: Just the 64bit
>>version doesn't allow me to load an unsigned module, and the 32bit
>>version does allow, or is the 32bit version already signed and the
>>64bit isn't?
> 
> Does anyone know?

None of the libusb-win32 stuff is signed.

Vista 32 bit doesn't require signed drivers, whereas
Vista 64 does (unless you boot it in a special mode).
I don't believe the .inf files have to be signed.

Vista will always throw up warning for things that are unsigned.

Graeme Gill.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Xiaofan Chen | 1 Jun 2008 03:58
Picon

Re: Win Vista 32/64 Build.

On Sun, Jun 1, 2008 at 4:11 AM,  <Alexander.Kuchler <at> pruftechnik.com> wrote:
> We have done a company specific driver certification which costs some money
> and a couple of tests.
> Now it's working for our devices on WinXP and Vista as well (32 and 64 bit)!
> Vista 64 is the same driver as XP 64.

So your company has successfully got WHQL certified with libusb-win32
based driver, right?  If yes, that is nice to hear about.

Presumably you are using the device driver and not the filter driver. Did you
do any modification to the libusb-win32 device driver?

Xiaofan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Alexander.Kuchler | 1 Jun 2008 17:05

Re: Win Vista 32/64 Build.




"Xiaofan Chen" <xiaofanc <at> gmail.com>
Sent by: libusb-win32-devel-bounces <at> lists.sourceforge.net

01.06.2008 03:58

Please respond to
libusb-win32-devel <at> lists.sourceforge.net

To
libusb-win32-devel <at> lists.sourceforge.net
cc
Subject
Re: [Libusb-win32-devel] Win Vista 32/64 Build.





On Sun, Jun 1, 2008 at 4:11 AM,  <Alexander.Kuchler <at> pruftechnik.com> wrote:
> We have done a company specific driver certification which costs some money
> and a couple of tests.
> Now it's working for our devices on WinXP and Vista as well (32 and 64 bit)!
> Vista 64 is the same driver as XP 64.

So your company has successfully got WHQL certified with libusb-win32
based driver, right?  If yes, that is nice to hear about.

Presumably you are using the device driver and not the filter driver. Did you
do any modification to the libusb-win32 device driver?

We haven't done any functional changes. The only thing is, that Microsoft wanted us to have a version number >= 1.
This was the reason why we renamed the driver and gave it a new 'ClassGUID' to avoid version conflicts to libusb-win32.

BTW: the inf-file is essential part of the certification and have to be reformated to the conventions of Microsoft.
The file created from the assistant wasn't accepted by the winqual test on first attempt.

Information and changes available from: http://www.pruftechnik.com/usbgpl/copying.txt
(we are preparing the download in the moment; will be available in a few days)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Mark Baas | 1 Jun 2008 21:04
Picon

gphoto2-cygwin

Hi,
I have installed libusb-win32 on cygwin. Gphoto compiles fine on cygwin (cannot get it to work on mingw though). After installing the filter, gphoto can detect the camera, but when try to download any photos it says it cannot claim usb device. I thought this is probably libusb-win32 related. Is it necessary to install the device driver? The test program already detects the camera. Is there anything i can do to make gphoto claim the usb device. Could it be windows related, the picture import wizard automatically starts however i close it.
Greetings,
Mark
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Stephan Meyer | 2 Jun 2008 08:35

Re: usb_set_configuration hangs with PL-2302 driver

I won't use libusb for this project. The pl-2302 can be accessed
as a normal networking device on all major operating systems.
Writing a crossplatform Java application should therefore be pretty
easy.

On 5/30/08, Shahbaz Khalid <shahbaz_khalid <at> hotmail.com> wrote:
> Hello,
>
> I have a few questions about how (best) to use the libusb-win32 library.
>
> 1. We have a requirement to develop a cross platform application that can
> talk to the same  hardware USB device (it's a custom gps device that gives
> you golf course positions etc). There is an older application developed by a
> previous developer that our client hired,  which is based on windows/visual
> C++ code and works directly with the existing hardware driver (see below).
> Although we are developing the the code in java (using Java Libusb), we
> wanted to see if libusbwin32 worked with the device or not, because on the
> windows platform Javalibusb depends on libusbwin32.
>
> 2. The device currently works with a Prolific PL-2302 windows driver (you
> have to install/setup the driver).
>
> 3. We have been told to work with the PL-2302 driver, and the client called
> the libusb device driver 'dubious' and that the current driver is best
> suited for the device (they don't like the libusb driver). So I think we are
> stuck with the filter driver for the time being.
>
> 4. With the filter driver, I think we have two problems. A) It does not work
> with Vista, and B) We are getting a very annoying problem when calling the
> usb_set_configuration() function. The test application just hangs and never
> returns. I am pretty sure we are using the correct configuration, VID  etc.
> I am at my wits end on how to resolve this issue.
>
> Would appreciate any help.
>
> Thanks!
>
> ________________________________
> E-mail for the greater good. Join the i'm Initiative from Microsoft.
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Libusb-win32-devel mailing list
> Libusb-win32-devel <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Shahbaz Khalid | 2 Jun 2008 21:11
Picon
Favicon

Re: usb_set_configuration hangs withPL-2302 driver

OK thank you - we are using RXTX Java library to do plain com port communications now.

> From: libusb-win32-devel-request <at> lists.sourceforge.net
> Subject: Libusb-win32-devel Digest, Vol 25, Issue 3
> To: libusb-win32-devel <at> lists.sourceforge.net
> Date: Mon, 2 Jun 2008 12:04:26 -0700
>
> Send Libusb-win32-devel mailing list submissions to
> libusb-win32-devel <at> lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
> or, via email, send a message with subject or body 'help' to
> libusb-win32-devel-request <at> lists.sourceforge.net
>
> You can reach the person managing the list at
> libusb-win32-devel-owner <at> lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Libusb-win32-devel digest..."
>
>
> Today's Topics:
>
> 1. Re: usb_set_configuration hangs with PL-2302 driver
> (Stephan Meyer)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 2 Jun 2008 08:35:30 +0200
> From: "Stephan Meyer" <ste.meyer1 <at> googlemail.com>
> Subject: Re: [Libusb-win32-devel] usb_set_configuration hangs with
> PL-2302 driver
> To: libusb-win32-devel <at> lists.sourceforge.net
> Message-ID:
> <2cdf8ff60806012335u7df22aeauf4072af4e3cb4789 <at> mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I won't use libusb for this project. The pl-2302 can be accessed
> as a normal networking device on all major operating systems.
> Writing a crossplatform Java application should therefore be pretty
> easy.
>
>
> On 5/30/08, Shahbaz Khalid <shahbaz_khalid <at> hotmail.com> wrote:
> > Hello,
> >
> > I have a few questions about how (best) to use the libusb-win32 library.
> >
> > 1. We have a requirement to develop a cross platform application that can
> > talk to the same hardware USB device (it's a custom gps device that gives
> > you golf course positions etc). There is an older application developed by a
> > previous developer that our client hired, which is based on windows/visual
> > C++ code and works directly with the existing hardware driver (see below).
> > Although we are developing the the code in java (using Java Libusb), we
> > wanted to see if libusbwin32 worked with the device or not, because on the
> > windows platform Javalibusb depends on libusbwin32.
> >
> > 2. The device currently works with a Prolific PL-2302 windows driver (you
> > have to install/setup the driver).
> >
> > 3. We have been told to work with the PL-2302 driver, and the client called
> > the libusb device driver 'dubious' and that the current driver is best
> > suited for the device (they don't like the libusb driver). So I think we are
> > stuck with the filter driver for the time being.
> >
> > 4. With the filter driver, I think we have two problems. A) It does not work
> > with Vista, and B) We are getting a very annoying problem when calling the
> > usb_set_configuration() function. The test application just hangs and never
> > returns. I am pretty sure we are using the correct configuration, VID etc.
> > I am at my wits end on how to resolve this issue.
> >
> > Would appreciate any help.
> >
> > Thanks!
> >
> > ________________________________
> > E-mail for the greater good. Join the i'm Initiative from Microsoft.
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Libusb-win32-devel mailing list
> > Libusb-win32-devel <at> lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
> >
> >
>
>
>
> ------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
> ------------------------------
>
> _______________________________________________
> Libusb-win32-devel mailing list
> Libusb-win32-devel <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>
>
> End of Libusb-win32-devel Digest, Vol 25, Issue 3
> *************************************************

Give to a good cause with every e-mail. Join the i’m Initiative from Microsoft.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Mark.Ziegler | 4 Jun 2008 11:52
Picon
Favicon

Access with 2 processes the same usb_device

Hi there,

I've got the requirement to access from two or more .exes (processes)
the same usb_device. They do both bulk transfers from an to the same EP.
To avoid data corruption between the requests/responses to the device, I
protect the processes with a mutex.
The problem is, that I can't open the device two times. Opening the usb
device the processes are doing the following sequence:

pDev->hLibUsb = usb_open(dev);
if (!pDev->hLibUsb)
{
   return false;
}

if(usb_set_configuration(pDev->hLibUsb, 1) < 0)
{
   usb_close(pDev->hLibUsb);
    pDev->hLibUsb = (usb_dev_handle*)0;
    return false;
}

if(usb_claim_interface(pDev->hLibUsb, 0) < 0)
{
/*   usb_close(pDev->hLibUsb);
    pDev->hLibUsb = (usb_dev_handle*)0;
   return false;*/
  return true;
}
return true;

The second process get always an error calling usb_claim_interface and
the subsequent usb_bulk_write/read calls are failing too.

My question is: Is there an easy way to communicate from two or more
processes with bulk transfer without open/close the usb_device every
transfer (would be to slow).

Thank you

  Mark

SEW-EURODRIVE GmbH & Co KG
Kommanditgesellschaft, Sitz: Bruchsal, RG Mannheim HRA 230970
Komplementarin: SEW-EURODRIVE Verwaltungs-GmbH, Sitz: Bruchsal, RG Mannheim HRB 230207

Gesellschafter und Geschaftsfuhrer: Rainer Blickle, Jurgen Blickle
Geschaftsfuhrer: Johann Soder, Hans Sondermann, Bernd P. Uckrow

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Spiro Trikaliotis | 4 Jun 2008 14:37

Re: Access with 2 processes the same usb_device

Hello Mark,

* On Wed, Jun 04, 2008 at 11:52:04AM +0200 Mark.Ziegler <at> sew-eurodrive.de wrote:

> The second process get always an error calling usb_claim_interface and
> the subsequent usb_bulk_write/read calls are failing too.

This is exactly what I would expect. Note that the USB functions are not
stateless. Thus, we would get some problem with the state of two
different processes access the device at the same time.

> My question is: Is there an easy way to communicate from two or more
> processes with bulk transfer without open/close the usb_device every
> transfer (would be to slow).

My suggestion: You could create a third process, which actually handles
the USB communication. That is, it is the only process which opens and
access the device.

Your two other processes would then communicate with that 3rd process,
only. That 3rd process is like a user mode driver for the device.

Regards,
Spiro.

--

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Johan Björk | 5 Jun 2008 19:19
Picon
Gravatar

libusb0 not loaded, but device recognized?

Hi everyone,

I have a composite usb device I'm trying to match and use with libusb-win32 driver. (not filter, if I use with filter, it works as expected)
I've created an inf file using the wizard, and modified the Device sections to add the &MI_XX. When I plug in the device, it gets recognized and in device manager I'm able to see the name I provided for the device. However, it seems the driver is never loaded (Looking at System Information -> System Drivers, it's stated it's not loaded). Also, no entries show up in \\.\\libusb-*

I saw a few posts on the mailinglist with similar problems, but no solution. Anyone have any idea how to debug this further?

Thanks
/Johan

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
David Novak | 5 Jun 2008 23:23
Favicon

Automated driver install

I'm having a couple issues automating the driver install using Inno Setup.

1.) My Inno Setup script has:

Filename: rundll32; Parameters: libusb0.dll,usb_install_driver_np_rundll
{app}\driver\eio.inf; StatusMsg: Installing driver (this may take a few
seconds) ...

The driver install seems to fail if there are spaces in the {app} path. With
the spaces, the device manager does not not recognize my device and shows a
"?!" for it. The New Device wizard is never shown. Without spaces in {app},
Windows shows the New Device Install Wizard when I plug in the device.

How do I make this work with spaces in {app}?

If the driver is installed correctly by the setup script, what is the
expected behavior when the device is plugged into the USB port? Is it
expected that Windows will show the New Device Install Wizard when my device
is plugged in?

2.) What is a good way to test the install? Since the driver cannot be
uninstalled, I get one chance to get it right before having to reinstall
Windows. There must be a better way to test this.

Thanks,
David

=============================
David Novak
Dajac Inc.
17152 Shadoan Way
Westfield, IN  46074

Email: novakd <at> dajac.com
Phone: 317-258-0223
Fax: 317-867-1888

www.dajac.com

Hardware/Software Consulting
Headlamp Alignment Equipment
============================= 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

Gmane