Lierda Science & Technology Group Co. Ltd LSD1BTNBLE0000 사용자 설명서
Message length: message length refers to the number of bytes of message content, excluding prefix,
command ID and message length itself.
Information content: the information content of input command is some input parameters of the
command execution, while the information content of output response is the result of command execution,
which is described in details below.
5.11 Serial command overview
Table 5-2 is detailed specification of output response frame.
Table 5-2 Output response frame format specification
No.
Command ID
Specification
1
01
Correct command, without additional data, return 04 FC 01 00
2
XX
Correct command, with additional data, return 04 FC xx (corresponding to
command ID) xx (message length) xx...(message content)
3
02
Command error, return 04 FC 02 00
The Bluetooth 4.2 protocol specifies that the pairing password is of 6 digits.
Table 5-3 refers to the detailed description of input command frame.
Table 5-3 Input command frame explanation
Power-
down
Saving
Com
mand
ID
Command
Description
Default
Command Format
Return Value
Yes
01
Set baud
rate
115200
01 FC 01 04 XX XX XX XX (uint32,
low endian)
The baud rate unit is bps. The range is
230400~1200. It is transmitted in low
byte rate, for example, for baud rate
115200, the hexadecimal is
0x0001C200, which shall be written as
00 C2 01 00
04 FC 01 00 Correct setup
04 FC 02 00 Setup error
/
02
Query baud
rate
/
01 FC 02 00
04 FC 02 04 XX XX XX XX
(uint32, low endian, the same as
ID:01)
04 FC 02 00 false command
Yes
03
Set
connection
0x0028
10ms
01 FC 03 02 XX XX (uint16, low
endian)
04 FC 01 00 Correct setup
04 FC 02 00 Setup error