These are not actual "serial numbers" in the strict sense, i.e. two
devices of the same type (e.g. two USBee ZX devices) would have the
same string.
Using two different actual serial numbers in such a case is not possible
since both devices would get the exact same firmware file (uploaded to
RAM via USB) and thus the exact same hardcoded "serial number". All devices
where fx2lafw is currently used don't have an EEPROM where the firmware
(and thus a different serial number) could be stored persistently; it's
always re-uploaded to the device's RAM upon connecting the device to USB.
However, the USB serial number field is still useful in that we can
store a nice device(-type) indicator string there. The benefit is that
an lsusb of an fx2lafw (after firmware upload) would yield something
specific like "USBee ZX" or "Hantek 6022BE" in addition to the very
generic "fx2lafw".
13 files changed:
PID = 0x9804 ; Product ID (0x0498)
.include "dscr.inc"
PID = 0x9804 ; Product ID (0x0498)
.include "dscr.inc"
+string_descriptor_a 3,^"Braintechnology USB-LPS"
+_dev_strings_end:
+ .dw 0x0000
PID = 0x1400 ; Product ID (0x0014)
.include "dscr.inc"
PID = 0x1400 ; Product ID (0x0014)
.include "dscr.inc"
+string_descriptor_a 3,^"CWAV USBee AX"
+_dev_strings_end:
+ .dw 0x0000
PID = 0x1500 ; Product ID (0x0015)
.include "dscr.inc"
PID = 0x1500 ; Product ID (0x0015)
.include "dscr.inc"
+string_descriptor_a 3,^"CWAV USBee DX"
+_dev_strings_end:
+ .dw 0x0000
PID = 0x0900 ; Product ID (0x0009)
.include "dscr.inc"
PID = 0x0900 ; Product ID (0x0009)
.include "dscr.inc"
+string_descriptor_a 3,^"CWAV USBee SX"
+_dev_strings_end:
+ .dw 0x0000
PID = 0x0500 ; Product ID (0x0005)
.include "dscr.inc"
PID = 0x0500 ; Product ID (0x0005)
.include "dscr.inc"
+string_descriptor_a 3,^"CWAV USBee ZX"
+_dev_strings_end:
+ .dw 0x0000
PID = 0x1386 ; Product ID (0x8613)
.include "dscr.inc"
PID = 0x1386 ; Product ID (0x8613)
.include "dscr.inc"
+string_descriptor_a 3,^"Cypress FX2"
+_dev_strings_end:
+ .dw 0x0000
VER = 0x0100 ; Product "version". 0x0001 == Hantek 6022BE.
.include "dscr_hantek_6022be.inc"
VER = 0x0100 ; Product "version". 0x0001 == Hantek 6022BE.
.include "dscr_hantek_6022be.inc"
+string_descriptor_a 3,^"Hantek 6022BE"
+_dev_strings_end:
+ .dw 0x0000
VER = 0x0200 ; Product "version". 0x0002 == SainSmart DDS120.
.include "dscr_hantek_6022be.inc"
VER = 0x0200 ; Product "version". 0x0002 == SainSmart DDS120.
.include "dscr_hantek_6022be.inc"
+string_descriptor_a 3,^"SainSmart DDS120"
+_dev_strings_end:
+ .dw 0x0000
PID = 0x8138 ; Product ID (0x3881)
.include "dscr.inc"
PID = 0x8138 ; Product ID (0x3881)
.include "dscr.inc"
+string_descriptor_a 3,^"Saleae Logic"
+_dev_strings_end:
+ .dw 0x0000
PID = 0x8D60 ; Product ID (0x608D)
.include "dscr.inc"
PID = 0x8D60 ; Product ID (0x608D)
.include "dscr.inc"
+string_descriptor_a 3,^"sigrok FX2 16ch"
+_dev_strings_end:
+ .dw 0x0000
PID = 0x8C60 ; Product ID (0x608C)
.include "dscr.inc"
PID = 0x8C60 ; Product ID (0x608C)
.include "dscr.inc"
+string_descriptor_a 3,^"sigrok FX2 8ch"
+_dev_strings_end:
+ .dw 0x0000
.dw 0x0100 ; Product version (0.01)
.db 1 ; Manufacturer string index
.db 2 ; Product string index
.dw 0x0100 ; Product version (0.01)
.db 1 ; Manufacturer string index
.db 2 ; Product string index
- .db 0 ; Serial number string index (none)
+ .db 3 ; Serial number string index (none)
.db 1 ; Number of configurations
dev_dscr_end:
.db 1 ; Number of configurations
dev_dscr_end:
string_descriptor_a 1,^"sigrok"
string_descriptor_a 2,^"fx2lafw"
string_descriptor_a 1,^"sigrok"
string_descriptor_a 2,^"fx2lafw"
-
-_dev_strings_end:
- .dw 0x0000
.dw VER ; Product version/type
.db 1 ; Manufacturer string index
.db 2 ; Product string index
.dw VER ; Product version/type
.db 1 ; Manufacturer string index
.db 2 ; Product string index
- .db 0 ; Serial number string index (none)
+ .db 3 ; Serial number string index
.db 1 ; Number of configurations
dev_dscr_end:
.db 1 ; Number of configurations
dev_dscr_end:
string_descriptor_a 1,^"sigrok"
string_descriptor_a 2,^"fx2lafw"
string_descriptor_a 1,^"sigrok"
string_descriptor_a 2,^"fx2lafw"
-
-_dev_strings_end:
- .dw 0x0000