CN105790853A - Method and device for transmitting character data through sound wave - Google Patents

Method and device for transmitting character data through sound wave Download PDF

Info

Publication number
CN105790853A
CN105790853A CN201410836354.XA CN201410836354A CN105790853A CN 105790853 A CN105790853 A CN 105790853A CN 201410836354 A CN201410836354 A CN 201410836354A CN 105790853 A CN105790853 A CN 105790853A
Authority
CN
China
Prior art keywords
character
data
transmission
decimal number
decimal
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
CN201410836354.XA
Other languages
Chinese (zh)
Other versions
CN105790853B (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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410836354.XA priority Critical patent/CN105790853B/en
Publication of CN105790853A publication Critical patent/CN105790853A/en
Application granted granted Critical
Publication of CN105790853B publication Critical patent/CN105790853B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses a method and device for transmitting character data through sound wave, wherein the method comprises the following steps that: a sending end compresses the character data to generate transmission data, converts the transmission data on a corresponding sound wave frequency to generate continuous audio information, and sends the continuous audio information, such that each syllable of the audio information includes one or more frequency signals; and, while receiving the audio information, a receiving end analyzes the frequency signals from the audio information, obtains the transmission data from the frequency signals, and decompresses the transmission data to obtain the character data. According to the method and device for transmitting the character data through sound wave disclosed by the invention, the character data in a sound wave transmission data source is compressed; the coding length of the transmitted data is reduced; the transmission efficiency is increased; the bit error rate is reduced; data transmission is carried out on the basis of multi-frequency sound wave; each syllable includes multiple frequencies; the coding information of each syllable is increased; and the code rate is increased.

Description

A kind of method of sonic transmissions character data and device
Technical field
The present invention relates to technical field of data transmission, particularly relate to method and the device of a kind of sonic transmissions character data.
Background technology
Along with the universal and social Informatization Development of the Internet, it is more and more important in people live that terminal (includes the plurality of devices such as computer, smart mobile phone).In multiple APP applies, the transmission quality of data directly affects user's experience to this application, and data packet loss phenomenon in the process of transmission drastically influence the transmission quality of packet.The application of sonic transmissions technology gets more and more, and in the process utilizing sonic transmissions data, it is possible to different data bands is mixed, represents different data.
Such as, the more commonly used in sonic transmissions is dual tone multi-frequency dtmf (DualToneMultiFrequency) signal, adopts the frequency range of 4x4 to represent 16 kinds different data.DTMF codec converts keystroke or digital information to two-tone signal when coding and sends, Fig. 1 is the composition schematic diagram of dtmf signal in prior art, send afterwards by producing two sine-wave superimposed together, the Goertzel algorithm of improvement can be adopted during decoding, from two sinusoidal wave existence of frequency domain search, thus demodulating dtmf signal.But, in the process of sonic transmissions data, the data volume entrained by audio frequency is little, is generally below 256 bytes, and transfer ratio is relatively time-consuming, and therefore, how making sound wave carry more data volume is a problem needing to solve.
Summary of the invention
In view of this, a kind of method that the technical problem that the invention solves the problems that is to provide sonic transmissions character data, it is compressed processing and being transmitted based on multifrequency sound wave to the character data of sonic transmissions.
A kind of method of sonic transmissions character data, wherein: character data is compressed processing and generates transmission data by transmitting terminal;Described transmission data are transformed on the frequency of sound wave of correspondence and generate continuous print audio-frequency information and send, make each syllable of described audio-frequency information comprise one or more frequency signals;When receiving terminal receives described audio-frequency information, from described audio-frequency information, parse frequency signal and from described frequency signal, obtain described transmission data;Described transmission data are carried out decompression, parses described character data.
According to one embodiment of present invention, further, described transmitting terminal character data is compressed process generate transmission data include: described transmitting terminal by corresponding to each character in character data ASCII character 8 bit binary data combine, generate transmission data.
According to one embodiment of present invention, further, transmitting terminal, by the low 7 bit binary data combinations of ASCII character 8 bit binary data corresponding to each character in character data, generates transmission data;Receiving terminal parses 7 bit binary data that each character is corresponding, and the highest order in described 7 bit binary data adds 0 and is reduced to 8 bit binary data, by character combination corresponding for this 8 bit, is reduced to described character data.
According to one embodiment of present invention, further, ASCII character decimal number corresponding for each character in described character data is individually subtracted default difference and generates transmission character by transmitting terminal, and by binary data combination corresponding for transmission character, generates transmission data;Receiving terminal parses each transmission character, and by ASCII character decimal number corresponding for each transmission character plus described difference, the ASCII character decimal number that each character of being reduced in described character data is corresponding.
According to one embodiment of present invention, further, transmitting terminal character data is compressed process generate transmission data include: described character data is divided into data block, and each data block includes the N number of character preset;N>1;ASCII character decimal number corresponding for described N number of character being individually subtracted described difference and generates N number of transmission decimal number, described N number of transmission decimal number is both less than 100 and more than 0;Described N number of transmission decimal number is respectively converted into N number of character string;Wherein, in described N number of character string, length is left position increase character " 0 " of the character string of 1;N number of character string is spliced to form successively the combining characters string that length is 2N, and described combining characters string is converted to decimal data, this decimal data is converted to binary transmission of data blocks data;Described binary transmission of data blocks data are converted to decimal number by receiving terminal, and this decimal number is converted to the character string that length is 2N;According to order from high to low, the character string that this length is 2N is divided into the character string that N number of length is 2, the character string that this N number of length is 2 is respectively converted into decimal number and plus described difference, it is reduced to the ASCII character decimal number that character is corresponding, is described data block by character combination corresponding for this ASCII character decimal number.
According to one embodiment of present invention, further, the value of described N includes: 3,8.
According to one embodiment of present invention, further, described difference is 30.
According to one embodiment of present invention, further, each syllable making described audio-frequency information described in comprises one or more frequency signals and includes: the one or more frequency signal of data genaration transmitted for each syllable;The one or more frequency signal superposition is synthesized simple signal or multiple-frequency signal.
The technical problem that the invention solves the problems that is to provide the device of a kind of sonic transmissions character data, is compressed processing and being transmitted based on multifrequency sound wave to the character data of sonic transmissions.
A kind of device of sonic transmissions character data, including: transmitting element, it is compressed processing generation transmission data by character data for transmitting terminal, described transmission data are transformed on the frequency of sound wave of correspondence and generate continuous print audio-frequency information and send, make each syllable of described audio-frequency information comprise one or more frequency signals;Receive unit, for when receiving described audio-frequency information, parsing frequency signal from described audio-frequency information and obtain described transmission data from described frequency signal, described transmission data being carried out decompression, parses described character data.
According to one embodiment of present invention, further, described transmitting element, for ASCII character 8 bit binary data corresponding to each character in character data being combined, generate transmission data.
According to one embodiment of present invention, further, described transmitting element, including: binary system compression submodule, for by the low 7 bit binary data combinations of ASCII character 8 bit binary data corresponding to each character in character data, generating transmission data;Described reception unit, including: binary system analyzing sub-module, for parsing 7 bit binary data that each character is corresponding, the highest order in described 7 bit binary data adds 0 and is reduced to described 8 bit binary data, by character combination corresponding for described 8 bits, it is reduced to described character data.
According to one embodiment of present invention, further, described transmitting element, generate transmission character for ASCII character decimal number corresponding for each character in described character data being individually subtracted default difference, and by binary data combination corresponding for this transmission character, generate transmission data;Described reception unit, is used for parsing each transmission character, and by ASCII character decimal number corresponding for each transmission character plus described difference, the ASCII character decimal number that each character of being reduced in described character data is corresponding.
According to one embodiment of present invention, further, described transmitting element, including: data block segmentation submodule, for described character data is divided into data block, each data block includes the N number of character preset;N>1;Data block compression submodule, generates N number of transmission decimal number for ASCII character decimal number corresponding for described N number of character is individually subtracted described difference, and described N number of transmission decimal number is both less than 100 and more than 0;Described N number of transmission decimal number is respectively converted into N number of character string;Wherein, in described N number of character string, length is left position increase character " 0 " of the character string of 1;N number of character string is spliced to form successively the combining characters string that length is 2N, and described combining characters string is converted to 2N position decimal data, this 2N position decimal data is converted to binary transmission of data blocks data;Described reception unit, including: data block analyzing sub-module, for described binary transmission of data blocks data are converted to 2N position decimal number, this 2N position decimal number is converted to the character string that length is 2N;According to order from high to low, the character string that this length is 2N is divided into the character string that N number of length is 2, the character string that this N number of length is 2 is respectively converted into decimal number and plus described difference, it is reduced to the ASCII character decimal number that character is corresponding, is described data block by character combination corresponding for this ASCII character decimal number.
According to one embodiment of present invention, further, the value of described N includes: 3,8.
According to one embodiment of present invention, further, described difference is 30.
According to one embodiment of present invention, further, described transmitting element, including: audio frequency generates submodule, generates one or more frequency signals for one or more characters transmitted for each syllable;The one or more frequency signal superposition is synthesized simple signal or multiple-frequency signal.
The method of the sonic transmissions character data of the present invention, it is compressed the character data in the data source of sonic transmissions processing, reduce the code length of transmission data, improve efficiency of transmission, reduce the bit error rate, based on the data transfer rate of multifrequency sound wave, in each syllable, comprise multi-frequency, add the codified information of each syllable, improve code check.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, 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 premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the composition schematic diagram of dtmf signal in prior art;
Fig. 2 is the flow chart of an embodiment of the method for the sonic transmissions character data according to the present invention;
Fig. 3 is the schematic diagram of an embodiment of the device of the sonic transmissions character data according to the present invention.
Detailed description of the invention
With reference to the accompanying drawings the present invention is described more fully, the exemplary embodiment of the present invention is wherein described.Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Fig. 2 is the flow chart of an embodiment of the method for the sonic transmissions character data according to the present invention, as shown in Figure 2:
Step 101, character data is compressed processing and generates transmission data by transmitting terminal.
Transmission data are transformed on the frequency of sound wave of correspondence and generate continuous print audio-frequency information and send, making each syllable of audio-frequency information comprise one or more frequency signals by step 102.
Step 103, when receiving terminal receives audio-frequency information, parses frequency signal from audio-frequency information and obtains transmission data from frequency signal.
Transmission data are carried out decompression, parse character data by step 104.
The method of the sonic transmissions character data of the present invention, it is compressed the character data in the data source of sonic transmissions processing, reduce the code length of transmission data, improve efficiency of transmission, reduce the bit error rate, carry out data transmission based on multifrequency sound wave, in each syllable, comprise multi-frequency, add the codified information of each syllable, improve code check.
Character data in the present invention refers to the data being made up of letter, numeral and operative symbol etc..ASCII character uses 8 bits specified to combine the character representing 128 kinds possible.Standard ASCII character is also basis ASCII character, 0~31 and 127 (totally 33) are control character or communication special character (all the other are for showing character), 32~126 (totally 95) are character (32 are spaces), and wherein 48~57 is 0 to 90 Arabic numerals.65~90 is 26 capitalization English letters, and 97~No. 122 is 26 small English alphabet, and all the other are some punctuation mark, operative symbols etc..Such as, the decimal number of the ASCII character of " A " be 65, hexadecimal be 41, binary system be 01000001.
In one embodiment, ASCII character 8 bit binary data corresponding to each character in character data is combined by transmitting terminal, generates transmission data.Can also compress further for transmission data.
In one embodiment, transmitting terminal, by the low 7 bit binary data combinations of ASCII character 8 bit binary data corresponding to each character in character data, generates transmission data.At receiving terminal, parsing 7 bit binary data that each character is corresponding, the highest order in 7 bit binary data adds 0 and is reduced to 8 bit binary data, by character combination corresponding for this 8 bit, is reduced to character data.
Such as, the character data of transmission is: " A ", " B ", " C ".Low 7 bit binary data of ASCII character 8 bit binary data 01000001 corresponding to " A " are 1000001, low 7 bit binary data of ASCII character 8 bit binary data 01000010 corresponding to " B " are 1000010, low 7 bit binary data of ASCII character 8 bit binary data 01000011 corresponding to " C " are 1000011, then transmission data are 100000110000101000011.
At receiving terminal, parse 7 bit binary data that each character is corresponding, respectively 1000001,1000010,1000011.According to coding rule in advance, transmission data can be grouped by every 7 binary numbers, often a group i.e. corresponding character.
Add 0 in the highest order of 7 bit binary data respectively and be reduced to 8 bit binary data, namely it is reduced to: 01000001,01000010,01000011, by the character combination of 38 bit 01000001,01000010,01000011 correspondences, it is reduced to character data ABC.
When generating transmission data, it is possible not only to the first place 0 by the 8bit binary data of English character and removes, it is also possible to the character to other, for instance the first place 0 of the 8bit binary data of numeral, symbol etc. is removed, it is possible to make each character save 1bit in the transmission.
In one embodiment, ASCII character decimal number corresponding for each character in character data is individually subtracted default difference and generates transmission character by transmitting terminal, and by binary data combination corresponding for transmission character, generates transmission data;Receiving terminal parses each transmission character, and by ASCII character decimal number corresponding for each transmission character plus difference, the ASCII character decimal number that each character of being reduced in character data is corresponding.
In one embodiment, character data being divided into data block, each data block includes the N number of character preset;N>1.It is such as 2,3,4,8 etc., it is possible to be configured according to concrete demand.ASCII character decimal number corresponding for N number of character being individually subtracted default difference and generates N number of transmission decimal number, N number of transmission decimal number is both less than 100 and more than 0.
N number of transmission decimal number is respectively converted into N number of character string.Wherein, in N number of character string, length is left position increase character " 0 " of the character string of 1.N number of character string is spliced to form successively the combining characters string that length is 2N, and combining characters string is converted to decimal data, this decimal data is converted to binary transmission of data blocks data.
Binary transmission of data blocks data are converted to decimal number, this decimal number is converted to the character string that length is 2N, if decimal numeral figure place is 2N-1, then after this decimal number being converted to the character string that length is 2N-1, mend " 0 " in highest order, form the character string that length is 2N.
According to order from high to low, the character string that this length is 2N is divided into the character string that N number of length is 2, the character string that this N number of length is 2 is respectively converted into decimal number and plus difference, it is reduced to the ASCII character decimal number that character is corresponding, is data block by character combination corresponding for this ASCII character decimal number.
Such as, character data being divided into data block, each data block includes 3 characters preset, and one of them data block is ABC.ASCII character decimal number corresponding for these 3 characters of ABC is individually subtracted default difference and generates 3 transmission decimal numbers.Difference can according to concrete transmission requirement, it is ensured that 3 transmission decimal numbers are both less than 100 and more than 0.In this example, difference takes 30.
The ASCII character decimal number of A is 65, and the transmission decimal number for A is: 65-30=35;The ASCII character decimal number of B is 66, and the transmission decimal number for B is: 66-30=36;The ASCII character decimal number of C is 67, and the transmission decimal number for C is: 67-30=37.
3 are transmitted decimal number and is respectively converted into 3 character strings for " 35 ", " 36 ", " 37 ".When the length of character string is 1, for instance for " 1 ", then increasing character " 0 " in left position is " 01 " afterwards.
3 character strings " 35 ", " 36 ", " 37 " are spliced to form combining characters string " 353637 " that length is 2N successively, and combining characters string " 353637 " is converted to decimal data 353637, this decimal data " 353637 " is converted to binary transmission of data blocks data 1010110010101100101.
At receiving terminal, binary transmission of data blocks data 1010110010101100101 are converted to decimal number 353637, this decimal number is converted to the character string " 353637 " that length is 2N.
According to order from high to low, the character string " 353637 " that this length is 2N is divided into character string " 35 ", " 36 ", " 37 " that 3 length is 2, character string " 35 " that these 3 length are 2, " 36 ", " 37 " are respectively converted into decimal number and plus difference 30, it is reduced to ASCII character decimal number corresponding to character 65,66,67, is data block ABC by the character combination of this ASCII character decimal number 65,66,67 correspondence.
In one embodiment, ASCII character decimal number corresponding for these 3 characters of ABC is individually subtracted default difference and generates 3 transmission decimal numbers, the mode that dislocation is added can also be adopted to generate decimal number, and this decimal data is converted to binary transmission of data blocks data.
It is substantially all sightless character due to less than 31, so generally difference is set to 30.Transmission decimal number for A is: 65-30=35;Transmission decimal number for B is: 66-30=36;The ASCII character decimal number of C is 67, and the transmission decimal number for C is: 67-30=37.
35 × 10000+36 × 100+37 can obtain decimal data 353637, and this decimal data " 353637 " is converted to binary transmission of data blocks data 1010110010101100101.
Adopt dislocation to be added the false code being compressed as follows, perform in order, as without goto statement, then performed next:
A.i=0;Len=string length;Output=is empty;
If b. i >=Len, then terminate;
C.tempValue10=(str [i]-30) * 10000;//str [i] represents the character taking character string i-th position;
If d. i+1 > Len, then gotoh;
E.tempValue10=tempValue10+ (str [i+1]-30) * 100;
If f. i+2 > Len, then gotoh
G.tempValue10=tempValue10+ (str [i+2]-30);
H. tempValue10 is transferred to 20bit binary system, and splice at output afterbody
I.i=i+3;
j.gotob;
K. output is transferred to string of binary characters output.
Make use of ASCII character less than 31 essentially can not show the characteristic of character, it is spliced into decimal data after character is deducted 30, convert decimal data to binary data again, the bit number of transmission data can be saved, effectively reduce the code stream length in sonic transmissions process, thus improve efficiency of transmission, reduce the bit error rate.
In one embodiment, the each syllable making audio-frequency information comprises one or more frequency signals and includes: the one or more frequency signal of data genaration transmitted for each syllable, such as, including 8 frequencies at a syllable, frequency signal can be continuous signal.
Can according to the demand of transmission, one or more frequency signal superpositions are synthesized simple signal or multiple-frequency signal, it is possible to based on the data transmission method of multifrequency sound wave, in each syllable, comprise multi-frequency, add the codified information of each syllable, improve code check.
As it is shown on figure 3, the present invention provides the device of a kind of sonic transmissions character data.Character data is compressed processing and generates transmission data by transmitting element 21, is transformed on the frequency of sound wave of correspondence by transmission data and generates continuous print audio-frequency information and send, making each syllable of audio-frequency information comprise one or more frequency signals.
When receiving audio-frequency information, receive unit 31 and from audio-frequency information, parse frequency signal and from frequency signal, obtain transmission data, transmission data are carried out decompression, parses character data.
ASCII character 8 bit binary data corresponding to each character in character data is combined by transmitting element 21, generates transmission data.In one embodiment, binary system compression submodule 211, by the low 7 bit binary data combinations of ASCII character 8 bit binary data corresponding to each character in character data, generates transmission data.Binary system analyzing sub-module 311 parses 7 bit binary data that each character is corresponding, and the highest order in 7 bit binary data adds 0 and is reduced to 8 bit binary data, by character combination corresponding for 8 bits, is reduced to character data.
ASCII character decimal number corresponding for each character in character data is individually subtracted default difference and generates transmission character by transmitting element 21, and by binary data combination corresponding for this transmission character, generates transmission data.Receive unit 31 and parse each transmission character, and by ASCII character decimal number corresponding for each transmission character plus difference, the ASCII character decimal number that each character of being reduced in character data is corresponding.
Character data is divided into data block by data block segmentation submodule 212, and each data block includes the N number of character preset;N>1.ASCII character decimal number corresponding for N number of character is individually subtracted default difference and generates N number of transmission decimal number by data block compression submodule 213, and N number of transmission decimal number is both less than 100 and more than 0;N number of transmission decimal number is respectively converted into N number of character string;Wherein, in N number of character string, length is left position increase character " 0 " of the character string of 1.
N number of character string is spliced to form the combining characters string that length is 2N by data block compression submodule 213 successively, and combining characters string is converted to 2N position decimal data, and this 2N position decimal data is converted to binary transmission of data blocks data.
Binary transmission of data blocks data are converted to 2N position decimal number by data block analyzing sub-module 312, and this 2N position decimal number is converted to the character string that length is 2N.Data block analyzing sub-module 312 is according to order from high to low, the character string that this length is 2N is divided into the character string that N number of length is 2, the character string that this N number of length is 2 is respectively converted into decimal number and plus difference, it is reduced to the ASCII character decimal number that character is corresponding, is data block by character combination corresponding for this ASCII character decimal number.
Audio frequency generates one or more characters one or more frequency signals of generation that submodule 214 transmits for each syllable.One or more frequency signal superpositions are synthesized simple signal or multiple-frequency signal.
The method and apparatus of the sonic transmissions character data of the present invention, it is compressed the character data in the data source of sonic transmissions processing, reduce the code length of transmitted data, improve efficiency of transmission, reduce the bit error rate, based on carrying out data transmission of multifrequency sound wave, in each syllable, comprise multi-frequency, add the codified information of each syllable, improve code check.
Embodiment of the invention discloses that:
A1, a kind of sonic transmissions character data method, wherein:
Character data is compressed processing and generates transmission data by transmitting terminal;
Described transmission data are transformed on the frequency of sound wave of correspondence and generate continuous print audio-frequency information and send, make each syllable of described audio-frequency information comprise one or more frequency signals;
When receiving terminal receives described audio-frequency information, from described audio-frequency information, parse frequency signal and from described frequency signal, obtain described transmission data;
Described transmission data are carried out decompression, parses described character data.
A2, as described in claim A1 method, it is characterised in that: described transmitting terminal character data is compressed process generate transmission data include:
ASCII character 8 bit binary data corresponding to each character in character data is combined by described transmitting terminal, generates transmission data.
A3, method as described in claim A2, it is characterised in that:
Transmitting terminal is by the low 7 bit binary data combinations of ASCII character 8 bit binary data corresponding to each character in character data;
Receiving terminal parses 7 bit binary data that each character is corresponding, and the highest order in described 7 bit binary data adds 0 and is reduced to 8 bit binary data, by character combination corresponding for this 8 bit, is reduced to described character data.
A4, method as described in claim A2, it is characterised in that:
ASCII character decimal number corresponding for each character in described character data is individually subtracted default difference and generates transmission character by transmitting terminal, and by binary data combination corresponding for transmission character, generates transmission data;
Receiving terminal parses each transmission character, and by ASCII character decimal number corresponding for each transmission character plus described difference, the ASCII character decimal number that each character of being reduced in described character data is corresponding.
A5, method as described in claim A4, it is characterised in that:
Described character data is divided into data block by transmitting terminal, and each data block includes the N number of character preset;N>1;ASCII character decimal number corresponding for described N number of character being individually subtracted described difference and generates N number of transmission decimal number, described N number of transmission decimal number is both less than 100 and more than 0;
Described N number of transmission decimal number is respectively converted into N number of character string;Wherein, in described N number of character string, length is left position increase character " 0 " of the character string of 1;
N number of character string is spliced to form successively the combining characters string that length is 2N, and described combining characters string is converted to decimal data, this decimal data is converted to binary transmission of data blocks data;
Described binary transmission of data blocks data are converted to decimal number by receiving terminal, and this decimal number is converted to the character string that length is 2N;
The character string that this length is 2N is divided into the character string that N number of length is 2, the character string that this N number of length is 2 is respectively converted into decimal number and plus described difference, it is reduced to the ASCII character decimal number that character is corresponding, is described data block by character combination corresponding for this ASCII character decimal number.
A6, method as described in claim A5, it is characterised in that:
The value of described N includes: 3,8.
A7, method as described in claim A4 or A5, it is characterised in that:
Described difference is 30.
A8, method as described in claim A1, it is characterised in that described in make each syllable of described audio-frequency information comprise one or more frequency signals to include:
For the one or more frequency signal of data genaration that each syllable transmits;
The one or more frequency signal superposition is synthesized simple signal or multiple-frequency signal.
B9, a kind of sonic transmissions character data device, it is characterised in that including:
Transmitting element, generates transmission data for being compressed character data processing, and described transmission data is transformed on the frequency of sound wave of correspondence and generates continuous print audio-frequency information and send, makes each syllable of described audio-frequency information comprise one or more frequency signals;
Receive unit, for when receiving described audio-frequency information, parsing frequency signal from described audio-frequency information and obtain described transmission data from described frequency signal, described transmission data being carried out decompression, parses described character data.
B10, device as described in claim B9, it is characterised in that:
Described transmitting element, for ASCII character 8 bit binary data corresponding to each character in character data being combined, generates transmission data.
B11, device as described in claim B10, it is characterised in that:
Described transmitting element, including:
Binary system compression submodule, for by the low 7 bit binary data combinations of ASCII character 8 bit binary data corresponding to each character in character data, generating transmission data;
Described reception unit, including:
Binary system analyzing sub-module, for parsing 7 bit binary data that each character is corresponding, the highest order in described 7 bit binary data adds 0 and is reduced to described 8 bit binary data, by character combination corresponding for described 8 bits, is reduced to described character data.
B12, device as described in claim B10, it is characterised in that:
Described transmitting element, generates transmission character for ASCII character decimal number corresponding for each character in described character data is individually subtracted default difference, and by binary data combination corresponding for this transmission character, generates transmission data;
Described reception unit, is used for parsing each transmission character, and by ASCII character decimal number corresponding for each transmission character plus described difference, the ASCII character decimal number that each character of being reduced in described character data is corresponding.
B13, device as described in claim B12, it is characterised in that:
Described transmitting element, including:
Data block segmentation submodule, for described character data is divided into data block, each data block includes the N number of character preset;N>1;
Data block compression submodule, generates N number of transmission decimal number for ASCII character decimal number corresponding for described N number of character is individually subtracted described difference, and described N number of transmission decimal number is both less than 100 and more than 0;Described N number of transmission decimal number is respectively converted into N number of character string;Wherein, in described N number of character string, length is left position increase character " 0 " of the character string of 1;N number of character string is spliced to form successively the combining characters string that length is 2N, and described combining characters string is converted to 2N position decimal data, this 2N position decimal data is converted to binary transmission of data blocks data;
Described reception unit, including:
Data block analyzing sub-module, for described binary transmission of data blocks data are converted to 2N position decimal number, and is converted to, by this 2N position decimal number, the character string that length is 2N;The character string that this length is 2N is divided into the character string that N number of length is 2, the character string that this N number of length is 2 is respectively converted into decimal number and plus described difference, it is reduced to the ASCII character decimal number that character is corresponding, is described data block by character combination corresponding for this ASCII character decimal number.
B14, device as described in claim B13, it is characterised in that:
The value of described N includes: 3,8.
B15, device as described in claim B12 or B13, it is characterised in that:
Described difference is 30.
B16, device as claimed in claim 8, it is characterised in that:
Described transmitting element, including:
Audio frequency generates submodule, for for each syllable one or more frequency signal of transmitted data genaration;The one or more frequency signal superposition is synthesized simple signal or multiple-frequency signal.
It is likely to be achieved in many ways the method and system of the present invention.Such as, can by software, hardware, firmware or software, hardware, firmware any combination realize the method and system of the present invention.For the said sequence of step of method merely to illustrate, the step of the method for the present invention is not limited to order described in detail above, unless specifically stated otherwise.Additionally, in certain embodiments, can being also record program in the recording medium by the invention process, these programs include the machine readable instructions for realizing the method according to the invention.Thus, the present invention also covers the record medium of the storage program for performing the method according to the invention.
Description of the invention provides for example with for the purpose of describing, and is not exhaustively or limit the invention to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.Selecting and describing embodiment is in order to principles of the invention and practical application are better described, and makes those of ordinary skill in the art it will be appreciated that the present invention is thus design is suitable to the various embodiments with various amendments of special-purpose.

Claims (10)

1. a method for sonic transmissions character data, wherein:
Character data is compressed processing and generates transmission data by transmitting terminal;
Described transmission data are transformed on the frequency of sound wave of correspondence and generate continuous print audio-frequency information and send, make each syllable of described audio-frequency information comprise one or more frequency signals;
When receiving terminal receives described audio-frequency information, from described audio-frequency information, parse frequency signal and from described frequency signal, obtain described transmission data;
Described transmission data are carried out decompression, parses described character data.
2. the method for claim 1, it is characterised in that:
Transmitting terminal is by the low 7 bit binary data combinations of ASCII character 8 bit binary data corresponding to each character in character data;
Receiving terminal parses 7 bit binary data that each character is corresponding, and the highest order in described 7 bit binary data adds 0 and is reduced to 8 bit binary data, by character combination corresponding for this 8 bit, is reduced to described character data.
3. method as claimed in claim 2, it is characterised in that:
ASCII character decimal number corresponding for each character in described character data is individually subtracted default difference and generates transmission character by transmitting terminal, and by binary data combination corresponding for transmission character, generates transmission data;
Receiving terminal parses each transmission character, and by ASCII character decimal number corresponding for each transmission character plus described difference, the ASCII character decimal number that each character of being reduced in described character data is corresponding.
4. method as claimed in claim 3, it is characterised in that:
Described character data is divided into data block by transmitting terminal, and each data block includes the N number of character preset;N>1;ASCII character decimal number corresponding for described N number of character being individually subtracted described difference and generates N number of transmission decimal number, described N number of transmission decimal number is both less than 100 and more than 0;
Described N number of transmission decimal number is respectively converted into N number of character string;Wherein, in described N number of character string, length is left position increase character " 0 " of the character string of 1;
N number of character string is spliced to form successively the combining characters string that length is 2N, and described combining characters string is converted to decimal data, this decimal data is converted to binary transmission of data blocks data;
Described binary transmission of data blocks data are converted to decimal number by receiving terminal, and this decimal number is converted to the character string that length is 2N;
The character string that this length is 2N is divided into the character string that N number of length is 2, the character string that this N number of length is 2 is respectively converted into decimal number and plus described difference, it is reduced to the ASCII character decimal number that character is corresponding, is described data block by character combination corresponding for this ASCII character decimal number.
5. the method for claim 1, it is characterised in that described in make each syllable of described audio-frequency information comprise one or more frequency signals to include:
For the one or more frequency signal of data genaration that each syllable transmits;
The one or more frequency signal superposition is synthesized simple signal or multiple-frequency signal.
6. the device of a sonic transmissions character data, it is characterised in that including:
Transmitting element, generates transmission data for being compressed character data processing, and described transmission data is transformed on the frequency of sound wave of correspondence and generates continuous print audio-frequency information and send, makes each syllable of described audio-frequency information comprise one or more frequency signals;
Receive unit, for when receiving described audio-frequency information, parsing frequency signal from described audio-frequency information and obtain described transmission data from described frequency signal, described transmission data being carried out decompression, parses described character data.
7. device as claimed in claim 6, it is characterised in that:
Described transmitting element, including:
Binary system compression submodule, for by the low 7 bit binary data combinations of ASCII character 8 bit binary data corresponding to each character in character data, generating transmission data;
Described reception unit, including:
Binary system analyzing sub-module, for parsing 7 bit binary data that each character is corresponding, the highest order in described 7 bit binary data adds 0 and is reduced to described 8 bit binary data, by character combination corresponding for described 8 bits, is reduced to described character data.
8. device as claimed in claim 7, it is characterised in that:
Described transmitting element, generates transmission character for ASCII character decimal number corresponding for each character in described character data is individually subtracted default difference, and by binary data combination corresponding for this transmission character, generates transmission data;
Described reception unit, is used for parsing each transmission character, and by ASCII character decimal number corresponding for each transmission character plus described difference, the ASCII character decimal number that each character of being reduced in described character data is corresponding.
9. device as claimed in claim 8, it is characterised in that:
Described transmitting element, including:
Data block segmentation submodule, for described character data is divided into data block, each data block includes the N number of character preset;N>1;
Data block compression submodule, generates N number of transmission decimal number for ASCII character decimal number corresponding for described N number of character is individually subtracted described difference, and described N number of transmission decimal number is both less than 100 and more than 0;Described N number of transmission decimal number is respectively converted into N number of character string;Wherein, in described N number of character string, length is left position increase character " 0 " of the character string of 1;N number of character string is spliced to form successively the combining characters string that length is 2N, and described combining characters string is converted to 2N position decimal data, this 2N position decimal data is converted to binary transmission of data blocks data;
Described reception unit, including:
Data block analyzing sub-module, for described binary transmission of data blocks data are converted to 2N position decimal number, and is converted to, by this 2N position decimal number, the character string that length is 2N;The character string that this length is 2N is divided into the character string that N number of length is 2, the character string that this N number of length is 2 is respectively converted into decimal number and plus described difference, it is reduced to the ASCII character decimal number that character is corresponding, is described data block by character combination corresponding for this ASCII character decimal number.
10. device as claimed in claim 6, it is characterised in that:
Described transmitting element, including:
Audio frequency generates submodule, for for each syllable one or more frequency signal of transmitted data genaration;The one or more frequency signal superposition is synthesized simple signal or multiple-frequency signal.
CN201410836354.XA 2014-12-26 2014-12-26 A kind of method and device of sonic transmissions character data Expired - Fee Related CN105790853B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410836354.XA CN105790853B (en) 2014-12-26 2014-12-26 A kind of method and device of sonic transmissions character data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410836354.XA CN105790853B (en) 2014-12-26 2014-12-26 A kind of method and device of sonic transmissions character data

Publications (2)

Publication Number Publication Date
CN105790853A true CN105790853A (en) 2016-07-20
CN105790853B CN105790853B (en) 2019-02-22

Family

ID=56389775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410836354.XA Expired - Fee Related CN105790853B (en) 2014-12-26 2014-12-26 A kind of method and device of sonic transmissions character data

Country Status (1)

Country Link
CN (1) CN105790853B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109217945A (en) * 2018-09-14 2019-01-15 深圳市琦志航智能科技有限公司 A kind of sound wave communication method
CN109274435A (en) * 2018-08-31 2019-01-25 海南新软软件有限公司 A kind of method, apparatus and system using technology of acoustic wave transmission digital asset address
CN110138509A (en) * 2019-05-17 2019-08-16 京东方科技集团股份有限公司 A kind of data transmission method and data transfer components
CN110618960A (en) * 2018-06-19 2019-12-27 敦泰电子有限公司 Data step compression transmission method and device and electronic equipment for implementing same
CN110728261A (en) * 2019-10-23 2020-01-24 武汉奇致激光技术股份有限公司 Method for feeding back fault information of laser medical cosmetic equipment
CN110932822A (en) * 2019-12-02 2020-03-27 泰康保险集团股份有限公司 Data encoding method, data decoding method, device, equipment and storage medium
CN112825494A (en) * 2019-11-21 2021-05-21 中移物联网有限公司 Data encoding method, decoding method and device
CN115297108A (en) * 2022-08-11 2022-11-04 青岛美迪康数字工程有限公司 Diagnosis and treatment quality control file transmission method and device based on piano syllables
CN118079765A (en) * 2024-04-25 2024-05-28 湘潭新云科技有限责任公司 Intelligent operation control system of multifunctional vertical mixer

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1502189A (en) * 2000-05-17 2004-06-02 ����˹�Ƽ��о����޹�˾ Octave pulse data method and apparatus
CN101247183A (en) * 2007-02-15 2008-08-20 凌阳科技股份有限公司 Transmission device, receiving device, system and method for implementing communication based on ultrasonic wave
CN102394724A (en) * 2011-11-01 2012-03-28 南京音优行信息技术有限公司 Highly-reliable data transmission method and device based on dual tone multiple frequency sound waves
CN103023580A (en) * 2012-12-06 2013-04-03 深圳市创想天空科技有限公司 Method for achieving data transmission through voice
CN103077723A (en) * 2013-01-04 2013-05-01 鸿富锦精密工业(深圳)有限公司 Audio transmission system
CN103714823A (en) * 2013-12-19 2014-04-09 同济大学 Integrated speech coding-based adaptive underwater communication method
WO2014129370A1 (en) * 2013-02-21 2014-08-28 ヤマハ株式会社 Modulation device, demodulation device, sound transmission system, program, and demodulation method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1502189A (en) * 2000-05-17 2004-06-02 ����˹�Ƽ��о����޹�˾ Octave pulse data method and apparatus
CN101247183A (en) * 2007-02-15 2008-08-20 凌阳科技股份有限公司 Transmission device, receiving device, system and method for implementing communication based on ultrasonic wave
CN102394724A (en) * 2011-11-01 2012-03-28 南京音优行信息技术有限公司 Highly-reliable data transmission method and device based on dual tone multiple frequency sound waves
CN103023580A (en) * 2012-12-06 2013-04-03 深圳市创想天空科技有限公司 Method for achieving data transmission through voice
CN103077723A (en) * 2013-01-04 2013-05-01 鸿富锦精密工业(深圳)有限公司 Audio transmission system
WO2014129370A1 (en) * 2013-02-21 2014-08-28 ヤマハ株式会社 Modulation device, demodulation device, sound transmission system, program, and demodulation method
CN103714823A (en) * 2013-12-19 2014-04-09 同济大学 Integrated speech coding-based adaptive underwater communication method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110618960A (en) * 2018-06-19 2019-12-27 敦泰电子有限公司 Data step compression transmission method and device and electronic equipment for implementing same
CN109274435A (en) * 2018-08-31 2019-01-25 海南新软软件有限公司 A kind of method, apparatus and system using technology of acoustic wave transmission digital asset address
CN109217945A (en) * 2018-09-14 2019-01-15 深圳市琦志航智能科技有限公司 A kind of sound wave communication method
CN110138509A (en) * 2019-05-17 2019-08-16 京东方科技集团股份有限公司 A kind of data transmission method and data transfer components
CN110138509B (en) * 2019-05-17 2022-07-01 京东方科技集团股份有限公司 Data transmission method and data transmission assembly
CN110728261A (en) * 2019-10-23 2020-01-24 武汉奇致激光技术股份有限公司 Method for feeding back fault information of laser medical cosmetic equipment
CN112825494A (en) * 2019-11-21 2021-05-21 中移物联网有限公司 Data encoding method, decoding method and device
CN110932822A (en) * 2019-12-02 2020-03-27 泰康保险集团股份有限公司 Data encoding method, data decoding method, device, equipment and storage medium
CN110932822B (en) * 2019-12-02 2022-06-17 泰康保险集团股份有限公司 Data encoding method, data decoding method, device, equipment and storage medium
CN115297108A (en) * 2022-08-11 2022-11-04 青岛美迪康数字工程有限公司 Diagnosis and treatment quality control file transmission method and device based on piano syllables
CN115297108B (en) * 2022-08-11 2023-08-25 青岛美迪康数字工程有限公司 Diagnosis and treatment quality control file transmission method and device based on piano syllables
CN118079765A (en) * 2024-04-25 2024-05-28 湘潭新云科技有限责任公司 Intelligent operation control system of multifunctional vertical mixer

Also Published As

Publication number Publication date
CN105790853B (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN105790853A (en) Method and device for transmitting character data through sound wave
CN106452607B (en) Method and device for transmitting and analyzing information
EP2285029A1 (en) Data transmission method, transmission system and data transmitter
CN108418683B (en) Carrier-free text steganography method based on Chinese character structural features
RU2627112C2 (en) Method, system and communication device for optical network system
CN108156173A (en) A kind of dynamic lossless compression method of JSON data packets
CN105740215A (en) Data communication coding and decoding method
CN111865952B (en) Data processing method, data processing device, storage medium and electronic equipment
CN103997571A (en) Business card exchange method based on audio coding
CN105791527A (en) Method and device for transmitting contacts of mobile terminal
CN110995391A (en) Data transmission method in isolated network, server and terminal
US9621388B2 (en) Method for serial data transmission and system therefor
WO2023179800A1 (en) Communication receiving method and apparatus thereof
CN103138871A (en) Server data processing system and method of application program of mobile communication system
CN110149631B (en) Method and system suitable for cloud loudspeaker box connection establishment
CN111931205A (en) Method and device for encrypting shader file
CN108270546A (en) A kind of method and system of information transmission
WO2014029081A1 (en) Compression method and apparatus
CN105099571B (en) A kind of audio communication method
CN103595503B (en) A kind of frequency encoding and decoding communication system based on serial port device
CN101500028A (en) Communication terminal using read-write mode and method for implementing read-write mode communication
CN113592097B (en) Training method and device of federal model and electronic equipment
CN108123721B (en) Encoding method and device
CN107734345B (en) Picture datamation transmission method and system
CN103139227A (en) Application program data transmitting system and application program data transmitting method applied in mobile terminal

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190222

Termination date: 20211226

CF01 Termination of patent right due to non-payment of annual fee