Skip to content

Return

1、When the power bank is returned to the cabinet, regardless of success or failure, the MQTT result is reported.
2、When the power bank is returned to the cabinet, only the success status is available, and the HTTP result is reported.

Command Reply △

Publish to topic: /powerbank/{uuid}/user/update

Data format: bytecode data, Hex, hexadecimal analysis

BytecodeNameIdentification codeRemarks
byte[0]Header codeheadDefault: 0xA8
byte[1~2]Packet lengthlengthDefault: 0x00 0x15, converted to decimal, equal to 21
byte[3]Command namecmdDefault: 0x28, return the power bank (self-test)
byte[4]Movement board addresscontrolIndexDefault: 0x01
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓The following fields are synchronized with Position Information
byte[5]Location addressholeIndexRange: 1-100
byte[6]Status informationstate
byte[7]Power bank currentpowerbankCurrKeep 1 decimal place
For example: 0x10=16, indicating 1.6A
byte[8]Voltage of power bank cellspowerbankVoltKeep 1 decimal place
For example, 0x10=16 means 1.6V
byte[9]Area codeareaCustomized
byte[10~13]Power bank SNpowerbankSN0x05 0x11 0x49 0xF1=85019121
byte[14]Battery levelsoc0x00、0xFF:0%
0x10:16%
0x64:100%
byte[15]Temperaturetemp0x00: No NTC
0x10: 16℃
0x64: 100℃
byte[16]Charging voltagechargeVoltKeep 1 decimal place
For example, 0x10=16 means 1.6V
byte[17]Charging currentchargeCurrKeep 1 decimal place
For example, 0x10=16, indicating 1.6A
byte[18]versionversion0x00: 0
0x10: V16
0xFF: V255
byte[19]sensor detectionsensor
↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
byte[20]Verification codeverifyData packet complement verification

Example: Report SN pop-up data

text
A8 00 15 28 02 08 01 00 00 01 05 11 2F FA 4B 21 00 00 0D 01 56

text
A8 -------------------------------------------- byte[0] Header code
00 15 ----------------------------------------- byte[1~2] Packet length 21
28 -------------------------------------------- byte[3] Return power bank command (self-fix)
02 -------------------------------------------- byte[4] Movement board address
08 -------------------------------------------- byte[5] Position number: 8
01 -------------------------------------------- byte[6] Return status: 01 Normal
00 -------------------------------------------- byte[7] Reserved
00 -------------------------------------------- byte[8] Reserved
01 -------------------------------------------- byte[9] Area code: 01
05 11 2F FA ------------------------------------byte[10~13] Power bank SN: 85012474
4B -------------------------------------------- byte[14] Battery level: 75%
21 -------------------------------------------- byte[15] Temperature: 33℃
00 -------------------------------------------- byte[16] Charging voltage: 0V
00 -------------------------------------------- byte[17] Charging current: 0V
0D -------------------------------------------- byte[18] Software version: V13
01 -------------------------------------------- byte[19] Hardware version: V1
56 -------------------------------------------- byte[20] Checksum

API Request

After the power bank self-checks successfully, the entire device will be reported immediately via HTTP.