CN204857133U - Guide's machine based on singlechip - Google Patents

Guide's machine based on singlechip Download PDF

Info

Publication number
CN204857133U
CN204857133U CN201520438101.7U CN201520438101U CN204857133U CN 204857133 U CN204857133 U CN 204857133U CN 201520438101 U CN201520438101 U CN 201520438101U CN 204857133 U CN204857133 U CN 204857133U
Authority
CN
China
Prior art keywords
module
voice
speech processing
processing module
speech
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN201520438101.7U
Other languages
Chinese (zh)
Inventor
朱文忠
蒋华龙
周述文
刘小芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan University of Science and Engineering
Original Assignee
Sichuan University of Science and Engineering
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
Application filed by Sichuan University of Science and Engineering filed Critical Sichuan University of Science and Engineering
Priority to CN201520438101.7U priority Critical patent/CN204857133U/en
Application granted granted Critical
Publication of CN204857133U publication Critical patent/CN204857133U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The utility model provides a guide's machine based on singlechip, including pronunciation transmitting terminal and speech perception end, the pronunciation transmitting terminal includes a voice acquisition module, a voice processing module and a wireless transmission module, the 2nd voice acquisition module, the 2nd voice processing module, the 2nd wireless transmission module, MP3 module and voice output module are drawn together to the speech perception hand ladle. The utility model discloses realize the bidirectional between guide and visitor and can let the visitor independently select to listen to the content.

Description

A kind of SCM Based guide machine
Technical field
The utility model relates to travelling technical field of communication equipment, particularly the SCM Based guide machine of one.
Background technology
In the modern life, tourism becomes the main leisure way of people day by day, and also therefore each large scenic spot is provided with guide, for visitor provides explanation service.But along with the fast development of tourist industry, also create some problems thereupon, when such as visitor is too much, guide lead group of people and explanation time very difficult, be difficult to misgivings thorough, there is guide machine thereupon, existing wireless communication technology have also been obtained widespread use in guide machine field, wireless guide machine, compared with traditional guide machine, facilitates guide interpreting and checks visitor's number, also improving the ability of solution of emergent event.But the research of existing wireless guide machine is all one-way system, i.e. guide interpreting, visitor listens to, visitor can not select according to oneself hobby the content wanting to listen to, and visitor can only listen to the content of the on-the-spot explanation of guide, many times can not meet the individual needs of visitor.
Utility model content
The technical problems to be solved in the utility model be to provide a kind of can transmitted in both directions and visitor can be allowed to listen to the SCM Based guide machine of content from main separation.
For solving the problems of the technologies described above, technical solution adopted in the utility model is: provide a kind of SCM Based guide machine, comprise voice transmission end and phonetic incepting end, described voice transmission end comprises the first voice acquisition module, the first speech processing module and the first wireless transport module, the output terminal of the first voice acquisition module connects the first speech processing module input end, and the output terminal of the first speech processing module connects the first wireless transport module, phonetic incepting end comprises the second voice acquisition module, second speech processing module, second wireless transport module, MP3 module and voice output module, second wireless transport module communicates with the first wireless transport module, the output terminal of the second wireless transport module is connected with the input end of the second speech processing module, the output terminal of the second speech processing module is connected with the input end of voice output module, MP3 module is connected with the second speech processing module, and the second speech processing module control MP3 module output audio signal, second voice acquisition module is connected with the second speech processing module.
Preferably, first voice acquisition module and the second voice acquisition module include microphone, voice transmission end and phonetic incepting end all gather sound signal by microphone, sound signal are changed into electric signal and are sent to the first speech processing module or the second speech processing module.
Preferably, first speech processing module comprises the prime amplifier, A/D converter, sampling unit, compression coding unit and the FLASH buffer unit that connect successively by voice signal transmission direction, the sound signal that the first voice acquisition module collects by the first speech processing module through amplifying, A/D conversion, sampling filter out noise, coding, after compression stored in a FLASH buffer unit.
Preferably, second speech processing module comprises the 2nd FLASH buffer unit connected successively by voice signal transmission direction, decode decompression units, D/A converter and output interface, second speech processing module is by first stored in the 2nd FLASH buffer unit for the sound signal received, when user needs listening to audio, the sound signal being stored in the 2nd FLASH buffer unit outputs in voice output module by output interface, by voice output module audio plays by the second speech processing module after decoding, decompress(ion), D/A conversion.
Preferably, output interface and voice output model calling, voice output module comprises earphone or loudspeaker.
Preferably, the main control chip of the first speech processing module and the second speech processing module is SPCE061A single-chip microcomputer.
Preferably, the first wireless transport module and the second wireless transport module are nRF2401 radio receiving transmitting module.
Preferably, MP3 module comprises control chip STC11L16XE single-chip microcomputer, chip of speech decoder VS1003B and SD card, the output terminal of control chip STC11L16XE single-chip microcomputer connects chip of speech decoder VS1003B and SD card respectively, two-way communication between chip of speech decoder VS1003B and SD card, the output terminal of chip of speech decoder VS1003B and voice output model calling.
Preferably, voice transmission end comprises MP3 module and voice output module, and MP3 module is connected with the first speech processing module, and MP3 module and voice output model calling, voice transmission end can be selected to listen to the audio frequency in MP3 module, and the audio frequency in MP3 module is play by voice output module.
Preferably, MP3 module is connected with the second speech processing module, and the second speech processing module comprises several Play Control keys, and Play Control key control second speech processing module reads the audio frequency in MP3 module, and is exported by voice output module.
Compared with prior art, the beneficial effects of the utility model are:
The SCM Based guide machine that the utility model provides comprises voice transmission end and phonetic incepting end two parts, and each part all has voice acquisition module, speech processing module and wireless transport module, the explanation visitor listening function that guide leads group of people can be realized, and the function of content during visitor's self-service trip, can be listened to from main separation, guide machine on the market generally can only realize one-way communication, and this guide machine can realize two-way communication, solve the difficult problem that the voice bidirectional between guide and visitor transmits.
Moreover, in design process of the present utility model, first complete the design of voice acquisition module, by analytical calculation, adopt the scheme that noise is minimum; Next completes the design of speech processing module, adopts the FLASH buffer unit of the inner 32K of SPCE061A as buffer memory, solves mating of voice collecting speed and Wireless Data Transmission speed; Then adopt nRF2401 wireless module transmitting audio data, write the signal procedure of corresponding wireless voice transmission system; Finally, write corresponding control program based on MP3 module, realize the function that button plays the explanation of corresponding sight spot.Design and produce the principle prototype of guide machine, and overall performance test has been carried out to model machine, obtain transfer rate and the transmission range of this guide machine.
In preferred version of the present utility model, two speech processing module all adopt the SPCE061A single-chip microcomputer of low cost, than the speech processes mode that control chip in the past and pronounciation processing chip combine, the utility model achieves the voice transfer scheme of low-power consumption.In addition, two wireless transport modules of the present utility model all adopt the wireless transport module nRF2401 of two-forty, and it is farther that transmission range compares common guide machine, and voice signal is more stable.
The utility model can also arrange the sound signal that Play Control key control MP3 module exports the storage of inner SD card, meet the needs that visitor wants at different sight spot to listen different sight spot to explain, the audio frequency such as music can also be stored in SD card, more graceful music can be provided to visitor in road between sight spot and sight spot, bring the finer tourism time to visitor.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the utility model is described in further detail:
Fig. 1 is the general structure block diagram of the SCM Based guide machine that the utility model provides;
Fig. 2 is wireless transport module nRF2401 of the present utility model and SPCE061A interface microcontroller circuit diagram;
Fig. 3 is that wireless transport module nRF2401 of the present utility model sends speech data flow process figure;
Fig. 4 is that wireless transport module nRF2401 of the present utility model receives speech data flow process figure;
Fig. 5 is the structured flowchart of voice transmission end of the present utility model;
Fig. 6 is the structured flowchart of phonetic incepting end of the present utility model;
Fig. 7 is MP3 structured flowchart of the present utility model;
Fig. 8 is overall tourist device systems workflow diagram of the present utility model;
In Fig. 9, the oscillogram of phonetic entry when a is the utility model test tourist device systems; The oscillogram of voice output when b is the utility model test tourist device systems;
In Figure 10, the oscillogram of the voice that voice transmitting terminal sends when a is the utility model test tourist device systems; The oscillogram of the voice that phonetic incepting termination receives when b is the utility model test tourist device systems.
Embodiment
As shown in figs. 1-7, the SCM Based guide machine that the utility model provides, comprise voice transmission end and phonetic incepting end, voice transmission end comprises the first voice acquisition module, the first speech processing module and the first wireless transport module, the output terminal of the first voice acquisition module connects the first speech processing module input end, and the output terminal of the first speech processing module connects the first wireless transport module, phonetic incepting end comprises the second voice acquisition module, second speech processing module, second wireless transport module, MP3 module and voice output module, second wireless transport module communicates with the first wireless transport module, the output terminal of the second wireless transport module is connected with the input end of the second speech processing module, the output terminal of the second speech processing module is connected with the input end of voice output module, MP3 module is connected with the second speech processing module, and the second speech processing module control MP3 module output audio signal, second voice acquisition module is connected with the second speech processing module, the voice transmission end of guide machine gathers sound signal by the first voice acquisition module, voice data is inputted in the first speech processing module, when phonetic incepting end needs audio reception, first speech processing module reads corresponding voice data and is sent to the second wireless transport module with the form of packet from the first wireless transport module, after phonetic incepting end receives data, be input in the second speech processing module, play by voice output module after the second speech processing module process, phonetic incepting end can be selected to listen to the audio frequency in MP3 module, and the audio frequency in MP3 module is play by voice output module.
As one preferred embodiment, the first voice acquisition module and the second voice acquisition module include microphone; Voice transmission end and phonetic incepting end all gather sound signal by microphone, sound signal are changed into electric signal and are sent to the first speech processing module or the second speech processing module.First speech processing module comprises the prime amplifier, A/D converter, sampling unit, compression coding unit and the FLASH buffer unit that connect successively by voice signal transmission direction, the sound signal that the first voice acquisition module collects by the first speech processing module through amplifying, A/D conversion, sampling filter out noise, coding, after compression stored in a FLASH buffer unit.Second speech processing module comprises the 2nd FLASH buffer unit connected successively by voice signal transmission direction, decode decompression units, D/A converter and output interface, second speech processing module is by first stored in the 2nd FLASH buffer unit for the sound signal received, when user needs listening to audio, the sound signal being stored in the 2nd FLASH buffer unit outputs in voice output module by output interface, by voice output module audio plays by the second speech processing module after decoding, decompress(ion), D/A conversion.
As one preferred embodiment, output interface and voice output model calling, voice output module comprises earphone or loudspeaker.
As one preferred embodiment, the main control chip of the first speech processing module and the second speech processing module is SPCE061A single-chip microcomputer.First wireless transport module and the second wireless transport module are nRF2401 radio receiving transmitting module.
As one preferred embodiment, MP3 module comprises control chip STC11L16XE single-chip microcomputer, chip of speech decoder VS1003B and SD card, the output terminal of control chip STC11L16XE single-chip microcomputer connects chip of speech decoder VS1003B and SD card respectively, two-way communication between chip of speech decoder VS1003B and SD card, the output terminal of chip of speech decoder VS1003B and voice output model calling.MP3 module is connected with the second speech processing module, and the second speech processing module comprises several Play Control keys, and Play Control key control second speech processing module reads the audio frequency in MP3 module, and is exported by voice output module.
As one preferred embodiment, voice transmission end comprises MP3 module and voice output module, MP3 module is connected with the first speech processing module, and MP3 module and voice output model calling, voice transmission end can be selected to listen to the audio frequency in MP3 module, and the audio frequency in MP3 module is play by voice output module.
Introduce the SCM Based guide machine specific design scheme that the utility model provides below in detail.
One, guide machine General layout Plan
This guide machine with SPCE061A single-chip microcomputer for primary controller, by nRF2401 radio receiving transmitting module receiving and transmitting voice data.The utility model is made up of two cover SPCE061A and nRF2401, the microphone of voice acquisition module gathers voice, voice signal is placed in the FLASH buffer unit of SPCE061A inside after SPCE061A Chip Microcomputer A/D conversion, compression, then launches through nRF2401.A set ofly in addition from nRF2401, receive data, these data, after SPCE061A decompress(ion), D/A conversion, output to output interface through power amplifier, can the corresponding voice of uppick by earphone or loudspeaker.
Above-mentioned two nested structures are respectively voice transmission end and phonetic incepting end, and the transmission between two nested structures is realized by a pair wireless radio frequency modules, and the general structure of this guide machine as shown in Figure 1.
All in all, the utility model comprises voice acquisition module, wireless transport module, speech processing module and MP3 module, voice output module.
1, voice acquisition module
Voice acquisition module realizes the collection to voice.The audio frequency range that people can hear is generally 20Hz-20000Hz, and general speech frequency is up to 3400Hz.According to sampling thheorem, when sample frequency is greater than the twice bandwidth of signal, sampling process would not drop-out.In the utility model, speech sample frequency is decided to be 8kHz, achieves the high tone quality collection to voice.The primary controller of this guide machine is SPCE061A single-chip microcomputer, and clock highest frequency is 49MHz, has the advantage of high-speed computation.
If the voice signal collected is directly inputted to wireless transport module nRF2401, the impact of wireless transport module nRF2401 execution speed will be subject to, cause the loss of speech data, in order to solve the speeds match between the high-speed data of voice collecting and wireless transport module nRF2401, the utility model adopts the FLASH buffer unit of SPCE061A single-chip microcomputer self as buffer memory.In voice collecting process, SPCE061A single-chip microcomputer constantly reads speech data from FLASH buffer unit, is input in wireless transport module nRF2401 the firing operation carrying out next step.
Voice acquisition module completes the collection of speech data, gives wireless transport module nRF2401 the data collected.In the utility model, voice are by being converted to electric signal after microphone, then in AD conversion, with certain speed, simulating signal are converted to digital quantity.The frequency of AD sampling is higher, and the tonequality of voice is better, but the storage space needed is larger.For voice, use the sampling rate of 8KHz just can obtain good effect, when SPCE061A single-chip microcomputer gathers voice, adopt the sampling rate of 8KHz.
Voice acquisition module, based on SPCE061A single-chip microcomputer, selects electret condenser microphone as acoustic pickup, realizes the collection to voice.Electret microphone volume is little, structure is simple, performance is good and cheap, and application widely.Because the voice collecting speed under SPCE061A Single-chip Controlling is greater than the execution speed of wireless transport module nRF2401, so using the speech data that collects stored in the FLASH of SPCE061A single-chip microcomputer as buffer memory, speech data at a high speed is temporarily stored, is convenient to wireless transport module nRF2401 and reads.
2, wireless transport module
Wireless transport module is the passage of voice data transmission, completes transmission and the reception of data.The utility model selects the wireless transport module nRF2401 of Nordic company, and working frequency range is 2.4GHz, supports 250kbps and 1Mbps transfer rate.The data at every turn sent due to this wireless transport module nRF2401 can not more than 32 bytes, so SPCE061A single-chip microcomputer is after FLASH buffer unit reading data, process data into packet according to communication protocol, complete the transmitting of speech data with the form of packet.After wireless receiving module receives data, be input to by speech data in FLASH buffer unit, SPCE061A carries out follow-up decoding playback process.
(1) wireless transport module hardware design
Wireless transport module adopts two pieces of wireless transport module nRF2401 to realize transmission and the reception of speech data.In this module, voice are stored in queue of encoding in sheet after microphone, A/D conversion and compressed encoding, and after coding queue is filled with, VoP is written in FLASH buffer unit.Under the control of SPCE061A single-chip microcomputer, by spi bus, one frame speech data write wireless transport module nRF2401 is carried out wireless transmission.After phonetic incepting end receives data, SPCE061A reads data, reads in FLASH buffer unit by the data received by spi bus, and the packed data in FLASH buffer unit is removed rear feeding decoding queue, by decompress(ion), plays after D/A conversion.
Wireless transport module nRF2401 is equipped with 50 Europe, gain is the antenna of 2dBi, add the distance that wireless transport module nRF2401 receives and dispatches, the 16M crystal that crystal selects high-quality, low temperature wafts, improve accuracy and the consistance of transceiver module frequency, avoid occurring the instability due in the communication that the difference of frequency causes.
SPCE061A single-chip microcomputer itself is without SPI interface, I/O mouth SPI-bus analogue sequential is utilized to realize the communication of SPCE061A single-chip microcomputer and wireless transport module nRF2401 in the utility model, spi bus interface is simple, transfer rate is high, the communication of single-chip microcomputer and various peripheral components full duplex, synchronous serial can be realized, only need four lines, take interface line few, therefore, voice transmission end adopts SPI communication mode to be connected with the SPCE061A single-chip microcomputer of phonetic incepting end with wireless transport module nRF2401.As shown in Figure 2, pin CE, CLK1, DATA1, DR1 of wireless transport module nRF2401, realize the exchanges data of single-chip microcomputer and wireless transport module nRF2401 for wireless transport module nRF2401 and SPCE061A interface microcontroller circuit.PWR_UP, CE, CS are used for controlling the mode of operation of wireless transport module nRF2401.Whether pin PWR_UP control chip is in power on mode.DR1 pin is the interrupt pin that data send or receive, and when DR1 is high level, turn-on data receives; After SPCE061A single-chip microcomputer has read data, DR1 has transferred low level to automatically.DR1 pin, by pin IOB3 (negative edge triggering) external interrupt control of SPCE061A single-chip microcomputer, can detect single-chip microcomputer and whether read speech data.CE pin is Enable Pin, controls wireless transport module nRF2401 and is in reception or transmission state.
(2) wireless transport module Software for Design
The mode of operation of wireless transport module nRF2401 has 4 kinds, is respectively transceiver mode, configuration mode, idle pulley and shutdown mode.Transceiver mode has ShockBurstTM to receive and dispatch and direct transceiver mode, and the utility model adopts ShockBurstTM transceiver mode.In ShockBurstTM transceiver mode, the stack area of wireless transport module nRF2401 chip internal is used to, speech data sends into wireless transport module nRF2401 stack area with low speed from SPCE061A, be transferred wirelessly at a high speed module nRF2401 to launch, reduce the power consumption of wireless transport module nRF2401.Under this transceiver mode, achieve and also can obtain very high radio frequency voice data transmissions speed with the single-chip microcomputer of low speed, and voice signal aloft the residence time short, improve anti-interference.
Because wireless transport module nRF2401 adopts ShockBurstTM transceiver mode, in such a mode, programming is comparatively simple, and stability is high.SPCE061A single-chip microcomputer, by changing the configuration words of ShockBurstTM, changes the content in lowest byte, can realize the switching of receiving mode and sending mode, make communication protocol fairly simple.The configuration words of ShockBurstTM has following four parts:
A, data width: determine the figure place that the valid data in packet take, be convenient to SPCE061A single-chip microcomputer and distinguish data in the packet received and check code.
B, address width: determine the figure place that the address in packet takies, make SPCE061A monolithic function distinguish address and data.
C, address: the address receiving data.
D, CRC: enable SPCE061A single-chip microcomputer generate CRC check code, be convenient to whether the verification of SPCE061A single-chip microcomputer is correct packet.
After the microphone of voice acquisition module collects voice, enter in the FLASH buffer unit of SPCE061A single-chip microcomputer after A/D conversion, compressed encoding, wireless transport module nRF2401 is under SPCE061A Single-chip Controlling, CE is set to high level, and wireless transport module nRF2401 starts working.Speech data in the address of the wireless transport module nRF2401 receiving cable 1 of receiving end and armed FLASH buffer unit is admitted to the stack area of wireless transport module nRF2401 chronologically.CE sets low by SPCE061A single-chip microcomputer, the ShockBurstTM Mode Launch speech data of open wireless transport module nRF2401.Data in stack area are packaged, add prefix and CRC check code.The CRC check position of efficient voice data+1 byte of receiver address+24 bytes of prefix+1 byte of 1 byte constitutes packet, packet is transferred wirelessly module nRF2401 transmitted at high speed and goes out, after transmitting completes, wireless transport module nRF2401 comes back to standby mode.Wireless transport module nRF2401 sends speech data flow process figure as shown in Figure 3.
Phonetic incepting end, under SPCE061A Single-chip Controlling, completes wireless transport module nRF2401 and configures, and ensures that the configuration of the wireless transport module nRF2401 of receiving end is consistent with the address of transmitting terminal configuration words and the form of packet.CE sets high by SPCE061A single-chip microcomputer, and wireless transport module nRF2401 starts working.After 200us, wireless transport module nRF2401 waits for the arrival of packet.After receiving packet, through being confirmed whether address and the CRC check code of correct receiving cable.If packet is correct, the wireless transport module nRF2401 of receiving end removes prefix, receiver address and CRC check code automatically.DR1 pin is set high, and causes the interruption of SPCE061A single-chip microcomputer.Speech data reads from wireless transport module nRF2401 by SPCE061A single-chip microcomputer, is admitted in FLASH buffer unit, waits for subsequent treatment.After VoP has read, DR1 is set low.If CE pin is high level, continue the next packet of wait-receiving mode; If CE is low level, return.Wireless transport module nRF2401 receives speech data flow process figure as shown in Figure 4.
(3) speech processing module
SPCE061A single-chip microcomputer has the ADC passage (MIC_IN) being specifically designed to phonetic function, for phonetic entry is provided convenience.SPCE061A single-chip microcomputer is built-in with auto-gain circuit and amplifier, and simulating signal carries out A/D conversion after microphone, auto-gain circuit and amplifier, only needs few peripheral circuit just can complete the function of speech processes.
Design SPCE061A single-chip minimum system, to realize A/D process to voice, compression, storage, decompress(ion), D/A process, broadcasting and output.
As shown in Figure 5, the nucleus module of speech processing module is SPCE061A single-chip microcomputer, SPCE061A single-chip microcomputer is 16 single-chip microcomputers, the inner microprocessor of 16 bit chip with data processing function, fast operation, there is 16 multipliers and the inner product operation of DSP function, complicated compression algorithm can be performed.This single-chip microcomputer has the part such as FLASH buffer unit, 2K word SRAM data storer, phase locked loop oscillator, ICE in-circuit emulation circuit interface, serial input-output interface (SIO) DART, serial device IO interface SIO of 32 general purpose I/O port, 2 16 bit timing device/counters, 32K word.Compared with general single-chip microcomputer, SPCE061A single-chip microcomputer is loaded with FLASH buffer unit and AD/DA in sheet, provides convenience for development language functional product.The order set efficiency comparison of SPCE061A single-chip microcomputer is high, develops than being easier to.Chip internal has MIC interface, is used as audio conversion passage specially.In addition, SPCE061A single-chip microcomputer is that user provides abundant built-in function, comprises speech recording and reproducing built-in function.
At transmitting terminal, voice are after microphone gathers, and after A/D conversion, compressed encoding, speech data is admitted to coding queue.After coding queue is filled up, speech data is removed, in the FLASH buffer unit of write SPCE061A single-chip microcomputer.Speech data in FLASH buffer unit, under the control of SPCE061A single-chip microcomputer, is admitted to wireless transport module nRF2401 and is launched away.At voice transmission end and receiving end FLASH buffer unit as buffer memory, temporary transient voice data.The structured flowchart of voice transmission end as shown in Figure 5.
At receiving end, after wireless transport module nRF2401 receives speech data, speech data is stored in FLASH buffer unit.Under SPCE061A Single-chip Controlling, speech data is removed from FLASH buffer unit, sends into decoding queue, after decompress(ion), D/A conversion, plays back.The structured flowchart of phonetic incepting end as shown in Figure 6.
4, MP3 module
MP3 module is programmed, realizes direct selections play mode, play corresponding voice document by button.The chip of speech decoder VS1003B of the specialty that MP3 module adopts, tonequality is graceful, explains and music playback function when being suitable as self-service trip for visitor provides.
The utility model have employed MP3 module, has had MP3 module visitor can select listen to the music or select self-service trip in visit process.Under the pattern of self-service trip, by selecting to press Play Control key, get final product the sight spot explaining information stored in the SD card of uppick MP3 module.MP3 module mainly comprises control chip STC11L16XE single-chip microcomputer, chip of speech decoder VS1003B and SD card.The explanation word at sight spot, music and other entertainment audios are stored in SD card, under the control of SPCE061A single-chip microcomputer, realize the function playing SD card.
STC11L16XE single-chip microcomputer is the core controller of MP3 module, management SD card and decoding chip.In addition STC11L16XE also will manage the file system in SD card, realizes the functions such as locating file.Leave SD card sound intermediate frequency file in first to be read by STC11L16XE single-chip microcomputer in the RAM of oneself, RAM is as buffer zone.Be admitted to decoding chip VS1003B after buffer zone is filled with, play back after decoding.MP3 structural drawing as shown in Figure 7.
Two, the principle of work of guide machine
The principle of work of guide machine: the guide machine that the utility model provides gathers voice signal by microphone, speech data is inputted in the FLASH buffer unit of SPCE061A single-chip microcomputer, SPCE061A single-chip microcomputer reads data and sends from wireless transport module nRF2401 with the form of packet from FLASH buffer unit, after guide machine receiving end receives data, be input in FLASH buffer unit, can play after the process of SPCE061A single-chip microcomputer.The workflow of this guide machine as shown in Figure 8.
The workflow of guide machine: after primary controller SPCE061A single-chip microcomputer and wireless transport module nRF2401 initialization, microphone starts to gather voice, and writes data in FLASH buffer unit, often produces a frame coded data, wireless transport module nRF2401 will be admitted to, send; Whether SPCE061A single-chip microcomputer constantly detects key1 and is pressed, if do not had, will, as receiving end, prepare to receive speech data.
Phonetic incepting end is after completing initialization, and whether continuous detection has data to arrive, if speech data detected, receive data by wireless will be started, SPCE061A single-chip microcomputer constantly receives speech data, stored in FLASH buffer unit, plays after the process of SPCE061A single-chip microcomputer.
The speech data data volume that microphone collects is larger, directly stores and transmission is unpractical to these speech datas.So related to compressed encoding in this guide machine, be about to the encoded speech data compression collected, realized storing and transferring voice by less data volume.
Voice in guide machine are real-time tranceptions, also need to verify speech data when real-time reception.SPCE061A single-chip microcomputer also constantly will receive speech data when playing voice and to its verification, so need setting data buffer zone in guide machine, improve the work efficiency of guide machine, need not wait for mutually between work in every.In voice acquisition module Software for Design, need to arrange speech samples queue and coding queue.The speech data that microphone collects first is stored in speech samples queue, when the speech data in sample queue forms a VoP, is taken out and carries out compressed encoding; Data after compressed encoding are admitted to coding queue, be admitted to FLASH buffer unit and store after coding queue filling is full.In speech processing module Software for Design, decoding queue buffer zone is set and plays queue buffer.Read data in FLASH buffer unit after, speech data is first stored into decoding queue, when the data in decoding queue reach a packet, is taken out and decodes; Decoded data are admitted to broadcasting queue, under Timer Controlling, take out speech data and carry out digital-to-analog conversion from broadcasting queue, and after power amplifier, voice are played out.
Three, guide machine test
Guide machine mainly comprises 4 functional modules: voice acquisition module, wireless transport module, speech processing module be IIMP3 module not.Wherein relate to SPCE061A single-chip microcomputer, wireless transport module nRF2401, STC11L16XE single-chip microcomputer, VS1003B decoding chip and SD card.To test respectively 4 modules below, finally combine and carry out the integrated testability of tourist device systems, whether checking can realize the function of tourist device systems, the transmission range of test tourist device systems, by analysis design mothod result, demonstrate the feasibility of this guide machine.
1, the test of voice acquisition module and speech processing module
Microphone, under the control of SPCE061A single-chip microcomputer, carries out voice collecting, and speech data is stored in the FLASH buffer unit of SPCE061A single-chip microcomputer.By controlling accordingly SPCE061A single-chip microcomputer, playing the voice recorded, judging whether voice reach requirement.
The sensitivity of microphone refers under certain external sound pressure, the size of the audio signal voltage that microphone produces, and unit is Mv/Pa or dB.In general, the sensitivity of Electret condenser microphone is 0.5 ~ 10Mv/Pa or-66 ~-40dB.Sensitivity is higher, and the audio signal voltage amplitude produced under same voice is also larger.
Whether whether tested speech module can realize playing voice, and can test microphone can normal acquisition voice.Test process is as follows: voice are converted to electric signal through microphone, is stored into FLASH buffer unit after AD conversion, compressed encoding, then by the speech play in FLASH buffer unit out, gathers output waveform with oscillograph.
One section of recorded program is write in the unSPIDE that develops software of SPCE061A single-chip microcomputer.By the voice that collect stored in FLASH buffer unit, and play.Speech recording and reproducing program is as follows:
Recording subroutine:
VoidRecord(void)
{
SACM_DVR1600_Initial (); //DVR1600 initialization
SACM_DVR1600_Rec (0, BITRATE_16K); // start recording, select 16Kbps
Whether while (SACM_DVR1600_Status () & STATUS_PLAY) // detection recording data fills FLASH buffer unit
{
* P_Watchdog-Clear=0x01; // clear house dog
}
}
Playback subroutine:
voidPlayRecord(void)
{
SACM_DVR1600_Initial (); //DVR1600 initialization
SACM_DVR1600_Play (0, DAC_1+DAC_2, RAMP_UP_DN); // start playback, exported by DAC1 and DAC2
While (SACM_DVR1600_Status () & STATUS_PLAY); // detect playback whether to complete
{
* P_Watchdog-Clear=0x01; // clear house dog
}
}
Principal function:
Intmain()
{
Record (); // recording
PlayRecord (); // playback
While (1) // record/playback enters endless loop after terminating
{
*P_Watchdog_Clear=0x01;
}
}
Interrupt service routine:
VoidFIQ(void)_attribute((ISR));
voidFIQ()
{
* P_INT_Clear=C_FIQ_TMA; // clear interrupt request mark
SACM_DVR1600_ISR (); // call interrupt service subroutine
SACM_DVR1600_ServiceLoop (); // coding/decoding function
}
During test, at the microphone place holding mobile telephone of guide machine, the music player of mobile phone is opened, as speech source.At the earpiece holes plugged earphone of mobile phone, the line of earphone is drawn, receive on oscillographic probe, obtain the waveform of the music of transmitting terminal.The music that mobile phone is play, by the microphone of guide machine, realizes recording, stored in the FLASH buffer unit of SPCE061A single-chip microcomputer.Speech play in FLASH buffer unit out, connects oscillographic probe at 1 pin of the output J2 interface (connecing outside speaker) of voice, selects oscillographic CH1 passage, obtain the waveform of the voice after the process of SPCE061A single-chip microcomputer.
The waveform collected is as shown in Figure 9: as can be seen from Fig. 9 (a) and Fig. 9 (b), the waveform of phonetic entry and the waveform of output are totally consistent, and illustrate that this guide machine can realize the function of voice collecting and speech processes.
2, the transmission range test of guide machine
The hardware test platform of guide machine, voice transmission end, mainly comprises SPCE061A single-chip microcomputer, voice acquisition module, speech processing module and wireless transport module nRF2401, realizes voice collecting and wireless transmission speech data.Phonetic incepting end, mainly comprise SPCE061A single-chip microcomputer, speech processing module, voice acquisition module, wireless transport module nRF2401 and MP3 module, be responsible for phonetic incepting and carry out speech processes realizing speech play, can self-service trip be realized by MP3 module in addition.The wireless transport module nRF2401 of this guide machine adopts and does not adopt plate to carry the module of PCB antenna with the wireless transport module nRF2401 of the antenna of 2.4GHz, substantially increases transmission range.
This test has carried out twice, first time testing location be in laboratory, whether mainly test guide machine can intactly transmitting voice information.At voice transmission end, the music player of mobile phone is opened, as speech source.Plug in the earphone at the earphone mouth of mobile phone, the line of earphone is drawn, received on oscillographic contact, obtain the waveform of transmitting terminal music.The music of voice transmission end sends through wireless transport module nRF2401, and phonetic incepting termination is received and played back.Connect oscillograph contact at the speech output end of phonetic incepting end, gather speech waveform.The waveform obtained at oscillograph as shown in Figure 10.
As can be seen from Figure 10 (a) and Figure 10 (b), the waveform of transmitting terminal and the waveform of receiving end are consistent substantially, namely achieve the Successful transmissions of voice, do not occur distortion.
Second time testing location is that on the road outside school, vehicle flowrate is low, and wind speed is less, and the test duration is the morning.Transmitting terminal is fixed, and receiving end moves freely.The USB of the transmitting terminal of guide machine and the power acquisition notebook of receiving end powers.When there is no shelter, test the wireless voice transmission situation that transmission range is 100 meters, 200 meters, 300 meters, 400 meters and 450 meters respectively.Test result is as shown in table 1.
Table 1 transmission range test result
Measuring distance Voice quality Sound effect
100 meters Tonequality is fine Phonetic incepting end can receive at every turn, and voice are smooth, clear
200 meters Tonequality is better Phonetic incepting end can receive at every turn, and voice can clearly be recognized
300 meters Tonequality is general Phonetic incepting end can receive at every turn, and voice can be recognized
400 meters Tonequality is poor Phonetic incepting end can receive at every turn, and voice can fuzzyly be recognized
450 meters Quality distortion Phonetic incepting end can receive at every turn, and voice can not be recognized
As can be seen from Table 1, when transmission range is increased to 400 meters, the audio of phonetic incepting end is always very clear, does not occur packet loss phenomenon, and every frame speech data is complete.When transmission range reaches 450 meters, occur packet loss phenomenon in voice data transmission process, along with the increase of distance, packet loss is more and more serious, and distortion appears in phonetic incepting end.Through test, this guide machine is about 400 meters in the transmission range of field.
Above-mentioned embodiment is intended to illustrate that the utility model can be professional and technical personnel in the field and realizes or use; modifying to above-mentioned embodiment will be apparent for those skilled in the art; therefore the utility model includes but not limited to above-mentioned embodiment; any these claims or instructions of meeting describes; meet and principle disclosed herein and novelty, the method for inventive features, technique, product, all fall within protection domain of the present utility model.

Claims (10)

1. a SCM Based guide machine, it is characterized in that, comprise voice transmission end and phonetic incepting end, described voice transmission end comprises the first voice acquisition module, the first speech processing module and the first wireless transport module, the output terminal of described first voice acquisition module connects described first speech processing module input end, and the output terminal of described first speech processing module connects described first wireless transport module, described phonetic incepting end comprises the second voice acquisition module, second speech processing module, second wireless transport module, MP3 module and voice output module, described second wireless transport module communicates with described first wireless transport module, the output terminal of described second wireless transport module is connected with the input end of described second speech processing module, the output terminal of described second speech processing module is connected with the input end of described voice output module, described MP3 module is connected with described second speech processing module, and described second speech processing module control MP3 module output audio signal, described second voice acquisition module is connected with described second speech processing module.
2. the SCM Based guide machine of one according to claim 1, it is characterized in that, described first voice acquisition module and described second voice acquisition module include microphone, described voice transmission end and described phonetic incepting end all gather sound signal by described microphone, sound signal are changed into electric signal and are sent to described first speech processing module or described second speech processing module.
3. the SCM Based guide machine of one according to claim 1, it is characterized in that, described first speech processing module comprises the prime amplifier, A/D converter, sampling unit, compression coding unit and the FLASH buffer unit that connect successively by voice signal transmission direction, the sound signal that described first voice acquisition module collects by described first speech processing module through amplifying, A/D conversion, sampling filter out noise, coding, after compression stored in a described FLASH buffer unit.
4. the SCM Based guide machine of one according to claim 3, it is characterized in that, described second speech processing module comprises the 2nd FLASH buffer unit connected successively by voice signal transmission direction, decoding decompression units, D/A converter and output interface, described second speech processing module is by first stored in described 2nd FLASH buffer unit for the sound signal received, when user needs listening to audio, described second speech processing module will be stored in the sound signal of described 2nd FLASH buffer unit through decoding, decompress(ion), output in described voice output module by output interface after D/A conversion, by described voice output module audio plays.
5. the SCM Based guide machine of one according to claim 4, is characterized in that, described output interface and described voice output model calling, described voice output module comprises earphone or loudspeaker.
6. the SCM Based guide machine of the one according to any one of claim 1-5, is characterized in that, the main control chip of described first speech processing module and described second speech processing module is SPCE061A single-chip microcomputer.
7. the SCM Based guide machine of one according to claim 6, is characterized in that, described first wireless transport module and described second wireless transport module are nRF2401 radio receiving transmitting module.
8. the SCM Based guide machine of one according to claim 7, it is characterized in that, described MP3 module comprises control chip STC11L16XE single-chip microcomputer, chip of speech decoder VS1003B and SD card, the output terminal of described control chip STC11L16XE single-chip microcomputer connects described chip of speech decoder VS1003B and described SD card respectively, two-way communication between described chip of speech decoder VS1003B and described SD card, the output terminal of described chip of speech decoder VS1003B and described voice output model calling.
9. the SCM Based guide machine of one according to claim 8, it is characterized in that, described voice transmission end comprises MP3 module and voice output module, described MP3 module is connected with described first speech processing module, and described MP3 module and described voice output model calling, described voice transmission end can be selected to listen to the audio frequency in described MP3 module, and the audio frequency in described MP3 module is play by described voice output module.
10. the SCM Based guide machine of one according to claim 8, it is characterized in that, described MP3 module is connected with described second speech processing module, described second speech processing module comprises several Play Control keys, described in described Play Control key control, the second speech processing module reads the audio frequency in described MP3 module, and is exported by described voice output module.
CN201520438101.7U 2015-06-24 2015-06-24 Guide's machine based on singlechip Expired - Fee Related CN204857133U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201520438101.7U CN204857133U (en) 2015-06-24 2015-06-24 Guide's machine based on singlechip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201520438101.7U CN204857133U (en) 2015-06-24 2015-06-24 Guide's machine based on singlechip

Publications (1)

Publication Number Publication Date
CN204857133U true CN204857133U (en) 2015-12-09

Family

ID=54747661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201520438101.7U Expired - Fee Related CN204857133U (en) 2015-06-24 2015-06-24 Guide's machine based on singlechip

Country Status (1)

Country Link
CN (1) CN204857133U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107331398A (en) * 2017-06-05 2017-11-07 安徽福讯信息技术有限公司 One kind is wirelessly transferred and speech control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107331398A (en) * 2017-06-05 2017-11-07 安徽福讯信息技术有限公司 One kind is wirelessly transferred and speech control system

Similar Documents

Publication Publication Date Title
CN109361984B (en) Charging box, wireless earphone, earphone set and voice processing system
CN108962240A (en) A kind of sound control method and system based on earphone
CN107005800B (en) Audio file transmission and receiving method, device, equipment and system
CN104052846A (en) Voice communication method and system in game application
CN109785841A (en) A kind of blue-tooth intelligence equipment voice interactive system and method
CN203289645U (en) Sound system capable of conversation based on wireless technology
CN104933642A (en) Tour guide machine service system based on single-chip microcomputer
CN103873983A (en) Design method for novel vehicle-mounted audio frequency system
CN204857133U (en) Guide's machine based on singlechip
CN106792321B (en) Split wireless earphone and communication method thereof
CN101110613B (en) Wireless tour guide device
CN103531224B (en) Be applied to the simple and easy speech playing method of embedded system platform
CN203520583U (en) Calamity monitoring and intelligent pre-warning terminal based on IoT application platform
CN102322928A (en) Electronic scale, mobile equipment, body weight measuring system and wireless transmission method
CN203588677U (en) Wireless audio adapter and audio playing device
CN101242440A (en) A mobile phone with voice repeating function
CN202917169U (en) Wireless audio frequency adapter based on USB interface
CN207977110U (en) Electronic equipment mainboard and electronic equipment
CN205645008U (en) English listening apparatus
CN202798690U (en) Voice digital wireless transmitter
CN207638853U (en) intelligent sound equipment
CN203596113U (en) Playing device
CN209017278U (en) A kind of sound system with the enhancing of DSP audio
CN207505122U (en) Network-based audio-frequency module
CN215814592U (en) Children teaching voice pen using near field communication

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151209

Termination date: 20190624