CN107276728A - A kind of data transmission method and device - Google Patents
A kind of data transmission method and device Download PDFInfo
- Publication number
- CN107276728A CN107276728A CN201710440184.7A CN201710440184A CN107276728A CN 107276728 A CN107276728 A CN 107276728A CN 201710440184 A CN201710440184 A CN 201710440184A CN 107276728 A CN107276728 A CN 107276728A
- Authority
- CN
- China
- Prior art keywords
- data frame
- frame
- data
- confirmation message
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
- H04L1/1621—Group acknowledgement, i.e. the acknowledgement message defining a range of identifiers, e.g. of sequence numbers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/18—Automatic repetition systems, e.g. Van Duuren systems
- H04L1/1829—Arrangements specially adapted for the receiver end
- H04L1/1848—Time-out mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/18—Automatic repetition systems, e.g. Van Duuren systems
- H04L1/1829—Arrangements specially adapted for the receiver end
- H04L1/1864—ARQ related signaling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/18—Automatic repetition systems, e.g. Van Duuren systems
- H04L1/1867—Arrangements specially adapted for the transmitter end
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/18—Automatic repetition systems, e.g. Van Duuren systems
- H04L1/1867—Arrangements specially adapted for the transmitter end
- H04L1/188—Time-out mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Communication Control (AREA)
Abstract
The invention provides a kind of data transmission method and device, methods described includes:Multiple data frames are continuously transmitted to terminal, the terminal is received and is directed to the reception confirmation message that the data frame is returned;It is described to receive the data frame that confirmation message points to setting quantity;After multiple data frames are continuously transmitted, retransmit the history do not pointed to by the reception confirmation message and send data frame.According to embodiments of the present invention, the process resource that terminal is consumed is saved.
Description
Technical field
The present invention relates to data processing field, more particularly to a kind of data transmission method, and, a kind of data transfer dress
Put.
Background technology
At present in the scene of terminal and gateway the progress data interaction of system upgrade, data syn-chronization etc., generally by gateway
By for the data frame transfer of upgrading or synchronization to each terminal, system upgrade or number are carried out using the data frame received by terminal
According to synchronization.
In order to ensure the integrality of data transfer, generally (downloaded in Over The Air Technology, space using OTA
Technology) transmission means, individual data frame is sent to user terminal by gateway, and user terminal then needs to confirm frame by frame, for each
The data frame of reception returns to one and receives confirmation message (ACK, Acknowledgement), and gateway is received after reception confirmation message
It is further continued for giving a data frame.If not receiving reception confirmation message, gateway then can repeatedly send same data frame.Gateway
It is a complete serial process to send data frame and terminal return reception confirmation message.
On the one hand, gateway has been sent after current data frame, it is necessary to wait for a period of time, until receiving confirmation message
Next data frame can be sent, multiple confirmation needs terminal to be always maintained at wake-up states to handle reception between gateway and terminal
Data frame.Terminal is stayed awake for, it is necessary to consume the substantial amounts of process resource of terminal for a long time.
On the other hand, terminal is directed to the data frame each received and returns to reception confirmation message, and terminal carries out excessive transmission
Processing, then can consume the substantial amounts of process resource of terminal.
Therefore, the problem of current data transmission method has consumption terminal a large amount of process resources.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
State a kind of data transmission method and data transmission device of problem.
According to an aspect of the invention, there is provided a kind of data transmission method, methods described includes:
Multiple data frames are continuously transmitted to terminal, the terminal is received and confirms to disappear for the reception that the data frame is returned
Breath;It is described to receive the data frame that confirmation message points to setting quantity;
After multiple data frames are continuously transmitted, retransmit the history do not pointed to by the reception confirmation message and send data
Frame.
Alternatively, the step of history that the repeating transmission is not pointed to by the reception confirmation message sends data frame includes:
When the single reception confirmation message points to a data frame, after whole data frames is sent, for not having
There are the whole history for receiving reception confirmation message to send data frame to be retransmitted.
Alternatively, the step of history that the repeating transmission is not pointed to by the reception confirmation message sends data frame includes:
When the single reception confirmation message points to multiple continuous data frames, for receiving confirmation and disappearing currently without receiving
The history of breath sends data frame and retransmitted.
Alternatively, it is described to include the step of continuously transmit multiple data frames to terminal:
Send a data frame, and monitor send data frame after setting time in the range of whether receive reception confirmation disappear
Breath;
If so, then continuing to send next data frame;
If it is not, it is number of failures according to frame then to mark currently transmitted data frame, and continue to send next data frame.
Alternatively, it is described to include the step of continuously transmit multiple data frames to terminal:
Packet to be sent is split into multiple data frames, moving at least one has the data markers window of setting range
Mouthful;
Data frame in the data markers window is sent to the terminal.
Alternatively, it is described to include the step of continuously transmit multiple data frames to terminal:
According to the frame identification order of data frame, multiple data frames are sent successively to the terminal.
Alternatively, the step of reception confirmation message that the reception terminal is returned for the data frame, includes:
The terminal is received for reception confirmation message of multiple data frames correspondence added with frame identification;
Methods described also includes:
By the data frame corresponding to multiple frame identifications in the reception confirmation message, labeled as transmission successful data frame.
Alternatively, the step of reception confirmation message that the reception terminal is returned for the data frame, includes:
The terminal is received for reception confirmation message of the newest reception data frame added with target frame identification and lookup
Configured information;
Methods described also includes:
According to the lookup configured information, the history transmission data frame that frame identification is less than target frame identification is searched, is labeled as
Send successful data frame.
Alternatively, described be directed to sends the step of data frame is retransmitted currently without the history for receiving reception confirmation message
Including:
In the range of setting time after currently transmitted data frame is listened to, reception confirmation message is not received by, then is looked into
Look for frame identification to be less than the frame identification of currently transmitted data frame and be not labeled as sending multiple history transmission of successful data frame
Data frame, is retransmitted as number of failures according to frame.
According to another aspect of the present invention there is provided a kind of data transmission method, methods described includes:
Receive multiple data frames that gateway is continuously transmitted;
For multiple data frames of reception, the reception confirmation message for the data frame for pointing to setting quantity is returned to, for the net
Close the history transmission data frame retransmitted and not pointed to by the reception confirmation message after multiple data frames are continuously transmitted.
According to another aspect of the present invention there is provided a kind of data transmission device, described device includes:
Data frame sending module, for continuously transmitting multiple data frames to terminal, receives the terminal and is directed to the data
The reception confirmation message that frame is returned;It is described to receive the data frame that confirmation message points to setting quantity;
Data frame re-transmission module, is not disappeared for after multiple data frames are continuously transmitted, retransmitting by the reception confirmation
The history that breath is pointed to sends data frame.
Alternatively, the data frame re-transmission module includes:
First retransmits submodule, for pointing to a data frame when the single reception confirmation message, in whole data
After frame is sent, whole history transmission data frame that confirmation message is received for not receiving is retransmitted.
Alternatively, the data frame re-transmission module includes:
Second retransmits submodule, for pointing to multiple continuous data frames when the single reception confirmation message, for working as
The preceding history for not receiving reception confirmation message sends data frame and retransmitted.
Alternatively, the data frame sending module includes:
Monitor submodule, for send a data frame, and monitor send data frame after setting time in the range of whether
Receive reception confirmation message;
The data frame sending module sends next data frame specifically for continuation, or, mark currently transmitted number
According to frame be number of failures according to frame, and continue to send next data frame.
Alternatively, the data frame sending module includes:
Packet splits submodule, and for packet to be sent to be split into multiple data frames, moving at least one has
The data markers window of setting range;
Data frame sending submodule, for the data frame in the data markers window to be sent to the terminal.
Alternatively, the data frame sending module includes:
Data frame module is sent successively, and for the frame identification order according to data frame, multiple data frames are sent successively extremely
The terminal.
Alternatively, the data frame sending module includes:
Confirmation message receiving submodule is received, for receiving the terminal for multiple data frames correspondence added with frame identification
Reception confirmation message;
Described device also includes:
Successful data frame flag module is sent, for by the data in the reception confirmation message corresponding to multiple frame identifications
Frame, labeled as transmission successful data frame.
Alternatively, the data frame sending module includes:
Configured information receiving submodule is searched, for receiving the terminal for newest reception data frame added with target frame
The reception confirmation message and lookup configured information of mark;
Described device also includes:
History sends data frame searching modul, is less than target frame for according to the lookup configured information, searching frame identification
The history of mark sends data frame, labeled as transmission successful data frame.
Alternatively, the second repeating transmission submodule includes:
Number of failures is according to frame re-transmission subelement, for setting time scope after currently transmitted data frame is listened to
It is interior, reception confirmation message is not received by, then searches frame identification and is less than the frame identification of currently transmitted data frame and is not labeled
To send multiple history transmission data frame of successful data frame, retransmitted as number of failures according to frame.
According to another aspect of the present invention there is provided a kind of data transmission device, described device includes:
Data frame receipt module, for receiving multiple data frames that gateway is continuously transmitted;
Receive confirmation message and return to module, the reception confirmation message for returning to the data frame for pointing to setting quantity, for institute
State gateway and the history transmission data frame not pointed to by the reception confirmation message is retransmitted after multiple data frames are continuously transmitted.
According to embodiments of the present invention, gateway continuously transmits multiple data frames to terminal, and the reception that receiving terminal is returned confirms
Message, according to the single reception confirmation message for pointing to the data frame for setting quantity, can disposably confirm to set the hair of quantity
Successful data frame or number of failures are sent according to frame, and is retransmitted for the data frame for sending failure, thus, is ensureing that data are complete
While whole property, the time that terminal is stayed awake for is shortened, the process resource of terminal consumption is saved;Moreover, terminal without
It must be returned for the data frame each received and receive confirmation message, save the process resource of terminal consumption.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of step flow chart of data transmission method of the embodiment of the present invention one;
Fig. 2 shows a kind of step flow chart of data transmission method of the embodiment of the present invention two;
Fig. 3 shows a kind of step flow chart of data transmission method of the embodiment of the present invention three;
Fig. 4 shows a kind of structured flowchart of data transmission device of the embodiment of the present invention four;
Fig. 5 shows a kind of structured flowchart of data transmission device of the embodiment of the present invention five;
Fig. 6 shows a kind of structured flowchart of data transmission device of the embodiment of the present invention six;
Fig. 7 shows a kind of step flow chart of transmission data frame of the embodiment of the present invention;
Fig. 8 shows the step flow chart of another transmission data frame of the embodiment of the present invention;
Fig. 9 shows that a kind of return of the embodiment of the present invention receives the step flow chart of confirmation message.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Embodiment one
A kind of data transmission method provided in an embodiment of the present invention is discussed in detail.
Reference picture 1, shows a kind of step flow chart of data transmission method of the embodiment of the present invention one.
Step 101, multiple data frames are continuously transmitted to terminal, receives the terminal and be directed to the reception that the data frame is returned
Confirmation message;It is described to receive the data frame that confirmation message points to setting quantity.
It should be noted that above-mentioned terminal can include any smart machine with data-handling capacity, such as computer,
The terminals such as mobile phone, the and for example home equipment such as intelligent door lock, intelligent TV set, intelligent air condition.
In the specific implementation, gateway can continuously send multiple data frames to terminal.For example, gateway is according to data
The frame identification order of frame, sends data frame successively, after a data frame is sent, and withouts waiting for terminal for current data
The reception confirmation message that frame is returned, you can continue to send next data frame.In another example, gateway after a data frame is sent,
After can waiting for a period of time, regardless of whether receiving reception confirmation message, continue to send next data frame.
Those skilled in the art can realize continuously transmitting for multiple data frames in different ways as needed, to protect
Card remains to continue to send next data frame in the case where terminal does not return to reception confirmation message.
Terminal can return to the reception confirmation message for data frame after data frame is received.Wherein, confirmation is received to disappear
Breath can point to the data frame of setting quantity.For example, terminal can return to one for multiple data frames received receives true
Recognize message, and need not be only limited to return to a reception confirmation message for a data frame.
In practical application, terminal can be according to its residing network environment, it is determined that the reception confirmation message returned points to one
Individual data frame, is also directed to multiple continuous data frames.For example, network environment preferably in the case of, be suitable for weighing currently
Send out data frame multiple, the frame identification of multiple data frames can be added in single reception confirmation message, and in network environment phase
In the case of undesirable, it is not appropriate in current retransmission data frame, then can adds single in single reception confirmation message
The frame identification of individual data frame.So that gateway can set the data frame of quantity according to pointed by receiving in confirmation message,
In the case that data frame sends failure, using the data frame re-transmission mode for being matched with network environment residing for terminal.
Step 102, after multiple data frames are continuously transmitted, the history do not pointed to by the reception confirmation message is retransmitted
Send data frame.
In the specific implementation, the data frame pointed by the reception confirmation message that gateway can be returned according to terminal, determines history
In the multiple data frames sent, the data frame for being defined as sending failure not pointed to by reception confirmation message.Continuously transmitting
After multiple data frames, it may be determined that after the data frame for sending failure, and retransmit the data frame of the part.
It is a kind of wherein to retransmit the specific embodiment party that the history do not pointed to by the reception confirmation message sends data frame
In formula, can when single reception confirmation message points to a data frame, after whole data frames is sent, for
The history transmission data frame for not receiving reception confirmation message is retransmitted.For example, list of the gateway for one data frame of sensing
Individual reception confirmation message, can be after some currently transmitted data frame, if being not received by the reception confirmation for the data frame
The data frame, then can be labeled as number of failures according to frame, and continue to send next data frame by message.By whole numbers
After being sent according to frame, the number of failures of mark is re-transmitted to terminal according to frame.
The history do not pointed in another repeating transmission by the reception confirmation message sends the embodiment of data frame
In, multiple continuous data frames, after multiple data frames are continuously transmitted, pin can be pointed in the single reception confirmation message
Retransmitted to sending data frame currently without the history for receiving reception confirmation message.For example, continuously transmitting multiple data frames
Afterwards, if currently without receiving the reception confirmation message of pointing to the plurality of continuous data frame, can will be the plurality of continuous
Data frame is re-transmitted to terminal.
Those skilled in the art can be actually needed to retransmit not by going through that reception confirmation message is pointed in different ways
History sends data frame, and the embodiment of the present invention is not restricted to this.
According to embodiments of the present invention, gateway continuously transmits multiple data frames to terminal, and the reception that receiving terminal is returned confirms
Message, according to the single reception confirmation message for pointing to the data frame for setting quantity, can disposably confirm to set the hair of quantity
Successful data frame or number of failures are sent according to frame, and is retransmitted for the data frame for sending failure, thus, is ensureing that data are complete
While whole property, on the one hand, gateway is that next data frame can be transmitted without waiting for the reception confirmation message of terminal, shortens data
The time that transmitting procedure expends, so as to shorten the time that terminal is stayed awake for, save the process resource of terminal consumption;
On the other hand, terminal need not return for the data frame each received and receive confirmation message, reduce transmission processing, save
The process resource of terminal consumption.Therefore, in whole data transmission procedure, the process resource that terminal is consumed is saved.
Embodiment two
Another data transmission method provided in an embodiment of the present invention is discussed in detail.
Reference picture 2, shows a kind of step flow chart of data transmission method of the embodiment of the present invention two.
Step 201, multiple data frames are continuously transmitted to terminal, receives the terminal and be directed to the reception that the data frame is returned
Confirmation message;It is described to receive the data frame that confirmation message points to setting quantity.
Alternatively, it is described to include following sub-step the step of continuously transmit multiple data frames to terminal:
Sub-step S11, multiple data frames are split into by packet to be sent, and moving at least one has the number of setting range
According to mark window.
Sub-step S12, the data frame in the data markers window is sent to the terminal.
It should be noted that above-mentioned packet to be sent can be to be sent to the firmware that terminal supplies terminal system to upgrade.
In the specific implementation, packet can be split into multiple data frames.A transmission window can be set, multiple data frames are inputted
To the transmission window.For sending multiple data frames on window, the data markers window of a setting range can be initialized.
Can by the data markers window at set time intervals with slide amplitude, enter along the orientation of data frame
Row movement.Data markers window after movement can mark several data frames, by labeled some data frames send to
Terminal.
Alternatively, it is described to include following sub-step the step of continuously transmit multiple data frames to terminal:
Sub-step S21, according to the frame identification order of data frame, sends multiple data frames to the terminal successively.
In the specific implementation, can putting in order according to the frame identification of multiple data frames to be sent, end is sent to successively
End.In practical application, frame identification can be the frame number of data frame, can be transmitted according to the size order of frame number.
In practical application, before the step 201, methods described can also include:
The summary info of the data frame is sent to the terminal.
When not receiving the summary verification success message that the terminal is returned in the range of setting time, then stop sending number
According to frame.
In the specific implementation, gateway can send what is currently sent to terminal in advance before the transmission of data frame is carried out
The summary info of multiple data frames, carries out preliminary verification for terminal and obtains the frame mark of this total data frame to be transmitted
The information such as knowledge.In practical application, summary info can be compression firmware and MD5 (Message Digest Algorithm
MD5, Message Digest Algorithm 5) the Meta information (Meta Information, metamessage) that generates after verification.
After terminal-pair summary info is verified, summary verification success message can be accordingly returned according to check results or is plucked
Verify failed message.Verifying successfully can then start the transmission of data frame, and verification failure does not start data frame transmission then.It is actual
In, timer can be set for the summary info sent, monitoring timing is carried out to return to message to terminal.If it exceeds
Certain time does not still receive the verification success message for summary info, then does not start data frame transmission.
Step 202, the verification failed message that the terminal is returned for the data frame of verification failure is received.
Step 203, the corresponding data frame of the verification failed message is retransmitted.
Terminal can be verified for the data frame received, to ensure that the content of data frame is correctly lossless.If verification is lost
Lose, terminal can be with back-checking failed message to gateway.Due to verification failed message can be received, show the current net of terminal
Network environment is normal, therefore gateway can immediately be retransmitted for the data frame of verification failure, and without waiting for total data
Frame is retransmitted again after sending.If verifying successfully, terminal can directly return to reception and confirm message to gateway, so that gateway can continue
Send next data frame.
Step 204, after multiple data frames are continuously transmitted, the history do not pointed to by the reception confirmation message is retransmitted
Send data frame.
Alternatively, the step 204 can include following sub-step:
Sub-step S31, when the single reception confirmation message points to a data frame, is sent in whole data frames
Afterwards, whole history transmission data frame that confirmation message is received for not receiving is retransmitted.
When the single reception confirmation message that gateway is received points to a data frame, corresponding data frame re-transmission can be used
Mode is retransmitted.Specifically, after whole data frames have been sent, it can be searched in whole history send data frame
Data frame is sent as number of failures according to frame in the absence of the history for receiving confirmation message, and number of failures is sent to institute according to frame
State terminal.Or, after some currently transmitted data frame, if being not received by the single reception confirmation for a data frame
One data frame flag can be then number of failures by message according to frame, and continue to send next data frame.Sending
After whole data frames, in the data frame that history is sent, search labeled as number of failures according to frame, it is all sent out again
Deliver to terminal.
Alternatively, it is described to include the step of continuously transmit multiple data frames to terminal:
Send a data frame, and monitor send data frame after setting time in the range of whether receive reception confirmation disappear
Breath;
If so, then continuing to send next data frame;
If it is not, it is number of failures according to frame then to mark currently transmitted data frame, and continue to send next data frame.
In the specific implementation, gateway can set one after a data frame is sent for the data frame of each transmission
Timer, confirmation message progress monitoring timing is received to be returned to terminal.If gateway receives reception in the range of setting time
Confirmation message, then continue to send next data frame.If still showing end to receive reception confirmation message in the range of setting time
End may be not good due to network environment and successful data reception frame or can not can not successfully return to reception confirmation message.Therefore can be with
The current data frame of mark is number of failures according to frame, and continues to send next data frame.
In practical application, whole history that confirmation message is received for not receiving of one of which send data frame and carried out
In the embodiment of repeating transmission, the transmission number of failures can be monitored according to whether being received in the range of the setting time after frame
To reception confirmation message;If so, then continuing to send next number of failures according to frame, if it is not, then retransmitting current transmission failure
Data frame.More specifically, being sent by total data frame to terminal, it can be retransmitted for sending the data frame of failure.
In retransmission process, if receiving reception confirmation message in the range of setting time, continue to send next data frame.If not connecing
Reception confirmation message is received, then can resend current data frame.
, may be not good because of the network environment residing for terminal in actual data transmission applications scene, cause to send
Data frame returns to reception confirmation message failure.For example, there are other users to be passed by beside the terminal carried out data transmission,
The network signal of terminal is disturbed, or, there is fluctuation etc. in current network signal.In the case where network environment is not good,
If gateway retransmits the data frame for sending failure always, the time-consuming longer of whole data transfer can be caused, terminal is also correspondingly
Need to keep longer wake-up states.Stay awake for needing to consume the substantial amounts of process resource of high power consumption terminal for a long time, most
The service life of terminal may be influenceed eventually.
According to embodiments of the present invention, it is not good in network environment residing for terminal by continuously transmitting multiple data frames to terminal
In the case of receiving reception confirmation message, continue the next data frame of transmission and be extremely sent to total data frame,
Network environment residing for terminal recover it is normal after retransmission data frame again.So as to reduce the number of retransmissions in the case where network environment is not good
The time expended according to frame, the time that terminal is stayed awake for also accordingly is reduced.While guaranteeing data integrity, save
The process resource that terminal is consumed.Wake-up states processing data frame need not be in for a long time by being additionally, since terminal, improve terminal
Service life.
Alternatively, the step 204 can include following sub-step:
Sub-step S41, when the single reception confirmation message points to multiple continuous data frames, for currently without receiving
The history transmission data frame for receiving confirmation message is retransmitted.
When the single reception confirmation message that gateway is received points to multiple continuous data frames, corresponding data can be used
Frame re-transmission mode is retransmitted.Specifically, after multiple data frames are currently continuously transmitted, if it is multiple continuous to be not received by sensing
Data frame reception confirmation message, then the plurality of continuous data frame can be re-transmitted to terminal.If current continuous
Send after multiple data frames, receive the reception confirmation message for pointing to multiple continuous data frames, then can be directed to the plurality of number
According to frame flag to send successful data frame, and continue to send multiple continuous data frames of next group.
In actual applications, one timer can be set for the data frame each sent, with to receiving confirmation message
Time of return carry out timing monitoring.For continuously transmitting the situation of multiple data frames, if still do not connect within a certain period of time
Receive the single reception confirmation message for multiple continuous data frames, then it is assumed that the multiple data frames continuously transmitted before are sent out
Failure is sent, the plurality of data frame for sending failure can be retransmitted.
Alternatively, the step of reception confirmation message that the reception terminal is returned for the data frame, can include
Following sub-step:
Sub-step S51, receives the terminal for reception confirmation message of multiple data frames correspondence added with frame identification;
Methods described can also include:
By the data frame corresponding to multiple frame identifications in the reception confirmation message, labeled as transmission successful data frame.
In the specific implementation, terminal is after multiple data frames are received, can be by the frame identification of the multiple data frames received
Added to confirmation message is received, gateway is then returned to.Gateway receives the single reception confirmation message for pointing to multiple data frames
Afterwards, corresponding data frame can be searched according to the multiple frame identifications wherein added, by multiple data frames of lookup labeled as transmission
Successful data frame.
Alternatively, the step of reception confirmation message that the reception terminal is returned for the data frame, can include
Following sub-step:
Sub-step S61, receives the terminal and confirms to disappear for newest reception of the reception data frame added with target frame identification
Breath and lookup configured information;
Methods described can also include:
According to the lookup configured information, the history transmission data frame that frame identification is less than target frame identification is searched, is labeled as
Send successful data frame.
In the specific implementation, terminal is after multiple data frames are received, can be by the frame identification of recently received data frame
As target frame identification, added to confirmation message is received together with searching configured information, gateway is then returned to.Gateway is received
, can be according to the target frame mark searched configured information and wherein added after the single reception confirmation message for pointing to multiple data frames
Know, in the data frame being transmitted across before this, the data frame that frame identification is less than target frame identification is searched, by multiple data frames of lookup
Labeled as transmission successful data frame.
In actual data transmission applications scene, gateway can continuously transmit multiple data frames at a time interval to end
End, and timer is set for the data frame each sent, the time-out time of setting can be T1.Terminal is receiving a data
After frame, even if to data frame check success, reception confirmation message can not also be returned immediately, but according to time-out time T1 and
Return to a reception confirmation message spent time T2 and determine current stand-by time (T1-2*T2).If received in stand-by time
To more data frame, then after stand-by time terminates, the reception for returning to the target frame number added with the data frame finally received is true
Recognize message.Gateway is received after the reception confirmation message, then frame number can be less than to the timer of multiple data frames of target frame number
Closed, show the data frame of the part to send successful data frame, and continue to send follow-up multiple data frames.Example
Such as, gateway have sent successively frame number be 1 to 10 data frame to terminal, in the reception confirmation message received be added with frame number 10,
Then it is considered that frame number sends success for 1 to 10 data frame.
Alternatively, the sub-step S61 can include:
In the range of setting time after currently transmitted data frame is listened to, reception confirmation message is not received by, then is looked into
Look for frame identification to be less than the frame identification of currently transmitted data frame and be not labeled as sending multiple history transmission of successful data frame
Data frame, is retransmitted as number of failures according to frame.
In the specific implementation, after gateway have sent multiple continuous data frames, if being not received by reception confirmation message,
Frame identification that can be according to the data frame sent recently, searches the data frame sent less than multiple history of the frame identification, is looking into
In the data frame looked for, it will can be not labeled as sending the data frame of successful data frame, be carried out as the data frame for sending failure
Retransmit.
According to embodiments of the present invention, by continuously transmitting multiple data frames to terminal, a sensing is returned to by terminal multiple
The reception confirmation message of data frame, so that terminal need not return to multiple reception confirmation messages for each data frame respectively, is being protected
While integrity of verified data, the process resource that terminal is consumed is saved.Moreover, terminal can provide more process resources
Used for other functions, improve the overall treatment efficiency of terminal.
In practical application, if continued labelling number of failures is more than default threshold according to the number of times or data frame re-transmission number of times of frame
Value, then stop sending data frame.Because in actual application scenarios, it is understood that there may be it is not good network environment residing for terminal, one
Situation about can not directly recover.In this case, it is possible to can cause continuously to send data frame failure, if having attempted to retransmit
Data frame can then expend the process resource of terminal.Therefore, it is super labeled as the number of times for sending failure when being continuously directed to multiple data frames
When crossing certain threshold value, or data frame re-transmission number of times exceed certain threshold value when, can stop send data frame, exit this data
Frame sends task.
In practical application, methods described can also include:Receive the data frame request message of the terminal;The data frame
Request message includes the frame identification for the reception failure data frame that the terminal is recorded.
Frame identification in the data frame request message sends the reception failure data frame to the terminal.Terminal
Can according to the frame identifications of all data frames to be sent in the data transfer task of this in summary info, or, according to multiple institutes
The data frame lacked in data frame is received, the data frame of reception failure is determined and records its frame identification, the frame identification is added to
Data frame request message is simultaneously sent to gateway, by gateway by corresponding data frame re-transmission to terminal.
Gateway and terminal record the data frame for sending failure and the data frame of reception failure respectively, pass through terminal request gateway
The mode of the data frame of missing is retransmitted, while avoiding increasing the process resource of terminal, data transfer is further ensured
Integrality.
It should be noted that the history that the repeating transmission that the embodiment of the present invention is provided is pointed to by the reception confirmation message
Some embodiments of data frame are sent, can both be used alone in actual data transmission applications scene, and can also combine
Applied for a kind of data transfer mode, can play saving terminal while guaranteeing data integrity and consume processing money
The effect in source.For example, for multiple data frames continuously transmitted, according to the reception confirmation message of the single multiple data frames of sensing
Multiple data frames are marked to send successful data frame;, can be by the plurality of data frame mark if do not receive reception confirmation message
Number of failures is designated as according to frame, is retransmitted again after total data frame is sent.Those skilled in the art can be according to reality
The data transmission method of the independent or above-mentioned offer of connected applications is provided.
In actual data transmission applications scene, the terminal of different power consumption is applied to different data transfer modes.Such as
High power consumption terminal is suitable to avoid being in wake-up states for a long time, and low-power consumption terminal is suitable to reduction and returns to time for receiving confirmation message
Number.
Therefore, according to embodiments of the present invention, terminal can return to corresponding sensing one according to the power consumption condition of itself
The single reception confirmation message of individual data frame or multiple data frames.For high power consumption terminal, it can make it that high power consumption terminal need not
Wake-up states processing data frame is in for a long time, improves the service life of high power consumption terminal.For low-power consumption terminal, Wu Xufen
Safety pin returns to multiple reception confirmation messages to each data frame, saves process resource, it is supplied to provide more process resources
He uses function, improves the overall treatment efficiency of low-power consumption terminal.So as to so that gateway, which can automatically switch, adapts to terminal work(
The data transfer mode of consumption is consumed, flexibility and the adaptability of data transfer is improved.
It should be noted that in practical application, corresponding data transfer can be selected previously according to the power consumption situation of terminal
Mode, and the reception confirmation message that need not be returned according to terminal is switched over.
Deeply understand the embodiment of the present invention for the ease of those skilled in the art, carried out below with reference to specific implementation example
Explanation.
Fig. 7 shows a kind of step flow chart of transmission data frame of the embodiment of the present invention.It can be seen that gateway can be with
Forward abstract information meta first carries out preliminary check to terminal, judges whether to receive ACK in the range of setting time, if super
When receive then exit this transformation task, start if being properly received send data frame.Often sending a data frame can then set
A transmission timer is put, judges whether to receive ACK in the range of setting time, marks and does not send if received over time currently
The frame number of successful data frame, and send next data frame;For the ACK received, judge that terminal-pair received data frame is carried out
The check results added after verification, if receiving the successful ACK of verification, directly transmit next data frame, if receiving verification
The ACK of failure, then retransmit current data frame, and set transmission timer for the data frame currently retransmitted.It is complete sending
After the data frame in portion, mark is not sent into successful data frame and retransmitted.In above process, it is continuous if there is reception ACK
The situation of time-out, then exit this transformation task.After total data frame is successfully transmitted, then this transformation task is completed.
Fig. 8 shows the step flow chart of another transmission data frame of the embodiment of the present invention.It can be seen that gateway connects
Supervention send multiple data frames to terminal, and a transmission timer can be set by often sending a data frame, be judged whether in setting
ACK is received in time range, current multiple data frames are retransmitted if received over time or verification failure;Verified into if receiving
The ACK of work(, then continue to continuously transmit multiple data frames.In above process, if there is a situation where to receive the continuous time-out of ACK,
Exit this transformation task.After total data frame is successfully transmitted, then this transformation task is completed.
Embodiment three
Another data transmission method provided in an embodiment of the present invention is discussed in detail.
Reference picture 3, shows a kind of step flow chart of data transmission method of the embodiment of the present invention three.
Step 301, multiple data frames that gateway is continuously transmitted are received.
Step 302, for multiple data frames of reception, the reception confirmation message for the data frame for pointing to setting quantity is returned,
The history do not pointed to by the reception confirmation message is retransmitted after multiple data frames are continuously transmitted for the gateway and sends number
According to frame.
In the specific implementation, terminal can receive multiple continuous data frames of gateway transmission, and return for setting number
The single reception confirmation message of the data frame of amount, retransmits the history do not pointed to by the reception confirmation message for gateway and sends number
According to frame.Gateway retransmits the embodiment that the history do not pointed to by the reception confirmation message sends data frame, can be with pin
Single reception confirmation message to pointing to a data frame, after whole data frames is sent, for not receiving reception
The history of confirmation message sends data frame and retransmitted, or, the single reception for pointing to multiple continuous data frames can also be directed to
Confirmation message, when not receiving reception confirmation message, for sending data currently without the history for receiving reception confirmation message
Frame is retransmitted.
In practical application, methods described can also include:
Monitor whether the current setting time scope received after data frame receives next data frame.
If it is not, then marking next data frame to be reception failure data frame.
In the specific implementation, terminal can set timer for currently received data frame, to be connect to next data frame
Monitoring timing is carried out between time receiving.Because gateway sends continuous multiple data frames, according to the frame identification of currently received data frame
The frame identification of next data frame can be determined.Therefore, do not receive next data frame in the range of setting time, then can be directed to down
The frame identification mark reception failure data frame of one data frame.
In practical application, methods described can also include:
Verify the data frame received.When verifying failure, the verification failed message for the data frame of verification failure is returned
Gateway is back to, corresponding data frame is retransmitted according to the verification failed message for the gateway., then can be direct when verifying successfully
Return and receive confirmation message.Because gateway can receive verification failed message, show that the current network environment of terminal is normal, because
This gateway can for verification failure data frame be retransmitted immediately, and without waiting for total data frame send after weigh again
Hair.
In practical application, methods described can also include:
When the number of times of continued labelling reception failure data frame is more than predetermined threshold value, then stop receiving data frame.
In practical application, it is understood that there may be the situation that network environment residing for terminal is not good, can not recover always.In this feelings
Under condition, it may result in the continuous data frame that receives and fail, the processing of terminal can be expended if having attempted to receive data frame
Resource.Therefore, when being continuously directed to number of times of multiple data frames labeled as reception failure more than certain threshold value, it can stop receiving
Data frame, exits this data frame receipt task.
In practical application, methods described can also include:
Addition is marked as the frame identification of reception failure data frame in data frame request message, and is sent to the gateway
Data frame request message.
In the specific implementation, terminal can be according to all data frames to be sent in the data transfer task of this in summary info
Frame identification, or, according to the data frame lacked in multiple received data frames, determine the data frame of reception failure and record its frame
Mark, is added to data frame request message by the frame identification and is sent to gateway, by gateway by corresponding data frame re-transmission to eventually
End.
In practical application, for a data frame being currently received, return recording has received the frame identification of data frame
Reception confirmation message;Or, for the multiple continuous data frames received in the range of setting time, return recording has most
The reception confirmation message of the new frame identification for receiving data frame or the total data frame received.
In the specific implementation, the data frame that can be received for each, returns to a reception confirmation message.Or, for
The multiple data frames received in the range of setting time, by the complete of the frame identification of the data frame received recently or the plurality of data frame
Portion's frame identification returns to gateway added to reception confirmation message.
In practical application, the data frame can carry whether being sent for monitored data frame for gateway setting fails
Setting time scope, terminal can search the setting time scope from currently received data frame.
For example, gateway can set a timer for the data frame each sent, the time-out time of setting can be
T1, as monitored data frame send whether fail setting time scope.
Terminal can find the setting time scope after data frame is received.Terminal can be according to the setting time
Scope and every time return receive the time spent by confirmation message, it is determined that current stand-by time.
For example, terminal is after a data frame is received, even if to data frame check success, can not also immediately return and connect
Receive confirmation message, but according to time-out time T1 and when returning to one and receiving confirmation message spent time T2 and determine current standby
Between (T1-2*T2).
Terminal is directed to the one or more data frames received in stand-by time, returns and receives confirmation message.
For example, gateway have sent data frame that frame number is 1 to 10 to terminal successively, and terminal is received in stand-by time
Frame number is 1 to 5 data frame, can be directed to the data frame finally received in stand-by time, and frame number 5 and lookup are indicated into letter
Breath, which is added to, to be received in confirmation message, or, frame number 1 to 5 is added to and received in confirmation message.By the reception confirmation message
Gateway is returned to, gateway according to the reception confirmation message, can confirm that 1 to 5 data frame is properly received by terminal.
According to embodiments of the present invention, gateway continuously transmits multiple data frames to terminal, and the reception that receiving terminal is returned confirms
Message, according to the single reception confirmation message for pointing to the data frame for setting quantity, can disposably confirm to set the hair of quantity
Successful data frame or number of failures are sent according to frame, and is retransmitted for the data frame for sending failure, thus, is ensureing that data are complete
While whole property, on the one hand, gateway is that next data frame can be transmitted without waiting for the reception confirmation message of terminal, shortens data
The time that transmitting procedure expends, so as to shorten the time that terminal is stayed awake for, save the process resource of terminal consumption;
On the other hand, terminal need not return for the data frame each received and receive confirmation message, reduce transmission processing, save
The process resource of terminal consumption.Therefore, in whole data transmission procedure, the process resource that terminal is consumed is saved.
Deeply understand the embodiment of the present invention for the ease of those skilled in the art, carried out below with reference to specific implementation example
Explanation.
Fig. 9 shows that a kind of return of the embodiment of the present invention receives the step flow chart of confirmation message.It can be seen that eventually
End can carry out preliminary verification and inspection for the summary info meta received, and return to the ACK comprising check results to net
Close, with the transmission of trigger data frame.Whether terminal can be monitored receives data frame in the range of setting time, if being properly received
To data frame, then ACK for one or more successful data reception frames is returned to gateway;If received over time, mark not into
The data frame that work(is received, and keep holding state.If there is continuous received over time, record and all connect not successfully
This transformation task of the data frame backed off after random of receipts.If having been received by after all data frames, this transformation task is completed.
It should be noted that for foregoing embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to
According to the present invention, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know,
Embodiment described in this description belongs to preferred embodiment, and involved action is not necessarily essential to the invention.
Example IV
A kind of data transmission device provided in an embodiment of the present invention is discussed in detail.
Reference picture 4, shows a kind of structured flowchart of data transmission device of the embodiment of the present invention four.
Described device can include:
Data frame sending module 401, for continuously transmitting multiple data frames to terminal, receives the terminal and is directed to the number
The reception confirmation message returned according to frame;It is described to receive the data frame that confirmation message points to setting quantity.
Data frame re-transmission module 402, is not confirmed for after multiple data frames are continuously transmitted, retransmitting by described receive
The history that message is pointed to sends data frame.
According to embodiments of the present invention, gateway continuously transmits multiple data frames to terminal, and the reception that receiving terminal is returned confirms
Message, according to the single reception confirmation message for pointing to the data frame for setting quantity, can disposably confirm to set the hair of quantity
Successful data frame or number of failures are sent according to frame, and is retransmitted for the data frame for sending failure, thus, is ensureing that data are complete
While whole property, on the one hand, gateway is that next data frame can be transmitted without waiting for the reception confirmation message of terminal, shortens data
The time that transmitting procedure expends, so as to shorten the time that terminal is stayed awake for, save the process resource of terminal consumption;
On the other hand, terminal need not return for the data frame each received and receive confirmation message, reduce transmission processing, save
The process resource of terminal consumption.Therefore, in whole data transmission procedure, the process resource that terminal is consumed is saved.
Embodiment five
A kind of data transmission device provided in an embodiment of the present invention is discussed in detail.
Reference picture 5, shows a kind of structured flowchart of data transmission device of the embodiment of the present invention five.
Described device can include:
Data frame sending module 501, for continuously transmitting multiple data frames to terminal, receives the terminal and is directed to the number
The reception confirmation message returned according to frame;It is described to receive the data frame that confirmation message points to setting quantity.
Failed message receiving module 502 is verified, for receiving the school that the terminal is returned for the data frame of verification failure
Test failed message.
Failure retransfer module 503 is verified, for when receiving the verification failed message that the terminal is returned, then retransmitting described
Verify the corresponding data frame of failed message.
Data frame re-transmission module 504, is not confirmed for after multiple data frames are continuously transmitted, retransmitting by described receive
The history that message is pointed to sends data frame.
Alternatively, the data frame re-transmission module 504 includes:
First retransmits submodule, for pointing to a data frame when the single reception confirmation message, in whole data
After frame is sent, whole history transmission data frame that confirmation message is received for not receiving is retransmitted.
Alternatively, the data frame re-transmission module 504 includes:
Second retransmits submodule, for pointing to multiple continuous data frames when the single reception confirmation message, for working as
The preceding history for not receiving reception confirmation message sends data frame and retransmitted.
Alternatively, the data frame sending module 501 includes:
Submodule is monitored, is disappeared for whether receiving reception confirmation in the range of the setting time after monitoring transmission data frame
Breath;
The data frame sending module sends next data frame specifically for sending a data frame and continuation, or
Person, it is number of failures according to frame to mark currently transmitted data frame, and continues to send next data frame.
Alternatively, the data frame sending module 501 includes:
Packet splits submodule, and for packet to be sent to be split into multiple data frames, moving at least one has
The data markers window of setting range;
Data frame sending submodule, for the data frame in the data markers window to be sent to the terminal.
Alternatively, the data frame sending module 501 includes:
Data frame module is sent successively, and for the frame identification order according to data frame, multiple data frames are sent successively extremely
The terminal.
Alternatively, the data frame sending module 501 includes:
Confirmation message receiving submodule is received, for receiving the terminal for multiple data frames correspondence added with frame identification
Reception confirmation message;
Described device also includes:
Successful data frame flag module is sent, for by the data in the reception confirmation message corresponding to multiple frame identifications
Frame, labeled as transmission successful data frame.
Alternatively, the data frame sending module 501 includes:
Configured information receiving submodule is searched, for receiving the terminal for newest reception data frame added with target frame
The reception confirmation message and lookup configured information of mark;
Described device also includes:
History sends data frame searching modul, is less than target frame for according to the lookup configured information, searching frame identification
The history of mark sends data frame, labeled as transmission successful data frame.
Alternatively, the second repeating transmission submodule includes:
Number of failures is according to frame re-transmission subelement, for setting time scope after currently transmitted data frame is listened to
It is interior, reception confirmation message is not received by, then searches frame identification and is less than the frame identification of currently transmitted data frame and is not labeled
To send multiple history transmission data frame of successful data frame, retransmitted as number of failures according to frame.
According to embodiments of the present invention, it is not good in network environment residing for terminal by continuously transmitting multiple data frames to terminal
In the case of receiving reception confirmation message, continue the next data frame of transmission and be extremely sent to total data frame,
Network environment residing for terminal recover it is normal after retransmission data frame again.So as to reduce the number of retransmissions in the case where network environment is not good
The time expended according to frame, the time that terminal is stayed awake for also accordingly is reduced.While guaranteeing data integrity, save
The process resource that terminal is consumed.Wake-up states processing data frame need not be in for a long time by being additionally, since terminal, improve terminal
Service life.
According to embodiments of the present invention, by continuously transmitting multiple data frames to terminal, a sensing is returned to by terminal multiple
The reception confirmation message of data frame, so that terminal need not return to multiple reception confirmation messages for each data frame respectively, is being protected
While integrity of verified data, the process resource that terminal is consumed is saved.Moreover, terminal can provide more process resources
Used for other functions, improve the overall treatment efficiency of terminal.
According to embodiments of the present invention, terminal can return to one number of corresponding sensing according to the power consumption condition of itself
According to the single reception confirmation message of frame or multiple data frames.For high power consumption terminal, when high power consumption terminal can be caused long
Between be in wake-up states processing data frame, improve the service life of high power consumption terminal.For low-power consumption terminal, without pin respectively
Multiple reception confirmation messages are returned to each data frame, process resource is saved, to provide more process resources for other work(
It can use, improve the overall treatment efficiency of low-power consumption terminal.So as to which so that the gateway adaptation power consumption of terminal that can automatically switch disappears
The data transfer mode of consumption, improves flexibility and the adaptability of data transfer.
Embodiment six
A kind of data transmission device provided in an embodiment of the present invention is discussed in detail.
Reference picture 6, shows a kind of structured flowchart of data transmission device of the embodiment of the present invention six.
Described device includes:
Data frame receipt module 601, for receiving multiple data frames that gateway is continuously transmitted.
Receive confirmation message and return to module 602, the reception confirmation message for returning to the data frame for pointing to setting quantity is supplied
The gateway retransmits the history do not pointed to by the reception confirmation message after multiple data frames are continuously transmitted and sends data
Frame.
According to embodiments of the present invention, gateway continuously transmits multiple data frames to terminal, and the reception that receiving terminal is returned confirms
Message, according to the single reception confirmation message for pointing to the data frame for setting quantity, can disposably confirm to set the hair of quantity
Successful data frame or number of failures are sent according to frame, and is retransmitted for the data frame for sending failure, thus, is ensureing that data are complete
While whole property, on the one hand, gateway is that next data frame can be transmitted without waiting for the reception confirmation message of terminal, shortens data
The time that transmitting procedure expends, so as to shorten the time that terminal is stayed awake for, save the process resource of terminal consumption;
On the other hand, terminal need not return for the data frame each received and receive confirmation message, reduce transmission processing, save
The process resource of terminal consumption.Therefore, in whole data transmission procedure, the process resource that terminal is consumed is saved.
For above-mentioned character recognition device embodiment, because it is substantially similar to embodiment of the method, so description
Fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
Embodiment seven
A kind of computer equipment provided in an embodiment of the present invention and a kind of computer-readable recording medium is discussed in detail.
The embodiments of the invention provide a kind of computer equipment, including memory, processor and store on a memory simultaneously
The computer program that can be run on a processor, it is characterised in that realize following steps during the computing device described program:
Multiple data frames are continuously transmitted to terminal, the terminal is received and confirms to disappear for the reception that the data frame is returned
Breath;It is described to receive the data frame that confirmation message points to setting quantity;
After multiple data frames are continuously transmitted, retransmit the history do not pointed to by the reception confirmation message and send data
Frame.
Alternatively, following steps can also be realized during the computing device described program:
When the single reception confirmation message points to a data frame, after whole data frames is sent, for not having
There are the whole history for receiving reception confirmation message to send data frame to be retransmitted.
Alternatively, following steps can also be realized during the computing device described program:
When the single reception confirmation message points to multiple continuous data frames, for receiving confirmation and disappearing currently without receiving
The history of breath sends data frame and retransmitted.
Alternatively, following steps can also be realized during the computing device described program:
Send a data frame, and monitor send data frame after setting time in the range of whether receive reception confirmation disappear
Breath;
If so, then continuing to send next data frame;
If it is not, it is number of failures according to frame then to mark currently transmitted data frame, and continue to send next data frame.
Alternatively, following steps can also be realized during the computing device described program:
Packet to be sent is split into multiple data frames, moving at least one has the data markers window of setting range
Mouthful;
Data frame in the data markers window is sent to the terminal.
Alternatively, following steps can also be realized during the computing device described program:
According to the frame identification order of data frame, multiple data frames are sent successively to the terminal.
Alternatively, following steps can also be realized during the computing device described program:
The terminal is received for reception confirmation message of multiple data frames correspondence added with frame identification;
By the data frame corresponding to multiple frame identifications in the reception confirmation message, labeled as transmission successful data frame.
Alternatively, following steps can also be realized during the computing device described program:
The terminal is received for reception confirmation message of the newest reception data frame added with target frame identification and lookup
Configured information;
According to the lookup configured information, the history transmission data frame that frame identification is less than target frame identification is searched, is labeled as
Send successful data frame.
Alternatively, following steps can also be realized during the computing device described program:
In the range of setting time after currently transmitted data frame is listened to, reception confirmation message is not received by, then is looked into
Look for frame identification to be less than the frame identification of currently transmitted data frame and be not labeled as sending multiple history transmission of successful data frame
Data frame, is retransmitted as number of failures according to frame.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer program, and it is special
Levy and be, the program realizes following steps when being executed by processor:
Multiple data frames are continuously transmitted to terminal, the terminal is received and confirms to disappear for the reception that the data frame is returned
Breath;It is described to receive the data frame that confirmation message points to setting quantity;
After multiple data frames are continuously transmitted, retransmit the history do not pointed to by the reception confirmation message and send data
Frame.
Alternatively, following steps can also be realized when the program is executed by processor:
When the single reception confirmation message points to a data frame, after whole data frames is sent, for not having
There are the whole history for receiving reception confirmation message to send data frame to be retransmitted.
Alternatively, following steps can also be realized when the program is executed by processor:
When the single reception confirmation message points to multiple continuous data frames, for receiving confirmation and disappearing currently without receiving
The history of breath sends data frame and retransmitted.
Alternatively, following steps can also be realized when the program is executed by processor:
Send a data frame, and monitor send data frame after setting time in the range of whether receive reception confirmation disappear
Breath;
If so, then continuing to send next data frame;
If it is not, it is number of failures according to frame then to mark currently transmitted data frame, and continue to send next data frame.
Alternatively, following steps can also be realized when the program is executed by processor:
Packet to be sent is split into multiple data frames, moving at least one has the data markers window of setting range
Mouthful;
Data frame in the data markers window is sent to the terminal.
Alternatively, following steps can also be realized when the program is executed by processor:
According to the frame identification order of data frame, multiple data frames are sent successively to the terminal.
Alternatively, following steps can also be realized when the program is executed by processor:
The terminal is received for reception confirmation message of multiple data frames correspondence added with frame identification;
By the data frame corresponding to multiple frame identifications in the reception confirmation message, labeled as transmission successful data frame.
Alternatively, following steps can also be realized when the program is executed by processor:
The terminal is received for reception confirmation message of the newest reception data frame added with target frame identification and lookup
Configured information;
According to the lookup configured information, the history transmission data frame that frame identification is less than target frame identification is searched, is labeled as
Send successful data frame.
Alternatively, following steps can also be realized when the program is executed by processor:
In the range of setting time after currently transmitted data frame is listened to, reception confirmation message is not received by, then is looked into
Look for frame identification to be less than the frame identification of currently transmitted data frame and be not labeled as sending multiple history transmission of successful data frame
Data frame, is retransmitted as number of failures according to frame.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with
Between the difference of other embodiment, each embodiment identical similar part mutually referring to.
It would have readily occurred to a person skilled in the art that be:Any combination application of each above-mentioned embodiment is all feasible, therefore
Any combination between each above-mentioned embodiment is all embodiment of the present invention, but this specification exists as space is limited,
This is not just detailed one by one.
Provided herein based on mobile terminal phone report scheme not with any certain computer, virtual system or its
Its equipment is inherently related.Various general-purpose systems can also be used together with based on teaching in this.As described above, construct
It is obvious with the structure required by the system of the present invention program.In addition, the present invention is not also directed to any certain programmed
Language.It is understood that, it is possible to use various programming languages realize the content of invention described herein, and above to specific language
The done description of speech is to disclose the preferred forms of the present invention.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect
The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as right
As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool
Thus claims of body embodiment are expressly incorporated in the embodiment, wherein the conduct of each claim in itself
The separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose identical, equivalent by offer alternative features come generation
Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention
Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any
Mode it can use in any combination.
The present invention all parts embodiment can be realized with hardware, or with one or more processor run
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) come realize in Text region scheme according to embodiments of the present invention some or
The some or all functions of person's whole part.The present invention is also implemented as perform method as described herein one
Divide or whole equipment or program of device (for example, computer program and computer program product).It is such to realize this hair
Bright program can be stored on a computer-readable medium, or can have the form of one or more signal.It is such
Signal can be downloaded from internet website and obtained, and either provided or provided in any other form on carrier signal.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and coming real by means of properly programmed computer
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
Claims (22)
1. a kind of data transmission method, methods described includes:
Multiple data frames are continuously transmitted to terminal, the terminal is received and is directed to the reception confirmation message that the data frame is returned;Institute
State and receive the data frame that confirmation message points to setting quantity;
After multiple data frames are continuously transmitted, retransmit the history do not pointed to by the reception confirmation message and send data frame.
2. the history that according to the method described in claim 1, the repeating transmission is not pointed to by the reception confirmation message sends number
The step of according to frame, includes:
When the single reception confirmation message points to a data frame, after whole data frames is sent, for not receiving
Data frame is sent to the whole history for receiving confirmation message to be retransmitted.
3. the history that according to the method described in claim 1, the repeating transmission is not pointed to by the reception confirmation message sends number
The step of according to frame, includes:
When the single reception confirmation message points to multiple continuous data frames, for receiving confirmation message currently without receiving
History sends data frame and retransmitted.
It is described to include the step of continuously transmit multiple data frames to terminal 4. method according to claim 2:
A data frame is sent, and monitors send whether receive reception confirmation message in the range of the setting time after data frame;
If so, then continuing to send next data frame;
If it is not, it is number of failures according to frame then to mark currently transmitted data frame, and continue to send next data frame.
5. according to the method described in claim 1, described include the step of continuously transmit multiple data frames to terminal:
Packet to be sent is split into multiple data frames, moving at least one has the data markers window of setting range;
Data frame in the data markers window is sent to the terminal.
It is described to include the step of continuously transmit multiple data frames to terminal 6. method according to claim 3:
According to the frame identification order of data frame, multiple data frames are sent successively to the terminal.
7. method according to claim 6, the reception terminal confirms to disappear for the reception that the data frame is returned
The step of breath, includes:
The terminal is received for reception confirmation message of multiple data frames correspondence added with frame identification;
Methods described also includes:
By the data frame corresponding to multiple frame identifications in the reception confirmation message, labeled as transmission successful data frame.
8. method according to claim 6, the reception terminal confirms to disappear for the reception that the data frame is returned
The step of breath, includes:
The terminal is received for reception confirmation message of the newest reception data frame added with target frame identification and instruction is searched
Information;
Methods described also includes:
According to the lookup configured information, the history transmission data frame that frame identification is less than target frame identification is searched, labeled as transmission
Successful data frame.
9. the method according to claim 7 or 8, described be directed to sends number currently without the history for receiving reception confirmation message
The step of being retransmitted according to frame includes:
In the range of setting time after currently transmitted data frame is listened to, reception confirmation message is not received by, then searches frame
Mark is frame identification less than currently transmitted data frame and is not labeled as sending multiple history transmission data of successful data frame
Frame, is retransmitted as number of failures according to frame.
10. a kind of data transmission method, methods described includes:
Receive multiple data frames that gateway is continuously transmitted;
For multiple data frames of reception, the reception confirmation message for the data frame for pointing to setting quantity is returned, is existed for the gateway
Continuously transmit the history retransmitted after multiple data frames not by the reception confirmation message sensing and send data frame.
11. a kind of data transmission device, described device includes:
Data frame sending module, for continuously transmitting multiple data frames to terminal, receives the terminal and is returned for the data frame
The reception confirmation message returned;It is described to receive the data frame that confirmation message points to setting quantity;
Data frame re-transmission module, is not referred to for after multiple data frames are continuously transmitted, retransmitting by the reception confirmation message
To history send data frame.
12. device according to claim 11, the data frame re-transmission module includes:
First retransmits submodule, for pointing to a data frame when the single reception confirmation message, is sent out in whole data frames
Send after finishing, whole history transmission data frame that confirmation message is received for not receiving is retransmitted.
13. device according to claim 11, the data frame re-transmission module includes:
Second retransmits submodule, for pointing to multiple continuous data frames when the single reception confirmation message, for not having currently
There is the history for receiving reception confirmation message to send data frame to be retransmitted.
14. device according to claim 12, the data frame sending module includes:
Submodule is monitored, sends whether receive reception confirmation message in the range of the setting time after data frame for monitoring;
The data frame sending module sends next data frame specifically for sending a data frame and continuation, or, mark
The currently transmitted data frame of note is number of failures according to frame, and continues to send next data frame.
15. device according to claim 11, the data frame sending module includes:
Packet splits submodule, and for packet to be sent to be split into multiple data frames, moving at least one has setting
The data markers window of scope;
Data frame sending submodule, for the data frame in the data markers window to be sent to the terminal.
16. device according to claim 13, the data frame sending module includes:
Data frame module is sent successively, and for the frame identification order according to data frame, multiple data frames are sent successively to described
Terminal.
17. device according to claim 16, the data frame sending module includes:
Confirmation message receiving submodule is received, for receiving the terminal for multiple data frames correspondence connecing added with frame identification
Receive confirmation message;
Described device also includes:
Successful data frame flag module is sent, for by the data frame in the reception confirmation message corresponding to multiple frame identifications,
Labeled as transmission successful data frame.
18. device according to claim 16, the data frame sending module includes:
Configured information receiving submodule is searched, for receiving the terminal for newest reception data frame added with target frame identification
Reception confirmation message and search configured information;
Described device also includes:
History sends data frame searching modul, is less than target frame identification for according to the lookup configured information, searching frame identification
History send data frame, labeled as send successful data frame.
19. the device according to claim 17 or 18, the second repeating transmission submodule includes:
Number of failures in the range of setting time after currently transmitted data frame is listened to, does not have according to frame re-transmission subelement
Reception confirmation message is received, then searches frame identification and is less than the frame identification of currently transmitted data frame and is not labeled as hair
Send multiple history of successful data frame to send data frame, retransmitted as number of failures according to frame.
20. a kind of data transmission device, described device includes:
Data frame receipt module, for receiving multiple data frames that gateway is continuously transmitted;
Receive confirmation message and return to module, the reception confirmation message for returning to the data frame for pointing to setting quantity, for the net
Close the history transmission data frame retransmitted and not pointed to by the reception confirmation message after multiple data frames are continuously transmitted.
21. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, it is characterised in that any one methods described in claim 1-9 is realized during the computing device described program
The step of.
22. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor
The step of claim 1-9 any one methods describeds are realized during execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710440184.7A CN107276728B (en) | 2017-06-12 | 2017-06-12 | A kind of data transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710440184.7A CN107276728B (en) | 2017-06-12 | 2017-06-12 | A kind of data transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107276728A true CN107276728A (en) | 2017-10-20 |
CN107276728B CN107276728B (en) | 2019-05-31 |
Family
ID=60066221
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710440184.7A Active CN107276728B (en) | 2017-06-12 | 2017-06-12 | A kind of data transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107276728B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107948286A (en) * | 2017-11-24 | 2018-04-20 | 铁将军汽车电子股份有限公司 | Method, apparatus, terminal and the system of message transmission |
CN108599904A (en) * | 2018-03-21 | 2018-09-28 | 中兴通讯股份有限公司 | a kind of data transmission method and device |
CN111385015A (en) * | 2018-12-29 | 2020-07-07 | 上海复控华龙微系统技术有限公司 | Data transmission and receiving method and device for satellite communication, gateway and terminal |
CN113064888A (en) * | 2021-03-25 | 2021-07-02 | 珠海格力电器股份有限公司 | Data proofreading method, device and system, server and equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010057175A (en) * | 2008-08-29 | 2010-03-11 | Fujitsu Ltd | Automatic retransmission control method, communicating system, and transmitting device and receiving device thereof |
CN102404098A (en) * | 2010-09-14 | 2012-04-04 | 中兴通讯股份有限公司 | Transmission method and transmission device of link access procedure of D channel |
CN102468940A (en) * | 2010-11-12 | 2012-05-23 | 大唐移动通信设备有限公司 | Scheduling request and ACK/NACK (acknowledgement/negative acknowledgement) information transmission method and device |
CN103906251A (en) * | 2012-12-27 | 2014-07-02 | 普天信息技术研究院有限公司 | HARQ-ACK feedback method in D2D mode in LTE network |
CN104602196A (en) * | 2013-10-30 | 2015-05-06 | 株式会社理光 | Multicast communication method, multicast transmission apparatus, and multicast reception apparatus |
CN105406946A (en) * | 2012-03-23 | 2016-03-16 | 北京新岸线移动多媒体技术有限公司 | Frame confirmation method and device |
CN106656425A (en) * | 2017-01-09 | 2017-05-10 | 电子科技大学 | Efficient error retransmission and access mechanism of fixed frame length in fiber channel |
-
2017
- 2017-06-12 CN CN201710440184.7A patent/CN107276728B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010057175A (en) * | 2008-08-29 | 2010-03-11 | Fujitsu Ltd | Automatic retransmission control method, communicating system, and transmitting device and receiving device thereof |
CN102404098A (en) * | 2010-09-14 | 2012-04-04 | 中兴通讯股份有限公司 | Transmission method and transmission device of link access procedure of D channel |
CN102468940A (en) * | 2010-11-12 | 2012-05-23 | 大唐移动通信设备有限公司 | Scheduling request and ACK/NACK (acknowledgement/negative acknowledgement) information transmission method and device |
CN105406946A (en) * | 2012-03-23 | 2016-03-16 | 北京新岸线移动多媒体技术有限公司 | Frame confirmation method and device |
CN103906251A (en) * | 2012-12-27 | 2014-07-02 | 普天信息技术研究院有限公司 | HARQ-ACK feedback method in D2D mode in LTE network |
CN104602196A (en) * | 2013-10-30 | 2015-05-06 | 株式会社理光 | Multicast communication method, multicast transmission apparatus, and multicast reception apparatus |
CN106656425A (en) * | 2017-01-09 | 2017-05-10 | 电子科技大学 | Efficient error retransmission and access mechanism of fixed frame length in fiber channel |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107948286A (en) * | 2017-11-24 | 2018-04-20 | 铁将军汽车电子股份有限公司 | Method, apparatus, terminal and the system of message transmission |
CN107948286B (en) * | 2017-11-24 | 2020-12-22 | 铁将军汽车电子股份有限公司 | Message delivery method, device, terminal and system |
CN108599904A (en) * | 2018-03-21 | 2018-09-28 | 中兴通讯股份有限公司 | a kind of data transmission method and device |
CN108599904B (en) * | 2018-03-21 | 2021-09-28 | 中兴通讯股份有限公司 | Data transmission method and device |
CN111385015A (en) * | 2018-12-29 | 2020-07-07 | 上海复控华龙微系统技术有限公司 | Data transmission and receiving method and device for satellite communication, gateway and terminal |
CN113064888A (en) * | 2021-03-25 | 2021-07-02 | 珠海格力电器股份有限公司 | Data proofreading method, device and system, server and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107276728B (en) | 2019-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107276728B (en) | A kind of data transmission method and device | |
CN104967497B (en) | A kind of reliable data transmission method and upgrade method based on network communication protocol | |
US10348616B2 (en) | Packet transmission method and apparatus, and interconnect interface | |
CN108696589B (en) | Block chain data transmission method, device, equipment and storage medium | |
CN101406004A (en) | Methods and arrangements to detect a failure in a communication network including bundled adapters | |
CN105095022A (en) | Data backup method and device | |
CN105657000A (en) | Message transmission method and device | |
CN110460412A (en) | Method and RDMA network interface card for data transmission | |
US9130740B2 (en) | Variable acknowledge rate to reduce bus contention in presence of communication errors | |
CN111162880B (en) | Data transmission method, device, equipment and storage medium | |
CN106254507A (en) | File transfer control method and system | |
CN109525542A (en) | Data reconstruction method, transmitting/receiving means and computer readable storage medium | |
CN108268420A (en) | Communication means, processor and electronic equipment between processor | |
CN115412890B (en) | Data transmission method and device and terminal equipment | |
CN110048865A (en) | A kind of bus data transmission method, device, electronic equipment and storage medium | |
CN107608858A (en) | Information processing system, method and apparatus | |
CN1960370B (en) | Portable type information switching unit, and information switching method | |
CN106487858A (en) | Information method for uploading and device | |
CN108037942B (en) | Adaptive data recovery and update method and device for embedded equipment | |
CN113515461B (en) | Communication test method and device, electronic equipment and storage medium | |
US20170149579A1 (en) | Component multicast protocol | |
CN109167647A (en) | Data transmission method and device, electronic equipment and storage medium | |
CN106330395A (en) | Wireless communication system and method, management frame retransmission device and method and frame structure | |
Han et al. | Research on error correction of state data transmission system of moving carrier based on Beidou short message | |
CN113296998B (en) | Data communication abnormality recovery method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |