Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Nov 2018 11:53:22 +0300
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        Hans Petter Selasky <hps@selasky.org>, Mike Andrews <mandrews@bit0.com>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: umodem0, Cisco USB serial console, and quirks
Message-ID:  <5d0a544d-517c-2fb9-84e8-d87704474cce@yandex.ru>
In-Reply-To: <15cff2a5-021f-49e5-b287-37a14a9321b3@selasky.org>
References:  <alpine.BSF.2.21.1709191021260.34953@beast.int.bit0.com> <d9dbef0b-c22e-c7ea-34a2-f36e9e768745@selasky.org> <alpine.BSF.2.21.1709191205280.1218@beast.int.bit0.com> <0c4022f3-bd21-49b5-cadd-daeb9f1f3081@selasky.org> <alpine.BSF.2.21.1709262210180.33243@beast.int.bit0.com> <33f3a1f8-69d1-9240-6381-8a851beb97d0@yandex.ru> <18d57cbe-1235-aedf-45e6-e36b495ca1eb@bit0.com> <15cff2a5-021f-49e5-b287-37a14a9321b3@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--i8rPLifjfJMKLrGc8b3wgV1ImEGKpXEBy
Content-Type: multipart/mixed; boundary="acae3vn8coyMMRiJuoKOiPu5ooQsDYGUb";
 protected-headers="v1"
From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: Hans Petter Selasky <hps@selasky.org>, Mike Andrews <mandrews@bit0.com>
Cc: freebsd-usb@freebsd.org
Message-ID: <5d0a544d-517c-2fb9-84e8-d87704474cce@yandex.ru>
Subject: Re: umodem0, Cisco USB serial console, and quirks
References: <alpine.BSF.2.21.1709191021260.34953@beast.int.bit0.com>
 <d9dbef0b-c22e-c7ea-34a2-f36e9e768745@selasky.org>
 <alpine.BSF.2.21.1709191205280.1218@beast.int.bit0.com>
 <0c4022f3-bd21-49b5-cadd-daeb9f1f3081@selasky.org>
 <alpine.BSF.2.21.1709262210180.33243@beast.int.bit0.com>
 <33f3a1f8-69d1-9240-6381-8a851beb97d0@yandex.ru>
 <18d57cbe-1235-aedf-45e6-e36b495ca1eb@bit0.com>
 <15cff2a5-021f-49e5-b287-37a14a9321b3@selasky.org>
In-Reply-To: <15cff2a5-021f-49e5-b287-37a14a9321b3@selasky.org>

--acae3vn8coyMMRiJuoKOiPu5ooQsDYGUb
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 02.11.2018 11:45, Hans Petter Selasky wrote:
>>> And it seems in Linux it is handled by generic CDC ACM driver without=

>>> any quirks. So, I think the problem is with our umodem(4) or ucom(4)
>>> driver.
>>>
>> No, I didn't.
>>
>> The usbmon dumps above are still there, and if someone can suggest
>> anything else I can do to help, lemme know.
>>
>=20
> Hi,
>=20
> Are there any errors printed in dmesg for this device?
>=20
> What does "usbconfig -d X.Y dump_device_desc dump_curr_config_desc"
> where X.Y are numbers after ugenX.Y, output?

Hi,

no errors, it looks like it should work, but cu(1) doesn't show the
console output.

# kldload umodem
umodem0 on uhub1
umodem0: <Cisco Cisco USB Console, class 2/0, rev 2.00/0.00, addr 1> on
usbus0
umodem0: data interface 1, has no CM over data, has no break

