L
L
LionG2019-02-28 11:21:18
Huawei
LionG, 2019-02-28 11:21:18

How to configure HUAWEI E173 USB modem in Armbian (Ubuntu) to work via gammu (get ttyUSB*)?

I'm trying to connect and configure the HUAWEI E173 modem. It seems to have tried everything I found on the forums ... the problem is that it is displayed as 3 usb-storage in modem mode. I permanently switched AT to modem mode with the at ^ u2diag = 0 command from another machine.
dmesg

[154805.661660] usb 2-1.2: new high-speed USB device number 17 using sunxi-ehci
[154805.772603] usb 2-1.2: New USB device found, idVendor=12d1, idProduct=1001
[154805.772627] usb 2-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[154805.772641] usb 2-1.2: Product: HUAWEI Mobile
[154805.772655] usb 2-1.2: Manufacturer: HUAWEI Technology
[154805.774849] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[154805.776946] usb-storage 2-1.2:1.1: USB Mass Storage device detected
[154805.777690] usb-storage 2-1.2:1.2: USB Mass Storage device detected

On the forums, I spied the logs of other people as it should be:
[    0.000000] console [tty0] enabled
[    5.699379] systemd[1]: Starting system-getty.slice.
[    5.700007] systemd[1]: Created slice system-getty.slice.
[   10.574801] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[   10.575036] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[   10.575206] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2

lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 017: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 002 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

ls /dev
autofs           fb1   hugepages  log           mem                 pts     rtc        tty1   tty2   tty3   tty4   tty5   tty6   ttyS3    vcs7   zram1
block            fb2   i2c-0      loop0         mmcblk0             ram0    rtc0       tty10  tty20  tty30  tty40  tty50  tty60  uhid     vcsa   zram2
bus              fb3   i2c-1      loop1         mmcblk0p1           ram1    shm        tty11  tty21  tty31  tty41  tty51  tty61  uinput   vcsa1  zram3
cedar_dev        fb4   i2c-2      loop2         mqueue              ram2    snd        tty12  tty22  tty32  tty42  tty52  tty62  urandom  vcsa2
char             fb5   initctl    loop3         net                 ram3    stderr     tty13  tty23  tty33  tty43  tty53  tty63  vcs      vcsa3
console          fb6   input      loop4         network_latency     ram4    stdin      tty14  tty24  tty34  tty44  tty54  tty7   vcs1     vcsa4
cpu_dma_latency  fb7   ion        loop5         network_throughput  ram5    stdout     tty15  tty25  tty35  tty45  tty55  tty8   vcs2     vcsa5
cuse             fd    kmem       loop6         null                ram6    sunxi-reg  tty16  tty26  tty36  tty46  tty56  tty9   vcs3     vcsa6
disk             full  kmsg       loop7         ppp                 ram7    sw_sync    tty17  tty27  tty37  tty47  tty57  ttyS0  vcs4     vcsa7
disp             fuse  kvm        loop-control  psaux               random  tty        tty18  tty28  tty38  tty48  tty58  ttyS1  vcs5     zero
fb0              hdmi  lirc0      mapper        ptmx                rfkill  tty0       tty19  tty29  tty39  tty49  tty59  ttyS2  vcs6     zram0

eject /dev/sr0
eject: unable to find or open device for: `/dev/sr0'

usb_modeswitch -H -v 12d1 -p 1001
Look for default devices ...
   product ID matched
 Found devices in default mode (1)
Access device 017 on bus 002
Current configuration number is 1
Use interface number 0

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Send old Huawei control message ...
-> Run lsusb to note any changes. Bye!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
LionG, 2019-03-03
@LionG

modprobe usbserial vendor=0x12d1 product=0x1001gives an error FATAL: Module usbserial not found
usbserial - a kernel module and it is missing in my Armbian assembly, but as I understand it, it is the key to connecting the modem, since communication with the modem goes through serial. I dug out some article in which there is a similar situation and there, to solve the problem, they rebuilt the kernel by adding this module, but for me it is still some kind of magic that takes time to study. On the manufacturer's website I found a new assembly of Armbian with the Kernel 4.19 kernel and it seems like with all the modules ... I haven't checked it yet, but I think the problem will be solved after the update.

B
bestofrouter, 2020-12-09
@bestofrouter

Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0525:a4a7 Netchip Technology, Inc. Linux-USB Serial Gadget (CDC ACM mode)
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 12d1:1506 Huawei Technologies Co ., Ltd. Modem/Networkcard
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub TP-Link AC5400

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question