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.
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
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'))
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
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,
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
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
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
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,