Skip to content

Pop-up By SN

After scanning the QR code to pay, send the SN number pop-up command to the cabinet to pop up the power bank.

WARNING

  1. 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.
  2. 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

NameIdentification codeData typeRemarks
command namecmdstringpopup_sn
command datadatastringpower bank SN

Example: Pop-up power bank; SN: 10211856

{ "cmd":"popup_sn", "data":"10211856" }

Command Reply △

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

Data format: bytecode data, Hex, hexadecimal analysis

BytecodeNameIdentification codeRemarks
Byte[0]Head codeheadDefault: 0xA8
Byte[1~2]Packet lengthlengthFor example: 0x01 0x25, converted to decimal, the packet length is 293
Byte[3]Command namecmdDefault: 0x31, sn pop-up
Byte[4]Control board addresscontrolIndexControl board address
Byte[5~8]Power bank SNpowerbankSN0x00 0x00 0x0B 0xCF = SN:3023
0x00 0x9B 0xD2 0x10 = SN:10211856
0xFF 0xFF 0xFF 0xFF = SN:4294967295
Byte[6]Popup statestate0x00:Pop failed 0x01:Pop-up successful 0x02:The mobile power supply is charging abnormally 0x03:Power bank communication abnormality (first return failed) 0x04:The bullet in this hole cannot pop out the mobile power supply normally 0x05:The bullet at this hole location is forcibly released 0x06:The solenoid valve was not returned when returning 0x08:Anti-theft protocol communication failed 0x11:Failed to obtain SN 0x12:The pop-up is completed, the motor is in the home state and the SN can be read 0x13:Failed to obtain traceback information 0x14:Battery lock command failed 0x21:Acquisition of SN failed and motor action failed 0x22:Failed to obtain all information and failed to operate the motor 0x23:Battery lock command failed and motor action failed 0x24:Anti-theft switch detection failed Other values:Unknown error
Byte[7]Solenoid valve statussolenoidValveR&D and debugging, customers do not need to pay attention
Byte[8]Check codeverifyPacket complement check

Example: Report SN pop-up data

A8 00 0C 31 60 00 9B D2 10 01 02 3B

json
A8 ----------------------------------------------- Byte[0] header code
00 09 -------------------------------------------- Byte[1~2] package Length 9
31 ----------------------------------------------- Byte[3] SN popup command
60 ----------------------------------------------- Byte[4] Control Board address
00 9B D2 10 -------------------------------------- Byte[5~8] Power bank SN: 10211856
01 ----------------------------------------------- Byte[6] Pop up state
02 ----------------------------------------------- Byte[7] Electromagnetic valve status
1A ----------------------------------------------- Byte[8] Code verification