CN103763736A - Wireless real-time high-quality voice transmission device and method based on ZigBee technology - Google Patents

Wireless real-time high-quality voice transmission device and method based on ZigBee technology Download PDF

Info

Publication number
CN103763736A
CN103763736A CN201410018218.XA CN201410018218A CN103763736A CN 103763736 A CN103763736 A CN 103763736A CN 201410018218 A CN201410018218 A CN 201410018218A CN 103763736 A CN103763736 A CN 103763736A
Authority
CN
China
Prior art keywords
data
zigbee
module
voice
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.)
Pending
Application number
CN201410018218.XA
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.)
CHINA COAL MINE CONSTRUCTION GROUP Co Ltd
Original Assignee
CHINA COAL MINE CONSTRUCTION GROUP Co Ltd
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 CHINA COAL MINE CONSTRUCTION GROUP Co Ltd filed Critical CHINA COAL MINE CONSTRUCTION GROUP Co Ltd
Priority to CN201410018218.XA priority Critical patent/CN103763736A/en
Publication of CN103763736A publication Critical patent/CN103763736A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the technical field of wireless voice communications, in particular to a full-duplex real-time voice transmission device and method based on the ZigBee technology, and the device and method need to ensure the transmission quality of high-quality voice. The wireless real-time high-quality voice transmission device comprises a device A and a device B which are the same and are equivalent, wherein the device A and the device B respectively and structurally comprise an electret type microphone, a dynamic speaker, a voice processing circuit, an embedded type microcontroller circuit and a Zigbee radio-frequency circuit at least; the device A and the device B are a sending device and a receiving device respectively. The full-duplex real-time voice transmission device is simple in structure and low in power dissipation and cost, has the error control function and can achieve point-to-point high quality full-duplex real-time voice communication in the ZigBee network.

Description

