Skip to main content

Frame format and command map

This is the public integration contract for CoreCharge shared power bank cabinet protocol v1.51 (2025-07-30). It publishes the command grammar and field semantics required to implement a compatible device client or server. Values in examples are synthetic; request production connectivity credentials through an authorized integration channel.

Wire grammar

{COMMAND,field1,field2,...,fieldN,CRC}
RuleRequirement
EncodingASCII
DelimiterEnglish comma ,
Start / endLiteral { and }
Command caseUppercase ASCII
Field orderPositional and command-specific
CRCFour uppercase hexadecimal characters
SecretUsed only as CRC input; never transmitted as a frame field

Do not trim internal whitespace, change case, reorder fields, or convert empty fields to NULL unless that command explicitly allows it. Parse the frame boundary before splitting fields.

Shared identifiers

FieldRequirement
Message IDMonotonically increasing. A Unix timestamp is recommended. Some device commands discard IDs less than or equal to the last accepted ID; reconnect resets the device-side comparison window.
Device IDAt most 20 bytes.
Order IDGenerated by the server; at most 32 characters. Reuse the same order ID for an idempotent retry.
Power bank IDUse at most 15 characters for the cross-firmware baseline. NI on some profiles accepts 16; confirm the device profile before using 16.
Slot IDOne-based. Valid maximum depends on cabinet topology; 0 has command-specific all/automatic semantics.

Complete command map

CommandPrimary directionPurposeDetail
CNDevice -> serverIdentity and online presenceIdentity and inventory
CSServer -> deviceNetwork and station configurationIdentity and inventory
GNServer -> deviceNetwork status queryIdentity and inventory
DSDevice -> serverStation configuration reportIdentity and inventory
ACDevice -> serverAll-slot inventory reportIdentity and inventory
CQBothSingle-slot report or slot queryIdentity and inventory
AEDevice -> serverExtended slot and battery healthIdentity and inventory
CMBothRental/return rule configurationIdentity and inventory
CCServer -> deviceAvailable-to-rent countIdentity and inventory
BWServer -> devicePrepare a normal/selected rentalRental and return
KWServer -> devicePrepare a fast-charge rentalRental and return
FBServer -> deviceRelease a selected/prepared power bankRental and return
BRServer -> deviceAcknowledge rental preparation/releaseRental and return
RSDevice -> serverSuccessful/offline return reportRental and return
FRDevice -> serverAbnormal return reportRental and return
FAServer -> deviceMaintenance eject without dischargeDevice management
FLServer -> deviceEnable/disable slotsDevice management
OTServer -> deviceFirmware upgrade controlDevice management
SQServer -> deviceStacked sub-board queryDevice management
NIServer -> deviceRewrite a power bank IDDevice management
KUDevice -> serverPhysical key eventDevice management

Implementation downloads

The JSON catalog is the fastest way to import command names, directions, field order and result enums into a test harness. The narrative pages remain authoritative for firmware notes and workflow requirements.