background image

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    VER    Len    CMD    Feedback    para1    para2    checksum    $O

 

$S 

Start byte 0x7E 

Each command feedback begin with $    , that is 

0x7E 

VER 

Version 

Version Information 

Len 

the number of bytes after “Len” 

Checksums are not counted 

CMD 

Commands 

Indicate the specific operations, such as play / 

pause, etc. 

Feedback 

Command feedback 

If need for feedback, 1: feedback, 0: no 

feedback 

para1 

Parameter 1 

Query high data byte 

para2 

Parameter 2 

Query low data byte 

checksum 

Checksum 

Accumulation and verification [not include 

start bit $] 

$O 

End bit 

End bit    0xEF 

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 

Function Description 

Parameters(16 bit)

 

0x01 

Next 

 

0x02 

Previous 

 

0x03 

Specify tracking(NUM) 

0-2999 

0x04 

Increase volume 

 

0x05 

Decrease volume 

 

0x06 

Specify volume 

0-30 

0x07 

Specify EQ(0/1/2/3/4/5) 

Normal/Pop/Rock/Jazz/Classic/Base 

0x08 

Specify playback mode (0/1/2/3) 

Repeat/folder repeat/single repeat/ random 

Summary of Contents for DFPLayer Mini

Page 1: ...ch folder can be assigned to 1000 songs 30 levels volume adjustable 10 levels EQ adjustable 1 3 Application Car navigation voice broadcast Road transport inspectors toll stations voice prompts Railway...

Page 2: ...ker Drive speaker less than 3W 7 GND Ground Power GND 8 SPK1 Speaker Drive speaker less than 3W 9 IO1 Trigger port 1 Short press to play previous long press to decrease volume 10 GND Ground Power GND...

Page 3: ...VER Version Version Information Len the number of bytes after Len Checksums are not counted CMD Commands Indicate the specific operations such as play pause etc Feedback Command feedback If need for...

Page 4: ...urns an error request retransmission 0x41 Reply 0x42 Query the current status 0x43 Query the current volume 0x44 Query the current EQ 0x45 Query the current playback mode 0x46 Query the current softwa...

Page 5: ...xx xx EF 1 The module will enter into pause status automatically after being specified playing if customers need such application they can specify track to play the module will enter into pause statu...

Page 6: ...6 3A 00 00 01 xx xx EF Push in TF card 7E FF 06 3A 00 00 02 xx xx EF Pull out U disk 7E FF 06 3B 00 00 01 xx xx EF Pull out TF card 7E FF 06 3B 00 00 02 xx xx EF 1 For the flexibility of the module we...

Page 7: ...evice U disk 7E FF 06 09 00 00 01 xx xx EF xx xx Verification Specify playback device TF Card 7E FF 06 09 00 00 02 xx xx EF Specify playback device SLEEP 7E FF 06 09 00 00 05 xx xx EF 3 4 4 Specify Fi...

Page 8: ...in strong electromagnetic interference or strong inductive capacitive load of the occasion please refer to our Notes 1 Refer diagram Figure 3 3 ad key refer 2 20 function keys allocation table Key Sh...

Page 9: ...tracking 9 Long push always to repeat play K16 10 Repeat play tracking 10 Long push always to repeat play K17 11 Repeat play tracking 11 Long push always to repeat play K18 12 Repeat play tracking 12...

Page 10: ...er Mini Figure 4 2 Serial Connect 5v 4 2 Other Refer Diagram Figure 4 3 headset connect module Between the headset and the module can string a 100R resistor make a limiting Figure 4 4 speaker connect...

Page 11: ...DFPLayer Mini Figure 4 5 Ad key connect refer 5 MP3 TF 16P Size unit mm Figure 5 1 pcb size...

Page 12: ...O using opt coupler isolation increasing TVS etc 2 ADKEY key values are in accordance with the general use of the environment if the strong inductive or capacitive load environment please note that th...

Reviews: