[SOLVED] Huawei MS2131

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

[SOLVED] Huawei MS2131

Postby rigers » Thu Jan 30, 2020 3:26 pm

Hi,

I am trying to connect a Huawei MS2131 dongle to a Raspberry Pi running Arch Linux ARM. It "seems" that the device connects but I can't get an IP. The cell module shows online from the cell service. I've gotten it to work on a similar setup before but can't seem to be able to do it again. Any insight would be appreciated.

$this->bbcode_second_pass_code('', ' $ uname -r
4.19.93-2-ARCH')

$this->bbcode_second_pass_code('', '$ mmcli -m 0
-----------------------------
General | dbus path: /org/freedesktop/ModemManager1/Modem/0
| device id: 0c56ba87a9a8b3cdf79592712a12a18dd45de57f
-----------------------------
Hardware | manufacturer: huawei
| model: MS2131
| firmware revision: 21.751.23.00.00
| supported: gsm-umts
| current: gsm-umts
| equipment id: intentionally removed
-----------------------------
System | device: /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4
| drivers: cdc_ncm, option1
| plugin: Huawei
| primary port: ttyUSB0
| ports: ttyUSB0 (at), ttyUSB2 (at), wwan0 (net)
-----------------------------
Status | unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)
| state: registered
| power state: on
| access tech: umts
| signal quality: 67% (recent)
-----------------------------
Modes | supported: allowed: 2g, 3g; preferred: none
| allowed: 2g, 3g; preferred: 2g
| allowed: 2g, 3g; preferred: 3g
| allowed: 2g; preferred: none
| allowed: 3g; preferred: none
| current: allowed: 2g, 3g; preferred: 3g
-----------------------------
IP | supported: ipv4
-----------------------------
3GPP | imei: intentionally removed
| operator id: intentionally removed
| operator name: AT&T
| registration: roaming
-----------------------------
SIM | dbus path: /org/freedesktop/ModemManager1/SIM/0
-----------------------------
Bearer | dbus path: /org/freedesktop/ModemManager1/Bearer/0')

The output from nmcli is as follows:
$this->bbcode_second_pass_code('', '
$ nmcli d
DEVICE TYPE STATE CONNECTION
eth0 ethernet connected Wired connection 1
gatewaynet tun connected gatewaynet
ttyUSB0 gsm connecting (prepare) soracom
wlan0 wifi disconnected --
p2p-dev-wlan0 wifi-p2p disconnected --
lo loopback unmanaged --
')

dmesg shows the following
$this->bbcode_second_pass_code('', '[ 1691.069555] usb 1-1.4: new high-speed USB device number 6 using dwc_otg
[ 1691.201119] usb 1-1.4: New USB device found, idVendor=12d1, idProduct=14fe, bcdDevice= 1.02
[ 1691.209422] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1691.213861] usb 1-1.4: Product: HUAWEI Mobile
[ 1691.218267] usb 1-1.4: Manufacturer: HUAWEI
[ 1691.222670] usb 1-1.4: SerialNumber: FFFFFFFFFFFFFFFF
[ 1691.281273] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[ 1691.286229] scsi host0: usb-storage 1-1.4:1.0
[ 1692.315094] usb 1-1.4: USB disconnect, device number 6
[ 1692.629538] usb 1-1.4: new high-speed USB device number 7 using dwc_otg
[ 1692.770848] usb 1-1.4: New USB device found, idVendor=12d1, idProduct=155e, bcdDevice= 1.02
[ 1692.779029] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1692.783325] usb 1-1.4: Product: HUAWEI Mobile
[ 1692.787543] usb 1-1.4: Manufacturer: HUAWEI
[ 1692.840593] option 1-1.4:1.0: GSM modem (1-port) converter detected
[ 1692.844968] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[ 1692.849559] option 1-1.4:1.1: GSM modem (1-port) converter detected
[ 1692.854067] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
[ 1692.858652] option 1-1.4:1.2: GSM modem (1-port) converter detected
[ 1692.862977] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
[ 1692.897571] cdc_ncm 1-1.4:1.3: MAC-Address: 00:1e:10:1f:00:00
[ 1692.902854] cdc_ncm 1-1.4:1.3 wwan0: register 'cdc_ncm' at usb-3f980000.usb-1.4, Mobile Broadband Network Device, 00:1e:10:1f:00:00
[ 1693.783786] audit: type=1130 audit(1580333689.437:455): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@1-1.4:1.0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 1693.796185] audit: type=1131 audit(1580333689.437:456): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@1-1.4:1.0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'')

ifconfig has the following output. I've tried setting wwan0 UP and DOWN multiple times to no success.

$this->bbcode_second_pass_code('', '$ ifconfig wwan0
wwan0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 00:1e:10:1f:00:00 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0')
Last edited by rigers on Thu Jan 30, 2020 6:38 pm, edited 1 time in total.
rigers
 
Posts: 2
Joined: Thu Jan 30, 2020 3:22 pm

Re: Huawei MS2131

Postby rigers » Thu Jan 30, 2020 6:36 pm

Solved by updating system, uninstalling NetworkManager, ModemManager, and usb_modeswitch. Reinstalled them and it works. I suspect the system update made it work, but I don't know.

mmcli output now reads
$this->bbcode_second_pass_code('', '$ mmcli -m 0
-----------------------------
General | dbus path: /org/freedesktop/ModemManager1/Modem/0
| device id: ba18f2a0b8c60553f4e22799ce1a222e46156f58
-----------------------------
Hardware | manufacturer: huawei
| model: MS2131
| firmware revision: 21.751.23.00.00
| supported: gsm-umts
| current: gsm-umts
| equipment id: intentionally removed
-----------------------------
System | device: /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4
| drivers: huawei_cdc_ncm, option1
| plugin: Huawei
| primary port: ttyUSB2
| ports: ttyUSB0 (at), ttyUSB2 (at), wwan0 (net)
-----------------------------
Status | unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)
| state: connected
| power state: on
| access tech: umts
| signal quality: 64% (recent)
-----------------------------
Modes | supported: allowed: 2g, 3g; preferred: none
| allowed: 2g, 3g; preferred: 2g
| allowed: 2g, 3g; preferred: 3g
| allowed: 2g; preferred: none
| allowed: 3g; preferred: none
| current: allowed: 2g, 3g; preferred: 3g
-----------------------------
IP | supported: ipv4
-----------------------------
3GPP | imei: intentionally removed
| operator id: intentionally removed
| operator name: AT&T
| registration: roaming
-----------------------------
SIM | dbus path: /org/freedesktop/ModemManager1/SIM/0
-----------------------------
Bearer | dbus path: /org/freedesktop/ModemManager1/Bearer/0
')

The primary port changed from ttyUSB0 to ttyUSB2
rigers
 
Posts: 2
Joined: Thu Jan 30, 2020 3:22 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 18 guests