README.md (abdb610f56e6ff7bc54e8ad29637bde718951d91) | README.md (0a9ca3b0a6cc5aee9f2010577d85f3f5e159ea67) |
---|---|
1<!-- 2Author: Xianjun jiao, Michael Mehari, Wei Liu 3SPDX-FileCopyrightText: 2019 UGent 4SPDX-License-Identifier: AGPL-3.0-or-later 5--> 6 7# openwifi 8<img src="./openwifi-arch.jpg" width="900"> --- 75 unchanged lines hidden (view full) --- 84- On board, run openwifi AP and the on board webserver 85 ``` 86 ~/openwifi/fosdem-11ag.sh 87 ``` 88 **NOTE** adrv9361z7035 has ultra low TX power in 5GHz. Move **CLOSER** when you use that board in 5GHz!!! 89- After you see the "openwifi" SSID on your device (Phone/Laptop/etc), connect it. Browser to 192.168.13.1 on your device, you should see the webpage hosted by the webserver on board. 90 - Note 1: If your device doesn't support 5GHz (ch44), please change the **hostapd-openwifi.conf** on board and re-run fosdem.sh. 91 - Note 2: After ~2 hours, the Viterbi decoder will halt (Xilinx Evaluation License). Just power cycle the board if it happens. (If output of "./sdrctl dev sdr0 get reg rx 20" is always the same, it means the decoder halts) | 1<!-- 2Author: Xianjun jiao, Michael Mehari, Wei Liu 3SPDX-FileCopyrightText: 2019 UGent 4SPDX-License-Identifier: AGPL-3.0-or-later 5--> 6 7# openwifi 8<img src="./openwifi-arch.jpg" width="900"> --- 75 unchanged lines hidden (view full) --- 84- On board, run openwifi AP and the on board webserver 85 ``` 86 ~/openwifi/fosdem-11ag.sh 87 ``` 88 **NOTE** adrv9361z7035 has ultra low TX power in 5GHz. Move **CLOSER** when you use that board in 5GHz!!! 89- After you see the "openwifi" SSID on your device (Phone/Laptop/etc), connect it. Browser to 192.168.13.1 on your device, you should see the webpage hosted by the webserver on board. 90 - Note 1: If your device doesn't support 5GHz (ch44), please change the **hostapd-openwifi.conf** on board and re-run fosdem.sh. 91 - Note 2: After ~2 hours, the Viterbi decoder will halt (Xilinx Evaluation License). Just power cycle the board if it happens. (If output of "./sdrctl dev sdr0 get reg rx 20" is always the same, it means the decoder halts) |
92- To give the Wi-Fii client internet access, configure routing/NAT **on the PC**: | 92- To give the Wi-Fi client internet access, configure routing/NAT **on the PC**: |
93 ``` 94 sudo sysctl -w net.ipv4.ip_forward=1 95 sudo iptables -t nat -A POSTROUTING -o NICY -j MASQUERADE 96 sudo ip route add 192.168.13.0/24 via 192.168.10.122 dev ethX 97 ``` 98 **ethX** is the PC NIC name connecting the board ethernet. **NICY** is the PC NIC name connecting internet (WiFi or another ethernet). 99 100 If you want, uncommenting "net.ipv4.ip_forward=1" in /etc/sysctl.conf to make IP forwarding persistent on PC. --- 154 unchanged lines hidden --- | 93 ``` 94 sudo sysctl -w net.ipv4.ip_forward=1 95 sudo iptables -t nat -A POSTROUTING -o NICY -j MASQUERADE 96 sudo ip route add 192.168.13.0/24 via 192.168.10.122 dev ethX 97 ``` 98 **ethX** is the PC NIC name connecting the board ethernet. **NICY** is the PC NIC name connecting internet (WiFi or another ethernet). 99 100 If you want, uncommenting "net.ipv4.ip_forward=1" in /etc/sysctl.conf to make IP forwarding persistent on PC. --- 154 unchanged lines hidden --- |