File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 1+ import sys
12import serial
23import serial .tools .list_ports
34import time
45import sys
56import usb .util
67from usb .backend import libusb1
78
9+
10+
811VID_2101 = 0x040e
912PID_2101 = 0xf413
1013
14+ path = sys .executable
15+
16+ path = path .replace ("python.exe" , "" )
17+
18+ backend = None
19+
20+ if sys .platform == "win32" :
21+ backend = usb .backend .libusb1 .get_backend (find_library = lambda x : "" +
22+ path + "Lib\\ site-packages\\ libusb\\ _platform\\ _windows\\ x64\\ libusb-1.0.dll" )
23+
24+ # Generator object
25+ # usb_devices = usb.core.find(find_all=True, backend=backend)
26+ usb_devices = usb .core .find (find_all = True , backend = backend )
27+ print ("usb_device:" , usb_devices )
28+
29+ # Here attached a list of Host controlloers, list of Hub,
30+ # List of periperals info with specific vid, pid.
31+
32+
1133def version ():
1234 return "Cricketlib v1.0.1"
1335
Original file line number Diff line number Diff line change 2323
2424setup (
2525 name = 'cricketapi' ,
26- version = '1.0.2 ' ,
26+ version = '1.0.3 ' ,
2727 description = 'API for MCCI Connection exercisers' ,
2828 author = 'MCCI Corporation' ,
2929 author_email = '' ,
You can’t perform that action at this time.
0 commit comments