Changes between Version 2 and Version 3 of Tutorials/4G5G/ORANSplit7_2


Ignore:
Timestamp:
Nov 13, 2024, 6:38:00 PM (9 days ago)
Author:
prasanthi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/4G5G/ORANSplit7_2

    v2 v3  
    1313=== Resources required ===
    14141 server
    15 in [https://wiki.cosmos-lab.org/wiki/Architecture/Domains/cosmos_sb1 COSMOS SB1] domain and sdr1-in3(with SIMCOMM modem)
     15in [https://wiki.cosmos-lab.org/wiki/Architecture/Domains/cosmos_sb1 COSMOS SB1] domain and sdr1-in3(with SIMCom SIM8200EA-M2 USB modem)
    1616
    1717=== Tutorial Setup ===
     
    142142}}}
    143143[[CollapsibleEnd]]
    144 [[CollapsibleStart(SIMCOMM modem)]]
     144[[CollapsibleStart(SIMCOM SIM8200EA-M2 UE)]]
     145{{{#!shell
     146root@sdr1-in3:~# minicom -D /dev/ttyUSB2
     147
     148Welcome to minicom 2.7.1
     149
     150OPTIONS: I18n
     151Compiled on Aug 13 2017, 15:25:34.
     152Port /dev/ttyUSB2, 17:45:12
     153
     154Press CTRL-A Z for help on special keys
     155
     156at
     157OK
     158at+cops=?
     159+COPS: (1,"Amarisoft Network","Amarisof","310014",12),(1,"Verizon","Verizon","311480",7),(3,"T-Mobile","T-Mobile","310260",7),(3,"AT&T","AT&T","310410",7),(3,"313 100","313 100","313100",7),(3,"T-Mobile","T-Mobile","310260",12),(1,"311 490","311 490","311490",12),(3,"313 340","313 340)
     160
     161OK
     162}}}
     163The at+cops=? command takes a few minutes to return. You can see that it finds the Amarisoft network. Running this at command is not essential, however it prompts the modem to scan and attach to the base station.
     164
     165Run the following application on sdr1-in3
     166{{{#!shell
     167root@sdr1-in3:~/SIM8200_code/Goonline# ./simcom-cm
     168[11-13_18:27:19:600] Build Version: 2020-07-14 10:20:15
     169[11-13_18:27:19:600] SIMCOM_CM START...
     170[11-13_18:27:19:600] ./simcom-cm profile[1] = (null)/(null)/(null)/0, pincode = (null)
     171[11-13_18:27:19:600] Find /sys/bus/usb/devices/2-4.4 idVendor=1e0e idProduct=9001
     172[11-13_18:27:19:600] Find /sys/bus/usb/devices/2-4.4:1.5/net/wwp0s20f0u4u4i5
     173[11-13_18:27:19:600] Find usbnet_adapter = wwp0s20f0u4u4i5
     174[11-13_18:27:19:600] Find /sys/bus/usb/devices/2-4.4:1.5/usbmisc/cdc-wdm0
     175[11-13_18:27:19:600] Find qmichannel = /dev/cdc-wdm0
     176[11-13_18:27:19:601] netcard driver = qmi_wwan_simcom
     177[11-13_18:27:19:604] cdc_wdm_fd = 7
     178[11-13_18:27:19:676] Get clientWDS = 15
     179[11-13_18:27:19:708] Get clientDMS = 1
     180[11-13_18:27:19:740] Get clientNAS = 2
     181[11-13_18:27:19:772] Get clientUIM = 1
     182[11-13_18:27:19:804] Get clientWDA = 1
     183[11-13_18:27:19:836] requestBaseBandVersion MPSS.HI.2.0.c3-00246-SDX55_CPEALL_PACK-1  1  [Oct 26 2020 16:00:00]
     184[11-13_18:27:19:900] requestGetSIMStatus SIMStatus: SIM_READY
     185[11-13_18:27:19:932] requestGetProfile[1] cosmos-5G///0
     186[11-13_18:27:19:964] requestRegistrationState2 MCC: 310, MNC: 14, PS: Attached, DataCap: NR5G
     187[11-13_18:27:19:996] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
     188[11-13_18:27:20:060] requestRegistrationState2 MCC: 310, MNC: 14, PS: Attached, DataCap: NR5G
     189[11-13_18:27:20:124] requestSetupDataCall WdsConnectionIPv4Handle: 0x734209c0
     190[11-13_18:27:20:188] requestQueryDataCall IPv4ConnectionStatus: CONNECTED
     191[11-13_18:27:20:220] ifconfig wwp0s20f0u4u4i5 up
     192[11-13_18:27:20:252] Fail to access /usr/share/udhcpc/default.script, errno: 2 (No such file or directory)
     193[11-13_18:27:20:252] busybox udhcpc -f -n -q -t 5 -s /usr/share/udhcpc/default.script -i wwp0s20f0u4u4i5
     194udhcpc: started, v1.27.2
     195udhcpc: sending discover
     196udhcpc: sending select for 192.168.2.2
     197udhcpc: lease of 192.168.2.2 obtained, lease time 7200
     198
     199}}}
     200* Set the IP address of the wwan interface to the one allocated by the MME (192.168.2.2 in this case)
     201{{{#!shell
     202root@sdr1-in3:~# ifconfig wwp0s20f0u4u4i5 192.168.2.2 netmask 255.255.255.0
     203}}}
     204* You can now communicate with the base station over the air(5G). The data connection can be tested with ping or iperf as below.
     205{{{#!shell
     206root@sdr1-in3:~# ping 192.168.2.1
     207PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
     20864 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=21.8 ms
     20964 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=19.2 ms
     21064 bytes from 192.168.2.1: icmp_seq=3 ttl=64 time=18.2 ms
     21164 bytes from 192.168.2.1: icmp_seq=4 ttl=64 time=16.8 ms
     212^C
     213--- 192.168.2.1 ping statistics ---
     2144 packets transmitted, 4 received, 0% packet loss, time 3004ms
     215rtt min/avg/max/mdev = 16.800/19.043/21.802/1.828 ms
     216
     217}}}
     218
    145219
    146220[[CollapsibleEnd]]
    147221
    148222[[CollapsibleStart(Iperf test)]]
    149 [[CollapsibleEnd]]
     223{{{#!shell
     224root@sdr1-in3:~# iperf3 -s -B 192.168.2.2
     225-----------------------------------------------------------
     226Server listening on 5201
     227-----------------------------------------------------------
     228
     229}}}
     230{{{#!shell
     231root@srv1-lg1:~# iperf3 -c 192.168.2.2 -i 1 -b 0 -t 10
     232Connecting to host 192.168.2.2, port 5201
     233[  5] local 192.168.2.1 port 45344 connected to 192.168.2.2 port 5201
     234[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
     235[  5]   0.00-1.00   sec  7.99 MBytes  67.0 Mbits/sec  100   35.4 KBytes
     236[  5]   1.00-2.00   sec  3.75 MBytes  31.5 Mbits/sec   52    583 KBytes
     237[  5]   2.00-3.00   sec  6.25 MBytes  52.4 Mbits/sec   91    250 KBytes
     238[  5]   3.00-4.00   sec  6.25 MBytes  52.4 Mbits/sec   88   1.03 MBytes
     239[  5]   4.00-5.00   sec  7.50 MBytes  62.9 Mbits/sec   99    631 KBytes
     240[  5]   5.00-6.00   sec  5.00 MBytes  41.9 Mbits/sec  107    578 KBytes
     241[  5]   6.00-7.00   sec  6.25 MBytes  52.4 Mbits/sec   24    806 KBytes
     242[  5]   7.00-8.00   sec  8.75 MBytes  73.4 Mbits/sec   38   1.06 MBytes
     243[  5]   8.00-9.00   sec  6.25 MBytes  52.4 Mbits/sec  100    653 KBytes
     244[  5]   9.00-10.00  sec  7.50 MBytes  62.9 Mbits/sec   15    585 KBytes
     245- - - - - - - - - - - - - - - - - - - - - - - - -
     246[ ID] Interval           Transfer     Bitrate         Retr
     247[  5]   0.00-10.00  sec  65.5 MBytes  54.9 Mbits/sec  714             sender
     248[  5]   0.00-10.00  sec  62.1 MBytes  52.1 Mbits/sec                  receiver
     249
     250}}}
     251[[CollapsibleEnd]]