Sending USSD codes with SIMCom SIM7600E-H
Hello,
I'm currently doing some testing on the SIMCom SIM7600E modem. I've tried different versions of ModemManager and noticed that older versions were using the at port of the modem, while newer versions switched to using the qmi port.
It's good to see that connecting to a mobile network is working with newer qmi-versions (it didn't when using the at port), however USSD isn't working anymore on newer versions (error: modem has no USSD capabilities
).
I've attached several shelldumps to make it more comprehensible:
ModemManager 1.6.8 (sending USSD codes works, while connecting doesn't)
ubuntu@ubuntu:~$ ModemManager --version
ModemManager 1.6.8
Copyright (2008 - 2016) The ModemManager authors
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
ubuntu@ubuntu:~$ mmcli -m 0
/org/freedesktop/ModemManager1/Modem/0 (device id '2cc87b1d81bb58403ba2dc164625d20625f16640')
-------------------------
Hardware | manufacturer: 'SIMCOM INCORPORATED'
| model: 'SIMCOM_SIM7600E-H'
| revision: 'LE11B08SIM7600M22'
| supported: 'gsm-umts, lte'
| current: 'gsm-umts, lte'
| equipment id: '867584030209022'
-------------------------
System | device: '/sys/devices/pci0000:00/0000:00:1c.6/0000:0f:00.0/usb3/3-1'
| drivers: 'option1, qmi_wwan'
| plugin: 'SimTech'
| primary port: 'ttyUSB2'
| ports: 'ttyUSB0 (qcdm), ttyUSB2 (at), ttyUSB3 (at), wwp15s0u1i5 (net)'
-------------------------
Numbers | own : 'unknown'
-------------------------
Status | lock: 'none'
| unlock retries: 'unknown'
| state: 'registered'
| power state: 'on'
| access tech: 'unknown'
| signal quality: '80' (recent)
-------------------------
Modes | supported: 'allowed: 2g; preferred: none
| allowed: 3g; preferred: none
| allowed: 2g, 3g; preferred: none
| allowed: 2g, 3g; preferred: 2g
| allowed: 2g, 3g; preferred: 3g
| allowed: 2g, 3g, 4g; preferred: none'
| current: 'allowed: any; preferred: none'
-------------------------
Bands | supported: 'unknown'
| current: 'unknown'
-------------------------
IP | supported: 'ipv4, ipv6, ipv4v6'
-------------------------
3GPP | imei: '867584030209022'
| enabled locks: 'none'
| operator id: '23203'
| operator name: 'HoT'
| subscription: 'unknown'
| registration: 'home'
-------------------------
SIM | path: '/org/freedesktop/ModemManager1/SIM/0'
-------------------------
Bearers | paths: 'none'
ubuntu@ubuntu:~$ mmcli -m 0 --3gpp-ussd-initiate=*101#
USSD session initiated; new reply from network: 'Ihr aktuelles Guthaben beträgt 9,54 Euro.'
ubuntu@ubuntu:~$ nmcli con up HoT
Error: Connection activation failed: Unknown error
ModemManager 1.8.2 (connecting works, however USSD doesn't)
ubuntu@ubuntu:~$ ModemManager --version
ModemManager 1.8.2
Copyright (C) 2008-2017 The ModemManager authors
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
ubuntu@ubuntu:~$ mmcli -m 0
--------------------------
General | dbus path: /org/freedesktop/ModemManager1/Modem/0
| device id: b801aa9513c6186300b967c59305b58cabce1fa1
--------------------------
Hardware | manufacturer: QUALCOMM INCORPORATED
| model: 0
| revision: LE11B08SIM7600M22
| h/w revision: 10000
| supported: gsm-umts
| lte
| gsm-umts, lte
| current: gsm-umts, lte
| equipment id: 867584030209022
--------------------------
System | device: /sys/devices/pci0000:00/0000:00:1c.6/0000:0f:00.0/usb3/3-1
| drivers: option1, qmi_wwan
| plugin: SimTech
| primary port: cdc-wdm0
| ports: ttyUSB1 (qcdm), cdc-wdm0 (qmi), wwp15s0u1i5 (net)
--------------------------
Status | lock: sim-pin2
| unlock retries: sim-pin (3), sim-pin2 (3), sim-puk (10), sim-puk2 (10)
| state: registered
| power state: on
| access tech: lte
| signal quality: 70% (recent)
--------------------------
Modes | supported: allowed: 2g, 3g, 4g; preferred: none
| current: allowed: 2g, 3g, 4g; preferred: none
--------------------------
Bands | supported: egsm, dcs, utran-1, utran-5, utran-8, eutran-1, eutran-3,
| eutran-5, eutran-7, eutran-8, eutran-20, eutran-38, eutran-40,
| eutran-41
| current: egsm, dcs, utran-1, utran-5, utran-8, eutran-1, eutran-3,
| eutran-5, eutran-7, eutran-8, eutran-20, eutran-38, eutran-40,
| eutran-41
--------------------------
IP | supported: ipv4, ipv6, ipv4v6
--------------------------
3GPP | imei: 867584030209022
| operator id: 23203
| registration: home
--------------------------
SIM | dbus path: /org/freedesktop/ModemManager1/SIM/0
ubuntu@ubuntu:~$ mmcli -m 0 --3gpp-ussd-initiate=*101#
error: modem has no USSD capabilities
ubuntu@ubuntu:~$ nmcli con up HoT
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/5)
ubuntu@ubuntu:~$ nmcli con down HoT
Connection 'HoT' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/5)
ModemManager 1.11.0 (connecting works, however USSD doesn't)
ubuntu@ubuntu:~$ ModemManager --version
ModemManager 1.11.0
Copyright (C) 2008-2019 The ModemManager authors
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
ubuntu@ubuntu:~$ mmcli -m 0
--------------------------------
General | dbus path: /org/freedesktop/ModemManager1/Modem/0
| device id: b801aa9513c6186300b967c59305b58cabce1fa1
--------------------------------
Hardware | manufacturer: QUALCOMM INCORPORATED
| model: 0
| revision: LE11B08SIM7600M22
| h/w revision: 10000
| supported: gsm-umts, lte
| current: gsm-umts, lte
| equipment id: 867584030209022
--------------------------------
System | device: /sys/devices/pci0000:00/0000:00:1c.6/0000:0f:00.0/usb3/3-1
| drivers: qmi_wwan, option1
| primary port: cdc-wdm0
| plugin: SimTech
| ports: ttyUSB1 (qcdm), ttyUSB3 (at), ttyUSB4 (at),
| wwp15s0u1i5 (net), cdc-wdm0 (qmi)
--------------------------------
Status | lock: sim-pin2
| unlock retries: sim-pin (3), sim-pin2 (3), sim-puk (10), sim-puk2 (10)
| state: registered
| power state: on
| access tech: lte
| signal quality: 54% (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, utran-1, utran-5, utran-8, eutran-1, eutran-3,
| eutran-5, eutran-7, eutran-8, eutran-20, eutran-38, eutran-40,
| eutran-41
| current: egsm, dcs, utran-1, utran-5, utran-8, eutran-1, eutran-3,
| eutran-5, eutran-7, eutran-8, eutran-20, eutran-38, eutran-40,
| eutran-41
--------------------------------
IP | supported: ipv4, ipv6, ipv4v6
--------------------------------
3GPP | imei: 867584030209022
| operator id: 23203
| registration: home
--------------------------------
3GPP EPS | ue mode of operation: csps-1
--------------------------------
SIM | dbus path: /org/freedesktop/ModemManager1/SIM/0
ubuntu@ubuntu:~$ mmcli -m 0 --3gpp-ussd-initiate=*101#
error: modem has no USSD capabilities
ubuntu@ubuntu:~$ nmcli c up HoT
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6)
ubuntu@ubuntu:~$ nmcli c down HoT
Connection 'HoT' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6)
Is there any chance to get USSD working while using qmi or does ModemManager support a fallback to the at port for several commands (like USSD)?