CN105610919A - Data transmission method, device and system - Google Patents

Data transmission method, device and system Download PDF

Info

Publication number
CN105610919A
CN105610919A CN201510977155.5A CN201510977155A CN105610919A CN 105610919 A CN105610919 A CN 105610919A CN 201510977155 A CN201510977155 A CN 201510977155A CN 105610919 A CN105610919 A CN 105610919A
Authority
CN
China
Prior art keywords
communication connection
time
terminal
data transmission
connection duration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510977155.5A
Other languages
Chinese (zh)
Other versions
CN105610919B (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.)
Shenzhen TCL New Technology Co Ltd
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201510977155.5A priority Critical patent/CN105610919B/en
Publication of CN105610919A publication Critical patent/CN105610919A/en
Priority to PCT/CN2016/084610 priority patent/WO2017107389A1/en
Application granted granted Critical
Publication of CN105610919B publication Critical patent/CN105610919B/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
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/62Establishing a time schedule for servicing the requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a data transmission method. When a terminal establishes a communication connection with a server, the terminal receives the communication connection duration feed back by the server; when detecting a data transmission command, the terminal acquires current time and initial time when the communication connection is successfully established, and computes the time interval between the current time and the initial time when the communication connection is successfully established; whether the time interval is less than or equal to the communication connection duration is judged; if the time interval is less than or equal to the communication connection duration, the terminal transmits data to the server. The invention also discloses a data transmission device and a data transmission system. According to the data transmission method, the waste of network resources is reduced.

Description

