Changes between Initial Version and Version 1 of Tutorials/g0WmLTE/Tutorial3


Ignore:
Timestamp:
Nov 10, 2016, 6:39:10 PM (8 years ago)
Author:
msherman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/g0WmLTE/Tutorial3

    v1 v1  
     1== COTS UE on ORBIT Node
     2
     3[[Include(Documentation/Short/Prereq)]]
     4
     5=== Imaging ===
     6The image used for this experiment is 'baseline.ndz'. In this tutorial we will use nodes equipped with Netgear AC341u LTE dongles. The basestation is Amarisoft running on Bsc03out.
     7
     8During a normal experiment using OMF, the following actions are scripted and automated. This is a look at the steps involved in something as simple as starting an LTE connection behind the scenes.
     9
     10You will run the following commands on node7-1, node1-7, and node19-3 in the Grid.
     11
     12After connecting to the grid console:
     131. {{{ omf load -i baseline.ndz -t node7-1.grid.orbit-lab.org }}}
     141. {{{ omf tell -a on -t node7-1.grid.orbit-lab.org }}}
     15 1. It will take roughly 60 seconds to come up.
     161. {{{ ssh root@node7-1.grid.orbit-lab.org }}}
     17
     18=== Commands on the node ===
     19
     20==== Loading the driver ====
     21
     22By Default Orbit nodes do not configure any wireless devices so the first thing, when manually configuring the device is to load the drivers; the following 2 lines will load the Sierra wireless Netgear LTE dongle:[[BR]]
     23{{{
     24modprobe GobiSerial
     25modprobe GobiNet
     26}}}
     27
     28==== Connecting to the device ====
     29Control of the device is done over the serial port that is created by the driver (in this case '''/dev/ttyUSB1''') through a sequence of AT commands and you can use your favorite serial port communication program to talk to it; in this tutorial we will use '''Minicom''. To start to program execute:
     30
     31{{{ minicom -D /dev/ttyUSB1 }}}
     32
     33==== Managing the LTE connection ====
     34
     35Once in minicom, one can issue series of commands to the LTE modem typically consisting of:
     36
     37a.) Configure modem for pass-through mode:
     38
     39{{{ AT!ippassthrough? }}}
     40
     41It should return '''1''' . If it does not, run the following commands:
     42    1. {{{ AT!ippassthrough=1 }}}
     43    1. {{{ AT!entercnd="A710" }}}
     44    1. {{{ AT!dxcfg=profile,Autoconnect,Never }}}
     45    1. {{{ AT!reset }}}
     46which will reset the modem.
     47
     48b.)
     49
     50{{{ AT!entercnd="A710" }}}
     51
     52You should see {{{ OK }}}
     53
     54c.) Connect to the basestation:
     55
     56{{{ AT!dxcfg=wwan,connect,11 }}}
     57
     58You should see {{{ OK }}} shortly followed by {{{ $QCRMCALL: 1, V4 }}}
     59
     60d.) Check the status of the connection:
     61
     62{{{ at!gstatus? }}}
     63
     64Will return a status like:
     65{{{
     66at!gstatus?                                                                                                         
     67!GSTATUS:
     68Current Time:  10049            Temperature: 42
     69Bootup Time:   0                Mode:        ONLINE         
     70System mode:   LTE              PS state:    Attached     
     71LTE band:      B25              LTE bw:      10 MHz 
     72LTE Rx chan:   8365             LTE Tx chan: 26365
     73EMM state:     Registered       Normal Service
     74RRC state:     RRC Connected 
     75IMS reg state: No Srv 
     76
     77RSSI (dBm):    -83              Tx Power:    0
     78RSRP (dBm):    -117             TAC:         0001 (1)
     79RSRQ (dB):     -10              Cell ID:     01A2D001 (27447297)
     80SINR (dB):      1.6
     81}}}
     82
     83The LTE link is established. Exit Minicom by **PRESSING** {{{ Ctrl+A followed by x}}}, then {{{enter}}} to select '''OK''' option.
     84
     85==== Testing the connection ====
     86
     87Once the modem is connected, IP address has to be assigned to the newly created Ethernet device (in this case '''eth2'''):
     88
     89{{{ dhcpcd eth2 }}}
     90
     91The node should get an address in the 192.168.3.0/24 subnet (any existing dhcpd instance on eth2 has to be killed). Once node gets IP address, routing tables need to be set so that some of traffic through will go out over the newly established link e.g. to send all the traffic through LTE link:
     92
     93{{{
     94route add default eth2
     95}}}
     96
     97Once routing tables are adjusted, ICMP can be used to test connectivity with the default gateway:
     98{{{ ping 192.168.3.1 }}}
     99resulting in:
     100{{{
     101root@node1-7:~# ping 192.168.3.1
     102PING 192.168.3.1 (192.168.3.1) 56(84) bytes of data.
     10364 bytes from 192.168.3.1: icmp_seq=1 ttl=64 time=44.9 ms
     10464 bytes from 192.168.3.1: icmp_seq=2 ttl=64 time=42.8 ms
     105}}}
     106The ping can be canceled with {{{Ctrl+C}}}. More elaborate link performance test can be done by using '''iperf''' between multiple nodes that are connected to the basestation.
     107
     108==== Reconnecting the client ====
     109
     110Use minicom (or any other serial port program) to issue a set of AT commands to reset the connection. Commands are:
     111
     112{{{
     113AT!reset
     114}}}
     115
     116(NOTE: after the AT!reset command the minicom will display the popup window that the connection was lost- one has to wait for the pop-up to go away before proceeding)
     117
     118{{{
     119AT!entercnd="A710"
     120AT!dxcfg=wwan,connect,11
     121}}}
     122
     123The output should look like:
     124{{{
     125root@node1-7:~# minicom -D /dev/ttyUSB1
     126
     127Welcome to minicom 2.7
     128
     129OPTIONS: I18n
     130Compiled on Jan  1 2014, 17:13:19.
     131Port /dev/ttyUSB1, 06:02:02
     132
     133Press CTRL-A Z for help on special keys                 
     134                                                       
     135AT                                                       
     136OK                                                     
     137AT!reset                                               
     138OK
     139AT!entercnd="A710"
     140OK
     141AT!dxcfg=wwan,connect,11
     142OK
     143
     144$QCRMCALL: 1, V4
     145at!gstatus?
     146!GSTATUS: gets the IP address, de
     147Current Time:  58               Temperature: 28     
     148Bootup Time:   6                Mode:        ONLINE         
     149System mode:   LTE              PS state:    Attached                           
     150LTE band:      B25              LTE bw:      10 MHz                             
     151LTE Rx chan:   8365             LTE Tx chan: 26365                             
     152EMM state:     Registered       Normal Service                                 
     153RRC state:     RRC Connected                                                   
     154IMS reg state: No Srv                                                           
     155                                                                               
     156RSSI (dBm):    -69              Tx Power:    -33                               
     157RSRP (dBm):    -90              TAC:         0001 (1)                           
     158RSRQ (dB):     -5               Cell ID:     01A2D001 (27447297)               
     159SINR (dB):     21.2                                                             
     160                                                                               
     161                                                                               
     162OK                                                                             
     163}}}
     164
     165Once connection is reset, dhcp lease needs to be renewed and new default route added again; if there is already dhcpd session it needs to be terminated:
     166
     167{{{
     168root@node1-7:~# dhcpcd eth2
     169err, eth2: dhcpcd already running on pid 2071 (/var/run/dhcpcd-eth2.pid)
     170root@node1-7:~# kill 2071
     171root@node1-7:~# dhcpcd eth2
     172root@node1-7:~# dhcpcd.sh: interface eth2 has been configured with new IP=192.168.3.2
     173
     174root@node1-7:~# route add default eth2
     175root@node1-7:~#
     176}}}