ModemManager, libqmi, libmbim in openwrt packages repository - Test with ipv6-only isp
Thomas Schäfer
tschaefer at t-online.de
Thu Nov 14 20:28:18 UTC 2019
Am Mittwoch, 9. Oktober 2019, 09:42:29 CET schrieb Aleksander Morgado:
> Hey!
> Everyone is encouraged to switch to the official openwrt packages
Just a small report with my first try ModemManager at openwrt.
It is based on my "old friend" the E398 and the IPv6-only network by DTAG,
unfortunately still not released the public, so the apn is removed.
(git master from 11.11.2019)
I did everything via ssh and mmcli.
What is the NetworkManager part in openwrt together with ModemManager?
I was also a little bit confused by the different name of usb_modeswitch, but
that part worked already automatically.
Regards,
Thomas
-------------- next part --------------
[ 877.862089] usb 1-1.2: new high-speed USB device number 5 using ehci-platform
[ 878.017822] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 878.042325] scsi host1: usb-storage 1-1.2:1.0
[ 878.595735] usb 1-1.2: USB disconnect, device number 5
[ 890.412056] usb 1-1.2: new high-speed USB device number 6 using ehci-platform
[ 890.573904] qmi_wwan 1-1.2:1.3: cdc-wdm0: USB WDM device
[ 890.580379] qmi_wwan 1-1.2:1.3 wwan0: register 'qmi_wwan' at usb-ehci-platform-1.2, WWAN/QMI device, ce:7e:17:34:af:fb
[ 890.592443] usb-storage 1-1.2:1.5: USB Mass Storage device detected
[ 890.632412] scsi host1: usb-storage 1-1.2:1.5
[ 890.637711] usb-storage 1-1.2:1.6: USB Mass Storage device detected
[ 890.662337] scsi host2: usb-storage 1-1.2:1.6
[ 891.714884] scsi 1:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
[ 891.725453] scsi 2:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 891.739541] sd 2:0:0:0: [sdb] Attached SCSI removable disk
root at OpenWrt:~# mmcli -L
/org/freedesktop/ModemManager1/Modem/0 [QUALCOMM INCORPORATED] 0
root at OpenWrt:~#
root at OpenWrt:~# mmcli -m 0
-----------------------------
General | dbus path: /org/freedesktop/ModemManager1/Modem/0
| device id: c69ad8c46719d65f223a35e8925012d769ea9c96
-----------------------------
Hardware | manufacturer: QUALCOMM INCORPORATED
| model: 0
| firmware revision: M9200B-SCAQWBZD-3.5.340371T 1 [Apr 28 2013 21:00:00]
| h/w revision: 203F1000
| supported: gsm-umts, lte
| current: gsm-umts, lte
| equipment id: 357149040058855
-----------------------------
System | device: /sys/devices/platform/ehci-platform/usb1/1-1/1-1.2
| drivers: qmi_wwan
| plugin: Huawei
| primary port: cdc-wdm0
| ports: cdc-wdm0 (qmi), wwan0 (net)
-----------------------------
Numbers | own: 4915127093683
-----------------------------
Status | lock: sim-pin2
| unlock retries: sim-pin (3), sim-pin2 (3), sim-puk (10), sim-puk2 (10)
| state: disabled
| power state: on
| signal quality: 0% (cached)
-----------------------------
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, eutran-3, eutran-7, eutran-20
| current: egsm, dcs, pcs, g850, utran-1, eutran-3, eutran-7, eutran-20
-----------------------------
IP | supported: ipv4, ipv6, ipv4v6
-----------------------------
3GPP | imei: 357149040058855
-----------------------------
SIM | dbus path: /org/freedesktop/ModemManager1/SIM/0
root at OpenWrt:~#
mmcli -m 0 --simple-connect="apn=XXXXXXXX.telekom,ip-type=ipv6" --verbose --timeout=500
[11 Nov 2019, 18:43:41] [Debug] Forcing request to be run asynchronously
[11 Nov 2019, 18:43:41] [Debug] Assuming '0' is the modem index
[11 Nov 2019, 18:43:41] [Debug] ModemManager process found at ':1.1'
[11 Nov 2019, 18:43:41] [Debug] Modem found at '/org/freedesktop/ModemManager1/Modem/0'
[11 Nov 2019, 18:43:41] [Debug] Asynchronously connecting the modem...
successfully connected the modem
root at OpenWrt:~#
mmcli -b 0
--------------------------------
General | dbus path: /org/freedesktop/ModemManager1/Bearer/0
| type: default
--------------------------------
Status | connected: yes
| suspended: no
| interface: wwan0
| ip timeout: 20
--------------------------------
Properties | apn: XXXXXXXX.telekom
| roaming: allowed
| ip type: ipv6
--------------------------------
IPv6 configuration | method: dhcp
| address: 2a01:598:89f0:2dd6:64e1:2b62:1ee3:4b34
| prefix: 64
| gateway: 2a01:598:89f0:2dd6:5801:d54c:3281:150f
| dns: 2a01:598:7ff:0:10:74:210:221, 2a01:598:7ff:0:10:74:210:222
| mtu: 1500
--------------------------------
Statistics | duration: 60
| bytes rx: 528
| bytes tx: 624
root at OpenWrt:~# ip addr add 2a01:598:89f0:2dd6:64e1:2b62:1ee3:4b34/64 dev wwan0
root at OpenWrt:~# ip -6 route add default via 2a01:598:89f0:2dd6:5801:d54c:3281:150f
root at OpenWrt:~# ping 2600::
PING 2600:: (2600::): 56 data bytes
64 bytes from 2600::: seq=0 ttl=48 time=1427.892 ms
64 bytes from 2600::: seq=1 ttl=48 time=434.209 ms
64 bytes from 2600::: seq=2 ttl=48 time=256.220 ms
64 bytes from 2600::: seq=3 ttl=48 time=256.822 ms
64 bytes from 2600::: seq=4 ttl=48 time=255.291 ms
64 bytes from 2600::: seq=5 ttl=48 time=254.898 ms
64 bytes from 2600::: seq=6 ttl=48 time=255.487 ms
^C
--- 2600:: ping statistics ---
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max = 254.898/448.688/1427.892 ms
root at OpenWrt:~# mmcli -m 0 --simple-disconnect --verbose
[11 Nov 2019, 18:53:25] [Debug] ModemManager process found at ':1.1'
[11 Nov 2019, 18:53:25] [Debug] Assuming '0' is the modem index
[11 Nov 2019, 18:53:25] [Debug] Modem found at '/org/freedesktop/ModemManager1/Modem/0'
[11 Nov 2019, 18:53:25] [Debug] Synchronously disconnecting all bearers in the modem...
successfully disconnected all bearers in the modem
More information about the ModemManager-devel
mailing list