English
English
简体中文
日本語

UiFlow Tutorial

UiFlow1 Development Guide

Project Management

Use LTE network

UiFlow1 Blockly

Event

Unit

NanoC6: Flash Firmware & Run Code

1. UiFlow2 Firmware Flashing

  1. Refer to the UiFlow2 Web IDE Tutorial to learn the basic workflow of using UiFlow2, and complete the installation of the M5Burner firmware flashing tool.

  2. Download the firmware compatible with NanoC6 in M5Burner.

  1. Press and hold the button on the front of the NanoC6, connect the device to the computer with a USB Type-C cable, then release the button to enter download mode and wait for flashing.
  1. In M5Burner, click the Burn button for the UiFlow2 firmware corresponding to NanoC6, select the corresponding device port, and click Start.
  1. Fill in the Wi-Fi configuration required by the device, including Wi-Fi SSID and Wi-Fi Password, as well as any other device configurations that need to be added or modified, then click Next to start flashing.

Configuration information description:

  • Server: Server address that the device connects to
  • Wi-Fi SSID/Wi-Fi 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: Set the device startup mode after firmware flashing is complete
    • Run main.py directly: After flashing is complete, directly run the program in main.py without connecting to the network or displaying the UiFlow2 startup screen
    • Show startup menu and network setup: The device connects to the network, and devices with a screen will display the UiFlow2 startup screen
    • Only network setup: The device only performs network setup and does not display the UiFlow2 startup screen
  1. When the prompt Burn successfully, click here to return appears, flashing is successful. Reset the device at this point.
  1. After firmware flashing is complete, if you need to modify the device configuration, keep the USB connection, restart the device, click the Configure option, and modify the settings according to the on-screen prompts.

2. Device Connection

NanoC6 supports connecting to UiFlow2 via Access Code (over a wireless network) or USB (wired connection to the computer) for program deployment and debugging. Refer to the following tutorial steps for details.

Access Code Wireless Connection

  1. Visit uiflow2.m5stack.com to open the UiFlow2 Web IDE.

  2. Make sure the device is connected to the network: when the RGB indicator on the front of the NanoC6 lights up green, the device is successfully connected to the network. If the RGB indicator lights up blue, the device is not connected to the network. In this case, check whether the Wi-Fi name and password entered during firmware flashing are correct, modify them through the Configure option in M5Burner, and flash the firmware again.

  1. Obtain the Access Code: click WebTerminal in the lower-left corner of the UiFlow2 Web IDE interface, select the serial port for NanoC6 in the dialog box, then click Connect to open the serial monitor, where you can view the currently generated valid Access Code. (Note: If the corresponding information is not displayed, click the Soft Reset button to perform a soft reboot.)
  1. Click Select Your Controller (displayed when entering for the first time) or the Controller button on the page to enter the Select Device page.
  1. Click Connect Device, enter the access code and a custom device name, then click Confirm to connect NanoC6 to UiFlow2.
Access Code Description
1. Changing browsers, using private / incognito mode, or clearing the UiFlow2 website cache will invalidate the original pairing state.
2. Only closing the tab, restarting the browser, logging in, or logging out of the account will not affect the existing bound pairing relationship.
3. Once the device is bound and paired by another browser, the pairing relationship in the original browser will immediately become invalid.
  1. Select the connected NanoC6 device on the Select Device page, then click Confirm to enter the UiFlow2 programming interface.

USB Wired Connection

  1. Visit uiflow2.m5stack.com to open the UiFlow2 Web IDE, and connect NanoC6 to the computer with a USB Type-C cable.

  2. Click Select Your Controller (displayed when entering for the first time) or the Controller button on the page to enter the Select Device page.

  1. Select the NanoC6 device from the device list, then click Confirm.
  1. Click the WebTerminal button, select the serial port for NanoC6 in the dialog box, and click Connect.

When the WebTerminal screen displays Connected to Serial Port!, the USB connection is successful.

3. Program Run and Download

After the device is connected to UiFlow2, you can drag Blockly blocks to edit the program.

After program editing is complete, click the Run Once button in the lower-right corner of the interface to run and test the program once. Click the Run Always button to download the program to the device.

You can also run once or download the program from the WebTerminal window.

Page Tools
PDF
On This Page