On Thu, Nov 22, 2018 at 03:10:15PM +0100, Miroslav Skoric wrote:
> Hello all,
>
> What is needed to install so that Devuan Jessie recognizes Huawei modems:
I just dug out one of my old dongles and plugged it into a debian
testing laptop.
The mode switch seems to be automatic, which is what I remembered, and
someone else said had been true of recent kernels.
Here is an extract from dmesg:
-----------------------------------------------------------------
[ 464.222099] usb 2-9: Product: HUAWEI Mobile
[ 464.222102] usb 2-9: Manufacturer: HUAWEI Technology
[ 464.226948] usb-storage 2-9:1.0: USB Mass Storage device detected
[ 464.248341] usb-storage 2-9:1.1: USB Mass Storage device detected
[ 464.276381] usb-storage 2-9:1.2: USB Mass Storage device detected
[ 464.277385] scsi host6: usb-storage 2-9:1.2
[ 464.277705] usb-storage 2-9:1.3: USB Mass Storage device detected
[ 464.279210] scsi host7: usb-storage 2-9:1.3
[ 464.816572] usbcore: registered new interface driver usbserial_generic
[ 464.816580] usbserial: USB Serial support registered for generic
[ 464.819253] usbcore: registered new interface driver option
[ 464.819261] usbserial: USB Serial support registered for GSM modem (1-port)
[ 464.819317] option 2-9:1.0: GSM modem (1-port) converter detected
[ 464.819385] usb 2-9: GSM modem (1-port) converter now attached to ttyUSB0
[ 464.819423] option 2-9:1.1: GSM modem (1-port) converter detected
[ 464.819484] usb 2-9: GSM modem (1-port) converter now attached to ttyUSB1
[ 465.315154] scsi 7:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
[ 465.317098] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 465.336190] sd 7:0:0:0: Attached scsi generic sg2 type 0
[ 465.344432] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[ 465.346732] sr 6:0:0:0: [sr1] scsi-1 drive
[ 465.346986] sr 6:0:0:0: Attached scsi CD-ROM sr1
[ 465.347078] sr 6:0:0:0: Attached scsi generic sg3 type 5
------------------------------------------------------------------------
Note the connections to /dev/ttyUSB0 & /dev/ttyUSB1. You use these in
the chat/ppp scripts. I can probably dig out my versions somewhere if
you need them.
Extract from lsusb -v -s 002:004 :
-----------------------------------------------------------------
Bus 002 Device 004: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x1003 E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem
bcdDevice 0.00
iManufacturer 2 HUAWEI Technology
iProduct 1 HUAWEI Mobile
iSerial 0
bNumConfigurations 1
-----------------------------------------------------------------------------
extract from lsmod:
------------------------------------------------------------------------------
Module Size Used by
option 53248 0
usb_wwan 20480 1 option
usbserial 53248 2 usb_wwan,option
uas 28672 0
usb_storage 69632 1 uas
-------------------------------------------------------------------------------
*****************************************************
I also dug out an old ZTE dongle and plugged that in. From dmesg:
-------------------------------------------------------------------
[ 1233.858740] usb 2-9: new high-speed USB device number 5 using xhci_hcd
[ 1234.007890] usb 2-9: New USB device found, idVendor=19d2, idProduct=1514, bcdDevice= 0.01
[ 1234.007893] usb 2-9: New USB device strings: Mfr=2, Product=1, SerialNumber=3
[ 1234.007895] usb 2-9: Product: MF192
[ 1234.007897] usb 2-9: Manufacturer: ZTE
[ 1234.007899] usb 2-9: SerialNumber: MF6910TMOD000000
[ 1234.008947] usb-storage 2-9:1.0: USB Mass Storage device detected
[ 1234.009175] scsi host6: usb-storage 2-9:1.0
[ 1234.599317] usb 2-9: USB disconnect, device number 5
[ 1243.398719] usb 2-9: new high-speed USB device number 6 using xhci_hcd
[ 1243.548381] usb 2-9: New USB device found, idVendor=19d2, idProduct=1515, bcdDevice= 0.01
[ 1243.548385] usb 2-9: New USB device strings: Mfr=2, Product=1, SerialNumber=3
[ 1243.548388] usb 2-9: Product: MF192
[ 1243.548390] usb 2-9: Manufacturer: ZTE
[ 1243.548392] usb 2-9: SerialNumber: 5012F02B32EB2D2EFCBFD096F7C39FE6485DEC7C
[ 1243.552969] usb-storage 2-9:1.4: USB Mass Storage device detected
[ 1243.553277] scsi host6: usb-storage 2-9:1.4
[ 1244.085356] cdc_acm 2-9:1.0: ttyACM0: USB ACM device
[ 1244.085737] cdc_acm 2-9:1.2: ttyACM1: USB ACM device
[ 1244.085984] cdc_acm 2-9:1.5: ttyACM2: USB ACM device
[ 1244.086241] usbcore: registered new interface driver cdc_acm
[ 1244.086242] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 1244.555094] scsi 6:0:0:0: Direct-Access ZTE Storage 0001 PQ: 0 ANSI: 0
[ 1244.594843] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 1244.595547] sd 6:0:0:0: [sdb] Attached SCSI removable disk
-----------------------------------------------------------------------
Again, note the /dev/ACM0, /dev/ACM1 and /dev/ACM2 nodes. The
corresponding ppp/chat scripts use these devices.
Again, I can probably dig out those if you really want them.
I assume that more modern dongles/modems will be similar.
ael