You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(3) |
Nov
(4) |
Dec
|
2008 |
Jan
(1) |
Feb
(5) |
Mar
(2) |
Apr
|
May
(8) |
Jun
(4) |
Jul
|
Aug
|
Sep
(11) |
Oct
|
Nov
|
Dec
(20) |
2009 |
Jan
(16) |
Feb
(7) |
Mar
(9) |
Apr
(4) |
May
(6) |
Jun
(17) |
Jul
(3) |
Aug
(4) |
Sep
(5) |
Oct
(10) |
Nov
(16) |
Dec
|
2010 |
Jan
(22) |
Feb
(18) |
Mar
(9) |
Apr
(102) |
May
(29) |
Jun
(40) |
Jul
(80) |
Aug
(21) |
Sep
(47) |
Oct
(13) |
Nov
(19) |
Dec
(45) |
2011 |
Jan
(82) |
Feb
(20) |
Mar
(47) |
Apr
(25) |
May
(18) |
Jun
(24) |
Jul
(24) |
Aug
(47) |
Sep
(23) |
Oct
(22) |
Nov
(69) |
Dec
(20) |
2012 |
Jan
(56) |
Feb
(42) |
Mar
(43) |
Apr
(27) |
May
(18) |
Jun
(11) |
Jul
(61) |
Aug
(19) |
Sep
(13) |
Oct
(49) |
Nov
(32) |
Dec
(37) |
2013 |
Jan
(46) |
Feb
(14) |
Mar
(13) |
Apr
(20) |
May
(20) |
Jun
(3) |
Jul
(19) |
Aug
(7) |
Sep
(4) |
Oct
(33) |
Nov
(7) |
Dec
(15) |
2014 |
Jan
(5) |
Feb
(21) |
Mar
(3) |
Apr
(3) |
May
(30) |
Jun
(1) |
Jul
(30) |
Aug
(2) |
Sep
(22) |
Oct
(14) |
Nov
(22) |
Dec
(6) |
2015 |
Jan
(7) |
Feb
(4) |
Mar
(16) |
Apr
(9) |
May
(17) |
Jun
(28) |
Jul
(3) |
Aug
(18) |
Sep
(3) |
Oct
|
Nov
(6) |
Dec
(3) |
2016 |
Jan
(15) |
Feb
(18) |
Mar
(12) |
Apr
(14) |
May
(15) |
Jun
(3) |
Jul
(3) |
Aug
(42) |
Sep
(24) |
Oct
(6) |
Nov
(5) |
Dec
(6) |
2017 |
Jan
(6) |
Feb
(2) |
Mar
(12) |
Apr
|
May
(1) |
Jun
(3) |
Jul
(2) |
Aug
(6) |
Sep
|
Oct
(1) |
Nov
(5) |
Dec
(7) |
2018 |
Jan
|
Feb
(9) |
Mar
(7) |
Apr
|
May
(10) |
Jun
(20) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
(20) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(9) |
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
(5) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
|
Nov
(8) |
Dec
(2) |
2021 |
Jan
(16) |
Feb
(1) |
Mar
|
Apr
(9) |
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
(2) |
Nov
|
Dec
(1) |
2022 |
Jan
|
Feb
(7) |
Mar
|
Apr
(4) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(2) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Jay N. <ja...@ne...> - 2016-05-09 15:09:29
|
I have been having issues getting my program to run as an exe using packager pyinstaller version 3.1.1. There is a version 3.2 but it has other issues so I cannot use it. My program checks the status of the Zebra KR403 printer and my program works fine in my Python 2.7.9 environment, PYUsb 1.0.0, on Windows 7, but when I create the exe it does not work. Pyinstaller 2.1 works ok but my other parts of my program have been updated and I cannot use it any longer, the list of problems there is too long. This is how I set up the backend in my code in my python environment: import usb import usb.core import usb.util import usb.backend.libusb10 as libusb10 import sys import requests dev = usb.core.find(idVendor= int(VID), idProduct= int(PID), backend=libusb10.get_backend()) After creating my exe, when I run it from the command prompt I get the following: Traceback (most recent call last): File "<string>", line 184, in <module> File "usb\core.py", line 846, in find ValueError: No backend available ZebraKR403PaperStatus2.2 returned -1 I understand that this could be an issue with pyinstaller and I will report the same issue there. Does anyone else have this issue or have a solution? Thanks in advance: Jay |
From: Jacques-D. P. <Jac...@bl...> - 2016-05-03 19:02:16
|
Gratulations for the achievment! And all the hard work behind... Best Regards, Jacques-D. On 01. 05. 16 01:09, Wander Lairson Costa wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi there, > > I am proud to announce that the stable version is finally out! Many > thanks to all of you who has contributed to this milestone. > > - -- > Best Regards, > Wander Lairson Costa > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > > iQEcBAEBAgAGBQJXJTsuAAoJEAhMVYRULhV0vCMH/R9iBMISphJVi4JDx1bjydeP > KlaFRRTzHHhJ3nybPNVEbdW/wSZYymY+Mj3rCA8xowVXaGF37ozG/ghIKPQBO8gx > FjlwzK02gbX5KI41UMMjKs++6Iq5megzYYaA3NEPf92bg17a2bSDLrMeecSreOjd > UoA0Hr692YPAx5aKpX1y3Jvj3PUlCE6qhRY8wnIVtpiG6co5tAt8n5Cras+wsbHo > x3kx6t3iX4t+qeqed6k4FMiGmZ205uiv+FaySu2CAwTLgEsCKMdym4xA6f08bwb9 > DX1mMlqSfJdVnhndsBuf7ZGx6v8aUZ5Q9hIZSdJjCI+N4FCKzeDYyZNcPyQQgts= > =jPxu > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > |
From: Er. J. V. <jay...@gm...> - 2016-05-01 08:44:50
|
Great. On Sun, May 1, 2016 at 4:39 AM, Wander Lairson Costa < wan...@gm...> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi there, > > I am proud to announce that the stable version is finally out! Many > thanks to all of you who has contributed to this milestone. > > - -- > Best Regards, > Wander Lairson Costa > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > > iQEcBAEBAgAGBQJXJTsuAAoJEAhMVYRULhV0vCMH/R9iBMISphJVi4JDx1bjydeP > KlaFRRTzHHhJ3nybPNVEbdW/wSZYymY+Mj3rCA8xowVXaGF37ozG/ghIKPQBO8gx > FjlwzK02gbX5KI41UMMjKs++6Iq5megzYYaA3NEPf92bg17a2bSDLrMeecSreOjd > UoA0Hr692YPAx5aKpX1y3Jvj3PUlCE6qhRY8wnIVtpiG6co5tAt8n5Cras+wsbHo > x3kx6t3iX4t+qeqed6k4FMiGmZ205uiv+FaySu2CAwTLgEsCKMdym4xA6f08bwb9 > DX1mMlqSfJdVnhndsBuf7ZGx6v8aUZ5Q9hIZSdJjCI+N4FCKzeDYyZNcPyQQgts= > =jPxu > -----END PGP SIGNATURE----- > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications > Manager > Applications Manager provides deep performance insights into multiple > tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > -- Thanks, Regards, *Er. Jay Vora* M : 91 - 9879354457. (Not miles, just an email away...) Twitter <http://twitter.com/#%21/jaynvora> Facebook <http://www.facebook.com/jaynvora> LinkedIn <http://www.linkedin.com/in/jaynvora> Blogger <http://jayvora.blogspot.com> "No Seconds to be Wasted for Formalities, I have a lot to Execute !" - Jay Vora |
From: Wander L. C. <wan...@gm...> - 2016-04-30 23:10:27
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, I am proud to announce that the stable version is finally out! Many thanks to all of you who has contributed to this milestone. - -- Best Regards, Wander Lairson Costa -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJXJTsuAAoJEAhMVYRULhV0vCMH/R9iBMISphJVi4JDx1bjydeP KlaFRRTzHHhJ3nybPNVEbdW/wSZYymY+Mj3rCA8xowVXaGF37ozG/ghIKPQBO8gx FjlwzK02gbX5KI41UMMjKs++6Iq5megzYYaA3NEPf92bg17a2bSDLrMeecSreOjd UoA0Hr692YPAx5aKpX1y3Jvj3PUlCE6qhRY8wnIVtpiG6co5tAt8n5Cras+wsbHo x3kx6t3iX4t+qeqed6k4FMiGmZ205uiv+FaySu2CAwTLgEsCKMdym4xA6f08bwb9 DX1mMlqSfJdVnhndsBuf7ZGx6v8aUZ5Q9hIZSdJjCI+N4FCKzeDYyZNcPyQQgts= =jPxu -----END PGP SIGNATURE----- |
From: John T. <jt...@gn...> - 2016-04-25 11:29:59
|
Steve, Thanks so much for the info and the link all I can say is wow. The scanner is indeed a Honeywell Xenon Model 1900. And I'm using LinuxMint 17.3 as the OS. I will go down the pyserial path. So much to learn and so little time. Thanks JT On 4/24/2016 2:33 PM, Steven Michalske wrote: > 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 Honeywell, so here is on of their manuals for a 2d barcode reader. > See page 2-4 of http://www.honeywellaidc.com/CatalogDocuments/Xenon-UG.pdf > Clearly it states that to enable the USB CDC mode you scan that barcode. > > To enable USB-CDC mode of the barcode scanner. > Windows needs a driver, but mac and linux will use the generic USB-CDC driver. > > Now you will connect with pySerial and communicate with your barcode scanner as a serial device. > > Happy hacking, > Steve > >> On Apr 24, 2016, at 7:22 AM, Dietmar Schwertberger <mai...@sc...> wrote: >> >> On 24.04.2016 14:34, John Thornton wrote: >>> I've established communications with it and added a udev rule and added >>> myself to the scanner group so I could talk to the scanner. And the >>> results so far are: >> A long way to go... >> >>> On 4/24/2016 6:06 AM, Dietmar Schwertberger wrote: >>>> button and they send keystrokes. >>>> You should have info from the manufacturer of your scanner. Maybe he has >>>> implemented CDC (aka Virtual COM Port). >> For Windows, Honeywell offers a USB Serial Driver. >> So you may try CDC as well, either as serial port or via pyusb. >> >> Regards, >> >> Dietmar >> >> ------------------------------------------------------------------------------ >> Find and fix application performance issues faster with Applications Manager >> Applications Manager provides deep performance insights into multiple tiers of >> your business applications. It resolves application problems quickly and >> reduces your MTTR. Get your free trial! >> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z >> _______________________________________________ >> pyusb-users mailing list >> pyu...@li... >> https://lists.sourceforge.net/lists/listinfo/pyusb-users > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users |
From: Steven M. <smi...@gm...> - 2016-04-24 19:33:21
|
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 Honeywell, so here is on of their manuals for a 2d barcode reader. See page 2-4 of http://www.honeywellaidc.com/CatalogDocuments/Xenon-UG.pdf Clearly it states that to enable the USB CDC mode you scan that barcode. To enable USB-CDC mode of the barcode scanner. Windows needs a driver, but mac and linux will use the generic USB-CDC driver. Now you will connect with pySerial and communicate with your barcode scanner as a serial device. Happy hacking, Steve > On Apr 24, 2016, at 7:22 AM, Dietmar Schwertberger <mai...@sc...> wrote: > > On 24.04.2016 14:34, John Thornton wrote: >> I've established communications with it and added a udev rule and added >> myself to the scanner group so I could talk to the scanner. And the >> results so far are: > A long way to go... > >> On 4/24/2016 6:06 AM, Dietmar Schwertberger wrote: >>> button and they send keystrokes. >>> You should have info from the manufacturer of your scanner. Maybe he has >>> implemented CDC (aka Virtual COM Port). > For Windows, Honeywell offers a USB Serial Driver. > So you may try CDC as well, either as serial port or via pyusb. > > Regards, > > Dietmar > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users |
From: Dietmar S. <mai...@sc...> - 2016-04-24 14:22:58
|
On 24.04.2016 14:34, John Thornton wrote: > I've established communications with it and added a udev rule and added > myself to the scanner group so I could talk to the scanner. And the > results so far are: A long way to go... > On 4/24/2016 6:06 AM, Dietmar Schwertberger wrote: >> button and they send keystrokes. >> You should have info from the manufacturer of your scanner. Maybe he has >> implemented CDC (aka Virtual COM Port). For Windows, Honeywell offers a USB Serial Driver. So you may try CDC as well, either as serial port or via pyusb. Regards, Dietmar |
From: John T. <jt...@gn...> - 2016-04-24 12:34:57
|
In this case it is a hand scanner to test the code with as the second project is an operator will scan a bar code and auto load the G code file into the CNC software. I've established communications with it and added a udev rule and added myself to the scanner group so I could talk to the scanner. And the results so far are: $ python Python 2.7.6 (default, Jun 22 2015, 18:00:18) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import usb.core >>> dev = usb.core.find(idVendor=0x0c2e, idProduct=0x0901) >>> dev.is_kernel_driver_active(0) True >>> JT On 4/24/2016 6:06 AM, Dietmar Schwertberger wrote: > On 24.04.2016 13:00, John Thornton wrote: >> The basic process is a part with a data sheet comes down the conveyor >> and when the part is in position the data sheet is scanned. The info >> from the data sheet is used by the controlling program to select the >> correct part program and other things. > But then it's not one of the standard handscanners where you press a > button and they send keystrokes. > You should have info from the manufacturer of your scanner. Maybe he has > implemented CDC (aka Virtual COM Port). > > Regards, > > Dietmar > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users |
From: Dietmar S. <mai...@sc...> - 2016-04-24 12:10:03
|
On 24.04.2016 13:00, John Thornton wrote: > The basic process is a part with a data sheet comes down the conveyor > and when the part is in position the data sheet is scanned. The info > from the data sheet is used by the controlling program to select the > correct part program and other things. But then it's not one of the standard handscanners where you press a button and they send keystrokes. You should have info from the manufacturer of your scanner. Maybe he has implemented CDC (aka Virtual COM Port). Regards, Dietmar |
From: John T. <jt...@gn...> - 2016-04-24 11:00:43
|
The basic process is a part with a data sheet comes down the conveyor and when the part is in position the data sheet is scanned. The info from the data sheet is used by the controlling program to select the correct part program and other things. JT On 4/23/2016 10:38 AM, Tom Sanders wrote: > Most barcode scanners work like keyboards: they simulate keypresses. > IMO using pyusb is propably overkill. I would go for the standard keyboard input routines. > > Cheers > Tom > > >> I'm trying to scan a barcode into a python program. Are there any >> tutorials on doing this with pyusb? Or any hints on where to start. >> >> So far I've loaded pyusb 1.x and can get a list of the USB busses and >> I've found out how to use pydoc to get the docs. >> >> JT >> >> ------------------------------------------------------------------------------ >> Find and fix application performance issues faster with Applications Manager >> Applications Manager provides deep performance insights into multiple tiers of >> your business applications. It resolves application problems quickly and >> reduces your MTTR. Get your free trial! >> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z >> _______________________________________________ >> pyusb-users mailing list >> pyu...@li... >> https://lists.sourceforge.net/lists/listinfo/pyusb-users >> > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users |
From: John T. <jt...@gn...> - 2016-04-24 10:56:26
|
The problem with that is I have to scan a G code file name into LinuxCNC without any operator. So it has to be automatic. JT On 4/23/2016 10:38 AM, Tom Sanders wrote: > Most barcode scanners work like keyboards: they simulate keypresses. > IMO using pyusb is propably overkill. I would go for the standard keyboard input routines. > > Cheers > Tom > > >> I'm trying to scan a barcode into a python program. Are there any >> tutorials on doing this with pyusb? Or any hints on where to start. >> >> So far I've loaded pyusb 1.x and can get a list of the USB busses and >> I've found out how to use pydoc to get the docs. >> >> JT >> >> ------------------------------------------------------------------------------ >> Find and fix application performance issues faster with Applications Manager >> Applications Manager provides deep performance insights into multiple tiers of >> your business applications. It resolves application problems quickly and >> reduces your MTTR. Get your free trial! >> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z >> _______________________________________________ >> pyusb-users mailing list >> pyu...@li... >> https://lists.sourceforge.net/lists/listinfo/pyusb-users >> > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users |
From: Tom S. <t.s...@dg...> - 2016-04-23 15:56:02
|
Most barcode scanners work like keyboards: they simulate keypresses. IMO using pyusb is propably overkill. I would go for the standard keyboard input routines. Cheers Tom > I'm trying to scan a barcode into a python program. Are there any > tutorials on doing this with pyusb? Or any hints on where to start. > > So far I've loaded pyusb 1.x and can get a list of the USB busses and > I've found out how to use pydoc to get the docs. > > JT > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > |
From: John T. <jt...@gn...> - 2016-04-23 12:05:09
|
I'm trying to scan a barcode into a python program. Are there any tutorials on doing this with pyusb? Or any hints on where to start. So far I've loaded pyusb 1.x and can get a list of the USB busses and I've found out how to use pydoc to get the docs. JT |
From: burgie s. <mr...@gm...> - 2016-04-08 08:59:26
|
Thanks for that, that was all I needed to work it out, looking at the help for various commands Adjusted the code as follows and it works great every time: dev.reset() if dev.is_kernel_driver_active(0) == True: dev.detach_kernel_driver(0) dev.set_configuration() Cheers Clint On Fri, Apr 8, 2016 at 10:48 AM, Alan Jhonn Aguiar Schwyn < al...@ho...> wrote: > This returns "true" ? > > dev.is_kernel_driver_active() > > > ------------------------------ > Date: Fri, 8 Apr 2016 10:42:07 +1000 > From: mr...@gm... > To: pyu...@li... > Subject: [pyusb-users] "Resource Busy" error message. > > > Hi All, > > First time poster here from Brisbane Australia :) > I have only just started with using pyusb, so any advice would be greatly > appreciated. > > My system - 64bit Arch Linux. > > > I'm attempting to send commands to a Kuando Busylight ( > http://www.plenom.com/), using the example code here - > https://github.com/walac/pyusb/blob/master/docs/tutorial.rst. At this > stage all I have changed in the source code is the vendor and product > ids to match the Busylight. > > The device is being found without problems using Vendor and Product IDs: > "dev = usb.core.find(idVendor=0x04d8, idProduct=0xf848)" > > The next line "dev.set_configuration()" is raising a USBError. > > > Result is the same in Python 2.7: > > Traceback (most recent call last): > File "./busylight.py", line 19, in <module> > dev.set_configuration() > File "/usr/lib/python2.7/site-packages/usb/core.py", line 799, in > set_configuration > self._ctx.managed_set_configuration(self, configuration) > File "/usr/lib/python2.7/site-packages/usb/core.py", line 128, in > managed_set_configuration > self.backend.set_configuration(self.handle, cfg.bConfigurationValue) > File "/usr/lib/python2.7/site-packages/usb/backend/libusb1.py", line > 730, in set_configuration > _check(self.lib.libusb_set_configuration(dev_handle.handle, > config_value)) > File "/usr/lib/python2.7/site-packages/usb/backend/libusb1.py", line > 552, in _check > raise USBError(_strerror(ret), ret, _libusb_errno[ret]) > usb.core.USBError: [Errno 16] Resource busy > > > And also in Python 3.5: > > Traceback (most recent call last): > File "./busylight.py", line 19, in <module> > dev.set_configuration() > File "/usr/lib/python3.5/site-packages/usb/core.py", line 799, in > set_configuration > self._ctx.managed_set_configuration(self, configuration) > File "/usr/lib/python3.5/site-packages/usb/core.py", line 128, in > managed_set_configuration > self.backend.set_configuration(self.handle, cfg.bConfigurationValue) > File "/usr/lib/python3.5/site-packages/usb/backend/libusb1.py", line > 730, in set_configuration > _check(self.lib.libusb_set_configuration(dev_handle.handle, > config_value)) > File "/usr/lib/python3.5/site-packages/usb/backend/libusb1.py", line > 552, in _check > raise USBError(_strerror(ret), ret, _libusb_errno[ret]) > usb.core.USBError: [Errno 16] Resource busy > > > Thanks in advance. > > > Cheers > Clint > > > ------------------------------------------------------------------------------ > _______________________________________________ pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > > ------------------------------------------------------------------------------ > > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > |
From: Alan J. A. S. <al...@ho...> - 2016-04-08 00:49:01
|
This returns "true" ? dev.is_kernel_driver_active() Date: Fri, 8 Apr 2016 10:42:07 +1000 From: mr...@gm... To: pyu...@li... Subject: [pyusb-users] "Resource Busy" error message. Hi All, First time poster here from Brisbane Australia :)I have only just started with using pyusb, so any advice would be greatly appreciated. My system - 64bit Arch Linux. I'm attempting to send commands to a Kuando Busylight (http://www.plenom.com/), using the example code here - https://github.com/walac/pyusb/blob/master/docs/tutorial.rst. At this stage all I have changed in the source code is the vendor and product ids to match the Busylight. The device is being found without problems using Vendor and Product IDs:"dev = usb.core.find(idVendor=0x04d8, idProduct=0xf848)" The next line "dev.set_configuration()" is raising a USBError. Result is the same in Python 2.7: Traceback (most recent call last): File "./busylight.py", line 19, in <module> dev.set_configuration() File "/usr/lib/python2.7/site-packages/usb/core.py", line 799, in set_configuration self._ctx.managed_set_configuration(self, configuration) File "/usr/lib/python2.7/site-packages/usb/core.py", line 128, in managed_set_configuration self.backend.set_configuration(self.handle, cfg.bConfigurationValue) File "/usr/lib/python2.7/site-packages/usb/backend/libusb1.py", line 730, in set_configuration _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value)) File "/usr/lib/python2.7/site-packages/usb/backend/libusb1.py", line 552, in _check raise USBError(_strerror(ret), ret, _libusb_errno[ret]) usb.core.USBError: [Errno 16] Resource busy And also in Python 3.5: Traceback (most recent call last): File "./busylight.py", line 19, in <module> dev.set_configuration() File "/usr/lib/python3.5/site-packages/usb/core.py", line 799, in set_configuration self._ctx.managed_set_configuration(self, configuration) File "/usr/lib/python3.5/site-packages/usb/core.py", line 128, in managed_set_configuration self.backend.set_configuration(self.handle, cfg.bConfigurationValue) File "/usr/lib/python3.5/site-packages/usb/backend/libusb1.py", line 730, in set_configuration _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value)) File "/usr/lib/python3.5/site-packages/usb/backend/libusb1.py", line 552, in _check raise USBError(_strerror(ret), ret, _libusb_errno[ret]) usb.core.USBError: [Errno 16] Resource busy Thanks in advance. Cheers Clint ------------------------------------------------------------------------------ _______________________________________________ pyusb-users mailing list pyu...@li... https://lists.sourceforge.net/lists/listinfo/pyusb-users |
From: burgie s. <mr...@gm...> - 2016-04-08 00:42:15
|
Hi All, First time poster here from Brisbane Australia :) I have only just started with using pyusb, so any advice would be greatly appreciated. My system - 64bit Arch Linux. I'm attempting to send commands to a Kuando Busylight ( http://www.plenom.com/), using the example code here - https://github.com/walac/pyusb/blob/master/docs/tutorial.rst. At this stage all I have changed in the source code is the vendor and product ids to match the Busylight. The device is being found without problems using Vendor and Product IDs: "dev = usb.core.find(idVendor=0x04d8, idProduct=0xf848)" The next line "dev.set_configuration()" is raising a USBError. Result is the same in Python 2.7: Traceback (most recent call last): File "./busylight.py", line 19, in <module> dev.set_configuration() File "/usr/lib/python2.7/site-packages/usb/core.py", line 799, in set_configuration self._ctx.managed_set_configuration(self, configuration) File "/usr/lib/python2.7/site-packages/usb/core.py", line 128, in managed_set_configuration self.backend.set_configuration(self.handle, cfg.bConfigurationValue) File "/usr/lib/python2.7/site-packages/usb/backend/libusb1.py", line 730, in set_configuration _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value)) File "/usr/lib/python2.7/site-packages/usb/backend/libusb1.py", line 552, in _check raise USBError(_strerror(ret), ret, _libusb_errno[ret]) usb.core.USBError: [Errno 16] Resource busy And also in Python 3.5: Traceback (most recent call last): File "./busylight.py", line 19, in <module> dev.set_configuration() File "/usr/lib/python3.5/site-packages/usb/core.py", line 799, in set_configuration self._ctx.managed_set_configuration(self, configuration) File "/usr/lib/python3.5/site-packages/usb/core.py", line 128, in managed_set_configuration self.backend.set_configuration(self.handle, cfg.bConfigurationValue) File "/usr/lib/python3.5/site-packages/usb/backend/libusb1.py", line 730, in set_configuration _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value)) File "/usr/lib/python3.5/site-packages/usb/backend/libusb1.py", line 552, in _check raise USBError(_strerror(ret), ret, _libusb_errno[ret]) usb.core.USBError: [Errno 16] Resource busy Thanks in advance. Cheers Clint |
From: Mark M. <mar...@gm...> - 2016-04-06 13:00:00
|
Hi All, I plan to use Kivy with a USB-connected device on Android, and I am researching the various options available to me. I have a C-based solution with Python wrapper that works using libusb + libftdi right now (on Windows/Linux), but my initial impression is that this is not going to work on Android as libusb is not the default driver. However, I noticed there is a recipe in Python4Android here: https://github.com/kivy/python-for-android/tree/master/pythonforandroid/recipes/pyusb This seems to indicate that pyusb, and maybe even libusb is usable somehow on Android from Python? Does anyone know anything about this? And can anyone confirm if this will work (or not work)? My other alternative is to use the native Java D2XX library from FTDI and wrap that it Python using pyjnius. I'm just trying to get a feel for what is the least amount of work (or the best overall solution) at the moment. Thanks, Mark. |
From: Till H. <ti...@ha...> - 2016-03-20 11:22:22
|
Hi, i am too sorry. Having searched half the evening a few seconds after asking my question i found the "Specifying libraries by hand" section in the manual. And indeed this: >>> import usb.core >>> import usb.backend.libusb1 >>> >>> backend = usb.backend.libusb1.get_backend(find_library=lambda x: "/ usr/lib/libusb-1.0.so") >>> dev = usb.core.find(..., backend=backend) Solves my problem!! Sorry for asking too early! Till On Sunday, March 20, 2016 12:10:49 PM Till Harbaum wrote: > Hi, > > i am trying to use pyusb on a buildroot based embedded setup running on a ti > sitara. But i struggle to get it to recognize a backend: > > # python > Python 2.7.11 (default, Mar 19 2016, 14:18:04) > [GCC 5.2.1 20151005] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > > >>> import os > >>> os.environ['PYUSB_DEBUG'] = 'debug' > >>> import usb.core > >>> usb.core.find() > > 2016-03-19 22:11:46,002 ERROR:usb.libloader:'Libusb 1' could not be found > 2016-03-19 22:11:46,013 ERROR:usb.backend.libusb1:Error loading libusb 1.0 > backend > 2016-03-19 22:11:46,079 ERROR:usb.libloader:'OpenUSB library' could not be > found > 2016-03-19 22:11:46,089 ERROR:usb.backend.openusb:Error loading OpenUSB > backend > 2016-03-19 22:11:46,258 ERROR:usb.libloader:'Libusb 0' could not be found > 2016-03-19 22:11:46,268 ERROR:usb.backend.libusb0:Error loading libusb 0.1 > backend > > The shared libs are there: > # ls -la /usr/lib/libusb* > lrwxrwxrwx 1 root root 19 Mar 19 14:51 /usr/lib/ > libusb-0.1.so.4 -> libusb-0.1.so.4.4.4 > -rwxr-xr-x 1 root root 10872 Mar 19 15:17 /usr/lib/ > libusb-0.1.so.4.4.4 > lrwxrwxrwx 1 root root 19 Mar 19 14:20 /usr/lib/ > libusb-1.0.so -> libusb-1.0.so.0.1.0 > lrwxrwxrwx 1 root root 19 Mar 19 14:20 /usr/lib/ > libusb-1.0.so.0 -> libusb-1.0.so.0.1.0 > -rwxr-xr-x 1 root root 57400 Mar 19 15:17 /usr/lib/ > libusb-1.0.so.0.1.0 > lrwxrwxrwx 1 root root 19 Mar 19 14:51 /usr/lib/libusb.so > -> libusb-0.1.so.4.4.4 > > Now i am missing the bridge between pyusb and those shared libs. > > How can i debug further? I tried stracing the whole setup but i don't see it > even trying to open any library. How exaclty is pyusb trying to open those > libraries. Under which paths and which names is it supposed to search? > > Thanks, > Till -- Dr. Till Harbaum <ti...@ha...> |
From: Till H. <ti...@ha...> - 2016-03-20 11:10:58
|
Hi, i am trying to use pyusb on a buildroot based embedded setup running on a ti sitara. But i struggle to get it to recognize a backend: # python Python 2.7.11 (default, Mar 19 2016, 14:18:04) [GCC 5.2.1 20151005] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.environ['PYUSB_DEBUG'] = 'debug' >>> import usb.core >>> usb.core.find() 2016-03-19 22:11:46,002 ERROR:usb.libloader:'Libusb 1' could not be found 2016-03-19 22:11:46,013 ERROR:usb.backend.libusb1:Error loading libusb 1.0 backend 2016-03-19 22:11:46,079 ERROR:usb.libloader:'OpenUSB library' could not be found 2016-03-19 22:11:46,089 ERROR:usb.backend.openusb:Error loading OpenUSB backend 2016-03-19 22:11:46,258 ERROR:usb.libloader:'Libusb 0' could not be found 2016-03-19 22:11:46,268 ERROR:usb.backend.libusb0:Error loading libusb 0.1 backend The shared libs are there: # ls -la /usr/lib/libusb* lrwxrwxrwx 1 root root 19 Mar 19 14:51 /usr/lib/ libusb-0.1.so.4 -> libusb-0.1.so.4.4.4 -rwxr-xr-x 1 root root 10872 Mar 19 15:17 /usr/lib/ libusb-0.1.so.4.4.4 lrwxrwxrwx 1 root root 19 Mar 19 14:20 /usr/lib/ libusb-1.0.so -> libusb-1.0.so.0.1.0 lrwxrwxrwx 1 root root 19 Mar 19 14:20 /usr/lib/ libusb-1.0.so.0 -> libusb-1.0.so.0.1.0 -rwxr-xr-x 1 root root 57400 Mar 19 15:17 /usr/lib/ libusb-1.0.so.0.1.0 lrwxrwxrwx 1 root root 19 Mar 19 14:51 /usr/lib/libusb.so -> libusb-0.1.so.4.4.4 Now i am missing the bridge between pyusb and those shared libs. How can i debug further? I tried stracing the whole setup but i don't see it even trying to open any library. How exaclty is pyusb trying to open those libraries. Under which paths and which names is it supposed to search? Thanks, Till -- Dr. Till Harbaum <ti...@ha...> |
From: keith <ke...@th...> - 2016-03-11 20:52:56
|
Thanks! I think pywinusb will be what I need. Thanks for the help! keith -----Original Message----- From: Xiaofan Chen [mailto:xia...@gm...] Sent: Thursday, March 10, 2016 8:30 PM To: pyu...@li... Subject: Re: [pyusb-users] Using a different backend On Fri, Mar 11, 2016 at 7:29 AM, keith <ke...@th...> 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 > avoid the step of installing the libUSB driver. > > Currently when you plugin the device it uses HidUsb (c6.1.76…) for the > default driver. I then have to replace the driver with libUSB using > zadig in order for pyusb to be able to access it. > > Is there a way to use the default driver (hid.dll I think) when using > pyusb instead of libusb? This is on Windows 7+. Python 3.5. > > Thanks for any help you can give or pointing me in the right > direction, You should switch to libusb-1.0 backend of pyusb, libusb under Windows work with HID device with the need to switching driver to libusb-win32 or WinUSb. But there are some limitations. For generic HID device, it should work. You do need to have libusb-1.0.dll in the system. The other potentially better choice is to use pywinusb if your application is only for Windows. https://pypi.python.org/pypi/pywinusb/ https://github.com/rene-aguirre/pywinusb/wiki/Introduction If you need cross-platform support for your Python application, then pyusb and pywinusb are not good choice for HID device. In that case, you can look at HIDAPI and its Python binding. You do need to have HIDAPI in the system. https://github.com/signal11/hidapi https://github.com/apmorton/pyhidapi https://github.com/gbishop/cython-hidapi -- Xiaofan ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 _______________________________________________ pyusb-users mailing list pyu...@li... https://lists.sourceforge.net/lists/listinfo/pyusb-users |
From: Xiaofan C. <xia...@gm...> - 2016-03-11 01:30:32
|
On Wed, Mar 9, 2016 at 4:59 PM, Xiaofan Chen <xia...@gm...> wrote: > On Wed, Mar 9, 2016 at 3:13 PM, Igor Bezenchuk <ig...@ho...> wrote: >> I read at libusb maling list about usbdk which, from its description, should >> allow to attach and detach device drivers under windows. Did you hear about >> it? can it be combined with pyusb? > > Yes. It should be okay to work with pyusb. > > On the other hand, you need to install usbdk on the computer. There is > no Inbox Windows driver which can do the things you want. And I consider > usbdk to be a custom driver as well. > Further discussion here. http://libusb.6.n5.nabble.com/libusb-Write-to-OUT-EP-bulk-device-random-Bulk-data-on-Windows-td5715683.html -- Xiaofan |
From: Xiaofan C. <xia...@gm...> - 2016-03-11 01:29:39
|
On Fri, Mar 11, 2016 at 7:29 AM, keith <ke...@th...> 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 avoid the step of > installing the libUSB driver. > > Currently when you plugin the device it uses HidUsb (c6.1.76…) for the > default driver. I then have to replace the driver with libUSB using zadig in > order for pyusb to be able to access it. > > Is there a way to use the default driver (hid.dll I think) when using pyusb > instead of libusb? This is on Windows 7+. Python 3.5. > > Thanks for any help you can give or pointing me in the right direction, You should switch to libusb-1.0 backend of pyusb, libusb under Windows work with HID device with the need to switching driver to libusb-win32 or WinUSb. But there are some limitations. For generic HID device, it should work. You do need to have libusb-1.0.dll in the system. The other potentially better choice is to use pywinusb if your application is only for Windows. https://pypi.python.org/pypi/pywinusb/ https://github.com/rene-aguirre/pywinusb/wiki/Introduction If you need cross-platform support for your Python application, then pyusb and pywinusb are not good choice for HID device. In that case, you can look at HIDAPI and its Python binding. You do need to have HIDAPI in the system. https://github.com/signal11/hidapi https://github.com/apmorton/pyhidapi https://github.com/gbishop/cython-hidapi -- Xiaofan |
From: keith <ke...@th...> - 2016-03-11 00:17:11
|
Hello, 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 avoid the step of installing the libUSB driver. Currently when you plugin the device it uses HidUsb (c6.1.76.) for the default driver. I then have to replace the driver with libUSB using zadig in order for pyusb to be able to access it. Is there a way to use the default driver (hid.dll I think) when using pyusb instead of libusb? This is on Windows 7+. Python 3.5. Thanks for any help you can give or pointing me in the right direction, Keith |
From: Xiaofan C. <xia...@gm...> - 2016-03-09 09:00:08
|
On Wed, Mar 9, 2016 at 3:13 PM, Igor Bezenchuk <ig...@ho...> wrote: > I read at libusb maling list about usbdk which, from its description, should > allow to attach and detach device drivers under windows. Did you hear about > it? can it be combined with pyusb? Yes. It should be okay to work with pyusb. On the other hand, you need to install usbdk on the computer. There is no Inbox Windows driver which can do the things you want. And I consider usbdk to be a custom driver as well. -- Xiaofan |
From: Igor B. <ig...@ho...> - 2016-03-09 07:13:59
|
I read at libusb maling list about usbdk which, from its description, should allow to attach and detach device drivers under windows. Did you hear about it? can it be combined with pyusb? > Date: Wed, 9 Mar 2016 10:46:45 +0800 > From: xia...@gm... > To: pyu...@li... > Subject: Re: [pyusb-users] Trying to write to OUT EP Bulk on Win10 > > On Tue, Mar 8, 2016 at 10:33 PM, Igor Bezenchuk <ig...@ho...> 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 them. > > as I saw in other posts this issue is well known in windows, my question is > > there any way to go around this to write to device's EP in Windows without > > installing custom driver with Zadig? > > > > No way under Windows. There is no generic USB driver attaching to > all USB device. > > > -- > Xiaofan > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users |