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