Open transport “/dev/cdc-wdm0” on USB device in QMI mode
Interface id: 0x8
Transport callback is invoked, type: 1, value: 0.
CtlService_InitializeEx failed
root@NVTEVM:/mnt/app$
root@NVTEVM:/mnt/app$ ./lite-qmi-connection-managerarm
lite-qmi-connection-manager v1.0.2409.0
Open transport “/dev/cdc-wdm0” on USB device in QMI mode
Interface id: 0x8
Network interface: wwan0
Device interface: RmNet
Set uplink/downlink data aggregation protocol 5
Model: RC7630
Device Power Status: 0 - Online
HomeNetwork: CMHK
Network Selection Preference: auto
SessionStatus (0:ipv4): Disconnected
SessionStatus (1:ipv6): Disconnected
SessionStatus (2:ipv4): Disconnected
SessionStatus (3:ipv6): Disconnected
SessionStatus (4:ipv4): Disconnected
SessionStatus (5:ipv6): Disconnected
SessionStatus (6:ipv4): Disconnected
SessionStatus (7:ipv6): Disconnected
Auto-ping check on connection: enabled
Routing table update on connection: enabled
Please select one of the following options or press ‘q’ to exit:
1. start a single-PDN data session
2. Start one connection of a multi-PDN data session
3. Stop one connection
4. Stop all active connections
5. Display all profiles on the device
6. Display one profile on the device
7. Create a profile on the device
8. Modify an existing profile on the device
9. Delete a profile from the device
10. Scan available networks
11. Enable QOS Event
12. Disable QOS Event
13. Request QOS Expanded
14. Get QOS Information
15. QOS Indication Register
16. Read QOS Data Statistics (SWIQOS)
17. Read QOS Extra APN Parameters (SWIQOS)
18. Get Packet Statistics
19. Get Current Channel Rate
20. Toggle pinging on connection
21. Toggle routing table update on connection
22. Get loopback
23. Set loopback
24. Get data format
25. Set data format
26. Enable/disable WDS event report indication
27. Enable/disable keep data session alive
28. Get delegated IPv6 prefix
29. Remove delegated IPv6 prefix
(q)uit to exit:
2
Please enter Network selection preference (0: Auto (default), 1: Manual) (up to
3 Characters), or press to use default value: 0
Please enter Connect via 0: existing profile (default) or 1: explicit APN (up to
3 Characters), or press to use default value:
ID PDPType IPAddress PrimaryDNS SecondaryDNS Auth Pro
fileName APNName UserName IPv6PrefixDele
*1 0 0.0.0.0 0.0.0.0 0.0.0.0 0
cmhk disabled
Please enter a profile id (1-42) (up to 4 Characters), or press to exit:
I ran lite-qmi-connection-manager.
However, it is not actually connected to the rc7630 module.
However, unlike when testing previously, when i run the ifconfig -a command, the log that was replied to just before is displayed.
The curious thing is that qmimux0, qmimux1, qmimux2, and qmimux3 are displayed, but no values are actually assigned.
while looking for the cause, I found out that qmicli was necessary, so I compiled and used qmicli.
The result is the log below
Please tell us the meaning of the error in the log below.
I can run the MBPL connection manager application with RC7620:
owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R30_ENG6-lite.src/MBPL_SDK_R30_ENG6-lite.src/SampleApps/lite-qmi-connection-manager$ sudo ./bin/lite-qmi-connection-managerhostx86_64
lite-qmi-connection-manager v1.0.2211.0
Open transport "/dev/cdc-wdm0" on USB device in QMI mode
Interface id: 8
Device interface: RmNet
QMAP enabled
Model: RC7620
Device Power Status: 0 - Online
HomeNetwork: CMHK
Network Selection Preference: auto
SessionStatus (0:ipv4): Disconnected
SessionStatus (1:ipv6): Disconnected
SessionStatus (2:ipv4): Disconnected
SessionStatus (3:ipv6): Disconnected
SessionStatus (4:ipv4): Disconnected
SessionStatus (5:ipv6): Disconnected
SessionStatus (6:ipv4): Disconnected
SessionStatus (7:ipv6): Disconnected
Auto-ping check on connection: enabled
Routing table update on connection: enabled
Please select one of the following options or press 'q' to exit:
1. start a single-PDN data session
2. Start one connection of a multi-PDN data session
3. Stop one connection
4. Stop all active connections
5. Display all profiles on the device
6. Display one profile on the device
7. Create a profile on the device
8. Modify an existing profile on the device
9. Delete a profile from the device
10. Scan available networks
11. Lock PCI
12. Disable PCI locking
13. Get PCI locking
14. Enable QOS Event
15. Disable QOS Event
16. Request QOS Expanded
17. Get QOS Information
18. QOS Indication Register
19. Read QOS Data Statistics (SWIQOS)
20. Read QOS Extra APN Parameters (SWIQOS)
21. Get Packet Statistics
22. Get Current Channel Rate
23. Toggle pinging on connection
24. Toggle routing table update on connection
27. Enable QMAP
28. Disable QMAP
29. Enable/disable WDS event report indication
30. Enable/disable keep data session alive
(q)uit to exit:
1
Please enter Network selection preference (0: Auto (default), 1: Manual) (up to 3 Characters), or press <Enter> to use default value:
Please enter Connect via 0: existing profile (default) or 1: explicit APN (up to 3 Characters), or press <Enter> to use default value:
ID PDPType IPAddress PrimaryDNS SecondaryDNS Auth ProfileName APNName UserName
1 0 0.0.0.0 0.0.0.0 0.0.0.0 0 CMHK
2 3 0.0.0.0 0.0.0.0 0.0.0.0 0 ims
3 3 0.0.0.0 0.0.0.0 0.0.0.0 0 sos
Please enter a profile id (1-42) (up to 4 Characters), or press <Enter> to exit: 1
1: IPV4 (default)
2: IPV6
3: IPV4V6
Please enter IP family preference for the call (up to 3 Characters), or press <Enter> to use default value:
WDS[0] BindMuxID 1 returns 0
WDS[0] setIPFamily preference 4 returns 0
Starting data session via profile 1
WDS[0] IPv4 data session started successfully for Profile ID: 1
<< receiving WDS_PKT_STATUS_IND
WDS IND: msgid 0x22, type:4
[unpack_wds_SLQSSetPacketSrvStatusCallback]
Packet Service 0 Status: 0x2, Reconfig required: 0
IP Family: 4
Technology: 0x8004
Bearer ID: 0x5
SessionStatus (0:ipv4): Connected
SetAdaptorMtu(qmimux0:4) mtu 1500
SetAdaptorMtu(wwan0:3) mtu 1500
Up adaptor wwan0(3)
Up adaptor qmimux0(4)
SetAdaptorAddress(family 2): ip addr add 10.99.157.195:29 dev qmimux0(4)
IsAdaptorUp - Adaptor wwan0 is up
IsAdaptorUp - Adaptor qmimux0 is up
SetRoute(family 2): route add 0.0.0.0:0 dev qmimux0(4) gw 0.0.0.0
PING 8.8.8.8 56 bytes data in ICMP packets.
64 bytes from 8.8.8.8 icmp_seq=1 ttl=58 rtt=4001.000 ms
64 bytes from 8.8.8.8 icmp_seq=2 ttl=58 rtt=3001.000 ms
64 bytes from 8.8.8.8 icmp_seq=3 ttl=58 rtt=2000.000 ms
64 bytes from 8.8.8.8 icmp_seq=4 ttl=58 rtt=1000.000 ms
--------------------PING statistics-------------------
4 packets transmitted, 4 received , %0 lost
After that I can ping google server via qmimux0 interface:
owner@ubuntu:~$ ping 8.8.8.8 -I qmimux0
PING 8.8.8.8 (8.8.8.8) from 10.99.157.195 qmimux0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=58 time=133 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=58 time=17.2 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=58 time=24.0 ms
I can also start the network connection by qmicli in Ubuntu 18:
owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R30_ENG6-lite.src/MBPL_SDK_R30_ENG6-lite.src/SampleApps/lite-qmi-connection-manager$ sudo qmi-network /dev/cdc-wdm0 start
Loading profile at /etc/qmi-network.conf...
APN: CMHK
APN user: unset
APN password: unset
qmi-proxy: no
Checking data format with 'qmicli -d /dev/cdc-wdm0 --wda-get-data-format '...
Device link layer protocol retrieved: raw-ip
Getting expected data format with 'qmicli -d /dev/cdc-wdm0 --get-expected-data-format'...
Expected link layer protocol retrieved: 802-3
Updating kernel link layer protocol with 'qmicli -d /dev/cdc-wdm0 --set-expected-data-format=raw-ip'...
Kernel link layer protocol updated
Starting network with 'qmicli -d /dev/cdc-wdm0 --wds-start-network=apn='CMHK' --client-no-release-cid '...
Saving state at /tmp/qmi-network-state-cdc-wdm0... (CID: 3)
Saving state at /tmp/qmi-network-state-cdc-wdm0... (PDH: 2248177728)
Network started successfully
owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R30_ENG6-lite.src/MBPL_SDK_R30_ENG6-lite.src/SampleApps/lite-qmi-connection-manager$ ping 8.8.8.8 -I wwan0
connect: Network is unreachable
owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R30_ENG6-lite.src/MBPL_SDK_R30_ENG6-lite.src/SampleApps/lite-qmi-connection-manager$ sudo udhcpc -i wwan0
udhcpc: started, v1.27.2
udhcpc: sending discover
udhcpc: sending select for 10.98.52.161
udhcpc: lease of 10.98.52.161 obtained, lease time 7200
owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R30_ENG6-lite.src/MBPL_SDK_R30_ENG6-lite.src/SampleApps/lite-qmi-connection-manager$ ping 8.8.8.8 -I wwan0
PING 8.8.8.8 (8.8.8.8) from 10.98.52.161 wwan0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=99.4 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=35.6 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=117 time=29.6 ms
Lastly I have also followed the link below to establish data connection with AT!SCACT.
It is working fine on my Ubuntu 18:
connection manager application
Before using the connection manager, I thought I had already activated it with the AT command AT+CGACT=1,1, but communication did not work well.
So I used a connection manager application.
Open transport “/dev/cdc-wdm0” on USB device in QMI mode
Interface id: 0x8
Network interface: wwan0
Device interface: RmNet
Set uplink/downlink data aggregation protocol 5
Model: RC7630
Device Power Status: 0 - Online
HomeNetwork: CMHK
Network Selection Preference: auto
SessionStatus (0:ipv4): Disconnected
SessionStatus (1:ipv6): Disconnected
SessionStatus (2:ipv4): Disconnected
SessionStatus (3:ipv6): Disconnected
SessionStatus (4:ipv4): Disconnected
SessionStatus (5:ipv6): Disconnected
SessionStatus (6:ipv4): Disconnected
SessionStatus (7:ipv6): Disconnected
Auto-ping check on connection: enabled
Routing table update on connection: enabled
Please select one of the following options or press ‘q’ to exit:
1.start a single-PDN data session
2.Start one connection of a multi-PDN data session
3.Stop one connection
4.Stop all active connections
5.Display all profiles on the device
6.Display one profile on the device
7.Create a profile on the device
8.Modify an existing profile on the device
9.Delete a profile from the device
10.Scan available networks
11.Enable QOS Event
12.Disable QOS Event
13.Request QOS Expanded
14.Get QOS Information
15.QOS Indication Register
16.Read QOS Data Statistics (SWIQOS)
17.Read QOS Extra APN Parameters (SWIQOS)
18.Get Packet Statistics
19.Get Current Channel Rate
20.Toggle pinging on connection
21.Toggle routing table update on connection
22.Get loopback
23.Set loopback
24.Get data format
25.Set data format
26.Enable/disable WDS event report indication
27.Enable/disable keep data session alive
28.Get delegated IPv6 prefix
29.Remove delegated IPv6 prefix
(q)uit to exit:
login[557]: root login on ‘pts/1’
10
NetworkScan may take a few minutes. Result will be displayed when available. P
lease wait…
Please select one of the following options or press ‘q’ to exit:
1.start a single-PDN data session
2.Start one connection of a multi-PDN data session
3.Stop one connection
4.Stop all active connections
5.Display all profiles on the device
6.Display one profile on the device
7.Create a profile on the device
8.Modify an existing profile on the device
9.Delete a profile from the device
10.Scan available networks
11.Enable QOS Event
12.Disable QOS Event
13.Request QOS Expanded
14.Get QOS Information
15.QOS Indication Register
16.Read QOS Data Statistics (SWIQOS)
17.Read QOS Extra APN Parameters (SWIQOS)
18.Get Packet Statistics
19.Get Current Channel Rate
20.Toggle pinging on connection
21.Toggle routing table update on connection
22.Get loopback
23.Set loopback
24.Get data format
25.Set data format
26.Enable/disable WDS event report indication
27.Enable/disable keep data session alive
28.Get delegated IPv6 prefix
29.Remove delegated IPv6 prefix
(q)uit to exit:
unpack_nas_PerformNetworkScan ret: 0
Network Scan Result: 0
Network 0: LG U+
MCC/MNC: 450/6
In Use: Available(2)
Forbidden: Not forbidden(2)
Preferred: Not preferred(2)
Roaming: Roam(2)
RAT: LTE(8)
MNC includes PCS digit: FALSE
Network 1: 450 30
MCC/MNC: 450/30
In Use: Available(2)
Open transport “/dev/cdc-wdm0” on USB device in QMI mode
Interface id: 0x8
Transport callback is invoked, type: 1, value: 0.
CtlService_InitializeEx failed
root@NVTEVM:/mnt/app$
root@NVTEVM:/mnt/app$ ./lite-qmi-connection-managerarm
lite-qmi-connection-manager v1.0.2409.0
Open transport “/dev/cdc-wdm0” on USB device in QMI mode
Interface id: 0x8
Network interface: wwan0
Device interface: RmNet
Set uplink/downlink data aggregation protocol 5
Model: RC7630
Device Power Status: 0 - Online
HomeNetwork: CMHK
Network Selection Preference: auto
SessionStatus (0:ipv4): Disconnected
SessionStatus (1:ipv6): Disconnected
SessionStatus (2:ipv4): Disconnected
SessionStatus (3:ipv6): Disconnected
SessionStatus (4:ipv4): Disconnected
SessionStatus (5:ipv6): Disconnected
SessionStatus (6:ipv4): Disconnected
SessionStatus (7:ipv6): Disconnected
Auto-ping check on connection: enabled
Routing table update on connection: enabled
Please select one of the following options or press ‘q’ to exit:
1. start a single-PDN data session
2. Start one connection of a multi-PDN data session
3. Stop one connection
4. Stop all active connections
5. Display all profiles on the device
6. Display one profile on the device
7. Create a profile on the device
8. Modify an existing profile on the device
9. Delete a profile from the device
10. Scan available networks
11. Enable QOS Event
12. Disable QOS Event
13. Request QOS Expanded
14. Get QOS Information
15. QOS Indication Register
16. Read QOS Data Statistics (SWIQOS)
17. Read QOS Extra APN Parameters (SWIQOS)
18. Get Packet Statistics
19. Get Current Channel Rate
20. Toggle pinging on connection
21. Toggle routing table update on connection
22. Get loopback
23. Set loopback
24. Get data format
25. Set data format
26. Enable/disable WDS event report indication
27. Enable/disable keep data session alive
28. Get delegated IPv6 prefix
29. Remove delegated IPv6 prefix
(q)uit to exit:
2
Please enter Network selection preference (0: Auto (default), 1: Manual) (up to
3 Characters), or press to use default value: 0
Please enter Connect via 0: existing profile (default) or 1: explicit APN (up to
3 Characters), or press to use default value:
ID PDPType IPAddress PrimaryDNS SecondaryDNS Auth Pro
fileName APNName UserName IPv6PrefixDele
*1 0 0.0.0.0 0.0.0.0 0.0.0.0 0
cmhk disabled
Please enter a profile id (1-42) (up to 4 Characters), or press to exit:
for the log in connection manager, it is not complete, so not sure where the problem is.
Please note that you cannot quit the connection manager application after establishing data connection, otherwise the data channel will be dropped.
On the other hand, I don’t see there is any log by using AT!SCACT and qmi-network.