Personal tools

Difference between revisions of "EBOX-IMX8MM-WiFi"

From ICOP tech wiki

Jump to: navigation, search
(Created page with "==Wifi function test== To connect SSID, turn off the wlan0 by the command below first. # ifconfig wlan0 down Connect to the SSID and input the SSID password. # iwconfig...")
 
 
Line 19: Line 19:
 
Use the PING command to test the network connections.
 
Use the PING command to test the network connections.
  
  # ip=$(ifconfig wlan0 | grep “inet addr” | cut -f 1 -d B | sed 's/inet addr:// g');ping -c 5 S $ip  
+
  # ip=$(ifconfig wlan0 | grep “inet addr” | cut -f 1 -d B | sed 's/inet addr:// g');ping -c 5 -S $ip  
 
  www.google.com.tw
 
  www.google.com.tw
  
[[File:Wifi function test.png|frameless|600x600px]]
+
[[File:Wifi PING command.png|alt=|frameless|600x600px]]

Latest revision as of 11:32, 25 March 2021

Wifi function test

To connect SSID, turn off the wlan0 by the command below first.

# ifconfig wlan0 down

Connect to the SSID and input the SSID password.

# iwconfig wlan0 essid “SSID” key “SSIDPASSWORD”

Turn on the wlan0

# ifconfig wlan0 up

Request IP address from DHCP server.

# udhcpc -i wlan0

Use the PING command to test the network connections.

# ip=$(ifconfig wlan0 | grep “inet addr” | cut -f 1 -d B | sed 's/inet addr:// g');ping -c 5 -S $ip 
www.google.com.tw