1- 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. 2- 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: 3 ``` 4 ssh [email protected] 5 (password: openwifi) 6 service network-manager stop 7 cd openwifi 8 ./wgd.sh 9 (Wait for the script completed) 10 ifconfig sdr0 up 11 ./sdr-ad-hoc-up.sh sdr0 44 192.168.13.1 12 (Above command setup ad-hoc network at channel 44 with static IP assigned to sdr0 NIC) 13 iwconfig sdr0 14 ``` 15- You shold see output like: 16 ``` 17 sdr0 IEEE 802.11 ESSID:"sdr-ad-hoc" 18 Mode:Ad-Hoc Frequency:5.22 GHz Cell: 92:CA:14:27:1E:B0 19 Tx-Power=20 dBm 20 Retry short limit:7 RTS thr:off Fragment thr:off 21 Encryption key:off 22 Power Management:off 23 ``` 24 If you see "Cell: Not-Associated", please wait and run "iwconfig sdr0" again until a randomly generated Cell ID appears. 25 26- 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: 27 ``` 28 ssh [email protected] 29 (password: openwifi) 30 service network-manager stop 31 cd openwifi 32 ./wgd.sh 33 ifconfig sdr0 up 34 ./sdr-ad-hoc-up.sh sdr0 44 192.168.13.1 35 iwconfig sdr0 36 ``` 37- You shold see output like: 38 ``` 39 sdr0 IEEE 802.11 ESSID:"sdr-ad-hoc" 40 Mode:Ad-Hoc Frequency:5.22 GHz Cell: 92:CA:14:27:1E:B0 41 Tx-Power=20 dBm 42 Retry short limit:7 RTS thr:off Fragment thr:off 43 Encryption key:off 44 Power Management:off 45 ``` 46 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. 47 48 Now the communication link should be already setup between the two ad-hoc nodes, and you can ping each other. 49