
www.flyrontech.com
E-mail: [email protected]
Flyron Technology Co., Ltd.
FN-BC04 MP3 Sound Module with 10W Amplifier
12
SD card is plugged in
7E FF 06 3A 00 00 02 xx xx EF
USB cable connected to PC is plugged in
7E FF 06 3A 00 00 04 xx xx EF
SD card is pulled out
7E FF 06 3B 00 00 02 xx xx EF
USB cable connected to PC is pulled out
7E FF 06 3B 00 00 04 xx xx EF
0x3A represents a device is plugged in while 0x3B represents a device is pull out. 0x02, 0x04 represent SD card and USB cable
connected to PC respectively.
4.6. Detailed Annotation of Control Commands
4.6.1. Specify playback of a track (in the root directory of the storage device)
The available selectable tracks are from 1
st
to 3000
th
in the root directory of the storage device. Actually it can support more, but if
we make it support more, the operation speed will become slow. Usually most of applications do not need to support much more
files. Normally if the total track quantity is less than 1,000 in the storage device the response speed of the module is quicker than
50ms. If the total track quantity is more than 1000 the response speed is a little slower than 100ms.
1) For example, if set the first track to be played, send the command 7E FF 06 03 00 00 01 FE F7 EF
7E -- - Start byte
FF -- - Version Information
06 --- Number of bytes
03 --- Actual command (specify playback of a track)
00 --- 0 x01 : need feedback ; 0 x00 : no need feedback
00 --- Most significant byte of the track (MSB of Parameter)
01 --- Least significant byte of the track (LSB of Parameter) FE --- Most significant byte of checksum
(MSB of checksum) F7 - -- Least significant byte of checksum (LSB of checksum ) EF --- End byte
0xEF
2) Regarding track selection, if the 100
th
song (track) is selected to be played, firstly convert 100 to
hexadecimal. It is double-byte by default, i.e. 0 x006 4. MS B=0 x00 ; LS B=0 x64
4.6.2. Specify volume
1) Our system power-on default volume is level 30, if you want to set the volume, then directly send the
corresponding command.
2) For example, if specify the volume to level 15, send the command 7E FF 06 06 00 00 0F FF D5 EF.
3) MSB=0x00; LSB=0x0F, 15 is converted to hexadecimal 0x000F.
4.6.3. Specify single repeat playback (in the root directory of the storage device)
Repeatedly play 1
st
track
7E FF 06 08 00 00 01 xx xx EF
Repeatedly play 2
nd
track
7E FF 06 08 00 00 02 xx xx EF