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

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 Honeyw

Re: [pyusb-users] Change suggestion

2015-06-20 Thread Steven Michalske
> On Jun 20, 2015, at 2:10 AM, Tormod Volden 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 modified fi

Re: [pyusb-users] Dual installation of Python in Raspberry Pi

2015-03-18 Thread Steven Michalske
I strongly suggest you read up on pip and also you may want to look into virtualenv Steve > On Mar 18, 2015, at 12:37 PM, Michel Allaire wrote: > > Thank you > > I have installed pyusb with the following command as shown in the readme file > of pyusb: > > sudo python setup.py install

Re: [pyusb-users] Detect device on Mac

2014-12-29 Thread Steven Michalske
> On Dec 26, 2014, at 8:41 PM, Wander Lairson Costa > wrote: > > 2014-11-17 7:56 GMT-02:00 Oci Ocean : >> Hallo together, >> > > Hi, sorry for the delay. > >> I have a problem detecting my ir-reciever on Mac 10.8. >> The ir-reciever is noticed by the oporating system and i can control >> iT

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 exp

Re: [pyusb-users] accessing DMM

2013-10-02 Thread Steven Michalske
The damn uses a USB to serial UART converter. You can skip pyUSB and use pySERIAL on /dev/ttyUSB0. Steve. > On Oct 2, 2013, at 3:49 PM, ranzam ali wrote: > > hello frens, > > I am having problem trying to read the data from my digital multimeter > http://www.appatech.com/upload/download/fi

Re: [pyusb-users] device not found

2013-05-03 Thread Steven Michalske
Use System Profiler (Lion or earlier) or System Information (Mountain lion) and go to the USB view. It will show the information there. Alternatively, the information is in iokit. In terminal, run system_profiler SPUSBDataType Happy Hacking! On May 3, 2013, at 7:57 PM, I Rabkina wrote: > H

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 wrote: > _interop.as_array(s.encode('ut8')) Ahh, I read the _ and thought it was a private module.-- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CS

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

2013-01-27 Thread Steven Michalske
On Jan 26, 2013, at 11:04 AM, wander.lair...@gmail.com wrote: > From: Wander Lairson Costa > > In usb/_interop.py in the as_array function, the array typecodes 'c' and > 'u' are used. The 'c' typecode was removed from python 3.3 and 'u' will > is deprecated. The solution is to use the fromstrin

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 wrote: > 2013/1/26 Steven Michalske : >> What about this? >> Tested in python 2.7 and 3.3 >> >> a = array.array("B") >> s=u&

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=u"abcꬦ" 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] bulkWrite of character sequence

2012-03-29 Thread Steven Michalske
On Mar 29, 2012, at 7:47 PM, Wander Lairson Costa wrote: > 2012/3/29 Tormod Volden : >> 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.

Re: [pyusb-users] bulkWrite of character sequence

2012-03-29 Thread Steven Michalske
On Mar 29, 2012, at 7:30 PM, Tormod Volden 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 could not find y

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 2. The Agilent USB DAQ devices I have used in the past use a cypress EZ-usb chip

[Pyusb-users] Interesting error with 1.0 interface and OS X.5

2009-11-08 Thread Steven Michalske
Howdy, Under Mac OS X.5 Leopard I get the following error. with latest SVN pyUSB and libusb 1.0 driver. Traceback (most recent call last): File "USBTMC.py", line 72, in tmd = usb.core.find(find_all=1, custom_match=match_usb_tmc(), idVendor=0x0699 ) File "usb/core.py", line 789, in find