Re: umodem0, Cisco USB serial console, and quirks

2018-11-05 Thread Ian Lepore
On Sun, 2018-11-04 at 19:05 -0500, Mike Andrews wrote: > On Fri, 2 Nov 2018, CeDeROM wrote: > > > > > Try to add VID/PID of your device into a usbmodem driver. Use > > configurations to see which one works with your device. Rebuild the > > module/kernel, reboot, try it out untill success. > > >

Re: umodem0, Cisco USB serial console, and quirks

2018-11-05 Thread CeDeROM
Sorry, that would be USBSERIAL then if only UART-TO-USB is necessary, I have also added custom FTDI based driver (KT-LINK JTAG/SWD/UART) interface that way, just add VIP/PID to the list and it should work :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Re: umodem0, Cisco USB serial console, and quirks

2018-11-04 Thread Warner Losh
On Sun, Nov 4, 2018 at 5:06 PM Mike Andrews wrote: > On Fri, 2 Nov 2018, CeDeROM wrote: > > > Try to add VID/PID of your device into a usbmodem driver. Use > > configurations to see which one works with your device. Rebuild the > > module/kernel, reboot, try it out untill success. > > > > After

Re: umodem0, Cisco USB serial console, and quirks

2018-11-04 Thread Mike Andrews
On Fri, 2 Nov 2018, CeDeROM wrote: Try to add VID/PID of your device into a usbmodem driver. Use configurations to see which one works with your device. Rebuild the module/kernel, reboot, try it out untill success. After your device is recognised by usbmodem and creates several cuaU* devices..

Re: umodem0, Cisco USB serial console, and quirks

2018-11-02 Thread CeDeROM
Try to add VID/PID of your device into a usbmodem driver. Use configurations to see which one works with your device. Rebuild the module/kernel, reboot, try it out untill success. After your device is recognised by usbmodem and creates several cuaU* devices.. still Your device may require

Re: umodem0, Cisco USB serial console, and quirks

2018-11-02 Thread blubee blubeeme
On Fri, Nov 2, 2018, 22:11 Warner Losh wrote: > On Fri, Nov 2, 2018 at 8:04 AM Andrey V. Elsukov > wrote: > > > On 02.11.2018 16:59, Warner Losh wrote: > > > All the commands for USB modems should be described here: > > > > > > https://www.usb.org/sites/default/files/CDC_EEM10.pdf > > >

Re: umodem0, Cisco USB serial console, and quirks

2018-11-02 Thread Warner Losh
On Fri, Nov 2, 2018 at 8:04 AM Andrey V. Elsukov wrote: > On 02.11.2018 16:59, Warner Losh wrote: > > All the commands for USB modems should be described here: > > > > https://www.usb.org/sites/default/files/CDC_EEM10.pdf > > > > I'm sorry, but I don't have time currently to decode

Re: umodem0, Cisco USB serial console, and quirks

2018-11-02 Thread Andrey V. Elsukov
On 02.11.2018 16:59, Warner Losh wrote: > All the commands for USB modems should be described here: > > https://www.usb.org/sites/default/files/CDC_EEM10.pdf > > I'm sorry, but I don't have time currently to decode the Linux traces > and compare with FreeBSD. > > > One thing to

Re: umodem0, Cisco USB serial console, and quirks

2018-11-02 Thread Warner Losh
On Fri, Nov 2, 2018 at 3:57 AM Hans Petter Selasky wrote: > On 11/2/18 10:24 AM, Andrey V. Elsukov wrote: > > On 02.11.2018 12:12, Hans Petter Selasky wrote: > >>> # cu -l /dev/cuaU0 > >>> Connected > >>> > >>> > >>> > >> > >> Did you try "-s" option to set another baudrate? > > > > Yes, the

Re: umodem0, Cisco USB serial console, and quirks

