| 44 | |
| 45 | 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`. |
| 46 | [[Image(file_sink_on.png, 900px)]] |
| 47 | |
| 48 | In `Terminal 1`, run: |
| 49 | {{{ |
| 50 | root@mob4-1:~/rest# ./tx-rest.py |
| 51 | }}} |
| 52 | |
| 53 | `Terminal 1` output: |
| 54 | {{{ |
| 55 | 3x3 TRIALS: [(-10, 0), (0, 0), (10, 0)] |
| 56 | Estimated Experiment Time: 1.75 minutes (105 seconds) |
| 57 | Press enter to confirm experiment execution. |
| 58 | 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"?> |
| 59 | <response status="OK"> |
| 60 | <action service="array_mgmt" name="connect" ipaddr="Local"> |
| 61 | <ERROR detail=" Array is already connected" /> |
| 62 | </action> |
| 63 | </response> |
| 64 | |
| 65 | Warm-up for 15 seconds... |
| 66 | [INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_4.1.0.4-release |
| 67 | [INFO] [X300] X300 initialization sequence... |
| 68 | [INFO] [X300] Connecting to niusrpriorpc at localhost:5444... |
| 69 | [INFO] [X300] Using LVBITX bitfile /usr/share/uhd/images/usrp_x310_fpga_HG.lvbitx |
| 70 | [INFO] [GPS] Found an internal GPSDO: LC_XO, Firmware Rev 0.929a |
| 71 | [INFO] [X300] Radio 1x clock: 200 MHz |
| 72 | [WARNING] [MULTI_USRP] Calling multi_usrp::recv_async_msg() is deprecated and can lead to unexpected behaviour. Prefer calling tx_stream::recv_async_msg(). |
| 73 | [INFO] [MULTI_USRP] 1) catch time transition at pps edge |
| 74 | [INFO] [MULTI_USRP] 2) set times next pps (synchronously) |
| 75 | [WARNING] [0/Radio#0] Attempting to set tick rate to 0. Skipping. |
| 76 | Press Enter to quit: Beginning TX! |
| 77 | TRIALS: [(-10, 0), (0, 0), (10, 0)] |
| 78 | Steering beam to (-10,0), waiting 10 seconds... |
| 79 | Delimiting for 5 seconds |
| 80 | 127.0.0.1 - - [05/Dec/2023 22:31:55] "POST /RPC2 HTTP/1.1" 200 - |
| 81 | Setting amplitude to 0.001 |
| 82 | 127.0.0.1 - - [05/Dec/2023 22:32:00] "POST /RPC2 HTTP/1.1" 200 - |
| 83 | 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"?> |
| 84 | <response status="OK"> |
| 85 | <action service="array_mgmt" name="steer" ipaddr="Local"> |
| 86 | <step name="steering" duration="0.061728"/> |
| 87 | </action> |
| 88 | </response> |
| 89 | |
| 90 | }}} |
| 91 | |
| 92 | In `Terminal 2`, run: |
| 93 | {{{ |
| 94 | **root@mob4-1:~/rest# ./tx-rest.py** |
| 95 | }}} |
| 96 | |
| 97 | `Terminal 2` output: |
| 98 | {{{ |
| 99 | 3x3 TRIALS: [(-10, 0), (0, 0), (10, 0)] |
| 100 | Estimated Experiment Time: 1.75 minutes (105 seconds) |
| 101 | Press enter to confirm experiment execution. |
| 102 | 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"?> |
| 103 | <response status="OK"> |
| 104 | <action service="array_mgmt" name="connect" ipaddr="Local"> |
| 105 | <ERROR detail=" Array is already connected" /> |
| 106 | </action> |
| 107 | </response> |
| 108 | |
| 109 | Warm-up for 15 seconds... |
| 110 | [INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_4.1.0.4-release |
| 111 | [INFO] [X300] X300 initialization sequence... |
| 112 | [INFO] [X300] Connecting to niusrpriorpc at localhost:5444... |
| 113 | [INFO] [X300] Using LVBITX bitfile /usr/share/uhd/images/usrp_x310_fpga_HG.lvbitx |
| 114 | [INFO] [GPS] Found an internal GPSDO: LC_XO, Firmware Rev 0.929a |
| 115 | [INFO] [X300] Radio 1x clock: 200 MHz |
| 116 | [WARNING] [MULTI_USRP] Calling multi_usrp::recv_async_msg() is deprecated and can lead to unexpected behaviour. Prefer calling tx_stream::recv_async_msg(). |
| 117 | [INFO] [MULTI_USRP] 1) catch time transition at pps edge |
| 118 | [INFO] [MULTI_USRP] 2) set times next pps (synchronously) |
| 119 | [WARNING] [0/Radio#0] Attempting to set tick rate to 0. Skipping. |
| 120 | Press Enter to quit: Beginning TX! |
| 121 | TRIALS: [(-10, 0), (0, 0), (10, 0)] |
| 122 | Steering beam to (-10,0), waiting 10 seconds... |
| 123 | Delimiting for 5 seconds |
| 124 | 127.0.0.1 - - [05/Dec/2023 22:31:55] "POST /RPC2 HTTP/1.1" 200 - |
| 125 | Setting amplitude to 0.001 |
| 126 | 127.0.0.1 - - [05/Dec/2023 22:32:00] "POST /RPC2 HTTP/1.1" 200 - |
| 127 | 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"?> |
| 128 | <response status="OK"> |
| 129 | <action service="array_mgmt" name="steer" ipaddr="Local"> |
| 130 | <step name="steering" duration="0.061728"/> |
| 131 | </action> |
| 132 | </response> |
| 133 | |
| 134 | }}} |
| 135 | |