Summary of the invention
For this reason, technical problem to be solved by this invention is: a kind of method that realizes transfer of data by sound is provided, not only can realizes jumbo transfer of data, and fail safe and efficiency that can the Effective Raise transfer of data.
So, the invention provides a kind of method that realizes transfer of data by sound, the method comprises:
The data upload that data sending terminal will need to transmit is to transfer server;
Transfer server is packed to the data that receive, and generates unique key and with the dynamic coding table of out-of-service time, and this key and dynamic coding table are sent it back data sending terminal;
Data sending terminal uses the described dynamic coding table that receives that described key is encoded, and makes described key convert voice signal to, and plays;
After data receiver receives voice signal, to transfer server, obtain described dynamic coding table, and according to this dynamic coding table the voice signal that receives is decoded, obtain described key;
Data receiver uses described decoded key to obtain the described data that data sending terminal is uploaded to transfer server, and downloads.
Wherein, described generation comprises with the dynamic coding table of out-of-service time: according to current time and the content that will transmit, and the random coding schedule that comprises sound frequency and sound waveform that generates, this coding schedule ceases to be in force automatically in preset time.
Wherein, described sound waveform comprises: sine wave, square wave and impulse wave.
Described sound frequency comprises the sound that audio frequency that people's ear can be heard and people's ear can not be heard.
Described audio frequency comprises: single-tone audio frequency, double-tone audio frequency and multitone audio frequency.
Described data sending terminal uses the described dynamic coding table that receives that described key is encoded, and makes described key convert voice signal to, comprising:
Be provided for distinguishing the start bit that sound frequency begins;
The bits of coded of the described key of representative is set, sound frequency corresponding to each data in this bits of coded;
The check digit that can carry out to described coding the check sum error correction of tape verifying error correction coded system is set.
The coded system of described tape verifying error correction comprises: Reed-Solomon coding, BCH code, turbine code, low density parity check code and convolution code.
Described start bit is set to 2 high sound datas, and described bits of coded is corresponding 0 to 9, a to v, and 10 bit data in 32 bit data, described check digit are 8 bit data.
The method that realizes transfer of data by sound of the present invention, by the data upload that will need to transmit to transfer server, generate key and dynamic coding table by transfer server, only pass through the described key of transfer voice between data sending terminal and the data receiver, the mode of the data that need to be transmitted to transfer server downloading data transmitting terminal by described key by data receiver, so that can transmit data than large information capacity between data sending terminal and the data receiver, voice data for example, view data and large file data etc., Effective Raise the efficient of transfer of data.Simultaneously, the method of the invention has adopted the implementation of dynamic coding, that is: by generate on the transfer server with the dynamic coding table of out-of-service time to carrying out Code And Decode by the key of transfer voice, even if so that key is recorded in transmission course, also can't within the effective time of dynamic coding table, be cracked and imitate, improved reliability and the confidentiality of transfer of data.
Further, in the dynamic coding process, be provided with the check digit that to carry out the check sum error correction to described coding of tape verifying error correction coded system, so that can resist the interference of noisy environment He other sound wave by the data of transfer voice, improved the stability of transfer of data.
Embodiment
Below, describe the present invention by reference to the accompanying drawings.
As shown in Figure 2, the present embodiment provides a kind of method that realizes transfer of data by sound, and the method comprises:
Data sending terminal 10, the selected data that need transmission, with this data upload that need to transmit to transfer server; Here, the described data of transmission that need comprise: the data such as information, file, picture, audio frequency, and data format is not limit, and size is not limit.
Transfer server 20 is packed to the data that the data sending terminal 10 that receives is uploaded, and generates unique key and with the dynamic coding table of out-of-service time, and this key and dynamic coding table are sent it back data sending terminal 10;
Data sending terminal 10 uses the described dynamic coding table that receives that described key is encoded, and makes described key convert voice signal to, and plays;
Data receiver 20, receive voice signal after, to transfer server 20, obtain described dynamic coding table, and according to this dynamic coding table the voice signal that receives decoded, obtain described key;
Data receiver 20 uses described decoded key to obtain the described data that data sending terminal is uploaded to transfer service 10, and downloads, and obtains the data that data sending terminal need to transmit.
Above-mentioned data transmission method, so that can transmit data than large information capacity between data sending terminal and the data receiver, voice data for example, view data and large file data etc., Effective Raise the transmission efficient, overcome the drawback that can not realize by sound the large information capacity transfer of data between the data sending terminal described in the background technology and the data receiver.Simultaneously, above-mentioned data transmission method has adopted the implementation of dynamic coding, that is: by generate on the transfer server with the dynamic coding table of out-of-service time to carrying out Code And Decode by the key of transfer voice, even if so that key is recorded in transmission course, also can't within the effective time of dynamic coding table, be cracked and imitate, improved reliability and the confidentiality of transfer of data.
Wherein, described generation comprises with the dynamic coding table of out-of-service time: according to current time and the content that will transmit, and the random coding schedule that comprises sound frequency and sound waveform that generates, this coding schedule ceases to be in force automatically in preset time.Here, described sound waveform comprises: sine wave, square wave and impulse wave.Described sound frequency comprises: the sound that the audio frequency that people's ear can be heard and people's ear can not be heard.Described audio frequency comprises: single-tone audio frequency, double-tone audio frequency and multitone audio frequency.
During audio transmission, there are two core index can affect the content of transmission: sound frequency and sound waveform.Audio frequency in the sound is as example, because the audio coding table is in the stochastic and dynamic of transfer server generates, according to the difference of time, transferring content, transfer server can generate dynamic coding table, transmission frequency and transmitted waveform at random, so the key of audio frequency and transmission is without fixed correspondence.For example, it is 1760Hz that " 0 " in this moment dynamic coding representative represents audio frequency, uses sine wave transmissions; But " 0 " in the dynamic coding table that dynamically generated afterwards in 1 second just represents audio frequency is 19200Hz, uses the square wave transmission, perhaps other frequency and other waveform.
Described generation is with the dynamic coding table of out-of-service time, and for example, data sending terminal 10 time that data receiver 20 receives sound that plays sound is 5-10 second, so be 10 seconds the effective time that we can arrange the dynamic coding table.After finishing transmission, perhaps the transmission time surpasses 10 seconds, and the dynamic coding table ceases to be in force automatically, to guarantee that transferring content can not be ravesdropping and forge.
Described data sending terminal uses the described dynamic coding table that receives that described key is encoded, and makes described key convert voice signal to, comprising:
Be provided for distinguishing the start bit that sound frequency begins;
The bits of coded of the described key of representative is set, sound frequency corresponding to each data in this bits of coded;
The check digit that can carry out to described coding the check sum error correction of tape verifying error correction coded system is set.
Above-mentioned cataloged procedure is exactly a kind of Data Modulation process, described key is converted into the audio digital signal corresponding with sound frequency by modulation system that is:.
For example, the key behind the coding is a section audio content, and this voice data comprises: start bit [QS], bits of coded [CODE] and check digit [Correction].Suppose the audio frequency behind each section coding, all be one section and have audio frequency 20 bit data single-tones, that arrange chronologically, and the duration of each is 87.2ms, cell frequency does not wait from 20Hz-20000Hz, and sound waveform adopts sinusoidal wave.So, the audio frequency behind this section coding is:
Start bit [QS] is set to length and is 2 high frequency audio, represents that this is the initial of a section audio.
Bits of coded [CODE] is set to length and is 10 data, and these data represent normal the transmission of data, i.e. our described unique key.One in corresponding " 0-9 "+" a-v " 32 bit data of each data transmits.The different audio frequency of each corresponding 20Hz – 20000Hz.In view of the hardware index of transceiver, transition interval is 100Hz.Example: 1760Hz represents " 0 ", and 1860Hz represents " 1 ", and 1960Hz represents " 2 ".
Check digit [Correction], the coding that adopts Reed-Solomon Reed Solomon code coded system to carry out arranges length and is 8 data, can carry out verification and error correction to the data in the bits of coded.For example, in data transmission procedure, occur multidigit disappearance or mistake in 10 the coding, can directly revise by check digit, when guaranteeing to greatest extent accuracy, can reduce the number of times of repeat playing.
In the situation that 8 check digit are arranged, can provide to 10 bit data in the bits of coded 4 error correction.Serious forgiveness is enough to resist the interference of noisy environment and other sound wave up to 40%, only needs single transmission simultaneously, improves stability.
Described tape verifying error correction coded system comprises: Reed-Solomon coding, BCH code, turbine code, low density parity check code and convolution code.
In above-mentioned data transmission method, its core is to use dynamic coding schedule the uniquely identified key to be encoded namely so-called encryption.Therefore, encryption system commonly used all is applicable to this encryption purpose.Common encryption system has public, private key encryption system and symmetric cryptography system, is not technological improvement point of the present invention place owing to how to encrypt, so be not described in detail at this.
Because in the dynamic coding process, be provided with the check digit that to carry out the check sum error correction to described coding of tape verifying error correction coded system, therefore so that can resist the interference of noisy environment He other sound wave by the data of transfer voice, improved the stability of transfer of data.
As shown in Figure 3 and Figure 4, the present embodiment also provides a kind of system that realizes transfer of data by sound, comprising:
Data sending terminal 10, the data upload that is used for will needing to transmit is to transfer server; Receive simultaneously key and dynamic coding table that transfer server sends it back, and by described dynamic coding table described key is encoded, make it convert voice signal to, and play;
Transfer server 20 is used for the data of the needs transmission that the receive data transmitting terminal uploads, and to this data packing, and generates unique key and with the dynamic coding table of out-of-service time, simultaneously this key and dynamic coding table is sent it back data sending terminal;
Data receiver 30, be used for the voice signal that the receive data transmitting terminal is play, after receiving voice signal, to transfer server, obtain described dynamic coding table, and according to this dynamic coding table the voice signal that receives is decoded, obtain described key, data receiver uses described key to obtain the described data that data sending terminal is uploaded to transfer server, and downloads.
Wherein, data sending terminal 10 comprises:
Uploading unit 11, the data upload that is used for will needing to transmit is to transfer server;
Receiving element 12 is used for receiving key and the dynamic coding table that transfer server sends it back;
Dynamic coding device 13 is encoded to described key by described dynamic coding table, makes described key change into coded data;
Modulator 14, the described coded data that the dynamic coding device is exported is converted into the audio digital signal corresponding with sound frequency by modulation system;
Filter 15 is used for the redundant digital signal of described audio digital signal of modulator output is filtered;
D/A change-over circuit 16, the audio digital signal that filter is exported is converted to the speech simulation signal;
Power amplifier 17, the speech simulation signal that the D/A change-over circuit is exported zooms into the voice signal that can drive the loud speaker sounding;
Player 18 is used for playing the described voice signal of power amplifier output.
After voice signal sent, data receiver 30 can have one or more, and the present embodiment is illustrated as an example of a data receiving terminal 30 example.
Transfer server 20 comprises:
Receiving element 21, the data that the needs of uploading for the receive data transmitting terminal transmit, and the described decoded key of data receiver transmission;
Packing generation unit 22 is used for the data that receiving element receives are packed, and generates unique key and with the dynamic coding table of out-of-service time;
Transmitting element 23, key and dynamic coding table that the packing generation unit is generated send to data sending terminal;
Check unit 24, be used for checking the key that data receiver sends, if key is correct, agree that then the described data that data receiver is uploaded the data transmitting terminal download.
Data receiver 30 comprises:
Receiving element 31 is used for receiving voice signal;
Trigger acquiring unit 32, after receiving element received described voice signal, this unit can remove to obtain the dynamic coding table immediately to transfer server;
A/D change-over circuit 33 is used for the voice signal that receives is converted to audio digital signal;
Filter 34 is used for the redundant digital signal of described audio digital signal of A/D change-over circuit output is filtered;
Demodulator 35 is used for the described audio digital signal corresponding with sound frequency is converted into the Applied Digital data-signal;
Dynamic decoder device 36, the described dynamic coding table that uses the triggering acquiring unit to get access to is resolved decoding to the Applied Digital data-signal of demodulator output, obtains described key;
Download unit 37, the described key that uses the dynamic decoder device to export obtains the described data that data sending terminal is uploaded to transfer server, and downloads.
Certainly, both data sending terminal can be set at a terminal, and also data receiver can be set, therefore, as shown in Figure 5, the present embodiment also provides a kind of data transmitting and receiving terminal 50 of realizing transfer of data by sound, comprising:
Data sending terminal 10, the data upload that is used for will needing to transmit is to transfer server; Receive simultaneously key and dynamic coding table that transfer server sends it back, and by described dynamic coding table described key is encoded, make it convert voice signal to, and play;
Data receiver 30, be used for the voice signal that the receive data transmitting terminal is play, after receiving voice signal, to transfer server, obtain described dynamic coding table, and according to this dynamic coding table the voice signal that receives is decoded, obtain described key, data receiver uses described key to obtain the described data that data sending terminal is uploaded to transfer server, and downloads.
The concrete parts that data sending terminal 10 and data receiver 30 comprise such as above-mentioned no longer are repeated in this description at this.Because data sending terminal 10 and data receiver 30 all include receiving element, therefore, in notebook data transmitting and receiving terminal 50, the receiving element of data sending terminal 10 and data receiver 30 can be merged into a unit, therefore, as shown in Figure 5, this data transmitting and receiving terminal 50 comprises:
Uploading unit 501 to need to be used for the data upload transmitted to can packing to this uploading data, and generates unique key and with the transfer server of the dynamic coding table of out-of-service time;
Receiving element 502 is used for receiving described key and the dynamic coding table that transfer server sends, and is used for receiving voice signal;
Dynamic coding device 503 is encoded to described key by described dynamic coding table, makes described key change into coded data;
Modulator 504, the described coded data that the dynamic coding device is exported is converted into the audio digital signal corresponding with sound frequency by modulation system;
Filter 505 is used for the redundant digital signal of described audio digital signal of modulator output is filtered, and is used for the redundant digital signal of described audio digital signal of A/D change-over circuit output is filtered;
D/A change-over circuit 506, the audio digital signal that filter is exported is converted to the speech simulation signal;
Power amplifier 507, the speech simulation signal that the D/A change-over circuit is exported zooms into the voice signal that can drive the loud speaker sounding;
Player 508 is used for playing the described voice signal of power amplifier output
Trigger acquiring unit 509, after receiving element received described voice signal, this unit can remove to obtain the dynamic coding table immediately to transfer server;
A/D change-over circuit 510 is used for the voice signal that receives is converted to audio digital signal;
Demodulator 511 is used for the described audio digital signal corresponding with sound frequency is converted into the Applied Digital data-signal;
Dynamic decoder device 512, the described dynamic coding table that uses the triggering acquiring unit to get access to is resolved decoding to the Applied Digital data-signal of demodulator output, obtains described key;
Download unit 513, the described key that uses the dynamic decoder device to export obtains the described data that data sending terminal is uploaded to transfer server, and downloads.
The described receiving element of the present embodiment can be microphone, and the described player of the present embodiment can be loud speaker.
In above-mentioned system, data sending terminal, data receiver and data transmitting and receiving terminal by sound realization transfer of data, all used data transmission method shown in Figure 2.
The data transmitting and receiving terminal 50 that the present embodiment provides can be a smart mobile phone.The data receiver 30 that the present embodiment provides can be through changing, add receiving element 31, trigger acquiring unit 32, A/D change-over circuit 33, filter 34, demodulator 35, dynamic decoder device 36, with the POS machine behind the download unit 37, this POS machine can use smart mobile phone or the terminal with data transmitting and receiving terminal 50, perhaps uses and carries out payment and settlement with smart mobile phone or the terminal of data sending terminal 10.
As shown in Figure 6, this payment application scenarios comprises beneficiary 60, service server 70 and paying party 80.Wherein, service server 70 is formed by two server combinations, the paying server that uses when namely comprising for payment and the transfer server of using for use sound realization transfer of data.Certainly, can paying server and transfer server be combined into service server yet, and use respectively paying server and transfer server.
Beneficiary 60 after all related datas that need, with this data packing, and uploads to transfer server on the service server 70 in clear and definite collection amount, detail and payment;
The described data that 70 pairs of service servers receive are packed, and generate unique key and dynamic coding table, and described key and dynamic coding table are sent it back beneficiary 60;
Beneficiary 60 is encoded to described key by described dynamic coding table, makes it convert voice signal to, and plays;
Beneficiary 80, receive voice signal after, obtain described dynamic coding table on the transfer server to the service server 70, and according to this dynamic coding table the voice signal that receives decoded, obtain described key.Then, beneficiary 80 uses on the transfer server of described key to the service server 70 and obtains the described data that beneficiary 60 is uploaded, and downloads, and is presented on the display screen of paying party 80.After the requestee checks the related data that needs payment, confirm payment, so the transmission payment confirming information is given to the paying server on the service server 70, paying server responds this payment request, payment is remitted money to the account of beneficiary 60 appointments, beneficiary 60 complete gatherings, paying party 80 successful payments.
After above-mentioned payment process was complete, payment data, key and dynamic coding table all lost efficacy.If need again payment, need to re-execute said process.
Above-mentioned payment process generally only needs 10 to 15 second time, and the time by the transfer voice data is 5-10 second, so be 10 seconds the effective time that we can arrange the dynamic coding table.After finishing transmission, perhaps the transmission time surpasses 10 seconds, and the dynamic coding table ceases to be in force automatically, to guarantee that transferring content can not be ravesdropping and forge.
In sum, the method and the realization system thereof that pass through sound realization transfer of data that the present embodiment provides, and data sending terminal, data receiver and data transmitting and receiving terminal, by the data upload that will need to transmit to transfer server, generate key and dynamic coding table by transfer server, only pass through the described key of transfer voice between data sending terminal and the data receiver, the mode of the data that need to be transmitted to transfer server downloading data transmitting terminal by described key by data receiver, so that can transmit data than large information capacity between data sending terminal and the data receiver, voice data for example, view data and large file data etc., Effective Raise the efficient of transmission.Simultaneously, the method of the invention has adopted the implementation of dynamic coding, that is: by generate on the transfer server with the dynamic coding table of out-of-service time to carrying out Code And Decode by the key of transfer voice, even if so that key is recorded in transmission course, also can't within the effective time of dynamic coding table, be cracked and imitate, improved reliability and the confidentiality of transfer of data.
Further, in the dynamic coding process, be provided with the check digit that to carry out the check sum error correction to described coding of tape verifying error correction coded system, so that can resist the interference of noisy environment He other sound wave by the data of transfer voice, improved the stability of transfer of data.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.