CN104954079B - The method and system of coding and decoding in a kind of acoustic communication - Google Patents

The method and system of coding and decoding in a kind of acoustic communication Download PDF

Info

Publication number
CN104954079B
CN104954079B CN201510330194.6A CN201510330194A CN104954079B CN 104954079 B CN104954079 B CN 104954079B CN 201510330194 A CN201510330194 A CN 201510330194A CN 104954079 B CN104954079 B CN 104954079B
Authority
CN
China
Prior art keywords
data
waveform
acoustic waveform
acoustic
decomposition
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.)
Active
Application number
CN201510330194.6A
Other languages
Chinese (zh)
Other versions
CN104954079A (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

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention discloses a kind of method and system of coding and decoding in acoustic communication.The method, including:Data check is carried out to sent data;Data to be sent are loaded into sound wave by default acoustic waveform and are transmitted;The sound wave that parsing is received obtains multiple decomposition waveforms;The decomposition Waveform Matching is gone out into corresponding default acoustic waveform;Decode the data undetermined of acoustic waveform string carrying and the data undetermined are carried out with data check, the acoustic waveform string is in series by the acoustic waveform correspondence decomposition waveform.It is transmitted in being loaded into sound wave after data to be sent are carried out into data check, contrasted with default acoustic waveform after receiving sound wave, data undetermined are decoded and to indefinite number according to data check is carried out according to comparing result, the stability and success rate of data transfer is improved.

Description

The method and system of coding and decoding in a kind of acoustic communication
Technical field
The present invention relates to a kind of method and system of coding and decoding in database field, more particularly to acoustic communication.
Background technology
Communicated between movable equipment by acoustic communication and used gradually, because can be without additionally wirelessly setting It is standby to be capable of achieving short-range communication, as long as and there is MIC to can be carried out acoustic communication with loudspeaker, so many products are all utilized Sound wave is communicated, but acoustic communication shortcoming is also very big, is easily disturbed by ambient noise, causes data transmission fault, Less stable, is also larger many data volumes, and require real-time it is high transmission will not, it is necessary to lift sonic transmissions Success rate.
The content of the invention
The invention provides a kind of method and system of coding and decoding in acoustic communication, it enters by by data to be sent Be loaded into after row data check in sound wave and be transmitted, receive after sound wave with the contrast of default acoustic waveform, tied according to contrast Fruit decodes data undetermined and to indefinite number according to data check is carried out, and improves the stability and success rate of data transfer.
To realize above-mentioned design, the present invention uses following technical scheme:
On the one hand using a kind of method of coding and decoding in acoustic communication, including:
Data check is carried out to sent data;
Data to be sent are loaded into sound wave by default acoustic waveform and are transmitted;
The sound wave that parsing is received obtains multiple decomposition waveforms;
The decomposition Waveform Matching is gone out into corresponding default acoustic waveform;
Decode the data undetermined of acoustic waveform string carrying and the data undetermined are carried out with data check, the sound wave ripple Shape string is in series by the acoustic waveform correspondence decomposition waveform.
Wherein, it is described that the decomposition Waveform Matching is gone out into corresponding default acoustic waveform, specially:
The decomposition Waveform Matching is gone out into the default acoustic waveform that corresponding similarity is not less than threshold value.
Wherein, when the number of the acoustic waveform is for multiple, the acoustic waveform is corresponding with other decomposition waveforms respectively Acoustic waveform be connected into acoustic waveform string.
Wherein, it is described decode acoustic waveform string carrying data undetermined and the data undetermined are carried out data check it Afterwards, also include:
If data check passes through, the data undetermined save as correct data;Otherwise request resends data.
Wherein, the default acoustic waveform has 2,4,8 or 16.
On the other hand using a kind of system of coding and decoding in acoustic communication, including:
Data check unit is sent, for carrying out data check to sent data;
Waveform loads transmission unit, is passed for data to be sent to be loaded into sound wave by default acoustic waveform It is defeated;
Sound wave resolution unit, multiple decomposition waveforms are obtained for parsing the sound wave for receiving;
Acoustic waveform matching unit, for the decomposition Waveform Matching to be gone out into corresponding default acoustic waveform;
Data check unit is received, for decoding the data undetermined of acoustic waveform string carrying and the data undetermined being entered Row data check, the acoustic waveform string is in series by the acoustic waveform correspondence decomposition waveform.
Wherein, the acoustic waveform matching unit, specifically for:
The decomposition Waveform Matching is gone out into the default acoustic waveform that corresponding similarity is not less than threshold value.
Wherein, when the number of the acoustic waveform is for multiple, the acoustic waveform is corresponding with other decomposition waveforms respectively Acoustic waveform be connected into acoustic waveform string.
Wherein, also include:
Data processing unit undetermined, if passing through for data check, the data undetermined save as correct data;Otherwise Request resends data.
Wherein, the default acoustic waveform has 2,4,8 or 16.
Beneficial effects of the present invention are:Passed in being loaded into sound wave after data to be sent are carried out into data check It is defeated, contrasted with default acoustic waveform after receiving sound wave, data undetermined are decoded according to comparing result and indefinite number evidence is entered Row data check, improves the stability and success rate of data transfer.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, institute in being described to the embodiment of the present invention below The accompanying drawing for needing to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also implement according to the present invention The content and these accompanying drawings of example obtain other accompanying drawings.
Fig. 1 is the first implementation of the method for coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention The method flow diagram of example.
Fig. 2 is the second implementation of the method for coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention The method flow diagram of example.
Fig. 3 is the first implementation of the system of coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention The block diagram of example.
Fig. 4 is the second implementation of the system of coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention The block diagram of example.
Specific embodiment
For make present invention solves the technical problem that, the technical scheme that uses and the technique effect that reaches it is clearer, below The technical scheme of the embodiment of the present invention will be described in further detail with reference to accompanying drawing, it is clear that described embodiment is only It is a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, those skilled in the art exist The every other embodiment obtained under the premise of creative work is not made, the scope of protection of the invention is belonged to.
Fig. 1 is refer to, it is the method for coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention First embodiment method flow diagram.As illustrated, the method, including:
Step S101:Data check is carried out to sent data.
It is accurate in order to confirm the data that receiving terminal is received, verified to sent data in data is activation, Specific to use even-odd check, CRC CRCs etc., the mode of the realization of data check has various, does not do here specifically It is bright.
Step S102:Data to be sent are loaded into sound wave by default acoustic waveform and are transmitted.
During acoustic communication, an acoustic waveform is defined as a kind of data element, number of multiple data tuples into completion According to it is exactly that each data element in data is encoded into a corresponding acoustic waveform, Duo Gesheng to load data into sound wave The combination of waveform just carries data to be sent, the combination of the multiple acoustic waveforms obtained by loudspeaker exports coding, i.e., It is capable of achieving the transmission of data.
Step S103:The sound wave that parsing is received obtains multiple decomposition waveforms.
The continuous sound wave parsing that will be received obtains multiple separate decomposition waveforms.
Step S104:The decomposition Waveform Matching is gone out into corresponding default acoustic waveform.
Waveform will be decomposed to be matched with default acoustic waveform, confirm corresponding acoustic waveform to confirm the decomposition waveform The data element of carrying.
Step S105:Decode the data undetermined of acoustic waveform string carrying and data check carried out to the data undetermined, The acoustic waveform string is in series by the acoustic waveform correspondence decomposition waveform.
In sum, it is transmitted in being loaded into sound wave after data to be sent are carried out into data check, is received Contrasted with default acoustic waveform after sound wave, data undetermined are decoded according to comparing result and data school is carried out to indefinite number evidence Test, improve the stability and success rate of data transfer.
Fig. 2 is refer to, it is the method for coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention Second embodiment method flow diagram.As illustrated, the method, including:
Step S201:Data check is carried out to sent data.
Step S202:Data to be sent are loaded into sound wave by default acoustic waveform and are transmitted.
The default acoustic waveform has 2,4,8 or 16.
In general, the data stored in computer are binary data, if be transmitted with binary data, then 2 acoustic waveforms, each acoustic waveform are only needed to transmit a data element;If be transmitted with 4 binary datas, it is necessary to 4 Individual acoustic waveform, each acoustic waveform transmits 2 data elements;Further, if be transmitted with 16 binary datas, it is necessary to 16 Individual acoustic waveform, each acoustic waveform transmits 4 data elements.If that is transmitting data with 16 acoustic waveforms, can Transmission speed is improved, equivalent to the bandwidth for increasing data transfer.Although it should be noted that can set in theory 32,64 It is individual or other any 2n(n is positive integer) individual acoustic waveform, but acoustic waveform is more, and the difference between acoustic waveform is smaller, Requirement during sonicated to precision is higher.
Step S203:The sound wave that parsing is received obtains multiple decomposition waveforms.
Step S204:The decomposition Waveform Matching is gone out into the default acoustic waveform that corresponding similarity is not less than threshold value.
When the acoustic waveform number for it is multiple when, acoustic waveform sound wave corresponding with other decomposition waveforms respectively Waveform is connected into acoustic waveform string.
During acoustic receiver, certain waveform change may be produced because of external interference, be parsed after causing to receive The waveform that generates when the decomposition waveform for obtaining not is coding, or even certain decomposes waveform and has higher default of multiple similarities Acoustic waveform.
Step S205:Decode the data undetermined of acoustic waveform string carrying and data check carried out to the data undetermined, The acoustic waveform string is in series by the acoustic waveform correspondence decomposition waveform.
In general, last one decomposition waveform only one of which acoustic waveform of matching result, if multiple sound wave ripples Shape, then can produce multiple acoustic waveform strings, now need to decode and data check multiple acoustic waveform strings.
Step S206:If data check passes through, the data undetermined save as correct data;Otherwise request resends Data.
In sum, it is transmitted in being loaded into sound wave after data to be sent are carried out into data check, is received Contrasted with default acoustic waveform after sound wave, data undetermined are decoded according to comparing result and data school is carried out to indefinite number evidence Test, improve the stability and success rate of data transfer.
It is below the embodiment of the system of coding and decoding in a kind of acoustic communication of this programme, coding and decoding in acoustic communication The embodiment that the embodiment of system is based on the method for coding and decoding in acoustic communication is realized, not most in the embodiment of system to retouch State, refer to the embodiment of method.
Fig. 3 is refer to, it is the system of coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention First embodiment block diagram.As illustrated, the system, including:
Data check unit 310 is sent, for carrying out data check to sent data;
Waveform loads transmission unit 320, for being loaded into sound wave by default acoustic waveform by data to be sent Row transmission;
Sound wave resolution unit 330, multiple decomposition waveforms are obtained for parsing the sound wave for receiving;
Acoustic waveform matching unit 340, for the decomposition Waveform Matching to be gone out into corresponding default acoustic waveform;
Data check unit 350 is received, for decoding the data undetermined of acoustic waveform string carrying and to the indefinite number According to data check is carried out, the acoustic waveform string is in series by the acoustic waveform correspondence decomposition waveform.
In sum, the collaborative work of above-mentioned each unit, is loaded into after data to be sent are carried out into data check It is transmitted in sound wave, is contrasted with default acoustic waveform after receiving sound wave, data undetermined is decoded simultaneously according to comparing result To indefinite number according to data check is carried out, the stability and success rate of data transfer are improved.
Fig. 4 is refer to, it is the system of coding and decoding in a kind of acoustic communication provided in the specific embodiment of the invention Second embodiment block diagram.As illustrated, the system, including:
Data check unit 310 is sent, for carrying out data check to sent data;
Waveform loads transmission unit 320, for being loaded into sound wave by default acoustic waveform by data to be sent Row transmission;
Sound wave resolution unit 330, multiple decomposition waveforms are obtained for parsing the sound wave for receiving;
Acoustic waveform matching unit 340, for the decomposition Waveform Matching to be gone out into corresponding default acoustic waveform;
Data check unit 350 is received, for decoding the data undetermined of acoustic waveform string carrying and to the indefinite number According to data check is carried out, the acoustic waveform string is in series by the acoustic waveform correspondence decomposition waveform.
Wherein, the acoustic waveform matching unit 340, specifically for:
The decomposition Waveform Matching is gone out into the default acoustic waveform that corresponding similarity is not less than threshold value.
Wherein, when the number of the acoustic waveform is for multiple, the acoustic waveform is corresponding with other decomposition waveforms respectively Acoustic waveform be connected into acoustic waveform string.
Wherein, also include:
Data processing unit undetermined 360, if passing through for data check, the data undetermined save as correct data; Otherwise request resends data.
Wherein, the default acoustic waveform has 2,4,8 or 16.
In sum, the collaborative work of above-mentioned each unit, is loaded into after data to be sent are carried out into data check It is transmitted in sound wave, is contrasted with default acoustic waveform after receiving sound wave, data undetermined is decoded simultaneously according to comparing result To indefinite number according to data check is carried out, the stability and success rate of data transfer are improved.
Know-why of the invention is described above in association with specific embodiment.These descriptions are intended merely to explain of the invention Principle, and can not by any way be construed to limiting the scope of the invention.Based on explanation herein, the technology of this area Personnel associate other specific embodiments of the invention by would not require any inventive effort, these modes fall within Within protection scope of the present invention.

Claims (8)

1. in a kind of acoustic communication coding and decoding method, it is characterised in that including:
Data check is carried out to sent data;
Data to be sent are loaded into sound wave by default acoustic waveform and are transmitted;
The sound wave that parsing is received obtains multiple decomposition waveforms;
The decomposition Waveform Matching is gone out into corresponding default acoustic waveform, is specially gone out the decomposition Waveform Matching corresponding Similarity is not less than the default acoustic waveform of threshold value;
Decode the data undetermined of acoustic waveform string carrying and the data undetermined are carried out with data check, the acoustic waveform string It is in series by the acoustic waveform correspondence decomposition waveform.
2. method according to claim 1, it is characterised in that when the acoustic waveform number for it is multiple when, the sound Acoustic waveform corresponding with other decomposition waveforms is connected into acoustic waveform string to waveform respectively.
3. method according to claim 1, it is characterised in that the data undetermined for decoding the carrying of acoustic waveform string are simultaneously The data undetermined are carried out after data check, also included:
If data check passes through, the data undetermined save as correct data;Otherwise request resends data.
4. method according to claim 1, it is characterised in that the default acoustic waveform has 2,4,8 or 16.
5. in a kind of acoustic communication coding and decoding system, it is characterised in that including:
Data check unit is sent, for carrying out data check to sent data;
Waveform loads transmission unit, is transmitted for data to be sent to be loaded into sound wave by default acoustic waveform;
Sound wave resolution unit, multiple decomposition waveforms are obtained for parsing the sound wave for receiving;
Acoustic waveform matching unit, for the decomposition Waveform Matching to be gone out into corresponding default acoustic waveform, specifically for:Will The decomposition Waveform Matching goes out the default acoustic waveform that corresponding similarity is not less than threshold value;
Receive data check unit, for decode acoustic waveform string carrying data undetermined and to the data number undetermined According to verification, the acoustic waveform string is in series by the acoustic waveform correspondence decomposition waveform.
6. system according to claim 5, it is characterised in that when the acoustic waveform number for it is multiple when, the sound Acoustic waveform corresponding with other decomposition waveforms is connected into acoustic waveform string to waveform respectively.
7. system according to claim 5, it is characterised in that also include:
Data processing unit undetermined, if passing through for data check, the data undetermined save as correct data;Otherwise ask Resend data.
8. system according to claim 5, it is characterised in that the 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 CN104954079A (en) 2015-09-30
CN104954079B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577366B (en) * 2015-12-18 2019-03-01 南京巨鲨显示科技有限公司 Sound wave based on embedded device generates and recognition methods
CN108075837B (en) * 2016-11-14 2021-04-27 佛山市顺德区美的电热电器制造有限公司 Hexadecimal coding and decoding method and device for 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

Also Published As

Publication number Publication date
CN104954079A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
US9628114B2 (en) Length-compatible extended polar codes
US10128982B2 (en) Extended polar codes
US9143267B2 (en) Low complexity and power efficient error correction coding schemes
WO2019006345A3 (en) Wake-up radio frame formats and device communications
DE112017004723T5 (en) SYSTEM AND METHOD FOR TRANSMITTING AN ALARM SIGNAL ON LOW-POWER DEVICES IN A WIRELESS COMMUNICATION SYSTEM
EP2566086A3 (en) Method and apparatus for transmitting and receiving information in a broadcasting/communication system
CN102571966A (en) Network transmission method for large extensible markup language (XML) document
JP2013514716A5 (en)
WO2017200327A3 (en) Method and apparatus for transmission and reception in wireless communication system supporting scalable frame structure
CN104954079B (en) The method and system of coding and decoding in a kind of acoustic communication
CN102215183A (en) Blind detection device and method
MX2019005932A (en) Receiver, transmitter, communication network, data signal and method improving a retransmission process in a communication network.
CN105281843A (en) Two-dimensional code transmission and reception methods and transmission and reception devices
US20230283346A1 (en) Channel state information encoding method and apparatus, storage medium and processor
CN104081701A (en) Communication method, system and device for optical network system
CN106448128B (en) Infrared remote control data processing method and system
CN103312458A (en) Hybrid coding method
EP2555482A3 (en) Method and device for decoding of precoded signal
CN110324094B (en) Sound wave communication method and device, storage medium and electronic device
CN102957511A (en) Adaptive deceleration method of data transmission
US9621388B2 (en) Method for serial data transmission and system therefor
CN104200093A (en) Method for inhibiting local mean decomposition end effect through integral continuation
CN106937381A (en) Network side equipment and downlink data transmission method
Cao et al. Interference channel with one cognitive transmitter
WO2023179800A1 (en) Communication receiving method and apparatus thereof

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