SSH Connect

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


ssh m5stack@10.254.239.1 

//user: m5stack
//pwd: 12345678

//user: root
//pwd: 7d219bec161177ba75689e71edc1835422b87be17bf92c3ff527b35052bf7d1f

User default directory structure


//Store files edited in Jupyter Notebook
/home/notebook

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

WIFI

Add configuration information

Access the device via SSH, configure the wpa_supplicant.conf file and add WiFi 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
network={
        ssid="ssid"
        #psk="password"
        psk=44116ea881531996d8a23af58b376d70f196057429c258f529577a26e727ec1b
}

Add and save the generated WiFi credential information to the wpa_supplicant.conf file.

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

#Add configuration information
network={
    ssid="ssid"
    psk=44116ea881531996d8a23af58b376d70f196057429c258f529577a26e727ec1b
}

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

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

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 WiFi information, and the priority of the connection can be set by adding the priority field (the larger the value, the higher the priority)


network={
    ssid="network-1"
    psk="very secret passphrase"
    priority=5
}
network={
    ssid="network-2"
    psk="very secret passphrase"
    priority=6
}
On This Page