A kind of method of shared file and relevant device
Technical field
The present invention relates to communication technical field, more particularly, to a kind of method of shared file and relevant device.
Background technology
Popular with current smart machine, everybody is used for smart machine to store personal document, in order to reach resource
Shared purpose, people also generally carry out file-sharing, and in existing file-sharing mode, are by way of data transfer
Realize;For example, wifi realizes the shared of data file by transmitted data on network file, and bluetooth passes through short range transmission data
The shared of data file realized by file, and usb data wire realizes share of data file by data line transfer data file.Existing
Although data sharing mode is capable of file-sharing, however it is necessary that surrounding has certain hardware supported, such as need net
Network, data wire, bluetooth equipment etc..Around it is impossible to carry out file-sharing in the case of the necessary hardware supported of environment shortage.
Content of the invention
The embodiment of the present invention provides a kind of method of shared file and relevant device, by being audio frequency by data file transition
File is transmitted and shares, and its conversion method is simple, it is easy to accomplish.
Embodiments provide a kind of method of shared file, comprising:
When carrying out file-sharing with receiving terminal it would be desirable to shared data file carries out data conversion treatment;
Described data file transition after data conversion treatment is at least one audio frequency frequency, by least one sound described
Again and again degree is synthesized to generate audio file;
Send described audio file to receiving terminal.
The embodiment of the present invention additionally provides a kind of method of shared file, comprising:
When carrying out file-sharing with transmitting terminal, receive the audio file that described transmitting terminal is sent, described audio file
For described transmitting terminal, the data file needing to share is carried out the audio file of conversion process acquisition;
Described audio file is split at least one audio frequency frequency, and each audio frequency frequency described is converted to data
File;
Described data file is carried out data conversion treatment, obtains and need shared data file.
Correspondingly, the embodiment of the present invention additionally provides a kind of sending ending equipment, comprising:
First data conversion module, for when carrying out file-sharing with receiving terminal it would be desirable to shared data file is entered
Row data conversion treatment;
Audio file generation module, for being at least one audio frequency by the described data file transition after data conversion treatment
Frequency, at least one audio frequency frequency described is synthesized to generate audio file;
Sending module, for sending described audio file to receiving terminal.
Correspondingly, the embodiment of the present invention additionally provides a kind of receiving device, comprising:
Receiver module, for when carrying out file-sharing with transmitting terminal, receiving the audio file that described transmitting terminal is sent,
Described audio file is that the data file needing to share is carried out the audio file of conversion process acquisition by described transmitting terminal;
Split modular converter, for described audio file is split at least one audio frequency frequency, and by described each
Audio frequency frequency is converted to data file;
Second data conversion module, for described data file is carried out data conversion treatment, obtains and needs shared number
According to file.
In the embodiment of the present invention, by needing shared data file to carry out data conversion treatment, then by data conversion
Data file transition after process be corresponding audio frequency frequency to generate audio file, and send audio file to receiving terminal, real
Now data file is shared, and this data file transition is that the conversion method of audio file is simple, it is easy to accomplish;And utilize audio frequency
File-sharing realized by file, and sharing mode is directly perceived.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below
Accompanying drawing be briefly described it should be apparent that, drawings in the following description are some embodiments of the present invention, for ability
For the those of ordinary skill of domain, on the premise of not paying creative work, can also be obtained other attached according to these accompanying drawings
Figure.
Fig. 1 is a kind of schematic flow sheet of an embodiment of the method for shared file of the present invention;
Fig. 2 is a kind of schematic flow sheet of another embodiment of the method for shared file of the present invention;
Fig. 3 is a kind of schematic flow sheet of the another embodiment of the method for shared file of the present invention;
Fig. 4 is a kind of schematic flow sheet of the another embodiment of the method for shared file of the present invention;
Fig. 5 is a kind of schematic flow sheet of the another embodiment of the method for shared file of the present invention;
Fig. 6 is a kind of schematic flow sheet of the another embodiment of the method for shared file of the present invention;
Fig. 7 is a kind of structural representation of sending ending equipment of the present invention;
Fig. 8 is the structural representation of the binary transforming module of the present invention;
Fig. 9 is a kind of structural representation of receiving device of the present invention;
Figure 10 is the structural representation of the fractionation modular converter of the present invention;
Figure 11 is the structural representation of second data conversion module of the present invention;
Specific embodiment
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 carried out clear, complete
Site preparation description is it is clear that described embodiment a part of embodiment that is the present invention, rather than whole embodiments.Based on this
Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under the premise of not making creative work
Example, broadly falls into the scope of protection of the invention.
Sending ending equipment described in the embodiment of the present invention and receiving device can be mobile phone, panel computer, desktop computer etc.
There is the smart machine of shared file function.
Refer to Fig. 1, be a kind of schematic flow sheet of an embodiment of the method for shared file of the present invention;The present embodiment from
Send the method flow that side illustrates the shared file of the present invention;As described in Figure 1, a kind of shared file described in the present embodiment
Method includes step:
S100, when carrying out file-sharing with receiving terminal it would be desirable to shared data file carries out data conversion treatment;
In specific embodiment, the prompting carrying out file-sharing with receiving terminal can be, when user puts through with receiving terminal one by one
Corresponding telephone number, sets up and the communication connection of receiving terminal, and after selecting to need shared file, selects by sound altogether
The mode enjoyed carries out file-sharing;Directly file can also be carried out altogether in the case of in-plant by way of sound is shared
Enjoy.
The mode needing shared data file to carry out data conversion treatment can be, sending ending equipment inner utilization number
Word signal processing, data file is carried out coded treatment and is converted to octal data file, it should be noted that be converted to eight entering
Data file processed is only for example it is also possible to be converted to the data file of other systems, for example, can also be converted to 2nThe number of system
According to file.
S101, by the described data file transition after data conversion treatment be at least one audio frequency frequency, by described at least
One audio frequency frequency is synthesized to generate audio file;
In specific embodiment, the data file transition after data conversion treatment is at least one audio frequency frequency, will be described
It can be that specifically, transmitting terminal is through digital signal in the way of generating audio file that at least one audio frequency frequency is synthesized
Processing can be according to the interval number shown in table one and frequency corresponding relation come by data file by the data file after conversion process
Be converted to multiple audio frequency frequency, the more multiple audio frequency frequency being converted to are carried out synthesis process, generate audio file.
S102, sends described audio file to receiving terminal.
In specific embodiment, it can be to be play by sound to the concrete mode of receiving terminal that transmitting terminal sends audio file
The audio file being come by data file transition play by device, it should be noted that broadcast mode also depends on transmitting terminal and receiving terminal
Distance condition, different distance condition selects different broadcast modes.
Specifically, first the range information with receiving terminal can be obtained by terminal;Then detect acquired distance letter again
Whether breath is less than or equal to predetermined threshold value;If range information acquisition is detected is less than or equal to default threshold value, adopt
Play audio file with audio-frequence player device, so that receiving terminal listens to described audio file, and audio file is carried out at conversion
Reason, obtains shared data file;It should be noted that audio-frequence player device can be speaker, microphone etc. can be play
The equipment of sound;If range information acquisition is detected is more than default threshold value, sets up communication connection with receiving terminal, and utilize
The communication network set up propagates audio file, so that receiving terminal receives audio file, and carries out conversion process to audio file,
Obtain shared described data file, it should be noted that communication connection herein can be dialled using mobile phone, herein
Communication network can be wireless network, the network that gsm network, 3g network etc. can be communicated, more preferred, in long distance
Before propagating audio file, the equipment that mike of sending ending equipment etc. can send sound can be closed, so that required
The sound of transmission is from interference.
In the embodiment of the present invention, by needing shared data file to carry out data conversion treatment, then by data conversion
Data file transition after process be corresponding audio frequency frequency to generate audio file, and send audio file to receiving terminal, real
Now data file is shared, and this data file transition is that the conversion method of audio file is simple, it is easy to accomplish;And utilize audio frequency
File-sharing realized by file, and sharing mode is directly perceived.
Refer to Fig. 2, be a kind of schematic flow sheet of another embodiment of the method for shared file of the present invention;The present embodiment
Method flow from the shared file sending the side elaboration present invention;As described in Figure 2, a kind of shared file described in the present embodiment
Method include step:
S200, when carrying out file-sharing with receiving terminal it would be desirable to shared data file is carried out using binary form
Represent, generate binary data file;
In specific embodiment, need shared file manifestation mode various, for example, need the shared file can be
The forms of expression such as current signal, voltage signal, picture, music and video, when realizing file-sharing, need will to need altogether first
The file consolidation enjoyed is indicated using binary form, generates binary data file, turns in order to audio file below
Change process.
S201, described binary data file is changed, and generates 2nBinary data file, wherein n be more than or wait
In 2 positive integer;
In specific embodiment, the binary data in binary data file is converted to 2nBinary data, n be more than or
Positive integer equal to 2, ultimately produces 2nBinary data file.
S202, by described 2nEach character in binary data file, is converted to corresponding audio frequency frequency successively, will be described
Audio frequency frequency is synthesized to generate audio file.
In specific embodiment, by be converted to 2nEach character in binary data file carries out conversion process, generates
Each character corresponding audio frequency frequency, specifically, is illustrated equal to 3 with n here, is by octal data file
Each octal data be converted to corresponding audio frequency frequency.
The frequency of sound is divided into eight segments, the octal data that previous step is converted, changes into corresponding
Audio frequency frequency.
Further, conversion regime octal data being converted to corresponding audio frequency frequency can be, first by audio frequency
File is divided into eight segments, the frequency range such as following table one of each segment, and is illustrated with following output sound frequency
Illustrate:
Table one:
Interval 1 represents octal data 0, and interval 2 represent octal data 1, and interval 3 represent octal data 2, and interval 4
Represent octal data 3, interval 5 represent octal data 4, interval 6 represent octal data 5, interval 7 represent octal data
6, interval 8 represent octal data 7.So for example, octal data is 77711424, and the audio frequency frequency changed out is exactly as follows
Audio frequency frequency: 7.5khz7.5khz7.5khz1.5khz1.5khz3.5khz2.5khz3.5khz, then by each audio frequency frequency
Carry out synthesis process, generate audio file.
S203, sends described audio file to receiving terminal, so that described receiving terminal receives described audio file, and to described
Audio file carries out conversion process, obtains and needs shared described data file.
Embodiment of the present invention step s203, specifically refer to embodiment step s102 shown in Fig. 1, and here is not gone to live in the household of one's in-laws on getting married
State.
In the embodiment of the present invention, by needing shared data file to carry out data conversion treatment, then by data conversion
Data file transition after process be corresponding audio frequency frequency to generate audio file, and send audio file to receiving terminal, real
Now data file is shared, and this data file transition is that the conversion method of audio file is simple, it is easy to accomplish;And utilize sound
Frequency file realizes file-sharing, and sharing mode is directly perceived.
Refer to Fig. 3, Fig. 3 is a kind of another embodiment of the method for shared file of the present invention.Step s200, when with reception
End is carried out it would be desirable to shared data file is indicated using binary form during file-sharing, generates binary data literary composition
Part.When being indicated using binary form when needing shared data file excessive, can be compressed processing, tool
Body process is:
S300, when carrying out file-sharing with receiving terminal it would be desirable to shared data file adopts binary representation;
S301, will be in turn divided at least one data block using the described data file of binary representation, wherein said
The character all " 1 " of data block or character all " 0 ";
In specific embodiment, the data file using binary representation is divided, generated multiple data blocks, it is concrete
Dividing mode can be to be divided according to the character in the data file using binary representation, adopting binary representation
Data file in, whenever character " 1 " and character " 0 " alternate, divided between character " 1 " and character " 0 ", raw
Become multiple data blocks, otherwise each data block be continuation character all " 1 " data block, or being that continuation character is all
The data block of " 0 ".For example: the data file using binary representation is:
11111111111111111111111100000011100000000000000000000000 000000011111111111, then
Divided and 25 bit binary data between at the 24th, the 30th and 31 bit binary data it
Between divided, divided between the 33rd and 30 tetrad data, at the 63rd and the 64th
Divided between binary data, generated five data blocks, each data block is: the first data block:
111111111111111111111111, the second data block: 000000, the 3rd data block: 111, the 4th data block:
000000000000000000000000000000, the 5th data block: 11111111111.
S302, counts the digit of each data block, and this digit is with the binary code representation of seven;
In specific embodiment, count the binary data digit of each data block, and by the binary data counting
Digit is converted to binary data, and with the binary code representation of seven, is further illustrated with institute's illustrated example above,
The digit of the such as first data block is 24, then binary code decimal data 24 being converted to seven is indicated, the seven of 24
Position binary code is 0011000, and the digit of the second data block is 6, then binary code decimal data 6 being converted to seven enters
Row represents, 6 seven binary codes are 0000110, and the digit of the 3rd data block is 3, then decimal data 3 is converted to seven
Binary code be indicated, 3 seven binary codes are 0000011, and the digit of the 4th data block is 30, then by decimal number
It is indicated according to 30 binary codes being converted to seven, 30 seven binary codes are 0011110, and the digit of the 5th data block is
11, then binary code decimal data 11 being converted to seven is indicated, and 11 seven binary codes are 0001011.
S303, by each data block described with low level for the corresponding character of described data block, high-order is described data block pair
The form of the digit answered is representing;
In specific embodiment, each data block is indicated using another kind of representation, specifically, each number
Occupy the lowest order of each data block according to the corresponding character of block, the corresponding digit of each data block occupies each data block
High seven, thus, each data block is indicated using the binary data of eight, specifically, with the above-mentioned
Example is further illustrated, and for example, the corresponding character of the first data block is 1, and the corresponding digit of the first data block is
0011000, then the first data block can be indicated using 00110001, the corresponding character of the second data block be 0, the second data
The corresponding digit of block is 0000110, then the second data block can be indicated using 00001100, the corresponding word of the 3rd data block
Accord with as 1, the corresponding digit of the 3rd data block is 0000011, then the 3rd data block can be indicated using 00000111, the 4th
The corresponding character of data block is 0, and the corresponding digit of the 4th data block is 0011110, then the 4th data block can adopt
00111100 is indicated, and the corresponding character of the 5th data block is 1, and the corresponding digit of the 5th data block is the 0001011, then the 4th
Data block can be indicated using 00010111.
S304, each data block is arranged according to stripe sequence, generates binary data file.
In specific embodiment, according to the putting in order of data block when dividing data block, newly-generated data block is arranged
Row synthesis, the binary data file after generation process, it should be noted that this processing procedure can be compression process, specifically
, continue be further illustrated with institute's illustrated example above, by the first data block, the second data block, the 3rd data block, the 4th
Data block and the 5th data block carry out synthesis process, and the binary data file after so processing is exactly: 00110001
00001100 00,000,111 00,111,100 00010111, the digit of the binary file using binary representation from 74
It is compressed to 40.
Need further exist for illustrating, because data bits is fixed as 7, digit can not be more than 127, if greatly
In 127, then 127 are divided for unit, be divided into multiple data segments, for example, data source is 200 1,10 0 compositions
Data, then when processing, the data that 127 1+73 1+10 0 form can be become, after process, reform into 11111111
10010011 00010100.
Refer to Fig. 4, be a kind of schematic flow sheet of the another embodiment of the method for shared file of the present invention;The present embodiment
Method flow from the shared file receiving the side elaboration present invention;As described in Figure 4, a kind of shared file described in the present embodiment
Method include step:
S400, when carrying out file-sharing with transmitting terminal, receives the audio file that described transmitting terminal is play;
In specific embodiment, the mode carrying out file-sharing with transmitting terminal can be, when user puts through with receiving terminal one by one
Corresponding telephone number, receiving device receives this connection request, and sets up the communication connection with transmitting terminal.
In specific embodiment, because the mode that transmitting terminal plays audio file can select long-distance transmissions broadcast mode,
Closely broadcast mode can also be selected, thus receiving terminal can also different using two kinds by the way of received, if transmitting terminal
When selecting closely broadcast mode, and playing described audio file using audio-frequence player device, then receiving terminal is listened to transmitting terminal and is adopted
The audio file play with audio-frequence player device;If transmitting terminal selects remote broadcast mode, and communicate with receiving terminal foundation
When connecting, and propagating audio file using the communication network set up, then receiving terminal and transmitting terminal set up communication connection, and utilize
The audio file that the communication network receiving end/sending end set up is propagated.
It should be noted that the listening equipment of receiving terminal can be earpiece, radio etc. can receive audio files
Equipment;Communication connection herein can be dialled using equipment such as mobile phones, and wireless network can be gsm network, 3g net
What network etc. can be communicated network, more preferred, before receiving audio file, broadcasting of receiving device can be closed
Put the equipment that device etc. can send sound, so that the sound of required reception is from interference.
S401, according to described audio file split at least one audio frequency frequency and by each audio frequency frequency described change
For data file;
In specific embodiment, at least one audio frequency frequency is split into and by each audio frequency described according to described audio file
The mode that frequency is converted to data file can be, receiving device inner utilization Digital Signal Processing, and audio file is split
Become at least one audio frequency frequency, and each audio frequency frequency is converted to by data file by coded treatment, it should be noted that
Data file herein can be the data of octal data file or other system, such as 2nThe data of system, but
Be need to further illustrate be system number herein need with the data conversion treatment of transmitting terminal after the data file that obtains enter
Number processed is corresponding.
S402, described data file is carried out data conversion treatment, obtains and needs shared data file.
In specific embodiment, data file is further changed by Digital Signal Processing and is total to by receiving terminal
The data file enjoyed, it should be noted that needing shared data file can be presented in many ways, however it is necessary that with
The presentation mode of transmitting terminal is corresponding.
In the embodiment of the present invention, by needing shared data file to carry out data conversion treatment, then by data conversion
Data file transition after process be corresponding audio frequency frequency to generate audio file, and send audio file to receiving terminal, real
Now data file is shared, and this data file transition is that the conversion method of audio file is simple, it is easy to accomplish;And utilize audio frequency
File-sharing realized by file, and sharing mode is directly perceived.
Refer to Fig. 5, be a kind of another embodiment schematic flow sheet of method of shared file of the present invention;The present embodiment from
Receive the method flow that side illustrates the shared file of the present invention;As described in Figure 5, a kind of shared file described in the present embodiment
Method includes step:
S500, when carrying out file-sharing with transmitting terminal, receives the audio file that described transmitting terminal is sent;
Embodiment of the present invention step s500, refer to embodiment step s400 shown in Fig. 4, and here is not repeated.
S501, described audio file is split at least one audio frequency frequency according to default order;
In specific embodiment, remove the beginning and end identifier of audio file header and afterbody first, parse this sound
Frequency file, this audio file is marked off multiple frequencies, and carry out serial number for each frequency so that each frequency
Rate all have a unique sequence identification, this sequence identification needs corresponding with the genesis sequence of transmitting terminal audio frequency frequency.
S502, according to the frequency range of each audio frequency frequency at least one audio frequency frequency described, successively by described at least
Each audio frequency frequency in one audio frequency frequency is converted to 2nBinary data, obtains 2nBinary data file;
In specific embodiment, the value needs of n are corresponding with transmitting terminal, here, continuing to be illustrated equal to 3 with n,
According to each audio frequency frequency frequency range, and with reference to frequency range and octal data corresponding relation by each frequency
Rate is converted to corresponding octal data, and specific conversion regime is as shown below, it should be noted that sound frequency at this
It is divided into 8 frequency intervals it is also possible to be divided into other frequency separations, but the frequency separation hop count being divided into needs to divide with transmitting terminal
The number of segment corresponds to.
Table one:
Interval 1 represents octal data 0, and interval 2 represent octal data 1, and interval 3 represent octal data 2, and interval 4
Represent octal data 3, interval 5 represent octal data 4, interval 6 represent octal data 5, interval 7 represent octal data
6, interval 8 represent octal data 7, it should be noted that when audio frequency is converted to file, being not directly to judge that each sound is defeated
Go out whether frequency is 600hz, 1.5khz, 2.5khz, 3.5khz, 4.5khz, 5.5khz, 6.5khz, 7.5khz, but first judge
Each sound frequency whether in corresponding frequency interval, so can largely reduce external voice (or) signal of telecommunication
Interference, so each output sound frequency has the capacity of resisting disturbance of 500hz;Specifically, if acoustical signal frequency is in 200hz
Between~1khz, be then converted to octal system 0, if acoustical signal frequency is between 1khz~2khz, be converted to octal system 1, if
Acoustical signal frequency exists, and between 2khz~3khz, is then converted to octal system 2, if acoustical signal frequency is between 3khz~4khz,
Then be converted to octal system 3, if acoustical signal frequency is between 4khz~5khz, be converted to octal system 4, if acoustical signal frequency
Between 5khz~6khz, be then converted to octal system 5, if acoustical signal frequency is between 6khz~7khz, is converted to eight and enters
System 6, if acoustical signal frequency is between 7khz~8khz, is converted to octal system 7.Each of such a audio file
Audio frequency frequency has been converted to an octal data, and multiple octal data are synthesized together successively, have been generated as octal system
Data file.
S503, successively by described 2nIn binary data file each 2nBinary data is converted to binary data, generates two
Binary data file, described binary data file is to need shared data file;
In specific embodiment, by each 2nBinary data is converted to binary data, each binary data combination producing
Binary data file, thus obtain need shared data file.
In the embodiment of the present invention, by needing shared data file to carry out data conversion treatment, then by data conversion
Data file transition after process be corresponding audio frequency frequency to generate audio file, and send audio file to receiving terminal, real
Now data file is shared, and this data file transition is that the conversion method of audio file is simple, it is easy to accomplish;And utilize audio frequency
File-sharing realized by file, and sharing mode is directly perceived.
Refer to Fig. 6, a kind of schematic flow sheet of another embodiment of the method for shared file of the present invention of Fig. 6.S503,
Successively by described 2nIn binary data file each 2nBinary data is converted to binary data, generates binary data file,
Described binary data file is to need shared data file.When this binary data file is to process through overcompression, need
Will be after binary data after conversion carry out decompression, the binary data file of generation, thus it is shared to obtain needs
Data file.As shown in fig. 6, s503 specifically may include steps of:
S600, successively by described 2nIn binary data file each 2nBinary data is converted to binary data;
S601, by described 2 after conversionnBinary data file is divided at least one eight bit data block, and described at least one
In individual eight bit data block, each eight bit data block comprises eight-digit binary number data;
In specific embodiment, by 2 after conversionnThe mode that binary data file is divided at least one eight bit data block can
To be, read eight bit data every time, the eight bit data often reading is generated as an eight bit data block.
S602, high seven in each the eight bit data block at least one eight bit data block described are converted to decimal scale
Data, described decimal data represents the binary data digit of the corresponding data block of described eight bit data block, described eight-digit number
According to block low level be the corresponding data block of described eight bit data block character, the character of described data block is " 1 " or " 0 ";
In specific embodiment, the Gao Qiwei in each eight bit data block is utilized number system transition, binary data is turned
It is changed to decimal data, the decimal data being converted to is the binary data bit of this corresponding data block of eight bit data block
Number, the low level of eight bit data block is, the character of the corresponding data block of eight bit data block, and the value of a such as eight bit data block is
00010100, then extract the high seven 0001010 of this eight bit data block, being converted to decimal scale is 10, this eight bit data block
Lowest order is 0, so the character of this corresponding data block of eight bit data block is 0.
S603, the decimal data being converted to according to each eight bit data block and each corresponding data of eight bit data block
Block character, each eight data block at least one eight bit data block described are converted to corresponding binary data, obtain to
A few data block;
In specific embodiment, according to the decimal data being converted to as the two of this corresponding data block of eight bit data block
Binary data digit, the low level of eight bit data block, as the character of corresponding data block, is converted to data block eight bit data block,
Illustrated with institute's illustrated example above further, the binary data digit of eight bit data block 00010100 is 10, data block
Character be 0, so this corresponding data block of eight bit data block be 0000000000.
S604, according to the order of eight bit data block, at least one data block described is synthesized, and generates binary data
File, described binary data file is to need shared data file.
In specific embodiment, the multiple data blocks being converted to are carried out synthesis process, generate binary data file, respectively
The synthesis order of individual data block is putting in order of eight bit data block.
The binary data file of gained is data file that the needs being represented using binary form are shared it is also possible to right
This binary data file carries out conversion or the process of binary system and other systems, obtains the needs representing otherwise altogether
The data file enjoyed.
The implementing of provided in an embodiment of the present invention a kind of transmitting terminal is described below.
Refer to Fig. 7, be a kind of structural representation of transmitting terminal of the present invention.As shown in fig. 7, the one kind described in the present embodiment
Transmitting terminal includes: the first data conversion module 100 and audio file generation module 101 and sending module 102.
First data conversion module 100, for when carrying out file-sharing with receiving terminal it would be desirable to shared data file
Carry out data conversion treatment;
In specific embodiment, the prompting carrying out file-sharing with receiving terminal can be, when user puts through with receiving terminal one by one
Corresponding telephone number, sets up and the communication connection of receiving terminal, and after selecting to need shared file, selects by sound altogether
The mode enjoyed carries out file-sharing.
The mode needing shared data file to carry out data conversion treatment can be by the first data conversion module 100,
Sending ending equipment inner utilization Digital Signal Processing, data file is carried out coded treatment and is converted to octal data file, needs
It is noted that be converted to octal data file being only for example it is also possible to be converted to the data file of other systems, such as
2 can be converted tonThe data file of system.
In specific embodiment, the first data conversion module 100 can include binary transforming module 200 and the first numeral system turns
Die change block 201.Binary transforming module 200 specifically for when carrying out file-sharing with receiving terminal it would be desirable to shared data
File is indicated using binary form, generates binary data file;First number system transition module 201, for entering two
The binary data file that modular converter 200 processed is generated is changed, and generates 2nBinary data file, wherein n be more than or
Positive integer equal to 2;
Audio file generation module 101, for being at least one by the described data file transition after data conversion treatment
Audio frequency frequency, at least one audio frequency frequency described is synthesized to generate audio file;
In specific embodiment, the data file transition after data conversion treatment is at least by audio file generation module 101
One audio frequency frequency, at least one audio frequency frequency described is synthesized in the way of generating audio file can be, transmitting terminal
Through Digital Signal Processing by the data file after conversion process according to specific rule, data file transition is multiple audio frequency
Frequency, the more multiple audio frequency frequency being converted to are carried out synthesis process, generate audio file.
In specific embodiment, audio file generation module 101 is specifically for being generated the first number system transition module 201
2nEach character in binary data file, is converted to corresponding audio frequency frequency successively, and described audio frequency frequency is synthesized
To generate audio file.
Sending module 102, for sending described audio file to receiving terminal.
In specific embodiment, transmitting terminal sending module 102 sends audio file to the concrete mode of receiving terminal can be, lead to
Cross Audio Players and play the audio file being come by data file transition, it should be noted that broadcast mode also depends on transmission
End and the distance condition of receiving terminal, different distance conditions selects different broadcast modes.
Specifically, sending module 102 can obtain the range information with receiving terminal by terminal first;Then detect again and obtained
Whether the range information taking is less than or equal to predetermined threshold value;If range information acquisition is detected is less than or equal to default
Threshold value, then adopt audio-frequence player device to play audio file, so that receiving terminal listens to described audio file, and audio file entered
Row conversion process, obtains shared data file;It should be noted that audio-frequence player device can be speaker, microphone etc.
The equipment of sound can be play;If range information acquisition is detected is more than default threshold value, set up communication link with receiving terminal
Connect, and propagate audio file using the communication network set up, so that receiving terminal receives audio file, and audio file is carried out
Conversion process, obtains shared described data file, it should be noted that communication connection herein can be carried out using mobile phone
Dialing, communication network herein can be wireless network, the network that gsm network, 3g network etc. can be communicated, more preferably
, before long-distance communications audio file, the equipment that mike of sending ending equipment etc. can send sound can be closed, with
Required for making, the sound of transmission is from interference.
In the embodiment of the present invention, by needing shared data file to carry out data conversion treatment, then by data conversion
Data file transition after process be corresponding audio frequency frequency to generate audio file, and send audio file to receiving terminal, real
Now data file is shared, and this data file transition is that the conversion method of audio file is simple, it is easy to accomplish;And utilize audio frequency
File-sharing realized by file, and sharing mode is directly perceived.
Refer to Fig. 8, be the structural representation of binary transforming module 200.As shown in figure 8, binary transforming module 200
Including: the first Binary Conversion unit 300, the first division unit 301, statistic unit 302, expression unit 303, signal generating unit
304 and first Date Conversion Unit 305.
First Binary Conversion unit 300, for when carrying out file-sharing with receiving terminal it would be desirable to shared data literary composition
Part is indicated using binary form;
In specific embodiment, need shared file manifestation mode various, for example, need the shared file can be
The forms of expression such as current signal, voltage signal, picture, music and video, when realizing file-sharing, the first Binary Conversion list
Unit 300 needs shared file consolidation will to be needed to be indicated using binary form first, in order to audio file below
Conversion process.
First division unit 301, for being in turn divided at least one by the described data file using binary representation
Data block, the character all " 1 " of wherein said data block or character all " 0 ";
In specific embodiment, the data file using binary representation is divided by the first division module 301, generates many
Individual data block, its specific dividing mode can be divided according to the character in the data file using binary representation,
In binary data file, whenever character " 1 " and character " 0 " alternate, carry out between character " 1 " and character " 0 "
Divide, generate multiple data blocks, or each data block be continuation character all " 1 " data block, or being consecutive word
Accord with the data block of all " 0 ".For example: the described data file using binary representation is:
11111111111111111111111100000011100000000000000000000000 000000011111111111, then
Divided and 25 bit binary data between at the 24th, the 30th and 31 bit binary data it
Between divided, divided between the 33rd and 30 tetrad data, at the 63rd and the 64th
Divided between binary data, generated five data blocks, each data block is: the first data block:
111111111111111111111111, the second data block: 000000, the 3rd data block: 111, the 4th data block:
000000000000000000000000000000, the 5th data block: 11111111111.
Statistic unit 302, for counting the digit of each data block, this digit is with the binary code representation of seven;
In specific embodiment, statistic unit 302 counts the binary data digit of each data block, and will count
Binary data digit is converted to binary data, and with the binary code representation of seven, enters one with institute's illustrated example above
Step illustrates, and the digit of the such as first data block is 24, then binary code decimal data 24 being converted to seven is carried out
Represent, 24 seven binary codes are 0011000, and the digit of the second data block is 6, then decimal data 6 is converted to seven
Binary code be indicated, 6 seven binary codes are 0000110, and the digit of the 3rd data block is 3, then by decimal number
It is indicated according to 3 binary codes being converted to seven, 3 seven binary codes are 0000011, and the digit of the 4th data block is
30, then binary code decimal data 30 being converted to seven is indicated, and 30 seven binary codes are 0011110, the
The digit of five data blocks is 11, then binary code decimal data 11 being converted to seven is indicated, and seven two of 11 are entered
Code processed is 0001011.
Represent unit 303, for low level for the corresponding character of described data block, a high position is institute by each data block described
State the form of the corresponding digit of data block to represent;
In specific embodiment, represent that each data block is indicated, specifically by unit 303 using another kind of representation
, the corresponding character of each data block occupies the lowest order of each data block, and the corresponding digit of each data block occupies
Each data block high seven, thus, each data block is indicated using the binary data of eight, specifically,
It is further illustrated with institute's illustrated example above, for example, the corresponding character of the first data block is 1, and the first data block is corresponding
Digit is 0011000, then the first data block can be indicated using 00110001, and the corresponding character of the second data block is 0, the
The corresponding digit of two data blocks is 0000110, then the second data block can be indicated using 00001100, the 3rd data block pair
The character answered is 1, and the corresponding digit of the 3rd data block is 0000011, then the 3rd data block can carry out table using 00000111
Show, the corresponding character of the 4th data block is 0, the corresponding digit of the 4th data block is 0011110, then the 4th data block can adopt
00111100 is indicated, and the corresponding character of the 5th data block is 1, and the corresponding digit of the 5th data block is the 0001011, then the 4th
Data block can be indicated using 00010111.
Signal generating unit 304, for being arranged each data block according to stripe sequence, generates binary data file.
In specific embodiment, according to the putting in order of data block when dividing data block, signal generating unit 304 is by newly-generated number
Carry out arrangement according to block to synthesize, the binary data file after generation process, it should be noted that this process of signal generating unit 304
Process can be that compression is processed, and specifically, continues to be further illustrated with institute's illustrated example above, by the first data block, the
Two data blocks, the 3rd data block, the 4th data block and the 5th data block carry out synthesis process, and such binary data file is just
It is: 00,110,001 00,001,100 00,000,111 00,111,100 00010111, using the binary file of binary representation
Digit is compressed to 40 from 74, so binary data file mainly is compressed processing by this processing procedure.
Need further exist for illustrating, because data bits is fixed as 7, digit can not be more than 127, if greatly
In 127, then 127 are divided for unit, be divided into multiple data segments, for example, using the binary system literary composition of binary representation
Part is the data of 200 1,10 0 compositions, then when processing, can become the data of 127 1+73 1+10 0 composition, after process
Reform into 11,111,111 10,010,011 00010100.
First number system transition unit 305, for being changed described binary data file, generates 2nBinary data literary composition
Part, wherein n are the positive integer more than or equal to 2;
In specific embodiment, the binary data in binary data file is converted to by the first number system transition unit 305
2nBinary data, n is the positive integer more than or equal to 2, ultimately produces 2nBinary data file.
In the embodiment of the present invention, by needing shared data file to carry out data conversion treatment, then by data conversion
Data file transition after process be corresponding audio frequency frequency to generate audio file, and send audio file to receiving terminal, real
Now data file is shared, and this data file transition is that the conversion method of audio file is simple, it is easy to accomplish;And utilize audio frequency
File-sharing realized by file, and sharing mode is directly perceived.
The implementing of provided in an embodiment of the present invention a kind of receiving terminal is described below.
Refer to Fig. 9, be a kind of structural representation of receiving terminal of the present invention.As shown in figure 9, the one kind described in the present embodiment
Receiving terminal includes receiver module 400, splits modular converter 401 and the second data conversion module 402.
Receiver module 400, for when carrying out file-sharing with transmitting terminal, receiving the audio frequency literary composition that described transmitting terminal is sent
Part, described audio file is that the data file needing to share is carried out the audio file of conversion process acquisition by described transmitting terminal;
In specific embodiment, the prompting carrying out file-sharing with transmitting terminal can be, when user puts through with receiving terminal one by one
Corresponding telephone number, receiving device receives this connection request, and sets up the communication connection with transmitting terminal.
In specific embodiment, because the mode that transmitting terminal sends audio file can select long-distance transmissions broadcast mode,
Closely broadcast mode can also be selected, thus receiving terminal can also different using two kinds by the way of received, if transmitting terminal
When selecting closely broadcast mode, and playing described audio file using audio-frequence player device, then receiver module 400 listens to transmission
Hold the audio file play using audio-frequence player device;If transmitting terminal selects remote broadcast mode, and set up with receiving terminal
Communication connection, and when propagating audio file using the communication network set up, then receiver module 400 and transmitting terminal set up communication link
Connect, and the audio file propagated using the communication network receiving end/sending end set up.
It should be noted that the listening equipment of receiving terminal can be earpiece, radio etc. can receive audio files
Equipment;Communication connection herein can be dialled using equipment such as mobile phones, and wireless network can be gsm network, 3g net
What network etc. can be communicated network, more preferred, before receiving audio file, broadcasting of receiving device can be closed
Put the equipment that device etc. can send sound, so that the sound of required reception is from interference.
Split modular converter 401, for according to described audio file split at least one audio frequency frequency and will described often
One audio frequency frequency is converted to data file;
In specific embodiment, split modular converter 401 according to described audio file split at least one audio frequency frequency with
The mode being converted to data file can be, receiving device inner utilization Digital Signal Processing, and audio file is split
Coded treatment is converted to data file, it should be noted that data file herein can for octal data file it is also possible to
For the data of other systems, such as hexadecimal data or 2nBinary data, n is the positive integer more than or equal to 2, but needs
To be further illustrated is the data file system number obtaining after the data conversion treatment that system number herein needs with transmitting terminal
Corresponding.
Second data conversion module 402, for described data file is carried out data conversion treatment, obtains what needs were shared
Data file.
In specific embodiment, data file is carried out further by the second data conversion module 402 by Digital Signal Processing
Conversion obtaining shared data file, it should be noted that shared data file can be presented in many ways,
However it is necessary that it is corresponding with the presentation mode of transmitting terminal.
In the embodiment of the present invention, by needing shared data file to carry out data conversion treatment, then by data conversion
Data file transition after process be corresponding audio frequency frequency to generate audio file, and send audio file to receiving terminal, real
Now data file is shared, and this data file transition is that the conversion method of audio file is simple, it is easy to accomplish, and utilize audio frequency
File-sharing realized by file, and sharing mode is directly perceived.
Refer to Figure 10, for splitting the structural representation of modular converter 401, as shown in Figure 10, the fractionation of the present embodiment turns
Die change block 401 includes split cells 500 and audio frequency frequency converting unit 501.
Split cells 500, for splitting at least one audio frequency frequency by described audio file according to default order;
In specific embodiment, split cells 500 removes the beginning and end identifier of audio file header and afterbody first,
Parse this audio file, this audio file is marked off multiple frequencies, and carry out serial number for each frequency, make
Obtain each frequency all has a unique sequence identification, and this sequence identification needs the genesis sequence with transmitting terminal audio frequency frequency
Corresponding.
Audio frequency frequency converting unit 501, for the frequency according to each audio frequency frequency at least one audio frequency frequency described
Each audio frequency frequency at least one audio frequency frequency described is converted to 2 by scope successivelynBinary data, obtains 2nBinary data literary composition
Part;
In specific embodiment, the value needs of n are corresponding with transmitting terminal, here, continuing to be illustrated equal to 3 with n,
Audio frequency frequency modular converter 501 according to each audio frequency frequency frequency range, and with reference to frequency range and octal data
Corresponding relation each frequency conversion is corresponding octal data, specific conversion regime is as shown below, needs
Bright, at this, sound frequency is divided into 8 frequency intervals it is also possible to be divided into other frequency separations, but the frequency being divided into
Interval hop count needs corresponding with the number of transmitting terminal by stages section.
Table one:
Interval 1 represents octal data 0, and interval 2 represent octal data 1, and interval 3 represent octal data 2, and interval 4
Represent octal data 3, interval 5 represent octal data 4, interval 6 represent octal data 5, interval 7 represent octal data
6, interval 8 represent octal data 7, it should be noted that when audio frequency is converted to file, being not directly to judge that each sound is defeated
Go out whether frequency is 600hz, 1.5khz, 2.5khz, 3.5khz, 4.5khz, 5.5khz, 6.5khz, 7.5khz, but first judge
Each sound frequency whether in corresponding frequency interval, so can largely reduce external voice (or) signal of telecommunication
Interference, so each output sound frequency has the capacity of resisting disturbance of 500hz;Specifically, if acoustical signal frequency is in 200hz
Between~1khz, be then converted to octal system 0, if acoustical signal frequency is between 1khz~2khz, be converted to octal system 1, if
Acoustical signal frequency exists, and between 2khz~3khz, is then converted to octal system 2, if acoustical signal frequency exists, 3khz~4khz it
Between, then be converted to octal system 3, if acoustical signal frequency is between 4khz~5khz, be converted to octal system 4, if acoustical signal
Frequency between 5khz~6khz, is then converted to octal system 5, if acoustical signal frequency, between 6khz~7khz, is converted to
Octal system 6, if acoustical signal frequency is between 7khz~8khz, is converted to octal system 7.Every in such a audio file
One audio frequency frequency has been converted to an octal data, and multiple octal data are synthesized together successively, have been generated as eight
Binary data file.
In the above-described embodiments, the second data conversion module 402, for successively by described 2nEvery in binary data file
Individual 2nBinary data is converted to binary data, generates binary data file, and described binary data file is to need to share
Data file.This 2nThe octal data file that binary data file can be obtained by audio frequency frequency converting unit 501.
Refer to Figure 11, be the structural representation of the second data conversion module 402.As shown in figure 11, the of the present embodiment
Two data conversion modules 402 include: the second Binary Conversion unit 600, the second division unit 601, decimal scale converting unit
602nd, data block signal generating unit 603 and synthesis unit 604.
Second Binary Conversion unit 600, for successively by described 2nIn binary data file each 2nBinary data turns
It is changed to binary data;
Second division unit 601, for 2 after changingnBinary data file is divided at least one eight bit data block,
In at least one eight bit data block described, each eight bit data block comprises eight-digit binary number data;
In specific embodiment, the second division unit 601 will change after 2nBinary data file be divided at least one eight
The mode of bit data block can be to read eight bit data every time, and the eight bit data often reading is generated as an eight bit data block.
Decimal scale converting unit 602, for by each the eight bit data block at least one eight bit data block described
Gao Qiwei is converted to decimal data, and described decimal data represents the binary number of the corresponding data block of described eight bit data block
According to digit, the low level of described eight bit data block is the character of the corresponding data block of described eight bit data block, the word of described data block
Accord with as " 1 " or " 0 ";
In specific embodiment, the Gao Qiwei in each eight bit data block is turned by decimal scale converting unit 602 using numeral system
Change, binary data is converted to decimal data, the decimal data being converted to is this corresponding number of eight bit data block
According to the binary data digit of block, the low level of eight bit data block is, the character of the corresponding data block of eight bit data block, such as one
The value of eight bit data block is 00010100, then extract the high seven 0001010 of this eight bit data block, being converted to decimal scale is
10, the lowest order of this eight bit data block is 0, so the character of this corresponding data block of eight bit data block is 0.
Data block signal generating unit 603, for the decimal data that is converted to according to each eight bit data block and each eight
Bit data block corresponding data block character, each eight data block at least one eight bit data block described is converted to corresponding
Binary data, obtains at least one data block;
In specific embodiment, data block signal generating unit 603 is according to the decimal data being converted to as this eight bit data
The binary data digit of the corresponding data block of block, the low level of eight bit data block as the character of corresponding data block, eight
Data block is converted to data block, is illustrated with institute's illustrated example above further, the binary system of eight bit data block 00010100
Data bits is 10, and the character of data block is 0, so this corresponding data block of eight bit data block is 0000000000.
Synthesis unit 604, for the order according to eight bit data block, at least one data block described is synthesized, raw
Become binary data file, this binary data file is to need shared data file.
In specific embodiment, the multiple data blocks being converted to are carried out synthesis process by synthesis unit 504, generate binary system
Data file, it should be noted that the synthesis order of each data block is putting in order of eight bit data block.
The binary data file of gained is data file that the needs being represented using binary form are shared it is also possible to right
This binary data file carries out conversion or the process of binary system and other systems, obtains the needs representing otherwise altogether
The data file enjoyed.
In the embodiment of the present invention, by needing shared data file to carry out data conversion treatment, then by data conversion
Data file transition after process be corresponding audio frequency frequency to generate audio file, and send audio file to receiving terminal, real
Now data file is shared, and this data file transition is that the conversion method of audio file is simple, it is easy to accomplish;And utilize audio frequency
File-sharing realized by file, and sharing mode is directly perceived.
Module described in the embodiment of the present invention or unit, can pass through universal integrated circuit, such as cpu(central
Processing unit, central processing unit), or pass through asic(application specific integrated
Circuit, special IC) realizing.
The sequence of steps of the method for the embodiment of the present invention can be adjusted according to actual needs, merges or delete.This
The module of the terminal of bright embodiment can carry out integrating according to actual needs, Further Division or delete.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, it is permissible
Instruct related hardware to complete by computer program, described program can be stored in a computer read/write memory medium
In, this program is upon execution, it may include as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (read-only memory, rom) or random access memory (random access
Memory, ram) etc..
Above disclosed be only present pre-ferred embodiments, certainly the right model of the present invention can not be limited with this
Enclose, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is covered.