Skip navigation.
Home
The QNX Community Portal

View topic - USB Product Name Lookup in QNX

USB Product Name Lookup in QNX

Discussion about the QNX6 OS.

USB Product Name Lookup in QNX

Postby rahil » Wed Nov 07, 2012 2:40 pm

I was wondering how the "usb" utility gets information on the Product Name. I am fairly ignorant on how USB works.
Say, I execute the "usb -vv" command and part of its output is as follows:
.......
Device Address : 2
Vendor : 0x04a9 (Canon)
Product : 0x1055 (BJC-85)
Device Release : r0.70
USB Spec Release : v1.10
Serial Number : 44OFBr
Class : 0x00 (Independent per interface)
Max PacketSize0 : 8
Languages : 0x0409 (English)
Configurations : 1
Configuration : 1
Attributes : 0x40 (Self-powered)
Max Power : 2 mA
Interfaces : 1
Interface : 0 / 0
Class : 0x07 (Printer)
Subclass : 0x01
Protocol : 0x02
Endpoints : 2 + Control
Endpoint : 0
Attributes : Control
Max Packet Size: 8
Endpoint : 1
Attributes : Bulk/OUT
Max Packet Size: 64
Endpoint : 2
Attributes : Bulk/IN
Max Packet Size: 64
......

So, in the line where it shows "Product : 0x1055 (BJC-85)", I wish to know how this utility gets the string "BJC-85". Does it get that string from a file or the device?

From what I understand from the enum-usb documentation, it supplies vendor id and device id along with other important USB descriptors, except the device name. Is my understanding correct?

Thanks in advance.
rahil
Active Member
 
Posts: 75
Joined: Wed Feb 11, 2009 12:13 pm
Location: India

Re: USB Product Name Lookup in QNX

Postby maschoen » Wed Nov 07, 2012 3:25 pm

The text string comes from the device.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: USB Product Name Lookup in QNX

Postby rahil » Wed Nov 07, 2012 4:06 pm

maschoen wrote:The text string comes from the device.

Thanks!
rahil
Active Member
 
Posts: 75
Joined: Wed Feb 11, 2009 12:13 pm
Location: India


Return to QNX6 - OS

Who is online

Users browsing this forum: No registered users and 6 guests