A kind of method and device thereof of transmission acquisition data
Technical field
The present invention relates to field of communication technology more particularly to a kind of method and device thereof of transmission acquisition data.
Background technique
In the prior art, when carrying out data transmission by wireless network, packet-switch technology is generallyd use.Packet switch skill
Art needs before data is transmitted, to be first grouped data to be transmitted, is then packaged into each grouping increase header
Data packet, in the communication process of transmitting terminal and receiving end, by the network equipment " Store and forword ", eventually by routing addressing
The data packet of encapsulation is sent to receiving end.
Due in above-mentioned communication process, each additional control information of grouping is more, increase the length of transmission information with
The time is handled, overhead is increased, meanwhile, a grouping can generate time delay when passing through a packet switching network node, because
Each grouping between one given source station and point of destination may have different length, can walk different paths, can also be with
Different time delays is undergone in interchanger on the way, so the overall delay of grouping may change very greatly.
Therefore, acquisition data are transmitted using existing packet-switch technology, entire communication process there are time delays big, easy packet loss,
The disadvantages of expense is big.
Summary of the invention
In view of this, the technical problem to be solved in the present invention is to provide a kind of method, apparatus of transmission acquisition data and being
System transmits acquisition data using packet-switch technology to solve in the prior art, and that there are time delays is big for entire communication process, easily loses
Packet, the disadvantages of expense is big.
It is as follows that the present invention solves technical solution used by above-mentioned technical problem:
It proposes a kind of data transmission method, is applied to transmitting terminal, the above method includes:
The characteristic information of the first data information to be transmitted is obtained by transmitting terminal;
Feature indication frame is converted to according to the corresponding condition code of features described above information searching, and by features described above code;
Features described above mark frame is inserted into above-mentioned first data information, generates the second data information;
By voice channel by above-mentioned second data information transfer to receiving end.
Preferably, before the characteristic information for obtaining above-mentioned first data information by above-mentioned transmitting terminal further include:
Transmitting terminal property data base is established, the attribute information of features described above information is stored.
Preferably, receiving end property data base is being established, after the attribute information for storing the characteristic information, according to above-mentioned
Characteristic information is searched before corresponding condition code further include:
Establish the first index in above-mentioned transmitting terminal property data base, by it is above-mentioned first index features described above information with
The first corresponding relationship is established between features described above code.
Preferably, the characteristic information of above-mentioned first data information is obtained by above-mentioned transmitting terminal further include: if above-mentioned
Features described above information has not been obtained in one data information, then extracts the attribute information of above-mentioned first data, is believed according to above-mentioned attribute
Breath generates features described above information, and above-mentioned transmitting terminal property data base is added in the characteristic information of generation;
According to the corresponding condition code of features described above information searching further include: if not found according to features described above information
Corresponding condition code then generates a condition code in above-mentioned transmitting terminal property data base, and is built according to above-mentioned first index
Corresponding relationship between vertical features described above information and features described above code.
The invention also provides a kind of data transmission methods, are applied to receiving end, and the above method includes:
The second data information transmitted by transmitting terminal by voice channel is received by receiving end;
The feature indication frame of above-mentioned second data information is obtained by above-mentioned receiving end;
Features described above mark frame inverse conversion is characterized code;
Corresponding characteristic information is searched according to features described above code;
The feature indication frame of above-mentioned second data information is rejected, and is believed above-mentioned second data according to features described above information
Breath is reduced to the first data information.
Preferably, receiving end property data base is being established, after the attribute information for storing the characteristic information, is passing through reception
End receives before the second data information transmitted by transmitting terminal by voice channel further include:
Receiving end property data base is established, the attribute information of features described above information is stored.
Preferably, before searching corresponding characteristic information according to features described above code further include:
Establish the second index in above-mentioned receiving end property data base, by it is above-mentioned second index features described above information with
The second corresponding relationship is established between features described above code.
Preferably, corresponding characteristic information is searched according to features described above code further include: if not according to features described above code
Corresponding characteristic information is found, then generates a characteristic information in above-mentioned receiving end property data base, and according to above-mentioned
Second index establishes the corresponding relationship between features described above code and features described above information.
The condition code of above-mentioned second data information is obtained by above-mentioned receiving end further include: if in above-mentioned second data information
Features described above code inside has not been obtained, then receives the condition code that above-mentioned transmitting terminal is sent, and above-mentioned connect is added in received condition code
Receiving end property data base.
The invention also provides a kind of data transmission devices, are applied to transmitting terminal, and above-mentioned apparatus includes:
Fisrt feature data obtaining module, for obtaining the characteristic information of the first data information to be transmitted;
Fisrt feature message processing module is used for according to the corresponding condition code of features described above information searching, and will be upper
It states condition code and is converted to feature indication frame;
First mark frame processing module generates second for features described above mark frame to be inserted into above-mentioned first data information
Data information;
First data information transfer module, for by voice channel by above-mentioned second data information transfer to receiving end.
The invention also provides a kind of data transmission devices, are applied to receiving end, and above-mentioned apparatus includes:
Second data information transfer module, for receiving the second data information transmitted by transmitting terminal by voice channel;
Second mark frame processing module, for obtaining the feature indication frame of above-mentioned second data information, and by features described above
Mark frame inverse conversion is characterized code;
Second feature code processing module, for searching corresponding characteristic information according to features described above code;
Second feature information recovery module, for rejecting the feature indication frame of above-mentioned second data information, and according to upper
It states characteristic information and above-mentioned second data information is reduced to the first data information.
Implement the present invention, the characteristic information of the first data information to be transmitted is obtained by transmitting terminal, then, according to above-mentioned
Characteristic information searches corresponding condition code, and features described above code is converted to feature indication frame, and features described above is indicated frame
It is inserted into above-mentioned first data information, generates the second data information, finally, by voice channel by above-mentioned second data information transfer
To receiving end.In such a way that characteristic information and feature indication frame combine, meanwhile, the mark of data information is done using condition code
Show, in order to the transmitting data information in voice channel, it will be understood that in voice pathway transmitting data information, communication process
Middle fixed allocation bandwidth, exclusive channel have real-time high, highly reliable, improve the real-time of data transmission, stability with
Reliability.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is the flow chart for the data transmission method that the first preferred embodiment of the invention provides;
Fig. 2 is the flow chart for the data transmission method that the second preferred embodiment of the invention provides;
Fig. 3 is the flow chart for the data transmission method that third preferred embodiment of the present invention provides;
Fig. 4 is the flow chart for the data transmission method that the 4th preferred embodiment of the invention provides;
Fig. 5 is the flow chart for the data transmission method that the 5th preferred embodiment of the invention provides;
Fig. 6 is the flow chart for the data transmission method that the 5th preferred embodiment of the invention provides;
Fig. 7 is the structural block diagram for the data transmission device applied to transmitting terminal that present pre-ferred embodiments provide;
Fig. 8 is the structural block diagram for the data transmission device applied to receiving end that present pre-ferred embodiments provide.
Specific embodiment
In order to be clearer and more clear technical problems, technical solutions and advantages to be solved, tie below
Drawings and examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only
To explain the present invention, it is not intended to limit the present invention.
Embodiment one
Fig. 1 is the flow chart for the data transmission method that the first preferred embodiment of the invention provides.The present embodiment proposes one kind
Data transmission method, is applied to transmitting terminal, and the above method includes:
S1 obtains the characteristic information of the first data information to be transmitted by transmitting terminal.It is appreciated that using this method into
The data information of row transmission can be text data information, video data information, audio data information, control signaling data letter
Breath, pulse detection data information etc..Wherein, characteristic information refers to, is used for according to what the self attributes of above-mentioned data information were extracted
The information of its feature is indicated, for example, text data and text code etc. indicate it if to be transmitted is a text file
The information of feature is the characteristic information of this article this document, if to be transmitted is a movie file, video data, video are compiled
Code, video code rate etc. indicate that the information of its feature is the characteristic information of the movie file.
It can be in such a way that transmitting terminal obtains the characteristic information of the first data information to be transmitted, in transmitting terminal to adopting
The data information of collection carries out detection processing and analysis processing, and the characteristic attribute of data information is obtained by detection processing, such as
Above-mentioned file data type information and document No. information etc. handle the functional attributes for obtaining data information, example by analysis
Such as above-mentioned control signaling attribute and pulse detection attribute.
S2 searches corresponding condition code according to characteristic information, and condition code is converted to feature indication frame.This implementation
The condition code that example proposes refers to, for code corresponding to features described above information, for referring to features described above information, for example, needle
A character string is assigned to each characteristic information, corresponding characteristic information is referred to by the character string, then the character string can be with
Regard the condition code of the present embodiment as.Since condition code does not have the transmission demand of voice channel, meanwhile, in order to reduce data band
Width consumption, and raising efficiency of transmission and accuracy rate convert features described above code before by data information package to be transmitted
For the signature identification frame that can be used for voice channel transmission.It is appreciated that this feature mark frame can be one section of data to be transferred packet
Frame head, for referring to the characteristic information of the data packet.
Feature indication frame is inserted into the first data information, generates the second data information by S3.First data to be transmitted are believed
After breath carries out package processing, then the feature indication frame of above-mentioned conversion is inserted into the data packet of first data information, generates the
The data packet of two data informations.
S4, by voice channel by above-mentioned second data information transfer to receiving end.It is appreciated that passing through voice channel
Before, the data packet of above-mentioned second data information is also carried out voice channel coded treatment by the present embodiment, to adapt to voice channel
Transmission.
Implement the present embodiment, the characteristic information of the first data information to be transmitted is obtained by transmitting terminal, then, according to upper
It states characteristic information and searches corresponding condition code, and features described above code is converted into feature indication frame, features described above is indicated
Frame is inserted into above-mentioned first data information, the second data information is generated, finally, passing above-mentioned second data information by voice channel
Transport to receiving end.In such a way that characteristic information and feature indication frame combine, meanwhile, data information is done using condition code
Mark, in order to the transmitting data information in voice channel, it will be understood that in voice pathway transmitting data information, communicated
Fixed allocation bandwidth, exclusive channel in journey, have real-time high, highly reliable, improve real-time, the stability of data transmission
With reliability.
Embodiment two
Fig. 2 is the flow chart for the data transmission method that the second preferred embodiment of the invention provides.In the base of above-described embodiment
On plinth, before the characteristic information for obtaining above-mentioned first data information by above-mentioned transmitting terminal further include:
S0 establishes transmitting terminal property data base, stores the attribute information of characteristic information.Characteristic is established in transmitting terminal
Library, this feature database carries out classification storage by the attribute type of characteristic information, for example, the characteristic information and audio of video file
The characteristic information classification storage of file, alternatively, this feature database can also classify according to the type of coding of characteristic information
Storage, for example, the attribute information of the attribute information of Video coding, audio coding and the attribute information of text code etc..
It is appreciated that data information to be transmitted can be it is any kind of, therefore, feature involved in the data information
The type of information be also it is numerous, establish database by being characterized information, convenient for the lookup and matching of characteristic information, meanwhile,
Characteristic information is also easy to update and manage.
Embodiment three
Fig. 3 is the flow chart for the data transmission method that third preferred embodiment of the present invention provides.In the base of above-described embodiment
On plinth, receiving end property data base is being established, after the attribute information for storing the characteristic information, is being looked into according to features described above information
It looks for before corresponding condition code further include:
S01 establishes the first index in transmitting terminal property data base, by the first index characteristic information and condition code it
Between establish the first corresponding relationship.As can be seen from the above embodiments, the type of characteristic information and many kinds of, corresponding condition code is also
Largely, meanwhile, data information to be passed may also include numerous types of data simultaneously.Therefore, in features described above database
The first index is established, the first corresponding relationship is established between features described above information and features described above code by the first index, when right
It can be preferably its match query to corresponding feature when data information to be transmitted carries out detection processing and analysis processing
On the other hand information by the first index, so that characteristic information and the corresponding relationship of condition code are definitely, improves inquiry
Matching efficiency, meanwhile, also reduce the system consumption in treatment process.
Example IV
Fig. 4 is the flow chart for the data transmission method that the 4th preferred embodiment of the invention provides.In the base of above-described embodiment
On plinth, the characteristic information of above-mentioned first data information is obtained by above-mentioned transmitting terminal further include:
S11 extracts the attribute information of the first data if characteristic information has not been obtained in the first data information.As above
Described in example, since data information to be transmitted is many kinds of, all data can not disposably be covered by sending client database
Therefore characteristic information in information will pre-process the data information for failing to get characteristic information, processing mode can be with
It is: firstly, data class or data type that the first data of analysis are included;Then, pass through networking inquiry or intelligence point
Analysis extracts the attribute information of the first data to data analysis operation is carried out under the data type or data class;Finally, working as
When extracting a variety of attribute informations, the attribute information of extraction is subjected to integration processing, merges into unified characteristic information.
S12 generates characteristic information according to attribute information, and transmitting terminal property data base is added in the characteristic information of generation.
Described in example as above, transmitting terminal property data base is added in the characteristic information for extracting and integrate generation, it will be understood that the step is pair
The data of transmitting terminal property data base update operation.
Implement the present embodiment, the characteristic being characterized in database provides comprehensive characteristic information and supports, meanwhile, have
Characteristic information independently updates, and expand characteristic information covers face, improves the execution efficiency and successfully of query characteristics information
Rate.
Embodiment five
Fig. 5 is the flow chart for the data transmission method that the 5th preferred embodiment of the invention provides.In the base of above-described embodiment
On plinth, according to the corresponding condition code of features described above information searching further include:
S13 is generated in transmitting terminal property data base if not finding corresponding condition code according to characteristic information
One condition code.Described in example as above, for new type or the data information of New raxa, it will generate new characteristic information accordingly
It is added to transmitting terminal property data base, therefore, for the characteristic information of transmitting terminal property data base is newly added, there are no right with it
The condition code answered, in this case, the characteristic information to be newly added distributes corresponding condition code to this step.
S14 establishes the corresponding relationship between characteristic information and condition code according to the first index.Described in example as above, distributing
Condition code and corresponding characteristic information between by it is above-mentioned first index establish corresponding relationship.
Implement the present embodiment and ensure that transmission client database by matching new condition code for the characteristic information being newly added
The real-time update of interior condition code, so that the index efficiency and index of the first index have higher success rate.
Embodiment six
Fig. 6 is the flow chart for the data transmission method that the 5th preferred embodiment of the invention provides.
The invention also provides a kind of data transmission methods, are applied to receiving end, and the above method includes:
S10 receives the second data information transmitted by transmitting terminal by voice channel by receiving end.
S20 obtains the feature indication frame of the second data information by receiving end.
Feature indication frame inverse conversion is characterized code by S30.
S40 searches corresponding characteristic information according to condition code.
The feature indication frame of second data information is rejected, and is reduced to the second data information according to characteristic information by S50
First data information.
It is appreciated that the present embodiment is reverse step on the basis of the above embodiment 1, that is, in connecing for data information
Receiving end executes the solution package of data information, feature indication frame is rejected, according to the process of characteristic information restoring data information.
Further, receiving end property data base is being established, after the attribute information for storing the characteristic information, by connecing
Receiving end receives before the second data information transmitted by transmitting terminal by voice channel further include:
Receiving end property data base is established, the attribute information of features described above information is stored.
Further, before searching corresponding characteristic information according to features described above code further include:
Establish the second index in above-mentioned receiving end property data base, by it is above-mentioned second index features described above information with
The second corresponding relationship is established between features described above code.
Further, corresponding characteristic information is searched according to features described above code further include: if according to features described above code
Corresponding characteristic information is not found, then generates a characteristic information in above-mentioned receiving end property data base, and according to upper
State the corresponding relationship that the second index is established between features described above code and features described above information.
The condition code of above-mentioned second data information is obtained by above-mentioned receiving end further include: if in above-mentioned second data information
Features described above code inside has not been obtained, then receives the condition code that above-mentioned transmitting terminal is sent, and above-mentioned connect is added in received condition code
Receiving end property data base.
It is appreciated that above-mentioned preferred embodiment is reverse step on the basis of the above embodiments, that is, in data information
Receiving end executes the solution package of data information, rejects feature indication frame, and transmitted data information is restored according to characteristic information
Process.
Implement above method embodiment, the characteristic information of the first data information to be transmitted is obtained by transmitting terminal, then,
Feature indication frame is converted to according to the corresponding condition code of features described above information searching, and by features described above code, by above-mentioned spy
Sign mark frame is inserted into above-mentioned first data information, generates the second data information, finally, by voice channel by above-mentioned second data
Information is transmitted to receiving end.In such a way that characteristic information and feature indication frame combine, meanwhile, data are done using condition code
The mark of information, in order to the transmitting data information in voice channel, it will be understood that in voice pathway transmitting data information,
Fixed allocation bandwidth in communication process, exclusive channel have real-time high, highly reliable, improve data transmission real-time,
Stability and dependability.
Those of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with
Relevant hardware is controlled by program to complete, the program can be stored in a computer readable storage medium,
The storage medium, such as ROM/RAM, disk, CD.
Embodiment seven
Fig. 7 is the structural block diagram for the data transmission device applied to transmitting terminal that present pre-ferred embodiments provide.
The invention also provides a kind of data transmission devices, are applied to transmitting terminal, and above-mentioned apparatus includes:
Fisrt feature data obtaining module 10, for obtaining the characteristic information of the first data information to be transmitted;
Fisrt feature message processing module 20 is used for according to the corresponding condition code of features described above information searching, and will
Features described above code is converted to feature indication frame;
First mark frame processing module 30 generates for features described above mark frame to be inserted into above-mentioned first data information
Two data informations;
First data information transfer module 40, for extremely being received above-mentioned second data information transfer by voice channel
End.
It should be noted that the technical characteristic in above method embodiment is corresponding applicable in the present apparatus, it is no longer heavy here
It states.
Embodiment eight
Fig. 8 is the structural block diagram for the data transmission device applied to receiving end that present pre-ferred embodiments provide.Upper
On the basis of stating embodiment, the invention also provides a kind of data transmission devices, are applied to receiving end, and above-mentioned apparatus includes:
Second data information transfer module 100 is believed by transmitting terminal by the second data that voice channel transmits for receiving
Breath;
Second mark frame processing module 200, for obtaining the feature indication frame of above-mentioned second data information, and by above-mentioned spy
Sign mark frame inverse conversion is characterized code;
Second feature code processing module 300, for searching corresponding characteristic information according to features described above code;
Second feature information recovery module 400, for the feature indication frame of above-mentioned second data information to be rejected, and according to
Above-mentioned second data information is reduced to the first data information by features described above information.
It should be noted that the technical characteristic in above method embodiment is corresponding applicable in the present apparatus, it is no longer heavy here
It states.
The embodiment for implementing above-mentioned apparatus, the characteristic information of the first data information to be transmitted is obtained by transmitting terminal, so
Afterwards, according to the corresponding condition code of features described above information searching, and features described above code is converted into feature indication frame, it will be above-mentioned
Feature indication frame is inserted into above-mentioned first data information, generates the second data information, finally, being counted by voice channel by above-mentioned second
It is believed that breath is transmitted to receiving end.In such a way that characteristic information and feature indication frame combine, meanwhile, number is done using condition code
It is believed that the mark of breath, in order to the transmitting data information in voice channel, it will be understood that believe in voice pathway transmitting data
It ceases, fixed allocation bandwidth, exclusive channel in communication process have real-time high, highly reliable, improve the real-time of data transmission
Property, Stability and dependability.
It should be noted that the technical characteristic in above method embodiment is corresponding applicable in the present apparatus, it is no longer heavy here
It states.
Preferred embodiments of the present invention have been described above with reference to the accompanying drawings, not thereby limiting the scope of the invention.This
Without departing from the scope and spirit of the invention, there are many variations to implement the present invention by field technical staff, for example as one
The feature of a embodiment can be used for another embodiment and obtain another embodiment.It is all to use institute within technical concept of the invention
Any modifications, equivalent replacements, and improvements of work, should all be within interest field of the invention.