The integer data type is low byte before high byte.
2.
For devices with encrypted communication: data is encrypted and decrypted by AES128 ECB, and the key is device ID;
3.
When communicating, if the device communication is not specified, it should be converted to Base64 before wireless communication.
2 Protocol Format
SOP: Fixed to "CG" (0x4347).
LENGTH: Payload content bytes count.
CHECKSUM: The sum of all contents from the frame header to the previous byte of the check digit.
The Payload content can contain items of multiple KEYs. If the device reports data, the KEY can be reported as device ID, device SN, historical data, SIM card number, etc.
When the server receives the command to parse PAYLOAD, it does not need to consider the receiving order in which the content contains each KEY. Parse the content according to the actual received KEY value.