1<!-- 2SPDX-FileCopyrightText: 2019 Jiao Xianjun <[email protected]> 3SPDX-License-Identifier: AGPL-3.0-or-later 4--> 5 6- Power on two SDR boards. Call one board "AP board" and the other "client board". 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. 7- Connect a computer to the AP board via Ethernet cable. The computer should have static IP 192.168.10.1. Open a terminal on the computer, and then in the terminal: 8 ``` 9 ssh [email protected] 10 (password: openwifi) 11 cd openwifi 12 ./fosdem.sh 13 (It will create a WiFi AP by hostapd program with config file: hostapd-openwifi.conf) 14 (Wait for the script completed) 15 cat /proc/interrupts 16 (Execute the "cat ..." command for several times) 17 (You should see the number of "sdr,tx_itrpt1" grows, because it sends the "openwifi" beacon periodically) 18 ``` 19- Connect another computer to the client board via Ethernet cable. The computer should have static IP 192.168.10.1. Open a terminal on the computer, and then in the terminal: 20 ``` 21 ssh [email protected] 22 (password: openwifi) 23 service network-manager stop 24 cd openwifi 25 ./wgd.sh 26 (Wait for the script completed) 27 ifconfig sdr0 up 28 iwlist sdr0 scan 29 (The "openwifi" AP should be listed in the scanning results) 30 iwconfig sdr0 essid openwifi 31 ``` 32- Now the client is trying to associate with the AP. The AP board terminal should print like: 33 ``` 34 ... 35 sdr0: AP-STA-CONNECTED 66:55:44:33:22:58 36 sdr0: STA 66:55:44:33:22:58 RADIUS: starting accounting session 1FF1C1B4-00000001 37 ``` 38 If not, please adjust antenna/distance and re-run the commands on the client side. 39 40- After association is done, in the terminal of client: 41 ``` 42 dhclient sdr0 43 (Wait for it completed) 44 ifconfig sdr0 45 (Now you should see the IP address like 192.168.13.x allocated by AP) 46 ./set_csma_normal.sh 47 ping 192.168.13.1 48 (Ping the AP) 49 ``` 50 Now the communication link should be already setup between the AP and the client. 51