[pyusb-users] HELP

2022-06-06 Thread George Kang | Ecotx
Hi! I am getting this error: 2022-06-06 10:54:33,681 ERROR:usb.libloader:Libusb 1 (C:\WINDOWS\system32\libusb-1.0.dll) could not be loaded Traceback (most recent call last): File "C:\Users\ecotx\Envs\E-watt\lib\site-packages\usb\libloader.py", line 116, in load_library return lib_cls(lib)

Re: [pyusb-users] help on win7: Entity not found

2021-04-27 Thread Jonas Malaco via pyusb-users
On Tue, Apr 27, 2021 at 08:18:09AM +, CM-Wu Ben - 吳文鐘 wrote: > Hi, > I got a problem when dealing with control transfer on win7. > > After set backend(libusb1), find usb device, I can send standard/class USB > request via dev.ctrl_transfer() successfully, but failed when sending vendor > re

[pyusb-users] help on win7: Entity not found

2021-04-27 Thread CM-Wu Ben - 吳文鐘
Hi, I got a problem when dealing with control transfer on win7. After set backend(libusb1), find usb device, I can send standard/class USB request via dev.ctrl_transfer() successfully, but failed when sending vendor request. the reason is 'Entity not found' Is there any restrictions when sendin

Re: [pyusb-users] Help with ERROR please [usb.core.USBError: [Errno None] b'libusb0-dll:err [_usb_reap_async]

2017-03-08 Thread Xiaofan Chen
On Wed, Mar 8, 2017 at 9:22 PM, Greg Horler wrote: > Xiaofan, > > I have removed all devices filters using the libusb-win32.exe tool and I > have not had a crashyet. > > What is/was the purpose of the filter? A lay-man's answer would be good > please. For Windows driver it is rather complicat

Re: [pyusb-users] Help with ERROR please [usb.core.USBError: [Errno None] b'libusb0-dll:err [_usb_reap_async]

2017-03-08 Thread Greg Horler
March 2017 13:03 To: pyusb-users@lists.sourceforge.net Subject: Re: [pyusb-users] Help with ERROR please [usb.core.USBError: [Errno None] b'libusb0-dll:err [_usb_reap_async] On Tue, Mar 7, 2017 at 9:31 PM, Greg Horler wrote: >> pyusb/libusb may not be the best thing to use for USB HID

Re: [pyusb-users] Help with ERROR please [usb.core.USBError: [Errno None] b'libusb0-dll:err [_usb_reap_async]

2017-03-08 Thread Xiaofan Chen
On Tue, Mar 7, 2017 at 9:31 PM, Greg Horler wrote: >> pyusb/libusb may not be the best thing to use for USB HID device. > > Why not? The system seems to work other than the erratic > time out? Do you have no suggestions as how to fix this problem... > I would have thought it has been seen before?

Re: [pyusb-users] Help with ERROR please [usb.core.USBError: [Errno None] b'libusb0-dll:err [_usb_reap_async]

2017-03-07 Thread Greg Horler
Xiaofan, morning, thanks for the reply. Answers inline. -Original Message- From: Xiaofan Chen [mailto:xiaof...@gmail.com] Sent: 07 March 2017 13:08 To: pyusb-users@lists.sourceforge.net Subject: Re: [pyusb-users] Help with ERROR please [usb.core.USBError: [Errno None] b'libusb0-dl

Re: [pyusb-users] Help with ERROR please [usb.core.USBError: [Errno None] b'libusb0-dll:err [_usb_reap_async]

2017-03-07 Thread Xiaofan Chen
On Tue, Mar 7, 2017 at 5:33 AM, Greg Horler wrote: > I have had partial success in interfacing an 8-bit microcontroller with a PC > running windows 10,Python and PyUsb. > > I am a firmware specialist, i.e. not particularly proficient in Python, I am > new to PyUSB. > > The problem is that my pytho

[pyusb-users] Help with ERROR please [usb.core.USBError: [Errno None] b'libusb0-dll:err [_usb_reap_async]

2017-03-06 Thread Greg Horler
Dear ladies and gents, evening. I have had partial success in interfacing an 8-bit microcontroller with a PC running windows 10,Python and PyUsb. I am a firmware specialist, i.e. not particularly proficient in Python, I am new to PyUSB. The problem is that my python program fails period

Re: [pyusb-users] Help with writing a driver for USB HID device.

2014-12-29 Thread Wander Lairson Costa
2014-11-13 12:14 GMT-02:00 Anatoly Verkhovsky : > Hi, > Hi, sorry for the delay, but I was out most of the month. > I'm writing a driver for a device. It was originally using MDB ICP, but now > it ships with a USB to MDB bridge, why they have chosen to do it as HID > rather then USB Serial i hav

[pyusb-users] Help with writing a driver for USB HID device.

2014-11-13 Thread Anatoly Verkhovsky
Hi, I'm writing a driver for a device. It was originally using MDB ICP, but now it ships with a USB to MDB bridge, why they have chosen to do it as HID rather then USB Serial i have no idea. So behind the usb there is a simple serial protocol. Here is what lsusb gives: Bus 001 Device 027: ID 1

Re: [pyusb-users] Help to access on my OCR device

2013-12-27 Thread Wander Lairson Costa
2013/12/26 Christian Bianchini : > Right, I am trying to reverse engineer the sys file, I think is something > very simple to active the device via PyUSB but if someone can give me a > quick lesson what are these Interrupt and Isochronous used for. > From a point of view electronic I will create

Re: [pyusb-users] Help to access on my OCR device

2013-12-26 Thread Karl P
Honestly, you'll probably get _lot_ further, a lot faster, using usb sniffing. You just start recording, and then do small clear operations repeatedly using the existing tools, and look for what is transferreed when. Running windows in a virtualbox and using wireshark on linux is what I have

Re: [pyusb-users] Help to access on my OCR device

2013-12-26 Thread Christian Bianchini
Right, I am trying to reverse engineer the sys file, I think is something very simple to active the device via PyUSB but if someone can give me a quick lesson what are these Interrupt and Isochronous used for. >From a point of view electronic I will create an interrupt to trigger the device, but

Re: [pyusb-users] Help to access on my OCR device

2013-12-26 Thread Wander Lairson Costa
2013/12/26 Christian Bianchini : > Ok I managed to read > > array('B', [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, > 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, > 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) > > Thats is great, could you

Re: [pyusb-users] Help to access on my OCR device

2013-12-26 Thread Christian Bianchini
Ok I managed to read array('B', [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) Thats is great, could you explain me what the 3 EndPoint are doing? Th

Re: [pyusb-users] Help to access on my OCR device

2013-12-26 Thread Wander Lairson Costa
2013/12/26 Christian Bianchini : > Hello, > I am trying to access on my OCR device that reads from invoice the number > and fill the input text box in the webpage. > I have the DLL for Windows and the file for Mac osx but I can't really turn > on the device. > > This is the lsusb: > > $ lsusb -vv

[pyusb-users] Help to access on my OCR device

2013-12-26 Thread Christian Bianchini
Hello, I am trying to access on my OCR device that reads from invoice the number and fill the input text box in the webpage. I have the DLL for Windows and the file for Mac osx but I can't really turn on the device. This is the lsusb: $ lsusb -vv -d0852:0005 Bus 001 Device 010: ID 0852:0005 CSE

Re: [pyusb-users] [Help] Read and Write Data USB with PyUSB

2011-10-18 Thread Andhika Pratama
Hi all, I've got to manage *reading *the value from my device, here's example of my code: import usb.core import usb.util import sys # find our device dev = usb.core.find(idVendor=0x1D34, idProduct=0x0020) # was it found? if dev is None: raise ValueError('Device not found') # configuratio

Re: [pyusb-users] [Help] Read and Write Data USB with PyUSB

2011-10-05 Thread Wander Lairson Costa
2011/10/5 Tormod Volden : > On Wed, Oct 5, 2011 at 9:29 PM, Andhika Pratama wrote: > >> >> As you can see from my screen capture above that my device endpoint >> address is 0x81, and I check couple of example also had the same address, >> that is 0x81. and my device only have one endpoint. > > Well

Re: [pyusb-users] [Help] Read and Write Data USB with PyUSB

2011-10-05 Thread Tormod Volden
On Wed, Oct 5, 2011 at 9:29 PM, Andhika Pratama wrote: > As you can see from my screen capture above that my device endpoint address > is 0x81, and I check couple of example also had the same address, that is > 0x81. and my device only have one endpoint. > Well, you are writing to endpoint 1, wh

Re: [pyusb-users] [Help] Read and Write Data USB with PyUSB

2011-10-05 Thread Andhika Pratama
Hi Wander, As you can see from my screen capture above that my device endpoint address is 0x81, and I check couple of example also had the same address, that is 0x81. and my device only have one endpoint. I'm curious, is the way I communicate (my code) with the device is correct? just beginner but

Re: [pyusb-users] [Help] Read and Write Data USB with PyUSB

2011-10-05 Thread Wander Lairson Costa
2011/10/4 Andhika Pratama > Dear all, > > Im new with pyusb, I just bought a device and this device have a > pressure/push and twist sensors. As my starting point to learn is I want to > read the sensors value from my device and display it in my PyQT application. > > First thing first, I use the

[pyusb-users] [Help] Read and Write Data USB with PyUSB

2011-10-04 Thread Andhika Pratama
Dear all, Im new with pyusb, I just bought a device and this device have a pressure/push and twist sensors. As my starting point to learn is I want to read the sensors value from my device and display it in my PyQT application. First thing first, I use the libusb-win32 to install the driver and

Re: [pyusb-users] Help waiting to read from a device

2010-11-03 Thread Micah Carrick
Thanks for the tips. I may have been selling myself short. I'm not completely clueless about USB, just very new. I've tinkers with USB microcontrollers a bit. In any case, I've spent a lot of time in the USB spec and the specs for my device. I've now been able to read from it using hiddev and both

Re: [pyusb-users] Help waiting to read from a device

2010-11-02 Thread wander.lairson
Hi Micah, First of all you do better getting some knowledge about USB. USB is not just like another serial protocol, it is a complete computer bus, with so many details. Later, maybe you want to give a try to PyUSB 1.0, which besides having an easier API, has a tutorial available on PyUSB website.

[pyusb-users] Help waiting to read from a device

2010-11-02 Thread Micah Carrick
Hey, I'm a bit new to USB. I have a MagTek credit card reader that I'm interfacing with Python. When you swipe a card, the card data is sent on the "Interrupt In" pipe using an 'Interrupt Report". Now, I have already been able to read and parse the card data by using open(), read(), and close()

Re: [pyusb-users] Help with reading data from HID device

2010-04-26 Thread Xiaofan Chen
On Mon, Apr 26, 2010 at 7:43 AM, Xiaofan Chen wrote: > When I tested pyusb with Cygwin, I  build libusb-1.0 within > Cygwn and not using the snapshots. It seems to me Cygwin > is looking for cyusb-1.0.dll and not libusb-1.0.dll. > It works for me. Here is the log with an HID device: Microchip PI

Re: [pyusb-users] Help with reading data from HID device

2010-04-25 Thread Xiaofan Chen
On Mon, Apr 26, 2010 at 7:43 AM, Xiaofan Chen wrote: > When I tested pyusb with Cygwin, I  build libusb-1.0 within > Cygwn and not using the snapshots. It seems to me Cygwin > is looking for cyusb-1.0.dll and not libusb-1.0.dll. > > You may want to try this out. > Or you can use the native Win32

Re: [pyusb-users] Help with reading data from HID device

2010-04-25 Thread Xiaofan Chen
On Mon, Apr 26, 2010 at 12:25 AM, Kevin Kilroy wrote: > Hi all, > > I'm having difficulty getting pyusb to find my HID usb device, here are the > steps I have taken so far: > > Download & install pyusb-1.0.0-a0 (by unpacking & excuting python setup.py > install from within cygwin) > > Download & u

Re: [pyusb-users] Help with reading data from HID device

2010-04-25 Thread Kevin Kilroy
Hi all, I'm having difficulty getting pyusb to find my HID usb device, here are the steps I have taken so far: Download & install pyusb-1.0.0-a0 (by unpacking & excuting python setup.py install from within cygwin) Download & unpack libusb10 (***2010.04.21 (r268)

Re: [pyusb-users] Help with reading data from HID device

2010-04-11 Thread Xiaofan Chen
All in all, you will be annoyed the lack of a generic cross-platform HID library and Python wrapper. Actually there was no native HID python wrapper under Windows for a long time until now. http://old.nabble.com/Python-HID-wrapper-for-Win32-td13329336.html Long long ago people asked for it (at lea

Re: [pyusb-users] Help with reading data from HID device

2010-04-11 Thread Xiaofan Chen
On Sun, Apr 11, 2010 at 10:40 PM, Kevin Kilroy wrote: > Hi all, > > I'm now using windows XP, however, when I now run the code, the app hangs > after the call to set_configuration() > If you are using the libusb01 backend, then you have to replace the HID driver with the libusb-win32 device drive

Re: [pyusb-users] Help with reading data from HID device

2010-04-11 Thread Wander Lairson
Did you install libusb-win32? Wander 2010/4/11 Kevin Kilroy : > Hi all, > > I'm now using windows XP, however, when I now run the code, the app hangs > after the call to set_configuration() > > Any ideas? > > Thanks in advance, > > Kevin. > > On Sun, Apr 11, 2010 at 12:57 PM, Xiaofan Chen wrote:

Re: [pyusb-users] Help with reading data from HID device

2010-04-11 Thread Kevin Kilroy
Hi all, I'm now using windows XP, however, when I now run the code, the app hangs after the call to set_configuration() Any ideas? Thanks in advance, Kevin. On Sun, Apr 11, 2010 at 12:57 PM, Xiaofan Chen wrote: > On Sun, Apr 11, 2010 at 6:43 PM, Kevin Kilroy > wrote: > > I'm now trying on U

Re: [pyusb-users] Help with reading data from HID device

2010-04-11 Thread Xiaofan Chen
On Sun, Apr 11, 2010 at 6:43 PM, Kevin Kilroy wrote: > I'm now trying on Ubuntu (8.04 64bit) & I'm now receiving this error: > > >  File "test.py", line 13, in >     dev.set_configuration() >   File "/usr/lib/python2.5/site-packages/usb/core.py", line 511, in > set_configuration >     self._ctx.m

Re: [pyusb-users] Help with reading data from HID device

2010-04-11 Thread Kevin Kilroy
Hi all, I'm now trying on Ubuntu (8.04 64bit) & I'm now receiving this error: File "test.py", line 13, in dev.set_configuration() File "/usr/lib/python2.5/site-packages/usb/core.py", line 511, in set_configuration self._ctx.managed_set_configuration(self, configuration) File "/usr/

Re: [pyusb-users] Help with reading data from HID device

2010-04-10 Thread Xiaofan Chen
On Sun, Apr 11, 2010 at 6:02 AM, Marcus Foster wrote: > "/Library/Python/2.6/site-packages/usb/core.py" > sounds like Mac OSX > In that case, it is a bit complicated. libusb 0.1 and libusb 1.0 do not work under Mac OS X with the HID device. You have to write a codeless kext to prevent the kernel

Re: [pyusb-users] Help with reading data from HID device

2010-04-10 Thread Marcus Foster
"/Library/Python/2.6/site-packages/usb/core.py" sounds like Mac OSX On Sat, Apr 10, 2010 at 9:50 PM, Wander Lairson wrote: > Hello Kevin, > > What OS are you using? > > Wander > > 2010/4/10 Kevin Kilroy : > > Hi, > > > > I have an HID device that I am trying to read from, but I am receiving > the

Re: [pyusb-users] Help with reading data from HID device

2010-04-10 Thread Wander Lairson
Hello Kevin, What OS are you using? Wander 2010/4/10 Kevin Kilroy : > Hi, > > I have an HID device that I am trying to read from, but I am receiving the > following error: > > usb.core.USBError: Access denied (insufficient permissions) > > Here is a snippet from my code: > > import usb > import

[pyusb-users] Help with reading data from HID device

2010-04-10 Thread Kevin Kilroy
Hi, I have an HID device that I am trying to read from, but I am receiving the following error: usb.core.USBError: Access denied (insufficient permissions) Here is a snippet from my code: import usb import usb.core myVendorId = 53769 myProductId = 5377 dev = usb.core.find(idVendor=myVendorId,