Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
odroid_go_advance:application_note:sdio_wifi [2020/05/21 11:45] – [How to configure built-in WIFI module] joy.cho | odroid_go_advance:application_note:sdio_wifi [2020/09/03 17:09] (current) – [Configuring WIFI AP mode] joy.cho | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== How to configure built-in WIFI module ====== | ====== How to configure built-in WIFI module ====== | ||
- | <WRAP info round> | ||
- | **This wiki page will be updated soon!!!** (2020.05.21) | ||
- | </ | ||
<WRAP info round> | <WRAP info round> | ||
Line 8: | Line 5: | ||
</ | </ | ||
- | - WIFI KEY Features | + | - Module Key Features |
- Configuring WIFI station mode (1) - using [Configuration] Menu | - Configuring WIFI station mode (1) - using [Configuration] Menu | ||
- Configuring WIFI station mode (2) - using command line | - Configuring WIFI station mode (2) - using command line | ||
- Configuring WIFI AP mode | - Configuring WIFI AP mode | ||
- | - Checking basic connection | + | - Checking basic connection |
- | - Configuring | + | - Workaround to support |
- | ===== WIFI Key Features ===== | + | ===== Module |
- | | + | |
- | | + | ^ Items ^ Specifications |
- | * Frequency Range : 2.4 GHz ~ 2.5 GHz (2400 MHz ~ 2483.5 MHz) | + | | Module |
- | | + | | MCU | ESP8266EX |
+ | | WIFI Protocol | ||
+ | | Frequency Range | ||
+ | | Interface | ||
Line 27: | Line 27: | ||
===== Configuring WIFI station mode (2) - using command line ===== | ===== Configuring WIFI station mode (2) - using command line ===== | ||
- | Turn on radio. | + | Or you can establish WIFI network using the following instuctions.\\ |
+ | \\ | ||
+ | First, check **esp8089** module is loaded normally. | ||
+ | <code bash target> | ||
+ | $ lsmod | ||
+ | Module | ||
+ | esp8089 | ||
+ | sch_fq_codel | ||
+ | ip_tables | ||
+ | x_tables | ||
+ | ipv6 372736 | ||
+ | </ | ||
+ | Turn on wifi radio. | ||
<code bash target> | <code bash target> | ||
# nmcli radio wifi on | # nmcli radio wifi on | ||
</ | </ | ||
- | Check wifi list. | + | You can get all available WIFI list as following. |
<code bash target> | <code bash target> | ||
$ nmcli dev wifi list | $ nmcli dev wifi list | ||
Line 39: | Line 51: | ||
SSID_3 | SSID_3 | ||
</ | </ | ||
- | Add connection. | + | Enter SSID and password data. |
<code bash target> | <code bash target> | ||
$ nmcli dev wifi con ' | $ nmcli dev wifi con ' | ||
</ | </ | ||
- | Check ip configuration. | + | If there is no issue during network establishment, |
<code bash target> | <code bash target> | ||
$ ip addr | $ ip addr | ||
Line 65: | Line 77: | ||
===== Configuring WIFI AP mode ===== | ===== Configuring WIFI AP mode ===== | ||
+ | There is no GUI menu to configure WIFI AP mode for now.\\ | ||
+ | Please use the following instruction via command line. | ||
=== 1. Update & Upgrade === | === 1. Update & Upgrade === | ||
<code bash target> | <code bash target> | ||
Line 81: | Line 94: | ||
$ sudo systemctl disable dnsmasq | $ sudo systemctl disable dnsmasq | ||
</ | </ | ||
- | === 3. Setup (1) - Configuration | + | === 3. Setup (1) - Configuring |
To configure the static IP address, please edit a dhcpcd configuration file, / | To configure the static IP address, please edit a dhcpcd configuration file, / | ||
Go to the end fo this file and add the following lines.\\ | Go to the end fo this file and add the following lines.\\ | ||
Line 94: | Line 107: | ||
</ | </ | ||
- | === 4. Setup (2) : Configuring the access point host software - ' | + | === 4. Setup (2) - Configuring the access point host software - ' |
(1) You need to edit the hostapd configuration file in / | (1) You need to edit the hostapd configuration file in / | ||
<code bash target> | <code bash target> | ||
Line 126: | Line 139: | ||
</ | </ | ||
<code bash target> | <code bash target> | ||
- | # DAEMON_CONF="" | ||
DAEMON_CONF="/ | DAEMON_CONF="/ | ||
</ | </ | ||
- | === 5. Setup (3) : Configuring DHCP server - ' | + | === 5. Setup (3) - Configuring DHCP server - ' |
Add the following information in the dnsmasq configuration file, / | Add the following information in the dnsmasq configuration file, / | ||
<code bash target> | <code bash target> | ||
- | #stop DNSmasq from using resolv.conf | + | $ vi / |
+ | </ | ||
+ | <code bash target> | ||
+ | # If you don't want dnsmasq to read /etc/resolv.conf | ||
+ | # file, getting its servers from this file instead (see below), then | ||
+ | # uncomment this. | ||
no-resolv | no-resolv | ||
- | #Interface | + | |
+ | # If you want dnsmasq | ||
+ | # specified interfaces (and the loopback) give the name of the | ||
+ | # interface (eg eth0) here. | ||
+ | # Repeat the line for more than one interface. | ||
interface=wlan0 | interface=wlan0 | ||
+ | |||
+ | # On systems which support it, dnsmasq binds the wildcard address, | ||
+ | # even when it is listening on only some interfaces. It then discards | ||
+ | # requests that it shouldn' | ||
+ | # working even when interfaces come and go and change address. If you | ||
+ | # want dnsmasq to really bind only the interfaces it is listening on, | ||
+ | # uncomment this option. About the only time you may need this is when | ||
+ | # running another nameserver on the same machine. | ||
bind-interfaces | bind-interfaces | ||
+ | |||
+ | # Uncomment this to enable the integrated DHCP server, you need | ||
+ | # to supply the range of addresses available for lease and optionally | ||
+ | # a lease time. If you have more than one network, you will need to | ||
+ | # repeat this for each network on which you want to supply DHCP | ||
+ | # service. | ||
dhcp-range=192.168.4.3, | dhcp-range=192.168.4.3, | ||
</ | </ | ||
- | === 6. Setup (4) : Configuring | + | === 6. Setup (4) - Configuring |
Create / | Create / | ||
Make sure that 3rd line is blocked using "#" | Make sure that 3rd line is blocked using "#" | ||
Line 152: | Line 187: | ||
=== 7. Start services === | === 7. Start services === | ||
<code bash target> | <code bash target> | ||
- | $ service | + | $ sudo systemctl enable |
- | $ service hostapd | + | $ sudo systemctl |
- | </ | + | |
+ | $ sudo systemctl enable hostapd | ||
+ | $ sudo systemctl start hostapd | ||
+ | </ | ||
+ | <code bash target> | ||
+ | $ ip addr | ||
+ | 1: lo: < | ||
+ | link/ | ||
+ | inet 127.0.0.1/8 scope host lo | ||
+ | | ||
+ | inet6 ::1/128 scope host | ||
+ | | ||
+ | 2: wlan0: < | ||
+ | link/ether ab: | ||
+ | inet 192.168.4.1/ | ||
+ | | ||
+ | inet6 fe80:: | ||
+ | | ||
+ | </ | ||
===== Checking basic connection ===== | ===== Checking basic connection ===== | ||
+ | If you get fails during network setup, please check the followings using ssh with a USB-to-Ethernet adapter or UART console. | ||
+ | |||
=== mmc1 node === | === mmc1 node === | ||
<code bash target> | <code bash target> | ||
Line 186: | Line 240: | ||
</ | </ | ||
- | ===== Configuring | + | ===== Workaround to support |
**/ | **/ |