DFRobot DFPLayer Mini Руководство - Страница 3
Просмотреть онлайн или скачать pdf Руководство для Блок управления DFRobot DFPLayer Mini. DFRobot DFPLayer Mini 13 страниц.
DFPLayer Mini
3. Serial Communication Protocol
Serial port as a common communication in the industrial control field, we conducted an industrial level of
optimization, adding frame checksum, retransmission, error handling, and other measures to significantly
strengthen the stability and reliability of communication, and can expansion more powerful RS485 for
networking functions on this basis, serial communication baud rate can set as your own, the default baud
rate is 9600
3.1. Serial Communication Format
Support for asynchronous serial communication mode via PC serial sending commands
Communication Standard:9600 bps
Data bits :1
Checkout :none
Flow Control :none
Format:$S
$S
VER
Len
CMD
Feedback
para1
para2
checksum
$O
For example, if we specify play NORFLASH, you need to send: 7E FF 06 09 00 00 04 FF DD EF
Data length is 6, which are 6 bytes [FF 06 09 00 00 04]. Not counting the start, end, and verification.
3.2 .Serial Communication Commands
1).Directly send commands, no parameters returned
CMD
0x01
0x02
0x03
0x04
0x05
0x06
0x07
0x08
VER
Len
CMD
Start byte 0x7E
Version
the number of bytes after "Len"
Commands
Command feedback
Parameter 1
Parameter 2
Checksum
End bit
Function Description
Next
Previous
Specify tracking(NUM)
Increase volume
Decrease volume
Specify volume
Specify EQ(0/1/2/3/4/5)
Specify playback mode (0/1/2/3)
Feedback
para1
para2
Each command feedback begin with $
Checksums are not counted
Indicate the specific operations, such as play /
If need for feedback, 1: feedback, 0: no
Accumulation and verification [not include
Normal/Pop/Rock/Jazz/Classic/Base
Repeat/folder repeat/single repeat/ random
checksum
$O
0x7E
Version Information
pause, etc.
feedback
Query high data byte
Query low data byte
start bit $]
End bit
0xEF
Parameters(16 bit)
0-2999
0-30
, that is