Skip to content

M5Stack / Odroid-GO program for configuring WiFi. Record the SSID and password on NVS (non-volatile storage device) in M5Stack. (JP: WiFi設定するためのM5Stack / Odroid-GO のプログラム。SSIDとパスワードをM5StackのNVS(不揮発記憶装置)に記録します)

micutil/SetWiFi_Mic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SetWiFi_Mic

日本語READMEはこちら

SetWiFi_Mic is an M5Stack program for setting up WiFi. Record the SSID and password on M5Stack's NVS (non-volatile storage device). SetWiFi_Mic supports calling of SD-Updater, so please put SetWiFi_Mic.bin file in microSD and load it using SD-Uploader. You can easily install SD-Updater by using M5Burner_Mic.

Binary files for Launcher

  • in M5_Gamebin ... 4M minimal SPIFFS partition scheme.
  • in MD_Gamebin ... 4M default partition scheme.
  • in MF_Gamebin ... Fire defaut partition scheme.
  • in OG_Gamebin ... bin file for Odroid-GO.
  • in odroid/firmwares ... fw file for Odroid-GO Menu Control.

Copy the binary files to microSD

  • Copy the files in the microSD folder to the root of microSD.
  • Set the microSD into the M5Stack / Odroid-GO
  • Select and launche the program with LovyanLauncher.
  • For the original Odroid-GO device firmware menu control, no launcher is needed (see below).
ODROID-GO Device Firmware Menu Controls
1. Power Switch Off
2. Hold B button, Power Switch On
3. Release B button when device firmware Menu appears.

Launch an app
- A button: Select Application F/W
- B button: Cancel
- Start : Write Application F/W

How to enter SSID and Password

1, Input with serial monitor or terminal software

When you start SetWiFi_Mic, it will look like the image below.

  1. You connect to M5Stack at 115,200 bps with Arduino's serial monitor or common terminal software.
  2. You can enter the SSID and password from the software.

If you make a mistake, SetWiFi_Mic has no function such as "Delete" or "Backspace". In such a case, please press the A button and input from the beginning again.

MacDown logo

2, Use the WiFi SmartConfig App

M5Stack can do WiFi setting by SmartConfig. This function is the setting method supported by ESP8266 and ESP32, and can use the same application as the connected WiFi environment of the smartphone using the smartphone application.

  1. Press B to enter Smart Config mode.
  2. The image below shows the QR code of the download destination of the app for iOS application and for Android. Also, if you press the A button or C button, only one QR code will be displayed, so if it is difficult to read, please display only one and read it with your smartphone.

MacDown logo

The smartphone app that you install is an application called Esptouch of the company Espressif of the ESP32 which is a microcomputer of M5Stack. Below is the download URL of iOS and Android of that App. It is easy for you to have the App installed.

Esptouch for iOS
https://itunes.apple.com/jp/app/id1071176700

Esptouch for Android
https://git.io/fjUSl

MacDown logo MacDown logo

  1. Enter the password of the SSID (the smartphone is connected) in the "Password" field in the Esptouch app.
  2. Press the "Confirm" button and wait for a while to complete the settings.

To call the set SSID and Password

You can call the configured SSID and password with the following code (These are the same as WiFi settings of LovyanLauncher).

#include <Preferences.h>
Preferences preferences;
preferences.begin("wifi-config");
mySSID = preferences.getString("WIFI_SSID");
myPSWD = preferences.getString("WIFI_PASSWD");
preferences.end();

History

ver 1.0.1: 2019/ 5/24 ODROID-GO compatible
ver 1.0.0: 2019/ 3/27

License

CC BY 4.0 Micono (http://github.com/micutil/SetWiFi_Mic).

About

M5Stack / Odroid-GO program for configuring WiFi. Record the SSID and password on NVS (non-volatile storage device) in M5Stack. (JP: WiFi設定するためのM5Stack / Odroid-GO のプログラム。SSIDとパスワードをM5StackのNVS(不揮発記憶装置)に記録します)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages