DFRobot DFPLayer Mini Manuel - Page 6
Parcourez en ligne ou téléchargez le pdf Manuel pour {nom_de_la_catégorie} DFRobot DFPLayer Mini. DFRobot DFPLayer Mini 13 pages.
DFPLayer Mini
FLASH finish play the 1
1). in order to strengthen the stability of the data communication, we have increased response processing;
ACKB byte is set whether need to reply to response. So that to ensure each communication get handshake
signals, which will indicate the module has been successfully received data sent by the MCU and process
immediately.
2).For general applications, customers can freely choose, without this response processing is also ok.
3.3.4 .Returned Data of Module Error
Module is busy
A frame data are not all received
Verification error
1). In order to strengthen the stability of the data communication, we added data error handling
mechanism. Module will responds information after receiving error data format;
2). In the case of relatively harsh environment, it is strongly recommended that customers process this
command. If the application environment in general, you no need handle it;
3).The module returns busy, basically when module power-on initialization will return, because the
modules need to initialize the file system.
3.3.5. Push-in and Pull-out information of Device
Push in U-disk
Push in TF card
Pull out U-disk
Pull out TF card
1).For the flexibility of the module, we particularly add command feedback of push-in and pull-out device.
Let user know the working status of the module.
2).When push-in device, we default playback the first track of device root directory as audition, if users
do not need this feature, you can wait 100ms after receiving the message of push –in serial device ,and
then send pause command.
3.4 Serial Commands
3.4.1. Commands of Specify Track Play
Our instructions are given in support of the specified track is playing, the song selection ranges from 0 to 2999.
Actually can support more, because it involves the reasons to the file system, support for the song too much, it
will cause the system to operate slowly, and usually the application does not need to support so many files. If
the customer has unconventional applications, please communicate with us in advance.
1).For example, select the first song played, serial transmission section: 7E FF 06 03 00 00 01 FF E6 EF
7E --- START command
FF --- Version Information
06 --- Data length (not including parity)
03 --- Representative No.
00 --- If need to acknowledge [0x01: need answering, 0x00: do not need to return the response]
00 --- Tracks high byte [DH]
01 --- Tracks low byte [DL], represented here is the first song played
FF --- Checksum high byte
E6 --- Checksum low byte
EF --- End Command
st
track
7E FF 06 3A 00 00 01 xx xx EF
7E FF 06 3A 00 00 02 xx xx EF
7E FF 06 3B 00 00 01 xx xx EF
7E FF 06 3B 00 00 02 xx xx EF
7E FF 06 3E 00 00 01 xx xx EF
7E FF 06 40 00 00 00 xx xx EF
7E FF 06 40 00 00 01 xx xx EF
7E FF 06 40 00 00 02 xx xx EF