CM4Stack acts as a server on the WAN side; a wireless LAN router is connected to the wired LAN port of the CM4Stack, and the client PC operating UIFlow and M5Stack devices are connected to the wireless LAN router.
The environment required to run UIFlow.local is as follows.
MacOS requires a build process for RPIBOOT.
The following software is required to write the image to CM4Stack.
Install by default, following the on-screen prompts.
Install by default, following the on-screen instructions.
The image file is compressed into a Zip file, so it needs to be unzipped. The file to be written has an extension of img.
Search for RPIBOOT in the start menu and launch it. After launching, the following prompt will appear.
Connect the CM4Stack to the **PC while holding down the left BOOT button from a powered-off state. Then, bootfs will be recognized as a drive.
Select the operating system.
On the startup screen
Click 'Choose OS'.
'OS' dialogue
Click 'Use custom image'.
'Select Image' dialogue
Select the UIFlow.local image file for writing.
Select the storage named RPI-MSD-0001.
gear icon in the bottom right to configure detailed settings for RaspberryPiOS.
Hostname
Specify the hostname for the CM4Stack.
Enable SSH
Set detailed operations for the CM4Stack.
You can also set password authentication and public key authentication if you have a public key available.
Username and password
Set the username and password for the RaspberryPi operating system. (Optional)
Configure WiFi
Set up WiFi.
Configure WiFi
Set up WiFi
.
**This is not the WiFi for UIFlow.local's wireless router, but for the internet side WiFi. **
If you only want to operate in a local environment, you do not need to set up WiFi. (UIFlow functions related to the network will not work).
Configure Locale
Specify the time zone and keyboard layout.
Once you have completed the settings, click "Write," and a confirmation dialog will appear. Click "Yes" to start writing.
Connect the wired LAN terminal on the CM4Stack with the "WAN" terminal of the wireless LAN router using a LAN cable.
Configure according to the instructions in the wireless LAN router manual. The following settings should be made, which vary by model.
Operation mode: Router mode
Does not work in bridge mode.
WAN (Internet) side settings must be set up using DHCP. (CM4Stack acts as the DHCP server on the upper side).
Enable DHCP server configuration
The UIFlow firmware on M5Stack devices requires a DHCP server.
Client PC operating UIFlow
The PC used for UIFlow operations is also connected to the prepared wireless LAN router.
M5Stack devices
Write UIFlow firmware to M5Stack devices using M5Burner. The WiFi configuration specifies the prepared wireless LAN router.
Start the M5Stack device in WiFi mode, and the APIKey will appear. If you open http://flow.m5stack.com
on the client PC, a warning will appear, but if you connect as is, the UIFlow screen will appear.
Note, this is not https, but http.