CN103199895B - An audio playback and remote access systems - Google Patents

An audio playback and remote access systems Download PDF

Info

Publication number
CN103199895B
CN103199895B CN 201310007331 CN201310007331A CN103199895B CN 103199895 B CN103199895 B CN 103199895B CN 201310007331 CN201310007331 CN 201310007331 CN 201310007331 A CN201310007331 A CN 201310007331A CN 103199895 B CN103199895 B CN 103199895B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
module
power
audio
terminal
remote access
Prior art date
Application number
CN 201310007331
Other languages
Chinese (zh)
Other versions
CN103199895A (en )
Inventor
徐文学
杨国文
Original Assignee
北京卓越信通电子股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Grant date

Links

Abstract

一种音频远程存取和播放系统,该系统包括音源服务器和播放终端;所述音源服务器用于存放音源文件;所述播放终端用于播放音源文件;所述播放终端通过主动请求从音源服务器获取音源数据进行解码播放;所述音源服务器与所述播放终端之间通过高速电力载波通信方式进行通信。 An audio playback system and a remote access, the system comprising a source server and a player terminal; the source server for storing audio files; the player terminal for playing audio files; obtained from the playing terminal through the source server actively requests playback decoding the sound source data; communication between the source server and the playing terminal through the high-speed power line carrier communication manner. 本发明可以利用场所现有的电力线来安装系统,不需要重新布线,提高安装效率,并且节省用户成本。 The present invention may utilize existing power lines places to install the system, does not require rewiring, to improve the efficiency of the installation, and the user cost savings.

Description

一种音频远程存取和播放系统 An audio playback and remote access systems

技术领域 FIELD

[0001] 本发明涉及一种通过电力线传输音频信号、并对音频信号的存取和播放进行控制的系统。 [0001] The present invention relates to a system for transmitting an audio signal via a power line, and to access and playback of audio signals is controlled.

背景技术 Background technique

[0002] 随着生活的提高,人们对于音乐的爱好渐渐成为生活中不可缺少的一部分,在家里、在酒店、在其他公共场所,不仅希望随时随地听到音乐,还希望能够方便的享受到自己喜爱的音乐。 [0002] With the improvement of living standard, people gradually become a hobby for music indispensable part of life, at home, in hotels, in other public places, not only want to hear music anytime, anywhere, but also want to be able to enjoy the convenience of their own favorite music.

[0003]目前楼宇音频系统有采用音频线连接方案的,也有采用无线射频方案的。 [0003] There is currently building an audio system using an audio cable connection scheme, there is also a wireless radio programs. 它们都有各自的缺陷:采用音频线连接方案在实际布置时要重新拉很长的连线,还要外接附属的电源适配器,一旦变换位置,又要重新布置,十分不便。 Each has its own drawbacks: the use of audio cable pull To re-arranged long the actual connections, but also the external power adapter attached, when the transformation location, arrangement, again, is very inconvenient. 基于WIFI等射频方式的无线射频方案一方面存在射频辐射,另一方面穿墙能力比较弱,不能覆盖到每一个角落。 WIFI and other radio frequency-based embodiment of an aspect of embodiment a radio frequency RF radiation, on the other hand through the wall is relatively weak, can not cover every corner.

[0004] 在信号传输领域中,已经有利用电力线进行数据传输的技术,例如CN101707571A。 [0004] In the field of signal transmission, there have been technologies for data transmission using a power line, e.g. CN101707571A. 使用电力线的优点是可以解决重新拉线的问题,并且其没有无线通信技术中的延迟,无死角覆盖,无射频辐射,等等。 The advantage of using power line problem can be solved re-wire and wireless communication technologies which no delay, no dead coverage, no radio-frequency radiation, and the like. 但目前该技术还没有被用于楼宇音频传输系统中,所以未能解决音频系统中重新布线的问题。 But the technology has not been used for building audio transmission system, so the issue is not resolved audio system rewiring. 原因是需要解决程控系统、方法以及设备等各方面的技术冋题。 The reason is the need to address all aspects of technical problems Jiong program-controlled systems, methods and equipment.

发明内容 SUMMARY

[0005] 本发明针对上述背景技术中存在的技术问题,提出了一种音频远程存取和播放系统。 [0005] The present invention addresses the above-described technical problems in the background art, and proposes an audio playback and remote access systems.

[0006] 本发明解决的技术问题包括:在住宅或办公建筑等需要播放音频数据的场所,充分利用已有的电力线来传输音频信号,并且实现音频的远程存取和播放。 [0006] The technical problem of the present invention comprises: in residential or office buildings and other places of audio data to be played, the full use of existing power lines to transmit audio signal and for audio playback and remote access.

[0007] 本发明的技术方案如下: [0007] aspect of the present invention is as follows:

[0008] 一种音频远程存取和播放系统,该系统包括一个音源服务器、一个或多个播放终端;所述音源服务器用于存放音源文件,其包括电源模块、中央处理模块、存储模块、高速电力载波模块、交互模块;所述播放终端用于播放音源文件,其包括电源模块、中央处理模块、高速电力载波模块、音频编解码模块;所述播放终端通过主动请求从音源服务器获取音源数据进行解码播放。 [0008] An audio playback and remote access system including a source server, or a plurality of player terminals; the source server for storing audio files, which includes a power module, a central processing module, a storage module, high speed power line carrier module, interaction module; player terminal for playing the audio file, which includes a power module, a central processing module, a high-speed power line carrier module, an audio codec module; playing terminal through the active request obtaining source data from a source to the server decode and play.

[0009] 其中,所述播放终端还包括音频输入模块,所述音频输入模块从外部输入音源数据。 [0009] wherein, the playing terminal further includes an audio input module, the audio input module input data from an external source.

[0010] 其中,所述播放终端将外部声音输入进行编码并输出到音源服务器保存。 [0010] wherein, the playing terminal and the external sound input and output to excitation encoding server saved.

[0011] 其中,所述电源模块是A⑶C电源模块。 [0011] wherein, the power module is a power module A⑶C.

[0012] 其中,所述音源服务器与所述播放终端通过电力线传输数据。 [0012] wherein, the source server and the playing terminal through the power line to transmit data.

[0013] 其中,所述音源服务器和所述播放终端通过各自的两脚插头分别连接到电力线的零线和火线上,所述电力实现音频数据的传输。 [0013] wherein, the source server and the playing terminal through the respective pin plug is connected respectively to the power line and the neutral line of fire, the power transmission of the audio data implemented.

[0014] 其中,电力线是安装所述系统的场所已经具备的。 [0014] wherein the power lines are installed place of the system already has.

[0015] 其中,所述电力线是与所述系统一起布置的。 [0015] wherein the power lines are disposed together with the system.

[0016] 其中,所述播放终端还包括设备控制模块,所述设备控制模块用于控制嵌入安装播放终端的设备,所述设备选自包含插座、电灯在内的多种设备。 [0016] wherein, the playing terminal apparatus further comprises a control module, the device control apparatus for controlling the embedded module to install the player terminal, the apparatus comprising a receptacle selected, a variety of devices, including lamps.

[0017] 其中,所述系统还包括一个或多个智能遥控设备,所述遥控设备对播放终端进行控制。 [0017] wherein said system further comprises one or more smart remote control devices, the remote control device to control the player terminal.

[0018] 其中,所述播放终端包括红外收发模块。 [0018] wherein, the playing terminal comprises an infrared transceiver module.

[0019] 其中,所述播放终端包括功放模块和喇叭。 [0019] wherein, the playing terminal includes a speaker and a power amplifier module.

[0020] 其中,所述音源服务器选择性地包括播放终端用于实现播放的模块。 [0020] wherein, the source server selectively playing terminal includes a module for implementing played.

[0021] 其中,所述播放终端选择性地包括音源服务器用于实现存取服务功能的模块。 [0021] wherein said playback module includes a source terminal to selectively access the server for implementing service functions.

[0022] 其中,所述音源服务器和所述播放终端安装在场所的不同位置。 [0022] wherein, the source server and the player terminals installed in different places of location.

[0023] 其中,所述音源服务器设于客厅,所述播放终端设于客厅、卫生间、厨房、和/或卧室。 [0023] wherein the source server is provided in the living room, the playback terminal provided in the living room, bathroom, kitchen and / or bedroom.

[0024] 其中,所述音源服务器设于控制室,所述播放终端设于办公室、居民房屋、和/或车间。 [0024] wherein the source server is provided in the control room, the playback terminal provided in office, residential buildings, and / or workshop.

[0025] 本发明的有益效果在于: [0025] Advantageous effects of the present invention:

[0026] 本发明将设备供电、设备通信集成在一起,用户可以在家庭任何一个电线到达的地方播放自己喜欢的音乐,可以外置也可以内置,解决了传统冗余繁杂的接线难题;同时,也能实现灯光控制、各终端之间相互访问和语音对讲的功能。 [0026] The present invention will supply equipment, communications equipment integrated, users can play their favorite music at any place a wire to reach the family, and can be built external, to solve the traditional problem of redundant complicated wiring; at the same time, lighting control can be achieved, and the access terminals to each other between the voice intercom functions.

[0027] 本发明系统采用电力载波传输,传输的是音频数据文件,数据通过TCP方式可靠传输,丢失后会自动重传,保证音频数据文件准确传到对端,相比于传统的模拟信号传输方式,由于不存在传输时信号衰减失真的问题,播放质量高。 [0027] The present invention uses power line carrier transmission system, transmission is audio data files, data transmission through a reliable TCP mode, the automatic retransmission will be lost, to ensure accurate audio data file transmitted to the peer, as compared to conventional analog signal transmission way, since the transmission signal attenuation problem when there is no distortion, high playback quality.

[0028] 本发明音源服务器和播放终端尺寸小,节省空间,并且方便连接和嵌入到其它电力设备;并降低成本。 [0028] The small size of the source server and the playing terminal according to the present invention, space saving, and easy connection to other electrical equipment and embedding; and reduce costs.

[0029] 本发明遥控设备电路简单,节省一对红外收发芯片及其周边附属器件,减少成本。 The remote control device of simple circuit to the invention [0029] This saves infrared transceiver chip and its peripheral devices affiliated pair of cost reduction.

附图说明 BRIEF DESCRIPTION

[0030] 图1是本发明实施例的系统连接示意图。 [0030] FIG. 1 is a schematic view of the connection system of the embodiment of the present invention.

[0031] 图2是本发明实施例的音源服务器原理示意图。 [0031] FIG. 2 is a schematic view of the principle source server according to embodiments of the present invention.

[0032] 图3是本发明实施例的房间播放终端原理示意图。 [0032] FIG. 3 is an embodiment of the present invention, the room Schematic player terminal.

[0033] 图4是本发明实施例的ACDC模块与高速电力模块在电力线端交汇时的连接方式 [0033] FIG. 4 is a connection module at high speed ACDC power module embodiment of the present invention meet at end of the power line

[0034] 图5是本发明实施例的A⑶C。 [0034] FIG. 5 is an embodiment of the present invention A⑶C.

[0035] 图6是本发明实施例的智能遥控终端原理示意图。 [0035] FIG. 6 is an intelligent remote terminal of the embodiment of the present invention, the principles of FIG.

[0036] 图7是本发明实施例的软件系统层级结构图。 [0036] FIG. 7 is a software hierarchy diagram of an embodiment of the present invention.

[0037] 图8是本发明实施例的UART接收红外数据的软件流程图。 [0037] FIG 8 is a flowchart of the software UART embodiment of the present invention receives infrared data.

具体实施方式 Detailed ways

[0038] 以下结合附图对本发明实施例进行详细描述,以使本发明的目的、技术方案及效果更加清楚,明确。 [0038] Hereinafter, the embodiments of the present invention is described in detail in conjunction with the accompanying drawings, in order to make the objectives, technical solutions and advantages of the present invention will become clear and definite. 此处所描述的具体实施例仅用于解释本发明,并不用于限定本发明。 The specific embodiments described herein are merely for explaining the present invention, not to limit the present invention.

[0039] 如图1所示,一种基于电力线的音频远程存取和播放系统,系统利用已有的电力线,集系统供电与通信于一体。 [0039] As shown, an audio player and remote access systems based on power lines, the system using the existing power lines, power supply and communication diversity system shown in one. 该系统包括电力线、一个音源服务器、多个房间播放终端、多个智能遥控设备。 The system includes a power line, a source server, the plurality of playing room terminals, a plurality of smart remote control devices.

[0040] 电力线包括一条零线和一条火线。 [0040] comprising a power line and a neutral line of fire. 音源服务器和房间播放终端都是通过两脚插头连接到电力线的两条线上,由此,播放终端能够通过电力线与音源服务器相连接进行通信。 Source server and the playing terminal room are connected to two lines by a two-pin power lines, whereby the player terminal can be connected through a power line source server communicate. 所述遥控设备对播放终端进行控制。 The remote control device of the player terminal.

[0041] 如图2所示,音源服务器包括A⑶C电源模块、中央处理模块、存储模块、高速电力载波模块、交互模块。 [0041] As shown in FIG 2, the power source server comprises A⑶C module, central processing module, a storage module, a high-speed power line carrier module, interaction module. 各模块连接方式如图2所示,其中ACDC电源模块负责将交流电转化成直流电,提供给其他几个模块使用;中央处理模块是音源服务器的核心,负责调度整个音源服务器的工作,存储模块、高速电力载波模块和交互模块都是其的附属模块,存储模块是用于存放音源文件的存储设备,高速电力载波模块负责解析电力线上的数据或把数据耦合到电力线上,交互模块用于接受用户控制信息并显示音源服务器状态信息;所述音源服务器响应所述播放终端的请求,发送音频数据给播放终端、或从音源服务器接受音频数据。 Each connection module shown in Figure 2, wherein the ACDC power conversion module is responsible for the alternating current into direct current, provided to several other modules; central processing module is the core source server, the server is responsible for scheduling the entire audio work, storage module, high speed power line carrier module, and interactive modules are accessory modules, which memory module is a storage device for storing audio files, the high-speed power line carrier module is responsible for parsing the data on the power line or the power line is coupled to the data, a user interaction module for receiving control and displays the information source server status information; source server in response to the request of the playing terminal transmits audio data to the player terminal, or receive audio data from the source server.

[0042] 音源服务器的ACDC电源模块采用反激式电源开关电路,开关电路结构如图5所示。 [0042] ACDC power source server module flyback power switching circuit, the switching circuit configuration shown in Figure 5. AC输入85V-265V交流电,标准输入220V交流电,通过整流滤波电路,把交流电AC变成直流电DC,直流电输入高频变压器初级输入端;脉冲宽度调制器电路控制高频变压器初级输入端到次级输出端的能量传递,经过高频整流滤波变成稳定的直流电,直流电的大小由脉冲宽度调制电路的基准电路部分进行反馈控制。 AC 85V-265V AC input, standard 220V AC input, through the rectifier and filter circuit, the DC alternating current AC into DC, the DC input terminal of the high frequency transformer primary input; pulse width modulator circuit to control a high frequency input terminal to the secondary output transformer primary energy transfer end, after high-frequency rectifier filter into a stable direct current, direct current is controlled by the size of the feedback reference circuit portion of the pulse width modulation circuit. 本发明实现电路单路输出直流11.4V,再由11.4V降压到3.3V给整个电路供电,总输出功率5W。 The present invention enables a single output circuit DC 11.4V, 11.4V and then down to 3.3V by the power supply to the whole circuit, the total output power of 5W. A⑶C模块采用基准稳压器和隔离光电耦合器组成的隔离反馈电路,通过稳定的基准输出保证11.4V稳定输出。 A⑶C isolation module using reference regulator feedback circuit and the separator photocoupler composed by a stable reference output 11.4V ensure stable output. 整流滤波电路由二极管和电容组成,二极管整流,将交流电变成脉动的直流电;电容负责滤波,将直流中的交流成分滤掉,减少交流成分;高频整流滤波电路由二极管、电感和电容组成。 Rectifier filter circuit composed of a diode and a capacitor, a diode rectifier, the AC into pulsating direct current; responsible for filtering capacitor, the DC component is filtered off the AC, the AC component reduction; frequency rectifier filter circuit by the diodes, inductors and capacitors.

[0043] 音源服务器的中央处理模块采用CorteX-M3 ARM处理器来处理整个电路的数据,控制其他模块工作。 [0043] The audio processing module uses a central server CorteX-M3 ARM processor to process data for the entire circuit, the other control modules work.

[0044] 音源服务器的存储模块是存放音频文件的模块,例如可以是TF卡、U盘等。 [0044] sound source memory module is a server module stored audio file, for example, a TF card, U-disk and the like. 中央处理模块利用中央处理芯片外围接口去读取存储模块获取音频数据。 Central processing module of the central processing chip peripheral interface to read the memory module acquires the audio data. 中央处理模块还可以通过扩展的RJ45 口连接到外部以太网,获取指定网址上音频文件。 Central processing module can also be connected to the outside through the extended Ethernet RJ45 port, obtaining an audio file on a specified URL.

[0045] 音源服务器的高速电力载波模块由模拟前端调制解调芯片和数字后端处理芯片组成。 [0045] The audio server module consists of a high-speed power line carrier modem analog front end and the digital back-end processing chip chips. 在数据接收时模拟前端调制解调芯片负责将数据信号从电力线上解调出来然后传递到数字后端芯片处理,最后通过MII 口发送给中央处理模块解析;在数据发送时,中央处理单元将数据通过MII 口发送给数字后端芯片处理,然后传递给模拟前端芯片调制到电力线上。 Upon receiving data modem analog front-end chip is responsible for demodulating the data signal from the power line and then transmitted out to the digital back-end chip, and finally sent to the central processing module parsed MII port; during data transmission, the central data processing unit to the digital back-end chip processed through MII port, and then passed to the analog front-end chip is modulated onto the power line. 数据信号的调制解调是通过电力线载波变压器耦合到电力线上的。 Modem data signal is coupled to the power line by power line carrier transformer.

[0046]中央处理模块的处理芯片和高速电力载波模块的数字后端芯片直接通过MII接口连接,中央处理模块工作在Mil MAC模式,高速电力载波模块工作在Mil PHY模式。 [0046] back-end chip digital processing chips and high-speed power line carrier module central processing module directly through the MII interface, the central processing module working Mil MAC mode, high-speed power line carrier module works in Mil PHY mode. 这种工作模式与传统电力猫的RJ45连接方式相比,省去了两套PHY,两套网络变压器和两个RJ45 口以及周边附属器件。 This mode of operation as compared to conventional power cat RJ45 connection, eliminating the need for a PHY two, two and two RJ45 network transformer subsidiary ports and a peripheral device.

[0047] 音源服务器的高速电力载波模块和ACDC电源模块在设备的末端交汇,连接关系如图4所示。 [0047] Power source server's cache ACDC carrier module and power module at the end of the intersection of the device, the connection relationship shown in FIG. ACDC模块工作时产生的高频噪声信号耦合到电力线上,同高速电力载波模块传输的数据信号叠加,直接影响数据传输的准确性,同时在电源输入端为防止浪涌损坏器件,需要接安规电容,这种电容的容性会导致耦合到电力线的通信信号变形,带来整个传输线路带宽下降,所以在交汇末端两个模块通过隔离电感L1、L2进行隔离,即在信号端和电源端的零线和火线上各加一个1uH到10uH的电感,隔离掉ACDC模块产生的噪声和安规电容对电力线上数据的影响。 High-frequency noise signals generated during operation of the ACDC module is coupled to the power line, a data signal superimposed with the high-speed power transmission carrier module, directly affects the accuracy of data transmission, while the power input of the device to prevent damage to the surge, need to take safety capacitance, the capacitance of this capacitive coupling to cause deformation of the power line communication signal, to bring the entire transmission line bandwidth decreased, so the intersection of two end modules through isolation inductor L1, L2 isolation, i.e. zero signal terminal and power supply terminal each 1uH to add an inductance of the line and the line of fire 10uH, isolation and safety off the influence of noise generated on the capacitor module ACDC power line data.

[0048] 音源服务器的交互模块采用八键电容式触摸芯片。 [0048] The audio interactive server module uses eight capacitive touch key chip. 所述交互模块还可以包括触摸按键和LCM液晶显示屏,以方便用户直接对音源服务器控制而不是通过遥控设备来控制。 The interaction module may further include a touch screen LCD keys and LCM, to facilitate user control of the server directly to the source rather than controlled by a remote control device.

[0049] 如图3所示,播放终端包括A⑶C电源模块、中央处理模块、高速电力载波模块、音频编解码模块、红外收发模块、音频输入模块、功放模块和喇叭,也可以选择性地包括设备控制模块。 [0049] As shown, the player terminal comprising A⑶C power module, the central processing module, a high-speed power line carrier module, an audio codec module, an infrared transceiver module, an audio input module, amplifier module and the horn, can also optionally include a device 3 control module. 其中ACDC模块、中央处理模块、高速电力载波模块功能及使用方式同音源服务器一致,音频编解码模块、设备控制模块、红外收发模块也是中央处理模块的附属模块,音频编解码模块主要负责音频数据的编码和解码,它还有两个附属模块:功放模块和音频输入,功放模块负责将音频解码后的声音信号放大驱动喇叭播放,音频输入模块可以外接麦克风,对讲的语音信号进入音频编解码模块进行编码传输到另一端并且可以输出到音源服务器保存。 Wherein ACDC module, a central processing module, a high-speed power line carrier module functions and use consistent with the source server, an audio codec module, device control module, an infrared transceiver module is a central processing auxiliary module module, an audio codec module is mainly responsible audio data encoding and decoding, it also has two subsidiary modules: an audio input and a power amplifier module, amplifier module is responsible for the sound signal amplified to drive the speaker playing an audio decoder, an audio input module may be an external microphone, speaker voice signal into the audio codec module encoded and transmitted to the other end of the source can be output to the server and stored. 设备控制模块可以控制嵌入播放终端的设备如插座、灯具等的电源。 Device control module may control devices such as sockets, lamp power and the like embedded player terminal.

[0050] 播放终端的A⑶C电源模块采用反激式电源开关电路,工作原理同服务器端A⑶C模块一样,不同的是高频变压器设一个初级输入端和两个次级输出端,实现电路双路输出直流11.4V和3.3V,总输出功率12W,隔离反馈电路设为3.3V 一路,保证3.3V稳定输出,11.4V—路是跟随输出端,其实际输出电压随着负载变化波动很大,在本终端中11.4V—路为模拟前端芯片和功放芯片提供电源,随着工作模式的不同,负载变化就会很大。 A⑶C power module [0050] The player terminal flyback power switching circuit, the same principle as A⑶C server module, except that a high-frequency transformer provided two primary input terminal and secondary output terminal, implement dual output circuit 3.3V and 11.4V DC, the total output power of 12W, the isolated feedback circuit is a 3.3V way, to ensure stable output 3.3V, 11.4V- way is to follow the output of which the actual output voltage changes greatly with the load fluctuation, in the present 11.4V- channel provides power to the chip and analog front-end amplifier chip terminals, with the different operating modes, the load will change greatly. 为保证输出稳定,在变压器次级输出端各预留一个nH级电感,用于调整次级漏感,达到减少11.4V输出端误差的目的。 To ensure the stable output at each output of the transformer secondary reserve a nH inductor, for adjusting the secondary leakage inductance, the purpose of reducing the output of the error 11.4V.

[0051] 播放终端的中央处理模块也采用Cortex_M3 ARM处理器来处理整个电路的数据,控制其他模块工作。 [0051] The player terminal central processing module also uses Cortex_M3 ARM processor to process data for the entire circuit, the other control modules work.

[0052] 播放终端的音频编解码模块通过SPI接口同中央处理模块相连,主要负责音频数据的编码和解码,可以解码MP3、WAV等格式的音频文件,音频编解码模块它还有两个附属模块:功放模块和音频输入,功放模块负责将音频解码后的声音信号放大驱动喇叭播放,该功放可驱动4、8欧的喇叭,功率6W以上。 [0052] The audio codec playing terminal through the SPI module is connected with the central processing module, is responsible for encoding and decoding audio data, audio files can be decoded MP3, WAV format, the audio codec module that it has two subsidiary modules : amplifier and an audio input module, the power amplifier module is responsible for decoding an audio sound signal driving the speaker playing an enlarged, the amplifier can be driven 4,8 ohm speakers, power 6W above. 音频输入模块可以外接麦克风,对讲的语音信号进入音频编解码模块进行编码传输到另一端并且可以输出到音源服务器保存。 Audio input module may be an external microphone, speaker voice incoming audio signal codec module encoding and transmitting to the other end of the source can be output to the server and stored.

[0053] 选择性包括的灯光控制模块是当播放终端与灯连接时,用于控制灯光。 [0053] selectively include a lighting control module when playing with the lamp connection terminals for controlling the lighting. 其采用固态继电器,该固态继电器内部采用可控硅用电子切换,工作时不会产生电火花,使用寿命长。 Which uses solid state relay, the solid state relay Thyristor internal electronic switch, no spark, long work life.

[0054] 红外收发模块利用中央处理芯片模拟实现,UART_RX接收红外数据,波特率为9600,UART_TX发送红外数据,波特率为115200。 [0054] The infrared transceiver module of the central processing chip analog implementation, UART_RX receives infrared data, the baud rate is 9600, UART_TX infrared data transmission, a baud rate of 115,200.

[0055] 如图6所示,智能遥控设备是控制房间播放终端的辅助设备,主要作用是用于人机交互,用于发送控制命令和显示播放信息。 [0055] As shown in FIG. 6, the smart remote control device is a control terminal of the auxiliary equipment room playing the main role for human-computer interaction, and for transmitting the control command to display the playback information. 其主要由MCU处理模块、液晶显示模块、红外收发模块组成。 The main processing by the MCU module, a liquid crystal display module, infrared transceiver modules. MCU选用AVR Megal6,红外收发通过MCU UART模拟实现,UART_RX接收红外数据,波特率为9600,UART_TX发送红外数据,波特率为115200,接收到播放信息后驱动液晶显示模块LCMl2864显示。 MCU selection AVR Megal6, infrared transceiver through the UART MCU an analog implementation, UART_RX receives infrared data, the baud rate is 9600, UART_TX infrared data transmission, the baud rate of 115200, the liquid crystal display driving module receives the display LCMl2864 play information.

[0056] 如图7所示,本发明基于电力线的音频远程存取和播放系统采用RT-Thread RTOS开发,利用该系统的文件系统和TCP/IP协议栈完成文件的读取和传输功能。 [0056] As shown in FIG 7, the present invention employs RT-Thread RTOS development remote access and playback audio system based on the power line, by using the system's file system and TCP / IP protocol stack of the finished document reading and transmission functions.

[0057] 该操作系统包括:用来驱动底层硬件的底层硬件驱动程序模块;和CPU和电路板相关的板级支持包;覆盖全抢占式的实时操作系统内核模块;与底层具体实现无关的上层应用模块。 [0057] The operating system comprising: a drive for the underlying hardware of the underlying hardware driver module; and a CPU board and associated board support packages; cover the whole preemptive real-time operating system kernel module; independent of the underlying upper embodied application module. 底层硬件包括CPU、SRAM、UART等常用硬件模块,板级支持包涉及到不同硬件的软件驱动,内核包括设备驱动、时钟管理、线程通信、进程管理等处理。 The underlying hardware including CPU, SRAM, UART and other common hardware modules, software board support packages involve different hardware drivers, kernel includes device drivers, clock management, thread communication, process management and processing. 上层应用模块包括TCP/IP协议栈、以及多窗口多线程图形用户界面、音源服务器程序模块、播放终端程序模块。 Upper application modules include TCP / IP protocol stack, and multi-threaded multi-window graphical user interface, audio server program module, player terminal program modules.

[0058] 其中,音源服务器程序模块是主机程序模块,是从FAT文件系统的TF卡中读取音频文件数据,通过STM32F107的MII接口将数据传输到AR7400,发送到寻址的从机。 [0058] wherein the source server is the host program module program module is to read data from the audio file TF card FAT file system, to transmit data through the MII interface STM32F107 AR7400, sent to the addressed slave. 该主机程序模块建立UDP服务器,通过UDP方式将音频文件数据传输到从机。 The host program module establishes UDP server, transmits the audio file data to the slave mode via UDP.

[0059] 音源服务器程序模块的主要设计思路如下: [0059] The main design concept tone server program module:

[0060] 1.初始化文件系统和TCP/IP协议栈。 [0060] 1. Initialization file system and TCP / IP protocol stack.

[0061 ] 2.使用UDP方式建立UDP服务器,针对每一个客户播放终端建立一个服务器线程。 [0061] 2. Using UDP server UDP way to build, to build a server thread for each client player terminal.

[0062] 3.搜索TF卡、U盘音频目录下的所有音频文件,并编号和记录文件名。 [0062] 3. Search TF card, all audio files in the audio U disk directory and file names and record numbers.

[0063] 4.初始化与客户播放终端的命令交互协议。 [0063] 4. Initialize command with the client terminal displays the interactive protocol.

[0064] 5.等待客户客户播放终端发送获取音频数据请求。 [0064] 5. Wait for the client transmits the client terminal acquires the audio playback data request.

[0065] 播放终端程序模块是从机程序模块,其建立UDP的客户机,同时根据用户的遥控控制来给主机发送请求,从而获得主机传输来的音频文件数据。 [0065] The player terminal program module is a program module from the machine, which establish UDP client, to send the request to the host while the remote control according to user, to obtain a master audio file data transmitted. 从机收到音频文件数据后,缓存一包数据,然后通过SPI接口传送到音频解码芯片,由解码芯片恢复出音频。 After receiving audio data from a file unit, a packet data cache, then transmitted through the SPI interface chip to the audio decoder, audio recovered by the decoder chip.

[0066] 房间播放终端的主要设计思路如下: [0066] The main player terminal room design ideas are as follows:

[0067] 1.初始化TCP/IP协议栈。 [0067] 1. Initialize the TCP / IP protocol stack.

[0068] 2.使用UDP方式建立UDP客户机,针对服务器建立一个客户机进程。 [0068] 2. Establish a UDP client, establish a process for the client server using UDP mode.

[0069] 3.初始化音频编解码芯片VS1003。 [0069] 3. Initialize the audio codec chip VS1003.

[0070] 4.初始化与服务器端的命令交互协议。 [0070] 4. The server initialization command interactive protocol.

[0071] 5.等待用户的操作命令。 [0071] The operation waits for the user's command.

[0072] 主机和从机都支持命令行配置方式,可以通过板上的调试串口进行操作,一些主要功能均有命令行的支持,方便调试。 [0072] The master and slave command support configuration, can be operated by the serial debug panel, some of the main functions are to support the command line, facilitate debugging.

[0073] 本发明的播放终端和智能遥控的中央处理芯片本身都自带UART 口,可以实现红外数据的编解码。 [0073] playing terminal and a smart remote control of the present invention a central processing chip itself comes UART port, can achieve encoding and decoding infrared data. 发送数据时用UART TX来模拟38KHz载波,把串口设为115200的波特率,数据位是7 bit,无校验位和I stop bit,总共是9个bit,然后连续发送数值0x5B就可以得到38kHz,占空比为2/3的载波。 Used to simulate the UART TX data is transmitted 38KHz carrier, the serial baud rate is set to 115200, the data bits is 7 bit, no parity bit and I stop bit, a total of nine 'bit, then the continuous transmission value can be obtained 0x5B 38kHz, duty cycle is 2/3 of the carrier. 用一个PNP三极管来驱动,那送到红外线发射二极管的就是占空比为1/3的载波信号。 Driven by a PNP transistor, to the infrared emitting diode that is 1/3 duty cycle of the carrier signal. 发送完数据后把波特率改成9600,数据位改为SbitjlJ用UART RX中断接收数据,接收数据的软件处理流程如图8所示,在收到一个完整的红外遥控信号过程中,UART RX会不停的进入中断,整个过程持续约108ms,并能采样到33个以上的数据,所以在接收到第一个中断后开启定时器,定时110ms,在这么长得时间内,如果能收到5个以上数据证明这是一个有效的红外波形而不是干扰。 After sending the data into a 9600 baud rate, data bits to SbitjlJ with UART RX interrupt reception data, reception data processing flow of software shown in Figure 8, upon receipt of a complete infrared remote control signal process, UART RX will continue to enter the interrupt, the entire process lasted about 108ms, and can be 33 or more of the sampled data, start a timer after receiving the first interrupt timing 110ms, in such a longer time, if able to receive 5 the above data show that this is a valid waveform instead of infrared interference. 如果是有效的就去处理IlOms内接收到的所有数据,如果数据位O代表接收到了一个bit为I的遥控数据,如果数据位不为O则代表接收到一个bit为O的数据。 If the process is effective to go all the data received IlOms, if the representative data bit O receives a data bit for the remote control I, if the data bit is not received is O represents a data bit is O. 然后将这些bit位组合起来就是接收到的红外解码值。 These bits are then bit combination is decoded values ​​of the received infrared.

[0074] 本发明的基于电力线的音频远程存取和播放系统工作方式大体如下:音源服务器用于存放大量音源文件,音频编解码工作在房间播放终端进行,用户通过智能遥控终端查看音源服务器的音源列表,选择播放。 [0074] The present invention is based on the audio playback system and a remote access mode of operation power lines substantially as follows: source server for storing a large number of audio files, the audio codec is performed on the playing room terminals, source user terminal to view the remote source server by the intelligent list, select play. 为保证获取数据的正确有效,整个系统通信采用TCP/IP协议,音频服务器端建立UDP服务,为所有在线的房间播放终端建立服务器进程提供服务,每个进程对应一个播放终端的数据传输服务,房间播放终端识别用户的遥控请求后,从音源服务器获取相应音源数据,将接收到数据进行解码并经过功放模块驱动内置的喇叭播放。 In order to ensure correct and effective access to data, the entire communication system using TCP / IP protocol, UDP audio server to establish the service, the server process established to provide services for all online room play terminals, each corresponding to a playback process data transmission service terminal, room after identifying the user terminal displays the remote request, to obtain the corresponding sound source data from the source server, the received data is decoded and driven through a built-in amplifier module speakers.

[0075] 应当理解的是,本领域技术人员利用普通技术知识和/或其它现有技术对本发明做出的替代和变型都不脱离本发明构思。 [0075] It should be appreciated that those skilled in the art using common technical knowledge and / or prior art of the present invention, other alternatives and variations made without departing from the inventive concept.

Claims (17)

  1. 1.一种音频远程存取和播放系统,该系统包括一个音源服务器、一个或多个播放终端;所述音源服务器用于存放音源文件,其包括电源模块、中央处理模块、存储模块、电力载波模块、交互模块;音源服务器的ACDC电源模块的开关电路通过整流桥输入整流,经高频变压器变压,再经输出高频滤波,变成直流电,辅助反馈电路达到直流稳定输出;所述播放终端用于播放音源文件,其包括电源模块、中央处理模块、电力载波模块、音频编解码模块;所述播放终端通过主动请求从音源服务器获取音源数据进行解码播放;音源服务器的电力载波模块由模拟前端调制解调芯片和数字后端处理芯片组成;在数据接收时模拟前端调制解调芯片负责将数据信号从电力线上解调出来然后传递到数字后端芯片处理,最后发送给中央处理模块解析;在数据发送时,中央处理 An audio playback and remote access system including a source server, or a plurality of player terminals; the source server for storing audio files, which includes a power module, a central processing module, a storage module, power line carrier module, interaction module; ACDC circuit switching power source server module via the rectifier bridge input rectifier, the high-frequency transformer transformer, and then outputs the high frequency filter, into DC, a DC auxiliary feedback circuits to stabilize the output; the player terminal for playing audio files, which includes a power module, a central processing module, a power line carrier module, an audio codec module; playing terminal through the active request obtaining source data from a source to decode playback server; a power source server by the analog front end module carrier modem chip and a digital back-end processing chips; modem analog front end chip is responsible for receiving the data when the data signal is demodulated from the power line and then transmitted to the digital back-end chip, and finally sent to the central processing module parses; in when transmitting data, the central processing 元将数据通过发送给数字后端芯片处理,然后传递给模拟前端芯片调制到电力线上;所述音源服务器的ACDC电源模块采用反激式电源开关电路,AC输入85V-265V交流电,标准输入220V交流电,通过整流滤波电路,把交流电AC变成直流电DC,直流电输入高频变压器初级输入端;脉冲宽度调制器电路控制高频变压器初级输入端到次级输出端的能量传递,经过高频整流滤波变成稳定的直流电,直流电的大小由脉冲宽度调制电路的基准电路部分进行反馈控制;电路单路输出直流11.4V,再由11.4V降压到3.3V给整个电路供电,总输出功率5W ;AOTC模块采用基准稳压器和隔离光电耦合器组成的隔离反馈电路,通过稳定的基准输出保证11.4V稳定输出;所述整流滤波电路由二极管和电容组成,二极管整流,将交流电变成脉动的直流电,电容负责滤波,将直流中的交流成分滤掉,减 The meta data processing to the digital back-end chip, and then passed to the analog front-end chip is modulated onto the power line; the source server ACDC power module flyback power switching circuit, the AC input 85V-265V AC, standard 220V AC input , through the rectifier filter circuit, the DC alternating current AC into DC, the DC input terminal of the high frequency transformer primary input; pulse width modulator circuit to control a high-frequency power transformer primary input end to the output end of the secondary transfer, through the high-frequency rectifier filter becomes stable DC, direct current is controlled by the size of the feedback reference circuit portion of the pulse width modulation circuit; single circuit output DC 11.4V, 11.4V and then down to 3.3V by the power supply to the whole circuit, the total output power of 5W; AOTC modules isolation reference regulator feedback circuit and the separator composed of a photocoupler, the output of 11.4V by a stable reference ensure stable output; the rectifier filter circuit composed of a diode and a capacitor, a diode rectifier, pulsating direct current into alternating current, the capacitor is responsible filtering the AC component of the filtered DC, Save 交流成分;高频整流滤波电路由二极管、电感和电容组成;所述ACDC电源模块在信号端和电源端的零线和火线上各加一个1uH到10uH的电感,隔离掉ACDC模块产生的噪声和安规电容对电力线上数据的影响。 An AC component; frequency rectifier filter circuit by the diodes, inductors and capacitors; each of the ACDC power module applied to a 1uH 10uH inductance on the signal and power terminals of the zero line and the line of fire, the isolation module generates ACDC out noise and safety Effect on the power line capacitance of the data.
  2. 2.根据权利要求1所述的音频远程存取和播放系统,其特征在于,所述播放终端还包括音频输入模块,所述音频输入模块从外部输入音源数据。 The remote access and audio playback system according to claim 1, wherein said terminal further comprises playing an audio input module, the audio input module input data from an external source.
  3. 3.根据权利要求2所述的音频远程存取和播放系统,其特征在于,所述播放终端将外部声音输入进行编码并输出到音源服务器保存。 The remote access and audio playback system according to claim 2, wherein the playing terminal and the external sound input and output to excitation encoding server saved.
  4. 4.根据权利要求1 一3中任一所述的音频远程存取和播放系统,其特征在于,所述电源模块是A⑶C电源模块。 The audio playback and remote access system according to any of claims 1 a 3, wherein the power module is a power module A⑶C.
  5. 5.根据权利要求1所述的音频远程存取和播放系统,其特征在于,所述音源服务器与所述播放终端通过电力线传输数据。 The remote access and audio playback system according to claim 1, wherein the source server and the playing terminal transmitting data over power lines.
  6. 6.根据权利要求1 一3中任一所述的音频远程存取和播放系统,其特征在于,所述音源服务器和所述播放终端通过各自的两脚插头分别连接到电力线的零线和火线上,所述电力线实现音频数据的传输。 The audio playback and remote access system according to any of claims 1 a 3, wherein said source server and the playing terminal is connected to the power line and the neutral line of fire through the respective pin plugs are on the power line to achieve transmission of audio data.
  7. 7.根据权利要求1 一3、5中任一所述的音频远程存取和播放系统,其特征在于,电力线是安装所述系统的场所已经具备的。 The audio playback and remote access system according to any of claims 1 a 3, 5, characterized in that the power line of the system is installed in place already has.
  8. 8.根据权利要求1 一3、5中任一所述的音频远程存取和播放系统,其特征在于,所述电力线是与所述系统一起布置的。 According to claim 1 and a Remote Access 3,5 audio playback system according to any one of the claims, characterized in that the power lines are disposed together with the system.
  9. 9.根据权利要求1 一3、5中任一所述的音频远程存取和播放系统,其特征在于,所述播放终端还包括设备控制模块,所述设备控制模块用于控制嵌入安装播放终端的设备,所述设备选自包含插座、电灯在内的多种设备。 According to any of claims 1 a 3, 5, and audio playback system of a remote access according to claim, wherein said playback apparatus further comprises a control terminal module, a control module for controlling the device flush-mounted player terminal device, the device selected from the group comprising sockets, a variety of devices, including lamps.
  10. 10.根据权利要求1 一3、5中任一所述的音频远程存取和播放系统,其特征在于,所述系统还包括一个或多个智能遥控设备,所述遥控设备对播放终端进行控制。 10.1 3,5 a remote access to any and audio playback system according to one of the preceding claims, characterized in that the system further comprises one or more smart remote control devices, remote control device of the player terminal control .
  11. 11.根据权利要求10所述的音频远程存取和播放系统,其特征在于,所述播放终端包括红外收发模块。 11. The remote access and audio playback system of claim 10, wherein, the playing terminal comprises an infrared transceiver module.
  12. 12.根据权利要求1 一3、5中任一所述的音频远程存取和播放系统,其特征在于,所述播放终端包括功放模块和喇叭。 12.1 3,5 a remote access to any and audio playback system according to one of the preceding claims, wherein said amplifier module includes a playing terminal and a speaker.
  13. 13.根据权利要求1 一3、5中任一所述的音频远程存取和播放系统,其特征在于,所述音源服务器选择性地包括播放终端用于实现播放的模块。 13.1 3,5 a remote access and audio playback system according to any one of the preceding claims, wherein the source server selectively playing terminal comprises a module for implementing playback.
  14. 14.根据权利要求1 一3、5中任一所述的音频远程存取和播放系统,其特征在于,所述播放终端选择性地包括音源服务器用于实现存取服务功能的模块。 A 3,5 14.1 to any one of the remote access audio and playback system according to claim, wherein said sound source comprises selectively playing terminal server access module for implementing service functions.
  15. 15.根据权利要求1 一3、5中任一所述的音频远程存取和播放系统,其特征在于,所述音源服务器和所述播放终端安装在场所的不同位置。 15.1 3,5 a remote access and audio playback system according to any one of the preceding claims, wherein the source server and a terminal mounted in different positions of said play spaces.
  16. 16.根据权利要求15所述的音频远程存取和播放系统,其特征在于,所述音源服务器设于客厅,所述播放终端设于客厅、卫生间、厨房、和/或卧室。 16. The remote access and audio playback system according to claim 15, wherein the source server is provided in the living room, the playback terminal provided in the living room, bathroom, kitchen and / or bedroom.
  17. 17.根据权利要求15所述的音频远程存取和播放系统,其特征在于,所述音源服务器设于控制室,所述播放终端设于办公室、居民房屋、和/或车间。 17. The remote access and audio playback system according to claim 15, wherein the source server is provided in the control room, the playback terminal provided in office, residential buildings, and / or workshop.
CN 201310007331 2013-01-09 2013-01-09 An audio playback and remote access systems CN103199895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310007331 CN103199895B (en) 2013-01-09 2013-01-09 An audio playback and remote access systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310007331 CN103199895B (en) 2013-01-09 2013-01-09 An audio playback and remote access systems

Publications (2)

Publication Number Publication Date
CN103199895A true CN103199895A (en) 2013-07-10
CN103199895B true CN103199895B (en) 2015-08-12

Family

ID=48722276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310007331 CN103199895B (en) 2013-01-09 2013-01-09 An audio playback and remote access systems

Country Status (1)

Country Link
CN (1) CN103199895B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064854A (en) * 2006-04-30 2007-10-31 华为技术有限公司 Method for realization of scheduling data transmitting time
CN101399972A (en) * 2007-09-28 2009-04-01 青岛海信电器股份有限公司 Media center system and implementation method thereof
CN202094928U (en) * 2011-06-10 2011-12-28 武汉长光科技有限公司 Multimedia advertising recommending system based on electricity information acquisition system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7423992B2 (en) * 2003-04-16 2008-09-09 Sony Corporation Time slot and carrier frequency allocation in a network
CN202339627U (en) * 2011-10-31 2012-07-18 镇江比太系统工程有限公司 Data acquiring and processing device with multiple communication manners

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064854A (en) * 2006-04-30 2007-10-31 华为技术有限公司 Method for realization of scheduling data transmitting time
CN101399972A (en) * 2007-09-28 2009-04-01 青岛海信电器股份有限公司 Media center system and implementation method thereof
CN202094928U (en) * 2011-06-10 2011-12-28 武汉长光科技有限公司 Multimedia advertising recommending system based on electricity information acquisition system

Also Published As

Publication number Publication date Type
CN103199895A (en) 2013-07-10 application

Similar Documents

Publication Publication Date Title
US20080186150A1 (en) Plug-and-play network digital image display apparatus and image monitoring system
CN201887794U (en) Gateway of internet of things
US20040186926A1 (en) Universal serial bus extension cable
CN102355390A (en) Intelligent home system
CN201331825Y (en) Device for quickly searching remote controller
CN101794500A (en) System capable of remotely controlling electronic and electrical equipment
WO2012113219A1 (en) Method and device for controlling operating mode of household electrical appliance, and intelligent household electrical appliance controller
CN1848826A (en) Home gateway device
CN201707570U (en) Intelligent socket remote control system
CN102662380A (en) Concentrative networking control method and system for family electric appliances
CN201374466Y (en) Intelligent socket based on power line carrier communication
CN102663883A (en) Distributed intelligent remote controller for household appliances
CN202033898U (en) Universal remote controller accessory
CN104216384A (en) Intelligent remote control system combined with lamp
CN1829182A (en) Wireless intelligent house system based on blue tooth infrared
CN103618670A (en) Intelligent gateway and intelligent home system
CN102325065A (en) Double-channel digital family control and interaction system and implementation method thereof
CN101312422A (en) Family gateway sub-system based on bus mode and digital family system
CN104157115A (en) Cloud service based networked all-purpose remote control device and method
CN2733709Y (en) Switching power supply apparatus
CN103166814A (en) Smart home remote control system based on Internet of things
CN102223735A (en) Method and equipment for multi-baseband chips to share and access smart card
CN103327083A (en) Embedded household monitoring system based on heterogeneous network Android platform
CN101902378A (en) Digital home full-service intelligent terminal
CN102843595A (en) Method for controlling intelligent television by voice of terminal device

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted