CN104125208B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN104125208B
CN104125208B CN201310481937.0A CN201310481937A CN104125208B CN 104125208 B CN104125208 B CN 104125208B CN 201310481937 A CN201310481937 A CN 201310481937A CN 104125208 B CN104125208 B CN 104125208B
Authority
CN
China
Prior art keywords
data
receiving terminal
protocol
agreement
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310481937.0A
Other languages
Chinese (zh)
Other versions
CN104125208A (en
Inventor
冯锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310481937.0A priority Critical patent/CN104125208B/en
Publication of CN104125208A publication Critical patent/CN104125208A/en
Application granted granted Critical
Publication of CN104125208B publication Critical patent/CN104125208B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Application independent communication protocol aspects or techniques in packet data networks
    • H04L69/08Protocols for interworking or protocol conversion

Abstract

A kind of data transmission method, comprising: the first data that server receiving end/sending end sends, and comprises the information of the agreement that receiving terminal uses in the first data; According to the information of the agreement that receiving terminal uses, the first data are converted to the second data meeting the protocol format that receiving terminal uses; The second data after translation-protocol form are transferred to receiving terminal.In addition, the present invention also provides a kind of data transmission device.Above-mentioned data transmission method and device can reduce the cost of cross-platform data transmission.

Description

Data transmission method and device
Technical field
The present invention relates to computer communication technology field, particularly relate to a kind of data transmission method and device.
Background technology
Along with the development of Internet technology, the business service that network service operators provides for user is also more come also many, in order to better manage business service, network service operators usually by separately independently Platform Server provide different business service for user.But it is relatively independent between the Platform Server due to different service types, it is different that it realizes principle, especially communications protocol format is different, in existing data transmission technology, mutual for realizing cross-platform data, usual needs configure multiple protocol format at user terminal, when user terminal is to the business datum that different Platform Server requests is different, need to construct different protocol package according to different protocol formats.But such transmission means cost is higher, on the one hand for user terminal, need user terminal can understand multiple business protocol format, this will cause the high cost of the software development of user terminal; On the other hand for Platform Server, need Platform Server externally to provide the support of various protocols form, this will cause the high cost of the maintenance of Platform Server.
Summary of the invention
In view of this, the invention provides a kind of data transmission method and device, the cost of cross-platform data transmission can be reduced.
A kind of data transmission method, comprising: the first data that server receiving end/sending end sends, and comprises the information of the agreement that receiving terminal uses in described first data; According to the information of the agreement that described receiving terminal uses, described first data are converted to the second data meeting the protocol format that described receiving terminal uses; Described second data after translation-protocol form are transferred to described receiving terminal.
A kind of data transmission device, comprising: receiver module, for the first data that receiving end/sending end sends, comprises the information of the agreement that receiving terminal uses in described first data; Modular converter, described first data are converted to the second data meeting the protocol format that described receiving terminal uses by the information of the agreement that the described receiving terminal for receiving according to described receiver module uses; Transport module, for being transferred to described receiving terminal by described second data after described modular converter translation-protocol form.
The data transmission method that the embodiment of the present invention provides and device, as agency, the first data that transmitting terminal sends are converted to the second data meeting the protocol format that receiving terminal uses by server, then receiving terminal is sent to, make transmitting terminal only need to understand the receiving terminal that namely a kind of agreement may have access to different business platform, thus the cost of cross-platform data transmission can be reduced.
For above and other object of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and coordinate institute's accompanying drawings, be described in detail below.
Accompanying drawing explanation
The flow chart of the data transmission method that Fig. 1 provides for first embodiment of the invention.
The applied environment figure of the data transmission method that Fig. 2 provides for second embodiment of the invention.
The flow chart of the data transmission method that Fig. 3 provides for second embodiment of the invention.
One example of practical application figure of the data transmission method that Fig. 4 provides for second embodiment of the invention.
The structural representation of the data transmission device that Fig. 5 provides for third embodiment of the invention.
The structural representation of the data transmission device that Fig. 6 provides for fourth embodiment of the invention.
The structural representation of modular converter in the data transmission device that Fig. 7 provides for fourth embodiment of the invention.
Embodiment
For further setting forth the present invention for the technological means that realizes predetermined goal of the invention and take and effect, below in conjunction with accompanying drawing and preferred embodiment, to according to the specific embodiment of the present invention, structure, feature and effect thereof, be described in detail as follows.
The data transmission method that the embodiment of the present invention provides can be applicable to realize the process to the checking data of identifying code.
First embodiment
The flow chart of the data transmission method that Fig. 1 provides for first embodiment of the invention.As shown in Figure 1, the data transmission method of the present embodiment comprises the following steps:
Step S11, the first data that server receiving end/sending end sends, comprise the information of the agreement that receiving terminal uses in described first data.
In the present embodiment one embodiment, transmitting terminal can comprise: smart mobile phone, panel computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio frequency aspect 3), MP4(Moving Picture Experts GroupAudio Layer IV, dynamic image expert compression standard audio frequency aspect 4) player, pocket computer on knee etc.
Server is when transmitting terminal is to server apply for agency data transmission service, can and transmitting terminal arrange to carry out between oneself and transmitting terminal the agreement that transfer of data uses, and the business data transmission protocol list form of this agreement and receiving terminal used sends to transmitting terminal.Transmitting terminal can construct the package of the first data according to the protocol format of making an appointment with server, the Information encapsulation of the agreement that receiving terminal can also be used is in the package of the first data, the first data after encapsulation, in the stem of the package of the first data, are then sent to server by the Information encapsulation of the agreement that such as receiving terminal can be used.This agreement of making an appointment is preferably puppy parc, specifically can comprise: binary protocol, PB agreement (the Protocol Buffers agreement that Google Google formulates), TDR agreement (a kind of internal transmission agreement for entertainment interactive transfer of data that company of Tengxun formulates) etc.
Described first data, according to the information of the agreement that described receiving terminal uses, are converted to the second data meeting the protocol format that described receiving terminal uses by step S12.
Particularly, the package of the first data that server parses receives, extract the information of the content-data of the first data of load in this package and the agreement of receiving terminal use, the protocol format that the acquisition of information of the agreement then used according to this receiving terminal is corresponding, according to this protocol format, the content-data of the first data of load in the package of the first data extracted is converted to the second data meeting the protocol format that receiving terminal uses.
Described second data after translation-protocol form are transferred to described receiving terminal by step S13.
In the present embodiment one embodiment, receiving terminal can be Platform Server.Different Platform Servers uses respective business data transmission agreement (such as: binary protocol, PB agreement, TDR agreement etc.) and other terminal equipment to carry out exchanges data respectively.The second data of protocol format that receiving terminal uses that meet after conversion are transferred to receiving terminal by server, the data after resolving can be processed by parsing second data by receiving terminal, realize the transmission of cross-platform data between transmitting terminal and receiving terminal.
The data transmission method that the embodiment of the present invention provides, as agency, the first data that transmitting terminal sends are converted to the second data meeting the protocol format that receiving terminal uses by server, then receiving terminal is sent to, make transmitting terminal only need to understand the receiving terminal that namely a kind of agreement may have access to different business platform, thus the cost of cross-platform data transmission can be reduced.
Second embodiment
Refer to Fig. 2, be depicted as the applied environment figure of the data transmission method that second embodiment of the invention provides.As shown in Figure 2, Platform Server A, Platform Server B, Platform Server C, (agency by agreement) server 102, user terminal A, and user terminal B is arranged in wireless or cable network, wireless or cable network by this, user terminal A and user terminal B pass through server 102 as transmitting terminal 101, with the Platform Server A as receiving terminal 103, Platform Server B, and Platform Server C carries out exchanges data, Platform Server A, Platform Server B, and Platform Server C can be user terminal A by server 102 and user terminal B provides miscellaneous service service, such as: data storage service, microblogging is served, voice communication service, WEB-browsing services etc.
Understandable, exemplarily, the receiving terminal 103 in Fig. 2 only comprises Platform Server A, Platform Server B and Platform Server C, and transmitting terminal 101 only comprises user terminal A and user terminal B, but the specific embodiment of the present invention is not as limit.
The flow chart of the data transmission method that Fig. 3 provides for second embodiment of the invention.As shown in Figure 3, the data transmission method of the present embodiment comprises the following steps:
Step S201, the first data that server receiving end/sending end sends, comprise the information of the agreement that receiving terminal uses in described first data.
In the present embodiment one embodiment, the information of the agreement that receiving terminal uses can comprise: the mark of the agreement that receiving terminal uses.Particularly, the mark of this agreement can be protocol command word, also can be protocol type mark.
Transmitting terminal 101, when to server 102 apply for agency data transmission service, transmits with server 102 appointment data the agreement used, and from the business data transmission protocol list that form and the receiving terminal 103 of this agreement of server 102 acquisition agreement use.
As shown in table 1 below in this business data transmission protocol list, the mark of Platform Server A, Platform Server B as receiving terminal 103 and Platform Server C can be comprised, the mark (command word of the agreement used or the value of protocol type) of the agreement that Platform Server A, Platform Server B and Platform Server C are used separately, and the corresponding relation of the mark of the mark of this agreement and above-mentioned three Platform Servers.Wherein, the value of protocol type can be the numbering of protocol type, for identity protocol type.
Table 1
Receiving terminal identifies The mark (protocol command word or protocol type) of agreement
Platform A 1
Platform B 2
Platform C 3
Understandable, the Data Transport Protocol that the Data Transport Protocol of arranging between transmitting terminal 101 with server 102 and receiving terminal 103 use can be consistent, also can be inconsistent.
Transmitting terminal 101 can be corresponding according to business to be obtained the keyword of Platform Server, the list of query traffic data host-host protocol, obtain the corresponding command word of agreement or the value of protocol type, then the value of the command word obtained or protocol type is write in the specific fields of the stem of the package of the first data waiting for transmission.
Wherein, the content of the first data is configured according to preset configuration rule by transmitting terminal 101.Transmitting terminal 101, when applying for business to receiving terminal 103, obtains this configuration rule from receiving terminal 103.Understandable, also can comprise in the package of the first data: the type of service of receiving terminal 103 or the mark of receiving terminal 103.The type of service of this receiving terminal 103 or the mark of receiving terminal 103 obtain the address of receiving terminal 103 for making server 102 according to the mark of the type of service of this receiving terminal 103 or receiving terminal 103, then according to the address obtained, the first data after conversion are sent to receiving terminal 103.
Step S202, the mark of the agreement that described server uses from receiving terminal described in described first extracting data.
Particularly, server 102 resolves the package of the first data received, and extracts the value of command word in the content-data of the first data of load in this package and the specific fields of this package stem or protocol type.Understandable, server 102 also by resolving the package of the first data received, obtains the type of service of receiving terminal 103 or the mark of receiving terminal 103.
Step S203, the corresponding relation of the agreement that the mark of the agreement used by receiving terminal described in vlan query protocol VLAN database and described receiving terminal are used, obtains the agreement that described receiving terminal uses.
In the present embodiment one embodiment, protocol database is configured with in server 102, can store in protocol database: the mark comprising Platform Server A, Platform Server B as receiving terminal 103 and Platform Server C, address, the mark (command word of the agreement used or the value of protocol type) of the agreement used separately, corresponding agreement, corresponding protocol format or the store path of protocol format, and the corresponding relation of above-mentioned five.Understandable, protocol database is also configurable in other cloud server.The concrete form stored can be as shown in table 2 below:
Table 2
Particularly, server 102 passes through the value vlan query protocol VLAN database of command word or the protocol type extracted from the specific fields of the package stem of the first data, obtains corresponding agreement (being also the agreement that receiving terminal 103 uses).
Step S204, judges that whether the agreement that described first data use is consistent with the agreement that described receiving terminal uses.
Particularly, server 102 judges that whether the agreement that the first data agreement (being also server 102 and the agreement that transmitting terminal 101 is made an appointment) used and the receiving terminal 102 inquired use is consistent.
If consistent, then execution step S205: directly give described receiving terminal by described first data transmission.
If inconsistent, then perform step S206, obtain the protocol format that described receiving terminal uses, according to described protocol format, described first data are converted to the second data meeting the protocol format that described receiving terminal uses.
Particularly, if the agreement that the agreement that the first data use uses with the receiving terminal 102 inquired is inconsistent, then server 102 passes through the value vlan query protocol VLAN database of command word or the protocol type extracted from the package of the first data, obtain corresponding protocol format, then according to this protocol format, the content-data of the first data extracted in the package from the first data is converted to the second data meeting the protocol format that receiving terminal 103 uses.Understandable, server 102 is also by the value vlan query protocol VLAN database of command word or protocol type, obtain the store path of corresponding protocol format, then according to the store path obtained, from the local storage or high in the clouds memory of server 102, obtain corresponding protocol format.
Described second data after translation-protocol form are transferred to described receiving terminal by step S207.
In the present embodiment one embodiment, server 102 can according to the identified query protocol database of the receiving terminal 103 extracted in the package from the first data, obtain the address of receiving terminal 103, then according to the address inquired, the second data are transferred to receiving terminal 103.
In another embodiment of the present embodiment, server 102 also can according to the type of service vlan query protocol VLAN database of the receiving terminal 103 extracted in the package from the first data, obtain corresponding receiving terminal 103, when the receiving terminal 103 of correspondence is multiple (also the Platform Server of the business service of identical services type can be provided to have multiple), according to preset selective rule, select wherein most suitable one (such as: network environment is best) as destination, then using the address as receiving terminal 103, the address of this destination that filters out, second data are transferred to receiving terminal 103.
Step S208, described server receives the 3rd data that described receiving terminal returns according to described second data.
3rd data are the business datum that receiving terminal 103 returns in response to the second data that server 102 sends.The agreement that receiving terminal 103 is corresponding according to the type of service provided encapsulates the 3rd data, then the package of the 3rd data after encapsulation is sent to server 102.
Step S209, when the agreement that agreement and the described transmitting terminal of described 3rd data use use is inconsistent, described 3rd data are converted to the 4th data meeting the protocol format that described transmitting terminal uses, and described 4th data after translation-protocol form are transferred to described transmitting terminal.
Particularly, when the agreement that agreement and the transmitting terminal 101 of the 3rd data use use is inconsistent, or when to can be understood as the second data are the data through server 102 is converted, illustrate that transmitting terminal 101 cannot obtain the content-data of the 3rd data by the package of parsing the 3rd data, so server 102 obtains the content-data of the 3rd data by the package of parsing the 3rd data, then according to and transmitting terminal 101 protocol format of making an appointment, the content-data of the 3rd data obtained is converted to the 4th data meeting the protocol format that transmitting terminal 101 uses, and the 4th data after translation-protocol form are transferred to transmitting terminal 101.
Described 3rd data, when the agreement that described 3rd data use is consistent with the agreement that described transmitting terminal uses, are directly transferred to described transmitting terminal by step S210.
Particularly, when the agreement that the 3rd data use is consistent with the agreement that transmitting terminal 101 uses, or when the second data that can be understood as receiving terminal 103 reception are first data without server 102 is converted, illustrate that transmitting terminal 101 has the ability to parse the content-data of the 3rd data from the package of the 3rd data, so the 3rd data are directly transferred to transmitting terminal 101 by server 102.
For further illustrating the data transmission method that the present embodiment provides, for example, refer to Fig. 4, suppose that transmitting terminal is user terminal, receiving terminal comprises Platform Server A, Platform Server B and Platform Server C, and the agreement that wherein Platform Server A, Platform Server B and Platform Server C use is respectively: binary protocol, TDR agreement and PB agreement.Platform Server A, Platform Server B and Platform Server C can be user terminal respectively and provide the different business service of A, B, C tri-kinds.User terminal and protocol proxy server are made an appointment the puppy parc using binary protocol as transfer of data therebetween.
When user terminal asks A business to Platform Server A, user terminal sends with the protocol package comprising the first data of the command word of Platform Server A of binary protocol form structure to protocol proxy server; The agreement that protocol proxy server uses according to the command word vlan query protocol VLAN database determination Platform Server A comprised in the protocol package of the first data received is binary protocol, the agreement that the puppy parc of arranging due to user terminal and protocol proxy server and Platform Server A use is binary protocol, and the protocol package of the first data received directly is transmitted to Platform Server A by protocol proxy server; The protocol package of the A business datum constructed with binary protocol form, according to the protocol package of the first data received, is replied to protocol proxy server by Platform Server A; Then by protocol proxy server by the protocol package reply of this A business datum to user terminal.
When user terminal asks B business to Platform Server B, user terminal sends with the protocol package comprising the first data of the command word of Platform Server B of binary protocol form structure to protocol proxy server; The agreement that protocol proxy server uses according to the command word vlan query protocol VLAN database determination Platform Server B comprised in the protocol package of the first data received is TDR agreement, the agreement that the puppy parc of arranging due to user terminal and protocol proxy server and Platform Server B use is inconsistent, the protocol package of protocol proxy server to the first data received is resolved, obtain the content-data of the first data, then according to the content-data of the form of TDR agreement and the first data of acquisition, construct the protocol package of the second data, be then transmitted to Platform Server B; The protocol package of Platform Server B to the second data received is resolved, namely obtain and process the content-data content-data of the first data (also) of the second data in this protocol package, then the protocol package of result construct with TDR agreement (being also the related data of the B business of user terminal requests) being replied to protocol proxy server; The protocol package of the business datum of the TDR protocol format that Platform Server B replys by protocol proxy server is converted to the protocol package of binary protocol form, then reply to user terminal, from this protocol package, extract the related data of B business to enable user terminal and it is processed.
When user terminal asks C business to Platform Server C, user terminal sends with the protocol package comprising the first data of the command word of Platform Server C of binary protocol form structure to protocol proxy server; The agreement that protocol proxy server uses according to the command word vlan query protocol VLAN database determination Platform Server C comprised in the protocol package of the first data received is PB agreement, the agreement that the puppy parc of arranging due to user terminal and protocol proxy server and Platform Server C use is inconsistent, the protocol package of protocol proxy server to the first data received is resolved, obtain the content-data of the first data, then according to the content-data of the form of PB agreement and the first data of acquisition, construct the protocol package of the second data, be then transmitted to Platform Server C; The protocol package of Platform Server C to the second data received is resolved, namely obtain and process the content-data content-data of the first data (also) of the second data in this protocol package, then the protocol package of result construct with PB agreement (being also the related data of the C business of user terminal requests) being replied to protocol proxy server; The protocol package of the business datum of the PB protocol format that Platform Server C replys by protocol proxy server is converted to the protocol package of binary protocol form, then reply to user terminal, from this protocol package, extract the related data of C business to enable user terminal and it is processed.
Then receiving terminal is transmitted to owing to the service request of user terminal being converted to according to the type of service of Platform Server the data packet meeting respective protocol (such as: binary protocol is converted to TDR agreement, TDR protocol conversion is PB agreement etc.) by protocol proxy server, user terminal is made only to need to configure a kind of puppy parc of arranging with protocol proxy server, data interaction can be carried out from different Platform Servers, thus the program of user terminal side transfer of data can be simplified, reduce the cost of user terminal software development.
Understandable, implement in an embodiment in this, transmitting terminal and receiving terminal also can be Platform Server, when transmitting terminal and receiving terminal are respectively the Platform Server using different agreement, transmitting terminal and receiving terminal carry out the principle of data interaction by protocol proxy server and transmitting terminal is user terminal, principle when receiving terminal is Platform Server is identical, and embodiment please refer to above-mentioned explanation, repeats no more herein.
The data transmission method that the embodiment of the present invention provides, as agency, the first data that transmitting terminal sends are converted to the second data meeting the protocol format that receiving terminal uses by server, then receiving terminal is sent to, make different transmitting terminals only need to understand a kind of agreement and namely may have access to the receiving terminal using different agreement, thus the code complexity of user terminal software development and the workload of developer can be reduced, each receiving terminal can keep original protocol format constant simultaneously, protocol compatibility is transferred to server to ensure, thus the maintenance cost of receiving terminal can be reduced, and then reduce the holistic cost of cross-platform data transmission, improve the efficiency that cross-platform data is mutual.
3rd embodiment
The structural representation of the data transmission device that Fig. 5 provides for third embodiment of the invention.The data transmission device that the present embodiment provides can be used for the data transmission method realized in above-described embodiment.As shown in Figure 5, data transmission device 30 comprises: receiver module 31, modular converter 32 and transport module 33.
Wherein, the first data that receiver module 31 sends for receiving end/sending end, comprise the information of the agreement that receiving terminal uses in described first data.
Described first data are converted to the second data meeting the protocol format that described receiving terminal uses by the information of the agreement that modular converter 32 uses for the described receiving terminal received according to described receiver module 31.
Transport module 33 is for being transferred to described receiving terminal by described second data after described modular converter 32 translation-protocol form.
The present embodiment, to the detailed process of each Implement of Function Module of data transmission device 30 function separately, refers to the particular content of above-mentioned Fig. 1 to middle description embodiment illustrated in fig. 4, repeats no more herein.
The data transmission device that the embodiment of the present invention provides, the second data meeting the protocol format that receiving terminal uses are converted to by the first data sent by the transmitting terminal of reception, then receiving terminal is sent to, make transmitting terminal only need to understand the receiving terminal that namely a kind of agreement may have access to different business platform, thus the cost of cross-platform data transmission can be reduced.
4th embodiment
The structural representation of the data transmission device that Fig. 6 provides for fourth embodiment of the invention.The data transmission device that the present embodiment provides may be used for the data transmission method realized in above-described embodiment.As shown in Figure 6, data transmission device 40 comprises: receiver module 41, modular converter 42, transport module 43, judge module 44 and processing module 45.
Wherein, the first data that receiver module 41 sends for receiving end/sending end, comprise the information of the agreement that receiving terminal uses in described first data.
Described first data are converted to the second data meeting the protocol format that described receiving terminal uses by the information of the agreement that modular converter 42 uses for the described receiving terminal received according to described receiver module 41.As shown in Figure 7, described modular converter 42 comprises: extraction unit 421, query unit 422 and converting unit 423.The mark of the agreement that extraction unit 421 uses for receiving terminal described in described first extracting data that receives from described receiver module; The corresponding relation of the protocol format that query unit 422 uses for the mark and described receiving terminal passing through the agreement that receiving terminal uses described in vlan query protocol VLAN database, obtains the protocol format that described receiving terminal uses; Described first data, for according to described protocol format, are converted to the second data meeting the protocol format that described receiving terminal uses by converting unit 423.
Transport module 43 is for being transferred to described receiving terminal by described second data after described modular converter 42 translation-protocol form.
Whether judge module 44 is consistent with the agreement that described receiving terminal uses for judging the agreement of described first data use.
If processing module 45 is inconsistent for the judged result of described judge module 44, then call the information that described modular converter performs the described agreement used according to described receiving terminal, described first data are converted to the step of the second data meeting the protocol format that described receiving terminal uses, if the judged result of described judge module 44 is consistent, then directly give described receiving terminal by described first data transmission.
Preferably, the information of the agreement of described receiving terminal use comprises: the mark of the agreement that described receiving terminal uses.
Preferably, described receiver module 41 is also for receiving the 3rd data that described receiving terminal returns according to described second data.
Preferably, described three data of described modular converter 42 also for being received by described receiver module 41 are converted to the 4th data meeting the protocol format that described transmitting terminal uses.
Preferably, described transport module 43 is also for being transferred to described transmitting terminal by described 4th data after described modular converter 42 translation-protocol form.
The present embodiment, to the detailed process of each Implement of Function Module of data transmission device 40 function separately, refers to the particular content of above-mentioned Fig. 1 to middle description embodiment illustrated in fig. 4, repeats no more herein.
The data transmission device that the embodiment of the present invention provides, the second data meeting the protocol format that receiving terminal uses are converted to by the first data sent by transmitting terminal, then receiving terminal is sent to, make different transmitting terminals only need to understand a kind of agreement and namely may have access to the receiving terminal using different agreement, thus the code complexity of user terminal software development and the workload of developer can be reduced, each receiving terminal can keep original protocol format constant simultaneously, protocol compatibility is transferred to server to ensure, thus the maintenance cost of receiving terminal can be reduced, and then reduce the holistic cost of cross-platform data transmission, improve the efficiency that cross-platform data is mutual.
It should be noted that, each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising described key element and also there is other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The above, it is only preferred embodiment of the present invention, not any pro forma restriction is done to the present invention, although the present invention discloses as above with preferred embodiment, but and be not used to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, make a little change when the technology contents of above-mentioned announcement can be utilized or be modified to the Equivalent embodiments of equivalent variations, in every case be do not depart from technical solution of the present invention content, according to any simple modification that technical spirit of the present invention is done above embodiment, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.

Claims (8)

1. a data transmission method, is characterized in that, comprising:
The first data that server receiving end/sending end sends, comprise the mark of agreement and the type of service of receiving terminal of receiving terminal use in described first data, the mark of the agreement that described receiving terminal uses comprises protocol command word or protocol type;
According to the mark of the agreement that described receiving terminal uses, described first data are converted to the second data meeting the protocol format that described receiving terminal uses;
According to described type of service, obtain corresponding receiving terminal, and according to preset selective rule, from the receiving terminal of described correspondence, determine the destination meeting described selective rule most;
According to the address of described destination, described second data after translation-protocol form are transferred to described receiving terminal.
2. method according to claim 1, is characterized in that, according to the information of the agreement that described receiving terminal uses, the step described first data being converted to the second data meeting the protocol format that described receiving terminal uses comprises:
The mark of the agreement that described server uses from receiving terminal described in described first extracting data;
The corresponding relation of the protocol format that the mark of the agreement used by receiving terminal described in vlan query protocol VLAN database and described receiving terminal are used, obtains the protocol format that described receiving terminal uses;
According to described protocol format, described first data are converted to the second data meeting the protocol format that described receiving terminal uses.
3. method according to claim 1, is characterized in that, the first data that described server receiving end/sending end sends, and after comprising the step of the information of the agreement that receiving terminal uses, also comprises in described first data:
Judge that whether the agreement that described first data use is consistent with the agreement that described receiving terminal uses;
If inconsistent, then perform the information of the described agreement used according to described receiving terminal, described first data are converted to the step of the second data meeting the protocol format that described receiving terminal uses;
Described receiving terminal is given by described first data transmission if unanimously, then direct.
4. method according to claim 1, is characterized in that, described method also comprises:
Described server receives the 3rd data that described receiving terminal returns according to described second data;
Described 3rd data are converted to the 4th data meeting the protocol format that described transmitting terminal uses;
Described 4th data after translation-protocol form are transferred to described transmitting terminal.
5. a data transmission device, is characterized in that, comprising:
Receiver module, for the first data that receiving end/sending end sends, comprise the mark of agreement and the type of service of receiving terminal of receiving terminal use in described first data, the mark of the agreement that described receiving terminal uses comprises protocol command word or protocol type;
Modular converter, described first data are converted to the second data meeting the protocol format that described receiving terminal uses by the mark of the agreement that the described receiving terminal for receiving according to described receiver module uses;
Transport module, for according to described type of service, obtain corresponding receiving terminal, and according to preset selective rule, the destination meeting described selective rule is most determined from the receiving terminal of described correspondence, according to the address of described destination, described second data after described modular converter translation-protocol form are transferred to described receiving terminal.
6. device according to claim 5, is characterized in that, described modular converter comprises:
Extraction unit, for the mark of the agreement that receiving terminal described in described first extracting data that receives from described receiver module uses;
Query unit, the corresponding relation of the protocol format that mark and described receiving terminal for the agreement by the use of receiving terminal described in vlan query protocol VLAN database use, obtains the protocol format that described receiving terminal uses;
Described first data, for according to described protocol format, are converted to the second data meeting the protocol format that described receiving terminal uses by converting unit.
7. device according to claim 5, is characterized in that, described device also comprises:
Judge module, whether consistent with the agreement that described receiving terminal uses for judging the agreement that described first data use;
Processing module, if the judged result for described judge module is inconsistent, then call the information that described modular converter performs the described agreement used according to described receiving terminal, described first data are converted to the step of the second data meeting the protocol format that described receiving terminal uses, if the judged result of described judge module is consistent, then directly give described receiving terminal by described first data transmission.
8. device according to claim 5, is characterized in that,
Described receiver module, also for receiving the 3rd data that described receiving terminal returns according to described second data;
Described modular converter, described 3rd data also for being received by described receiver module are converted to the 4th data meeting the protocol format that described transmitting terminal uses;
Described transport module, also for described 4th data after described modular converter translation-protocol form are transferred to described transmitting terminal.
CN201310481937.0A 2013-10-15 2013-10-15 Data transmission method and device Active CN104125208B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310481937.0A CN104125208B (en) 2013-10-15 2013-10-15 Data transmission method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310481937.0A CN104125208B (en) 2013-10-15 2013-10-15 Data transmission method and device
PCT/CN2014/078523 WO2015055010A1 (en) 2013-10-15 2014-05-27 Data transmission method, device and storage medium

Publications (2)

Publication Number Publication Date
CN104125208A CN104125208A (en) 2014-10-29
CN104125208B true CN104125208B (en) 2015-08-12

Family

ID=51770474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310481937.0A Active CN104125208B (en) 2013-10-15 2013-10-15 Data transmission method and device

Country Status (2)

Country Link
CN (1) CN104125208B (en)
WO (1) WO2015055010A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868364A (en) * 2016-03-29 2016-08-17 中国电子科技集团公司第二十八研究所 Structuralized data representation method based on byte stream

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105407084B (en) * 2015-10-26 2018-09-25 浪潮软件股份有限公司 A kind of network transmission device, method and system
CN105978860B (en) * 2016-04-26 2019-09-10 国网山东省电力公司经济技术研究院 A kind of implementation method of electric system software interface adapter
CN107819543A (en) * 2016-09-12 2018-03-20 北京百度网讯科技有限公司 Data transmission method and device
CN108076110B (en) * 2016-11-14 2021-02-26 北京京东尚科信息技术有限公司 Electronic data exchange system and apparatus comprising an electronic data exchange system
TWI646805B (en) * 2016-11-23 2019-01-01 財團法人資訊工業策進會 Network communication protocol translation system and method
CN106993039A (en) * 2017-03-31 2017-07-28 深圳市金溢科技股份有限公司 Communication means, information management subsystem, cloud platform and managing system of car parking
CN107145535A (en) * 2017-04-19 2017-09-08 畅捷通信息技术股份有限公司 Instant communicating method and device and server
CN109428851A (en) * 2017-07-06 2019-03-05 高德信息技术有限公司 A kind of data transfer components and method
CN108833191B (en) * 2018-08-03 2021-03-02 云丁智能科技(北京)有限公司 Gateway equipment configuration method and device
CN109462455A (en) * 2018-10-25 2019-03-12 广东电网有限责任公司 A kind of mutual forwarding method of inter-network short data, device, equipment and readable storage medium storing program for executing
CN109547474A (en) * 2018-12-21 2019-03-29 深圳市创梦天地科技有限公司 A kind of data transmission method and device
CN109815214A (en) * 2018-12-29 2019-05-28 深圳云天励飞技术有限公司 Data bank access method, system, device and storage medium
CN109874055A (en) * 2019-03-12 2019-06-11 深圳市天威视讯股份有限公司 A kind of collecting method and system suitable for Intelligent set top box
CN110351283A (en) * 2019-07-16 2019-10-18 腾讯科技(深圳)有限公司 A kind of data transmission method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409672A (en) * 2007-10-10 2009-04-15 Nec爱克赛斯科技株式会社 Data distribution apparatus, data distribution method, and distribution control program
CN102377636A (en) * 2010-08-06 2012-03-14 北京乾唐视联网络科技有限公司 Service communication method of access network device and system thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136877A (en) * 2007-09-28 2008-03-05 腾讯科技(深圳)有限公司 Method and system of instant communication
CN101448335B (en) * 2008-12-23 2011-07-20 腾讯科技(深圳)有限公司 Mobile terminal based networking games realization method and game server
CN102148863A (en) * 2011-01-27 2011-08-10 华为技术有限公司 Method and device for delivering M2M (machine to machine) service messages
CN102244765A (en) * 2011-07-05 2011-11-16 华平信息技术股份有限公司 Multi-protocol-supported conference terminal interaction system and method
CN102546827B (en) * 2012-02-24 2015-12-02 深圳市长宇电器有限公司 Receive and dispatch method and the device of multiple protocol data of vehicle-mounting terminals on the server
CN103024059B (en) * 2012-12-19 2015-08-26 北京时代凌宇科技有限公司 A kind of middleware system for Internet of things

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409672A (en) * 2007-10-10 2009-04-15 Nec爱克赛斯科技株式会社 Data distribution apparatus, data distribution method, and distribution control program
CN102377636A (en) * 2010-08-06 2012-03-14 北京乾唐视联网络科技有限公司 Service communication method of access network device and system thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868364A (en) * 2016-03-29 2016-08-17 中国电子科技集团公司第二十八研究所 Structuralized data representation method based on byte stream

Also Published As

Publication number Publication date
CN104125208A (en) 2014-10-29
WO2015055010A1 (en) 2015-04-23

Similar Documents

Publication Publication Date Title
US10848526B2 (en) Device triggering
CN102246489B (en) Systems and methods for connection management for asynchronous messaging over http
KR101880521B1 (en) Matching users in a location-based service
CN103581299B (en) Service scheduling method, apparatus and system
CN105138592A (en) Distributed framework-based log data storing and retrieving method
CN103200212B (en) A kind of method and system realizing distributed conversation under cloud computing environment
CN104734946A (en) Multi-tenant high-concurrency instant messaging cloud platform
CN103210386B (en) Method, system and the equipment of conglomeration search
CN101969468B (en) Inquiry server cluster system and inquiry method
Namiot et al. On software standards for smart cities: API or DPI
CN103281409B (en) Based on mobile Internet domain name analytic method and the dns server of Transmission Control Protocol
CN104038401A (en) Interoperability for distributed overlay virtual environments
CN103888456A (en) Webpage client side, server side and data processing device and method
CN101616132B (en) Method for acquiring data, device and system thereof
CN103392321A (en) Systems and methods for policy based integration to horizontally deployed wan optimization appliances
CN101656765A (en) Address mapping system and data transmission method of identifier/locator separation network
MXPA04008848A (en) Metaspace: communication middleware for partially connected mobile ad hoc networks.
EP2778968B1 (en) Mobile telecommunication device remote access to cloud-based or virtualized database systems
CN104798082A (en) Method and apparatus for providing privacy policy for data stream
CN103188260A (en) Method of implementing content-centric network (CCN) using internet protocol (IP)-based network in gateway, and gateway
CN101449272A (en) System and method for searching disparate datastores via a remote device
CN101178717A (en) Method for adaptation processing web page and web page adaptation device
CN105684376A (en) Location services on a data exchange layer
CN101729491B (en) Method, device and system for enhancing application reliability of script-based business
CN103581213B (en) A kind of application process of shared Hosts files, equipment and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant