Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usb: product descriptor: encode version #15

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Conversation

IvoBCD
Copy link
Contributor

@IvoBCD IvoBCD commented Oct 26, 2023

Encode the firmware version in the USB Product descriptor string.

$ lsusb
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x2fe3 NordicSemiconductor
  idProduct          0x000c
  bcdDevice            3.05
  iManufacturer           1 ZEPHYR
  iProduct                2 ly11-ble-fw-v1.2.4
  iSerial                 3 6E1531D1CB5B6DC6
  :

Encode the firmware version in the USB *Product* descriptor
string.

```console
$ lsusb
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x2fe3 NordicSemiconductor
  idProduct          0x000c
  bcdDevice            3.05
  iManufacturer           1 ZEPHYR
  iProduct                2 ly11-ble-fw-v1.2.4
  iSerial                 3 6E1531D1CB5B6DC6
  :
```
@IvoBCD IvoBCD added the enhancement New feature or request label Oct 26, 2023
@IvoBCD IvoBCD self-assigned this Oct 26, 2023
@IvoBCD IvoBCD marked this pull request as ready for review October 26, 2023 16:53
@IvoBCD IvoBCD requested a review from JeremyBCD October 26, 2023 16:53
@IvoBCD IvoBCD merged commit 9e53c54 into main Oct 26, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants