YX5100 MP3 Function Module
1 Overview
1.1 Introduction
YX5100 is a provider of serial voice module, the perfect integration of hardware decoding MP3, WAV's.
At the same time soft
Member support industrial grade serial communication protocol to SPI FLASH as storage media, reducing costs while
Also increases the stability of the product.
Through simple serial command to complete the specified voice playback, as well as
It playback functions such as voice, without tedious low-level, easy to use, is the most reliable for this product
Great features.
In addition, this module also the depth of customized products in the 5-45V voltage range, integrated super
Wide voltage conversion circuit and Class D amplifier, external speaker 3W direct playback, your voice loud, suitable for continuous playback.
Module supports 10 simultaneous voice segment specified trigger playback.
1.2 Function
support sample rates (KHz): 8 / 11.025 / 12/16 / 22.05 / 24/32 / 44.1 / 48
24 位DAC 输出,动态范围支持90dB,信噪比支持85dB
24-bit DAC output, support for dynamic range 90dB, 85dB SNR support
最大支持16M 字节的SPIFLASH。
maximum support 16M bytes SPIFLASH.
例如W25Q16[2M 字节]、W25Q128[16M 字节] GD25Q32[4M
For example W25Q16 [2M bytes], W25Q128 [16M bytes] GD25Q32 [4M
字节] 1Byte=8Bit
Byte] 1Byte = 8Bit
多种控制模式,串口模式、按键一对一控制模式、可设多种模式
variety of control, serial port, one-button control mode, you can set a variety of modes
Microusb 接口更新语音文件,无需安装任何软件。
Microusb voice interface to update files without having to install any software.
支持XP 和WIN7 系统。
Support XP and WIN7 system.
支持组合播放功能,可以实现报时、报温度,在一定程度上可以替代昂贵的TTS 方案
support combination playback, you can achieve timekeeping, reported temperature, to a certain extent, can replace expensive TTS program
30 级音量可调,5 级EQ 可调(串口模式下)
30 level volume is adjustable, Level 5 EQ adjustable (serial interface mode)
自带3W D类功放,直接外接喇叭即可完成放音
comes 3W Class D amplifier, external speakers directly to complete playback
支持10 段语音的触发播放,IO 检测的方式,所以适合碳膜按键等等场合
10 of support voice trigger playback, IO detection mode, it is suitable carbon buttons and so on occasion
内置宽电压DC-DC转换电路,支持5-45V直流电压输入。
built-in wide voltage DC-DC converter circuit, supports 5-45V DC voltage input.
1.3 应用
1.3 Applications
1、 车载导航语音播报
1, car navigation voice broadcast
2、 公路运输稽查、收费站语音提示;
2, road transport inspectors, toll voice prompts;
3、 火车站、汽车站安全检查语音提示;
3, train station, bus station security check voice prompts;
4、 电力、通信、金融营业厅语音提示;
4, electricity, communications, finance business hall voice prompts;
5、 车辆进、出通道验证语音提示;
5, the vehicle into and out of the channel to verify the voice prompts;
6、 公安边防检查通道语音提示;
6, the public security frontier inspection channel voice prompts;
7、 多路语音告警或设备操作引导语音;
7, multi-channel voice alarm or voice guidance equipment operation;
8、 电动观光车安全行驶语音告示;
8, electric sightseeing bus safety with voice announcement;
9、 机电设备故障自动报警;
9, electrical and mechanical equipment failure automatic alarm;
10、消防语音报警提示;
10, fire alarm voice prompts;
11、自动广播设备,定时播报
11, automatic broadcast equipment, broadcast regularly
2 芯片功能框架说明
2 chip functional framework described
名称
name
参数
parameter
MP3文件格式
MP3 file format
支持所有比特率11172-3和ISO13813-3 layer3音频解码
It supports all bit rates 11172-3 and ISO13813-3 layer3 audio decoding
采样率支持(KHZ):8/11.025/12/16/MP3文件格式
Sample rate support (KHZ): 8 / 11.025 / 12/16 / MP3 file format
22.05/24/32/44.1/48
22.05 / 24/32 / 44.1 / 48
支持Normal、Jazz、Classic、Pop、Rock 等音效
Support Normal, Jazz, Classic, Pop, Rock, etc. Sound
USB 接口
USB Interface
2.0标准
2.0
UART 接口
UART interface
标准串口RS232,3.3V TTL 电平,波特率9600
Standard serial RS232,3.3V TTL level, baud rate 9600
输入电压
Input voltage
5-45VDC
5-45VDC
输入电流
Input Current
Max:1A @ 5VDC
Max: 1A @ 5VDC
音频功放输出功率3W @ 4Ω
Audio amplifier output power 3W @ 4Ω
模块尺寸
Module Size
30mm(宽) 36mm(长) 15mm(高)
30mm (width) 36mm (length) 15mm (high)
工作温度
Operating temperature
-40度-- 85度
-40 Degrees - 85 degrees
湿度
humidity
5% — 95%
5% - 95%
注:A. 5V电源供电时可以通过电源端口2输入。
Note:. A second input port via a 5V power supply.
如果输入电压波动将会对内部电路造成不
If the input voltage fluctuations will not cause the internal circuit
可逆的损伤。
Irreversible damage.
B.
B.
通过电源端口3输入供电时,电源端口2可以输出5V电压,负载电流不大于200mA。
Through the power supply input port 3, port 2 can output 5V power supply voltage, load current is less than 200mA.
C. PCB颜色有多种。
C. PCB has a variety of colors.
通常随机发货,如需要指定颜色需要单独预订。
Typically random delivery, such as the need to specify the color need to book separately.
CDROM AutoRun
CDROM AutoRun
MCU+aDSP
MCU + aDSP
SPI Flash
SPI Flash
电源输入端口
Power input port
1:GND
1: GND
2:5V(4.5‐5.5V)
2: 5V (4.5-5.5V)
3:Vin(5.5‐45V)
3: Vin (5.5-45V)
1
1
2
2
3
3
功放输出端口
Amplifier output port
喇叭阻抗4‐16 欧
Speaker impedance 4-16 Europe
USB 接口
USB Interface
按键端口
Key ports
UART 端口
UART port
a:Busy(播放时
a: Busy (when playing
低电平)
LOW)
b:GND
b: GND
c:TX
c: TX
d:RX
d: RX
b
b
a
a
c
c
d
d
3 串口通讯协议
3 serial communication protocol
串口作为一种在控制领域常用的通信,我们进行了工业级别的优化,加入的帧的校验、重发、
As a common serial communication control, we carried out the industrial level of optimization, join checksum frame, retransmission,
错误处理等措施,大大加强通信的稳定性和可靠性,同时可以在此基础上扩展更加强大的
Error handling and other measures, greatly enhance the stability and reliability of communication, and can expand more powerful on this basis
RS485进行组网功能,串口的通信波特率可自行设置,默认为9600
RS485 for networking functionality, serial communication baud rate can set your own default is 9600
3.1 通讯格式
3.1 Communication Format
支持异步串口通讯模式,通过串口接受上位机发送的命令
It supports asynchronous serial communication mode, accept commands through the serial port of the host computer to send
通讯标准:9600 bps
Communication Standard: 9600 bps
数据位:1
Data bits: 1
校验位:none
Parity bit: none
流控制:none
Flow control: none
示例
Example
示例:
Example:
如果我们指定播放SPIFLASH,就需要发送:7E FF 06 09 00 00 04 FF dd EF数据
If we specify the playback SPIFLASH, you need to send: 7E FF 06 09 00 00 04 FF dd EF Data
长度为6 ,这6 个字节分别是[FF 06 09 00 00 04] 。
A length of 6, six bytes are [FF 06 09 00 00 04].
不计算起始、结束、和校
Not counting the start and end, and school
验。
Experience.
然后对得到的结果进行累加,再用0 减,即“0-checksum=校验数据”。
Then the results obtained are accumulated, then subtract 0, namely "0-checksum = checksum data."
另
another
外用户也可以直接忽视校验,参考我们的5.3.4 章节说明。
Users can also directly ignore external calibration, refer to our section 5.3.4 Description.
3.2
3.2
通讯指令
Communication Instruction
3.2.1 直接发送的指令,不需要返回参数
3.2.1 instructions sent directly, without return parameters
CMD命令
CMD command
对应功能
Corresponding function
参数
parameter
0x01
0x01
下一曲
next track
0x02
0x02
上一曲
previous piece
0x03
0x03
指定曲目(Number)
Specify the track (Number)
1-255
1-255
0x04
0x04
音量+
Volume +
0x05
0x05
音量-
volume-
0x06
0x06
指定音量
Specifies the volume
0-30
0-30
0x07
0x07
指定EQ
Specifies EQ
1-5
Fifteen
0x08
0x08
单曲循环播放
Single Loop
1-255
1-255
0x09
0x09
播放Flash内容
Play Flash content
格式:$S VER Len CMD Feedback para1 para2 checksum $O
Format: $ S VER Len CMD Feedback para1 para2 checksum $ O
$S
$ S
起始位0x7E
Start bit 0x7E
每条命令反馈均以$开头,即0x7E
Each command $ feedback are beginning, that is, 0x7E
VER
VER
版本
version
版本信息
Version Information
Len
Len
Len后字节个数
Len The number of bytes after
校验和不计在内
Checksums are not counted
CMD
CMD
命令字
Command word
表示具体的操作
Showing a specific operation
Feedback 命令反馈
Feedback command feedback
是否需要反馈信息,1反馈,0不反馈
Need feedback, a feedback, not feedback 0
para n
para n
参数
parameter
和前面的len 相关联,不限制长度
And associated front len, does not limit the length
checksum 校验和[占两个字节] 校验和[占两个字节]
checksum checksum [two bytes] Checksum [two bytes]
$O
$ O
结束位
End bit
结束位0xEF
End bit 0xEF
播放指示灯
Play LED
0x0A
0x0A
进入睡眠模式
Into sleep mode
0x0B
0x0B
保留
Retention
0x0C
0x0C
模块复位
Reset module
0x0D
0x0D
播放
Broadcast
0x0E
0x0E
暂停
time out
0x16
0x16
停止
stop
0x11
0x11
循环播放
Loop
1循环播放,0停止循环
1 loop, stop the loop 0
0x21
0x21
组合播放
Play combinations
0x22
0x22
带音量参数播放指定曲目
Specify the track to play with volume parameter
0x30
0x30
指定文件夹的文件播放
File playback specified folder
3.2.2 查询系统的参数
3.2.2 System parameter query
CMD命令
CMD command
对应功能
Corresponding function
参数
parameter
0x3C
0x3C
STAY
STAY
0x3D
0x3D
STAY
STAY
0x3E
0x3E
STAY
STAY
0x3F
0x3F
发送初始化参数
Send initialization parameters
0x1F(
0x1F (
低5位每位代表一个文件夹
Low 5 each represents a folder
)
)
0x40
0x40
返回错误,请求重发
Returns an error, the retransmission request
0x41
0x41
应答
answer
0x42
0x42
查询当前状态
Query the current status
0x43
0x43
查询当前音量
Query current volume
0x44
0x44
查询当前EQ
Query the current EQ
保留
Retention
0x45
0x45
查询单前播放模式
Discover single mode before playing
保留
Retention
0x46
0x46
查询单前软件版本
Discover former single software version
保留
Retention
0x49
0x49
查询Flash内文件总数
The total number of queries in the Flash file
包含5个文件夹内文件总数
5 Total number of file folders containing files
0x4D
0x4D
查询当前曲目
Discover the current track
返回文件夹和曲目指针值
Back folders and tracks pointer values
0x60
0x60
查询当前文件夹
Discover the current folder
0x61
0x61
查询单前文件夹指针
Discover former single folder pointer
0x62
0x62
查询指定文件夹文件总数
Discover total number of files in the specified folder
3.3 模块返回数据
3.3 module returns data
模块在关键地方均会有数据返回。
Modules will return data in key areas.
供用户掌控模块的工作状态
For the user to control the working status of the module
a) 模块上电初始化成功的数据
a) on the power module initialization successful data
b) 模块播放完当前曲目的数据
b) module finished playing the current track data
c) 模块成功接收到指令返回的ACK(应答)
c) module successfully received instructions to return the ACK (acknowledge)
d) 模块接收一帧数据出错[包括数据没收完整、校验出错两种情况]
d) module receives a data error [including confiscation of complete data, verify error in both cases]
e)
e)
模块在繁忙时,有数据过来,模块会返回忙的指令
When the module is busy, the data over, the module will return busy instruction
3.3.1 模块上电返回数据
Returns data on the electrical module 3.3.1
a) 模块上电,需要一定的时间初始化,这个时间是需要根据SPIFLASH 设备的文件多少决
a) On power-up, take some time to initialize, this time is determined based on how much the device file SPIFLASH
定的,一般情况在小于500ms 这个时间。
Given, in general, this time in less than 500ms.
如果超过这个时间模块的初始化数据还没有发
If you exceed this time module initialization data has not been made
送出来,说明模块初始化出错,请检查硬件的连接
Get out, indicating that the module initialization error, please check the hardware connection
b) 模块初始化返回的数据为当前的有效文件夹,譬如返回7E FF 06 3F 00 00 03 xx xx EF==>
b) the return module initialization data for the current valid folder, such as return 7E FF 06 3F 00 00 03 xx xx EF ==>
其中0x03 代表的是FOLDER1 和FOLDER2 这两个区域有有效语音文件如果是0x07 代表
Where 0x03 represents FOLDER1 and FOLDER2 two regions have effective voice on behalf of the file if it is 0x07
的是FOLDER1 和FOLDER2、FOLDER3 都有语音文件实际上,5 个文件夹均占据一个字节
Is FOLDER1 and FOLDER2, FOLDER3 voice file is actually there, five folders are occupying a byte
的一位。
One.
FOLDER 占据最低位
FOLDER occupy the lowest position
c)
c)
MCU 必须等待模块初始化指令发出之后才能发送相应的控制指令,否则发送的指令模块
MCU must wait until after the module initialization command is issued to send the corresponding control instruction or instruction sending module
将不予处理。
Will not be processed.
同时还会影响模块的正常初始化。
But it will also affect the normal initialization module.
3.3.2 模块曲目播放完毕返回数据
3.3.2 Module track finishes playing return data
a) 争对很多的触发型的播放需求,模块更正为播放一曲之后自动进入停止状态。
a) the need for a lot of contention to play triggered, the module automatically corrected to after playing the song comes to a halt.
如果用户
If the user
需要此类应用。
In need of such applications.
只需要指定曲目播放即可。
Only you need to specify the tracks to play.
这样,曲目播放完毕会自动停止,等待指令
Thus, the track finished playing will automatically stop, waiting for instructions
b) Busy引脚作为解码和暂停的状态指示。
b) Busy pin as decoding and suspended status indication.
请参见第5 脚,播放状态输出低电平[很多功放
See 5 feet, playing status output low [lot Amplifier
有静音脚,可以通过此IO 直接进行控制]、播放暂停状态,输出高电平。
Mute feet, can be directly controlled by the IO], the playback pause status, the output high.
模块睡眠状态。
Module sleep.
也是低电平。
Also low.
模块通电之后,初始化正常,模块会自动进入设备播放状态。
After the module is powered up, the normal initialization, the module will automatically enter the state of play equipment.
并且停止
And stops
解码,等待用户发送播放的相关指令
Decoding, waiting for the user to play send relevant instructions
c)
c)
另外用户在指定设备之后,需要等待200ms 的时间,再发送指定的曲目,因为一旦指定
Also after the user specified device, wait 200ms of time, and then sends the specified track, because once designated
曲目之后,系统会对指定的设备进行文件系统的初始化,如果立刻发送指定的曲目命令,
After the track, the system will initialize the specified device file system, if you send a command immediately designated track,
会导致模块接收不到。
It will cause the module not receiving.
d)
d)
示例
Example
播放完第一曲7E FF 06 3E 00 01 01 xx xx EF(Folder1的第一曲播放完毕)
After playing the first song 7E FF 06 3E 00 01 01 xx xx EF (Folder1 first song finishes playing)
播放网第二曲7E FF 06 3E 00 02 02 xx xx EF(Folder2的第二曲播放完毕)
Network play second song 7E FF 06 3E 00 02 02 xx xx EF (Folder2 second song finished playing)
3.3.3 模块应答数据
3.3.3 Module response data
a)
a)
为了加强数据通信之间的稳定性,我们增加了应答处理,ACKB 字节就是设置是否需要
In order to strengthen the stability of data communication between, we have increased the response processing, ACKB byte is set if needed
回复应答。
Echo Reply.
这样做的好处是保证每次通信都有握手信号,收到应答就表示MCU 发送的数
Benefits of doing so is to ensure that each communication has handshaking signals received responses sent to represent the number of MCU
据,模块已经成功收到,马上处理。
According to the module has been successfully received and processed immediately.
b)
b)
对于一般的应用,客户可以自由选择,不加这个应答处理也是可以的
For general applications, customers can freely choose, without this reply processing is also possible
3.3.4 模块错误返回数据
3.3.4 Module error return data
a) 为了加强数据通信之间的稳定性,我们增加了数据错误处理机制。
a) In order to strengthen the stability of data communication between, we have added a data error handling mechanism.
模块收到不符合格式
Module receives not conform to the format
的数据,均会有信息反馈出来
Data, information feedback are out there
b) 在环境比较恶劣的情况下,强烈建议客户处理此命令。
b) In the case of relatively harsh environment, customers are strongly advised to process this command.
如果应用环境一般,可以不用处
If the application environment in general, you can not place
理。
Management.
(3)、模块返回忙,基本上是模块上电初始化的时候才会返回,因为模块需要初始
(3), the module returns busy, basically on the power module initialization time will return, because the module requires an initial
化文件系统
Filesystem
c) 模块上电之后,进入的是设备状态,设备是SPIFLASH。
c) After the power module into the device status, device is SPIFLASH.
如果SPIFLASH 不在线的话,会
If SPIFLASH not online, then, will
自动进入睡眠状态。
Automatically goes to sleep.
d) 只要参考我们给出的测试SDK 程序,移植里面的串口操作部分,就不会出现校验出错,
d) As long as we give the reference test SDK program, which transplant serial operation section, it will not cause an error message,
在这里强烈建议用户使用我们给出的校验方式。
Here we strongly recommend that users give the check mode.
因为谁都不能保证数据的传输不会出错。
Because no one can guarantee transmission of data without errors.
e)
e)
文件指定部分出错,请参考下面的详解
File specifies the wrong section, please refer to the following Detailed
f)
f)
返回数据示例
Back Data Example
返回忙
Back busy
7E FF 06 40 00 00 01 xx xx EF
7E FF 06 40 00 00 01 xx xx EF
模块在文件系统初始化时
Module when the file system initialization
当前处于睡眠模式7E FF 06 40 00 00 02 xx xx EF
The current in sleep mode 7E FF 06 40 00 00 02 xx xx EF
睡眠模式只支持指定设备
Sleep mode is only supported by the specified device
串口接收错误
Serial reception error
7E FF 06 40 00 00 03 xx xx EF
7E FF 06 40 00 00 03 xx xx EF
串口一帧数据没接收完毕校
Serial data does not receive a completed school
校验出错
Error checking
7E FF 06 40 00 00 04 xx xx EF
7E FF 06 40 00 00 04 xx xx EF
和校验出错
And parity error
指定文件超范围
Beyond the scope of the specified file
7E FF 06 40 00 00 05 xx xx EF
7E FF 06 40 00 00 05 xx xx EF
文件的指定超过设定的范围
Specify the file exceeds the specified range
未找到指定的文件7E FF 06 40 00 00 06 xx xx EF
Not find the specified file 7E FF 06 40 00 00 06 xx xx EF
指定为文件没有被找到
Specified as the file is not found
数据不符合规则
Data does not conform to the rules
7E FF 06 40 00 00 08 xx xx EF
7E FF 06 40 00 00 08 xx xx EF
如最小为1的地方,发送为0
Such as minimum local 1, the transmission is zero
3.4 串口指令详解
Detailed instructions 3.4 serial
以下我们对关键的地方进行详细的说明:
The following key areas we described in detail:
指定曲目播放
designated track play
指定播放的音量
specify the playback volume
指定播放的设备
specify the playback device
全部循环播放指令
All loop instructions
组合播放功能[亮点]
combination playback [Highlights]
带音量参数的指定曲目播放
Specifies the track plays with volume parameters
3.4.1 指定曲目播放指令
3.4.1 Specify the track play command
a) 我们给出的指令是支持指定曲目播放的,歌曲的选择范围为0255.其实是可以支持更多
a) is the support we give instructions for the track played, the choice of songs for 0255. In fact, can support more
的,因为涉及到文件管理的原因,支持过多的歌曲,会导致系统操作缓慢,一般的应用
Because of reasons related to document management, support songs too, will lead to slow system operation, the general application
也不需要支持这么多的文件。
You do not need to support so many files.
如果客户有非常规的应用,请事前和我们沟通。
If the customer has unconventional application, please communicate with us in advance.
b) 例如选择第一首歌播放,串口的发送部分7E FF 06 03 00 00 01 FF E6 EF
b) for example, select the first song to play, sending part serial 7E FF 06 03 00 00 01 FF E6 EF
7E --- 起始命令
7E --- starting command
FF --- 版本信息
FF --- Version Information
06 --- 数据长度(不包含校验)
06 --- data length (excluding the checksum)
03 --- 代表产品编号
03 --- represents the product ID
00 --- 是否需要应答[0x01:需要应答,0x00:不需要返回应答]
00 --- need to answer [0x01: need to answer, 0x00: do not need to return the response]
00 --- 曲目的高字节[DH]
High byte 00 --- track [DH]
01 --- 曲目的低字节[DL],这里代表的是第一首歌播放
01 low byte --- track [DL], represented here is the first song to play
FF --- 校验的高字节
High byte FF --- check
E6 --- 校验的低字节
E6 --- low byte checksum
EF --- 结束命令
EF --- End command
c) 对于选曲,如果选择第100 首,首先将100 转化为16 进制,默认为双字节,就为0x0064。
c) For selections, if you select the first 100, first 100 converted to hexadecimal format, the default is double-byte, it is 0x0064.
DH = 0x00 ; DL = 0x64
DH = 0x00; DL = 0x64
d)
d)
其它的操作依次类推即可,因为在嵌入式领域采用16 进制是最为方便的一种操作。
Other operations and so can, because in the embedded field in hexadecimal is the most convenient method of operating.
3.4.2 指定音量播放指令
3.4.2 specify the volume play command
a) 我们系统上电默认的音量为30 级,如果要设置音量的话,直接发送相应的指令即可
a) on our power system default volume is 30, if you want to set the volume, then sent directly to the appropriate instruction
b) 例如指定音量为15 级,串口发送的指令:7E FF 06 06 00 00 0F FF D5 EF
b) such as specifying the volume to 15, the serial port to send commands: 7E FF 06 06 00 00 0F FF D5 EF
c)
c)
DH = 0x00 ; DL = 0x0F ,15 转化为16 进制为0x000F。
DH = 0x00; DL = 0x0F, 15 was converted to hexadecimal 0x000F.
可以参照播放曲目部分的说明
You can play the tracks part is explained with reference to
3.4.3 全部循环播放指令
3.4.3 All loop instructions
a) 争对一些需要循环播放根目录下面曲目的要求,我们加多这一条控制指令0x11。
a) dispute the need for some looping tracks the root directory of the requirements, which we want to add a control command 0x11.
b) 在循环播放的过程中,可以正常的操作播放/暂停,上一曲、下一曲、音量调节,包括
b) During loop playback, normal operation can play / pause, previous song, next song, volume control, including
EQ 等等
EQ, etc.
c)
c)
循环播放开始之后,模块会不停的播放设备里面的曲目,按照存储的物理顺序。
After the loop start, the module will stop playback device inside the track, according to the physical order of storage.
播完一
End broadcast
遍之后会继续再播放一边,直到接收到播放完成,或者暂停等等指令
We will continue to play again after over one side, until receiving has finished playing, or pause command and so on
d)
d)
示例
Example
循环播放开始
Loop Start
7E FF 06 11 00 00 01 xx xx EF
7E FF 06 11 00 00 01 xx xx EF
循环播放所有曲目
Loop All Tracks
循环播放停止
Loop Stop
7E FF 06 11 00 00 00 xx xx EF
7E FF 06 11 00 00 00 xx xx EF
停止循环播放曲目
Stop looping tracks
3.4.4 单曲循环播放指令
3.4.4 Single Loop instruction
a) 争对一些需要单曲循环播放的要求,我们改进这一条控制指令0x08。
a) dispute the need for some single loop requirements, we have improved it a control command 0x08.
按照的是存储的物
In accordance with the stored material
理顺序指定,这点请用户注意。
Li order specified, the user's attention to this point.
b)
b)
在循环播放的过程中,可以正常的操作播放/暂停,上一曲、下一曲、音量调节,包括
During loop playback, normal operation can play / pause, previous song, next song, volume control, including
EQ 等等并且状态仍然是循环播放.可以通过指定单曲触发播放或者进入睡眠来关闭循
EQ, etc. and the state is still looping can be triggered by specified single player or go to sleep to shut down cycle
环播放状.
Play like a ring.
c)
c)
示例
Example
循环播放开始
Loop Start
7E FF 06 08 00 00 01 xx xx EF
7E FF 06 08 00 00 01 xx xx EF
Playing the first song cycle
Loop Stop
7E FF 06 08 00 00 02 xx xx EF
Loop the second song
3.4.5 combination play command
a) Many applications need to use TTS functionality, such as timekeeping, reported temperature, and so the reported amounts of application, if the user take
Our modules imitate simple TTS function, it may be greatly reduced in the above effect, contradictory point is in the voice
And delayed speech.
Directly in accordance with a specified play a file, then there will be between the speech and voice
延时,这样是不能接受的。
Delay, this is unacceptable.
因此我们增加了组合播放的功能,同时支持指定播放12 个
So we added a combination of playback functions, while supporting the designated player 12
语音,按照串口发送的顺序依次播放。
Voice, in the order of play one serial port.
b) 如果发送7E FF 0C 21 00 05 01 02 03 04 06 07 08 FE B0 EF 这一帧数据,我们分析
b) If the sending 7E FF 0C 21 00 05 01 02 03 04 06 07 08 FE B0 EF of the frame data, we analyze
一下CMD= 0x21 --- 查阅指令表LEN = 0x0c = 12 个字节--- FF 0C 21 00 05 01 02 03
Now what CMD = 0x21 --- repertoire LEN = 0x0c = 12 bytes --- FF 0C 21 00 05 01 02 03
04 06 07 08[去掉红色标记的字节,就是曲目的顺序]模块会一次播放第5 曲、第1 曲、
04060708 [remove byte marked in red, is the order of tracks] module will first play the first five, the first one,
2、3、4、6、7 这7 首曲目。
2,3,4,6,7 seven tracks.
播放完毕就停止
Finished playing stops
c) 在组合播放的过程中,是允许用户进入播放暂停和设置音量,但是不允许指定上下曲。
c) In the process of combination play, the user is allowed to enter the playback pause, and set the volume, but not specify down song.
如果用户对组合播放的要求比较高的话,请用户对音源自行编辑一下,去掉音源头和尾
If the user is playing a combination of high demand, please edit their own user tone look, sound source and remove the tail
的一些静音。
Some muted.
这样就可以减少语音和语音之间的延时,可以采用“Adobe Audition CS5.5”
This reduces the delay between the voice and speech, you can use "Adobe Audition CS5.5"
或者“GoldWave.exe”等等专业音频软件制作。
Or "GoldWave.exe" and so professional audio production software.
d) 有了这个功能,就可以很方便的实现“欢迎光临,现在时间是13 年12 月24 日”这样
d) With this feature, you can easily achieve "Welcome, the time now is 13 years December 24," so
的灵活播报方式,大大提高了产品的竞争力。
Flexible broadcast, greatly improving the competitiveness of their products.
e) 示例
e) Example
组合播放
Play combinations
7E FF 09 21 00 05 01 02 03 04 FE
7E FF 09 21 00 05 01 02 03 04 FE
C8 EF
C8 EF
播放5、1、2、3、4
Play 5,1,2,3,4
组合播放
Play combinations
7E FF 0C 21 00 05 01 02 03 04 06
7E FF 0C 21 00 05 01 02 03 04 06
07 08 FE B0 EF
07 08 FE B0 EF
播放5、1、2、3、4、6、7、8
Play 5,1,2,3,4,6,7,8
3.4.6 带音量参数播放指令
3.4.6 with volume parameters play command
a) 争对一些用户希望,对不同的语音设置不同的音量进行播放,如果按照以前的老方法,
a) contention for some users want, set different for different voice playback volume, according to the old method before,
就是先设置完音量,再指定曲目播放,这样操作繁琐,不方便。
After the first volume is set, and then specify the track is playing, this operation cumbersome and inconvenient.
特此我们增加此条指令
Hereby we add this entry instruction
0x22
0x22
b)
b)
具体的操作可以参考上面给出的两条测试指令。
Specific operations can refer to two test instructions given above.
c)
c)
示例
Example
带音量播放
Play with volume
7E FF 06 22 00 1E 01 xx xx EF
7E FF 06 22 00 1E 01 xx xx EF
30级音量播放第1曲
30 volume playing the first one
带音量播放
Play with volume
7E FF 06 22 00 0F 02 xx xx EF
7E FF 06 22 00 0F 02 xx xx EF
15级音量播放第2曲
15 volume playing the first two
3.4.7 带指定文件夹曲目播放指令
3.4.7 with the specified folder track playback instruction
a) 我们的模块可以将FLASH 的区域分为5 块,可以针对里面的任何一块进行操作
a) Our modules can be divided into five regions FLASH, can operate on any piece inside
b)
b)
具体的操作可以参考上面给出的两条测试指令
Specific operations can refer to two test instructions given above
c)
c)
示例
Example
指定区域和文件播放
Region and file playback
7E FF 06 30 00 01 01 FE C9 EF
7E FF 06 30 00 01 01 FE C9 EF
FOLDER1的第1曲
FOLDER1 first one
指定区域和文件播放
Region and file playback
7E FF 06 30 00 02 01 FE C8 EF
7E FF 06 30 00 02 01 FE C8 EF
FOLDER2的第1曲
FOLDER2 first one
3.4.8 指定文件夹曲目单曲循环播放指令
3.4.8 specified folder track single loop instruction
a) 用户可以对5 个文件夹里面的任意一个文件进行指定单曲循环播放,请参考上面的参考
either file a) for five users can be designated folder inside single loop, please refer to the above reference
指令
instruction
b)
b)
用户可以发送停止指令来停止单曲循环播放。
Users can send a stop command to stop the single loop.
c)
c)
示例
Example
指定文件夹曲目循环
Specify a folder track cycling
播放
Broadcast
7E FF 06 31 00 03 03 FE C4 EF
7E FF 06 31 00 03 03 FE C4 EF
FOLDER3的第3曲循环播放
FOLDER3 first three loop
指定文件夹曲目循环
Specify a folder track cycling
播放
Broadcast
7E FF 06 31 00 01 03 FE C6 EF
7E FF 06 31 00 01 03 FE C6 EF
FOLDER1的第3曲循环播放
FOLDER1 first three loop
3.4.9 指定文件夹曲目开始循环播放指令
3.4.9 specified folder track starts looping instruction
a) 用户可以对5 个文件夹里面的任意一个文件夹循环播放,请参考上面的参考指令。
either file a) users can 5 folder inside the folder loop playback, please refer to the above reference instruction.
03 指定的文件夹为FOLDER3
03 specified folder for FOLDER3
01 指定文件夹的第一曲开始,如果这里为02。
The first song begins 01 specified folder, if there is 02.
那么从第2 曲开始循环播放此文件夹
Well, from the beginning of the first two cycles to play this folder
b)
b)
用户可以发送停止指令来结束循环播放。
Users can send a stop command to end the loop.
c)
c)
示例
Example
指定文件夹循环播放
Specified folder loop
7E FF 06 32 00 03 01 FE C5 EF
7E FF 06 32 00 03 01 FE C5 EF
FOLDER3的第1曲循环播放
FOLDER3 first a loop
4 按键接口
4 button interface
模块我们采用的是IO 按键的方式,这样做的好处是充分利用了MCU 越来越来越多的
We use the IO module key way to do this is to take full advantage of the benefits of a growing number of increasingly MCU
GPIO。
GPIO.
设计繁琐但不简单,我们模块默认配置10 个按键的功能分配,可以在任何恶劣的场
Design tedious but not simple, we default configuration module 10 function keys assignment, can in any harsh field
合随意的控制,甚至也可以作为与MCU 的通信接口。
Together random control, even with the MCU can be used as a communication interface.
我们的按键分配4 种不同类型的功能,
Our key assignments 4 different types of functions,
根据两个电阻的对地选择,请联系技术支持。
To be selected according to two resistors, please contact technical support.
一对一触发播放,可打断
trigger one player can be interrupted
一对一触发播放,电平保持可循环
one trigger playback level hold recyclable
一对一触发播放,不可打断
One trigger play can not be interrupted
标准的播放功能,如上下曲、播放暂停等等
Standard playback functions, such as up and down song, playback pause, etc.
4.1 按键功能选择
4.1 Key function selection
R6
R6
R7
R7
触发模式
Trigger Mode
NC
NC
NC
NC
脉冲触发可打断(默认)
Pulse trigger can be interrupted (default)
1K
1K
NC
NC
电平保持播放
Keep playing level
NC
NC
1K
1K
脉冲触发不可打断
Pulse trigger can not be interrupted
1K
1K
1K
1K
MP3 功能键
MP3 function keys
4.2 按键接口
4.2 key interface
按键功能选择
Key Function Select
端口(默认脉冲
Port (default pulse
触发可打断)
Trigger can be interrupted)
按键端口
Key ports
4.3 触发功能描述
4.3 Trigger Function Description
4.3.1 脉冲触发可打断
4.3.1 pulse trigger can be interrupted
按键短按对地触发超过80mS。
Press the button to trigger more than 80mS.
4.3.2 电平保持播放
4.3.2 keep playing level
P1
P1
P2
P2
P3
P3
P4
P4
P5
P5
P6
P6
P7
P7
S1
S1
S2
S2
S3
S3
S4
S4
S5
S5
S6
S6
S7
S7
S8
S8
S9
S9
S10
S10
GND
GND
P1
P1
P2
P2
P3
P3
P5
P5
P4
P4
P6
P6
按键
button
短按
Press
长按
Press
按住不放
Hold
按键抬起
Button lift
S1
S1
第1段(Folder1)
Paragraph 1 (Folder1)
S2
S2
第2 段(Folder1)
Paragraph 2 (Folder1)
S3
S3
第3 段(Folder1)
Paragraph 3 (Folder1)
S4
S4
第4 段(Folder1)
Paragraph 4 (Folder1)
S5
S5
第5 段(Folder1)
Paragraph 5 (Folder1)
S6
S6
第6 段(Folder1)
Paragraph 6 (Folder1)
S7
S7
第7 段(Folder1)
Paragraph 7 (Folder1)
S8
S8
第8 段(Folder1)
Paragraph 8 (Folder1)
S9
S9
第9 段(Folder1)
Paragraph 9 (Folder1)
S10
S10
第10 段(Folder1)
Paragraph 10 (Folder1)
按键
button
短按
Press
长按
Press
按住不放
Hold
按键抬起
Button lift
S1
S1
第1 段循环(Folder1)
Paragraph 1 cycle (Folder1)
停止
stop
S2
S2
第2 段循环(Folder1)
Paragraph 2 cycle (Folder1)
停止
stop
S3
S3
第3 段循环(Folder1)
Paragraph 3 cycle (Folder1)
停止
stop
S4
S4
第4 段循环(Folder1)
Paragraph 4 cycle (Folder1)
停止
stop
S5
S5
第5 段循环(Folder1)
Paragraph 5 cycles (Folder1)
停止
stop
S6
S6
第6 段循环(Folder1)
Paragraph 6 cycles (Folder1)
停止
stop
S7
S7
第7 段循环(Folder1)
Paragraph 7 cycles (Folder1)
停止
stop
S8
S8
第8 段循环(Folder1)
Paragraph 8 cycles (Folder1)
停止
stop
S9
S9
第9 段循环(Folder1)
Paragraph 9 cycle (Folder1)
停止
stop
S10
S10
第10 段循环(Folder1)
Paragraph 10 cycles (Folder1)
停止
stop
按键循环播放需要对地触发超过800mS。
Key loop needs to be triggered more than 800mS.
4.3.3 脉冲触发不可打断
4.3.3 pulse trigger can not be interrupted
按键短按对地触发超过80mS。
Press the button to trigger more than 80mS.
4.3.4 MP3功能键
4.3.4 MP3 function keys
5 USB更新语音
5 USB update voice
我们的模块可以使用手机充电线直接更新语音,方便、灵活。
Our modules can use the phone charging cable directly update voice, convenient and flexible.
我们的优势如
Our advantage as
下可以按照客户的要求,更正下载语音的窗口信息
Under accordance with customer requirements, correct window Download voice
无需安装任何软件,直接更新,也不需要专用下载器
without having to install any software updates directly and does not require a dedicated downloader
对音质无任何压缩和损坏,保证更高的音质体验
sound quality without any compression and damage, ensuring a higher quality experience
支持WIN98,WINXP,WIN7,WIN8多种操作系统
support WIN98, WINXP, WIN7, WIN8 multiple operating systems
5.1 语音格式和时长
5.1 audio format, duration
语音内容需要采用MP3格式,如果不是需要做转换。
Voice content requires the use of the MP3 format, if not need to do the conversion.
采样率的要求8KHz,11.025KHz,12KHz,16KHz,22.05KHz,24KHz,32KHz,
Requirements 8KHz sampling rate, 11.025KHz, 12KHz, 16KHz, 22.05KHz, 24KHz, 32KHz,
44.1KHz,48KHz
44.1KHz, 48KHz
注:YX5100模块只连接L通道的音频输出。
NOTE: YX5100 module is connected only the L channel audio output.
制作音频文件时请转换成单声道。
Please converted to mono when creating audio files.
R声道音频将不会播放。
R channel audio will not play.
按键
button
短按
Press
长按
Press
按住不放
Hold
按键抬起
Button lift
S1
S1
第1段(Folder1)
Paragraph 1 (Folder1)
S2
S2
第2 段(Folder1)
Paragraph 2 (Folder1)
S3
S3
第3 段(Folder1)
Paragraph 3 (Folder1)
S4
S4
第4 段(Folder1)
Paragraph 4 (Folder1)
S5
S5
第5 段(Folder1)
Paragraph 5 (Folder1)
S6
S6
第6 段(Folder1)
Paragraph 6 (Folder1)
S7
S7
第7 段(Folder1)
Paragraph 7 (Folder1)
S8
S8
第8 段(Folder1)
Paragraph 8 (Folder1)
S9
S9
第9 段(Folder1)
Paragraph 9 (Folder1)
S10
S10
第10 段(Folder1)
Paragraph 10 (Folder1)
按键
button
短按
Press
长按
Press
按住不放
Hold
按键抬起
Button lift
S1
S1
下一曲
next track
音量+
Volume +
S2
S2
上一曲
previous piece
音量—
volume-
S3
S3
播放/暂停
Play / Pause
S4
S4
低功耗
Low power consumption
S5
S5
停止
stop
S6
S6
音量+
Volume +
音量+
Volume +
S7
S7
音量—
volume-
音量—
volume-
播放时间和SPI Flash容量关系表(时间单位“秒”)
SPI Flash playback time and volume relationship table (time unit "second")
码率
Rate
4M Bit
4M Bit
8M Bit
8M Bit
16M Bit
16M Bit
32M Bit
32M Bit
64M Bit
64M Bit
16Kbps
16Kbps
252
252
505
505
1011
1011
2022
2022
4045
4045
24Kbps
24Kbps
163
163
327
327
654
654
1309
1309
2618
2618
32Kbps
32Kbps
113
113
226
226
453
453
906
906
1812
1812
64Kbps
64Kbps
59
59
119
119
239
239
477
477
955
955
96Kbps
96Kbps
41
41
81
81
162
162
325
325
651
651
128Kbps
128Kbps
31
31
61
61
123
123
246
246
493
493
160Kbps
160Kbps
21
twenty one
49
49
97
97
194
194
389
389
192Kbps
192Kbps
20
20
40
40
81
81
161
161
323
323
256Kbps
256Kbps
15
Fifteen
30
30
60
60
120
120
241
241
320Kbps
320Kbps
11
11
23
twenty three
47
47
95
95
191
191
MP3文件大小决定于码率。
MP3 file size depends on the bit rate.
语音播报建议使用16Kbps—64Kbps
Voice Broadcast recommended 16Kbps-64Kbps
音乐播放建议使用32Kbps—96Kbps
Music Player is recommended to use 32Kbps-96Kbps
5.2 语音文件命名方式
5.2 voice file naming
语音文件采用数字命名的方式。
Digital voice file naming mode.
示例
Example
001.MP3
001.MP3
对应按键1
The corresponding key 1
002.MP3
002.MP3
对应按键2
The corresponding button 2
003.MP3
003.MP3
对应按键3
The corresponding key 3
以此类推
And so on
5.3 插入硬件
5.3 Inserting Hardware
插上手机充电线,称之为MicroUSB 线。
Plug the phone charging cable, called MicroUSB cable.
请关闭杀毒软件,或者插USB后弹出窗口选允许程序
Please turn off antivirus software, or plug a USB pop-up option allows programs
运行:
run:
5.4 界面说明
5.4 Interface Description
点击CD驱动器
Click the CD drive
运行MusicDownload.exe
Run MusicDownload.exe
5.5 加载文件
5.5 load file
选择FOLDER1
Select FOLDER1
点击加载,选择需要添加的文件。
Click Load, select the files you want to add.
加载文件以后
After loading the file
回到UPDATE窗口
Back to UPDATE window
点击更新
Click Update
擦除flash
Erase flash
对Flash进行烧录
The Flash programming
After erasing Flash, programming, calibration, verification succeeds final tips.
已经烧录完成。
Burn has been completed.
6 Schematic