A kind of multifunctional musical play system
Technical field
The present invention relates to music technical field, in particular to a kind of multifunctional musical play system.
Background technique
Music is a kind of form for the thoughts and feelings and social real-life for expressing people, for playing the music of music
Playback equipment is with the improvement of people's living standards, it has become one of people's life necessity.Currently, with movement
The arrival of internet, online music is due to its convenience and individualized experience, increasingly at the main music in for people's lives
Source, it is traditional with CD/VCD/DVD/ cassette tape/USB flash disk etc. be medium music player also gradually by online music player
Substitution, and computer, mobile phone etc. then become the main playback equipment for playing online music.Existing music player devices, to its into
Row control relies primarily on and control panel or remote controler.
And with the development of science and technology, the function of the intelligent terminals such as existing smart phone or tablet computer is very powerful
With it is abundant, reality is had become to carry out control to music player devices by intelligent terminal.And existing intelligent terminal is being controlled
For music player devices processed in Music on Demand, user experience is poor, how to construct the music for being convenient for user's control and operation
System becomes the technical problems to be solved by the invention.Therefore, a kind of multifunctional musical play system is invented to solve above-mentioned ask
It inscribes necessary.
Summary of the invention
It is mentioned above in the background art to solve the purpose of the present invention is to provide a kind of multifunctional musical play system
Problem.
To achieve the above object, it the invention provides the following technical scheme: a kind of multifunctional musical play system, including is used for
Receive user and the server music signal transmitted and the music playing system played out, for music playing system
The network server of online music service and the intelligent terminal for carrying out artificial music service to music playing system, institute are provided
It states music playing system connecting pin and is provided with UPS power storage module, and the input terminal of UPS power storage module and municipal administration AC 220V power supply
It is attached realization charging, the music playing system is made of single-chip microcontroller, detection system and the reserved removing system of caching,
In;
Single-chip microcontroller be for music playing system the music transmitted of received network server and intelligent terminal believe
It number is analyzed and is handled, and stored, single-chip microcontroller is independently played when needing to play a certain music signal;
Detection system be for being detected to music signal received by single-chip microcontroller, and according to the time of input into
Row arrangement, while the repetition music signal that detection system meeting automatic fitration single-chip microcontroller receives;
Cache reserved removing system be for being purged to being cached caused by the received music signal of institute in single-chip microcontroller,
And carry out storing again after primary delete spare, and the signal received by the single-chip microcontroller is in caching reserved removing system
It stores in spare sometimes, single-chip microcontroller is directly transferred in caching reserved removing system, when stored spare music signal
Reach and carries out the secondary space deleted liberation and cache reserved removing system again after a certain period of time;
The single-chip microcontroller connecting pin is provided with network communication module and bluetooth module, and the network server is logical by network
Believe that module and music playing system carry out wireless or wired connection, the intelligent terminal passes through network communication module or bluetooth mould
Block and music playing system carry out bluetooth/wireless connection.
Preferably, the single-chip microcontroller includes receiving and output unit, data analysis and processing unit, arithmetic unit and storage mould
Block, the reception and output unit output end are connect with data analysis and processing unit input terminal, the data analysis and processing unit
Output end is connect with arithmetic unit input terminal, and the arithmetic unit output end is connect with memory module input terminal, and the memory module is defeated
Outlet, which is provided with, transfers unit, and transfers unit output end and connect with reception and output unit input terminal, and the memory module is defeated
Enter end and is additionally provided with comparing unit.
Preferably, the detection system includes time typing unit, automatic sieving unit and arrangement units, the time record
Enter unit output end to connect with automatic sieving unit input terminal, the automatic sieving unit output end and arrangement units input terminal connect
It connects, the data analysis and processing unit, time typing unit, automatic sieving unit, arrangement units and arithmetic unit series connection row are at one
A circuit.
Preferably, the reserved removing system of the caching includes that once deletion unit, the secondary deletion unit of caching are gentle for caching
Storage unit is deposited, the primary unit output end of deleting of the caching is connect with buffer memory unit input terminal, and the caching is secondary to be deleted
Except unit input terminal is connect with buffer memory unit output end, another output end of buffer memory unit is provided with caching and transfers
Unit, the caching are transferred unit output end and are connect with reception and output unit input terminal.
Preferably, the music playing system input terminal is provided with memory, the memory by 3.0 interface of USB,
One of USB interface, HDMI interface, SD interface or DVI interface are attached with the unit of transferring in music playing system.
Preferably, the intelligent terminal is set as one of smart phone, iPad or computer, wherein the mobile phone passes through
Bluetooth module is attached with music playing system, and the iPad passes through network communication module or bluetooth module and music system
System is attached, and the computer is attached by network communication module and music playing system.
Preferably, the music playing system output end is provided with loudspeaker, in the loudspeaker input terminal and single-chip microcontroller
Reception connected with output unit output end, the loudspeaker input terminal is additionally provided with sound and adjusts unit, and the sound is adjusted
Unit output end is connect with single-chip microcomputer input.
A kind of playback method of multifunctional musical play system, including method in detail below:
Step 1: UPS power storage module is electrically connected with music playing system first, is reached using UPS power storage module
To the continued power to music playing system, then there is the memory of a large amount of music to connect by 3.0 interface of USB, VGA storage
One of mouth, HDMI interface, SD interface or DVI interface are attached with music playing system, subsequently by music system
System carries out wired, wireless or bluetooth connection by network communication module or bluetooth module and network server or intelligent terminal
Mode is connected;
Step 2: when needing to carry out music, people pass through smart phone, iPad or the computer in intelligent terminal
One of carry out a music, and the signal of music is passed to by music by bluetooth or wireless transmission mode
Single-chip microcontroller in system, and the reception and output unit in single-chip microcontroller receive the signal transmitted and pass to data
Analysis and processing unit, data analysis and processing unit are conveyed to arithmetic unit after being analyzed and processed to received signal and transport
Calculate, arithmetic unit prestores in a storage module after getting well signal operation, and comparing unit can to the signal prestored in memory module and
The signal stored in memory is compared, if memory there are the signal of the put music of people, transfers unit directly from depositing
Corresponding signal is transferred in reservoir and received and output unit passes to loudspeaker and carries out music;
If comparing unit compares in non-invention memory, there are after the signal of the put music of people, transfer unit to utilize net
Network communication module connects network server, and corresponding music signal is transferred from network server, then received and defeated
Unit passes to loudspeaker and carries out music out;
Step 3: data analysis and processing unit to the mistake of arithmetic unit is passed to after the processing of received music signal processing
Cheng Zhong, before and after the time that time typing unit in detection system can be handled the music put according to data analysis and processing unit
Typing is carried out, and automatic sieving unit sieves the music of institute's typing, some duplicate music is deleted, then
By arrangement units being arranged around time according to time typing unit typing, and the music arranged is delivered to fortune
It calculates in device and carries out operation;
Step 4: after playing a large amount of music, the caching in the reserved removing system of caching once deletes unit can be to storage
Generated music caching carries out first time deletion in module, and when music of deletion is accounted for is pre-stored in buffer memory unit
In, comparing unit can transfer signal out of caching storage unit simultaneously and be compared in step 2, if buffer memory unit
Middle there are the signals of the put music of people, then caching transfers unit and directly transfers corresponding music signal from caching storage unit
And received and output unit passes to loudspeaker and carries out music, when the music that buffer memory unit deletes first time
Deposit after prestoring and reaching the stipulated time, cache it is secondary delete unit and can will reach the music for prestoring the time in buffer memory unit carry out
Permanent delet.
Technical effect and advantage of the invention:
1, the present invention by the way that the memory and music playing system of storing a large amount of music are attached, by music system
System is attached by network communication module and network server and by caching the buffer memory unit in reserved removing system
The multi-faceted of music source is transferred in the music prestored, realization, directly carries out music searching by network server with existing
It compares, network burden can be alleviated significantly, in addition this system playing process is simple, strong operability, is suitble to extensive utilization;
2, the music playing system in the present invention passes through network communication module or bluetooth module and network server or intelligence
Terminal carries out wired, wireless or bluetooth connection type and is attached, and can allow music playing system quickly from net
It imports music in network server, and is realized using intelligent terminal and remotely the signal of music playing system is inputted, while by sound
Happy play system is electrically connected with UPS power storage module, can not be made in the event of a power failure to avoid music playing system
With;
3, the present invention is recorded by the setting of detection system using the signal time that time typing unit receives
Enter, while automatic sieving unit carries out duplicate checking to the signal of typing, the operation burden of single-chip microcontroller can be greatly reduced in this way, thus
Extend the service life of single-chip microcontroller;
4, the present invention reserves the setting of removing system by caching, and can achieve to produced by the memory module in single-chip microcontroller
Caching be purged, speed is transferred to improve, and delete by the way that caching is primary in the space in alleviation memory module significantly
Unit and the secondary secondary deletion for deleting unit of caching prestore the music once deleted with buffer memory unit, in this way may be used
To greatly improve the utilization rate of the played music of single-chip microcontroller.
Detailed description of the invention
Fig. 1 is present system structural schematic diagram.
Fig. 2 is music playing system structural schematic diagram of the present invention.
Fig. 3, which is that present invention caching is reserved, removes system structure diagram.
In figure: 1, music playing system;2, network server;3, intelligent terminal;4, UPS power storage module;5, single-chip microcontroller;
51, reception and output unit;52, data analysis and processing unit;53, arithmetic unit;54, memory module;55, unit is transferred;56, compare
To unit;6, detection system;61, time typing unit;62, automatic sieving unit;63, arrangement units;7, caching is reserved removes
System;71, caching is primary deletes unit;72, secondary deletion unit is cached;73, buffer memory unit;74, caching transfers unit;
8, network communication module;9, bluetooth module;10, memory;11, loudspeaker.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Embodiment 1
The present invention provides a kind of multifunctional musical play systems as shown in Figs. 1-3, including for receiving user's kimonos
Business the device music signal transmitted and play out music playing system 1, for music playing system 1 provide network audio
The happy network server 2 serviced and the intelligent terminal 3 for carrying out artificial music service to music playing system 1, the music
1 connecting pin of play system is provided with UPS power storage module 4, and the input terminal of UPS power storage module 4 and municipal administration AC 220V power supply carry out
Charging is realized in connection, and the music playing system 1 is made of single-chip microcontroller 5, detection system 6 and the reserved removing system 7 of caching,
In:
Single-chip microcontroller 5 be for music playing system 1 the sound that is transmitted of received network server 2 and intelligent terminal 3
Music signal is analyzed and is handled, and is stored, and when needing to play a certain music signal, single-chip microcontroller 5 is carried out from main broadcaster
It puts;
Detection system 6 is for detecting to music signal received by single-chip microcontroller 5, and according to the time of input
It is arranged, while the repetition music signal that the meeting automatic fitration single-chip microcontroller 5 of detection system 6 receives;
It is clear for carrying out to caching caused by the received music signal of institute in single-chip microcontroller 5 for caching reserved removing system 7
It removes, and after primary delete carries out storing again spare, and the signal received by the single-chip microcontroller 5 removes system caching is reserved
It is stored in spare sometimes in system 7, single-chip microcontroller 5 is directly transferred in caching reserved removing system 7, when stored spare sound
Music signal reaches carries out the secondary space deleted liberation and cache reserved removing system 7 again after a certain period of time;
5 connecting pin of single-chip microcontroller is provided with network communication module 8 and bluetooth module 9, and the network server 2 passes through net
Network communication module 8 and music playing system 1 carry out wireless or wired connection, and the intelligent terminal 3 passes through network communication module 8
Or bluetooth module 9 and music playing system 1 carry out bluetooth/wireless connection.
Embodiment 2
Further, in the above scheme, the single-chip microcontroller 5 includes receiving and output unit 51, Data Analysis Services list
Member 52, arithmetic unit 53 and memory module 54, the reception and 51 output end of output unit and data analysis and processing unit 52 input
End connection, 52 output end of data analysis and processing unit connect with 53 input terminal of arithmetic unit, 53 output end of arithmetic unit and
The connection of 54 input terminal of memory module, 54 output end of memory module, which is provided with, transfers unit 55, and transfers 55 output end of unit
It is connect with reception and 51 input terminal of output unit, 54 input terminal of memory module is additionally provided with comparing unit 56.
Further, in the above scheme, the detection system 6 includes time typing unit 61, automatic sieving unit 62
With arrangement units 63,61 output end of time typing unit is connect with 62 input terminal of automatic sieving unit, the automatic sieving
62 output end of unit is connect with 63 input terminal of arrangement units, the data analysis and processing unit 52, time typing unit 61, automatic
Sieve unit 62, arrangement units 63 and the series connection row of arithmetic unit 53 are at a circuit.
Further, in the above scheme, the caching reserves removing system 7 and includes the primary deletion unit 71 of caching, delays
Secondary deletion unit 72 and caching storage unit 73 are deposited, the caching is primary to delete 71 output end of unit and buffer memory unit 73
Input terminal connection, secondary 72 input terminal of deletion unit of caching is connect with 73 output end of buffer memory unit, described to deposit
Another output end of storage unit 73 is provided with caching and transfers unit 74, and the caching transfers 74 output end of unit and receives and export and is single
First 51 input terminals connection.
Further, in the above scheme, 1 input terminal of music playing system is provided with memory 10, the storage
Device 10 by one of 3.0 interface of USB, USB interface, HDMI interface, SD interface or DVI interface in music playing system 1
Unit 55 of transferring be attached.
Further, in the above scheme, the intelligent terminal 3 is set as one of smart phone, iPad or computer,
Wherein the mobile phone is attached by bluetooth module 9 with music playing system 1, the iPad pass through network communication module 8 or
Bluetooth module 9 is attached with music playing system 1, and the computer is carried out by network communication module 8 and music playing system 1
Connection.
Further, in the above scheme, 1 output end of music playing system is provided with loudspeaker 10, the loudspeaking
10 input terminal of device in single-chip microcontroller 5 reception and 51 output end of output unit connect, 10 input terminal of loudspeaker is additionally provided with
Sound adjusts unit, and the sound adjusts unit output end and connect with 5 input terminal of single-chip microcontroller.
Embodiment 3
The present invention also provides a kind of playback methods of multifunctional musical play system, including method in detail below:
UPS power storage module 4 and music playing system 1: being electrically connected by step 1 first, utilizes UPS power storage module 4
Reach the continued power to music playing system 1, then will storage have the memories 10 of a large amount of music by 3.0 interface of USB,
One of USB interface, HDMI interface, SD interface or DVI interface are attached with music playing system 1, subsequently by music
Play system 1 by network communication module 8 or bluetooth module 9 and network server 2 or intelligent terminal 3 carry out it is wired, wireless or
The connection type of person's bluetooth is connected;
Step 2: when needing to carry out music, people pass through smart phone, iPad or the electricity in intelligent terminal 3
One of brain carries out a music, and the signal of music is passed to music by bluetooth or wireless transmission mode and is broadcast
Single-chip microcontroller 5 in place system 1, and 51 pairs of signals transmitted of reception and output unit in single-chip microcontroller 5 are received and are passed
Data analysis and processing unit 52 is passed, data analysis and processing unit 52 is conveyed to after being analyzed and processed to received signal
Arithmetic unit 53 carries out operation, and arithmetic unit 53 is pre-stored in memory module 54 after getting well signal operation, and comparing unit 56 can be to depositing
The signal stored in the signal and memory 10 prestored in storage module 54 is compared, if there are the put sounds of people for memory 10
Happy signal, transfers that unit 55 directly transfers corresponding signal from memory 10 and received and output unit 51 passes to
Loudspeaker 10 carries out music;
If comparing unit 56 compares in non-invention memory 10 there are after the signal of the put music of people, unit 55 is transferred
Network server 2 is connected using network communication module 8, and transfers corresponding music signal from network server 2, is then passed through
It receives and output unit 51 passes to loudspeaker 10 and carries out music;
Step 3: arithmetic unit 53 is passed to after the received music signal processing processing of 52 pairs of institutes of data analysis and processing unit
During, the time typing unit 61 in detection system 6 can be handled the music put according to data analysis and processing unit 52
Time before and after carry out typing, and the music of 62 pairs of institute's typings of automatic sieving unit is sieved, by some duplicate music
It is deleted, then by being arranged around time according to 61 typing of time typing unit of arrangement units 63, and by institute
The music of arrangement, which is delivered in arithmetic unit 53, carries out operation;
Step 4: after playing a large amount of music, cache the caching in reserved removing system 7 once delete unit 71 can be to depositing
Buffer memory list is pre-stored in when storing up generated music caching in module 54 and carry out first time deletion, and the music of deletion being accounted for
In member 73, comparing unit 56 can transfer signal out of caching storage unit 73 simultaneously and be compared in step 2, if caching
There are the signals of the put music of people in storage unit 73, then caching is transferred unit 74 and directly transferred from caching storage unit 73
Corresponding music signal and received and output unit 51 pass to loudspeaker 10 and carry out music, when buffer memory unit
After 73 pairs of music deleted for the first time deposit and prestore and reach the stipulated time (such as: the predetermined time is set as 36 hours), caching two
Secondary unit 72 of deleting can will reach the music progress permanent delet for prestoring the time in buffer memory unit 73.
Finally, it should be noted that the foregoing is only a preferred embodiment of the present invention, it is not intended to restrict the invention,
Although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art, still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features,
All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in of the invention
Within protection scope.