SSH Login

Open the command line terminal, enter the instruction below, and input the default password to access the device via ssh.
ssh m5stack@ 

//user: m5stack
//pwd: 12345678

//user: root
//pwd: 7d219bec161177ba75689e71edc1835422b87be17bf92c3ff527b35052bf7d1f

User's default directory structure

//Stores files edited in Jupyter Notebook

//Stores service file resources for recognition functions, and some model files


Add Configuration Information

Access the device via 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

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

After completing the configuration, you can test the current network status with the ping command.

sudo ping m5stack.com

PING m5stack.com ( 56 data bytes
64 bytes from seq=0 ttl=52 time=12.792 ms
64 bytes from seq=1 ttl=52 time=9.838 ms
64 bytes from seq=2 ttl=52 time=47.202 ms
If you are unable to connect to the network normally, try restarting the network card or power cycling the device with sudo reboot.
#Disable the network card
sudo ifconfig wlan0 down

#Enable the network card
sudo ifconfig wlan0 up

Configuring Multiple Connections

The 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).
    psk="very secret passphrase"
    psk="very secret passphrase"

Configure Script to Auto-Start

Log in as root user, visit the following path, and add or modify the existing startup 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.
On This Page