Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: umodem(4) with "no pointer to data interface"



Hi,

From: Brett Lymn <blymn%internode.on.net@localhost>, Date: Tue, 21 Jan 2014 
20:43:36 +1030

> On Tue, Jan 21, 2014 at 06:55:47PM +0900, Ryo ONODERA wrote:
>> 
>> Without my modification, my USB modem is recognized as single ugen(4).
>> 
> 
> ok, clearly not correct :)
> 
>> Here is output of usbdevs(8) without my modification.
>> 
>>    port 1 addr 11: full speed, power 100 mA, config 1, USB Modem(0x1329), 
>> Conexant(0x0572), rev 1.00, serial 24680246
>>      ugen0
>> 
>> and output of dmesg.
>> 
>> ugen0 at uhub4 port 1
>> ugen0: Conexant USB Modem, rev 1.10/1.00, addr 11
>> 
>> 
>> How to get class and subclass value for USB device?
>> 
> 
> build the attached code and run that with a /dev/ugen0.00 argument.  It
> should print out a bunch of information about the device.  Post the
> output here and we can work out what it claims to be.

Thank you very much.

Here is output of
# ./probe_usb /dev/ugen0.00

There is two interfaces.

=== === === === === === === === === === === === === === === ===
length: 9
descriptor type: 2
total length: -9178
num interface: 2
config value: 1
configuration: 0
Attributes: (0x80) 
max power: 100 mA

Interface 0:
  Length: 9
  Descriptor Type: 4
  Interface No: 0
  Alt Setting: 0
  Num Endpoints: 1
  Interface Class: 2
  Interface SubClass: 2
  Interface Protocol: 1
  Interface: 0
  Endpoint 0:
    Length: 7
    Length: 5
    Length: (0x81) 1 (in)
    Attributes: (0x3) interrupt 
    Max Packet Size: -9228
    Interval: 128

Interface 1:
  Length: 9
  Descriptor Type: 4
  Interface No: 1
  Alt Setting: 0
  Num Endpoints: 2
  Interface Class: 10
  Interface SubClass: 0
  Interface Protocol: 0
  Interface: 0
  Endpoint 0:
    Length: 7
    Length: 5
    Length: (0x82) 2 (in)
    Attributes: (0x2) bulk 
    Max Packet Size: -9228
    Interval: 1
  Endpoint 1:
    Length: 7
    Length: 5
    Length: (0x2) 2 (out)
    Attributes: (0x2) bulk 
    Max Packet Size: -9228
    Interval: 1

--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index