USB device not working on FreeBSD

Mike Tancsa mike at sentex.net
Wed Feb 8 20:43:24 UTC 2017


On 2/8/2017 2:20 PM, Hans Petter Selasky wrote:
> Hi,
> 
> After your device receives the following control endpoint request it
> becomes unrecoverable:
> 
>> 13:05:50.860195 usbus0.4
>> SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>>  frame[0] WRITE 8 bytes
>>  0000  A1 01 52 03 00 00 03 00  -- -- -- -- -- -- -- -- 
>> |..R.....        |
>          ^^ USB read interface class (A1)
>             ^^ GET_REPORT (01)
>                   ^^ feature (03)
>                            ^^ length (3 bytes)
>>  frame[1] READ 3 bytes
>> 13:05:50.860938 usbus0.4
>> DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=0,IVAL=0,ERR=IOERROR
>>  frame[0] WRITE 8 bytes
>>  frame[1] READ 0 bytes
> 

I had a look at an older apc 650, and it works just fine after getting
that command

15:40:40.803562 usbus0.4 SUBM-CTRL-EP=00000080,SPD=LOW,NFR=2,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
 0000  A1 01 01 03 00 00 02 00  -- -- -- -- -- -- -- --  |........        |
 frame[1] READ 2 bytes
15:40:40.804886 usbus0.4
DONE-CTRL-EP=00000080,SPD=LOW,NFR=2,SLEN=4,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 frame[1] READ 2 bytes
 0000  01 01 -- -- -- -- -- --  -- -- -- -- -- -- -- --  |..              |
15:40:40.805048 usbus0.4 SUBM-CTRL-EP=00000080,SPD=LOW,NFR=2,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
 0000  80 06 00 03 00 00 04 00  -- -- -- -- -- -- -- --  |........        |
 frame[1] READ 4 bytes
15:40:40.806959 usbus0.4
DONE-CTRL-EP=00000080,SPD=LOW,NFR=2,SLEN=4,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 frame[1] READ 4 bytes
 0000  04 03 09 04 -- -- -- --  -- -- -- -- -- -- -- --  |....            |
15:40:40.807114 usbus0.4 SUBM-CTRL-EP=00000080,SPD=LOW,NFR=2,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
 0000  80 06 00 03 00 00 04 00  -- -- -- -- -- -- -- --  |........        |
 frame[1] READ 4 bytes
15:40:40.809126 usbus0.4
DONE-CTRL-EP=00000080,SPD=LOW,NFR=2,SLEN=4,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 frame[1] READ 4 bytes
 0000  04 03 09 04 -- -- -- --  -- -- -- -- -- -- -- --  |....            |


ugen0.4: <APC Back-UPS ES 650G1 FW906.W1 .D USB FWW1> at usbus0, cfg=0
md=HOST spd=LOW (1.5Mbps) pwr=ON (2mA)

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0110
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000
  bDeviceProtocol = 0x0000
  bMaxPacketSize0 = 0x0008
  idVendor = 0x051d
  idProduct = 0x0002
  bcdDevice = 0x0106
  iManufacturer = 0x0003  <APC>
  iProduct = 0x0001  <Back-UPS ES 650G1 FW:906.W1 .D USB FW:W1 >
  iSerialNumber = 0x0002  <4B1640P41654  >

-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike at sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/


More information about the freebsd-usb mailing list