In the case of mbim-network command I explicitly run dhclient or udhcpc for getting dhcp address
i remember there is no need to run dhcp or dns
It will do automatically:
SessionStatus (0:ipv4): Connected
SetAdaptorMtu(wwan0:3) mtu 1500
Up adaptor wwan0(3)
SetAdaptorAddress(family 2): ip addr add 10.33.207.146:30 dev wwan0(3)
IsAdaptorUp - Adaptor wwan0 is up
SetRoute(family 2): route add 0.0.0.0:0 dev wwan0(3) 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=4003.000 ms
64 bytes from 8.8.8.8 icmp_seq=2 ttl=58 rtt=3002.000 ms
64 bytes from 8.8.8.8 icmp_seq=3 ttl=58 rtt=2001.000 ms
64 bytes from 8.8.8.8 icmp_seq=4 ttl=58 rtt=1000.000 ms
Are you saying in the case of mbim-network or using connection manager ?
the log is from connection manager
BTW, you can also try this application lite-mbim-connection-managerhostx86_64, it is also working on my Ubuntu18:
setting-simple.conf:
session 0,,,CMHK,MBIMCompressionNone,MBIMAuthProtocolNone,MBIMContextIPTypeIPv4,false,vlan.0,4094
owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R30_ENG6-lite.src/MBPL_SDK_R30_ENG6-lite.src/SampleApps/lite-mbim-connection-manager$ sudo ./bin/lite-mbim-connection-managerhostx86_64 -s settings-simple.conf
[sudo] password for owner:
lite-mbim-connection-manager v1.0.2210.0
session
0
CMHK
MBIMCompressionNone
MBIMAuthProtocolNone
MBIMContextIPTypeIPv4
false
vlan.0
4094
route
0.0.0.0
0
route
::
128
MbimTransport_Initialize success
--------------------------
SubscriberReadyStatusQuery
--------------------------
readyState = MBIMSubscriberReadyStateInitialized
subscriberIdLen = 15
subscriberId = 454120639512345
simIccIdLen = 20
simIccId = 89852122111085712345
readyInfo = MBIMReadyInfoFlagsNone
API: success
--------
PinQuery
--------
pinType = MBIMPinTypePin2
pinState = MBIMPinStateLocked
remainingAttempts = 3
API: success
---------------
RadioStateQuery
---------------
hwRadioState = MBIMRadioOn
swRadioState = MBIMRadioOn
------------------
RegisterStateQuery
------------------
nwError = 0
registerState = MBIMRegisterStateHome
registerMode = MBIMRegisterModeAutomatic
availableDataClasses = 0x80000020
currentCellularClass = 0x00000001
providerIdLen = 5
providerId = 45412
providerNameLen = 4
providerName = CMHK
roamingTextLen = 0
roamingText =
registrationFlag = 0x00000002
API: success
------------------
PacketServiceQuery
------------------
nwError = 0
packetServiceState = MBIMPacketServiceStateAttached
highestAvailableDataClass = 0x80000000
uplinkSpeed = 1200000000
downlinkSpeed = 3200000000
-------------------
ConnectSet activate
-------------------
sessionId = 0
activationState = MBIMActivationStateActivated
voiceCallState = MBIMVoiceCallStateNone
ipType = MBIMContextIPTypeIPv4
contextType = MBIMContextTypeInternet
nwError = 0
API: success
--------------------
IpConfigurationQuery
--------------------
sessionId = 0
iPv4ConfigurationAvailable = 0x0000000f
iPv6ConfigurationAvailable = 0x00000000
iPv4Address[0] = 10.31.169.99
onLinkPrefixLength[0] = 29
iPv4Gateway = 10.31.169.100
iPv6Gateway = 0:0:f00::100:0
iPv4DnsServer[0] = 10.13.200.140
iPv4DnsServer[1] = 10.13.168.140
iPv4Mtu = 1500
iPv6Mtu = 0
API: success
Setting wwan0 MTU = 1500
SetAdaptorMtu(wwan0:3) mtu 1500
Setting wwan0 MTU = 1500
SetAdaptorMtu(wwan0:3) mtu 1500
Adding wwan0 address = 10.31.169.99
Up adaptor wwan0(3)
SetAdaptorAddress(family 2): ip addr add 10.31.169.99:29 dev wwan0(3)
Up adaptor wwan0(3)
IsAdaptorUp - Adaptor wwan0 is up
SetRoute(family 2): route add 0.0.0.0:0 dev wwan0(3) gw 0.0.0.0
ping (IPv4) dst=8.8.8.8 gateway=10.31.169.100 -I=wwan0
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
success
I am able to connect to the network. I am using 5G AT & T SIM. Can you please confirm it is connected via LTE or 5G technology ?
Attched is the snapshot.
you can check by AT!GSTATUS?
what uis the difference between lite-qmi and lite-mbim sdk? can i use either one and which one is better?
which one is working for you?
