You are not logged in.

#1 2019-03-11 16:01:10

Freddie Chopin
Member
From: Zawiercie, Poland
Registered: 2015-08-13
Posts: 9
Website

Huawei me906e broadband modem connects ok, but network doesn't work

I have a Huawei me906e broadband modem (in a M.2 to USB adapter). In this modem I inserted a SIM card which I previously tested in my phone and it works fine. After several obstacles I managed to have this modem properly detected by networkmanager. I created a connection with default settings and it does connect:

https://i.stack.imgur.com/1Ujd1.png

As you see I have an IP address, it also detects two DNS servers. Now the problem is that it just doesn't work at all. If I open Network Tools from GNOME, I can see that the transmission and reception errors counters are going up constantly, all other counters are at zero all the time.

https://i.stack.imgur.com/SPhvT.png

If I disable my regular ETH connection (so that this modem connection would be the only one available), I can ping only "myself" - trying to ping any of the two DNS servers or the 8.8.8.8 results in 100% packet loss.

This is actually the first time I try to use a broadband modem on a PC, so I just have no idea where to go from here.

I've managed to get this working on Windows 7 running inside a Virtual Box, so the modem and the SIM card are both functional.

Mod Edit - Replaced oversized images with links.
CoC - Pasting pictures and code

Last edited by Slithery (2019-03-11 16:15:46)

Offline

#2 2019-03-11 19:52:30

Swiggles
Member
Registered: 2014-08-02
Posts: 266

Re: Huawei me906e broadband modem connects ok, but network doesn't work

I remember having a similar issue way back. For me the problem were wrong metrics and overall funky configuration that got enable during connection to the mobile adapter.
So my first guess would be to take close look at

ip link
ip addr
ip route

and go from there. Output of dmesg when connecting could be useful as well.

Offline

#3 2019-03-11 21:06:38

Freddie Chopin
Member
From: Zawiercie, Poland
Registered: 2015-08-13
Posts: 9
Website

Re: Huawei me906e broadband modem connects ok, but network doesn't work

Hello Swiggles!

Here's the relevant output:

$ ip link
...
28: wwp0s20u13c3: <BROADCAST,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether a6:57:89:71:09:64 brd ff:ff:ff:ff:ff:ff
$ ip addr
...
28: wwp0s20u13c3: <BROADCAST,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether a6:57:89:71:09:64 brd ff:ff:ff:ff:ff:ff
    inet 10.106.139.167/28 brd 10.106.139.175 scope global noprefixroute wwp0s20u13c3
       valid_lft forever preferred_lft forever
$ ip route
default via 10.106.139.161 dev wwp0s20u13c3 proto static metric 20700 
10.106.139.160/28 dev wwp0s20u13c3 proto kernel scope link src 10.106.139.167 metric 700
$ dmesg
...
[31312.977091] usb 2-13: new high-speed USB device number 18 using xhci_hcd
[31313.149467] usb 2-13: New USB device found, idVendor=12d1, idProduct=1573, bcdDevice= 2.28
[31313.149474] usb 2-13: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[31313.149478] usb 2-13: Product: HUAWEI Mobile
[31313.149483] usb 2-13: Manufacturer: HUAWEI Technology
[31313.149487] usb 2-13: SerialNumber: 0123456712ABCA17
[31313.236586] cdc_ether 2-13:2.0 usb0: register 'cdc_ether' at usb-0000:00:14.0-13, CDC Ethernet Device, 02:1e:10:1f:00:00
[31313.252305] option 2-13:2.2: GSM modem (1-port) converter detected
[31313.252385] usb 2-13: GSM modem (1-port) converter now attached to ttyUSB0
[31313.256560] option 2-13:2.3: GSM modem (1-port) converter detected
[31313.256651] usb 2-13: GSM modem (1-port) converter now attached to ttyUSB1
[31313.260861] option 2-13:2.4: GSM modem (1-port) converter detected
[31313.260917] usb 2-13: GSM modem (1-port) converter now attached to ttyUSB2
[31313.285285] cdc_ether 2-13:2.0 enp0s20u13c2: renamed from usb0
[31313.805759] cdc_ether 2-13:2.0 enp0s20u13c2: unregister 'cdc_ether' usb-0000:00:14.0-13, CDC Ethernet Device
[31313.834278] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[31313.834289] option 2-13:2.2: device disconnected
[31313.834385] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[31313.834398] option 2-13:2.3: device disconnected
[31313.834475] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[31313.834487] option 2-13:2.4: device disconnected
[31314.280837] cdc_mbim 2-13:3.0: NDP will be placed at end of frame for this device.
[31314.281020] cdc_mbim 2-13:3.0: cdc-wdm1: USB WDM device
[31314.281252] cdc_mbim 2-13:3.0 wwan0: register 'cdc_mbim' at usb-0000:00:14.0-13, CDC MBIM, d6:85:38:44:b5:68
[31314.291457] option 2-13:3.2: GSM modem (1-port) converter detected
[31314.291595] usb 2-13: GSM modem (1-port) converter now attached to ttyUSB0
[31314.297104] cdc_mbim 2-13:3.0 wwp0s20u13c3: renamed from wwan0
[31315.799307] audit: type=1130 audit(1552337960.190:306): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@2-13 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[31315.799309] audit: type=1131 audit(1552337960.190:307): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@2-13 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[31316.293685] audit: type=1130 audit(1552337960.687:308): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[31318.991048] audit: type=1111 audit(1552337963.383:309): pid=582 uid=0 auid=4294967295 ses=4294967295 msg='op=connection-activate uuid=b3d6ed64-c0e4-4724-ab16-b1005fd407d2 name=506C6179204F6E6C696E652044656661756C74 pid=3908 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[31324.350053] audit: type=1130 audit(1552337968.740:310): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

`dmesg` output is from the moment I plugged the modem to USB to the moment when connection is established.

Anything more I could provide? These all looks more-or-less OK to me, but - as I said earlier - I really have nothing to compare to...

Offline

#4 2019-03-11 22:03:27

Swiggles
Member
Registered: 2014-08-02
Posts: 266

Re: Huawei me906e broadband modem connects ok, but network doesn't work

Yes, you are right. They look fine and no wonky routes in between.

Maybe let's look into another direction. We can clearly see the modem connects to the tower and receives a lease from their tower which is handled correctly. Let's try a few things and test the output:

drill archlinux.org

The following tests are for MTU checking.

ping -c3 archlinux.org
ping -Mdo -c3 -s1 archlinux.org
ping -Mdo -c3 -s1300 archlinux.org
ping -Mdo -c3 -s1400 archlinux.org
ping -Mdo -c3 -s1470 archlinux.org
ping -Mdo -c3 -s9000 archlinux.org

Edit: Replace the address with the IP (138.201.81.199) if the lookup fails.

Last edited by Swiggles (2019-03-11 22:06:42)

Offline

#5 2019-03-11 22:38:56

Freddie Chopin
Member
From: Zawiercie, Poland
Registered: 2015-08-13
Posts: 9
Website

Re: Huawei me906e broadband modem connects ok, but network doesn't work

Unfortunately neither of these commands does anything when the modem connection is established - I have to kill them all with Ctrl+C after a while. `drill` prints nothing. All `ping` cause 100% packet loss. The last one also prints "ping: local error: Message too long, mtu=1500" error 3 times. I used the version with IP addresses.

Maybe it would be possible to compare the procedure used to connect and talk with the modem on Linux and the one on Windows? With ModemManager I can probably see all the AT commands that are issued, but I'm not sure this will be that easy on Windows, even if I'm running it inside Virtual Box... It seems that even though the modem connects, the whole connection is "broken" from the start, as I cannot even ping the DNSes or the gateway. Maybe something is wrong with the connection parameters in NetworkManager? I've left all of them at their default value and the APN settings also look correct, but maybe there is something that I should change?

Offline

#6 2019-03-11 23:04:28

kevku
Member
From: Estonia
Registered: 2009-11-21
Posts: 73

Re: Huawei me906e broadband modem connects ok, but network doesn't work

These things usually have many different operating modes hilink, cdc, qmi and depending on firmware bugs some work better others need some obtuse quirks that are in their windows drivers. qmi mode in my experience works best as it gives direct access to the Qualcomm modem but need to dig through source code and russian forums to find the correct modeswitch codes.

Offline

#7 2019-03-11 23:11:32

Swiggles
Member
Registered: 2014-08-02
Posts: 266

Re: Huawei me906e broadband modem connects ok, but network doesn't work

The last command was a sanity check and the output expected, because it's bigger than the configured MTU size of 1500.
Your comment just gave me an idea though. Could you please paste the output of

mmcli -m 0

Dont forget to remove sensitive data first (double check please)

grep -Eiv "imei|numbers"

Additionally please show the output of (if you are using the same port, otherwise adapt the address, you find it in dmesg)

cat /sys/bus/usb/devices/2-13/bConfigurationValue

Offline

#8 2019-03-12 09:33:23

Freddie Chopin
Member
From: Zawiercie, Poland
Registered: 2015-08-13
Posts: 9
Website

Re: Huawei me906e broadband modem connects ok, but network doesn't work

These things usually have many different operating modes hilink, cdc, qmi and depending on firmware bugs some work better others need some obtuse quirks that are in their windows drivers. qmi mode in my experience works best as it gives direct access to the Qualcomm modem but need to dig through source code and russian forums to find the correct modeswitch codes.

Yes, I supposed so, but the problem here is that I really have zero experience with broadband modems, so it's even hard to look for solutions online. Most of what I found seems like a more straightforward issue - the modem is not seen by the system, you cannot connect to the network, the modem disconnects after some time. Yet here it is a mix of everything - it connects but doesn't work (;

Swiggles wrote:

Dont forget to remove sensitive data first (double check please)

I wouldn't say these are very sensitive - this modem and the card are meant only for development purposes of embedded firmware, not something I'm going to use daily (;

$ mmcli -m 2
  --------------------------
  General  |      dbus path: /org/freedesktop/ModemManager1/Modem/2
           |      device id: cf158ea5a7dc1bcde7718481628665a07514f99e
  --------------------------
  Hardware |   manufacturer: HUAWEI Technology
           |          model: HUAWEI Mobile
           |       revision: 12.430.19.08.00
           |   h/w revision: MD1ME906EM
           |      supported: gsm-umts, lte
           |        current: gsm-umts, lte
           |   equipment id: 866714010617982
  --------------------------
  System   |         device: /sys/devices/pci0000:00/0000:00:14.0/usb2/2-13
           |        drivers: cdc_mbim, option1
           |         plugin: Huawei
           |   primary port: cdc-wdm1
           |          ports: wwp0s20u13c3 (net), ttyUSB0 (gps), cdc-wdm1 (mbim)
  --------------------------
  Status   | unlock retries: sim-pin2 (3)
           |          state: connected
           |    power state: on
           |    access tech: lte
           | signal quality: 64% (recent)
  --------------------------
  Modes    |      supported: allowed: 2g; preferred: none
           |                 allowed: 3g; preferred: none
           |                 allowed: 4g; preferred: none
           |                 allowed: 2g, 3g; preferred: 3g
           |                 allowed: 2g, 3g; preferred: 2g
           |                 allowed: 2g, 4g; preferred: 4g
           |                 allowed: 2g, 4g; preferred: 2g
           |                 allowed: 3g, 4g; preferred: 3g
           |                 allowed: 3g, 4g; preferred: 4g
           |                 allowed: 2g, 3g, 4g; preferred: 4g
           |                 allowed: 2g, 3g, 4g; preferred: 3g
           |                 allowed: 2g, 3g, 4g; preferred: 2g
           |        current: allowed: 2g, 3g, 4g; preferred: 4g
  --------------------------
  Bands    |      supported: egsm, dcs, pcs, g850, utran-1, utran-5, utran-8, utran-2, 
           |                 eutran-1, eutran-2, eutran-3, eutran-5, eutran-7, eutran-8, eutran-20
           |        current: egsm, dcs, pcs, g850, utran-1, utran-5, utran-8, utran-2, 
           |                 eutran-1, eutran-2, eutran-3, eutran-5, eutran-7, eutran-8, eutran-20
  --------------------------
  IP       |      supported: ipv4, ipv6, ipv4v6
  --------------------------
  3GPP     |           imei: ...
           |  enabled locks: fixed-dialing
           |    operator id: 26006
           |  operator name: PLAY
           |   registration: home
  --------------------------
  SIM      |      dbus path: /org/freedesktop/ModemManager1/SIM/2
  --------------------------
  Bearer   |      dbus path: /org/freedesktop/ModemManager1/Bearer/0
$ cat /sys/bus/usb/devices/2-13/bConfigurationValue
3

Offline

#9 2019-03-12 15:10:47

Swiggles
Member
Registered: 2014-08-02
Posts: 266

Re: Huawei me906e broadband modem connects ok, but network doesn't work

That seems to be correct. You could try bringing it into AT mode

echo 0 > /sys/bus/usb/devices/2-13/bConfigurationValue

https://osmocom.org/projects/quectel-mo … awei_ME906

But in the end I don't know how to continue from there. Sorry.

Offline

Board footer

Powered by FluxBB