# usbconfig -d ugen0.2 dump_device_desc dump_curr_config_desc
ugen0.2: <Cisco Cisco USB Console> at usbus0, cfg=3D0 md=3DHOST spd=3DFUL=
L
(12Mbps) pwr=3DON (100mA)

  bLength =3D 0x0012
  bDescriptorType =3D 0x0001
  bcdUSB =3D 0x0200
  bDeviceClass =3D 0x0002  <Communication device>
  bDeviceSubClass =3D 0x0000
  bDeviceProtocol =3D 0x0000
  bMaxPacketSize0 =3D 0x0008
  idVendor =3D 0x05a6
  idProduct =3D 0x0009
  bcdDevice =3D 0x0000
  iManufacturer =3D 0x0001  <Cisco>
  iProduct =3D 0x0002  <Cisco USB Console>
  iSerialNumber =3D 0x0000  <no string>
  bNumConfigurations =3D 0x0001


 Configuration index 0

    bLength =3D 0x0009
    bDescriptorType =3D 0x0002
    wTotalLength =3D 0x0043
    bNumInterfaces =3D 0x0002
    bConfigurationValue =3D 0x0001
    iConfiguration =3D 0x0003  <USB-UART Configuration>
    bmAttributes =3D 0x00c0
    bMaxPower =3D 0x0032

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

      Additional Descriptor

      bLength =3D 0x05
      bDescriptorType =3D 0x24
      bDescriptorSubType =3D 0x00
       RAW dump:
       0x00 | 0x05, 0x24, 0x00, 0x10, 0x01


      Additional Descriptor

      bLength =3D 0x04
      bDescriptorType =3D 0x24
      bDescriptorSubType =3D 0x02
       RAW dump:
       0x00 | 0x04, 0x24, 0x02, 0x02


      Additional Descriptor

      bLength =3D 0x05
      bDescriptorType =3D 0x24
      bDescriptorSubType =3D 0x06
       RAW dump:
       0x00 | 0x05, 0x24, 0x06, 0x00, 0x01


      Additional Descriptor

      bLength =3D 0x05
      bDescriptorType =3D 0x24
      bDescriptorSubType =3D 0x01
       RAW dump:
       0x00 | 0x05, 0x24, 0x01, 0x00, 0x01


     Endpoint 0
        bLength =3D 0x0007
        bDescriptorType =3D 0x0005
        bEndpointAddress =3D 0x0081  <IN>
        bmAttributes =3D 0x0003  <INTERRUPT>
        wMaxPacketSize =3D 0x0008
        bInterval =3D 0x0002
        bRefresh =3D 0x0000
        bSynchAddress =3D 0x0000


    Interface 1
      bLength =3D 0x0009
      bDescriptorType =3D 0x0004
      bInterfaceNumber =3D 0x0001
      bAlternateSetting =3D 0x0000
      bNumEndpoints =3D 0x0002
      bInterfaceClass =3D 0x000a  <CDC-data>
      bInterfaceSubClass =3D 0x0000
      bInterfaceProtocol =3D 0x0000
      iInterface =3D 0x0000  <no string>

     Endpoint 0
        bLength =3D 0x0007
        bDescriptorType =3D 0x0005
        bEndpointAddress =3D 0x0082  <IN>
        bmAttributes =3D 0x0002  <BULK>
        wMaxPacketSize =3D 0x0040
        bInterval =3D 0x0000
        bRefresh =3D 0x0000
        bSynchAddress =3D 0x0000

     Endpoint 1
        bLength =3D 0x0007
        bDescriptorType =3D 0x0005
        bEndpointAddress =3D 0x0003  <OUT>
        bmAttributes =3D 0x0002  <BULK>
        wMaxPacketSize =3D 0x0020
        bInterval =3D 0x0000
        bRefresh =3D 0x0000
        bSynchAddress =3D 0x0000


# cu -l /dev/cuaU0
Connected

<nothing here>

--=20
WBR, Andrey V. Elsukov


--acae3vn8coyMMRiJuoKOiPu5ooQsDYGUb--

--i8rPLifjfJMKLrGc8b3wgV1ImEGKpXEBy
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlvcEIIACgkQAcXqBBDI
oXozogf/Wyne2kfINzswNsnZd4dfqiUPlTb2gbhhBlDcubrhDVzmZlrm7OhDoYd2
JS8emKQ41plIR1Ys/5hwm1I2MCfduzH+FWHZs/PzAZ4dpE+4N7yxNo0r71ixssYP
alGV5FR4Ifiiv5tmTBAuIbUK9qG8Zjrx8/4oRDY2WWLwQVgXgJnuKdT5XdXn8oDK
P4lXMrFcj96IiGXsiU918tZsMQRQgE1P7IuWU0dnXydFMVvknjFa/6XtMPi5kFg5
5+I4PR57nc16VanaS+iRgiNd5UmO/ZdMoBve5Cbl4kVP+CVtfAcI88RqwPrtlVjz
eQIzbbFrHvtrXDvouY+17zP3Y0qICw==
=Na3S
-----END PGP SIGNATURE-----

--i8rPLifjfJMKLrGc8b3wgV1ImEGKpXEBy--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5d0a544d-517c-2fb9-84e8-d87704474cce>