Re: I: Sierra.c USB Serial Driver FAQ/Feature Request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Peter Hyman <pete@xxxxxxxxxxxxxx> writes:

> Linux Kernel: 3.9.10
> Device Driver: usb/serial/sierra.c
> Device Driver version: not known
>
> Apparently Sierra has sold the AirCard 250U product to Netgear, so I am
> sure driver development on drivers/usb/serial/sierra.c will be in limbo
> for a period. While I am copying linux@xxxxxxxxxxxxxxxxxx, they will not
> do anything since they don't own the product anymore.
>
> Nonetheless, I uncovered a problem when using the AC250U Aircard device
> Vendor 0x1199, Product 0x0301. If the device is used in Windows and set
> to 4G mode, using the device in Linux will fail to create the ppp0
> network interface. I could find no workaround. Even though the device
> can be reached and modem commands sent, ppp0 won't be created.

What exactly do you mean by "ppp0 won't be created"?  The ppp interface
is a virtual network device running on top of a serial port.  Does this
mean that there is one serial port missing?  Or are all of them missing
in this mode?  Does this device support DirectIP, using the sierra_net
driver?  If so, does that still work in 4G mode?

Exactly what action does the Windows driver/application do to trigger
this?

> I
> regression tested this all the way back to kernel 3.2.29, and I also
> tried the unpublished sierra driver 1.7.40 which works up to kernel
> 3.4.x iirc. The issue is the same.
>
> The workaround is to set the device to 3G mode and then use in Linux. I
> wrote this FAQ in case it is of interest.

Nice.  Thanks.  Documenting the problem is important.

But I believe we can do better.  Making this device work regardless of
mode and Windows settings should not be too difficult.  We just need to
research a bit what's going on, and then try to do the same as Windows
to make it work.

Could you start with sending the output of "lsusb -vd 1199:0301" for
both the working (3G mode) and non-working (4G mode) cases?  This will
help understanding how the device appearance changes between these
modes, if it does?

If the device appears identical, then we have to know more details about
how the ppp connection fails. Maybe the firmware just doesn't support
PPP at all when it is in 4G mode?  The lsusb output should still tell us
whether to expect DirectIP, as Sierra use fixed interface numbers to
indicate these things.



Bjørn



> =====
> FAQ: ppp0 Network Interface does not get created after plugging AirCard
> 250U device when using Linux. No internet access is possible without the
> ppp0 network interface.
>
> Answer: If the AC250U device is used in Windows, and is set to 4G mode
> by the Sprint SmartView software, it MUST be set back to 3G mode prior
> to use in Linux. The Linux Sierra driver does not support 4G and the
> device won't be able to be initialized properly. It will be recognized
> and you can send modem commands, but the ppp0 device won't be created.
> Reset device to 3G under Windows and it will work fine in Linux.
> =====
>
> Maybe a nice feature request would be to check the 3G/4G status of the
> device and reset to 3G since that is what is supported for now. If you
> need additional information, please reach out. Happy to help.
>
> usb 4-1.2.2: New USB device found, idVendor=1199, idProduct=0301
> usb 4-1.2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=4
> usb 4-1.2.2: Product: Sierra Wireless Device
> usb 4-1.2.2: Manufacturer: Sierra Wireless, Incorporated
> usb 4-1.2.2: SerialNumber: 4Vx«Ãïÿÿÿÿ
> usbcore: registered new interface driver usbserial
> usbcore: registered new interface driver usbserial_generic
> usbserial: USB Serial support registered for generic
> usbcore: registered new interface driver sierra
> usbserial: USB Serial support registered for Sierra USB modem
> sierra 4-1.2.2:1.0: Sierra USB modem converter detected
> usb 4-1.2.2: Sierra USB modem converter now attached to ttyUSB0
> usb 4-1.2.2: Sierra USB modem converter now attached to ttyUSB1
> usb 4-1.2.2: Sierra USB modem converter now attached to ttyUSB2
> usb 4-1.2.2: Sierra USB modem converter now attached to ttyUSB3
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux