Re: [pyusb-users] interruptWrite gives unknown USB error

2010-06-02 Thread Steven Michalske
Hi, 2 things. 1. Read the USB TMC specification, it has a structure that must wrap the commands to the device. See test measurement class on this page http://www.usb.org/developers/devclass_docs#approved 2. The Agilent USB DAQ devices I have used in the past use a cypress EZ-usb chip.

Re: [pyusb-users] bulkWrite of character sequence

2012-03-29 Thread Steven Michalske
On Mar 29, 2012, at 7:30 PM, Tormod Volden lists.tor...@gmail.com wrote: On Thu, Mar 29, 2012 at 12:32 PM, Wander Lairson Costa wrote: Yes, this is a known problem that was already reported before. PyUSB 0.4 was very flexible in managing the buffer types, and PyUSB 1.0 is not that so. I

Re: [pyusb-users] [PATCH] Fix: keep compatibility with Python 3.3.

2013-01-26 Thread Steven Michalske
What about this? Tested in python 2.7 and 3.3 a = array.array(B) s=uabcꬦ try: a.fromstring(s.encode('ascii')) except UnicodeEncodeError: a.fromstring(s.encode('utf8')) print(a) array('B', [97, 98, 99, 234, 172, 166]) a = array.array(B) s=abc try: a.fromstring(s.encode('ascii'))

Re: [pyusb-users] [PATCH] Fix: keep compatibility with Python 3.3.

2013-01-27 Thread Steven Michalske
How can the user decide in your method? I don't see it. Steve On Jan 27, 2013, at 3:15 AM, Wander Lairson Costa wander.lair...@gmail.com wrote: 2013/1/26 Steven Michalske smichal...@gmail.com: What about this? Tested in python 2.7 and 3.3 a = array.array(B) s=uabcꬦ try

Re: [pyusb-users] [PATCH] Fix: keep compatibility with Python 3.3.

2013-01-27 Thread Steven Michalske
On Jan 27, 2013, at 3:35 PM, Wander Lairson Costa wander.lair...@gmail.com wrote: _interop.as_array(s.encode('ut8')) Ahh, I read the _ and thought it was a private module.-- Master Visual Studio, SharePoint, SQL,

Re: [pyusb-users] Significance of 'B' Character in Data Arrays

2014-09-29 Thread Steven Michalske
Jared, You were close, 8.6 of the docs is what you were looking for. See https://docs.python.org/2/library/array.html for full description of the python array standard library module. If you don't have a need to run python 2.7, I suggest using Python 3 it copes with bytes and strings more

Re: [pyusb-users] Change suggestion

2015-06-20 Thread Steven Michalske
On Jun 20, 2015, at 2:10 AM, Tormod Volden lists.tor...@gmail.com wrote: On Fri, Jun 19, 2015 at 4:12 PM, Hermann Hamann wrote: I am sorry, but I am too old and too stupid to learn on the fly how to use a github pull request to push some files. So I use the stone age way to attach the

Re: [pyusb-users] Barcode Scanner

2016-04-24 Thread Steven Michalske
John, Not knowing your exact barcode scanner is a real hindrance. One good piece of information you forgot to provide was what exactly you were interfacing to. USB barcode scanner is too generic, you need read http://catb.org/esr/faqs/smart-questions.html That being said the VID is from

Re: [pyusb-users] pyusb and root permissions "ValueError: The device has no langid"

2016-08-20 Thread Steven Michalske
Permissions deal with your Linux configuration. Here is a general answer for Linux. http://unix.stackexchange.com/questions/44308/understanding-udev-rules-and-permissions-in-libusb You can google for libusb permissions for your distribution if this doesn't lead to a solution. > On Aug 20,