Data transmission method, Apparatus and system
Technical field
The present invention relates to communication technical field, relate in particular to a kind of data transmission method, Apparatus and system.
Background technology
When present server and terminal are carried out transfer of data, be by terminal send communication connection request asSocket is to server, and in the time that server receives, sets up both sides' communication connection relation, setting up communication linkAfter connecing, terminal could successfully be sent to server by data, and in prior art, terminal sends number each timeAsk to server according to all sending communication connection, and just transfer data to after the relation of establishing a communications linkIn server, and all will send communication connection request can increase the weight of the burden of server at every turn, and easily makesBecome the waste of Internet resources.
Summary of the invention
Main purpose of the present invention is to propose a kind of data transmission method, Apparatus and system, is intended to solveTraditional data transfer mode, easily causes the technical problem of the waste of Internet resources.
For achieving the above object, a kind of data transmission method provided by the invention, described data transmission methodComprise the following steps:
Terminal, in the time establishing a communications link with server, receives the communication connection duration of described server feedback;
Described terminal, in the time the transfer instruction of data being detected, is obtained current time and communicates to connect successfullyInitial time, and calculate between described current time and the successful initial time of described communication connection timeBetween interval;
Judge whether the described time interval is less than or equal to described communication connection duration;
If the described time interval is less than or equal to described communication connection duration, described terminal transmission data extremelyDescribed server.
Preferably, describedly judge whether the described time interval is less than or equal to the step of described communication connection durationAfter rapid, described data transmission method also comprises:
If described interval greater than described communication connection duration, described terminal again with described serverEstablish a communications link.
In addition, for achieving the above object, the present invention also proposes a kind of data transmission device, and described data passConveying device comprises:
Receiver module, in the time establishing a communications link with server, receives the logical of described server feedbackLetter connects duration;
Processing module, in the time the transfer instruction of data being detected, obtains current time and communication linkConnect successful initial time, and calculate described current time and the successful initial time of described communication connection itBetween the time interval;
Judge module, for judging whether the described time interval is less than or equal to described communication connection duration;
Transport module, if be less than or equal to described communication connection duration for the described time interval, transmissionData are to described server.
Preferably, described data transmission device also comprises:
Set up module, if for described interval greater than described communication connection duration, again with describedServer establishes a communications link.
In addition, for achieving the above object, the present invention also proposes a kind of data transmission system, and described data passCommunication system comprises terminal and server, and described terminal comprises data transmission device as described above, described inServer comprises:
Extraction module, in the time receiving the communication connection request of terminal transmission, extracts default communicationConnect duration;
Feedback module, for feeding back to described terminal by the described communication connection duration extracting.
Preferably, in the time that described terminal is a terminal, described extraction module comprises:
Updating block, in the time receiving the communication connection request of terminal transmission, upgrades and described terminalCommunication connection number of times;
The first extraction unit, within a preset time interval, sends communication link if receive described terminalThe number of times that connects request reaches preset times, extracts default communication connection duration;
Processing unit, for the described communication connection duration extracting is increased to the first Preset Time section, and willCommunication connection duration after increase is as the current communication connection duration of described terminal.
Preferably, in the time that described terminal comprises multiple terminal, described extraction module also comprises:
Increase unit, in the time receiving the communication connection request of multiple terminals transmissions, and at multiple endsWhen the number of end reaches default number, default described communication connection duration is increased to the second Preset Time sectionTo upgrade described communication connection duration;
The second extraction unit, for extracting the communication connection duration after renewal.
Preferably, described feedback module comprises:
Encapsulation unit, for being packaged into default packet by the described communication connection duration extracting;
The first feedback unit, for feeding back to described terminal by the packet of encapsulation, for described terminal pairDescribed packet carries out decompress(ion) to obtain described communication connection duration.
Preferably, described feedback module also comprises:
Adding device, for adding the described communication connection duration extracting to default configuration file;
The second feedback unit, described in feeding back to the configuration file that has added described communication connection durationTerminal.
Data transmission method, Apparatus and system that the present invention proposes, terminal is being set up communication link with serverWhile connecing, first receive the communication connection duration of described server feedback, then refer in the transmission that data detectedWhile order, obtain current time and communicate to connect successful initial time, and calculate described current time withThe time interval between the successful initial time of described communication connection, and judge that whether little the described time interval isIn or equal described communication connection duration, if the described time interval be less than or equal to described communication connection duration,Extremely described server of described terminal transmission data, instead of in data transmission procedure, send each timeData all will first send communication connection and ask to server, and just transmit number after the relation of establishing a communications linkAccording to server, the present invention in the time the transfer instruction of data being detected, first judge current time with described inCommunicate to connect time interval between successful initial time while whether being less than or equal to described communication connectionLong, if so, directly transfer data to described server, and do not need to re-establish communication connection relation,Thereby reduce the waste of Internet resources.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of data transmission method the first embodiment of the present invention;
Fig. 2 is the schematic flow sheet of data transmission method the second embodiment of the present invention;
Fig. 3 is the high-level schematic functional block diagram of data transmission device the first embodiment of the present invention;
Fig. 4 is the high-level schematic functional block diagram of data transmission device the second embodiment of the present invention;
Fig. 5 is the high-level schematic functional block diagram of data transmission system preferred embodiment of the present invention;
Fig. 6 is the high-level schematic functional block diagram of extraction module the first embodiment in Fig. 5;
Fig. 7 is the high-level schematic functional block diagram of extraction module the second embodiment in Fig. 5;
Fig. 8 is the high-level schematic functional block diagram of feedback module the first embodiment in Fig. 5;
Fig. 9 is the high-level schematic functional block diagram of feedback module the second embodiment in Fig. 5.
Realization, functional characteristics and the advantage of the object of the invention, in connection with embodiment, are done further with reference to accompanying drawingExplanation.
Detailed description of the invention
Should be appreciated that specific embodiment described herein is only in order to explain the present invention, and be not used in limitDetermine the present invention.
The invention provides a kind of data transmission method.
With reference to Fig. 1, Fig. 1 is the schematic flow sheet of data transmission method the first embodiment of the present invention.
The present embodiment proposes a kind of data transmission method, and described data transmission method comprises:
Step S10, terminal, in the time establishing a communications link with server, receives the communication of described server feedbackConnect duration;
In the present embodiment, terminal first sends communication connection request to server, described communication connection requestFor TCP (TransmissionControlProtocol, transmission control protocol) connection request, namely socketNetwork connecting request, server receives after described communication connection request, and foundation is communicated by letter with described terminalAnnexation, and obtain default communication connection duration, described communication connection duration is fed back to described endEnd. Described communication connection duration is the time interval that server and described terminal keep communication connection relation.Be understandable that, described server is receiving described communication connection request foundation and described terminalWhen communication connection is related to, described communication connection duration can be fed back to described terminal, and described terminal connectsReceive the communication connection duration of described server feedback.
Step S20, described terminal, in the time the transfer instruction of data being detected, is obtained current time and communicationThe initial time of successful connection, and calculate described current time and the successful initial time of described communication connectionBetween the time interval;
In the present embodiment, the triggering mode of described data transfer instruction is: user is using terminal and clothesBusiness device is while communicating, by the default physical button of touch terminal, virtual key or control with trigger numberAccording to transfer instruction, in the time the transfer instruction of data being detected, described terminal is obtained current time and described logicalLetter successful connection initial time between the time interval, be understandable that, described current time beDetect that the transfer instruction of data obtains, and the successful initial time of described communication connection be terminal withServer successfully establishes a communications link and obtains while relation, and in the time getting described initial time, stores instituteState initial time, then, in the time the transfer instruction of data being detected, obtain current time, then according to obtainingThe described current time of getting and the described initial time of storage, calculate described current time and storageThe time interval between described initial time, and obtain the described time interval.
Step S30, judges whether the described time interval is less than or equal to described communication connection duration;
In the present embodiment, getting the described time interval, by the described time interval and described communication linkConnect duration and compare, to judge whether the described time interval is less than or equal to described communication connection duration.
Step S40, if the described time interval is less than or equal to described communication connection duration, described terminal passesTransmission of data is to described server.
In the present embodiment, if the described time interval is less than or equal to described communication connection duration, institute is describedState the current communication connection relation that also keeps of terminal and described server, now, described terminal can be transmitted numberAccording to described server, therefore, described terminal sends data in described server.
The data transmission method that the present embodiment proposes, terminal, in the time establishing a communications link with server, first connectsThe communication connection duration of receiving described server feedback, then, in the time the transfer instruction of data being detected, obtainsCurrent time and communicate to connect successful initial time, and calculate described current time and described communication linkConnect the time interval between successful initial time, and judge whether the described time interval is less than or equal to instituteState communication connection duration, if the described time interval is less than or equal to described communication connection duration, described endEnd transfers data to described server, instead of in data transmission procedure, sends each time data and all wantFirst send communication connection and ask to server, and just transfer data to service after the relation of establishing a communications linkIn device, the present invention, in the time the transfer instruction of data being detected, first judges current time and described communication connectionSuccessfully whether the time interval between initial time is less than or equal to described communication connection duration, if so,Directly transfer data to described server, and do not need to re-establish communication connection relation, thereby reducedThe waste of Internet resources.
Further, in order to improve the intelligent of transfer of data, based on the first embodiment, number of the present invention is proposedReportedly the second embodiment of transmission method, in the present embodiment, with reference to Fig. 2, after described step S30, instituteStating data transmission method also comprises:
Step 50, if described interval greater than described communication connection duration, described terminal again with instituteStating server establishes a communications link.
In the present embodiment, during interval greater than described communication connection duration, described clothes are described describedThe communication connection relation of business device and described terminal has disconnected, even if now described terminal transfers data toDescribed server, is also bust this, and therefore, described terminal is definite described interval greater than instituteWhile stating communication connection duration, again establish a communications link with described server, described terminal resendsCommunication connection request is to described server, to re-establish and the communication connection relation of described server, andCommunication connection relation transmission data based on setting up.
In the present embodiment, by judging the magnitude relationship of the described time interval and described communication connection duration,To determine whether re-establishing correspondence, if described interval greater than described communication connection duration,The communication connection request of resending to described server with the relation of establishing a communications link, and according to again buildingVertical communication connection relation transmission data, thus the intelligent of transfer of data improved.
Further, for improving the intelligent of transfer of data, if described interval greater than described communication linkConnect duration, when described terminal establishes a communications link with described server again, carry out following steps:Described terminal is upgraded communication connection number of times; The communication connection number of times upgrading within a preset time interval reaches pre-If when number of times, described terminal sends increases the request of communication connection duration to described server, for describedServer increases the current communication connection duration of described terminal.
Further, in order to improve the flexibility of transfer of data, if described interval greater than described communicationConnect duration, described terminal output information, triggers communication connection request for user; And in inspectionWhile measuring the communication connection request of user's triggering, described terminal resends communication connection request to described clothesBusiness device.
In the present embodiment, if described interval greater than described communication connection duration, described terminal is defeatedGo out information, trigger communication connection request for user, that is to say described interval greater than instituteState communication connection duration, described terminal can know that current and server has disconnected communication connection, instituteState terminal output information to user, allow user select whether again to trigger communication connection request, ifWhen the communication connection request that user triggers detected, described terminal resend communication connection request to described inServer. And user may see after described information, and learn that current network is comparatively busy,Cannot connection server time, may no longer trigger communication connection request, reduce the load of network.
In the present embodiment, by output information, trigger communication connection request for user, makeUser, in data transmission procedure, can understand current data transmission state in real time, has improved user's experience.
The present invention further provides a kind of data transmission device.
With reference to Fig. 3, Fig. 3 is the high-level schematic functional block diagram of data transmission device the first embodiment of the present invention.
It is emphasized that to one skilled in the art, shown in Fig. 3, functional block diagram is onlyThe exemplary plot of a preferred embodiment, those skilled in the art is around the data transmission device shown in Fig. 3Functional module, can carry out easily new functional module supplement; The title of each functional module is self-definedTitle, only, for auxiliary each program function piece of understanding this data transmission device, is not used in and limits thisBright technical scheme, the core of technical solution of the present invention is that the functional module of define name will reach separatelyThe function becoming.
The present embodiment proposes a kind of data transmission device, and described data transmission device comprises:
Receiver module 10, in the time establishing a communications link with server, receives described server feedbackCommunication connection duration;
In the present embodiment, first send communication connection request to server, described communication connection request is TCP(TransmissionControlProtocol, transmission control protocol) connection request, namely socket netNetwork connection request, server receives after described communication connection request, sets up the communication link with described terminalConnect relation, and obtain default communication connection duration, described communication connection duration is fed back to described terminal.Described communication connection duration is the time interval that server and described terminal keep communication connection relation. CanUnderstand, described server is receiving communicating by letter of described communication connection request foundation and described terminalWhen annexation, described communication connection duration can be fed back to described terminal, and described receiver module 10Receive the communication connection duration of described server feedback.
Processing module 20, in the time the transfer instruction of data being detected, obtains current time and communicationThe initial time of successful connection, and calculate described current time and the successful initial time of described communication connectionBetween the time interval;
In the present embodiment, the triggering mode of described data transfer instruction is: user is using terminal and clothesBusiness device is while communicating, by the default physical button of touch terminal, virtual key or control with trigger numberAccording to transfer instruction, in the time the transfer instruction of data being detected, described processing module 20 obtain current time withIn the time interval between the successful initial time of described communication connection, be understandable that, described when currentBe to obtain at the transfer instruction that data detected quarter, and the successful initial time of described communication connection beSuccessfully establish a communications link and be related to that time obtains with server, described processing module 20 get described at the beginning ofBegin to store when the moment described initial time, then in the time the transfer instruction of data being detected, obtain when currentCarve, then, according to the described current time obtaining and the described initial time of storage, calculate described currentThe time interval between the described initial time of moment and storage, and obtain the described time interval.
Judge module 30, for judging whether the described time interval is less than or equal to described communication connection duration;
In the present embodiment, get the described time interval in described processing module 20, described judge module30 compare the described time interval and described communication connection duration, whether to judge the described time intervalBe less than or equal to described communication connection duration.
Transport module 40, if be less than or equal to described communication connection duration for the described time interval, passesTransmission of data is to described server.
In the present embodiment, if the described time interval is less than or equal to described communication connection duration, institute is describedState the current communication connection relation that also keeps of terminal and described server, now, described in can transferring data toIn server, therefore, described transport module 40 sends data in described server.
The data transmission device that the present embodiment proposes, terminal, in the time establishing a communications link with server, first connectsThe communication connection duration of receiving described server feedback, then, in the time the transfer instruction of data being detected, obtainsCurrent time and communicate to connect successful initial time, and calculate described current time and described communication linkConnect the time interval between successful initial time, and judge whether the described time interval is less than or equal to instituteState communication connection duration, if the described time interval is less than or equal to described communication connection duration, described endEnd transfers data to described server, instead of in data transmission procedure, sends each time data and all wantFirst send communication connection and ask to server, and just transfer data to service after the relation of establishing a communications linkIn device, the present invention, in the time the transfer instruction of data being detected, first judges current time and described communication connectionSuccessfully whether the time interval between initial time is less than or equal to described communication connection duration, if so,Directly transfer data to described server, and do not need to re-establish communication connection relation, thereby reducedThe waste of Internet resources.
Further, in order to improve the intelligent of transfer of data, based on the first embodiment, number of the present invention is proposedReportedly the second embodiment of conveying device, in the present embodiment, with reference to Fig. 4, described data transmission device also wrapsDraw together:
Set up module 50, if for described interval greater than described communication connection duration, again with instituteStating server establishes a communications link.
In the present embodiment, during interval greater than described communication connection duration, described clothes are described describedThe communication connection relation of business device and described terminal has disconnected, even now described transport module 40 transmissionData to described server, are also bust this, therefore, determine when described at described judge module 30Between interval while being greater than described communication connection duration, the described module 50 of setting up is set up logical with described server againLetter connects, and resends communication connection request to described server, to re-establish and described serverCommunication connection relation, the communication connection relation transmission data of described transport module 40 based on setting up.
In the present embodiment, by judging the magnitude relationship of the described time interval and described communication connection duration,To determine whether re-establishing correspondence, if described interval greater than described communication connection duration,The communication connection request of resending to described server with the relation of establishing a communications link, and according to again buildingVertical communication connection relation transmission data, thus the intelligent of transfer of data improved.
Further, for improving the intelligent of transfer of data, described data transmission device comprises more new moduleAnd sending module, described more new module is for again setting up logical with described server in the described module 50 of setting upWhen letter connects, upgrade communication connection number of times; The communication connection number of times upgrading within a preset time intervalWhile reaching preset times, described sending module sends increases the request of communication connection duration to described server,Increase the current communication connection duration of described terminal for described server.
Further, in order to improve the flexibility of transfer of data, described data transmission device comprises that output is singleUnit and transmitting element, described interval greater than described communication connection duration if described output unit is used for,Export information, trigger communication connection request for user; Described transmitting element is detecting userTrigger communication connection request time, the communication connection request of resending is to described server.
In the present embodiment, in order to improve the flexibility of transfer of data, if described interval greater than describedCommunication connection duration, described output unit output information, triggers communication connection request for user,That is to say described interval greater than described communication connection duration, described terminal can be known current and clothesBusiness device has disconnected communication connection, and described output unit output information, to user, allows user selectSelect the communication connection request that whether again triggers, if in the time the communication connection request that user triggers being detected, instituteState transmitting element and resend communication connection request to described server. And user may carry described in seeingShow after information, and learn that current network is comparatively busy, cannot connection server device time, may be no longerTrigger communication connection request, reduced the load of network.
In the present embodiment, by output information, trigger communication connection request for user, makeUser, in data transmission procedure, can understand current data transmission state in real time, has improved user's experience.
The present invention further provides a kind of data transmission system.
With reference to Fig. 5, Fig. 5 is the high-level schematic functional block diagram of data transmission system the first embodiment of the present invention.
The present embodiment proposes a kind of data transmission system, and described data transmission system comprises terminal and server,Described terminal comprises data transmission device as described above, and described server comprises:
Extraction module 60, in the time receiving the communication connection request of terminal transmission, extracts default leading toLetter connects duration;
Feedback module 70, for feeding back to described terminal by the described communication connection duration extracting.
In the present embodiment, in the time receiving the communication connection request of terminal transmission, described extraction module 60First extract default communication connection duration, be understandable that, described default communication connection duration can rootSet according to concrete situation, for example, for the predeterminable different communication connection of dissimilar terminalDuration, or in the time that the communication connection request of terminal is comparatively frequent, can defaultly be to communicate to connect durationArrange longerly, or at multiple terminals connection servers simultaneously, server is current numerous in networkBusy, arranges default communication connection duration shorter etc., and extracts at described extraction module 60After described communication connection duration, described communication connection duration is fed back to described terminal by described feedback module 70,In the present embodiment, extract after described communication connection duration, described communication connection duration can be packaged into pressureThe form of contracting bag sends to described terminal, or by described communication connection duration the form with configuration fileSend to described terminal etc.
In the present embodiment, by when the communication connection request that receives terminal, described extraction module 60Extract default communication connection duration, described feedback module 70 is by the described communication connection duration feedback of extractingGive described terminal,, learn in real time and institute establishing a communications link in process with server for described terminalState the communication connection duration of server, and according to described communication connection duration, can be in the time of transmission data,Determine whether as the case may be initiating communication connection request again, if transfer of data detectedThe time interval between the time of reception of current time and communication connection duration is less than or equal to described communication linkConnect duration, can directly transmit data, if described interval greater than described communication connection duration, byDescribed terminal is initiating communication connection request again.
Further, in order to improve the flexibility of transfer of data, based on the first embodiment, number of the present invention is proposedReportedly the second embodiment of communication system in the present embodiment, with reference to Fig. 6, is a terminal in described terminalTime, described extraction module 60 comprises:
Updating block 61, in the time receiving the communication connection request of terminal transmission, upgrades and described endThe communication connection number of times of end;
The first extraction unit 62, within a preset time interval, sends communication if receive described terminalThe number of times of connection request reaches preset times, extracts default communication connection duration;
Processing unit 63, for the described communication connection duration extracting is increased to the first Preset Time section, andCommunication connection duration after increasing is as the current communication connection duration of described terminal.
In the present embodiment, in the time receiving the communication connection request of terminal transmission, described updating block 61The communication connection number of times of renewal and described terminal, within a preset time interval, sends out if receive described terminalSend the number of times of communication connection request to reach preset times, described the first extraction unit 62 extracts default leading toLetter connects duration, and described processing unit 63 increases by the first Preset Time to the described communication connection duration extractingSection, finally the communication connection duration after increasing is as the current communication connection duration of described terminal, alsoTo say repeatedly initiating communication connection request of terminal within a preset time interval, described processing unit 63 nowCan intelligence regulate the current communication connection duration of described terminal, making to communicate to connect duration can be according to concreteSituation regulates, i.e. when communication connection request is comparatively frequent, suitably by the communication link of server and terminalConnect duration regulate longer, and initiating communication connection request frequently, then transmit data, described placeReason unit 63, by regulating longerly with the current communication connection duration of terminal, can make terminal after adjustingCommunication connection duration in transmission more data, make the efficiency of terminal transmission data higher, thus improveTransfer of data intelligent.
Further, in order to improve the flexibility of transfer of data, based on the first embodiment, number of the present invention is proposedReportedly the 3rd embodiment of communication system, in the present embodiment, with reference to Fig. 7, described terminal comprises multiple terminalsTime, described extraction module 60 also comprises:
Increase unit 64, in the time receiving the communication connection request of multiple terminals transmissions, and multipleWhen the number of terminal reaches default number, default described communication connection duration is increased to the second Preset TimeSection is to upgrade described communication connection duration;
The second extraction unit, for extracting the communication connection duration after renewal.
In the present embodiment, if in the time receiving the communication connection request of multiple terminals transmissions, and multipleWhen the number of terminal reaches default number, described increase unit 64 increases default described communication connection durationAdd the second Preset Time section to upgrade described communication connection duration, that is to say and having multiple terminals and serviceDevice establishes a communications link when request, illustrates that the terminal that current and server communicate is more, in networkBusy situation, now described increase unit 64 first increases by second to default described communication connection durationPreset Time section is to upgrade described communication connection duration, when network is comparatively busy, by terminals such as serversCommunication connection duration increase, reduced the number of times of server response terminal, thereby improved server placeManage the access speed of other terminal.
In the present embodiment, in the time multiple terminal interconnection network being detected, described increase unit 64 is by communication linkConnecing duration suitably increases, and with load and the access speed problem of balance server, server need not be consumedExpense resource is gone the communication connection request of response terminal, thereby has improved the processing speed of server.
Further, in order to improve the flexibility of transfer of data, based on first, second or the 3rd embodimentThe 4th embodiment of data transmission system of the present invention is proposed, in the present embodiment, with reference to Fig. 8, described feedbackModule 70 comprises:
Encapsulation unit 71, for being packaged into default packet by the described communication connection duration extracting;
The first feedback unit 72, for feeding back to described terminal by the packet of encapsulation, for described terminalDescribed packet is carried out to decompress(ion) to obtain described communication connection duration.
In the present embodiment, establish a communications link after relation at server and terminal, described extraction module 60Extract default communication connection duration, then described encapsulation unit 71 is by the described communication connection duration extractingBy packing packing, be packaged into packet, as soap bag (SimpleObjectAccessProtocol, letterSingle object access protocal, based on the agreement of XML), and with xml (ExtensibleMarkupLanguage, extend markup language) form of file sends described communication connection duration,The packet of encapsulation is fed back to described terminal by described the first feedback unit 72, for described terminal to describedPacket carries out decompress(ion) to obtain described communication connection duration, and described terminal is getting described packetTime, the soap bag that carries out xml according to the soap packet format of both sides' agreement parses communication connection duration.
Further, in order to improve the flexibility of transfer of data, based on first, second or the 3rd embodimentThe 5th embodiment of data transmission system of the present invention is proposed, in the present embodiment, with reference to Fig. 9, described feedbackModule 70 also comprises:
Adding device 73, for adding the described communication connection duration extracting to default configuration file;
The second feedback unit 74, for feeding back to institute by the configuration file that has added described communication connection durationState terminal.
In the present embodiment, establish a communications link after relation at server and terminal, described extraction module 60Extract default communication connection duration, then described adding device 73 is by the described communication connection duration extractingAdd in default configuration file, as xml file, and with the form of xml file to described communicationConnect duration and send, described the second feedback unit 74 will add joining of described communication connection durationPut the file reverse described terminal of feeding, obtain the configuration file of described communication connection duration for described terminal,And from described configuration file, extract communication connection duration.
For better understanding the present embodiment, be exemplified below: at present at general server, as apache serviceIn device (a kind of Web server), storing many configurations letters in as httpd.conf at default configuration fileBreath, wherein, comprises keepalive parameter, and described keepalive parameter is to keep connecting active parameter,Refer to when handling Client-initiated communication connection request as HTTP (HTTP-HypertexttransferProtocol, HTTP) after request, whether closing immediately that TCP connects is that socket network connectsThe parameter connecing, if KeepAlive is set to On, so after the request access from same clientCan not disconnect immediately, that is to say if also have transfer of data to come, can continue so this timeTCP completes in connecting, closes TCP and connects to lay equal stress on and rebuild vertical new TCP and connect and need not close,Therefore, can improve the access speed of terminal, also avoid transmitting data at every turn and all want a newly-built communication linkConnect and increase the weight of the burden of server, and the connection time of enlivening of described keepalive parameter is to be subject toKeepAliveTimeOut restriction, that is to say that the communication connection duration that keepalive parameter is corresponding isDescribed KeepAliveTimeOut.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variantBe intended to contain comprising of nonexcludability, thus make to comprise a series of key elements process, method, article orPerson's device not only comprises those key elements, but also comprises other key element of clearly not listing, or alsoBe included as the intrinsic key element of this process, method, article or device. There is no the feelings of more restrictionsUnder condition, by statement " comprising ... " limit key element, and be not precluded within comprise this key element process,In method, article or device, also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to above-mentionedThe mode that embodiment method can add essential general hardware platform by software realizes, and can certainly lead toCross hardware, but in a lot of situation, the former is better embodiment. Based on such understanding, of the present inventionThe part that technical scheme contributes to prior art in essence in other words can be with the form body of software productReveal to come, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, lightDish) in, (can be mobile phone, computer, serves in order to make a station terminal equipment to comprise some instructionsDevice, air-conditioner, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, everyUtilize equivalent structure or the conversion of equivalent flow process that description of the present invention and accompanying drawing content do, or directly orConnect and be used in other relevant technical field, be all in like manner included in scope of patent protection of the present invention.

Claims (9)

1. a data transmission method, is characterized in that, described data transmission method comprises the following steps:
Terminal, in the time establishing a communications link with server, receives the communication connection duration of described server feedback;
Described terminal, in the time the transfer instruction of data being detected, is obtained current time and communicates to connect successfullyInitial time, and calculate between described current time and the successful initial time of described communication connection timeBetween interval;
Judge whether the described time interval is less than or equal to described communication connection duration;
If the described time interval is less than or equal to described communication connection duration, described terminal transmission data extremelyDescribed server.
2. data transmission method as claimed in claim 1, is characterized in that, the described time of described judgementAfter whether interval is less than or equal to the step of described communication connection duration, described data transmission method also wrapsDraw together:
If described interval greater than described communication connection duration, described terminal again with described serverEstablish a communications link.
3. a data transmission device, is characterized in that, described data transmission device comprises:
Receiver module, in the time establishing a communications link with server, receives the logical of described server feedbackLetter connects duration;
Processing module, in the time the transfer instruction of data being detected, obtains current time and communication linkConnect successful initial time, and calculate described current time and the successful initial time of described communication connection itBetween the time interval;
Judge module, for judging whether the described time interval is less than or equal to described communication connection duration;
Transport module, if be less than or equal to described communication connection duration for the described time interval, transmissionData are to described server.
4. data transmission device as claimed in claim 3, is characterized in that, described data transmission deviceAlso comprise:
Set up module, if for described interval greater than described communication connection duration, again with describedServer establishes a communications link.
5. a data transmission system, is characterized in that, described data transmission system comprises terminal and serviceDevice, described terminal comprises the data transmission device as described in claim 3 or 4, described server comprises:
Extraction module, in the time receiving the communication connection request of terminal transmission, extracts default communicationConnect duration;
Feedback module, for feeding back to described terminal by the described communication connection duration extracting.
6. data transmission system as claimed in claim 5, is characterized in that, is one in described terminalWhen terminal, described extraction module comprises:
Updating block, in the time receiving the communication connection request of terminal transmission, upgrades and described terminalCommunication connection number of times;
The first extraction unit, within a preset time interval, sends communication link if receive described terminalThe number of times that connects request reaches preset times, extracts default communication connection duration;
Processing unit, for the described communication connection duration extracting is increased to the first Preset Time section, and willCommunication connection duration after increase is as the current communication connection duration of described terminal.
7. data transmission system as claimed in claim 5, is characterized in that, comprises many in described terminalWhen individual terminal, described extraction module also comprises:
Increase unit, in the time receiving the communication connection request of multiple terminals transmissions, and at multiple endsWhen the number of end reaches default number, default described communication connection duration is increased to the second Preset Time sectionTo upgrade described communication connection duration;
The second extraction unit, for extracting the communication connection duration after renewal.
8. the data transmission system as described in claim 5 to 7 any one, is characterized in that, described anti-Feedback module comprises:
Encapsulation unit, for being packaged into default packet by the described communication connection duration extracting;
The first feedback unit, for feeding back to described terminal by the packet of encapsulation, for described terminal pairDescribed packet carries out decompress(ion) to obtain described communication connection duration.
9. the data transmission system as described in claim 5 to 7 any one, is characterized in that, described anti-Feedback module also comprises:
Adding device, for adding the described communication connection duration extracting to default configuration file;
The second feedback unit, described in feeding back to the configuration file that has added described communication connection durationTerminal.
CN201510977155.5A 2015-12-22 2015-12-22 Data transmission method, apparatus and system Active CN105610919B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510977155.5A CN105610919B (en) 2015-12-22 2015-12-22 Data transmission method, apparatus and system
PCT/CN2016/084610 WO2017107389A1 (en) 2015-12-22 2016-06-03 Data transmission method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510977155.5A CN105610919B (en) 2015-12-22 2015-12-22 Data transmission method, apparatus and system

Publications (2)

Publication Number Publication Date
CN105610919A true CN105610919A (en) 2016-05-25
CN105610919B CN105610919B (en) 2019-01-01

Family

ID=55990453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510977155.5A Active CN105610919B (en) 2015-12-22 2015-12-22 Data transmission method, apparatus and system

Country Status (2)

Country Link
CN (1) CN105610919B (en)
WO (1) WO2017107389A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106304407A (en) * 2016-07-28 2017-01-04 杭州华三通信技术有限公司 A kind of communication means and device
CN106817729A (en) * 2017-01-22 2017-06-09 广东美的暖通设备有限公司 The communication control method and device of air-conditioning
WO2017107389A1 (en) * 2015-12-22 2017-06-29 深圳Tcl数字技术有限公司 Data transmission method, device and system
CN112948121A (en) * 2021-03-19 2021-06-11 深圳市泰祺科技有限公司 Micro-control cloud data transmission method and system
CN113596822A (en) * 2021-07-21 2021-11-02 深圳市力博得科技有限公司 Data processing method and device for data transmission encryption, electronic equipment and medium
CN115334329A (en) * 2022-08-09 2022-11-11 王飞 Big data transmission duration analysis platform and method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111294256B (en) * 2020-02-21 2022-05-20 宁波海大物联科技有限公司 On-line detection method for performance of communication module

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271123A (en) * 2010-06-01 2011-12-07 阿里巴巴集团控股有限公司 Communication method, system and equipment
CN103379522A (en) * 2012-04-26 2013-10-30 三星电子株式会社 Method of setting an optimal ping interval and an electronic device therefor
WO2014068879A1 (en) * 2012-10-31 2014-05-08 日本電気株式会社 Delivery device, communication system, load balancing method, and load balancing program
CN103929459A (en) * 2013-01-16 2014-07-16 腾讯科技(深圳)有限公司 Data obtaining method and electronic device
CN104144185A (en) * 2013-05-09 2014-11-12 腾讯科技(深圳)有限公司 Data communication method, device and terminal
CN105049477A (en) * 2015-05-26 2015-11-11 腾讯科技(深圳)有限公司 Method and device for maintaining long connection

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102221123A (en) * 2011-04-22 2011-10-19 陕西豪曼机电科技工程有限公司 Submicron-level positioning accuracy parallel regulating platform and regulating method thereof
CN105610919B (en) * 2015-12-22 2019-01-01 深圳Tcl数字技术有限公司 Data transmission method, apparatus and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271123A (en) * 2010-06-01 2011-12-07 阿里巴巴集团控股有限公司 Communication method, system and equipment
CN103379522A (en) * 2012-04-26 2013-10-30 三星电子株式会社 Method of setting an optimal ping interval and an electronic device therefor
WO2014068879A1 (en) * 2012-10-31 2014-05-08 日本電気株式会社 Delivery device, communication system, load balancing method, and load balancing program
CN103929459A (en) * 2013-01-16 2014-07-16 腾讯科技(深圳)有限公司 Data obtaining method and electronic device
CN104144185A (en) * 2013-05-09 2014-11-12 腾讯科技(深圳)有限公司 Data communication method, device and terminal
CN105049477A (en) * 2015-05-26 2015-11-11 腾讯科技(深圳)有限公司 Method and device for maintaining long connection

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017107389A1 (en) * 2015-12-22 2017-06-29 深圳Tcl数字技术有限公司 Data transmission method, device and system
CN106304407A (en) * 2016-07-28 2017-01-04 杭州华三通信技术有限公司 A kind of communication means and device
CN106817729A (en) * 2017-01-22 2017-06-09 广东美的暖通设备有限公司 The communication control method and device of air-conditioning
CN106817729B (en) * 2017-01-22 2020-03-06 广东美的暖通设备有限公司 Communication control method and device of air conditioner
CN112948121A (en) * 2021-03-19 2021-06-11 深圳市泰祺科技有限公司 Micro-control cloud data transmission method and system
CN112948121B (en) * 2021-03-19 2023-09-01 深圳市泰祺科技有限公司 Micro-control cloud data transmission method and system
CN113596822A (en) * 2021-07-21 2021-11-02 深圳市力博得科技有限公司 Data processing method and device for data transmission encryption, electronic equipment and medium
CN113596822B (en) * 2021-07-21 2023-09-19 东莞市力博得电子科技有限公司 Data transmission encryption data processing method, device, electronic equipment and medium
CN115334329A (en) * 2022-08-09 2022-11-11 王飞 Big data transmission duration analysis platform and method
CN115334329B (en) * 2022-08-09 2023-10-24 重庆数字涪陵大数据产业发展有限公司 Big data transmission duration analysis platform and method

Also Published As

Publication number Publication date
WO2017107389A1 (en) 2017-06-29
CN105610919B (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN105610919A (en) Data transmission method, device and system
CN101523946B (en) Conditional parallel execution of access stratum (AS) and non-access stratum (NAS) signaling
CN104661172A (en) Extended data transmission method and extended data transmission system based on Bluetooth low power consumption
WO2010139151A1 (en) Method and system for realizing concurrent access of multi-kinds of bearer protocols on machine-to-machine (m2m) platform
US9860931B2 (en) Method, system and terminal for realizing network access via Wi-Fi®
CN102833345A (en) Method, apparatus and system for sharing content between devices
JP2008015593A (en) Repeater, program, relay method and communication system
CN104410982B (en) Terminal polymerization and reconstructing method in a kind of Wireless Heterogeneous Networks
CN108064451A (en) Aircraft and its external equipment, communication means, device and system
CN103457985A (en) Method and system of dual-channel communication
CN104683451A (en) Apparatus And Method For Remote Control In A Short-range Network, And System Supporting The Same
CN105072149A (en) Method and device for building remote communication through proxy gateway
CN104601740A (en) Method and system for associating controlled terminal with control terminal
CN107846432A (en) Data processing equipment and system
CN105530268A (en) Heterogeneous protocol interconnection method and controller
CN103780952A (en) Intelligent terminal message sending method and system
CN105376636A (en) A verification code filling-in method, a verification code filling-in assisting method, an intelligent television set and an intelligent mobile terminal
CN110166479A (en) A kind of method that Transmission system promotes UDP transmitting efficiency
CN105897452A (en) Data retransmission method and device
CN104797004A (en) Method for implementation of automatic networking between master and slave devices
CN107454659A (en) A kind of terminal identification method, system, terminal device and base station
CN107431965B (en) Method and device for realizing Transmission Control Protocol (TCP) transmission
CN101548514A (en) Method for exchanging messages in a mobile radio network
CN107257586B (en) Mobile network connection method and system when intelligent terminal is connected with WiFi
CN111669364B (en) Data transmission method, device, electronic equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant