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-54 |
Main control board serial port | io | string | Default: 0; Range: 0-1 |
Pop up position No. 1
{ "cmd":"popup", "data":"1", "io":"0" }
Pop up position No. 16
{ "cmd":"popup", "data":"16", "io":"0" }
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-up failed 0x01: Pop-up successful |
Byte[7] | Solenoid valve detection | solenoidValve | R&D and debugging, customers do not need to pay attention |
Byte[8] | Check code | verify | Packet complement check |
Example: Reporting position pop-up data
A8 00 09 21 10 01 01 02 1A
json
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
02 ----------------------------------------------- Byte[7] Electromagnetic Valve testing
1A ----------------------------------------------- Byte[8] Code verification