Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Nov 2018 09:03:59 -0700
From:      Ian Lepore <ian@freebsd.org>
To:        Mike Andrews <mandrews@bit0.com>
Cc:        "freebsd-usb@FreeBSD.org" <freebsd-usb@freebsd.org>
Subject:   Re: umodem0, Cisco USB serial console, and quirks
Message-ID:  <1541433839.52306.18.camel@freebsd.org>
In-Reply-To: <alpine.BSF.2.21.9999.1811041851500.98957@beast.int.bit0.com>
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> <5d0a544d-517c-2fb9-84e8-d87704474cce@yandex.ru> <5cdb37b5-fca1-99db-cacc-cf72f0cee0df@selasky.org> <51ae0fc4-7e93-30d6-caa3-393afbe278b6@yandex.ru> <bbdda4ab-567f-2658-b83e-5bf0e1176e9a@selasky.org> <CANCZdfqoC8QaDDRP0QoYO0C1WvT_EBmNC8UXAzG-GEbaoK0Xyg@mail.gmail.com> <0dd7b89f-6a82-1d6e-0d0a-4f2b9515bd5d@yandex.ru> <CAFYkXj=PzMx3TKSLPNvcLT3=3mUTFkcpRftFGh9MxB4_o7-RCw@mail.gmail.com> <alpine.BSF.2.21.9999.1811041851500.98957@beast.int.bit0.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
> > 
> > After your device is recognised by usbmodem and creates several cuaU*
> > devices.. still Your device may require uploading a specific firmware
> > in order for gsm modem to work. You can find those in Windows driver
> > package.
> > 
> > Use MINICOM for cuaU communications that would save you a debug time.
> > 
> > That works for me - added 3 devices like that with no problem. In fact
> > they work better on FreeBSD than Windows ;-)
> > 
> > 
> > Alternartively, replace your modem with something that is known to
> > work - for instance QUECTEL EC25 LTE module works far better than my
> > previous stock 3G module here..
> I think we're losing the plot here a bit.
> 
> While this is generally useful advice, this thread was originally about 
> the USB serial console port of Cisco ASA firewalls.  It should just be a 
> plain ol' USB-to-serial setup.  No actual modems of any kind involved, 
> especially not cellular ones.
> 
> I suspect we shouldn't even be loading umodem at all -- just ucom.  But 
> for some reason, umodem gets loaded when I plug the thing in.  With just 
> an FTDI serial-to-usb adapter in there, umodem doesn't just, just ucom.
> 
> These firewalls (and I suspect all of Cisco's newer routers and switches) 
> have both normal serial and mini-USB-to-serial ports, and you can connect 
> a simple USB-to-serial converter (PL2303, FTDI, etc) into the normal port 
> and of course that works fine on FreeBSD.  But it would be nice to skip 
> needing the dongle...

I'm curious whether the cisco side is truly a generic usb serial and
the problem is that the umodem driver is trying to do modem-specific
things which the cisco side is getting confused by.

A way to test that theory would be to add the cisco's vid/pid to the
ugensa driver (sys/dev/usb/serial/ugsena.c). If that works, I'm not
sure it's so much a solution as a clue.

I've always wanted a way to add VID/PID combos to ugsensa's internal
list on the fly, like via hints or sysctl or something, to make this
kind of quick test easier. But I never find time to add the feature.

-- Ian



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