CN104954079A - Method and system for coding and decoding in sound wave communication - Google Patents

Method and system for coding and decoding in sound wave communication Download PDF

Info

Publication number
CN104954079A
CN104954079A CN201510330194.6A CN201510330194A CN104954079A CN 104954079 A CN104954079 A CN 104954079A CN 201510330194 A CN201510330194 A CN 201510330194A CN 104954079 A CN104954079 A CN 104954079A
Authority
CN
China
Prior art keywords
data
waveform
acoustic waveform
acoustic
undetermined
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.)
Granted
Application number
CN201510330194.6A
Other languages
Chinese (zh)
Other versions
CN104954079B (en
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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201510330194.6A priority Critical patent/CN104954079B/en
Publication of CN104954079A publication Critical patent/CN104954079A/en
Application granted granted Critical
Publication of CN104954079B publication Critical patent/CN104954079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method and a system for coding and decoding in sound wave communication. The method comprises the following steps of carrying out data checking on data to be sent; loading the data to be sent into sound waves for transmission according to the preset waveforms of the sound waves; analyzing the received sound waves to obtain a plurality of decomposition waveforms; matching the corresponding preset waveforms of the sound waves with the decomposition waveforms; decoding undetermined data carried by sound wave waveform strings and carrying out data checking on the undetermined data, wherein the sound wave waveform strings are formed by serially connecting the decomposition waveforms corresponding to the waveforms of the sound waves. The data to be sent is subjected to data checking and is then loaded into the sound waves to be transmitted; the sound waves are compared with the preset waveforms of the sound waves after being received; the undetermined data is decoded according to the comparison result and is subjected to data checking; the data transmission stability and the data transmission success rate are improved.

Description

The method and system of coding and decoding in a kind of acoustic communication
Technical field
The present invention relates to database field, particularly relate to the method and system of coding and decoding in a kind of acoustic communication.
Background technology
Communicated between movable equipment by acoustic communication and gradually used, because short-range communication can be realized not adding extra wireless device, as long as have MIC and loudspeaker just can carry out acoustic communication, so a lot of product all utilizes sound wave to communicate, but acoustic communication shortcoming is also very large, easily by the interference of ambient noise, cause data transmission fault, less stable, also be that a lot of data volume is larger, and the transmission requiring real-time high can not, need to promote the success rate of sonic transmissions.
Summary of the invention
The invention provides the method and system of coding and decoding in a kind of acoustic communication, it transmits by being loaded in sound wave after data to be sent are carried out data check, contrast with the acoustic waveform preset after receiving sound wave, decode data undetermined according to comparing result and treat given data and carry out data check, improve stability and the success rate of transfer of data.
For realizing above-mentioned design, the present invention by the following technical solutions:
Adopt the method for coding and decoding in a kind of acoustic communication on the one hand, comprising:
Data check is carried out to sent data;
Data to be sent are loaded in sound wave by the acoustic waveform preset and transmit;
Resolve the sound wave received and obtain multiple decomposition waveform;
Described decomposition Waveform Matching is gone out the corresponding acoustic waveform preset;
Decode data undetermined that acoustic waveform string carries and carry out data check to described data undetermined, described acoustic waveform string is in series by the corresponding described decomposition waveform of described acoustic waveform.
Wherein, the described acoustic waveform preset described decomposition Waveform Matching being gone out correspondence, is specially:
Described decomposition Waveform Matching is gone out the acoustic waveform preset that corresponding similarity is not less than threshold value.
Wherein, when the number of described acoustic waveform is multiple, described acoustic waveform decomposes acoustic waveform corresponding to waveform respectively and is connected into acoustic waveform string with other.
Wherein, decode data undetermined that acoustic waveform string carries described in and after data check is carried out to described data undetermined, also comprise:
If data check passes through, then described data undetermined save as correct data; Otherwise request resends data.
Wherein, described default acoustic waveform has 2,4,8 or 16.
Adopt the system of coding and decoding in a kind of acoustic communication on the other hand, comprising:
Send data check unit, for carrying out data check to sent data;
Waveform loads transmission unit, transmits for data to be sent being loaded in sound wave by the acoustic waveform preset;
Sound wave resolution unit, obtains multiple decomposition waveform for resolving the sound wave received;
Acoustic waveform matching unit, for going out the corresponding acoustic waveform preset by described decomposition Waveform Matching;
Receive data check unit, for decoding data undetermined that acoustic waveform string carries and carrying out data check to described data undetermined, described acoustic waveform string is in series by the corresponding described decomposition waveform of described acoustic waveform.
Wherein, described acoustic waveform matching unit, specifically for:
Described decomposition Waveform Matching is gone out the acoustic waveform preset that corresponding similarity is not less than threshold value.
Wherein, when the number of described acoustic waveform is multiple, described acoustic waveform decomposes acoustic waveform corresponding to waveform respectively and is connected into acoustic waveform string with other.
Wherein, also comprise:
Data processing unit undetermined, if pass through for data check, then described data undetermined save as correct data; Otherwise request resends data.
Wherein, described default acoustic waveform has 2,4,8 or 16.
Beneficial effect of the present invention is: transmit by being loaded in sound wave after data to be sent are carried out data check, contrast with the acoustic waveform preset after receiving sound wave, decode data undetermined according to comparing result and treat given data and carry out data check, improve stability and the success rate of transfer of data.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing the embodiment of the present invention is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the content of the embodiment of the present invention and these accompanying drawings.
Fig. 1 is the method flow diagram of the first embodiment of the method for coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention.
Fig. 2 is the method flow diagram of the second embodiment of the method for coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention.
Fig. 3 is the block diagram of the first embodiment of the system of coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention.
Fig. 4 is the block diagram of the second embodiment of the system of coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention.
Embodiment
The technical problem solved for making the present invention, the technical scheme of employing and the technique effect that reaches are clearly, be described in further detail below in conjunction with the technical scheme of accompanying drawing to the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Please refer to Fig. 1, it is the method flow diagram of the first embodiment of the method for coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention.As shown in the figure, the method, comprising:
Step S101: carry out data check to sent data.
Accurate in order to confirm the data that receiving terminal receives, verify to sent data when data send, specifically adopt parity check, CRC cyclic redundancy check (CRC) etc., the mode of the realization of data check has multiple, does not elaborate here.
Step S102: data to be sent are loaded in sound wave by the acoustic waveform preset and transmit.
In acoustic communication process, an acoustic waveform is defined as a kind of data element, the data that multiple data element has formed, to be exactly that each data element said in data is encoded to a corresponding acoustic waveform in Data import to sound wave, the combination of multiple acoustic waveform just carries data to be sent, the combination of the multiple acoustic waveforms obtained by loudspeaker output encoder, can realize the transmission of data.
Step S103: resolve the sound wave received and obtain multiple decomposition waveform.
The continuous sound wave received is resolved and obtains multiple separate decomposition waveform.
Step S104: described decomposition Waveform Matching is gone out the corresponding acoustic waveform preset.
Mating decomposing waveform with the acoustic waveform preset, confirming that corresponding acoustic waveform is to confirm the data element that this decomposition waveform carries.
Step S105: decode data undetermined that acoustic waveform string carries and carry out data check to described data undetermined, described acoustic waveform string is in series by the corresponding described decomposition waveform of described acoustic waveform.
In sum, transmit by being loaded in sound wave after data to be sent are carried out data check, contrast with the acoustic waveform preset after receiving sound wave, decode data undetermined according to comparing result and treat given data and carry out data check, improve stability and the success rate of transfer of data.
Please refer to Fig. 2, it is the method flow diagram of the second embodiment of the method for coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention.As shown in the figure, the method, comprising:
Step S201: carry out data check to sent data.
Step S202: data to be sent are loaded in sound wave by the acoustic waveform preset and transmit.
Described default acoustic waveform has 2,4,8 or 16.
Generally speaking, the data stored in computer are binary data, if transmitted with binary data, so only need 2 acoustic waveforms, each acoustic waveform transmits a data element; If transmitted with 4 binary data, need 4 acoustic waveforms, each acoustic waveform transmits 2 data elements; Further, if transmitted with 16 binary data, need 16 acoustic waveforms, each acoustic waveform transmits 4 data elements.If that is with 16 acoustic waveform transmission data, can transmission speed be improved, be equivalent to the bandwidth increasing transfer of data.Although it should be noted that and can arrange 32,64 or other any 2n (n is positive integer) individual acoustic waveform in theory, acoustic waveform is more, and the difference between acoustic waveform is less, higher to the requirement of precision in sonicated process.
Step S203: resolve the sound wave received and obtain multiple decomposition waveform.
Step S204: described decomposition Waveform Matching is gone out the acoustic waveform preset that corresponding similarity is not less than threshold value.
When the number of described acoustic waveform is multiple, described acoustic waveform decomposes acoustic waveform corresponding to waveform respectively and is connected into acoustic waveform string with other.
In acoustic receiver process, may produce certain wave form varies because of external interference, cause receiving the waveform generated when decomposition waveform that rear parsing obtains is not coding, even certain decomposes waveform and has the higher acoustic waveform preset of multiple similarity.
Step S205: decode data undetermined that acoustic waveform string carries and carry out data check to described data undetermined, described acoustic waveform string is in series by the corresponding described decomposition waveform of described acoustic waveform.
Generally speaking, last matching result one decomposes waveform and only has an acoustic waveform, if there is multiple acoustic waveform, then can produce multiple acoustic waveform string, now need to decode and data check to multiple acoustic waveform string.
Step S206: if data check passes through, then described data undetermined save as correct data; Otherwise request resends data.
In sum, transmit by being loaded in sound wave after data to be sent are carried out data check, contrast with the acoustic waveform preset after receiving sound wave, decode data undetermined according to comparing result and treat given data and carry out data check, improve stability and the success rate of transfer of data.
It is below the embodiment of the system of coding and decoding in a kind of acoustic communication of this programme, in acoustic communication, the embodiment of the system of coding and decoding realizes based on the embodiment of the method for coding and decoding in acoustic communication, description not most in the embodiment of system, please refer to the embodiment of method.
Please refer to Fig. 3, it is the block diagram of the first embodiment of the system of coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention.As shown in the figure, this system, comprising:
Send data check unit 310, for carrying out data check to sent data;
Waveform loads transmission unit 320, transmits for data to be sent being loaded in sound wave by the acoustic waveform preset;
Sound wave resolution unit 330, obtains multiple decomposition waveform for resolving the sound wave received;
Acoustic waveform matching unit 340, for going out the corresponding acoustic waveform preset by described decomposition Waveform Matching;
Receive data check unit 350, for decoding data undetermined that acoustic waveform string carries and carrying out data check to described data undetermined, described acoustic waveform string is in series by the corresponding described decomposition waveform of described acoustic waveform.
In sum, the collaborative work of above-mentioned each unit, transmit by being loaded in sound wave after data to be sent are carried out data check, contrast with the acoustic waveform preset after receiving sound wave, decode data undetermined according to comparing result and treat given data and carry out data check, improve stability and the success rate of transfer of data.
Please refer to Fig. 4, it is the block diagram of the second embodiment of the system of coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention.As shown in the figure, this system, comprising:
Send data check unit 310, for carrying out data check to sent data;
Waveform loads transmission unit 320, transmits for data to be sent being loaded in sound wave by the acoustic waveform preset;
Sound wave resolution unit 330, obtains multiple decomposition waveform for resolving the sound wave received;
Acoustic waveform matching unit 340, for going out the corresponding acoustic waveform preset by described decomposition Waveform Matching;
Receive data check unit 350, for decoding data undetermined that acoustic waveform string carries and carrying out data check to described data undetermined, described acoustic waveform string is in series by the corresponding described decomposition waveform of described acoustic waveform.
Wherein, described acoustic waveform matching unit 340, specifically for:
Described decomposition Waveform Matching is gone out the acoustic waveform preset that corresponding similarity is not less than threshold value.
Wherein, when the number of described acoustic waveform is multiple, described acoustic waveform decomposes acoustic waveform corresponding to waveform respectively and is connected into acoustic waveform string with other.
Wherein, also comprise:
Data processing unit 360 undetermined, if pass through for data check, then described data undetermined save as correct data; Otherwise request resends data.
Wherein, described default acoustic waveform has 2,4,8 or 16.
In sum, the collaborative work of above-mentioned each unit, transmit by being loaded in sound wave after data to be sent are carried out data check, contrast with the acoustic waveform preset after receiving sound wave, decode data undetermined according to comparing result and treat given data and carry out data check, improve stability and the success rate of transfer of data.
Below know-why of the present invention is described in conjunction with specific embodiments.These describe just in order to explain principle of the present invention, and can not be interpreted as limiting the scope of the invention by any way.Based on explanation herein, those skilled in the art does not need to pay performing creative labour can associate other embodiment of the present invention, and these modes all will fall within protection scope of the present invention.

Claims (10)

1. the method for coding and decoding in acoustic communication, is characterized in that, comprising:
Data check is carried out to sent data;
Data to be sent are loaded in sound wave by the acoustic waveform preset and transmit;
Resolve the sound wave received and obtain multiple decomposition waveform;
Described decomposition Waveform Matching is gone out the corresponding acoustic waveform preset;
Decode data undetermined that acoustic waveform string carries and carry out data check to described data undetermined, described acoustic waveform string is in series by the corresponding described decomposition waveform of described acoustic waveform.
2. method according to claim 1, is characterized in that, the described acoustic waveform preset described decomposition Waveform Matching being gone out correspondence, is specially:
Described decomposition Waveform Matching is gone out the acoustic waveform preset that corresponding similarity is not less than threshold value.
3. method according to claim 2, is characterized in that, when the number of described acoustic waveform is multiple, described acoustic waveform decomposes acoustic waveform corresponding to waveform respectively and is connected into acoustic waveform string with other.
4. method according to claim 1, is characterized in that, described in decode data undetermined that acoustic waveform string carries and after data check is carried out to described data undetermined, also comprise:
If data check passes through, then described data undetermined save as correct data; Otherwise request resends data.
5. method according to claim 1, is characterized in that, described default acoustic waveform has 2,4,8 or 16.
6. the system of coding and decoding in acoustic communication, is characterized in that, comprising:
Send data check unit, for carrying out data check to sent data;
Waveform loads transmission unit, transmits for data to be sent being loaded in sound wave by the acoustic waveform preset;
Sound wave resolution unit, obtains multiple decomposition waveform for resolving the sound wave received;
Acoustic waveform matching unit, for going out the corresponding acoustic waveform preset by described decomposition Waveform Matching;
Receive data check unit, for decoding data undetermined that acoustic waveform string carries and carrying out data check to described data undetermined, described acoustic waveform string is in series by the corresponding described decomposition waveform of described acoustic waveform.
7. system according to claim 6, is characterized in that, described acoustic waveform matching unit, specifically for:
Described decomposition Waveform Matching is gone out the acoustic waveform preset that corresponding similarity is not less than threshold value.
8. system according to claim 7, is characterized in that, when the number of described acoustic waveform is multiple, described acoustic waveform decomposes acoustic waveform corresponding to waveform respectively and is connected into acoustic waveform string with other.
9. system according to claim 6, is characterized in that, also comprises:
Data processing unit undetermined, if pass through for data check, then described data undetermined save as correct data; Otherwise request resends data.
10. system according to claim 6, is characterized in that, described default acoustic waveform has 2,4,8 or 16.
CN201510330194.6A 2015-06-15 2015-06-15 The method and system of coding and decoding in a kind of acoustic communication Active CN104954079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510330194.6A CN104954079B (en) 2015-06-15 2015-06-15 The method and system of coding and decoding in a kind of acoustic communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510330194.6A CN104954079B (en) 2015-06-15 2015-06-15 The method and system of coding and decoding in a kind of acoustic communication

Publications (2)

Publication Number Publication Date
CN104954079A true CN104954079A (en) 2015-09-30
CN104954079B CN104954079B (en) 2017-05-31

Family

ID=54168466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510330194.6A Active CN104954079B (en) 2015-06-15 2015-06-15 The method and system of coding and decoding in a kind of acoustic communication

Country Status (1)

Country Link
CN (1) CN104954079B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577366A (en) * 2015-12-18 2016-05-11 南京巨鲨显示科技有限公司 Sound wave generation and identification method based on embedded device
CN108075837A (en) * 2016-11-14 2018-05-25 佛山市顺德区美的电热电器制造有限公司 Hexadecimal code, coding/decoding method and the device of ultrasonic communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546032A (en) * 2012-01-20 2012-07-04 北京印天网真科技有限公司 Wireless transmitting and receiving method, wireless transmitting and receiving device, wireless communication method and wireless communication system
CN102959884A (en) * 2010-04-14 2013-03-06 迈克尔·博克瑟 Method and device for identifying objects and triggering interactions by means of close-range coupling of acoustically modulated data signals
CN103067050A (en) * 2011-10-24 2013-04-24 国民技术股份有限公司 Communication system and communication method
CN103856269A (en) * 2012-12-07 2014-06-11 国民技术股份有限公司 Information transmitting and reading method and device based on sound waves

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102959884A (en) * 2010-04-14 2013-03-06 迈克尔·博克瑟 Method and device for identifying objects and triggering interactions by means of close-range coupling of acoustically modulated data signals
CN103067050A (en) * 2011-10-24 2013-04-24 国民技术股份有限公司 Communication system and communication method
CN102546032A (en) * 2012-01-20 2012-07-04 北京印天网真科技有限公司 Wireless transmitting and receiving method, wireless transmitting and receiving device, wireless communication method and wireless communication system
CN103856269A (en) * 2012-12-07 2014-06-11 国民技术股份有限公司 Information transmitting and reading method and device based on sound waves

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577366A (en) * 2015-12-18 2016-05-11 南京巨鲨显示科技有限公司 Sound wave generation and identification method based on embedded device
CN105577366B (en) * 2015-12-18 2019-03-01 南京巨鲨显示科技有限公司 Sound wave based on embedded device generates and recognition methods
CN108075837A (en) * 2016-11-14 2018-05-25 佛山市顺德区美的电热电器制造有限公司 Hexadecimal code, coding/decoding method and the device of ultrasonic communication
CN108075837B (en) * 2016-11-14 2021-04-27 佛山市顺德区美的电热电器制造有限公司 Hexadecimal coding and decoding method and device for ultrasonic communication

Also Published As

Publication number Publication date
CN104954079B (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN108347302B (en) Coding and decoding method and terminal
US9143267B2 (en) Low complexity and power efficient error correction coding schemes
CN108777606B (en) Decoding method, apparatus and readable storage medium
US11240709B2 (en) Data transmission method and related device
CN101702639B (en) Check value calculation method and device of cyclic redundancy check
US20220077958A1 (en) Data Transmission Method and Apparatus
WO2017121334A1 (en) Data-processing method and device
CN103346800B (en) A kind of data compression method and device
CN106170934A (en) Wireless forward pass passive optical network PON system, optical network device and method
CN112399479B (en) Method, electronic device and storage medium for data transmission
CN108183771A (en) Data processing method, equipment and system in optical network system
CN103312458A (en) Hybrid coding method
CN104954079A (en) Method and system for coding and decoding in sound wave communication
CN1770674B (en) Decoding error correcting codes transmitted through multiple wire twisted pair cables with uneven noise on the wires
US9621388B2 (en) Method for serial data transmission and system therefor
CN109525367B (en) Error detection and adaptive error correction method based on LoRa coding and decoding mechanism
CN101854179B (en) 5bit quantization method applied to LDPC decoding
CN107707329A (en) Sparse Code multiple access system and its multi-user test method
CN109741756B (en) Method and system for transmitting operation signal based on USB external equipment
CN113922852A (en) Codebook determination method and device, electronic equipment and computer readable storage medium
US8855219B2 (en) Flexible self-adaptive differential system to improve transmission efficiency
CN105099571A (en) Audio communication method
CN104993907A (en) Frequency spectrum coding communication method and apparatus
CN205453999U (en) Interphone system
US20150055736A1 (en) Method and apparatus for decoding received sequence

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant