Open bruno-f-cruz opened 11 months ago
Notes from the references above:
The above notes give us a path to be able to make unique serial numbers for existing Harp devices that use FTDI chips.
Here's a proposed specification.
First, note that manufacturer description, product description, and serial number are all queriable fields at the native USB level before attaching a serial port to it (COM0
, etc. for Windows, /dev/ttyACM0
etc for Linux.)
For devices, where we can edit these fields (i.e: all devices created with an RP2xx0), I propose:
MANUFACTURER_DESCRIPTION = "Harp Tech"
PRODUCT_DESCRIPTION = "<whoami>.<device_name>"
SERIAL_NUMBER = "<unique_flash_id>"
Exposing these fields enables us to build automation tools that let us:
This can be done in any project using the Allen Harp Core already by adding the following to the top-level project's CMakeLists.txt
add_definitions(-DUSBD_MANUFACTURER="Allen Institute")
add_definitions(-DUSBD_PRODUCT="white-rabbit")
Discussed in https://github.com/harp-tech/protocol/discussions/28