Re: [pyusb-users] Barcode Scanner

2016-04-25 Thread John Thornton
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 A

Re: [pyusb-users] Barcode Scanner

2016-04-24 Thread John Thornton
dor=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 i

Re: [pyusb-users] Barcode Scanner

2016-04-24 Thread John Thornton
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: >

Re: [pyusb-users] Barcode Scanner

2016-04-24 Thread John Thornton
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

[pyusb-users] Barcode Scanner

2016-04-23 Thread John Thornton
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 --