User's Manual
4
04 FC
xx
xx
xx
xx……xx
Start character: all command frames must start with "01 FC", and all response frames start with
"04 FC".
Command ID: The IDs of commands with different functions are unique. The following is an
enumeration and detailed explanation of all commands.
Command length: The input frame length is the number of bytes of the input frame command
parameters, and the response frame length is the sum of the execution status and the length of
the response data.
Command parameter: The command parameter of the command frame is the parameter of the
command execution.
Execution status: The execution status is the content contained in the response frame, 1 byte,
immediately after the length of the response frame, 00 means the command was successfully
received, and other non-zero means the reception/processing failed.
Response data: The response data is the data carried in the response frame. For details, see the
detailed explanation of the serial port command frame below.
Data unit: Each independent data unit with no less than 2 bytes in the instruction should be
transmitted in low-endian order, for example: The transmission order of 1000 (0x03E8) is E8 03.
2.2 Detailed instructions
ID
Command
function
Description
Drop
Electricity
Protect
Save
01
Set
Bluetooth
MAC
address
Format: 01 FC 01 06 MAC
MAC: 6-byte unsigned integer, MAC address.
Note: You need to restart the device to take effect.
Return: 04 FC 01 01 status
YES
02
Query
Bluetooth
MAC
address
Format: 01 FC 02 00
Returns: 04 FC 02 len status [MAC]
MAC: The mac address of the device.
/
03
Set device
name
Format: 01 FC 03 len Name
len: 1-byte unsigned integer, the number of bytes in the device name, range [1-20];
YES