Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2009 16:15:06 +0400
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        gavin@freebsd.org, freebsd-usb@freebsd.org
Subject:   Re: usb/101761: [usb67] [patch] [request] usb.h: increase maximal size of report descriptor
Message-ID:  <20090825121506.GD26981@hades.panopticon>
In-Reply-To: <200908250927.39427.hselasky@c2i.net>
References:  <200908241557.n7OFvuT1052755@freefall.freebsd.org> <20090825011025.GA26981@hades.panopticon> <200908250927.39427.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* Hans Petter Selasky (hselasky@c2i.net) wrote:

> How to dump HID descriptor:
>=20
> Interface 0 of ugen7.5:
>=20
> usbconfig -u 7 -a 5 do_request 0x81 0x06 0x2200 0 0x1000
>=20
> Interface 1 of ugen7.5:
>=20
> usbconfig -u 7 -a 5 do_request 0x81 0x06 0x2200 1 0x1000

Yes, it dumps more than 1024 bytes, so the problem described in the PR
is fixed. But see my other comment regarding usbhidctl.

---
REQUEST =3D <0x05 0x01 0x09 0x04 0xa1 0x01 0x85 0x01 0x09 0x01 0xa1 0x00 0x=
66 0x00 0x00 0x55 0x00 0x16 0x00 0xfe 0x26 0xff 0x01 0x35 0x00 0x46 0xff 0x=
03 0x95 0x01 0x75 0x0a 0x09 0x30 0x81 0x02 0x75 0x06 0x81 0x01 0x09 0x31 0x=
75 0x0a 0x81 0x02 0x75 0x06 0x95 0x01 0x81 0x01 0x15 0xe0 0x25 0x1f 0x35 0x=
00 0x45 0x3f 0x66 0x14 0x00 0x09 0x35 0x81 0x02 0x75 0x02 0x81 0x01 0x66 0x=
00 0x00 0xc0 0x75 0x07 0x95 0x01 0x15 0x00 0x25 0x7f 0x35 0x00 0x45 0x7f 0x=
09 0x36 0x81 0x02 0x75 0x01 0x81 0x01 0x09 0x39 0x15 0x00 0x25 0x07 0x35 0x=
00 0x46 0x3b 0x01 0x66 0x14 0x00 0x75 0x04 0x95 0x01 0x81 0x42 0x95 0x01 0x=
81 0x01 0x66 0x00 0x00 0x05 0x09 0x19 0x01 0x29 0x08 0x15 0x00 0x25 0x01 0x=
35 0x00 0x45 0x01 0x95 0x08 0x75 0x01 0x81 0x02 0x95 0x04 0x75 0x08 0x81 0x=
01 0x05 0x0f 0x09 0x92 0xa1 0x02 0x85 0x02 0x09 0x9f 0x09 0xa0 0x09 0xa4 0x=
09 0xa5 0x09 0xa6 0x15 0x00 0x25 0x01 0x35 0x00 0x45 0x01 0x75 0x01 0x95 0x=
05 0x81 0x02 0x95 0x03 0x81 0x03 0x09 0x94 0x15 0x00 0x25 0x01 0x35 0x00 0x=
45 0x01 0x75 0x01 0x95 0x01 0x81 0x02 0x09 0x22 0x15 0x01 0x25 0x28 0x35 0x=
01 0x45 0x28 0x75 0x07 0x95 0x01 0x81 0x02 0xc0 0x09 0x21 0xa1 0x02 0x85 0x=
01 0x09 0x22 0x15 0x01 0x25 0x28 0x35 0x01 0x45 0x28 0x75 0x08 0x95 0x01 0x=
91 0x02 0x09 0x25 0xa1 0x02 0x09 0x26 0x09 0x27 0x09 0x30 0x09 0x31 0x09 0x=
32 0x09 0x33 0x09 0x34 0x09 0x40 0x09 0x41 0x09 0x42 0x09 0x43 0x09 0x28 0x=
25 0x0c 0x15 0x01 0x35 0x01 0x45 0x0c 0x75 0x08 0x95 0x01 0x91 0x00 0xc0 0x=
09 0x50 0x09 0x54 0x09 0x51 0x15 0x00 0x26 0xff 0x7f 0x35 0x00 0x46 0xff 0x=
7f 0x66 0x03 0x10 0x55 0xfd 0x75 0x10 0x95 0x03 0x91 0x02 0x55 0x00 0x66 0x=
00 0x00 0x09 0x52 0x15 0x00 0x26 0xff 0x00 0x35 0x00 0x46 0x10 0x27 0x75 0x=
08 0x95 0x01 0x91 0x02 0x09 0x53 0x15 0x01 0x25 0x08 0x35 0x01 0x45 0x08 0x=
75 0x08 0x95 0x01 0x91 0x02 0x09 0x55 0xa1 0x02 0x05 0x01 0x09 0x30 0x09 0x=
31 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x02 0x91 0x02 0xc0 0x05 0x0f 0x09 0x=
56 0x95 0x01 0x91 0x02 0x95 0x05 0x91 0x03 0x09 0x57 0xa1 0x02 0x0b 0x01 0x=
00 0x0a 0x00 0x0b 0x02 0x00 0x0a 0x00 0x66 0x14 0x00 0x55 0xfe 0x15 0x00 0x=
26 0xff 0x00 0x35 0x00 0x47 0xa0 0x8c 0x00 0x00 0x66 0x00 0x00 0x75 0x08 0x=
95 0x02 0x91 0x02 0x55 0x00 0x66 0x00 0x00 0xc0 0x05 0x0f 0x09 0xa7 0x66 0x=
03 0x10 0x55 0xfd 0x15 0x00 0x26 0xff 0x7f 0x35 0x00 0x46 0xff 0x7f 0x75 0x=
10 0x95 0x01 0x91 0x02 0x66 0x00 0x00 0x55 0x00 0xc0 0x05 0x0f 0x09 0x5a 0x=
a1 0x02 0x85 0x02 0x09 0x22 0x15 0x01 0x25 0x28 0x35 0x01 0x45 0x28 0x75 0x=
08 0x95 0x01 0x91 0x02 0x09 0x5b 0x09 0x5d 0x15 0x00 0x26 0xff 0x00 0x35 0x=
00 0x46 0x10 0x27 0x95 0x02 0x91 0x02 0x09 0x5c 0x09 0x5e 0x66 0x03 0x10 0x=
55 0xfd 0x26 0xff 0x7f 0x46 0xff 0x7f 0x75 0x10 0x91 0x02 0x45 0x00 0x66 0x=
00 0x00 0x55 0x00 0xc0 0x09 0x5f 0xa1 0x02 0x85 0x03 0x09 0x22 0x15 0x01 0x=
25 0x28 0x35 0x01 0x45 0x28 0x75 0x08 0x95 0x01 0x91 0x02 0x09 0x23 0x15 0x=
00 0x25 0x01 0x35 0x00 0x45 0x01 0x75 0x04 0x95 0x01 0x91 0x02 0x09 0x58 0x=
a1 0x02 0x0b 0x01 0x00 0x0a 0x00 0x0b 0x02 0x00 0x0a 0x00 0x75 0x02 0x95 0x=
02 0x91 0x02 0xc0 0x15 0x80 0x25 0x7f 0x36 0xf0 0xd8 0x46 0x10 0x27 0x09 0x=
60 0x75 0x08 0x95 0x01 0x91 0x02 0x36 0xf0 0xd8 0x46 0x10 0x27 0x09 0x61 0x=
09 0x62 0x95 0x02 0x91 0x02 0x15 0x00 0x26 0xff 0x00 0x35 0x00 0x46 0x10 0x=
27 0x09 0x63 0x09 0x64 0x75 0x08 0x95 0x02 0x91 0x02 0x09 0x65 0x46 0x10 0x=
27 0x95 0x01 0x91 0x02 0xc0 0x09 0x6e 0xa1 0x02 0x85 0x04 0x09 0x22 0x15 0x=
01 0x25 0x28 0x35 0x01 0x45 0x28 0x75 0x08 0x95 0x01 0x91 0x02 0x09 0x70 0x=
15 0x00 0x26 0xff 0x00 0x35 0x00 0x46 0x10 0x27 0x75 0x08 0x95 0x01 0x91 0x=
02 0x09 0x6f 0x15 0x80 0x25 0x7f 0x36 0xf0 0xd8 0x46 0x10 0x27 0x95 0x01 0x=
91 0x02 0x09 0x71 0x66 0x14 0x00 0x55 0xfe 0x15 0x00 0x26 0xff 0x00 0x35 0x=
00 0x47 0xa0 0x8c 0x00 0x00 0x91 0x02 0x09 0x72 0x26 0xff 0x7f 0x46 0xff 0x=
7f 0x66 0x03 0x10 0x55 0xfd 0x75 0x10 0x95 0x01 0x91 0x02 0x66 0x00 0x00 0x=
55 0x00 0xc0 0x09 0x73 0xa1 0x02 0x85 0x05 0x09 0x22 0x15 0x01 0x25 0x28 0x=
35 0x01 0x45 0x28 0x75 0x08 0x95 0x01 0x91 0x02 0x09 0x70 0x16 0x01 0xff 0x=
26 0xff 0x00 0x36 0xf0 0xd8 0x46 0x10 0x27 0x75 0x10 0x95 0x01 0x91 0x02 0x=
c0 0x09 0x74 0xa1 0x02 0x85 0x06 0x09 0x22 0x15 0x01 0x25 0x28 0x35 0x01 0x=
45 0x28 0x75 0x08 0x95 0x01 0x91 0x02 0x09 0x75 0x09 0x76 0x15 0x80 0x25 0x=
7f 0x36 0xf0 0xd8 0x46 0x10 0x27 0x75 0x08 0x95 0x02 0x91 0x02 0xc0 0x09 0x=
68 0xa1 0x02 0x85 0x07 0x09 0x22 0x15 0x01 0x25 0x28 0x35 0x01 0x45 0x28 0x=
75 0x08 0x95 0x01 0x91 0x02 0x09 0x6c 0x15 0x00 0x26 0x10 0x27 0x35 0x00 0x=
46 0x10 0x27 0x75 0x10 0x95 0x01 0x91 0x02 0x09 0x69 0x15 0x81 0x25 0x7f 0x=
35 0x00 0x46 0xff 0x00 0x75 0x08 0x95 0x0c 0x92 0x02 0x01 0xc0 0x09 0x66 0x=
a1 0x02 0x85 0x08 0x05 0x01 0x09 0x30 0x09 0x31 0x15 0x81 0x25 0x7f 0x35 0x=
00 0x46 0xff 0x00 0x75 0x08 0x95 0x02 0x91 0x02 0xc0 0x05 0x0f 0x09 0x77 0x=
a1 0x02 0x85 0x0a 0x09 0x22 0x15 0x01 0x25 0x28 0x35 0x01 0x45 0x28 0x75 0x=
08 0x95 0x01 0x91 0x02 0x09 0x78 0xa1 0x02 0x09 0x79 0x09 0x7a 0x09 0x7b 0x=
15 0x01 0x25 0x03 0x75 0x08 0x95 0x01 0x91 0x00 0xc0 0x09 0x7c 0x15 0x00 0x=
26 0xff 0x00 0x35 0x00 0x46 0xff 0x00 0x91 0x02 0xc0 0x09 0x90 0xa1 0x02 0x=
85 0x0b 0x09 0x22 0x25 0x28 0x15 0x01 0x35 0x01 0x45 0x28 0x75 0x08 0x95 0x=
01 0x91 0x02 0xc0 0x09 0x96 0xa1 0x02 0x85 0x0c 0x09 0x97 0x09 0x98 0x09 0x=
99 0x09 0x9a 0x09 0x9b 0x09 0x9c 0x15 0x01 0x25 0x06 0x75 0x08 0x95 0x01 0x=
91 0x00 0xc0 0x09 0x7d 0xa1 0x02 0x85 0x0d 0x09 0x7e 0x15 0x00 0x26 0xff 0x=
00 0x35 0x00 0x46 0x10 0x27 0x75 0x08 0x95 0x01 0x91 0x02 0xc0 0x09 0x6b 0x=
a1 0x02 0x85 0x0e 0x09 0x22 0x15 0x01 0x25 0x28 0x35 0x01 0x45 0x28 0x75 0x=
08 0x95 0x01 0x91 0x02 0x09 0x6d 0x15 0x00 0x26 0xff 0x00 0x35 0x00 0x46 0x=
ff 0x00 0x75 0x08 0x95 0x01 0x91 0x02 0x09 0x51 0x66 0x03 0x10 0x55 0xfd 0x=
15 0x00 0x26 0xff 0x7f 0x35 0x00 0x46 0xff 0x7f 0x75 0x10 0x95 0x01 0x91 0x=
02 0x55 0x00 0x66 0x00 0x00 0xc0 0x09 0xab 0xa1 0x02 0x85 0x01 0x09 0x25 0x=
a1 0x02 0x09 0x26 0x09 0x27 0x09 0x30 0x09 0x31 0x09 0x32 0x09 0x33 0x09 0x=
34 0x09 0x40 0x09 0x41 0x09 0x42 0x09 0x43 0x09 0x28 0x25 0x0c 0x15 0x01 0x=
35 0x01 0x45 0x0c 0x75 0x08 0x95 0x01 0xb1 0x00 0xc0 0x05 0x01 0x09 0x3b 0x=
15 0x00 0x26 0xff 0x01 0x35 0x00 0x46 0xff 0x01 0x75 0x0a 0x95 0x01 0xb1 0x=
02 0x75 0x06 0xb1 0x01 0xc0 0x05 0x0f 0x09 0x89 0xa1 0x02 0x85 0x02 0x09 0x=
22 0x25 0x28 0x15 0x01 0x35 0x01 0x45 0x28 0x75 0x08 0x95 0x01 0xb1 0x02 0x=
09 0x8b 0xa1 0x02 0x09 0x8c 0x09 0x8d 0x09 0x8e 0x25 0x03 0x15 0x01 0x35 0x=
01 0x45 0x03 0x75 0x08 0x95 0x01 0xb1 0x00 0xc0 0x09 0xac 0x15 0x00 0x27 0x=
ff 0xff 0x00 0x00 0x35 0x00 0x47 0xff 0xff 0x00 0x00 0x75 0x10 0x95 0x01 0x=
b1 0x00 0xc0 0x09 0x7f 0xa1 0x02 0x85 0x03 0x09 0x80 0x75 0x10 0x95 0x01 0x=
15 0x00 0x35 0x00 0x27 0xff 0xff 0x00 0x00 0x47 0xff 0xff 0x00 0x00 0xb1 0x=
02 0x09 0x83 0x26 0xff 0x00 0x46 0xff 0x00 0x75 0x08 0x95 0x01 0xb1 0x02 0x=
09 0xa9 0x09 0xaa 0x75 0x01 0x95 0x02 0x15 0x00 0x25 0x01 0x35 0x00 0x45 0x=
01 0xb1 0x02 0x75 0x06 0x95 0x01 0xb1 0x03 0xc0 0xc0><fU&5Fu0u1uu%5E?f5ufu%=
5E6u9%5F;fuBf)%5Euu%5Eu%5Eu"%(5E(u!"%(5E(u%&'01234@ABC(%5EuPTQ&5FfUuUfR&5F'=
uS%5EuU01%uVWfU&5GfuUffU&5FufUZ"%(5E(u[]&5F'\^fU&FuEfU_"%(5E(u#%5EuXu%6F'`u=
6F'ab&5F'cdueF'n"%(5E(up&5F'uo%6F'qfU&5Gr&FfUufUs"%(5E(up&6F'ut"%(5E(uuv%6F=
'uh"%(5E(ul&'5F'ui%5Fuf01%5Fuw"%(5E(uxyz{%u|&5F"%(5E(u%u}~&5F'uk"%(5E(um&5F=
uQfU&5FuUf%&'01234@ABC(%5Eu;&5Fuu"%(5E(u%5Eu'5Guu5'G&Fuu%5Eu>
---

Device descriptor, fyi:

---
ugen2.2: <SideWinder Force Feedback 2 Joy Microsoft> at usbus2, cfg=3D0 md=
=3DHOST spd=3DFULL (12Mbps) pwr=3DON


 Configuration index 0

    bLength =3D 0x0009=20
    bDescriptorType =3D 0x0002=20
    wTotalLength =3D 0x0029=20
    bNumInterfaces =3D 0x0001=20
    bConfigurationValue =3D 0x0001=20
    iConfiguration =3D 0x0000  <no string>
    bmAttributes =3D 0x00a0=20
    bMaxPower =3D 0x0032=20

    Interface 0
      bLength =3D 0x0009=20
      bDescriptorType =3D 0x0004=20
      bInterfaceNumber =3D 0x0000=20
      bAlternateSetting =3D 0x0000=20
      bNumEndpoints =3D 0x0002=20
      bInterfaceClass =3D 0x0003=20
      bInterfaceSubClass =3D 0x0000=20
      bInterfaceProtocol =3D 0x0000=20
      iInterface =3D 0x0000  <no string>

      Additional Descriptor

      bLength =3D 0x09
      bDescriptorType =3D 0x21
      bDescriptorSubType =3D 0x00
       RAW dump:=20
       0x00 | 0x09, 0x21, 0x00, 0x01, 0x00, 0x01, 0x22, 0x3f,=20
       0x08 | 0x05

     Endpoint 0
        bLength =3D 0x0007=20
        bDescriptorType =3D 0x0005=20
        bEndpointAddress =3D 0x0081=20
        bmAttributes =3D 0x0003=20
        wMaxPacketSize =3D 0x0040=20
        bInterval =3D 0x0001=20
        bRefresh =3D 0x0000=20
        bSynchAddress =3D 0x0000=20

     Endpoint 1
        bLength =3D 0x0007=20
        bDescriptorType =3D 0x0005=20
        bEndpointAddress =3D 0x0002=20
        bmAttributes =3D 0x0003=20
        wMaxPacketSize =3D 0x0010=20
        bInterval =3D 0x0004=20
        bRefresh =3D 0x0000=20
        bSynchAddress =3D 0x0000=20


---

--=20
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090825121506.GD26981>