Вывод lsusb -v для GoPro / Sony AS-30

593
Teodor-Bogdan Barbieru

Кто-то здесь, кто обладает знанием Linux и камерой GoPro / Sony Action (например, AS-30), может помочь мне с выводом работы lsusbс камерой, подключенной через USB к компьютеру:

lsusb -d <idVendor>:<idProduct> -v 

Меня интересует только поле «Дескриптор устройства« iSerial »:

Example output: Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 ? bDeviceProtocol 1 Interface Association bMaxPacketSize0 64 idVendor 0x0402 ALi Corp. idProduct 0x9665 Gateway Webcam bcdDevice 0.09 iManufacturer 3  iProduct 1  iSerial 0 <-- Some manufactures make this unique for every device/some don't include it bNumConfigurations 1 Configuration Descriptor: 

Моя конфигурация будет иметь несколько идентичных камер, подключенных к одному и тому же компьютеру, и я хочу знать, могу ли я использовать номер iSerial для уникальной идентификации каждой камеры. Я не заинтересован в получении номера iSerial, просто если вы можете подтвердить, что этот номер выглядит уникальным.

1

1 ответ на вопрос

1
Chriki

I have run lsusb -v for my USB-connected GoPro Hero 4 Silver. The returned iSerial indeed looks like a (unique) serial number. The returned number is composed of a single capital letter followed by 13 digits.

Unfortunately, I don’t have multiple GoPro cameras to confirm that they actually all return different numbers. I neither have a Sony AS-30 to check there.

EDITED to add: I have just found the same serial number returned by lsusb on a sticker in the battery case of the camera. So it indeed seems to be a unique serial number.