Changes between Version 3 and Version 4 of Tutorials/4G5G/srslte


Ignore:
Timestamp:
Apr 4, 2025, 10:19:16 PM (7 hours ago)
Author:
prasanthi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/4G5G/srslte

    v3 v4  
    154154* Run connection manager scripts on sdr2-md1 for the modems to establish PDU sessions
    155155{{{#!shell
    156 }}}
    157 {{{#!shell
    158 }}}
    159 *
    160 
     156root@sdr2b-md1:~/SIM8200_code/Goonline# ./simcom-cm
     157[04-04_16:14:40:249] Build Version: 2020-07-14 10:20:15
     158[04-04_16:14:40:249] SIMCOM_CM START...
     159[04-04_16:14:40:249] ./simcom-cm profile[1] = (null)/(null)/(null)/0, pincode = (null)
     160[04-04_16:14:40:249] Find /sys/bus/usb/devices/2-1 idVendor=2c7c idProduct=0800
     161[04-04_16:14:40:249] Cannot open directory: /sys/bus/usb/devices/2-1:1.5/net, errno: 2 (No such file or directory)
     162[04-04_16:14:40:250] Find /sys/bus/usb/devices/2-2 idVendor=1e0e idProduct=9001
     163[04-04_16:14:40:250] Find /sys/bus/usb/devices/2-2:1.5/net/wwan0
     164[04-04_16:14:40:250] Find usbnet_adapter = wwan0
     165[04-04_16:14:40:250] Find /sys/bus/usb/devices/2-2:1.5/usbmisc/cdc-wdm0
     166[04-04_16:14:40:250] Find qmichannel = /dev/cdc-wdm0
     167[04-04_16:14:40:251] netcard driver = qmi_wwan
     168[04-04_16:14:40:254] cdc_wdm_fd = 7
     169[04-04_16:14:40:342] Get clientWDS = 15
     170[04-04_16:14:40:374] Get clientDMS = 1
     171[04-04_16:14:40:406] Get clientNAS = 2
     172[04-04_16:14:40:438] Get clientUIM = 1
     173[04-04_16:14:40:470] Get clientWDA = 1
     174[04-04_16:14:40:502] requestBaseBandVersion MPSS.HI.2.0.c3-00246-SDX55_CPEALL_PACK-1  1  [Oct 26 2020 16:00:00]
     175[04-04_16:14:40:566] requestGetSIMStatus SIMStatus: SIM_READY
     176[04-04_16:14:40:598] requestGetProfile[1] cosmos-5G///0
     177[04-04_16:14:40:630] requestRegistrationState2 MCC: 310, MNC: 14, PS: Attached, DataCap: NR5G
     178[04-04_16:14:40:662] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
     179[04-04_16:14:40:726] requestRegistrationState2 MCC: 310, MNC: 14, PS: Attached, DataCap: NR5G
     180[04-04_16:14:41:238] requestSetupDataCall WdsConnectionIPv4Handle: 0xf9438980
     181[04-04_16:14:41:302] requestQueryDataCall IPv4ConnectionStatus: CONNECTED
     182[04-04_16:14:41:334] ifconfig wwan0 up
     183[04-04_16:14:41:339] Fail to access /usr/share/udhcpc/default.script, errno: 2 (No such file or directory)
     184[04-04_16:14:41:339] busybox udhcpc -f -n -q -t 5 -s /usr/share/udhcpc/default.script -i wwan0
     185udhcpc: started, v1.30.1
     186udhcpc: sending discover
     187udhcpc: sending select for 10.45.0.6
     188udhcpc: lease of 10.45.0.6 obtained, lease time 7200
     189
     190}}}
     191{{{#!shell
     192root@sdr2b-md1:~/quectel-CM_0319# ./quectel-CM -s cosmos-5G
     193[04-04_16:19:54:415] QConnectManager_Linux_V1.6.6_beta0319
     194[04-04_16:19:54:416] Find /sys/bus/usb/devices/2-1 idVendor=0x2c7c idProduct=0x800, bus=0x002, dev=0x004
     195[04-04_16:19:54:417] Auto find qmichannel = /dev/cdc-wdm1
     196[04-04_16:19:54:417] Auto find usbnet_adapter = wwan1
     197[04-04_16:19:54:417] netcard driver = cdc_mbim, driver version = 5.15.0-78-generic
     198[04-04_16:19:54:417] Modem works in MBIM mode
     199[04-04_16:19:54:421] cdc_wdm_fd = 7
     200[04-04_16:19:54:421] mbim_open_device()
     201[04-04_16:19:54:935] mbim_device_caps_query()
     202[04-04_16:19:54:967] DeviceId:     867034040030133
     203[04-04_16:19:54:967] FirmwareInfo: RM510QGLHAR11A03M4G
     204[04-04_16:19:54:967] HardwareInfo: RM510QGLHA_VB
     205[04-04_16:19:54:967] mbim_device_services_query()
     206[04-04_16:19:55:031] mbim_set_radio_state( 1 )
     207[04-04_16:19:55:063] HwRadioState: 1, SwRadioState: 1
     208[04-04_16:19:55:063] mbim_subscriber_status_query()
     209[04-04_16:19:55:095] SubscriberId: 310014000000011
     210[04-04_16:19:55:095] SimIccId:     8901310014000000114F
     211[04-04_16:19:55:095] SubscriberReadyState NotInitialized -> Initialized
     212[04-04_16:19:55:095] mbim_register_state_query()
     213[04-04_16:19:55:127] RegisterState Unknown -> Home
     214[04-04_16:19:55:127] mbim_packet_service_query()
     215[04-04_16:19:55:159] PacketServiceState Unknown -> Attached
     216[04-04_16:19:55:159] CurrentDataClass = Custom
     217[04-04_16:19:55:159] mbim_query_connect(sessionID=0)
     218[04-04_16:19:55:191] ActivationState Unknown -> Deactivated
     219[04-04_16:19:55:191] ip addr flush dev wwan1
     220[04-04_16:19:55:197] ip link set dev wwan1 down
     221[04-04_16:19:55:204] mbim_set_connect(onoff=1, sessionID=0)
     222[04-04_16:19:55:319] ActivationState Deactivated -> Activated
     223[04-04_16:19:55:319] mbim_ip_config(sessionID=0)
     224[04-04_16:19:55:351] < SessionId = 0
     225[04-04_16:19:55:351] < IPv4ConfigurationAvailable = 0xf
     226[04-04_16:19:55:351] < IPv6ConfigurationAvailable = 0x0
     227[04-04_16:19:55:351] < IPv4AddressCount = 0x1
     228[04-04_16:19:55:351] < IPv4AddressOffset = 0x3c
     229[04-04_16:19:55:351] < IPv6AddressCount = 0x0
     230[04-04_16:19:55:351] < IPv6AddressOffset = 0x0
     231[04-04_16:19:55:351] < IPv4 = 10.45.0.7/28
     232[04-04_16:19:55:351] < gw = 10.45.0.8
     233[04-04_16:19:55:351] < dns1 = 8.8.8.8
     234[04-04_16:19:55:351] < dns2 = 8.8.4.4
     235[04-04_16:19:55:351] < ipv4 mtu = 1400
     236[04-04_16:19:55:383] ip link set dev wwan1 up
     237[04-04_16:19:55:390] ip -4 address flush dev wwan1
     238[04-04_16:19:55:393] ip -4 address add 10.45.0.7/28 dev wwan1
     239[04-04_16:19:55:395] ip -4 route add default via 10.45.0.8 dev wwan1
     240
     241}}}
    161242
    162243==== Throughput test ====
    163 
    164 
    165 
     244* Make sure wwan interfaces on sdr2-md1 have the right IP addresses obtained above
     245{{{#!shell
     246wwan0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1400
     247        inet 10.45.0.6  netmask 255.255.0.0  destination 10.45.0.6
     248        inet6 fe80::82e2:1b17:b212:b481  prefixlen 64  scopeid 0x20<link>
     249        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
     250        RX packets 244834  bytes 342703175 (342.7 MB)
     251        RX errors 0  dropped 0  overruns 0  frame 0
     252        TX packets 28435  bytes 1521098 (1.5 MB)
     253        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
     254
     255wwan1: flags=4291<UP,BROADCAST,RUNNING,NOARP,MULTICAST>  mtu 1500
     256        inet 10.45.0.7  netmask 255.255.255.252  broadcast 0.0.0.0
     257        inet6 fe80::c037:1fff:fe08:4f16  prefixlen 64  scopeid 0x20<link>
     258        ether c2:37:1f:08:4f:16  txqueuelen 1000  (Ethernet)
     259        RX packets 4  bytes 336 (336.0 B)
     260        RX errors 0  dropped 0  overruns 0  frame 0
     261        TX packets 107  bytes 8678 (8.6 KB)
     262        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
     263
     264}}}
     265
     266* iperf3 server
     267{{{#!shell
     268root@sdr2b-md1:~# iperf3 -s -B 10.45.0.6
     269-----------------------------------------------------------
     270Server listening on 5201
     271-----------------------------------------------------------
     272
     273}}}
     274
     275* iperf2 client on srv1-lg1
     276{{{#!shell
     277root@srv1-lg1:~# iperf3 -c 10.45.0.6 -i 1 -t 50
     278Connecting to host 10.45.0.6, port 5201
     279[  5] local 10.45.0.1 port 40004 connected to 10.45.0.6 port 5201
     280[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
     281[  5]   0.00-1.00   sec  1.30 MBytes  10.9 Mbits/sec    3   52.7 KBytes
     282.
     283.
     284.
     285[  5]  47.00-48.00  sec  1.42 MBytes  11.9 Mbits/sec    3   36.9 KBytes
     286[  5]  48.00-49.00  sec  1.23 MBytes  10.4 Mbits/sec    3   44.8 KBytes
     287[  5]  49.00-50.00  sec  1.48 MBytes  12.4 Mbits/sec    2   47.4 KBytes
     288- - - - - - - - - - - - - - - - - - - - - - - - -
     289[ ID] Interval           Transfer     Bitrate         Retr
     290[  5]   0.00-50.00  sec  83.3 MBytes  14.0 Mbits/sec  179             sender
     291[  5]   0.00-50.04  sec  83.0 MBytes  13.9 Mbits/sec                  receiver
     292
     293}}}
     294
     295
     296