1<!-- 2Author: Xianjun jiao 3SPDX-FileCopyrightText: 2019 UGent 4SPDX-License-Identifier: AGPL-3.0-or-later 5--> 6 7 8- Power on two SDR boards. Call one board "adhoc1" and the other "adhoc2". On each board, the TX and RX antenna should vertical/orthogonal to each other as much as possible to gain a good TX/RX isolation. 9- Connect a computer to the adhoc1 via Ethernet cable. The computer should have static IP 192.168.10.1. Open a terminal on the computer, and then in the terminal: 10 ``` 11 ssh [email protected] 12 (password: openwifi) 13 service network-manager stop 14 cd openwifi 15 ./wgd.sh 16 (Wait for the script completed) 17 ifconfig sdr0 up 18 ./sdr-ad-hoc-up.sh sdr0 44 192.168.13.1 19 (Above command setup ad-hoc network at channel 44 with static IP assigned to sdr0 NIC) 20 iwconfig sdr0 21 ``` 22- You shold see output like: 23 ``` 24 sdr0 IEEE 802.11 ESSID:"sdr-ad-hoc" 25 Mode:Ad-Hoc Frequency:5.22 GHz Cell: 92:CA:14:27:1E:B0 26 Tx-Power=20 dBm 27 Retry short limit:7 RTS thr:off Fragment thr:off 28 Encryption key:off 29 Power Management:off 30 ``` 31 If you see "Cell: Not-Associated", please wait and run "iwconfig sdr0" again until a randomly generated Cell ID appears. 32 33- Connect another computer to the adhoc2 via Ethernet cable. The computer should have static IP 192.168.10.1. Open a terminal on the computer, and then in the terminal: 34 ``` 35 ssh [email protected] 36 (password: openwifi) 37 service network-manager stop 38 cd openwifi 39 ./wgd.sh 40 ifconfig sdr0 up 41 ./sdr-ad-hoc-up.sh sdr0 44 192.168.13.1 42 iwconfig sdr0 43 ``` 44- You shold see output like: 45 ``` 46 sdr0 IEEE 802.11 ESSID:"sdr-ad-hoc" 47 Mode:Ad-Hoc Frequency:5.22 GHz Cell: 92:CA:14:27:1E:B0 48 Tx-Power=20 dBm 49 Retry short limit:7 RTS thr:off Fragment thr:off 50 Encryption key:off 51 Power Management:off 52 ``` 53 The "Cell: 92:CA:14:27:1E:B0" should be the same as adhoc1, because the later joined node should discover the Cell ID of the existing network and join/get it automatically. If not, please adjust the antenna/distance and re-run the commands. 54 55 Now the communication link should be already setup between the two ad-hoc nodes, and you can ping each other. 56