2018-11-02 Thread Hans Petter Selasky
On 11/2/18 10:24 AM, Andrey V. Elsukov wrote: On 02.11.2018 12:12, Hans Petter Selasky wrote: # cu -l /dev/cuaU0 Connected Did you try "-s" option to set another baudrate? Yes, the result is the same. # cu -s 115200 -l /dev/cuaU0 Connected If I understand correctly from

Re: umodem0, Cisco USB serial console, and quirks

2018-11-02 Thread Andrey V. Elsukov
On 02.11.2018 12:12, Hans Petter Selasky wrote: >> # cu -l /dev/cuaU0 >> Connected >> >> >> > > Did you try "-s" option to set another baudrate? Yes, the result is the same. # cu -s 115200 -l /dev/cuaU0 Connected If I understand correctly from

Re: umodem0, Cisco USB serial console, and quirks

2018-11-02 Thread Hans Petter Selasky
On 11/2/18 9:53 AM, Andrey V. Elsukov wrote: 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

Re: umodem0, Cisco USB serial console, and quirks

2018-11-02 Thread Andrey V. Elsukov
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

Re: umodem0, Cisco USB serial console, and quirks

2018-11-02 Thread Hans Petter Selasky
On 11/2/18 1:01 AM, Mike Andrews wrote: On 11/1/18 4:59 PM, Andrey V. Elsukov wrote: On 27.09.2017 05:11, Mike Andrews wrote: This is the USB read transfer. The other side is not returning any data, so neither is "cu" printing anything. Maybe you can try to get a similar trace from the system

Re: umodem0, Cisco USB serial console, and quirks

2018-11-01 Thread Mike Andrews
On 11/1/18 4:59 PM, Andrey V. Elsukov wrote: On 27.09.2017 05:11, Mike Andrews wrote: This is the USB read transfer. The other side is not returning any data, so neither is "cu" printing anything. Maybe you can try to get a similar trace from the system where it works? Looks to me like some

Re: umodem0, Cisco USB serial console, and quirks

2018-11-01 Thread Andrey V. Elsukov
On 27.09.2017 05:11, Mike Andrews wrote: >> This is the USB read transfer. The other side is not returning any >> data, so neither is "cu" printing anything. Maybe you can try to get a >> similar trace from the system where it works? >> >> Looks to me like some kind of protocol error, that the

Re: umodem0, Cisco USB serial console, and quirks

2017-09-26 Thread Mike Andrews
On Tue, 19 Sep 2017, Hans Petter Selasky wrote: On 09/19/17 18:15, Mike Andrews wrote: 12:03:37.726830 usbus4.3 SUBM-BULK-EP=0082,SPD=FULL,NFR=1,SLEN=0,IVAL=0 frame[0]

Re: umodem0, Cisco USB serial console, and quirks

2017-09-19 Thread Hans Petter Selasky
On 09/19/17 18:15, Mike Andrews wrote: 12:03:37.726830 usbus4.3 SUBM-BULK-EP=0082,SPD=FULL,NFR=1,SLEN=0,IVAL=0 frame[0] READ 1024 bytes flags 0xa

Re: umodem0, Cisco USB serial console, and quirks

2017-09-19 Thread Mike Andrews
On Tue, 19 Sep 2017, Hans Petter Selasky wrote: On 09/19/17 16:22, Mike Andrews wrote: I'm trying to get the USB console of a Cisco ASA 5506-X firewall (not terribly obscure hardware) talking to FreeBSD, and having some trouble. The relevant dmesg at probe time is: umodem0 on uhub7

Re: umodem0, Cisco USB serial console, and quirks

2017-09-19 Thread Hans Petter Selasky
On 09/19/17 16:22, Mike Andrews wrote: I'm trying to get the USB console of a Cisco ASA 5506-X firewall (not terribly obscure hardware) talking to FreeBSD, and having some trouble. The relevant dmesg at probe time is: umodem0 on uhub7 umodem0: on usbus4 umodem0: data interface 1,