English
English
简体中文
日本語

UiFlow Tutorial

UiFlow1 Development Guide

Project Management

Use LTE network

UiFlow1 Blockly

Event

Unit

Chain Captain: Flash Firmware & Run Code

1. UiFlow2 Firmware Flashing

  1. Connect Chain Captain to the computer using a USB Type-C cable. After connecting, press and hold the power button until the green LED on the side of the device flashes, indicating that the device has entered download mode.
  1. Open the Chain Captain UiFlow2 firmware page on the M5Burner website, then click Burn to device in the interface to start flashing the UiFlow2 firmware.
  1. In the pop-up window, select the baud rate for serial communication, then click Select COM.
  1. Select the port corresponding to the device, then click Connect.

When the interface displays Connected to xxx, the port is connected successfully.

  1. Click Burn, then click Start in the pop-up window.
  1. Fill in the Wi-Fi configuration required for the device, including the Wi-Fi SSID, Wi-Fi Password, and any other device settings that need to be added or modified, then click Next.

When Burn successfully is displayed, flashing is successful. Please 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 Configuration, and modify the settings according to the on-screen instructions.

2. Device Connection

Chain Captain supports connecting to UiFlow2 via Access Code (wireless network) or USB (wired connection to a computer) for program pushing and debugging. Refer to the following tutorial:

Access Code Wireless Connection

  1. Before connecting, confirm on the device screen that it is connected to the network. If the network connection fails, check that the Wi-Fi name and password entered during firmware flashing are correct. Then click Configuration on the firmware flashing page, update the configuration, and flash the firmware again.

  1. Check the currently valid Access Code on the device's UiFlow2 startup screen.
  1. Visit uiflow2.m5stack.com to open the UiFlow2 Web IDE.

  2. Click Select Your Controller on the page (shown on first entry) or the Controller button to enter the Select Device page.

  1. Click Connect Device, enter the Access Code and a custom device name, then click Confirm to connect Chain Captain 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. Closing only the tab, restarting the browser, logging in, or logging out will not affect a bound pairing relationship.
3. Once the device is bound and paired by another browser, the original browser's pairing relationship becomes invalid immediately.
  1. On the Select Device page, select the connected Chain Captain device, then click Confirm to enter the UiFlow2 programming interface.

USB Wired Connection

  1. Visit uiflow2.m5stack.com to open the UiFlow2 Web IDE, then connect Chain Captain to the computer using a USB Type-C cable.
  2. Click Select Your Controller on the page (shown on first entry) or the Controller button to enter the Select Device page.
  1. Select Chain Captain from the device list, then click Confirm.
  1. Click the WebTerminal button, select the serial port for Chain Captain in the dialog, 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 edit programs by dragging Blockly blocks.

After editing the program, click the Run Once button in the lower-right corner to run the program once for testing. Click Run Always to download the program to the device.

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

Page Tools
PDF
On This Page