Pop-up By Hole
WARNING
- After the charging bank is ejected, the cabinet will take 3 seconds to conduct warehouse communication and sensor check to ensure that the charging bank is ejected normally.
- During the check, if you send query commands (check, check_all), the original power bank may be in it. You are advised to send the command after 5 seconds.
Command Send ▼
Subscribe to topic:/powerbank/{uuid}/user/get
Data format: JSON string
Name | Identification code | Data type | Remarks |
---|---|---|---|
command name | cmd | string | popup |
Order data | data | string | Position number: 1-80 |
Main control board serial port | io | string | Default: 0; Range: 0-1 |
Example:Pop up hole 16
text
{"cmd":"popup","data":"16","io":"0"}
Custom Function ▼
Subscribe to topic: /powerbank/{uuid}/user/get
Data format: JSON string
Name | Identifier | Data type | Notes |
---|---|---|---|
Command name | cmd | string | popup |
Command data | data | string | Position number: 1-80 |
Main control board serial port | io | string | Default: 0; Range: 0-1 |
Current timestamp | timestamp | string | Current timestamp (seconds) |
Validity time | ttl | string | Command validity time (seconds) |
Example: Pop up position 16. If the network delay causes no command to be received within 30 seconds, the pop-up will not occur.
text
{"cmd":"popup","data":"16","io":"0","timestamp":"1759941810","ttl":"30"}
Command Reply △
Publish to topic:/powerbank/{uuid}/user/update
Data format: bytecode data, Hex, hexadecimal analysis
Bytecode | Name | Identification code | Remarks |
---|---|---|---|
byte[0] | Head code | head | Default: 0xA8 |
byte[1~2] | Packet length | length | For example: 0x01 0x25, converted to decimal, the packet length is 293 |
byte[3] | Command name | cmd | Default: 0x21, position pop-up |
byte[4] | Control board address | controlIndex | Default: 0x10 |
byte[5] | Position address | holeIndex | Default: 0x01 |
byte[6] | Pop-up status | state | 0x00:Pop failed 0x01:Pop-up successful 0x11:Serial communication timeout 0x12:The power bank has not popped out, but the SN number can be read. 0x87:Failed to obtain the timestamp. 0x88:Exceeding the TTL validity period 0xFF:Lease command parsing failed Other values:Unknown error |
byte[7] | Reserved | undefined | Default: 0x00 |
byte[8] | Check code | verify | Packet complement check |
Example: Reporting position pop-up data
text
A8 00 09 21 10 01 01 00 1A
text
A8 ----------------------------------------------- byte[0] header code
00 09 ---------------------------------------------byte[1~2] package Length: 9
21 ----------------------------------------------- byte[3] Position popup command
10 ----------------------------------------------- byte[4] Control Board address
01 ----------------------------------------------- byte[5] Position Number
01 ----------------------------------------------- byte[6] Pop up state
00 ----------------------------------------------- byte[7] Reserved
1A ----------------------------------------------- byte[8] Code verification