CN107864116A - Data transmission method, terminal and computer-readable recording medium - Google Patents
Data transmission method, terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107864116A CN107864116A CN201710483562.XA CN201710483562A CN107864116A CN 107864116 A CN107864116 A CN 107864116A CN 201710483562 A CN201710483562 A CN 201710483562A CN 107864116 A CN107864116 A CN 107864116A
- Authority
- CN
- China
- Prior art keywords
- data
- transmitted
- identification information
- receiving terminal
- accepted
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/123—Applying verification of the received information received data contents, e.g. message integrity
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of data transmission method, terminal and computer-readable recording medium, the method comprising the steps of:When transmitting terminal detects data transfer instruction, the first identification information of data to be transmitted is obtained according to data transfer instruction, and the first identification information and data to be transmitted are sent to receiving terminal;Receiving terminal obtains the second identification information according to the data to be transmitted received, second identification information and first identification information are contrasted, data accepted is determined according to the comparing result of contrast gained, and the data accepted is sent to the transmitting terminal;When transmitting terminal receives data accepted, determine whether to resend data to be transmitted to receiving terminal according to data accepted.Whether the present invention realizes is tampered by identification information come the data for determining to transmit between different system;And avoid receiving terminal and receive data transformation, or the situation for loss of data occur in data transmission procedure occurs.
Description
Technical field
The present invention relates to technical field of data transmission, more particularly to a kind of data transmission method, terminal and computer can
Read storage medium.
Background technology
Typically now all it is to use computer system management information data with the development of the communication technology.In information exchange
Today, often may require that the cooperative cooperating of multiple terminal systems accomplishes a task, now just occur between different system
Data interaction.During carrying out data transmission between different system, it may appear that data receiver not exclusively or loss of data feelings
Condition, while data are in transmitting procedure, it is also possible to the situation that data are distorted by people occurs.
The content of the invention
It is a primary object of the present invention to provide a kind of data transmission method, terminal and computer-readable recording medium,
Aim to solve the problem that during carrying out data transmission between different system, data receiver is not exclusively, loss of data and data are tampered
Technical problem.
To achieve the above object, the present invention provides a kind of data transmission method, and the data transmission method includes step:
When transmitting terminal detects data transfer instruction, the first of data to be transmitted is obtained according to the data transfer instruction
Identification information, and first identification information and the data to be transmitted are sent to receiving terminal;
The receiving terminal obtains the second identification information according to the data to be transmitted received, and the described second mark is believed
Breath and first identification information are contrasted, and data accepted is determined according to the comparing result of contrast gained, and by described in
Receive data and be sent to the transmitting terminal;
When the transmitting terminal receives the data accepted, determine whether to resend according to the data accepted
The data to be transmitted gives the receiving terminal.
Preferably, after described the step of first identification information and the data to be transmitted are sent into receiving terminal,
Also include:
The current state of the data to be transmitted is revised as having sent state;
It is described when the transmitting terminal receives the data accepted, determined whether again according to the data accepted
Send the data to be transmitted includes to the step of receiving terminal:
, will be corresponding with the data accepted described to be transmitted when the transmitting terminal receives the data accepted
Data are from the status modifier that sent for reception state;
The transmitting terminal detects whether the data to be transmitted in the state that sent be present;
If existing in the data to be transmitted of state has been sent, resend in the state that sent described treats
Transmit data to the receiving terminal.
Preferably, after the described the step of data accepted is sent into the transmitting terminal, in addition to:
The receiving terminal stores the data accepted, and detects whether the data accepted stores success;
If the data accepted storage failure, sends a notification message to the transmitting terminal;
After the transmitting terminal receives the notification message, sent according to the notification message and deposited with the receiving terminal again
The data to be transmitted corresponding to storing up the data accepted of failure gives the receiving terminal.
Preferably, it is described to be contrasted second identification information and first identification information, according to contrast gained
Comparing result determine data accepted, and include the step of the data accepted is sent into the transmitting terminal:
Second identification information and first identification information are contrasted, it is true according to the comparing result of contrast gained
Determine data accepted;
The 3rd identification information of the data accepted is obtained, the 3rd identification information and the data accepted are sent out
Give the transmitting terminal.
Preferably, after described the step of being contrasted second identification information and first identification information, also
Including:
The receiving terminal determines data to be deleted according to the comparing result of contrast gained, and deletes the data to be deleted.
Preferably, it is described according to the data transfer instruction obtain data to be transmitted the first identification information the step of wrap
Include:
Data to be transmitted is determined according to the data transfer instruction;
The data total amount of the data to be transmitted is obtained, and the data to be transmitted is calculated by predetermined encryption algorithm
Deciphering, wherein, first identification information includes the data total amount and the deciphering.
Preferably, the data transmission method includes:
The transmitting terminal calculates the number that the data to be transmitted is sent to the receiving terminal;
When the number is more than preset times, and receives data transfer instruction, the transmitting terminal is forbidden performing transmission
The data to be transmitted gives the operation of the receiving terminal.
In addition, to achieve the above object, the present invention also provides a kind of data and sends terminal, and the data, which send terminal, to be included
Memory, processor and it is stored in the data distributing program that can be run on the memory and on the processor, the number
The step that transmitting terminal is corresponding in data transmission method as described above is realized during according to transmission program by the computing device.
In addition, to achieve the above object, the present invention also provides a kind of data receiving terminal, and the data receiving terminal includes
Memory, processor and it is stored in the data distributing program that can be run on the memory and on the processor, the number
The step that receiving terminal is corresponding in data transmission method as described above is realized during according to transmission program by the computing device.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable
Data distributing program is stored with storage medium, the data distributing program realizes data as described above when being executed by processor
The step of transmission method.
The present invention according to the data transfer instruction by when transmitting terminal detects data transfer instruction, obtaining to be transmitted
First identification information of data, and first identification information and the data to be transmitted are sent to receiving terminal;The reception
End obtains the second identification information according to the data to be transmitted received, by second identification information and first mark
Information is contrasted, and determines data accepted according to the comparing result of contrast gained, and the data accepted is sent into institute
State transmitting terminal;When the transmitting terminal receives the data accepted, determine whether to send out again according to the data accepted
The data to be transmitted is sent to the receiving terminal.Realize by identification information to determine whether is the data transmitted between different system
It is tampered;And data accepted is returned to by transmitting terminal by receiving terminal, determine to be according to data accepted by transmitting terminal
The no data to be transmitted that resends avoids receiving terminal and receives data transformation to receiving terminal, or in data transmission procedure
The situation for loss of data occur occurs.
Brief description of the drawings
Fig. 1 is the terminal structure schematic diagram for the hardware running environment that scheme of the embodiment of the present invention is related to;
Fig. 2 is the schematic flow sheet of data transmission method first embodiment of the present invention;
Fig. 3 is the schematic flow sheet of data transmission method second embodiment of the present invention;
Fig. 4 is the schematic flow sheet of data transmission method 3rd embodiment of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The solution of the embodiment of the present invention is mainly:When transmitting terminal detects data transfer instruction, according to the number
The first identification information for obtaining data to be transmitted is instructed according to transmission, and first identification information and the data to be transmitted are sent out
Give receiving terminal;The receiving terminal obtains the second identification information according to the data to be transmitted received, and described second is marked
Know information and first identification information to be contrasted, data accepted is determined according to the comparing result of contrast gained, and by institute
State data accepted and be sent to the transmitting terminal;When the transmitting terminal receives the data accepted, connect according to described
Receive data and determine whether to resend the data to be transmitted to the receiving terminal.To solve to carry out data biography between subsidy system
During defeated, data receiver not exclusively, loss of data and data the problem of being tampered.
As shown in figure 1, Fig. 1 is the terminal structure schematic diagram for the hardware running environment that scheme of the embodiment of the present invention is related to.
It should be noted that Fig. 1 can be the terminal structure schematic diagram for the hardware running environment that data send terminal, also may be used
For the terminal structure schematic diagram of the hardware running environment of data receiving terminal.It is understood that the processor 1001 in Fig. 1,
Network interface 1004, user interface 1003, memory 1005 and communication bus 1002 may be present in data and send in terminal,
It may be present in data receiving terminal.
It can be PC or smart mobile phone, flat board that data of the embodiment of the present invention, which send terminal and data receiving terminal,
(Moving Picture Experts Group Audio Layer III, dynamic image are special by computer, E-book reader, MP3
Family's compression standard audio aspect 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, move
State image expert's compression standard audio aspect 3) the packaged type terminal device such as player, pocket computer.
It can include as shown in figure 1, the data send terminal and data receiving terminal:Processor 1001, such as CPU, net
Network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is used to realize these
Connection communication between component.User interface 1003 can include display screen (Display), input block such as keyboard
(Keyboard), optional user interface 1003 can also include wireline interface, the wave point of standard.Network interface 1004 is optional
Wireline interface, the wave point (such as WI-FI interfaces) that can include standard.Memory 1005 can be high-speed RAM memory,
Can also be stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally may be used also
To be independently of the storage device of aforementioned processor 1001.
Alternatively, data send terminal and data receiving terminal can also include camera, RF (Radio Frequency,
Radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..
It will be understood by those skilled in the art that the restriction of the terminal structure shown in Fig. 1 not structure paired terminal, can be wrapped
Include than illustrating more or less parts, either combine some parts or different parts arrangement.
As shown in figure 1, as operating system and number can be included in a kind of memory 1005 of computer-readable storage medium
According to transmission program.Wherein, operating system is that management and control data send hardware and software in terminal and data receiving terminal and provided
The program in source, support the operation of data distributing program and other softwares and/or program.
In the terminal structure schematic diagram shown in Fig. 1, network interface 1004 is mainly used in connecting another terminal, with another end
Hold into row data communication, such as when the network interface 1004, which belongs to data, sends terminal, the network interface 1004 is mainly used in connecting
Data receiving terminal is connect, enters row data communication with data receiving terminal;When the network interface 1004 belongs to data receiving terminal,
The network interface 1004 is mainly used in connecting data transmission terminal, and sending terminal with data enters row data communication;User interface
1003 are mainly used in receiving and detecting various operational orders.
When processor 1001, which is in data, to be sent in terminal, processor 1001 can be used for calling to be deposited in memory 1005
The data distributing program of storage, and perform following operate:
When detecting data transfer instruction, the first mark that data to be transmitted is obtained according to the data transfer instruction is believed
Breath, and first identification information and the data to be transmitted are sent to receiving terminal;
When receiving the data accepted of receiving terminal transmission, determined whether to resend institute according to the data accepted
Data to be transmitted is stated to the receiving terminal.
Further, described the step of first identification information and the data to be transmitted are sent to receiving terminal it
Afterwards, processor 1001 can be also used for calling the data distributing program stored in memory 1005, perform following operate:
The current state of the data to be transmitted is revised as having sent state;
, will the number to be transmitted corresponding with the data accepted when receiving the data accepted of receiving terminal transmission
According to from the status modifier that sent for reception state;
Detect whether the data to be transmitted in the state that sent be present;
If existing in the data to be transmitted of state has been sent, resend in the state that sent described treats
Transmit data to the receiving terminal.
Further, processor 1001 can be also used for calling the data distributing program stored in memory 1005, perform
Operate below:
When not receiving the data accepted in preset time, resend the data to be transmitted and connect to described
Receiving end.
Further, processor 1001 can be also used for calling the data distributing program stored in memory 1005, perform
Operate below:
After the notification message that the receiving terminal is sent is received, according to the notification message send again with it is described
The data to be transmitted corresponding to the data accepted of receiving terminal storage failure gives the receiving terminal.
Further, it is described according to the data transfer instruction obtain data to be transmitted the first identification information the step of wrap
Include:
Data to be transmitted is determined according to the data transfer instruction;
The data total amount of the data to be transmitted is obtained, and the data to be transmitted is calculated by predetermined encryption algorithm
Deciphering, wherein, first identification information includes the data total amount and the deciphering.
Further, processor 1001 can be also used for calling the data distributing program stored in memory 1005, perform
Operate below:
Calculate the number that the data to be transmitted is sent to the receiving terminal;
When the number is more than preset times, and receives data transfer instruction, execution is forbidden to send described to be transmitted
Data give the operation of the receiving terminal.
When processor 1001 is in data receiving terminal, processor 1001 can be used for calling to be stored in memory 1005
Data distributing program, and perform following operate:
Second identification information is obtained according to the data to be transmitted that is received, by second identification information and described the
One identification information is contrasted, and determines data accepted according to the comparing result of contrast gained, and the data accepted is sent out
Give the transmitting terminal.
Further, after described the step of being contrasted second identification information and first identification information,
Processor 1001 can be also used for calling the data distributing program stored in memory 1005, perform following operate:
The receiving terminal determines data to be deleted according to the comparing result of contrast gained, and deletes the data to be deleted.
Further, it is described to be contrasted second identification information and first identification information, according to contrast institute
Comparing result determine data accepted, and include the step of the data accepted is sent into the transmitting terminal:
Second identification information and first identification information are contrasted, it is true according to the comparing result of contrast gained
Determine data accepted;
The 3rd identification information of the data accepted is obtained, the 3rd identification information and the data accepted are sent out
Give the transmitting terminal.
Further, after described the step of obtaining the second identification information according to the data to be transmitted received, place
Reason device 1001 can be also used for calling the data distributing program stored in memory 1005, perform following operate:
Second identification information and the inconsistent data to be transmitted of first identification information received are determined, is designated as
Data to be deleted;
Delete the data to be deleted.
Based on above-mentioned hardware configuration, each embodiment of data transmission method is proposed.
Reference picture 2, Fig. 2 are the schematic flow sheet of data transmission method first embodiment of the present invention.
In the present embodiment, there is provided the embodiment of data transmission method is, it is necessary to illustrate, although showing in flow charts
Go out logical order, but in some cases, can be with the step shown or described by being performed different from order herein.
The data transmission method includes:
Step S10, when transmitting terminal detects data transfer instruction, number to be transmitted is obtained according to the data transfer instruction
According to the first identification information, and first identification information and the data to be transmitted are sent to receiving terminal.
In embodiments of the present invention, transmitting terminal and receiving terminal can be the terminal for possessing identical function, or possess difference
The terminal of function;It can be the terminal of storage one species data, or store the terminal of variety classes data.Transmitting terminal and connect
Receiving end does not limit in embodiments of the present invention, can select according to specific needs.
When transmitting terminal detects data transfer instruction, the first mark of data to be transmitted is obtained according to data transfer instruction
Information, and acquired first identification information and data to be transmitted are sent to receiving terminal.In the present embodiment, data transfer instruction
Request of data can be sent by receiving terminal to trigger to transmitting terminal, when transmitting terminal receives the request of data of receiving terminal transmission, touch
Send out data transfer instruction;Or triggered automatically by transmitting terminal, now, in transmitting terminal it is provided with and sends data in a certain set time
To receiving terminal;Or the manual trigger data transmission instruction in transmitting terminal by user.In embodiments of the present invention, the first mark letter
Breath includes the data total amount and deciphering of data to be transmitted, and each data to be transmitted has unique deciphering.Wherein, deciphering
It is that each data to be transmitted all correspond to unique deciphering as obtained by calculating predetermined encryption algorithm.In the embodiment of the present invention
In, predetermined encryption algorithm is that when possessing the data not changed using same one content of secret key decryption, can obtain same
Individual deciphering, when data content changes, the algorithm of different deciphering functions is obtained, to identify quilt in data transmission procedure
The data distorted.In the present embodiment, predetermined encryption algorithm can be MD5 (Message-Digest Algorithm 5, information-
Digest algorithm 5).In other embodiments, predetermined encryption algorithm can also be the AES for possessing said function with MD5 algorithms.
During the deciphering of data to be transmitted is calculated using AES, key used in transmitting terminal is to be and connect
What receiving end consulted in advance, the key can be one section of specific character, or the field being made up of numeral and letter.
When the first identification information and data to be transmitted are sent to receiving terminal by transmitting terminal, transmitting terminal can be by the first mark
Information and data to be transmitted are compressed into a packet and are sent to receiving terminal.It should be understood that in the embodiment of the present invention, except logical
First identification information and data to be transmitted are sent to receiving terminal by the form for crossing packet, can also be by other forms by first
Identification information and data to be transmitted are sent to receiving terminal.
Further, it is described according to the data transfer instruction obtain data to be transmitted the first identification information the step of wrap
Include:
Step a, data to be transmitted is determined according to the data transfer instruction.
Step b, the data total amount of the data to be transmitted is obtained, and calculated by predetermined encryption algorithm described to be transmitted
The deciphering of data, wherein, first identification information includes the data total amount and the deciphering.
Further, when transmitting terminal detects data transfer instruction, transmitting terminal determines to be passed according to data transfer instruction
Transmission of data, and the data total amount of data to be transmitted is obtained, and the deciphering of data to be transmitted is calculated by predetermined encryption algorithm.
It should be noted that when the content difference of data to be transmitted, corresponding deciphering is also different, therefore can pass through deciphering
To judge to transmit in data procedures between transmitting terminal and receiving terminal, whether data to be transmitted is tampered.
Step S20, the receiving terminal obtain the second identification information according to the data to be transmitted that is received, by described the
Two identification informations and first identification information are contrasted, and data accepted is determined according to the comparing result of contrast gained, and
The data accepted is sent to the transmitting terminal.
When receiving terminal receives the data to be transmitted of transmitting terminal transmission and during the first identification information, receiving terminal is according to being received
Data to be transmitted obtain the second identification information.Specifically, receiving terminal is gone out to be transmitted by the cipher key calculation consulted with transmitting terminal
The deciphering of data, and calculate the data total amount of received data to be transmitted.It is understood that the second identification information is
The deciphering and data total amount for the data to be transmitted that receiving terminal is received.
When receiving terminal gets the second identification information of data to be transmitted, receiving terminal marks the second identification information and first
Know information to be contrasted, obtain comparing result, the target identification information in the second identification information is determined according to comparing result, it is determined that
Data to be transmitted corresponding to target identification information, data to be transmitted corresponding to target identification information is designated as data accepted,
Data accepted is sent to transmitting terminal by receiving terminal.Wherein, target identification information is believed for the mark consistent with the first identification information
Breath.Specifically, identified when receiving terminal calculates the deciphering of received data to be transmitted and first according to predetermined encryption algorithm
The deciphering of information is consistent, and the data total amount of the data to be transmitted received is consistent with the data total amount in the first identification information
When, confirm that the first identification information and the second identification information are consistent;Decryption in the deciphering calculated and the first identification information
Code is inconsistent, and/or when data total amount in the data total amount and the first identification information of the data to be transmitted received is inconsistent,
Confirm that the first identification information and the second identification information are inconsistent.It should be noted that transmitting terminal and receiving terminal calculate number to be transmitted
AES according to deciphering is same AES.
Further, it is described to be contrasted second identification information and first identification information, according to contrast institute
Comparing result determine data accepted, and include the step of the data accepted is sent into the transmitting terminal:
Step c, second identification information and first identification information are contrasted, according to the contrast of contrast gained
As a result data accepted is determined.
Step d, the 3rd identification information of the data accepted is obtained, by the 3rd identification information and described received
Data are sent to the transmitting terminal.
Receiving terminal is contrasted the first identification information and the second identification information, obtains comparing result, according to comparing result
Determine identification information consistent with the first identification information in the second identification information, by the second identification information with the first identification information
Consistent identification information is designated as target identification information, and data to be transmitted corresponding to target identification information is designated as into data accepted.
When receiving terminal determines data accepted, the 3rd identification information of data accepted is obtained, that is, obtains the data of data accepted
Total amount, and the deciphering by predetermined encryption algorithm calculating data accepted.After receiving terminal gets three identification informations,
3rd identification information and data accepted are sent to transmission data by receiving terminal.
Step S30, when the transmitting terminal receives the data accepted, determined whether according to the data accepted
The data to be transmitted is resend to the receiving terminal.
When transmitting terminal receives the data accepted of transmitting terminal transmission, transmitting terminal determines whether weight according to data accepted
The new data to be transmitted that sends is to receiving terminal.
Further, when transmitting terminal receives the 3rd identification information and data accepted of receiving terminal transmission, according to the
Three identification informations and data accepted determine whether to resend data to be transmitted to receiving terminal.
Further, when receiving terminal determines the second identification information to be transmitted number consistent with the first identification information received
According to when, send a notification message to transmitting terminal.Transmitting terminal determines that receiving terminal is properly received to be passed according to the notification message received
Transmission of data, and determine whether to resend data to be transmitted to receiving terminal according to notification message.
Further, the data transmission method includes:
Step e, the receiving terminal determines data to be deleted according to the comparing result of contrast gained, and deletes described to be deleted
Data.
Further, after receiving terminal obtains the comparing result of the first identification information and the second identification information, receiving terminal root
Identification information inconsistent with the first identification information in the second identification information is determined according to comparing result, by the second identification information with
The inconsistent identification information of first identification information is designated as identification information to be deleted, determines corresponding to be transmitted of identification information to be deleted
Data, data to be transmitted corresponding to identification information to be deleted is designated as data to be deleted, deletes the data to be deleted.
The present embodiment according to the data transfer instruction by when transmitting terminal detects data transfer instruction, obtaining to be passed
First identification information of transmission of data, and first identification information and the data to be transmitted are sent to receiving terminal;It is described to connect
Receiving end obtains the second identification information according to the data to be transmitted received, by second identification information and first mark
Know information to be contrasted, data accepted is determined according to the comparing result of contrast gained, and the data accepted is sent to
The transmitting terminal;When the transmitting terminal receives the data accepted, determined whether again according to the data accepted
The data to be transmitted is sent to the receiving terminal.Realize is to determine the data transmitted between different system by identification information
It is no to be tampered;And data accepted is returned to by transmitting terminal by receiving terminal, determined by transmitting terminal according to data accepted
Data to be transmitted whether is resend to receiving terminal, receiving terminal is avoided and receives data transformation, or in data transmission procedure
The middle situation for loss of data occur occurs.
Further, data transmission method second embodiment of the present invention is proposed.
The difference of the data transmission method second embodiment and the data transmission method first embodiment is, reference
Fig. 3, data transmission method include:
Step S40, the current state of the data to be transmitted is revised as having sent state.
Step S30 includes:
Step S31, will institute corresponding with the data accepted when the transmitting terminal receives the data accepted
Data to be transmitted is stated from the status modifier that sent as reception state.
Step S32, the transmitting terminal detect whether the data to be transmitted in the state that sent be present.
Step S33, if existing in the data to be transmitted of state has been sent, resend in having sent state
The data to be transmitted give the receiving terminal.
When data to be transmitted is sent to receiving terminal by transmitting terminal, transmitting terminal (can manage the current state of data to be transmitted
Solve as state to be sent) it is revised as having sent state.When transmitting terminal receives the data accepted of receiving terminal transmission, transmitting terminal
Will data to be transmitted corresponding with data accepted from status modifier has been sent for reception state.Shape has been received when obtaining being in
During the data to be transmitted of state, transmitting terminal detects whether the data to be transmitted in the state that sent also be present.If in transmitting terminal also
In the presence of the data to be transmitted in the state that sent, transmitting terminal is then resend in having sent the data to be transmitted of state to connecing
Receiving end.
In embodiments of the present invention, the current state of data to be transmitted can be determined by specific status indicator.Such as may be used
It is in by the expression data to be transmitted of mark 1 and has sent state, represents that data to be transmitted is in reception state by mark 2;
Or by identify A represent data to be transmitted be in sent state, by identify B represent data to be transmitted be in received shape
State.
Further, when the data accepted that transmitting terminal is sent according to receiving terminal will be corresponding with data accepted to be transmitted
For data after status modifier has been sent as reception state, transmitting terminal deletes received data accepted, empty to save storage
Between.
Further, data transmission method also includes:
Step g, when the transmitting terminal does not receive the data accepted in preset time, the transmitting terminal is again
The data to be transmitted is sent to the receiving terminal.
Further, when transmitting terminal does not receive the data accepted of receiving terminal transmission in preset time, transmitting terminal
Data to be transmitted is resend to receiving terminal.In embodiments of the present invention, data to be transmitted is being sent to receiving terminal by transmitting terminal
Afterwards, transmitting terminal starts timer, starts timing.Preset time can be set according to specific needs, such as could be arranged to 3s, 5s,
Or 6s etc..
The present embodiment is by changing the state of data to be transmitted, by contrast in the state that sent and in having received shape
The data to be transmitted of state, determine the data to be transmitted (data to be transmitted that receiving terminal is not successfully received that receiving terminal is not successfully received
It is included in the data to be transmitted being tampered in transmitting procedure).When it is determined that receiving terminal be not successfully received data to be transmitted after, send
End resends data to be transmitted that receiving terminal is not successfully received to receiving terminal, improves the data between transmitting terminal and receiving terminal
The success rate of transmission.
Further, data transmission method 3rd embodiment of the present invention is proposed.
The difference of the data transmission method 3rd embodiment and the data transmission method first embodiment is, reference
Fig. 4, data transmission method include:
Step S50, the receiving terminal stores the data accepted, and detects whether the data accepted stores into
Work(.
Step S60, if data accepted storage failure, sends a notification message to the transmitting terminal.
Step S70, after the transmitting terminal receives the notification message, according to the notification message send again with it is described
The data to be transmitted corresponding to the data accepted of receiving terminal storage failure gives the receiving terminal.
After receiving terminal determines data accepted, the data accepted is stored, and detect whether data accepted stores into
Work(.If data accepted storage failure, receiving terminal then sends a notification message to transmitting terminal, to notify transmitting terminal to send reception again
The data to be transmitted of end storage failure is to receiving terminal.After transmitting terminal receives notification message, determine to receive according to notification message
The data accepted of end storage failure, data to be transmitted corresponding with the data accepted of receiving terminal storage failure is sent to and connect
Receiving end.
Further, if data accepted stores successfully, notification message also can be transmitted to transmitting terminal in receiving terminal, to notify to send out
Sending end has been properly received and has successfully stored data to be transmitted.
The present embodiment is by when receiving terminal storage fails received data to be transmitted, sending a notification message to transmission
End, the data to be transmitted that transmitting terminal resends storage failure is prompted to receiving terminal, to ensure that receiving terminal can successfully store institute
The data to be transmitted of reception, improve the success rate that receiving terminal obtains data.
Further, data transmission method fourth embodiment of the present invention is proposed.
The difference of the data transmission method fourth embodiment and the data transmission method first embodiment is, data
Transmission method includes:
Step h, the transmitting terminal calculate the number that the data to be transmitted is sent to the receiving terminal.
Step i, when the number is more than preset times, and receives data transfer instruction, the transmitting terminal is forbidden holding
Row sends operation of the data to be transmitted to the receiving terminal.
After transmitting terminal sends data to be transmitted to receiving terminal, transmitting terminal calculates is sent to receiving terminal by the data to be transmitted
Number, and judge whether calculated number is more than preset times.When transmitting terminal is more than preset times in the number calculated
In the case of when receiving data transfer instruction, transmitting terminal is forbidden performing the operation for sending data to be transmitted to receiving terminal.When being counted
When the number of calculation is less than or equal to preset times, transmitting terminal continues executing with transmission in the case where receiving data transfer instruction
Operation of the data to be transmitted to receiving terminal.
In the present embodiment, preset times can be set according to specific needs, such as could be arranged to 5 times, 10 times or 15
It is inferior.Data to be transmitted is sent in the number of receiving terminal it should be noted that being calculated in transmitting terminal, corresponding receiving terminal
Can be same receiving terminal, or different receiving terminals.When receiving terminal corresponding to the number calculated is same receiving terminal, table
The bright a certain receiving terminal of limitation receives the number of data to be transmitted;When receiving terminal corresponding to the number calculated is different receiving terminal
When, show to limit the number that transmitting terminal sends data to be transmitted.
The present embodiment limits the number that data to be transmitted is sent to receiving terminal by transmitting terminal, avoids receiving terminal abuse
The situation for the data that transmitting terminal is stored occurs.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium
On be stored with data distributing program.It should be noted that in the present embodiment, number is stored with the computer-readable recording medium
According to the data distributing program for sending terminal and data receiver.In other embodiments, a computer storage is may be configured as to be situated between
Matter data storage sends the data distributing program of terminal, and the data of another computer-readable storage medium data storage receiving terminal pass
Defeated program.
The data distributing program realizes following steps when being executed by processor:
When transmitting terminal detects data transfer instruction, the first of data to be transmitted is obtained according to the data transfer instruction
Identification information, and first identification information and the data to be transmitted are sent to receiving terminal;
The receiving terminal obtains the second identification information according to the data to be transmitted received, and the described second mark is believed
Breath and first identification information are contrasted, and data accepted is determined according to the comparing result of contrast gained, and by described in
Receive data and be sent to the transmitting terminal;
When the transmitting terminal receives the data accepted, determine whether to resend according to the data accepted
The data to be transmitted gives the receiving terminal.
Further, described the step of first identification information and the data to be transmitted are sent to receiving terminal it
Afterwards, following steps are realized when the data distributing program is executed by processor:
The current state of the data to be transmitted is revised as having sent state;
It is described when the transmitting terminal receives the data accepted, determined whether again according to the data accepted
Send the data to be transmitted includes to the step of receiving terminal:
, will be corresponding with the data accepted described to be transmitted when the transmitting terminal receives the data accepted
Data are from the status modifier that sent for reception state;
The transmitting terminal detects whether the data to be transmitted in the state that sent be present;
If existing in the data to be transmitted of state has been sent, resend in the state that sent described treats
Transmit data to the receiving terminal.
Further, after the described the step of data accepted is sent into the transmitting terminal, the data transfer
Following steps are realized when program is executed by processor:
When the transmitting terminal does not receive the data accepted in preset time, the transmitting terminal resends institute
Data to be transmitted is stated to the receiving terminal.
Further, after the described the step of data accepted is sent into the transmitting terminal, the data transfer
Following steps are realized when program is executed by processor:
The receiving terminal stores the data accepted, and detects whether the data accepted stores success;
If the data accepted storage failure, sends a notification message to the transmitting terminal;
After the transmitting terminal receives the notification message, sent according to the notification message and deposited with the receiving terminal again
The data to be transmitted corresponding to storing up the data accepted of failure gives the receiving terminal.
Further, it is described to be contrasted second identification information and first identification information, according to contrast institute
Comparing result determine data accepted, and include the step of the data accepted is sent into the transmitting terminal:
Second identification information and first identification information are contrasted, it is true according to the comparing result of contrast gained
Determine data accepted;
The 3rd identification information of the data accepted is obtained, the 3rd identification information and the data accepted are sent out
Give the transmitting terminal.
Further, after described the step of being contrasted second identification information and first identification information,
The data distributing program realizes following steps when being executed by processor:
The receiving terminal determines data to be deleted according to the comparing result of contrast gained, and deletes the data to be deleted.
Further, it is described according to the data transfer instruction obtain data to be transmitted the first identification information the step of wrap
Include:
Data to be transmitted is determined according to the data transfer instruction;
The data total amount of the data to be transmitted is obtained, and the data to be transmitted is calculated by predetermined encryption algorithm
Deciphering, wherein, first identification information includes the data total amount and the deciphering.
Further, following steps are realized when the data distributing program is executed by processor:
The transmitting terminal calculates the number that the data to be transmitted is sent to the receiving terminal;
When the number is more than preset times, and receives data transfer instruction, the transmitting terminal is forbidden performing transmission
The data to be transmitted gives the operation of the receiving terminal.
Computer-readable recording medium embodiment of the present invention and the basic phase of each embodiment of above-mentioned data transmission method
Together, will not be repeated here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of data transmission method, it is characterised in that the data transmission method comprises the following steps:
When transmitting terminal detects data transfer instruction, the first mark of data to be transmitted is obtained according to the data transfer instruction
Information, and first identification information and the data to be transmitted are sent to receiving terminal;
The receiving terminal obtains the second identification information according to the data to be transmitted that is received, will second identification information with
First identification information is contrasted, and determines data accepted according to the comparing result of contrast gained, and received described
Data are sent to the transmitting terminal;
When the transmitting terminal receives the data accepted, according to the data accepted determines whether to resend
Data to be transmitted gives the receiving terminal.
2. data transmission method as claimed in claim 1, it is characterised in that described by first identification information and described to treat
After the step of transmission data are sent to receiving terminal, in addition to:
The current state of the data to be transmitted is revised as having sent state;
It is described when the transmitting terminal receives the data accepted, determine whether to resend according to the data accepted
The data to be transmitted gives the step of receiving terminal to include:
, will the data to be transmitted corresponding with the data accepted when the transmitting terminal receives the data accepted
From the status modifier that sent for reception state;
The transmitting terminal detects whether the data to be transmitted in the state that sent be present;
If existing in the data to be transmitted of state has been sent, resend in having sent the described to be transmitted of state
Data give the receiving terminal.
3. data transmission method as claimed in claim 1, it is characterised in that it is described the data accepted is sent to it is described
After the step of transmitting terminal, in addition to:
The receiving terminal stores the data accepted, and detects whether the data accepted stores success;
If the data accepted storage failure, sends a notification message to the transmitting terminal;
After the transmitting terminal receives the notification message, sent to store with the receiving terminal again according to the notification message and lost
The data to be transmitted corresponding to the data accepted lost gives the receiving terminal.
4. data transmission method as claimed in claim 1, it is characterised in that described by second identification information and described
One identification information is contrasted, and determines data accepted according to the comparing result of contrast gained, and the data accepted is sent out
The step of giving the transmitting terminal includes:
Second identification information and first identification information are contrasted, determined according to the comparing result of contrast gained
Receive data;
The 3rd identification information of the data accepted is obtained, the 3rd identification information and the data accepted are sent to
The transmitting terminal.
5. data transmission method as claimed in claim 1, it is characterised in that described by second identification information and described
After the step of one identification information is contrasted, in addition to:
The receiving terminal determines data to be deleted according to the comparing result of contrast gained, and deletes the data to be deleted.
6. the data transmission method as described in any one of claim 1 to 5, it is characterised in that described according to the data transfer
The step of first identification information of instruction acquisition data to be transmitted, includes:
Data to be transmitted is determined according to the data transfer instruction;
The data total amount of the data to be transmitted is obtained, and the decryption of the data to be transmitted is calculated by predetermined encryption algorithm
Code, wherein, first identification information includes the data total amount and the deciphering.
7. data transmission method as claimed in claim 6, it is characterised in that the data transmission method includes:
The transmitting terminal calculates the number that the data to be transmitted is sent to the receiving terminal;
When the number is more than preset times, and receives data transfer instruction, the transmitting terminal is forbidden performing described in transmission
Data to be transmitted gives the operation of the receiving terminal.
8. a kind of data send terminal, it is characterised in that the data, which send terminal, to be included memory, processor and be stored in institute
The data distributing program that can be run on memory and on the processor is stated, the data distributing program is held by the processor
The step that transmitting terminal is corresponding in the data transmission method as any one of claim 1 to 7 is realized during row.
9. a kind of data receiving terminal, it is characterised in that the data receiving terminal includes memory, processor and is stored in institute
The data distributing program that can be run on memory and on the processor is stated, the data distributing program is held by the processor
The step that receiving terminal is corresponding in the data transmission method as any one of claim 1 to 7 is realized during row.
10. a kind of computer-readable recording medium, it is characterised in that data biography is stored with the computer-readable recording medium
Defeated program, the data transfer as any one of claim 1 to 7 is realized when the data distributing program is executed by processor
The step of method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710483562.XA CN107864116A (en) | 2017-06-22 | 2017-06-22 | Data transmission method, terminal and computer-readable recording medium |
PCT/CN2018/082623 WO2018233352A1 (en) | 2017-06-22 | 2018-04-11 | Data transmission method, device, terminal and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710483562.XA CN107864116A (en) | 2017-06-22 | 2017-06-22 | Data transmission method, terminal and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107864116A true CN107864116A (en) | 2018-03-30 |
Family
ID=61699146
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710483562.XA Pending CN107864116A (en) | 2017-06-22 | 2017-06-22 | Data transmission method, terminal and computer-readable recording medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107864116A (en) |
WO (1) | WO2018233352A1 (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018233352A1 (en) * | 2017-06-22 | 2018-12-27 | 平安科技(深圳)有限公司 | Data transmission method, device, terminal and computer-readable storage medium |
CN109241770A (en) * | 2018-08-10 | 2019-01-18 | 深圳前海微众银行股份有限公司 | Information value calculating method, equipment and readable storage medium storing program for executing based on homomorphic cryptography |
CN109600722A (en) * | 2018-11-14 | 2019-04-09 | 平安科技(深圳)有限公司 | Short message receives verification method and device, electronic equipment, storage medium |
CN110177151A (en) * | 2019-06-11 | 2019-08-27 | 北京搜狐新动力信息技术有限公司 | A kind of Point-to-Point Data Transmission method, system, receiving device and sending device |
CN110572421A (en) * | 2018-06-05 | 2019-12-13 | 北京京东尚科信息技术有限公司 | Data transmission method and system |
CN111435555A (en) * | 2019-01-14 | 2020-07-21 | 杰克缝纫机股份有限公司 | Data transmission and verification method, device and equipment and storage medium |
CN111629367A (en) * | 2020-05-19 | 2020-09-04 | 歌尔科技有限公司 | Data transmission method of terminal equipment and earphone, terminal equipment and storage medium |
CN111817955A (en) * | 2019-04-12 | 2020-10-23 | 阿里巴巴集团控股有限公司 | Data transmission system, method, device and equipment |
CN113365141A (en) * | 2021-05-10 | 2021-09-07 | 北京乐驾科技有限公司 | Wireless data transmission method, device and system |
CN113701832A (en) * | 2021-08-28 | 2021-11-26 | 上海光华仪表有限公司 | Control method and system of high-voltage union electromagnetic flowmeter |
CN114338826A (en) * | 2021-12-31 | 2022-04-12 | 海光信息技术股份有限公司 | Data transmission method, device, system and related equipment |
CN114553431A (en) * | 2022-01-27 | 2022-05-27 | 北京信息科技大学 | Communication method and device with memory function |
CN114826591A (en) * | 2022-05-26 | 2022-07-29 | 京东方科技集团股份有限公司 | Cross-device data transmission method, system and terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262472A (en) * | 2007-03-07 | 2008-09-10 | 力博特公司 | A multi-function protocol parser and its realization method |
US20090268736A1 (en) * | 2008-04-24 | 2009-10-29 | Allison Brian D | Early header CRC in data response packets with variable gap count |
CN104202774A (en) * | 2014-09-18 | 2014-12-10 | 东南大学 | Reliable and real-time industrial wireless local area network transmission method |
CN104283650A (en) * | 2014-11-05 | 2015-01-14 | 株洲南车时代电气股份有限公司 | High-level data link control data sending method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107864116A (en) * | 2017-06-22 | 2018-03-30 | 平安科技(深圳)有限公司 | Data transmission method, terminal and computer-readable recording medium |
-
2017
- 2017-06-22 CN CN201710483562.XA patent/CN107864116A/en active Pending
-
2018
- 2018-04-11 WO PCT/CN2018/082623 patent/WO2018233352A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262472A (en) * | 2007-03-07 | 2008-09-10 | 力博特公司 | A multi-function protocol parser and its realization method |
US20090268736A1 (en) * | 2008-04-24 | 2009-10-29 | Allison Brian D | Early header CRC in data response packets with variable gap count |
CN104202774A (en) * | 2014-09-18 | 2014-12-10 | 东南大学 | Reliable and real-time industrial wireless local area network transmission method |
CN104283650A (en) * | 2014-11-05 | 2015-01-14 | 株洲南车时代电气股份有限公司 | High-level data link control data sending method |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018233352A1 (en) * | 2017-06-22 | 2018-12-27 | 平安科技(深圳)有限公司 | Data transmission method, device, terminal and computer-readable storage medium |
CN110572421A (en) * | 2018-06-05 | 2019-12-13 | 北京京东尚科信息技术有限公司 | Data transmission method and system |
CN110572421B (en) * | 2018-06-05 | 2024-04-09 | 北京京东尚科信息技术有限公司 | Data transmission method, system and computer readable medium |
CN109241770A (en) * | 2018-08-10 | 2019-01-18 | 深圳前海微众银行股份有限公司 | Information value calculating method, equipment and readable storage medium storing program for executing based on homomorphic cryptography |
CN109600722A (en) * | 2018-11-14 | 2019-04-09 | 平安科技(深圳)有限公司 | Short message receives verification method and device, electronic equipment, storage medium |
CN109600722B (en) * | 2018-11-14 | 2021-11-02 | 平安科技(深圳)有限公司 | Short message receiving verification method and device, electronic equipment and storage medium |
CN111435555A (en) * | 2019-01-14 | 2020-07-21 | 杰克缝纫机股份有限公司 | Data transmission and verification method, device and equipment and storage medium |
CN111817955B (en) * | 2019-04-12 | 2022-10-21 | 阿里巴巴集团控股有限公司 | Data transmission system, method, device and equipment |
CN111817955A (en) * | 2019-04-12 | 2020-10-23 | 阿里巴巴集团控股有限公司 | Data transmission system, method, device and equipment |
CN110177151A (en) * | 2019-06-11 | 2019-08-27 | 北京搜狐新动力信息技术有限公司 | A kind of Point-to-Point Data Transmission method, system, receiving device and sending device |
CN111629367A (en) * | 2020-05-19 | 2020-09-04 | 歌尔科技有限公司 | Data transmission method of terminal equipment and earphone, terminal equipment and storage medium |
CN111629367B (en) * | 2020-05-19 | 2022-11-22 | 歌尔科技有限公司 | Data transmission method of terminal equipment and earphone, terminal equipment and storage medium |
CN113365141A (en) * | 2021-05-10 | 2021-09-07 | 北京乐驾科技有限公司 | Wireless data transmission method, device and system |
CN113701832A (en) * | 2021-08-28 | 2021-11-26 | 上海光华仪表有限公司 | Control method and system of high-voltage union electromagnetic flowmeter |
CN114338826A (en) * | 2021-12-31 | 2022-04-12 | 海光信息技术股份有限公司 | Data transmission method, device, system and related equipment |
CN114553431A (en) * | 2022-01-27 | 2022-05-27 | 北京信息科技大学 | Communication method and device with memory function |
CN114826591A (en) * | 2022-05-26 | 2022-07-29 | 京东方科技集团股份有限公司 | Cross-device data transmission method, system and terminal |
Also Published As
Publication number | Publication date |
---|---|
WO2018233352A1 (en) | 2018-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107864116A (en) | Data transmission method, terminal and computer-readable recording medium | |
KR101860655B1 (en) | Methods and systems for enabling communication with a receiver device in a network | |
US8959234B2 (en) | Method and system for providing online services corresponding to multiple mobile devices, server, mobile device, and computer program product | |
US8665829B2 (en) | Method for controlling devices based on NFC and device control system using the same | |
CN110852938B (en) | Display picture generation method, device and storage medium | |
EP3010262B1 (en) | Method for realizing cellphone without card and cellphone | |
CN111277361B (en) | Transmission block size determination method and communication device | |
KR20120021054A (en) | Method and apparatus for providing application service and thereof system | |
CN106484454A (en) | The processing method and processing device of difference AKU, upgrade method, system and device | |
CN106411517A (en) | Password resetting method and device | |
CN109995876A (en) | Document transmission method, device, system and computer storage medium | |
CN107948170A (en) | Interface requests parameter encryption method, device, equipment and readable storage medium storing program for executing | |
US9549319B1 (en) | Presence verification within a wireless environment | |
CN112787769B (en) | Method, device, equipment and storage medium for determining NFI | |
CN114630433A (en) | Method, terminal device and network device for transmitting uplink control information | |
CN107223317A (en) | Determine the method and device of modulation coding mode | |
CN109246695A (en) | Data transmission method, device and computer readable storage medium | |
CN108234676A (en) | The data download method and device of medical terminal, storage medium, server, terminal | |
CN108200059A (en) | Document transmission method, device, equipment and computer readable storage medium | |
KR101793527B1 (en) | System and method for policy control functions management mechanism | |
CN109287139A (en) | Data transmission method and device | |
CN113965999A (en) | PDCCH (physical Downlink control channel) checking method, sending method, terminal and network side equipment | |
CN107580137A (en) | Processing method, terminal and the computer-readable recording medium of presentation of information | |
US10306463B2 (en) | Secure data link for subscriber identification module (SIM)-based processor | |
US20150110119A1 (en) | Virtual gateway for machine to machine capillary network |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180330 |
|
RJ01 | Rejection of invention patent application after publication |