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 |