CN104954079B - 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 PDFInfo
- 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
- sound wave
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 25
- 238000000034 method Methods 0.000 title claims abstract description 24
- 230000005540 biological transmission Effects 0.000 claims abstract description 14
- 238000000354 decomposition reaction Methods 0.000 claims description 40
- 238000012545 processing Methods 0.000 claims description 3
- 238000012795 verification Methods 0.000 claims 1
- 238000013524 data verification Methods 0.000 abstract 4
- 238000010586 diagram Methods 0.000 description 8
- 238000012546 transfer Methods 0.000 description 7
- 206010009944 Colon cancer Diseases 0.000 description 2
- 241001269238 Data Species 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The invention discloses a method and a system for coding and decoding in sound wave communication. The method comprises the following steps: carrying out data verification on data to be sent; loading data to be transmitted into sound waves according to a preset sound wave shape for transmission; analyzing the received sound waves to obtain a plurality of decomposed waveforms; matching the decomposed waveforms to obtain corresponding preset sound wave waveforms; and decoding to-be-determined data carried by the sound wave waveform string and carrying out data verification on the to-be-determined data, wherein the sound wave waveform string is formed by connecting the sound wave waveforms in series corresponding to the decomposed waveforms. Data to be transmitted are loaded into sound waves for transmission after data verification is carried out on the data, the received sound waves are compared with preset sound wave forms, undetermined data are decoded according to comparison results, data verification is carried out on the data to be determined, and stability and success rate of data transmission are improved.
Description
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.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510330194.6A CN104954079B (en) | 2015-06-15 | 2015-06-15 | Method and system for coding and decoding in sound wave communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510330194.6A CN104954079B (en) | 2015-06-15 | 2015-06-15 | Method and system for coding and decoding in sound wave 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 | Method and system for coding and decoding in sound wave communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104954079B (en) |
Families Citing this family (2)
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)
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 |
-
2015
- 2015-06-15 CN CN201510330194.6A patent/CN104954079B/en active Active
Patent Citations (4)
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 |
---|---|---|
US10128982B2 (en) | Extended polar codes | |
CN104081454B (en) | For avoiding equipment, the method and computer program of clipping artifacts | |
US20160294418A1 (en) | Length-compatible extended polar codes | |
US9143267B2 (en) | Low complexity and power efficient error correction coding schemes | |
US9258013B1 (en) | Data compression with Huffman code on multicore processors | |
CN103346800B (en) | A kind of data compression method and device | |
CN102594492B (en) | A kind of code block dividing method and device | |
GB2523347A (en) | Encoder, decoder and method | |
CN104954079B (en) | Method and system for coding and decoding in sound wave communication | |
US20140184431A1 (en) | Methods for simplified mmi vq based harq buffer reduction for lte | |
US20230283346A1 (en) | Channel state information encoding method and apparatus, storage medium and processor | |
CN105281843A (en) | Two-dimensional code transmission and reception methods and transmission and reception devices | |
US9621283B1 (en) | Molecular communication system and method of operating molecular communication system | |
CN106448128B (en) | Infrared remote control data processing method and system | |
EP2555482A3 (en) | Method and device for decoding of precoded signal | |
CN104200093A (en) | Method for inhibiting local mean decomposition end effect through integral continuation | |
CN107437976B (en) | Data processing method and equipment | |
CN107222848A (en) | Coding method, transmitting terminal, storage medium and a kind of radio reception device of Wifi frame | |
US20160080185A1 (en) | Method for serial data transmission and system therefor | |
CN106937381A (en) | Network side equipment and downlink data transmission method | |
Cao et al. | Interference channel with one cognitive transmitter | |
Zainuddin et al. | Nanonetwork minimum energy coding | |
CN106788880B (en) | The data transmission method and device encoded using LDPC | |
MX2020005239A (en) | Methods of transmitting and receiving additional sib1-nb subframes in a nb-iot network. | |
CN101854179B (en) | 5bit quantization method applied to LDPC decoding |
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 |