ssh m5stack@10.254.239.1
//user: m5stack
//pwd: 12345678
//user: root
//pwd: 7d219bec161177ba75689e71edc1835422b87be17bf92c3ff527b35052bf7d1f
User's default directory structure
//Stores files edited in Jupyter Notebook
/home/notebook
//Stores service file resources for recognition functions, and some model files
/home/m5stack
SSH
, configure the wpa_supplicant.conf
file, and add Wi-Fi connection information. Before modifying the configuration file, we need to create encryption information (psk) through wpa_passphrase
. Refer to the command below to input SSID and PASSWORD, and get the printout.#Enter command
sudo wpa_passphrase ssid password
#Return result
network={
ssid="ssid"
#psk="password"
psk=44116ea881531996d8a23af58b376d70f196057429c258f529577a26e727ec1b
}
Add the generated Wi-Fi
credentials to the wpa_supplicant.conf
file and save
#Open the configuration file
sudo nano /etc/wpa_supplicant.conf
#Add configuration information
network={
ssid="ssid"
psk=44116ea881531996d8a23af58b376d70f196057429c258f529577a26e727ec1b
}
After completing the configuration, you can test the current network status with the ping
command.
sudo ping m5stack.com
PING m5stack.com (120.77.157.90): 56 data bytes
64 bytes from 120.77.157.90: seq=0 ttl=52 time=12.792 ms
64 bytes from 120.77.157.90: seq=1 ttl=52 time=9.838 ms
64 bytes from 120.77.157.90: seq=2 ttl=52 time=47.202 ms
sudo reboot
.#Disable the network card
sudo ifconfig wlan0 down
#Enable the network card
sudo ifconfig wlan0 up
wpa_supplicant.conf
supports configuring multiple Wi-Fi information. By adding the priority
field, you can set the priority of the connection (the higher the priority, the higher the priority).network={
ssid="network-1"
psk="very secret passphrase"
priority=5
}
network={
ssid="network-2"
psk="very secret passphrase"
priority=6
}
Sn
(n represents the startup order priority, starting sequentially from the smallest number. The built-in application service's auto-start file is S85runpayload). Note: To avoid preventing the device from starting normally, please ensure that the configured commands can be executed normally and do not block. If abnormalities occur, try re-updating the firmware to fix./etc/init.d