pdf-icon

UiFlow Tutorial

UiFlow1 Development Guide

Project Management

Use LTE network

UiFlow1 Blockly

Event

Unit

UiFlow2 Development Guide

UI Editor

Device Security & Sharing

DinMeter: Flash Firmware & Run Code

1. Preparation

  • Refer to the UIFlow2 Web IDE Tutorial to understand the basic workflow of using UiFlow2, and complete the installation of the M5Burner firmware flashing tool.
  • Log in or register for M5Burner. After the device is successfully flashed, the device information will be bound to this account.

2. Firmware Flashing

  1. Enter download mode: Before powering on, press and hold the G0 button on the StampS3. After powering on, release the button. At this time, the software will pop up Found New Device, and the screen will display nothing, indicating that the device has entered download mode.
schematics
  1. Download the firmware compatible with DinMeter in M5Burner, as shown below.
  1. Connect the device to the computer via a USB cable. In M5Burner, select the Burn button for the corresponding firmware, and fill in the pre-connected Wi-Fi configuration for the device, including Wi-Fi SSID and Wi-Fi Password, as well as other device configurations that need to be added or modified.

Note: If this is the first time your device is being connected, you need to bind the device to this account.

Configuration Information:

  • COM: Serial port
  • BaudRate: Baud rate of serial communication
  • Server: Server address that the device connects to
  • WIFI SSID/WIFI Password: Wi-Fi name and password that the device connects to
  • SNTP Server
    • SNTP0: Alibaba Cloud NTP server (China)
    • SNTP1: Japan NTP server pool
    • SNTP2: Global public NTP server pool
  • Timezone: Time zone setting
  • Boot Option
    • run main.py directly: Run main.py directly
    • show startup nemu and network setup: Display startup interface (NEMU) and network
    • only net work setup: Network setup only

3. Modify Device Configuration

After the firmware flashing is completed, the device will restart. Keep the USB connection. Use M5Burner and click the Configure option, fill in the device configuration that needs to be modified, and click next. Note: After flashing is successful, the device needs to be restarted. If you need to change the device configuration again, you must re-modify the flashing configuration information.

4. Log in to UiFlow2

Click the user icon in the upper right corner of the page and log in to the UiFlow2 system account. Note: This account must be the same as the one used to log in to M5Burner. After successful login, devices under this account that are successfully connected to valid Wi-Fi can be viewed by clicking Select Device. If you need to change the device owner, you must unbind the device from the account.

Wi-Fi Method

Ensure that Wi-Fi has been configured: When flashing the program, you need to configure Wi-Fi and other information in the Configure section of M5Burner.

Select the online device.

USB Method

Select the device module to be connected via USB.

Connect the DinMeter to the computer via the USB port, then click the WebTerminal button.

In the pop-up window, select the USB-connected device and click Select. When the WebTerminal screen displays “Connected to Serial Port!”, it indicates that the USB connection is successful.

5. RUN

After completing the above steps, you can start programming with UiFlow2.

7. Video

On This Page