mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-23 16:58:33 +03:00
change to own USB vendor/device ID
we shouldn't re-use the vendor/device ID usd by simtrace1, as the protocol is incompatible and applications for simtrace 1 don't work with simtrace2. Also, there's a different processor architecutre in the hardware.
This commit is contained in:
@@ -181,8 +181,8 @@
|
|||||||
#define BOARD_USB_BMATTRIBUTES USBConfigurationDescriptor_BUSPOWERED_NORWAKEUP
|
#define BOARD_USB_BMATTRIBUTES USBConfigurationDescriptor_BUSPOWERED_NORWAKEUP
|
||||||
//#define BOARD_USB_BMATTRIBUTES USBConfigurationDescriptor_SELFPOWERED_RWAKEUP
|
//#define BOARD_USB_BMATTRIBUTES USBConfigurationDescriptor_SELFPOWERED_RWAKEUP
|
||||||
|
|
||||||
#define SIMTRACE_VENDOR_ID 0x16c0
|
#define SIMTRACE_VENDOR_ID 0x1d50
|
||||||
#define SIMTRACE_PRODUCT_ID 0x0762
|
#define SIMTRACE_PRODUCT_ID 0x60e3
|
||||||
#define USB_VENDOR_ID OPENPCD_VENDOR_ID
|
#define USB_VENDOR_ID OPENPCD_VENDOR_ID
|
||||||
#define USB_PRODUCT_ID SIMTRACE_PRODUCT_ID
|
#define USB_PRODUCT_ID SIMTRACE_PRODUCT_ID
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import sys
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
def find_dev():
|
def find_dev():
|
||||||
dev = usb.core.find(idVendor=0x16c0, idProduct=0x0762)
|
dev = usb.core.find(idVendor=0x1d50, idProduct=0x60e3)
|
||||||
if dev is None:
|
if dev is None:
|
||||||
raise ValueError("Device not found")
|
raise ValueError("Device not found")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user