1*a6085186SLina Ceballos<!-- 2*a6085186SLina CeballosSPDX-FileCopyrightText: 2019 Jiao Xianjun <[email protected]> 3*a6085186SLina CeballosSPDX-License-Identifier: AGPL-3.0-or-later 4*a6085186SLina Ceballos--> 5*a6085186SLina Ceballos 61a95bb33SXianjun Jiao- 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. 71a95bb33SXianjun Jiao- 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: 81a95bb33SXianjun Jiao ``` 91a95bb33SXianjun Jiao ssh [email protected] 101a95bb33SXianjun Jiao (password: openwifi) 111a95bb33SXianjun Jiao cd openwifi 121a95bb33SXianjun Jiao ./fosdem.sh 131a95bb33SXianjun Jiao (It will create a WiFi AP by hostapd program with config file: hostapd-openwifi.conf) 141a95bb33SXianjun Jiao (Wait for the script completed) 151a95bb33SXianjun Jiao cat /proc/interrupts 161a95bb33SXianjun Jiao (Execute the "cat ..." command for several times) 171a95bb33SXianjun Jiao (You should see the number of "sdr,tx_itrpt1" grows, because it sends the "openwifi" beacon periodically) 181a95bb33SXianjun Jiao ``` 191a95bb33SXianjun Jiao- 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: 201a95bb33SXianjun Jiao ``` 211a95bb33SXianjun Jiao ssh [email protected] 221a95bb33SXianjun Jiao (password: openwifi) 231a95bb33SXianjun Jiao service network-manager stop 241a95bb33SXianjun Jiao cd openwifi 251a95bb33SXianjun Jiao ./wgd.sh 261a95bb33SXianjun Jiao (Wait for the script completed) 271a95bb33SXianjun Jiao ifconfig sdr0 up 281a95bb33SXianjun Jiao iwlist sdr0 scan 291a95bb33SXianjun Jiao (The "openwifi" AP should be listed in the scanning results) 301a95bb33SXianjun Jiao iwconfig sdr0 essid openwifi 311a95bb33SXianjun Jiao ``` 321a95bb33SXianjun Jiao- Now the client is trying to associate with the AP. The AP board terminal should print like: 331a95bb33SXianjun Jiao ``` 341a95bb33SXianjun Jiao ... 351a95bb33SXianjun Jiao sdr0: AP-STA-CONNECTED 66:55:44:33:22:58 361a95bb33SXianjun Jiao sdr0: STA 66:55:44:33:22:58 RADIUS: starting accounting session 1FF1C1B4-00000001 371a95bb33SXianjun Jiao ``` 381a95bb33SXianjun Jiao If not, please adjust antenna/distance and re-run the commands on the client side. 391a95bb33SXianjun Jiao 401a95bb33SXianjun Jiao- After association is done, in the terminal of client: 411a95bb33SXianjun Jiao ``` 421a95bb33SXianjun Jiao dhclient sdr0 431a95bb33SXianjun Jiao (Wait for it completed) 441a95bb33SXianjun Jiao ifconfig sdr0 451a95bb33SXianjun Jiao (Now you should see the IP address like 192.168.13.x allocated by AP) 461a95bb33SXianjun Jiao ./set_csma_normal.sh 471a95bb33SXianjun Jiao ping 192.168.13.1 481a95bb33SXianjun Jiao (Ping the AP) 491a95bb33SXianjun Jiao ``` 501a95bb33SXianjun Jiao Now the communication link should be already setup between the AP and the client. 51