Current Product Don't Have Test Firmware
Note: pls, use PC chrome/edge browser, if can't connect, refresh the webpage.
1. Click connect button
2. After connected successfully, pick a firmware
3. Click the burn button
4. After burning successfully, Unplug the device and restart.
UNIT MQTT PoE is an Ethernet MQTT communication module, supports PoE power and embedded W5500 Ethernet chip, as well as the UART communication interface (AT command control). The module is also equipped with an integrated RJ45 10 / 100 Mb network port, supports subscription of four topics (topic). With extremely low network latency and high stability, it is designed for industrial automation, security monitoring system, automation measurement, and equipment data on the cloud applications.
The PoE version has integrated PoE power, with 1.2A@5V (6W) load capability.
Specifications | Parameters |
---|---|
Module Processor | ARM Cortex-M3 |
Communication interface | UART: baud 9600bps 8N1 default |
MQTT | Support 4x Topic subscription, not support MQTTS |
Network port | RJ45 adaptive 10/100M network port |
Delay | Delay `10ms |
PoE power supply capability | 1.2A@5V(6W) / Voltage DC 37-57V |
Working current | 190mA |
Standby current | 130mA |
Net weight | 27.0g |
Gross weight | 34.2g |
Product size | 72 * 26 * 19 mm |
Packing size | 73 * 35 * 20 mm |
M5Core | TX(GPIO17) | RX(GPIO16) | VCC | GND |
---|---|---|---|---|
UNIT MQTT | RX | TX | VCC | GND |
?Note: Send a carriage return and line feed
\r\n` at the end of each command
AT+NETMAC=
MAC address``
//Example
AT+NETMAC=12-34-56-78-90-AB
+NETMAC=OK
AT+NETSTATICIP=
IP address,
subnet mask,
gateway``
IP address
,subnet mask
,gateway
)
?Note: When the DHCP function is turned on, the static IP setting will not be enabled.
brIP address` (text), which means the local IP address, you can use the IP address or domain name`br
subnet mask (text), must be in IP address format
br``gateway`(text), must be in IP address format//Example
AT+NETSTATICIP="192.168.0.101","255.255.255.0","192.168.0.1"
+NETSTATICIP=OK
AT+NETDHCPEN=
1/0``
1/0``br
1: Enable DHCP functionbr
0: Disable DHCP function//Example
AT+NETDHCPEN=1
+NETDHCPEN=OK
AT+MQCLIENTID=
client name``
br``client name``br
(text) MQTT client name//使用示例
AT+MQCLIENTID="CLIENT ID"
+MQCLIENTID=OK
AT+MQKEEP=
heartbeat duration``
br``heartbeat time``br
The time interval for automatically sending PINGREQ packets, unit: second, range 5~300//Example
AT+MQKEEP=500
+MQKEEP=OK
AT+MQSUBSCRIBE=
subject serial number,
1/0,
subject name,
quality of service``
br
Subject Number
Numbers 1-4
br``1/0
1 Open the subscription of this topic, 0 Close the subscription of the changed topic, when the parameter is changed to 0, the latter two parameters must be emptybr``topic name
(text)quality of service
Must be one of 0, 1, 2//Example
AT+MQSUBSCRIBE=1,1,"sub",0
+MQSUBSCRIBE=OK
AT+MQSERVER=
server address,
server port``
br``server address``br
(text), you can use IP address or domain namebr``server port
number 0~65535//Example
AT+MQSERVER="xxx.mqttserver.com",1883
+MQSERVER=OK
AT+MQUSERPWD=
user name,
password``
br
set user name and password user name
(text) MQTT user namebr``password
(text) MQTT login password//Example
AT+MQUSERPWD="user","123456"
+MQUSERPWD=OK
AT+MQAUTO=
1/0``
br
Set whether to directly connect to the server when powering on.br``1/0
0: Do not directly start the connection when powering on, 1: Start the connection directly according to the configured parameters when powering on//Example
AT+MQAUTO=1
+MQAUTO=OK
AT+MQRESETCFG
br
//Example
AT+MQRESETCFG
+MQRESETCFG=OK
AT+MQPUBLISH=
topic,
message,
quality of service``
br``subject
(text), the subject name of the message to be publishedbr``message
(text), the message to be published, the maximum allowed length of this parameter is 1000br
Quality of Service
QOS, must be 0,1,2, you can choose not to send this parameter, at this time QOS is 0AT+BAUD=
Baud rate``
br``baud rate
The baud rate can only be the following values/4800/9600/19200/34800/115200/230400//Example
AT+BAUD=115200
+BAUD=OK
AT+SAVE
After configuring the MQTT parameters, you need to execute the SAVE command, and perform a RESET soft reset, the configuration will take effect
//Example
AT+SAVE
+SAVE=OK
AT+RESET
After configuring the MQTT parameters, you need to execute the SAVE command, and perform a RESET soft reset, the configuration will take effect
//Example
AT+RESET
+RESET=OK
AT
//Example
AT
AT
AT+MQSUBSCRIBE=
subject serial number?
topic number
,on/off
,topic name
,service quality level``br``topic number
can only be 1~4 One of the br``on/off
is 1 when the current subscription is on, and 0 means when the subscription is invalid.br``topic name``service level quality
can only be 0,1,2, one of which means MQTT service QOS0, QOS1, QOS2 in quality//Example
AT+MQSUBSCRIBE=1?
+MQSUBSCRIBE=OK:1,1,"/topic",0
AT+MQAUTO?
on/off
0: Do not start the connection directly when powering on, 1: Start the connection directly according to the configured parameters when powering on//Example
AT+MQAUTO?
+MQAUTO=OK:1
AT+NETMAC?
MAC address
The format is: XX-XX-XX-XX-XX-XX//Example
AT+NETMAC?
+NETMAC=OK:12-34-56-78-90-AB
AT+NETSTATICIP?
static IP address
,subnet mask
,gateway
//Example
AT+NETSTATICIP?
+NETSTATICIP=OK:"192.168.1.2","255.255.255.0","192.168.1.1"
AT+NETDHCPEN?
start/disable
1: Enable the DHCP function, 0: Disable the DHCP function//Example
AT+NETDHCPEN?
+NETDHCPEN=OK:1
AT+MQCLIENTID?
client IP
//Example
AT+MQCLIENTID?
+MQCLIENTID=OK:"clientID"
AT+MQSERVER?
server address
,server port number
//Example
AT+MQSERVER?
+MQSERVER=OK:"192.168.1.55",1883
AT+MQUSERPWD?
username
,password
//Example
AT+MQUSERPWD?
+MQUSERPWD=OK:"USER","123456"
AT+MQKEEP?
heartbeat interval
//Example
AT+MQKEEP?
+MQKEEP=OK:60
AT+BAUD?
baud rate
The default baud rate is 9600//Example
AT+BAUD?
+BAUD=OK:9600
AT+VERSION?
current firmware version number
//Example
AT+VERSION?
+VERSION=OK:1.0
AT+MQSTATUS?
br
Response: +MQSTATUS=OK:connection status
//Example
AT+MQSTATUS?
+MQSTATUS=OK:1
AT+NETIP?
br
Response: +NETIP=OK:IP address
,subnet mask
,gateway
,DNS server address
//Example
AT+NETIP?
+NETIP=OK:"192.168.2.121","255.255.255.0","192.168.2.1","192.168.2.1"
//The network is not connected
+NETUNCONNECT
//MQTT server is not connected
+MQUNCONNECT
//Successful connection with MQTT server
+MQCONNECT
//Received topic message
+MQRECV:`subject`,`length`,`message`
//Parameter content error
ERROR:Error Param
//The number of parameters does not meet the requirements
ERROR:Error Param Num
//The length of the parameter is too long, and each parameter field requires less than 128 bytes (the maximum length of the published message is 1000 bytes)
ERROR: Parma is too long
//Failed to connect to the network
ERROR:Unconnected
//MQTT server communication error
ERROR: MQTT Connect Fail
//The server did not respond when publishing the message (Qos1 and Qos2)
ERROR: MQTT Publish Fail
Execute the following statement in Setup() of the Arduino program
When M5Core2 is stacked with other M5 modules, you need to remove the battery base of Core2, which does not support module stacking.
Reason and solution: The power supply current of the port is insufficient, which can cause the device to not enter the download mode normally. You can try to connect a capacitor (>0.1uF) between the RST pin and the GND pin, or when uploading the program, set the G0 Short-circuit to GND, so that G0 can be set to a low level state normally
Add the header file #include <driver/adc.h> and the function adc_power_acquire(); in the Arduino program
The battery life of the controller is affected by various factors such as battery capacity, operating status, and load, so there is no fixed value. Reducing the load and adopting a sleep strategy can effectively increase the battery life.
Support multiple stacks, the total capacity of the batteries in parallel increases, and the voltage remains unchanged. However, since the discharge of each battery is not balanced during use, there is a voltage difference between the batteries, which may cause the battery to charge backwards. .(will lose part of the battery capacity)
ESP32 module currently does not support WiFi in 5G band, only 2.4G.
Confirm whether the TX/RX pin on the TTL side of the pin is correct, try to add two 120Ω terminal resistors at the beginning and end of the device line to reduce signal reflection interference
Click the link below to view the product comparison table
Rotate the lens to adjust the focal length within a certain range
FACE II BOTTOM NOT CORE2 COMPATIBLE
Use esptool to read the flash content of esp32 and export the bin file. Refer to the detailed operation
Restart the Arduino IDE, the computer uses the mobile AP mobile network to download.
Refer to the Github link below, use arduino-esp32fs-plugin for file upload
Check if the COM of the corresponding device is selected and if the M5Burner is the latest version
UIFlow users can switch the Label font to Unicode, Arduino users can use the Chinese font library provided in the M5GFX driver library
Confirm whether the SD card format is FAT32, and no partitions exist.
You can refer to the following link for other ESP32 users to share the case program
STAMP C3U enters program download mode operation: 1. Long press the center button (G9) of STAMP C3U when the power is off. 2. Connect to the computer, after the port is successfully identified, program burning.
By default, USB CDC is not enabled, the serial port output started by C3U will be output through the default pins (G20, G21) of UART0. If you want to output through USB, please use the IDE to output Its USB CDC option is enabled. (Arduino users can enable it through Tools->USB CDC on Boot-Enabled. For IDF users, please refer to the ESP IDF official documentation.)
Refer to the UIFlow documentation of the corresponding device to check whether the device has entered the USB programming mode.
Make sure that the NBIoT used is not locked. Frequent device replacement or after activating the IoT card, using traffic in different places may cause the card to be locked. If the above situation occurs, please contact the IoT card supplier. If you are using the IoT card matching M5, please contact M5 after-sales through e-commerce or email. (provide the ICCID of the IoT card)
Describe the problems encountered in detail. Screenshots of the programs involved or files can be added as attachments and sent to M5Stack's official after-sales email
M5Stack related resource links: Official Github