A kind of wireless real-time voice high-quality transmitting device and method based on ZigBee technology
Technical field
The present invention relates to wireless voice communication technical field, especially relate to a kind of based on ZigBee technology and need to guarantee the full duplex Real-Time Voice Transmission apparatus and method of high quality audio transmission quality.
Background technology
Wireless sensor network is comprised of the sensor network nodes that is deployed in a large amount of miniature cheapnesss in specific region, mode perception and the collection user needed information of these nodes to cooperate, and these data are sent to user by wireless channel.Typical ZigBee wireless sensor network architecture is comprised of some sensor network nodes, aggregation node (sinknode), Internet or other communication network and the long-distance user control centre with wireless receiving function.Sensor network nodes is for gathering the data in specific region and sending to aggregation node with wireless transmission and multi-hop ad hoc mode; The data that aggregation node sends over for receiving sensor network node, and passed through Internet, CAN bus or other Internet Transmission to long-distance user control centre; The data that long-distance user control centre reception aggregation node sends are also processed, simultaneously also can be according to monitoring needs, wireless sensor network is managed and configured, issues monitoring task or collects passback data etc., to reach user's Real-Time Monitoring and interactive supervision.
ZigBee technology is a kind of short distance, low complex degree, low-power consumption, low data rate, wireless sensor network technology cheaply, it is that the 802.15.4 wireless standard of approving based on IEEE is developed, and has contained the technical standard of networking, safety and application software aspect.In standard, stipulate that its maximum character rate is 250kbps, therefore it is mainly suitable for carrying the business that data traffic is less.Due at wireless voice communication particularly in full duplex real-time speech communicating, need the data volume of transmission very large (when voice signal adopts 8KHz sample rate, 16Bits to quantize, will realize so the net load data volume that full duplex voice communication need to transmit is 8KHz*16Bits*2=256Kbps), add the header data of MAC layer and PHY layer in Zigbee protocol, need the data volume of transmission can be far longer than the character rate stipulating in standard.Therefore think traditionally and cannot realize full duplex real-time speech communicating based on ZigBee technology.
The Wang Ying of Harbin University of Science and Technology, Shanghai Communications University respect morning sunlight etc. and have introduced voice communication system (the Harbin University of Science and Technology's master thesis based on ZigBee technology, 2011, " voice communication system design and realization based on ZigBee technology ", the master of Shanghai Communications University knowledge paper, 2008, " voice communication technical research and realization based on IEEE802.15.4/ZigBee "), it has realized the transmission of the unidirectional non real-time voice signal of collection, transmission, broadcasting in the ZigBee of star topology wireless network.But this kind of technology cannot provide full duplex real-time speech communicating function.
The red grade of the Wu Xue of Wuhan University of Technology has been analyzed impact (the sensing technology journal that MAC layer and route layer protocol cause the delay of VoP in wireless sensor network, 2008,21 (9): 1605-1608, " the voice application research of wireless sensor network "), by the multiple MAC protocol for wireless sensor networks to current main flow and the analysis of Routing Protocol, compared qualitatively the delay of packet while adopting these agreements to carry out voice transfer.But do not study specific embodiments and the key technical problem of full duplex real-time speech communicating.
A kind of short range wireless voice communication method (publication number: 101500323A) based on Zigbee protocol has been invented at the Li Wen of Xi'an Technology University peak etc., the method to voice signal gather, compress, sort, store, transmit, unpack, the sequence of operations such as decompress(ion) and broadcasting, realized the voice communication in ZigBee-network.But the method is also unidirectional non real-time transmission plan, cannot provide full duplex real-time speech communicating function.
The Li Qi of HeFei University of Technology more waits and has invented a kind of wireless full-duplex Real-Time Voice Transmission apparatus and method (publication number: 102790671A) based on ZigBee technology, the method to voice signal gather, compress, the operation such as transmission, decompress(ion) and broadcasting, and all adopted " table tennis " mode to process acquisition buffer district and play buffer at voice collecting end and speech play end, make communicating pair can carry out full duplex real-time speech communicating.But the method is not considered the continuous burst error that wireless channel causes transfer of data, cannot guarantee the quality of audio transmission.
Summary of the invention
The object of this invention is to provide a kind of apparatus and method of the wireless full-duplex real-time voice high-quality transmission based on ZigBee technology, its device therefor is simple in structure, power consumption and cost lower, and there is error control function, can realize point-to-point high-quality full duplex real-time speech communicating in ZigBee net.
One object of the present invention is achieved through the following technical solutions.
Based on a wireless real-time voice high-quality transmitting device for ZigBee technology, the device A that comprises two identical equities and device B.The structure setting of described device A and device B is and at least comprises electret-type microphone, dynamic speaker, speech processing circuit, embedded microcontroller circuit and ZigBee radio circuit;
Described electret-type microphone, for being converted to analog voltage signal by voice signal;
Described dynamic speaker, for being converted to voice signal by analog voltage signal;
Described speech processing circuit, by including the phonetic codec chip of voice collecting unit and speech play unit and the circuit that peripheral cell forms thereof; The analog voltage signal that is received the output of electret-type microphone by described voice collecting unit, is converted to audio digital signals by the analog to digital converter of phonetic codec chip inside, and audio digital signals is sent to embedded microcontroller circuit; Described speech processing circuit also receives the audio digital signals of described embedded microcontroller circuit output by speech play unit, digital to analog converter by phonetic codec chip inside is converted to analog voltage signal, and analog voltage signal is sent to dynamic speaker;
Described embedded microcontroller circuit, by including the microcontroller chip of compress speech unit, channel coding module, data interlacing module, data deinterlacing module, channel decoding module and voice decompress(ion) unit and the circuit that peripheral cell forms thereof; Described compress speech unit compresses the audio digital signals of speech processing circuit output, described channel coding module is utilized RS (10 by the data after compression, 8) encoder is encoded, and described data interlacing module is resent to the data after coding and the interweaving conversion that need to do in order at the symbol data of channel ZigBee radio circuit and carries out radio frequency transmission; Described embedded microcontroller circuit also receives the data of ZigBee radio circuit output by data deinterlacing module, successively through the interleaving data recovery of data deinterlacing module, the RS (10 of channel decoding module, 8) decoding of code and the decompression of voice decompress(ion) unit, then the signal after decompressing is sent to the speech play unit in speech processing circuit;
Described ZigBee radio circuit, by including the standard ZigBee radio frequency chip of ZigBee transmitting element and ZigBee receiving element and the circuit that peripheral cell forms thereof, by described ZigBee transmitting element, received the data of described embedded microcontroller circuit output, wireless device B or the device A of being sent to after coding and modulation; The data that simultaneously also send by wireless channel by described ZigBee receiving element receiving system B or device A are sent to embedded microcontroller circuit after demodulation code.
Described device A or device B also comprise a power circuit, and the device that this power circuit is its place provides power supply, and also this power circuit provides power supply for installing A or installing B.
The present invention also provides a kind of above-mentioned method of carrying out voice transfer based on the wireless real-time voice high-quality transmitting device of ZigBee technology of using, and its technical scheme is as follows:
While carrying out Real-Time Voice Transmission between device A and device B, if selecting device A is dispensing device, device B is receiving system, and voice transfer comprises the following steps:
Step 1, speech signal collection: the electret-type microphone in dispensing device is converted to analog voltage signal by voice signal and sends in speech processing circuit, phonetic codec chip in speech processing circuit carries out this analog signal A/D sampling and is quantified as audio digital signals, and this audio digital signals is reached to the microcontroller chip in embedded microcontroller circuit;
Step 2, speech data compression: the compress speech unit of microcontroller chip adopts MELP compression algorithm to carry out compress speech to the audio digital signals of receiving, then the data after compression are sent into channel coding module;
Step 3, chnnel coding: channel coding module utilizes RS (10,8) encoder to encode compress speech data, and this encoder is based on finite field gf (24), minimum arithmetic element 1 code element is 4bit, inputs the parallel data that data are 4bit (1 code element) at every turn; The data of 8 code elements of every input, the verification unit of 2 code elements of encoder output, and the code length n=10 of encoder, information bit number k=8, check digit number n-k=2, error correcting capability t=(n-k)/2=1, code distance d=2t+1=3, encoder primitive polynomial p (x)=x 4+ x+1, generator polynomial g (x)=(x-a) (x-a 2)=x 2+ (a+a 2) x+a 3, wherein a is the origin field element of RS (10,8); Data after coding are admitted to data interlacing module;
Step 4, data interlacing: data interlacing module is by the data of channel coding module output and need to do the conversion in order according to certain rule at the symbol stream of channel;
Step 5, transfer of data: the microcontroller chip of dispensing device is by the Zigbee protocol MAC layer data bag of the data composition standard of data interlacing module output, reach in ZigBee transmitting element, ZigBee transmitting element adopts O-QPSK modulation system and DSSS spread spectrum that data are sent to the ZigBee receiving element in receiving system with the speed of 250kbps after receiving standard MAC layer data bag;
Step 6, data deinterlacing: the ZigBee receiving element in receiving system is received the Zigbee protocol MAC layer data bag that is reduced into standard after the signal in wireless channel after demodulation, and then the net load data of taking out wherein reach the data deinterlacing module in microcontroller chip, this module is upset data recovery former state output sequentially by the data interlacing module being sent out in device, then the data after deinterleaving is sent into channel decoding module;
Step 7, channel-decoding: channel decoding module completes the decoding work of RS (10,8) yard after receiving the data after deinterleaving, by the RS of 4bit × 10 (10,8) codeword decoding, obtains the compress speech data of 4bit × 8, and sends into data decompression module;
Step 8, voice data decompression contracting and playing: the voice decompress(ion) unit in the microcontroller chip of receiving system carries out corresponding decompress(ion) by decoded compress speech data and contracts and send into the speech play unit in speech processing circuit, it carries out D/A conversion to speech data and becomes analog voltage signal, sends in dynamic speaker and plays.
Need to describe, if selecting device B is dispensing device, device A is receiving system, and the step of voice transfer is identical.
Along with the rapid growth of MultiMedia Field, audio wireless transmission becomes people's needs gradually; In addition, under the environment that has urgent need and cable network difficult arrangement (as mine rescue, fire control and disaster rescue), ZigBee technology has other communication standards and is difficult to alternative advantage, if high-quality (low error rate) transmission that utilizes ZigBee-network to carry out full duplex real-time voice has huge practical value.The present invention just provides a kind of apparatus and method of the wireless full-duplex real-time voice high-quality transmission based on ZigBee technology.
In the present invention, utilize the speech data compression algorithm of high compression ratio significantly to reduce the data volume that needs transmission, make voice communication both sides can carry out full duplex real-time speech communicating, for the high-quality that guarantees audio frequency is transmitted continuously, the present invention has added based on RS (10 in data transmission procedure, 8) forward error correction of code carries out error control, has improved voice call quality.So the mistaken ideas that adopt the present invention can eliminate traditional understanding provide high-quality full duplex real-time speech communicating in now widely used ZigBee-network.
Accompanying drawing explanation
Fig. 1 is the structural representation of wireless real-time voice high-quality transmitting device in the present invention.
Fig. 2 is the structural representation that installs A/B in the present invention.
Fig. 3 is encoder fundamental diagram in the present invention.
Fig. 4 is data interlacing module principle figure in the present invention.
Fig. 5 is data deinterlacing module principle figure in the present invention.
Embodiment
By a concrete exemplifying embodiment, present invention is described below, but embodiments of the invention are not limited to this.
Referring to Fig. 1, Fig. 2, the device A that the structure setting of the wireless real-time voice high-quality transmitting device based on ZigBee technology in the present embodiment comprises two identical equities and device B, the structure setting of described device A and device B is and at least comprises electret-type microphone, dynamic speaker, speech processing circuit, embedded microcontroller circuit and ZigBee radio circuit.
Described electret-type microphone, for being converted to analog voltage signal by voice signal;
Described dynamic speaker, for being converted to voice signal by analog voltage signal;
Described speech processing circuit, by including the phonetic codec chip of voice collecting unit and speech play unit and the circuit that peripheral cell forms thereof; The analog voltage signal that is received the output of electret-type microphone by described voice collecting unit, is converted to audio digital signals by the analog to digital converter of phonetic codec chip inside, and audio digital signals is sent to embedded microcontroller circuit; Described speech processing circuit also receives the audio digital signals of described embedded microcontroller circuit output by speech play unit, digital to analog converter by phonetic codec chip inside is converted to analog voltage signal, and analog voltage signal is sent to dynamic speaker;
Described embedded microcontroller circuit, by including the microcontroller chip of compress speech unit, channel coding module, data interlacing module, data deinterlacing module, channel decoding module and voice decompress(ion) unit and the circuit that peripheral cell forms thereof; Described compress speech unit compresses the audio digital signals of speech processing circuit output, described channel coding module is utilized RS (10 by the data after compression, 8) encoder is encoded, and described data interlacing module is resent to the data after coding and the interweaving conversion that need to do in order at the symbol data of channel ZigBee radio circuit and carries out radio frequency transmission; Described embedded microcontroller circuit also receives the data of ZigBee radio circuit output by data deinterlacing module, successively through the interleaving data recovery of data deinterlacing module, the RS (10 of channel decoding module, 8) decoding of code and the decompression of voice decompress(ion) unit, then the signal after decompressing is sent to the speech play unit in speech processing circuit;
Described ZigBee radio circuit, by including the standard ZigBee radio frequency chip of ZigBee transmitting element and ZigBee receiving element and the circuit that peripheral cell forms thereof, by described ZigBee transmitting element, received the data of described embedded microcontroller circuit output, wireless device B or the device A of being sent to after coding and modulation; The data that simultaneously also send by wireless channel by described ZigBee receiving element receiving system B or device A are sent to embedded microcontroller circuit after demodulation code.
Device A and device B also comprise a power circuit, and the device that this power circuit is its place provides power supply.
In the present embodiment, the technical scheme of the wireless real-time voice high-quality transmission method based on ZigBee technology is as follows.
While carrying out Real-Time Voice Transmission between device A and device B, if selecting device A/B is dispensing device, device B/A is receiving system, and the step of voice transfer is identical, comprises the following steps:
Step 1, speech signal collection: the electret-type microphone in dispensing device is converted to analog voltage signal by voice signal and sends in speech processing circuit, phonetic codec chip in speech processing circuit carries out this analog signal A/D sampling and is quantified as audio digital signals, and this audio digital signals is reached to the microcontroller chip in embedded microcontroller circuit;
Step 2, speech data compression: the compress speech unit of microcontroller chip adopts MELP compression algorithm to carry out compress speech to the audio digital signals of receiving, then the data after compression are sent into channel coding module;
Step 3, chnnel coding: channel coding module is utilized RS (10 by compress speech data, 8) encoder is encoded, this encoder is based on finite field gf (24), minimum arithmetic element 1 code element is 4bit, the parallel data (1 code element) that each input data are 4bit, the data of 8 code elements of every input, the verification unit of 2 code elements of encoder output, and the code length n=10 of encoder, information bit number k=8, check digit number n-k=2, error correcting capability t=(n-k)/2=1, code distance d=2t+1=3, encoder primitive polynomial p (x)=x 4+ x+1, generator polynomial g (x)=(x-a) (x-a 2)=x 2+ (a+a 2) x+a 3, wherein a is the origin field element of RS (10,8); Data after coding are admitted to data interlacing module;
Step 4, data interlacing: data interlacing module is by the data of channel coding module output and need to do the conversion in order according to certain rule at the symbol stream of channel;
Step 5, transfer of data: the microcontroller chip of dispensing device is by the Zigbee protocol MAC layer data bag of the data composition standard of data interlacing module output, reach in ZigBee transmitting element, ZigBee transmitting element adopts O-QPSK modulation system and DSSS spread spectrum that data are sent to the ZigBee receiving element in receiving system with the speed of 250kbps after receiving standard MAC layer data bag;
Step 6, data deinterlacing: the ZigBee receiving element in receiving system is received the Zigbee protocol MAC layer data bag that is reduced into standard after the signal in wireless channel after demodulation, and then the net load data of taking out wherein reach the data deinterlacing module in microcontroller chip, this module is upset data recovery former state output sequentially by the data interlacing module being sent out in device, then the data after deinterleaving is sent into channel decoding module;
Step 7, channel-decoding: channel decoding module completes the decoding work of RS (10,8) yard after receiving the data after deinterleaving, by the RS of 4bit × 10 (10,8) codeword decoding, obtains the compress speech data of 4bit × 8, and sends into data decompression module;
Step 8, voice data decompression contracting and playing: the voice decompress(ion) unit in the microcontroller chip of receiving system carries out corresponding decompress(ion) by decoded compress speech data and contracts and send into the speech play unit in speech processing circuit, it carries out D/A conversion to speech data and becomes analog voltage signal, sends in dynamic speaker and plays.
In the present embodiment, phonetic codec chip is the audio coding decoding chip TLV320AIC32 that TI company produces, microcontroller chip is the STM32F107 chip that ST Microelectronics produces, ZigBee radio frequency chip is the ZigBee SOC chip CC2430 that TI company produces, and compress speech and decompression algorithm are low-bit-rate speech coding coding MELP algorithm.
In the present embodiment, because voice transfer is that full duplex is carried out in real time, therefore the both sides of voice communication are reciprocity, and each device is transmit leg and recipient, represent respectively with device A and device B.When both sides carry out voice communication, voice collecting unit in device A in TLV320AIC32 audio coding decoding chip gathers analog voltage signal continuously with the sample rate of 8KHz from microphone, complete successively A/D sampling, quantification and μ and lead compression process, so each time after sampling analog voltage signal to become width be that the digital signal of 8bits is that total data rate is 8KHz × 8bits × 2=128Kbps.After A/D sampling, quantification and μ lead and have compressed, the voice collecting unit of device in A can write this speech data and in microcontroller chip STM32F107, carry out data compression, the speech data (data of 40ms time) that compress speech unit reads 640 bytes carries out MELP compression as a speech frame, compression ratio be 1:16 the speech data of 640 bytes after overcompression, become 40 bytes.Compress speech data are admitted to channel coding module and carry out the error control coding based on RS (10,8) code afterwards.This encoder is based on finite field gf (2 4), minimum arithmetic element 1 code element is 4bit, each input should be the parallel data (1 code element) of 4bit, and the data of 8 code elements of every input, the verification unit of 2 code elements of encoder output, the operation principle of encoder is as shown in Figure 3.
The rear data of having encoded are admitted to interleaving block and carry out the order conversion of symbol stream, and opposing is concentrated and produced, not repairable sudden mistake.Interleaving block, based on a data matrix, laterally writes data longitudinally and reads.Shown in interleaving block schematic diagram 4.
As shown in Figure 4, the least unit that interleaving block adopts is 4bit, and data matrix size is 40 × 32=1280bit, and the every output 32 group code words of RS (10,8) encoder just once interweave.
Then microcontroller chip is by the Zigbee protocol MAC layer data bag of the data composition standard after interweaving, reach in the transmitting element in ZigBee radio frequency chip, transmitting element adopts O-QPSK modulation system and DSSS spread spectrum that data are sent to receiving system with the speed of 250kbps after receiving standard MAC layer data bag, receiving element in ZigBee radio frequency chip in receiving system is received the Zigbee protocol MAC layer data bag that is reduced into standard after the signal in wireless channel after demodulation, and then the speech data taking out wherein reaches the data deinterlacing module in microcontroller chip STM32F107, this module is upset data recovery former state output sequentially by being interleaved module.Because interleaving block has adopted 10 × 32 interleavers by 4bit symbol interleave, therefore the de-interleaving block of receiving terminal be actually 32 × 10 by the interleaver of symbol interleave, as shown in Figure 5.De-interleaving block read-write order is for being listed as, and other is similar to interleaving block.
Error represents that after deinterleaving, misdata is assigned in different decoding units, makes to exist the probability of more than one wrong code element greatly to reduce in decodes codeword, can greatly improve the successful probability of decoding and error by the data that burst error affects continuously.
After deinterleaving completes, data are admitted to channel decoding module and carry out the decoding work of RS (10,8) code, and by the RS of 4bit × 10 (10,8) codeword decoding, the form of generated data is 4bit × 8.Output signal also has code word initial signal, data useful signal and check digit useful signal.This decoding algorithm is mainly divided into following four steps:
(1) calculate syndrome: for RS (10,8) code, need to calculate 2 syndrome S 1, S 2.Due to α and α 2conjugate elements, corresponding same minimal polynomial Φ (x)=x 4+ x+1.If receiverd polynomial is R (x), make R (x) mod Φ (x)=a 3x 3+ a 2x 2+ a 1x+a 0, so corresponding syndrome is S 1=a 3α 3+ a 2α 2+ a 1α+a 0, S 2=a 32) 3+ a 22) 2+ a 12)+a 0, allowing like this and inputting data is the formula of Φ (x) by divisor, can obtain coefficient a 3, a 2, a 1, a 0, can obtain syndrome S 1, S 2.
(2) mistake in computation position and wrong amplitude: by the syndrome S of previous step gained 1and S 2, can obtain one group of binary quadratic equation:
S 1=R(α)=E(α)=e jβ j
S 2=R(α 2)=E(α 2)=e jj) 2
As S 1=0, the corresponding error-free situations of data, otherwise to there being a wrong situation.Can pass through e j=S 1 2/ S 2and β j=S 2/ S 1try to achieve mistake amplitude and bit-error locations.
(3) error correction output: obtain errors present β and wrong amplitude e by step (2).The respective symbol of code word and e are carried out to XOR, i.e. correctable error.
(4) finally output: error correction output obtained in the previous step is carried out to division, divisor Φ (x)=x again one time 4+ x+1, the residue obtaining is S 1.If S 1value be 0, illustrate that error correction success, output codons are that error correction after decoded symbol and e XOR is exported; Otherwise error correction failure, does not make XOR with e by decoded symbol, former state output.
Finally, the voice decompress(ion) unit that decoded compress speech data reach in microcontroller chip carries out corresponding decompression, then speech data is sent into speech play unit in pronounciation processing chip and carried out D/A conversion and become analog signal, send in loud speaker and play.

Claims (3)

1. the wireless real-time voice high-quality transmitting device based on ZigBee technology, it is characterized in that: the device A that comprises two identical equities and device B, the structure setting of described device A and device B is and at least comprises electret-type microphone, dynamic speaker, speech processing circuit, embedded microcontroller circuit and ZigBee radio circuit;
Described electret-type microphone, for being converted to analog voltage signal by voice signal;
Described dynamic speaker, for being converted to voice signal by analog voltage signal;
Described speech processing circuit, by including the phonetic codec chip of voice collecting unit and speech play unit and the circuit that peripheral cell forms thereof; The analog voltage signal that is received the output of electret-type microphone by described voice collecting unit, is converted to audio digital signals by the analog to digital converter of phonetic codec chip inside, and audio digital signals is sent to embedded microcontroller circuit; Described speech processing circuit also receives the audio digital signals of described embedded microcontroller circuit output by speech play unit, digital to analog converter by phonetic codec chip inside is converted to analog voltage signal, and analog voltage signal is sent to dynamic speaker;
Described embedded microcontroller circuit, by including the microcontroller chip of compress speech unit, channel coding module, data interlacing module, data deinterlacing module, channel decoding module and voice decompress(ion) unit and the circuit that peripheral cell forms thereof; Described compress speech unit compresses the audio digital signals of speech processing circuit output, described channel coding module is utilized RS (10 by the data after compression, 8) encoder is encoded, and described data interlacing module is resent to the data after coding and the interweaving conversion that need to do in order at the symbol data of channel ZigBee radio circuit and carries out radio frequency transmission; Described embedded microcontroller circuit also receives the data of ZigBee radio circuit output by data deinterlacing module, successively through the interleaving data recovery of data deinterlacing module, the RS (10 of channel decoding module, 8) decoding of code and the decompression of voice decompress(ion) unit, then the signal after decompressing is sent to the speech play unit in speech processing circuit;
Described ZigBee radio circuit, by including the standard ZigBee radio frequency chip of ZigBee transmitting element and ZigBee receiving element and the circuit that peripheral cell forms thereof, by described ZigBee transmitting element, received the data of described embedded microcontroller circuit output, wireless device B or the device A of being sent to after coding and modulation; The data that simultaneously also send by wireless channel by described ZigBee receiving element receiving system B or device A are sent to embedded microcontroller circuit after demodulation code.
2. a kind of wireless real-time voice high-quality transmitting device based on ZigBee technology according to claim 1, is characterized in that: described device A or device B also comprise a power circuit, and the device that this power circuit is its place provides power supply.
3. the voice transmission method of a kind of wireless real-time voice high-quality transmitting device based on ZigBee technology according to claim 1, it is characterized in that: while carrying out Real-Time Voice Transmission between device A and device B, selecting device A is dispensing device, device B is receiving system, and voice transfer comprises the following steps:
Step 1, speech signal collection: the electret-type microphone in dispensing device is converted to analog voltage signal by voice signal and sends in speech processing circuit, phonetic codec chip in speech processing circuit carries out this analog signal A/D sampling and is quantified as audio digital signals, and this audio digital signals is reached to the microcontroller chip in embedded microcontroller circuit;
Step 2, speech data compression: the compress speech unit of microcontroller chip adopts MELP compression algorithm to carry out compress speech to the audio digital signals of receiving, then the data after compression are sent into channel coding module;
Step 3, chnnel coding: channel coding module utilizes RS (10,8) encoder to encode compress speech data, and this encoder is based on finite field gf (24), minimum arithmetic element 1 code element is 4bit, inputs the parallel data that data are 4bit (1 code element) at every turn; The data of 8 code elements of every input, the verification unit of 2 code elements of encoder output, and the code length n=10 of encoder, information bit number k=8, check digit number n-k=2, error correcting capability t=(n-k)/2=1, code distance d=2t+1=3, encoder primitive polynomial p (x)=x 4+ x+1, generator polynomial g (x)=(x-a) (x-a 2)=x 2+ (a+a 2) x+a 3, wherein a is the origin field element of RS (10,8); Data after coding are admitted to data interlacing module;
Step 4, data interlacing: data interlacing module is by the data of channel coding module output and need to do the conversion in order according to certain rule at the symbol stream of channel;
Step 5, transfer of data: the microcontroller chip of dispensing device is by the Zigbee protocol MAC layer data bag of the data composition standard of data interlacing module output, reach in ZigBee transmitting element, ZigBee transmitting element adopts O-QPSK modulation system and DSSS spread spectrum that data are sent to the ZigBee receiving element in receiving system with the speed of 250kbps after receiving standard MAC layer data bag;
Step 6, data deinterlacing: the ZigBee receiving element in receiving system is received the Zigbee protocol MAC layer data bag that is reduced into standard after the signal in wireless channel after demodulation, and then the net load data of taking out wherein reach the data deinterlacing module in microcontroller chip, this module is upset data recovery former state output sequentially by the data interlacing module being sent out in device, then the data after deinterleaving is sent into channel decoding module;
Step 7, channel-decoding: channel decoding module completes the decoding work of RS (10,8) yard after receiving the data after deinterleaving, by the RS of 4bit × 10 (10,8) codeword decoding, obtains the compress speech data of 4bit × 8, and sends into data decompression module;
Step 8, voice data decompression contracting and playing: the voice decompress(ion) unit in the microcontroller chip of receiving system carries out corresponding decompress(ion) by decoded compress speech data and contracts and send into the speech play unit in speech processing circuit, it carries out D/A conversion to speech data and becomes analog voltage signal, sends in dynamic speaker and plays.
CN201410018218.XA 2014-01-15 2014-01-15 Wireless real-time high-quality voice transmission device and method based on ZigBee technology Pending CN103763736A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410018218.XA CN103763736A (en) 2014-01-15 2014-01-15 Wireless real-time high-quality voice transmission device and method based on ZigBee technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410018218.XA CN103763736A (en) 2014-01-15 2014-01-15 Wireless real-time high-quality voice transmission device and method based on ZigBee technology

Publications (1)

Publication Number Publication Date
CN103763736A true CN103763736A (en) 2014-04-30

Family

ID=50530880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410018218.XA Pending CN103763736A (en) 2014-01-15 2014-01-15 Wireless real-time high-quality voice transmission device and method based on ZigBee technology

Country Status (1)

Country Link
CN (1) CN103763736A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790281A (en) * 2017-02-23 2017-05-31 深圳市沃阳精密科技有限公司 A kind of end-to-end voice encryption device and encryption method towards intercom system
CN107295444A (en) * 2017-07-13 2017-10-24 江苏建筑职业技术学院 Wireless audio transmission system based on ZigBee
CN107306140A (en) * 2016-04-25 2017-10-31 华为技术有限公司 A kind of GEL codeword structures coding and method, device and the relevant device of decoding
CN113393849A (en) * 2019-01-29 2021-09-14 桂林理工大学南宁分校 Intercom system that bimodulus block data was handled

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174915A (en) * 2006-10-31 2008-05-07 杭州华三通信技术有限公司 Ethernet transmission apparatus and Ethernet signal transmission method
US20110235625A1 (en) * 2010-03-26 2011-09-29 Samsung Electronics Co. Ltd. Communication terminal and relay station using local wireless communication and service providing method thereof
CN102263611A (en) * 2011-06-03 2011-11-30 上海慧桥电气控制工程有限公司 Signal transmission system and method for automatically correcting error codes
CN102790671A (en) * 2012-07-20 2012-11-21 合肥工业大学 ZigBee technology-based wireless full-duplex real-time voice transmission device and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174915A (en) * 2006-10-31 2008-05-07 杭州华三通信技术有限公司 Ethernet transmission apparatus and Ethernet signal transmission method
US20110235625A1 (en) * 2010-03-26 2011-09-29 Samsung Electronics Co. Ltd. Communication terminal and relay station using local wireless communication and service providing method thereof
CN102263611A (en) * 2011-06-03 2011-11-30 上海慧桥电气控制工程有限公司 Signal transmission system and method for automatically correcting error codes
CN102790671A (en) * 2012-07-20 2012-11-21 合肥工业大学 ZigBee technology-based wireless full-duplex real-time voice transmission device and method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107306140A (en) * 2016-04-25 2017-10-31 华为技术有限公司 A kind of GEL codeword structures coding and method, device and the relevant device of decoding
CN107306140B (en) * 2016-04-25 2020-12-01 华为技术有限公司 GEL code word structure coding and decoding method, device and related equipment
US10879937B2 (en) 2016-04-25 2020-12-29 Huawei Technologies Co., Ltd. Gel codeword structure encoding and decoding method, apparatus, and related device
CN106790281A (en) * 2017-02-23 2017-05-31 深圳市沃阳精密科技有限公司 A kind of end-to-end voice encryption device and encryption method towards intercom system
CN107295444A (en) * 2017-07-13 2017-10-24 江苏建筑职业技术学院 Wireless audio transmission system based on ZigBee
CN113393849A (en) * 2019-01-29 2021-09-14 桂林理工大学南宁分校 Intercom system that bimodulus block data was handled
CN113393849B (en) * 2019-01-29 2022-07-12 桂林理工大学南宁分校 Intercom system that bimodulus piece data was handled

Similar Documents

Publication Publication Date Title
CA2661264C (en) Method of correcting message errors using cyclic redundancy checks
US8718098B2 (en) Method for compressing and decompressing time stamp and equipment thereof
CN101567755B (en) Network coding method based on fountain codes
US8548027B2 (en) Multi-ary error-correcting code transmitting and receiving apparatuse, data transmission system, and relevant method
KR101783271B1 (en) Method for encoding information object and encoder using the same
JP2010520666A5 (en)
CN103763736A (en) Wireless real-time high-quality voice transmission device and method based on ZigBee technology
RU2461970C2 (en) Method and apparatus for receiving data
KR20130040096A (en) Apparatus and method for transmitting/receiving a packet in a mobile communication system
WO2007108471A1 (en) Modulation device, demodulation device, and modulating method
Yu et al. Reliable and low latency transmission in industrial wireless sensor networks
CN102013951A (en) Wireless communication network coding method using fountain codes
CN111600677B (en) Data transmission method and device
CN108183771A (en) Data processing method, equipment and system in optical network system
CN104539387A (en) Hop-by-hop reliable transmission control method for underwater wireless sensor network
CN103944674B (en) Data cutting and packaging method suitable for physical layer rateless code transmission
CN104135345A (en) Cross-layer coding and decoding method applied to long-term evolution system
CN102790671B (en) ZigBee technology-based wireless full-duplex real-time voice transmission device and method
CN109889311B (en) Gap channel communication method based on combined coding
US6182260B1 (en) Channel encoding apparatus using single concatenated encoder
CN100536349C (en) Method and apparatus for concatenated channel coding
CN101895742B (en) Unequal error protection is applied to the method for video transmission of single-carrier system
Huu et al. Multi-hop Reed-Solomon encoding scheme for image transmission on wireless sensor networks
JP2006094012A (en) Encoding method, decoding processing method, and communication apparatus
CN107222294A (en) A kind of improved fountain codes degree Distribution Algorithm

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140430