Re: [pyusb-users] Garmin Ant+ dongle - _usb_reap_async - reaping request failed

2022-04-23 Thread Xiaofan Chen
On Sun, Apr 24, 2022 at 8:43 AM stuart lynne wrote: > > I am seeing a consistent issue with Garmin Ant+ dongles under Windows with > libusb0. > > They work the first time my application runs, but fail on the second attempt. > > I have verified the same behaviour across three Garmin Dongles. I

Re: [pyusb-users] Preventing multiple opens on a USB Device

2022-02-05 Thread Xiaofan Chen
On Sat, Feb 5, 2022 at 10:26 AM stuart lynne wrote: > > Most people are using a generic libusb-win32 driver for Ant+ dongles. > I have two types, Garmin and Cycplus, and both show up as Dynastream > as the manufacturer, but they do have minor differences, so even if the same > chip from

Re: [pyusb-users] Preventing multiple opens on a USB Device

2022-02-04 Thread Xiaofan Chen
On Fri, Feb 4, 2022 at 4:40 PM stuart lynne wrote: > > Yes, I'm looking at claim_interface/release_interface. It seems to take > a bit of a song and dance to get it to work. > > And I'm definitely seeing different results between Linux and Windows. > I can live with that, platform.system() can be

Re: [pyusb-users] cannot send feature report request.

2021-10-18 Thread Xiaofan Chen
On Mon, Oct 18, 2021 at 2:03 PM fishx2000--- via pyusb-users wrote: > > Hi, > > I can send input/output report request via HID interface, using the following > command: > dev.ctrl_transfer(0xA1, 0x01, 0x0100|reportId, hidItfaceIdx, reportLen) > dev.ctrl_transfer(0x21, 0x09,

Re: [pyusb-users] cannot access HID interface on MacOS.

2021-09-07 Thread Xiaofan Chen
On Tue, Sep 7, 2021 at 5:41 PM fishx2000--- via pyusb-users wrote: > > Hi.. > > When running on MacOS using pyusb, I failed to read/write HID interface. > > error message is as follows: > 'Access denies(insufficient permissions)' error. > > and libusb provides more information: > libusb: error

Re: [pyusb-users] Reading data from 3DConnexion SpaceMouse Wireless

2021-05-10 Thread Xiaofan Chen
On Mon, May 10, 2021 at 11:26 PM Jonas Malaco via pyusb-users wrote: > > On Mon, May 10, 2021 at 02:45:56PM +0100, Bruno Rocha wrote: > > Hello, > > > > I'm developping a solution that needs to read raw data from 3DConnexion > > SpaceMouse Wireless and then send it via sockets to another

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

2021-04-28 Thread Xiaofan Chen
On Wed, Apr 28, 2021 at 10:04 AM CM-Wu Ben - 吳文鐘 wrote: > The device I'm testing is a composite device, which has audio interface > within it. > Do windows audio driver support the handling of control transfer ? > If yes, is it possible to send control transfer via audio driver? how to do it >

Re: [pyusb-users] pyUSB - delayed sending to the device? / Ubuntu 19.10

2021-02-01 Thread Xiaofan Chen
On Sun, Jan 31, 2021 at 9:37 PM Kevin Grant wrote: > > On 2021-01-31 12:58, Kevin Grant wrote: > > > Hello, > > > > I am re-using a subject line from the mailing list archive, by user > > Marcin, in an attempt to append to that thread. > > > >

Re: [pyusb-users] No Backend Available

2021-01-21 Thread Xiaofan Chen
On Thu, Jan 21, 2021 at 8:44 AM Jonas Malaco via pyusb-users wrote: > > According to Process Explorer, there is now an QueryNameInformationFile for: > > > > C:\Windows\System32\libusb-1.0.dll (because the program explicitly > > looks for it there!) > > > > in addition to accessing libusb-1.0.dll

Re: [pyusb-users] Ubunto - No module named 'usb'

2021-01-13 Thread Xiaofan Chen
On Thu, Jan 14, 2021 at 1:52 PM Xiaofan Chen wrote: > > On Thu, Jan 14, 2021 at 1:44 PM Saeed Mirghasemi > wrote: > > I have already done that and it does not work. Does anything else come to > > your mind? > > > > Also, where do I get a list of commands a

Re: [pyusb-users] Ubunto - No module named 'usb'

2021-01-13 Thread Xiaofan Chen
On Thu, Jan 14, 2021 at 1:44 PM Saeed Mirghasemi wrote: > I have already done that and it does not work. Does anything else come to > your mind? > > Also, where do I get a list of commands and their arguments in pysub? I am > trying to > set the baud rate and I do not know where to start. >

Re: [pyusb-users] Ubunto - No module named 'usb'

2021-01-13 Thread Xiaofan Chen
On Thu, Jan 14, 2021 at 9:30 AM Saeed Mirghasemi wrote: > > Hi, > > I am working on a Jetson Nano with Ubuntu 18.04. The common 'pip install > pyusb' did > not work and I got this error: > ModuleNotFoundError: No module named 'usb' > > Upon running: > import usb.core > > Then I tried: > sudo

Re: [pyusb-users] Need Help Please

2020-11-16 Thread Xiaofan Chen
On Mon, Nov 16, 2020 at 4:08 PM Nicolas Pinault via pyusb-users wrote: > > On Windows, for HID devices, I use a dedicated HID library : > https://github.com/rene-aguirre/pywinusb > I second this if it is just for Windows platform. For cross platform applications, I will recommend python

[pyusb-users] More awareness to FAQ and Tutorial

2020-09-16 Thread Xiaofan Chen
Just want to raise awareness to the FAQ and Tutorial. https://github.com/pyusb/pyusb/tree/master/docs FAQ -- faq.rst Tutorial -- tutorial.rst You can raise issues in github if you have some suggestions to improve the documents. Thanks. -- Xiaofan

Re: [pyusb-users] pyusb 1.1.0 release

2020-09-14 Thread Xiaofan Chen
On Mon, Sep 14, 2020 at 2:29 PM Xiaofan Chen wrote: > > Hi all, > > Jonas has released the latest pyusb version 1.1.0 in github. > https://github.com/pyusb/pyusb/releases > > Please help to update your pyusb version and report any > issues in github. Thanks. > pypi

[pyusb-users] pyusb 1.1.0 release

2020-09-14 Thread Xiaofan Chen
Hi all, Jonas has released the latest pyusb version 1.1.0 in github. https://github.com/pyusb/pyusb/releases Please help to update your pyusb version and report any issues in github. Thanks. -- Xiaofan ___ pyusb-users mailing list

[pyusb-users] Tag new release 1.0.3

2020-09-08 Thread Xiaofan Chen
Hi Jonas, Maybe it is a good time to tag a new 1.0.3 release as there are enough bug fixes in the current git. Thanks. -- Xiaofan ___ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users

Re: [pyusb-users] Please fix link to _PyUSB website in docs/tutorial.rst

2020-05-17 Thread Xiaofan Chen
On Fri, Apr 17, 2020 at 4:04 AM kuma35 wrote: > > Now, un-reached _PyUSB: http://pyusb.wiki.sourceforge.net > > --- hoge.patch > diff --git a/docs/tutorial.rst b/docs/tutorial.rst > index d63fda0..2eae41d 100644 > --- a/docs/tutorial.rst > +++

Re: [pyusb-users] Specifying bRequest, wValue, wLength and wIndex in non-control requests

2019-11-29 Thread Xiaofan Chen
On Mon, Oct 14, 2019 at 4:52 PM Joel Snape wrote: > > Hi, > > I'm trying to reverse engineering something with a windows driver, but I'm > having trouble replicating one of the reads it makes with pyUSB. > > The driver sends a read-request on each endpoint, with different wValue, > wIndex and

Re: [pyusb-users] Best device for pyusb experimentation?

2018-06-30 Thread Xiaofan Chen
On Sun, Jul 1, 2018 at 6:41 AM, Michelle Ran wrote: > Sorry, I'm only a high school student so I'm struggling to understand what > you mean. What's the significance of the hex file - is that what contains > the code? What IDE/language should I use to program the board? Also, what do > you mean by

Re: [pyusb-users] Best device for pyusb experimentation?

2018-06-25 Thread Xiaofan Chen
On Mon, Jun 25, 2018 at 11:39 PM, Michelle Ran wrote: > > Okay, was able to download MLA & set up the development environment, but I > don't seem > able to open the project you mentioned using MPLAB X? Here's a video: I guess you can figure this out by yourself... MPLAB X is for the PIC

Re: [pyusb-users] Best device for pyusb experimentation?

2018-06-24 Thread Xiaofan Chen
On Sun, Jun 24, 2018 at 9:39 PM, Michelle Ran wrote: > Hm, my file paths seem to be different from yours. I can't seem to find any > of those folders. It might be that I'm looking at a 2010 version of the > libraries? How can I update? > Download the latest MLA from Microchip.

Re: [pyusb-users] Best device for pyusb experimentation?

2018-06-22 Thread Xiaofan Chen
On Sat, Jun 23, 2018 at 7:04 AM, Michelle Ran wrote: > Also - I've been poking around the demo projects and have tried to open > some, but Visual Studio doesn't seem to recognize them as projects (running > on a Mac). In that case, what's the best way to edit and run them? My Mac Mini 2011 died

Re: [pyusb-users] Best device for pyusb experimentation?

2018-06-22 Thread Xiaofan Chen
On Sat, Jun 23, 2018 at 7:00 AM, Michelle Ran wrote: > I recently purchased a USB PIC18F87J50 PIM - which demo project would you > recommend for a beginner mainly interested in data transfer? You can start with the vendor_basic example. microchip\mla\v2017_03_06\apps\usb\device\vendor_basic

Re: [pyusb-users] Errno 2 - Entity Not Found

2018-06-18 Thread Xiaofan Chen
On Sun, Jun 10, 2018 at 1:46 PM, Xiaofan Chen wrote: > On Wed, May 16, 2018 at 9:35 PM, Roland King wrote: >> .. my first post .. >> >> I have a device (Atmel running their vendor development USB stack). >> >> It has one configuration, one interface two alterna

Re: [pyusb-users] To support libusb_set_option and usbdk backend

2018-06-11 Thread Xiaofan Chen
On Mon, Jun 11, 2018 at 9:43 PM, Xiaofan Chen wrote: > Ref: > https://github.com/pyusb/pyusb/issues/200 > https://github.com/libusb/libusb/issues/443 > https://github.com/libusb/libusb/wiki/Windows#Driver_Installation > > This will help to support the possibility of using usb

[pyusb-users] To support libusb_set_option and usbdk backend

2018-06-11 Thread Xiaofan Chen
Ref: https://github.com/pyusb/pyusb/issues/200 https://github.com/libusb/libusb/issues/443 https://github.com/libusb/libusb/wiki/Windows#Driver_Installation This will help to support the possibility of using usbdk backend under Windows. usbdk backend has an advantage that you can keep the vendor

Re: [pyusb-users] Errno 2 - Entity Not Found

2018-06-09 Thread Xiaofan Chen
On Wed, May 16, 2018 at 9:35 PM, Roland King wrote: > .. my first post .. > > I have a device (Atmel running their vendor development USB stack). > > It has one configuration, one interface two alternates as they use an > isochronous endpoint and you can’t have that in the default configuration.

Re: [pyusb-users] Newport Conex-CC Python Driver Using pyUSB

2018-06-05 Thread Xiaofan Chen
On Fri, Jun 1, 2018 at 9:48 AM, Sasha Yousefi wrote: > Hello, > Hope you are well. I am having trouble communicating with my device using > read and write. My code is able to recognize the device as well as get > attributes of the device. However, when I write to device using > dev.write(endpoint

Re: [pyusb-users] Nike+ Sportband - Dump data - [Errno 110] Operation timed out

2018-05-02 Thread Xiaofan Chen
On Wed, May 2, 2018 at 10:50 PM, Luigi Gubello wrote: > Hi, > > Nike has decided to close support for some products. So I have decided to > try to extract data from my Nike+ Sportband USB, by using Python and PyUSB. > I always get this error: > > 'usb.core.USBError:

Re: [pyusb-users] not finding Arduino or mouse devices

2018-03-09 Thread Xiaofan Chen
On Mon, Mar 5, 2018 at 3:51 AM, Michael Hennebry wrote: > I might end up using pyserial. > It can find the VID/PID of CDC virtual serial ports. > > That said, I'd still like to be able to use pyusb. > > At the suggestion of a colleague, > I used zadig to get

Re: [pyusb-users] ValueError: No backend available

2018-03-03 Thread Xiaofan Chen
On Fri, Mar 2, 2018 at 10:57 AM, Xiaofan Chen <xiaof...@gmail.com> wrote: > On Fri, Mar 2, 2018 at 3:52 AM, Michael Hennebry > <michael.henne...@rivieranexus.com> wrote: >> Don't know why I wrote avrdude. 'Tis Atmel Studio giving me trouble. >> Avrdude is worki

Re: [pyusb-users] not finding Arduino or mouse devices

2018-03-03 Thread Xiaofan Chen
On Fri, Mar 2, 2018 at 10:10 AM, Michael Hennebry wrote: > I have three USB devices connected, > an Atmel ICE, a mouse and a CDC device. > usb.core.find(find_all=True) > finds the Atmel ICE twice, but not the others. > > I'm stuck on Windows 10. > The device

Re: [pyusb-users] ValueError: No backend available

2018-02-28 Thread Xiaofan Chen
On Tue, Feb 27, 2018 at 6:20 AM, Michael Hennebry wrote: > zadig gives me the following options: > libusbK (v 3.0.7.0) > libusb-win32 (v 1.2.6.0) > winUSB (v 6.1.7600.16385) > USB Serial (CDC) > > The current libusb0 (v 1.2.6.0) was not obtained through zadig. >

Re: [pyusb-users] ValueError: No backend available

2018-02-28 Thread Xiaofan Chen
On Wed, Feb 28, 2018 at 3:06 AM, Michael Hennebry wrote: > Is www.opendll.com a good place to get libusb-1? > I'm using WIndows because I have to and do not know > what places are safe or otherwise? I do not know about opendll. Anyway, libusb is an open source

Re: [pyusb-users] ValueError: No backend available

2018-02-23 Thread Xiaofan Chen
On Thu, Feb 8, 2018 at 8:25 AM, Michael Hennebry wrote: > I'm having trouble make pyusb work at all. > When typing usb stuff in interactive mode, > usb.core.find(...) either produces ant empty list > or something that prints as nothing. > \Python27\python

Re: [pyusb-users] Reverse Engineering an evaluation board

2018-02-23 Thread Xiaofan Chen
On Sat, Dec 23, 2017 at 3:43 PM, Shailendra Paliwal wrote: > Hello, > > I'm trying to communicate with an Analog Devices evaluation board (SDP-H1). > AD has a windows software that initializes the board and can be used to read > the data coming from the USB connection

Re: [pyusb-users] PyUSB backlog

2017-06-28 Thread Xiaofan Chen
Hi Wander, pyusb is a great project and I certainly hope others can step up to help you on the project. On the other hand, please take care of yourself as health is the most important thing and then followed by family/friends and then followed by main job/career. -- Xiaofan

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

Re: [pyusb-users] PyUSB Parameters to Diagnose Cold Temperature Problem

2017-03-08 Thread Xiaofan Chen
On Tue, Mar 7, 2017 at 9:16 PM, Greg Horler wrote: > Sent to Greg Horler by mistake! > Not so sure what you mean but take note you are in a public mailing list and by default you will receive all mailing list posts. -- Xiaofan

Re: [pyusb-users] PyUSB Parameters to Diagnose Cold Temperature Problem

2017-03-07 Thread Xiaofan Chen
On Thu, Feb 23, 2017 at 8:18 PM, Streeter, Samuel S ERDC-RDE-CRREL-NH CIV wrote: > > I'm at a complete loss as to why I'm observing this trend, which is very > repeatable. I've isolated the embedded board and tested its functionality in > the cold; it's just fine.

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

Re: [pyusb-users] Please help to change libusb project website in README.rst

2017-01-14 Thread Xiaofan Chen
On Sat, Jan 14, 2017 at 10:20 PM, Wander Lairson Costa wrote: > Sorry for the delay. > Done: > https://github.com/walac/pyusb/commit/fd253184035aff49f2cc4cf2e9f29778b29657bc Thanks. This is very fast. :-) -- Xiaofan

[pyusb-users] Please help to change libusb project website in README.rst

2017-01-12 Thread Xiaofan Chen
https://github.com/walac/pyusb/blob/master/README.rst The above file still points to the old "libusb.org" website. The current libusb project website is "libusb.info". Thanks. Ref: https://github.com/libusb/libusb/wiki/FAQ#libusborg_libusbxorg_and_libusbinfo -- Xiaofan

Re: [pyusb-users] Digital Multimeter Output

2016-09-02 Thread Xiaofan Chen
On Thu, Sep 1, 2016 at 10:30 PM, Joe wrote: > > > We use two DMMs UNI-T UT61B. They have two interfaces each, a RS232C > Interface and a USB interface. > The RS232C interfaces work well. Without any command before, the DMMs > continuously send 2 .. 3 packages of 14 Bytes per

Re: [pyusb-users] pyusb1 picks wrong driver on Windows

2016-08-28 Thread Xiaofan Chen
On Thu, Aug 25, 2016 at 9:33 AM, Xiaofan Chen <xiaof...@gmail.com> wrote: > On Tue, Aug 23, 2016 at 5:20 AM, Tormod Volden <lists.tor...@gmail.com> wrote: > >> >> Now when it comes to the libusb <-> kernel hardware driver interaction >> on Window

Re: [pyusb-users] pyusb1 picks wrong driver on Windows

2016-08-24 Thread Xiaofan Chen
On Tue, Aug 23, 2016 at 5:20 AM, Tormod Volden wrote: > > Now when it comes to the libusb <-> kernel hardware driver interaction > on Windows, it is not easy to get the full overview of possibilities, > requirements and failure modes. Quoting from >

Re: [pyusb-users] pyusb1 picks wrong driver on Windows

2016-08-18 Thread Xiaofan Chen
On Thu, Aug 18, 2016 at 7:57 PM, Xiaofan Chen <xiaof...@gmail.com> wrote: > On Thu, Aug 18, 2016 at 5:07 PM, Hermann Hamann <hermann-ham...@web.de> wrote: >> >> Hi >> >> > I have read so in the internet. I will post reference later. >> >> >

Re: [pyusb-users] pyusb1 picks wrong driver on Windows

2016-08-18 Thread Xiaofan Chen
On Thu, Aug 18, 2016 at 5:07 PM, Hermann Hamann wrote: > > Hi > > I have read so in the internet. I will post reference later. > > > If it helps you: > > C:\Program Files\RTLSDR Scanner>dir lib*.* > Volume in Laufwerk C: hat keine Bezeichnung. > Volumeseriennummer:

Re: [pyusb-users] pyusb1 picks wrong driver on Windows

2016-08-17 Thread Xiaofan Chen
On Sat, Aug 13, 2016 at 3:34 PM, Hermann Hamann wrote: > Dear maintainers, > my client and I have the same USB-Device. I have written a program for it. > It runs fine on both Linux systems. It runs fine on my Windows but crashes > on my client's. > Both have installed the

Re: [pyusb-users] Trying to write to OUT EP Bulk on Win10

2016-03-10 Thread Xiaofan Chen
On Wed, Mar 9, 2016 at 4:59 PM, Xiaofan Chen <xiaof...@gmail.com> wrote: > On Wed, Mar 9, 2016 at 3:13 PM, Igor Bezenchuk <igor...@hotmail.com> wrote: >> I read at libusb maling list about usbdk which, from its description, should >> allow to attach and detach device dri

Re: [pyusb-users] Using a different backend

2016-03-10 Thread Xiaofan Chen
On Fri, Mar 11, 2016 at 7:29 AM, keith wrote: > I have a project I am working on that uses python to communicate with a HID > usb device (two way communication). It’s currently working fine using pyUSB > and the libUSB-win32. However the client wants to try and

Re: [pyusb-users] Trying to write to OUT EP Bulk on Win10

2016-03-08 Thread Xiaofan Chen
On Tue, Mar 8, 2016 at 10:33 PM, Igor Bezenchuk wrote: > I am Interested in generating random bulk traffic with libusb and pyusb > through different bulk devices(i.e Flash drives etc...). > > pyusb does enumerate device and it's endpoints correctly but it fails to > write to

Re: [pyusb-users] "Other error' reply to set_configuration

2016-02-26 Thread Xiaofan Chen
On Fri, Feb 26, 2016 at 5:56 AM, John Coppens wrote: > I rewrote the C program to see if it was faster than pyUSB, but > without hub, the speed is _exactly_ the same. I have been testing up > to 8192 bytes transfer size (I am limited with the device's memory). > > Tomorrow, I

Re: [pyusb-users] "Other error' reply to set_configuration

2016-02-24 Thread Xiaofan Chen
On Thu, Feb 25, 2016 at 12:32 AM, John Coppens wrote: > Xiafan, after much tinkering with the C program, I was too impatient to get > things working, so I restarted from zero (again from the original usb_dev_bulk > demo, and a host program with pyUSB in the PC. I appreciate

Re: [pyusb-users] "Other error' reply to set_configuration

2016-02-22 Thread Xiaofan Chen
On Tue, Feb 23, 2016 at 1:29 AM, John Coppens wrote: >> You can set LIBUSB_DEBUG=4 before running your pyusb program >> and then post the verbose libusb debug info. > > Here's the full debug output. Note that there is a 5 second wait before the > set_configuration > times out

Re: [pyusb-users] "Other error' reply to set_configuration

2016-02-21 Thread Xiaofan Chen
On Mon, Feb 22, 2016 at 8:57 AM, John Coppens wrote: > When tested with a minimalistic C program, also with libusb 1.0.20, the > transfer > actually starts, but stops after a couple of 512 data blocks. > > Questions: > - In C, I have code that detaches the kernel driver if

Re: [pyusb-users] PyUSB Error

2015-11-09 Thread Xiaofan Chen
On Mon, Nov 9, 2015 at 8:05 PM, Jordi M wrote: > Hi all, > > I'm trying to connect an ST Micrielectronics board that runs ChiBios OS > to a PC either running Ubunto or windows using PyUsb (I have the same > problem in both Os) > > The problem is that it works well the first

Re: [pyusb-users] USB Control Message Error

2015-09-08 Thread Xiaofan Chen
On Tue, Sep 8, 2015 at 8:58 AM, Srinidhi Kuntaegowdanahalli wrote: > Hi: > > I am new to python and I am using pyDAQFlex to interface with an USB DAQ > from Measurement Computing. > > pyDAQFlex uses pyUSB. I have installed "libusb-win32-filter-bin-0.1.12.1" That is super

Re: [pyusb-users] Problem with Ubuntu 10.04

2015-08-16 Thread Xiaofan Chen
On Sun, Aug 16, 2015 at 10:54 AM, Alan Jhonn Aguiar Schwyn alan...@hotmail.com wrote: Hi again, I found the problem. Ubuntu 10.04 has libusb 1-0.0 package version: 2:1.0.6-1. I made a workarround for get_speed property.. https://github.com/walac/pyusb/pull/109 Someone can check it? Why

Re: [pyusb-users] question

2015-06-20 Thread Xiaofan Chen
On Fri, Jun 19, 2015 at 9:54 AM, Jay Newens j...@nemo-q.com wrote: Ok, I have a new problem. I am using libusb-win32-bin-1.2.6.0. I am using the libusb0.dll and libusb0.sys. I am communicating to a ZebraKR403 printer checking for the status. On my dev PC this is working and I have packaged my

Re: [pyusb-users] Not implemented error on is_kernel_driver_active

2015-06-14 Thread Xiaofan Chen
On Sun, Jun 14, 2015 at 7:21 PM, Matthias Grabowski em...@mailbox.org wrote: Hey, my version that i downloaded from sourceforge seems to have indeed been quite old. I got the latest version from github now. After some more googling, im now using this code: On that last line i (again) get a

Re: [pyusb-users] question

2015-06-14 Thread Xiaofan Chen
On Fri, Jun 12, 2015 at 10:40 PM, Jay Newens j...@nemo-q.com wrote: I have the LibUSB-Win32 installed and the test program is connected to my Zebra KR403 printer and I can see the configuration info for the printer so I think my driver package is ok. I am curious though about the libusb0.dll.

Re: [pyusb-users] No backend available with windows 7

2015-03-02 Thread Xiaofan Chen
On Tue, Mar 3, 2015 at 2:40 AM, Michel Allaire michel@videotron.ca wrote: But it seems that I can't access the list devices on the bus with the following script: import usb.core import usb.util list_dev = usb.core.find(find_all=True) n = 0 for dev in list_dev: n = n+1 print

Re: [pyusb-users] Assertion Error at End of Tutorial Test Script

2015-02-11 Thread Xiaofan Chen
On Thu, Feb 12, 2015 at 6:55 AM, Sean Kitko sean...@gmail.com wrote: However, I'm running into some problems implementing the test script provided at the tutorial here: https://github.com/walac/pyusb/blob/master/docs/tutorial.rst I brought the test script into an editor, and changed the

Re: [pyusb-users] PyUSB on Intel Galileo Gen 2

2014-11-24 Thread Xiaofan Chen
On Tue, Nov 25, 2014 at 7:33 AM, Setia Budi boedy.b...@gmail.com wrote: Hi all, At the moment I am working with Intel Galileo Gen2 with Yocto Linux running on top of it. This micro PC is planned to replace some other micro PC for field experiment. I installed pyusb on it without any issue,

Re: [pyusb-users] Access Denied Error on Windows 7

2014-11-24 Thread Xiaofan Chen
On Tue, Nov 25, 2014 at 2:42 AM, Richard Bryan rabr...@lucidsci.com wrote: Hi Wander, I ran with PYUSB_DEBUG=debug and encountered the error. The log text when the error occurred is here: http://pastebin.com/kmqSrek9 Its the pyusb debug log intermingled with my program's logging

Re: [pyusb-users] Access Denied Error on Windows 7

2014-11-13 Thread Xiaofan Chen
On Wed, Nov 12, 2014 at 1:22 AM, Richard Bryan rabr...@lucidsci.com wrote: I'm frequently running into an Access Denied (insufficient permissions) errors on Windows 7 (with libusb1 backend) during long-running usb sessions with a device. When this happens, I call reset() and

Re: [pyusb-users] libusb and PyUSB and OSX 10.6.8

2014-10-26 Thread Xiaofan Chen
On Sun, Oct 26, 2014 at 4:48 PM, Anony Mous fyng...@gmail.com wrote: Hi. I've built libusb-1.0 beta something (the current download as of the evening of 2014.10.26) under OSX 10.6.8. libusb latest version is 1.0.19 and it can be downloaded here. http://sourceforge.net/projects/libusb/files/

Re: [pyusb-users] libusb-1.0 compatibility

2014-05-14 Thread Xiaofan Chen
On Thu, May 15, 2014 at 6:11 AM, Walker Inman win...@mit.edu wrote: We've been using pyusb with the libusb-1.0 backend on linux and everything works well. We're now testing on two windows 7 machines and are running into some issues. On one machine with libusb-win32 (i.e. libusb-0.1 backend)

Re: [pyusb-users] libusb-1.0 compatibility

2014-05-14 Thread Xiaofan Chen
On Thu, May 15, 2014 at 6:11 AM, Walker Inman win...@mit.edu wrote: We've been using pyusb with the libusb-1.0 backend on linux and everything works well. We're now testing on two windows 7 machines and are running into some issues. On one machine with libusb-win32 (i.e. libusb-0.1 backend)

Re: [pyusb-users] Unable to read with pyusb, though HID device works in stdout

2014-05-10 Thread Xiaofan Chen
On Sun, May 11, 2014 at 1:42 AM, Wander Lairson Costa wander.lair...@gmail.com wrote: 2014-05-10 5:48 GMT-03:00 Jim Easterbrook j...@jim-easterbrook.me.uk: On 09/05/14 23:21, Wander Lairson Costa wrote: HID devices are problematic with libusb, and since PyUSB depends on libusb, pyusb can't

Re: [pyusb-users] No backend detected on Mavericks

2014-03-14 Thread Xiaofan Chen
On Sat, Mar 15, 2014 at 6:41 AM, Jen Evans jwe...@gmail.com wrote: Hi, I'm getting the no backend detected error (well it did work once but I couldn't get it work again). This is on Mavericks 10.9.2, libusb-1.0.9, and pyusb-1.0.b.1. There weren't any obvious install errors. I tried export

Re: [pyusb-users] Tektronix oscilloscope

2013-08-12 Thread Xiaofan Chen
On Tue, Aug 13, 2013 at 9:35 AM, Wander Lairson Costa wander.lair...@gmail.com wrote: This is something that better fits in an wiki. After I received a sourceforge email notifying me that they were shutdown trac, I decided to migrate everything but main page and downloads to github, but I had

Re: [pyusb-users] Some problem about pyusb

2013-08-04 Thread Xiaofan Chen
On Sun, Aug 4, 2013 at 4:30 PM, cheng shen jimmjimms...@hotmail.com wrote: Hi, I'm new for python and want to develop a USB communication module which need to transfer data with interrupt mode or bulk mode(large size file), then I found Pyusb but I’m so confuse with how to set the

Re: [pyusb-users] usb.core.USBError - Sending control message failed. The request is not supported

2013-05-26 Thread Xiaofan Chen
On Sun, May 26, 2013 at 3:16 AM, Phil Edwards philedward...@gmail.com wrote: I have installed libusb 0.1 via the Windows binary and can list my camera using the GUI provided. (I can't find a Windows binary for libusb 1.0, and don't want to compile from source code). You can use libusbx which

Re: [pyusb-users] Issue reading interrrupt endpoints

2013-04-12 Thread Xiaofan Chen
On Thu, Apr 11, 2013 at 9:52 PM, Jermaine jra...@gmail.com wrote: Xiaofan Chen xiaofanc@... writes: If it is an HID device, then you need to write a codeless kext to prevent the Mac OS X HID driver to bind to your device. Ref: http://www.libusb.org/wiki/FAQ

Re: [pyusb-users] Issue reading interrrupt endpoints

2013-04-10 Thread Xiaofan Chen
On Thu, Apr 11, 2013 at 7:42 AM, Jermaine jra...@gmail.com wrote: That's what I thought. I wonder if it has something to do with that fact that it's a HID device. Can anyone else help? If it is an HID device, then you need to write a codeless kext to prevent the Mac OS X HID driver to bind to

Re: [pyusb-users] Issue reading interrrupt endpoints

2013-04-10 Thread Xiaofan Chen
On Thu, Apr 11, 2013 at 11:34 AM, Ioakeim Tellidis li...@e-noesis.com wrote: The equivalent to lsusb for OSX is system_profiler SPUSBDataType You may also use an alias for this command : alias lsusb=system_profiler SPUSBDataType If by any chance you want to make this permanent, then

Re: [pyusb-users] Issue 10 feedback

2013-01-27 Thread Xiaofan Chen
On Sun, Jan 27, 2013 at 7:04 PM, Emmanuel Blot eblot...@gmail.com wrote: [OT] libusb-1.0-0 on Debian is now using libusbx, which is quite confusing. Actually most of the Linux distros are now using libusbx as the libusb-1.0 API provider, Fedora, Debian/Ubuntu, Arch, etc. libusbx.org have some

Re: [pyusb-users] Issue 10 feedback

2013-01-27 Thread Xiaofan Chen
On Sun, Jan 27, 2013 at 5:22 AM, Emmanuel Blot eblot...@gmail.com wrote: I not like that change. If someone want to use both versions, rename it and use.. I agree: who many installations would be broken once pyusb is updated? All Python modules that depends on pyusb would have to be updated,

Re: [pyusb-users] Compatibility with Python 3.3?

2013-01-27 Thread Xiaofan Chen
On Tue, Jan 22, 2013 at 2:09 PM, Xiaofan Chen xiaof...@gmail.com wrote: So it seems to me maybe the DLL finding method in Python 3.3 is a bit different. Google seems to suggest this is a Python 3.3 bug. http://bugs.python.org/issue16283 Title: ctypes.util.find_library does not find all DLLs

Re: [pyusb-users] Issues Updating Program from 0.x to 1.x

2013-01-21 Thread Xiaofan Chen
On Tue, Jan 15, 2013 at 6:22 AM, Ryan Speers rmspe...@gmail.com wrote: The OS is Linux: Linux host 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux We've still had no luck getting this send/receive to work after the first call to it after manually

Re: [pyusb-users] Issues Updating Program from 0.x to 1.x

2013-01-21 Thread Xiaofan Chen
On Mon, Dec 31, 2012 at 5:55 AM, Ryan Speers rmspe...@gmail.com wrote: This timeout error happens on the second USB related call within the zbdump program. Removing and reinserting the device fixes the issue. The same symptom occurs when I import libusb10 and use that explicitly. Do you have

Re: [pyusb-users] Compatibility with Python 3.3?

2013-01-21 Thread Xiaofan Chen
On Thu, Jan 10, 2013 at 3:43 PM, Cybergibbons cybergibb...@gmail.com wrote: I have been trying to use PyUSB for a few hours using Python 3.3 under Windows 7 and was getting issues with Cannot find backend. ctypes.util.find_library was failing to find the DLL, yet if I stepped through the code,

Re: [pyusb-users] Issues Updating Program from 0.x to 1.x

2013-01-14 Thread Xiaofan Chen
On Mon, Jan 7, 2013 at 5:16 PM, Wander Lairson Costa wander.lair...@gmail.com wrote: reset seems to not solving anything. The most weird part if that it works with libusb 0.1 What is the OS used here? The reset behavior is not that the same between legacy libusb-0.1 and the new libusb-1.0.

Re: [pyusb-users] libusbx

2012-12-19 Thread Xiaofan Chen
On Wed, Dec 19, 2012 at 11:06 PM, Stenquist, Carl carl.stenqu...@renesas.com wrote: Dear PyUSB group, How can I find info on using libusbx together with PyUSB? I have successfully (for the most part) used the old libusb0.dll, but how install and use libusbx with PyUSB? There must be some info

Re: [pyusb-users] device.get_active_configuration() results in error

2012-12-14 Thread Xiaofan Chen
On Fri, Dec 14, 2012 at 6:29 PM, Stefano Di Martino stefan...@gmx.net wrote: Well set_configuration() delivers on some devices like usb to uart cable the error [Errno 40] Operation not supported or unimplemented on this platform. Which driver are you using? For WinUSB.sys and libusbK.sys, they

Re: [pyusb-users] device.get_active_configuration() results in error

2012-12-14 Thread Xiaofan Chen
On Fri, Dec 14, 2012 at 10:28 PM, Stefano Di Martino stefan...@gmx.net wrote: I don't know which driver I'm using. How can I find out? I'm using set_configuration() without parameters, so it should work in any case, shouldn't it? No. So you have not install a supported driver (libusb0.sys,

Re: [pyusb-users] device.get_active_configuration() results in error

2012-12-14 Thread Xiaofan Chen
On Fri, Dec 14, 2012 at 10:32 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Fri, Dec 14, 2012 at 10:28 PM, Stefano Di Martino stefan...@gmx.net wrote: I don't know which driver I'm using. How can I find out? I'm using set_configuration() without parameters, so it should work in any case

Re: [pyusb-users] Devices disconnects after several request

2012-11-09 Thread Xiaofan Chen
On Fri, Nov 9, 2012 at 7:06 PM, Stefano Di Martino stefan...@gmx.net wrote: Well, my solution is nothing else than a deferment, that is, the problem still exists. It takes longer to show up, but is shows up! If you can, test your pyusb code inside Linux to see if there are similar problems or

Re: [pyusb-users] Devices disconnects after several request

2012-11-08 Thread Xiaofan Chen
On Thu, Nov 8, 2012 at 8:57 PM, Wander Lairson Costa wander.lair...@gmail.com wrote: 2012/11/8 Stefano Di Martino stefan...@gmx.net: Is this occurring regardless of OS or it occurs only on Linux/Windows? If Windows, what backend of libusbx are you using (winusb,libusbK,libusb-win32) ? I'm

Re: [pyusb-users] Using the Library Question

2012-09-26 Thread Xiaofan Chen
On Thu, Sep 27, 2012 at 9:33 AM, Xiaofan Chen xiaof...@gmail.com wrote: On Thu, Sep 27, 2012 at 9:17 AM, Bryce Gamble iamhighlan...@hotmail.com wrote: I'm running on Windows 7 32-bit. If I need to install mouse drivers, I may be in trouble. The real reason I started playing with pyusb

Re: [pyusb-users] Using the Library Question

2012-09-26 Thread Xiaofan Chen
On Thu, Sep 27, 2012 at 9:44 AM, Bryce Gamble iamhighlan...@hotmail.com wrote: That sounds fantastic! I'm still kind of stumbling a bit with this USB stuff. Do you know of any materials I can read to learn more about making our device generic? I know there's a USB standard that might supply

Re: [pyusb-users] alpha releases [Was: pyusb on Android?]

2012-08-25 Thread Xiaofan Chen
On Sun, Aug 26, 2012 at 6:54 AM, Wander Lairson Costa wander.lair...@gmail.com wrote: PATH_MAX=1024 for OpenBSD 5.1 release and NetBSD 6.0Beta2 using Emmanuel's test program. Just pushed the fixes for OpenBSD and NetBSD. Thanks, Xiaofan. Thanks. I can confirm that now libusb0 backend works

Re: [pyusb-users] alpha releases [Was: pyusb on Android?]

2012-07-17 Thread Xiaofan Chen
On Tue, Jul 17, 2012 at 6:33 PM, Wander Lairson Costa wander.lair...@gmail.com wrote: 2012/7/16 Xiaofan Chen xiaof...@gmail.com: On Tue, Jul 17, 2012 at 10:10 AM, Xiaofan Chen xiaof...@gmail.com wrote: Now that NetBSD and OpenBSD also have libusb-1.0/libusbx support along with the legacy

Re: [pyusb-users] alpha releases [Was: pyusb on Android?]

2012-07-17 Thread Xiaofan Chen
On Tue, Jul 17, 2012 at 6:31 PM, Wander Lairson Costa wander.lair...@gmail.com wrote: 2012/7/16 Xiaofan Chen xiaof...@gmail.com: Now that NetBSD and OpenBSD also have libusb-1.0/libusbx support along with the legacy libusb-0.1 support. So I would like to try out pyusb under NetBSD/OpenBSD

Re: [pyusb-users] alpha releases [Was: pyusb on Android?]

2012-07-16 Thread Xiaofan Chen
On Mon, Jul 16, 2012 at 9:34 AM, Xiaofan Chen xiaof...@gmail.com wrote: On Sun, Jul 15, 2012 at 11:36 PM, Wander Lairson Costa wander.lair...@gmail.com wrote: 2012/7/15 Xiaofan Chen xiaof...@gmail.com: Same results as before. I am using FreeBSD 9's own libusb-1.0 and libusb-0.1 wrapper which

Re: [pyusb-users] alpha releases [Was: pyusb on Android?]

2012-07-16 Thread Xiaofan Chen
On Mon, Jul 16, 2012 at 10:40 PM, Xiaofan Chen xiaof...@gmail.com wrote: More information. It seems to me pyusb libusb0 backend is trying to enumerate the device but somehow does not finish the job properly under Mac OS X. mymacmini:test xiaofanc$ export PYUSB_DEBUG_LEVEL=debug

Re: [pyusb-users] alpha releases [Was: pyusb on Android?]

2012-07-16 Thread Xiaofan Chen
More information. It seems to me pyusb libusb0 backend is trying to enumerate the device but somehow does not finish the job properly under Mac OS X. mymacmini:test xiaofanc$ export PYUSB_DEBUG_LEVEL=debug mymacmini:test xiaofanc$ export LIBUSB_DEBUG=4 mymacmini:test xiaofanc$ cat test_libusb0.py

  1   2   >