Changes between Version 12 and Version 13 of Tutorials/Wireless/mmwave Paam Mobile


Ignore:
Timestamp:
Jan 3, 2024, 8:02:21 PM (11 months ago)
Author:
Abhi Adhikari
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/Wireless/mmwave Paam Mobile

    v12 v13  
    5252
    5353Run `/root/tx.grc` and `/root/rx.grc` in `Terminal 1` and `Terminal 2`, respectively. Obtain the frequency plot shown below.
    54 [[Image(basic_mobile_tx_rx.png, 900px)]]
     54[[Image(mobile_tx_rx.png, 900px)]]
    5555
    56 Now, we will run the beam-steering scripts being used for the NRDZ project. Using `gnuradio-companion` in `Terminal 2`, make sure the file sink is enabled for `/root/rx.grc`.
    57 [[Image(file_sink_on.png, 400px)]].
     56Now, we will run the beam-steering scripts being used for the NRDZ project.
    5857
    59 Make sure to start the receiver first! `Terminal 2` in this case
     58Make sure to start the receiver first!
     59
     60In `Terminal 2`, run:
     61{{{
     62root@mob4-1:~/rest# ./tx-rest.py
     63}}}
    6064
    6165In `Terminal 1`, run:
     
    6468}}}
    6569
    66 `Terminal 1` output:
    67 {{{
    68 3x3 TRIALS: [(-10, 0), (0, 0), (10, 0)]
    69 Estimated Experiment Time: 1.75 minutes (105 seconds)
    70 Press enter to confirm experiment execution.
    71 http://rfdev-mob4-2.sb1.cosmos-lab.org:3000/array_mgmt/connect?dev_name=Local&txrx=tx&pol=h&ics=all&num_elements=4&verify=False 200 <?xml version="1.0" encoding="UTF-8"?>
    72 <response status="OK">
    73   <action service="array_mgmt" name="connect" ipaddr="Local">
    74 <ERROR detail=" Array is already connected" />
    75   </action>
    76 </response>
    77 
    78 Warm-up for 15 seconds...
    79 [INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_4.1.0.4-release
    80 [INFO] [X300] X300 initialization sequence...
    81 [INFO] [X300] Connecting to niusrpriorpc at localhost:5444...
    82 [INFO] [X300] Using LVBITX bitfile /usr/share/uhd/images/usrp_x310_fpga_HG.lvbitx
    83 [INFO] [GPS] Found an internal GPSDO: LC_XO, Firmware Rev 0.929a
    84 [INFO] [X300] Radio 1x clock: 200 MHz
    85 [WARNING] [MULTI_USRP] Calling multi_usrp::recv_async_msg() is deprecated and can lead to unexpected behaviour. Prefer calling tx_stream::recv_async_msg().
    86 [INFO] [MULTI_USRP]     1) catch time transition at pps edge
    87 [INFO] [MULTI_USRP]     2) set times next pps (synchronously)
    88 [WARNING] [0/Radio#0] Attempting to set tick rate to 0. Skipping.
    89 Press Enter to quit: Beginning TX!
    90 TRIALS: [(-10, 0), (0, 0), (10, 0)]
    91 Steering beam to (-10,0), waiting 10 seconds...
    92 Delimiting for 5 seconds
    93 127.0.0.1 - - [05/Dec/2023 22:31:55] "POST /RPC2 HTTP/1.1" 200 -
    94 Setting amplitude to 0.001
    95 127.0.0.1 - - [05/Dec/2023 22:32:00] "POST /RPC2 HTTP/1.1" 200 -
    96 http://rfdev-mob4-2.sb1.cosmos-lab.org:3000/array_mgmt/steer?dev_name=Local&theta=-10&phi=0 200 <?xml version="1.0" encoding="UTF-8"?>
    97 <response status="OK">
    98   <action service="array_mgmt" name="steer" ipaddr="Local">
    99     <step name="steering" duration="0.061728"/>
    100   </action>
    101 </response>
    102 
    103 }}}
    104 
    105 In `Terminal 2`, run:
    106 {{{
    107 **root@mob4-1:~/rest# ./tx-rest.py**
    108 }}}
    109 
    110 `Terminal 2` output:
    111 {{{
    112 3x3 TRIALS: [(-10, 0), (0, 0), (10, 0)]
    113 Estimated Experiment Time: 1.75 minutes (105 seconds)
    114 Press enter to confirm experiment execution.
    115 http://rfdev-mob4-2.sb1.cosmos-lab.org:3000/array_mgmt/connect?dev_name=Local&txrx=tx&pol=h&ics=all&num_elements=4&verify=False 200 <?xml version="1.0" encoding="UTF-8"?>
    116 <response status="OK">
    117   <action service="array_mgmt" name="connect" ipaddr="Local">
    118 <ERROR detail=" Array is already connected" />
    119   </action>
    120 </response>
    121 
    122 Warm-up for 15 seconds...
    123 [INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_4.1.0.4-release
    124 [INFO] [X300] X300 initialization sequence...
    125 [INFO] [X300] Connecting to niusrpriorpc at localhost:5444...
    126 [INFO] [X300] Using LVBITX bitfile /usr/share/uhd/images/usrp_x310_fpga_HG.lvbitx
    127 [INFO] [GPS] Found an internal GPSDO: LC_XO, Firmware Rev 0.929a
    128 [INFO] [X300] Radio 1x clock: 200 MHz
    129 [WARNING] [MULTI_USRP] Calling multi_usrp::recv_async_msg() is deprecated and can lead to unexpected behaviour. Prefer calling tx_stream::recv_async_msg().
    130 [INFO] [MULTI_USRP]     1) catch time transition at pps edge
    131 [INFO] [MULTI_USRP]     2) set times next pps (synchronously)
    132 [WARNING] [0/Radio#0] Attempting to set tick rate to 0. Skipping.
    133 Press Enter to quit: Beginning TX!
    134 TRIALS: [(-10, 0), (0, 0), (10, 0)]
    135 Steering beam to (-10,0), waiting 10 seconds...
    136 Delimiting for 5 seconds
    137 127.0.0.1 - - [05/Dec/2023 22:31:55] "POST /RPC2 HTTP/1.1" 200 -
    138 Setting amplitude to 0.001
    139 127.0.0.1 - - [05/Dec/2023 22:32:00] "POST /RPC2 HTTP/1.1" 200 -
    140 http://rfdev-mob4-2.sb1.cosmos-lab.org:3000/array_mgmt/steer?dev_name=Local&theta=-10&phi=0 200 <?xml version="1.0" encoding="UTF-8"?>
    141 <response status="OK">
    142   <action service="array_mgmt" name="steer" ipaddr="Local">
    143     <step name="steering" duration="0.061728"/>
    144   </action>
    145 </response>
    146 
    147 }}}
    14870
    14971Within `tx-rest.py` and `rx-rest.py`, make sure you indicate the correct rfdev corresponding to the mobile node being used.
     
    15274{{{
    15375abhiadhikari@console:~$ scp root@mob4-2:/mnt/test.bin .
    154 test.bin                                      100% 3578MB 111.8MB/s   00:32
     76test.bin                                      100%   15GB 111.0MB/s   02:15
    15577}}}
    15678
     
    15880{{{
    15981abhiadhikari@dyn-128-59-87-88 Documents % scp abhiadhikari@sb1.cosmos-lab.org:/home/abhiadhikari/test.bin .
    160 test.bin                                      100% 3578MB  99.5MB/s   00:35
     82test.bin                                      100%   15GB 104.2MB/s   02:23
    16183}}}
    16284