SSH Connect

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

ssh m5stack@ 

//user: m5stack
//pwd: 12345678

//user: root
//pwd: 7d219bec161177ba75689e71edc1835422b87be17bf92c3ff527b35052bf7d1f

User default directory structure

//Store files edited in Jupyter Notebook

//Storage of identification function service file resources, and some model files


Add configuration information

Access the device via SSH, configure the wpa_supplicant.conf file and add Wi-Fi connecting information. Before modifying the file for configuration, we need to create encrypted information (psk) via wpa_passpharse, enter the SSID and PASSWORD according to the command below and get the printout.

#Input Command
sudo wpa_passphrase ssid password

#Return Result

Add and save the generated Wi-Fi credential information to the wpa_supplicant.conf file.

#Open the configuration file
sudo nano /etc/wpa_supplicant.conf

#Add configuration information

You can use the ping command to test the current network status after completing the configuration.

sudo ping

PING ( 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 still cannot access to the network properly, please try restarting the WLAN or turning off the device and restart.

#Stop using Wlan
sudo ifconfig wlan0 down

#Start up Wlan
sudo ifconfig wlan0 up

Configure multiple connections

The wpa_supplicant.conf supports the configuration of multiple Wi-Fi information, and the priority of the connection can be set by adding the priority field (the larger the value, the higher the priority)

    psk="very secret passphrase"
    psk="very secret passphrase"

Configuration script self-start

Log in as the root user and visit the path to add or modify the existing startup Sn (n represents the priority of the startup sequence, starting from the smallest sequence number, and the self-starting file of the built-in application service is S85runpayload) configuration file . Note: To prevent the device from failing to start normally, please make sure that the configured commands can be executed normally and there is no blocking phenomenon. If an abnormality occurs, you can try to update the firmware again to fix it.

On This Page