CN110492979A - A kind of incremental data transmission method, device, slave and storage medium - Google Patents

A kind of incremental data transmission method, device, slave and storage medium Download PDF

Info

Publication number
CN110492979A
CN110492979A CN201910779128.5A CN201910779128A CN110492979A CN 110492979 A CN110492979 A CN 110492979A CN 201910779128 A CN201910779128 A CN 201910779128A CN 110492979 A CN110492979 A CN 110492979A
Authority
CN
China
Prior art keywords
data
incremental data
incremental
status indicator
slave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910779128.5A
Other languages
Chinese (zh)
Other versions
CN110492979B (en
Inventor
张敏
王宏飞
王柯童
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Haixing Power Grid Technology Co Ltd
Hangzhou Hexing Electrical Co Ltd
Ningbo Henglida Technology Co Ltd
Original Assignee
Nanjing Haixing Power Grid Technology Co Ltd
Hangzhou Hexing Electrical Co Ltd
Ningbo Henglida Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Haixing Power Grid Technology Co Ltd, Hangzhou Hexing Electrical Co Ltd, Ningbo Henglida Technology Co Ltd filed Critical Nanjing Haixing Power Grid Technology Co Ltd
Priority to CN201910779128.5A priority Critical patent/CN110492979B/en
Publication of CN110492979A publication Critical patent/CN110492979A/en
Application granted granted Critical
Publication of CN110492979B publication Critical patent/CN110492979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements 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/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements 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/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a kind of incremental data transmission method, device, slave and storage mediums.By receiving host send include status indicator data acquisition instruction, the historic state in data acquisition instruction that the current state mark in data acquisition instruction that judgement is currently received was received with last time identifies whether identical, if it is, incremental data corresponding with historic state mark is sent again, if not, sending incremental data corresponding with current state mark.It can be seen that, the present invention by data acquisition instruct in status indicator can accurately judge incremental data whether transmission success, then corresponding processing is made, so as to avoid loss of data or the data transmission problems of Data duplication, the error rate in incremental data transmission process is reduced, ensure that the safety in incremental data transmission process.

Description

A kind of incremental data transmission method, device, slave and storage medium
Technical field
The present invention relates to field of data transmission, more particularly to a kind of incremental data transmission method, device, slave and storage Medium.
Background technique
In the disturbance of communication line environmental abnormality, the incremental data measured by slaves such as measuring devices is being sent to Loss, error code often occur during host, transmission is repeated several times or causes to transmit the data transmission problems such as data exception.In order to The generation of problem, carries out the transmission of incremental data using following two mode at present during reduction incremental transmission.
The first is the data transfer mode of high frequency low amounts grade, reduces single by reducing the incremental data of single transmission The influence amount of loss of data.But this mode is only capable of reducing the magnitude that incremental data is lost, and cannot fundamentally solve data The problem of loss.
The second way be in process of data communication, from host to slave initiate read incremental data communication, when by When communication environment upset leads to Communications failure, host then sends to slave and reads order again, it is desirable that slave sends the last time again The incremental data of transmission, slave receive read again order after to host send incremental data.When obtaining next increment data, from Machine receives the order of the reading next increment data of host transmission, then it is assumed that a upper incremental data is sent successfully, will be deleted slave A upper incremental data for middle storage, and next increment data are sent to host.But when due to communication environment upset slave simultaneously When not receiving the order, host, which will be sent, reads order again to read next increment data again, since slave can not be from stressed order Confirm that a upper incremental data is sent successfully, therefore not will be deleted an incremental data, and a upper incremental data is sent again, leads It causes repeated data to be transmitted several times and add up, causes data transmission fault.
It can be seen that can still generate the data transmission problems such as loss of data or Data duplication, nothing using both the above mode Method guarantees the safety in incremental data transmission process.
Summary of the invention
The object of the present invention is to provide a kind of incremental data transmission method, device, slave and storage mediums, can pass through data Status indicator in acquisition instruction accurately judge incremental data whether transmission success, slave is sent current if transmission success The corresponding incremental data of status indicator, historic state is identified corresponding incremental data and retransmitted by slave if transmitting failure. So as to avoid loss of data or the data transmission problems of Data duplication, the error rate in incremental data transmission process is reduced, It ensure that the safety in incremental data transmission process.
In order to solve the above technical problems, the present invention provides a kind of incremental data transmission method, it is applied to slave, this method packet It includes:
What receiving host was sent includes the data acquisition instruction of status indicator;Wherein, the state mark of equal increments data Sensible same, the status indicator of different incremental datas is different;
Judge that the current state mark in the data acquisition being currently received instruction refers to the data acquisition that last time receives Historic state in order identifies whether identical;
If so, sending incremental data corresponding with historic state mark again;
If not, sending incremental data corresponding with current state mark.
Preferably, further includes:
Checking mode is added to the incremental data.
Preferably, the checking mode is specially signature check mode or Cyclical Redundancy Check mode.
Preferably, further includes:
Whether normal detect communication link;
If not, prompt Communications failure.
Preferably, further includes:
Generate the transmission log comprising all sending instants of the incremental data.
In order to solve the above technical problems, the present invention provides a kind of incremental data transmission method, it is applied to host, this method packet It includes:
Generation includes the data acquisition instruction of status indicator;Wherein, the status indicator of equal increments data is identical, different The status indicator of incremental data is different;
The data acquisition instruction is sent to slave.
In order to solve the above technical problems, the present invention provides a kind of method for transmitting incremental data, this method comprises:
Host generation includes the data acquisition instruction of status indicator;Wherein, the status indicator of equal increments data is identical, The status indicator of different incremental datas is different, and sends the data acquisition instruction to slave;
Slave receives the data acquisition instruction, and judges the current state mark in the data acquisition being currently received instruction Know the historic state in the data acquisition instruction received with last time identify whether it is identical, if so, transmission is gone through with described again The corresponding incremental data of history status indicator, if not, sending incremental data corresponding with current state mark.
In order to solve the above technical problems, the present invention provides a kind of incremental data transmitting device, comprising:
Receiving module, for receiving host send include status indicator data acquisition instruction;Wherein, equal increments The status indicator of data is identical, and the status indicator of different incremental datas is different;
Judgment module, the current state mark in data acquisition instruction for judging to be currently received were received with last time Data acquisition instruction in historic state identify whether it is identical, if so, again send it is corresponding with historic state mark Incremental data, if not, sending corresponding with current state mark incremental data.
In order to solve the above technical problems, the present invention provides a kind of slave, including memory, for storing computer program;
Processor realizes incremental data transmission method as described in any one of the above embodiments when for executing the computer program The step of.
It is described computer-readable to deposit in order to solve the above technical problems, the present invention provides a kind of computer readable storage medium Computer program is stored on storage media, the computer program realizes increasing as described in any one of the above embodiments when being executed by processor The step of measuring data transmission method.
A kind of incremental data transmission method provided by the present invention includes in the instruction of each data acquisition that slave receives Stateful mark, the status indicator for obtaining equal increments data is identical, and the status indicator for obtaining different incremental datas is different.Pass through Judge that the current state in the data acquisition being currently received instruction identifies going through in the data acquisition instruction received with last time Whether history status indicator identical, so that it is determined that out the incremental data of last time whether transmission success;Transmission success is thought if different, Slave sends current state and identifies corresponding incremental data, avoids due to not knowing whether last incremental data sends into It repeats to send caused by function;Transmission failure is then thought if they are the same, and historic state is identified corresponding incremental data and sent out again by slave It send, sends the transmission problem for successfully avoiding loss of data until confirming.It can be seen that the present invention is instructed by data acquisition In status indicator can accurately judge incremental data whether transmission success, then make corresponding processing, so as to avoid The data transmission problems of loss of data or Data duplication reduce the error rate in incremental data transmission process, ensure that increment Safety in data transmission procedure.
In addition, a kind of incremental data transmitting device provided by the present invention, slave and storage medium are corresponding with the above method, With same beneficial effect.
Detailed description of the invention
In order to illustrate the embodiments of the present invention more clearly, attached drawing needed in the embodiment will be done simply below It introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill people For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the incremental data transmission method applied to slave provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of the incremental data transmission method applied to host provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of method for transmitting incremental data provided in an embodiment of the present invention;
Fig. 4 is a kind of structure chart of incremental data transmitting device provided in an embodiment of the present invention;
Fig. 5 is a kind of structure chart of slave provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole embodiments.Based on this Embodiment in invention, those of ordinary skill in the art are without making creative work, obtained every other Embodiment belongs to the scope of the present invention.
Core of the invention is to provide a kind of incremental data transmission method, device, slave and storage medium, can pass through data Status indicator in acquisition instruction accurately judge incremental data whether transmission success, slave is sent current if transmission success The corresponding incremental data of status indicator, historic state is identified corresponding incremental data and retransmitted by slave if transmitting failure. So as to avoid loss of data or the data transmission problems of Data duplication, the error rate in incremental data transmission process is reduced, It ensure that the safety in incremental data transmission process.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.
Fig. 1 is a kind of flow chart of the incremental data transmission method applied to slave provided in an embodiment of the present invention.Such as Fig. 1 It is shown, a kind of incremental data transmission method applied to slave, including step S101-S104.
Step S101: what receiving host was sent includes the data acquisition instruction of status indicator;Wherein, equal increments data Status indicator it is identical, the status indicators of different incremental datas is different.
Step S102: judge the number that the current state mark in the data acquisition being currently received instruction was received with last time It is identified whether according to the historic state in acquisition instruction identical.
In one embodiment, the data acquisition instruction for obtaining incremental data that slave receiving host is sent, data It include for determining whether incremental data sends successful status indicator in acquisition instruction.Wherein, for obtaining equal increments Corresponding status indicator is identical in the data acquisition instruction of data, and the data acquisition for obtaining different incremental datas instructs In corresponding status indicator be different.Specifically, slave can be according to the status indicator in the data acquisition instruction received, really Make whether host is successfully received an incremental data.After slave receives data acquisition instruction, obtain first wherein Status indicator, judge the current state received mark identified whether with the historic state received it is identical, if the same Illustrate that host is not received by the incremental data of slave last time transmission, last time data transmission fails need to obtain last time hair again The incremental data sent.If current status indicator is different from the status indicator that the last time obtains, illustrate that host needs to obtain New incremental data can be regarded as the incremental data transmission success of last time.
It is to be appreciated that the data acquisition instruction being currently received can be to refer to for obtaining the reading of new incremental data It enables, can also be the stressed instruction of the incremental data due to last time unsuccessful transmission, for obtaining last transmission.It needs to illustrate It is that the data acquisition instruction received the last time mentioned in the present embodiment refers to the number that receives nearest with current time interval According to acquisition instruction;The current state mark mentioned in the present embodiment and the state that historic state mark is in data acquisition instruction Mark is only to distinguish herein.
Step S103: if so, sending incremental data corresponding with historic state mark again;
In specific implementation, when slave judge the data acquisition being currently received instruction in current state mark with it is upper Historic state mark in the secondary data acquisition instruction received is identical, illustrates that host needs to obtain the increasing that last time is transmitted across again Data are measured, as historic state identifies corresponding incremental data in data acquisition instruction, then slave sends last time again and is transmitted across Incremental data.
Step S104: if not, sending incremental data corresponding with current state mark.
In specific implementation, when slave judge the data acquisition being currently received instruction in current state mark with it is upper Historic state mark in the secondary data acquisition instruction received is different, illustrates incremental data and history shape that host needs to obtain State identifies corresponding incremental data difference, represents the incremental data transmission success of last time transmission, then slave sends current state mark Know corresponding incremental data.Further, the incremental data that slave can send the last time is deleted, so that memory space is saved, It can also preferably avoid sending and make mistakes.
In one embodiment, incremental data is specially encrypted data.When slave sends incremental data to host, first Data are subjected to cryptographic operation, prevent data to be tampered with this, safety is higher.It should be noted that the specific method of encryption The present invention is not construed as limiting, as long as host and slave are using adaptable encryption method and decryption method.In addition, in other realities It applies in example, in order to improve the efficiency of transmission, incremental data can also be compressed, corresponding, host is also needed according to increment The compression type of data decompresses incremental data.
In one embodiment, after slave sends incremental data, the corresponding transmission log for generating record and sending information should The sending instant data acquisition instruction corresponding with the incremental data in information including incremental data is sent, convenient for after staff It is continuous to check.It should be understood that those skilled in the art can using the transmission log recording, other transmit information according to actual needs, It is not limited to both the above.
A kind of incremental data transmission method provided by the present invention includes in the instruction of each data acquisition that slave receives Stateful mark, the status indicator for obtaining equal increments data is identical, and the status indicator for obtaining different incremental datas is different.Pass through Judge that the current state in the data acquisition being currently received instruction identifies going through in the data acquisition instruction received with last time Whether history status indicator identical, so that it is determined that out the incremental data of last time whether transmission success;Transmission success is thought if different, Slave sends current state and identifies corresponding incremental data, avoids due to not knowing whether last incremental data sends into It repeats to send caused by function;Transmission failure is then thought if they are the same, and historic state is identified corresponding incremental data and sent out again by slave It send, sends the transmission problem for successfully avoiding loss of data until confirming.It can be seen that the present invention is instructed by data acquisition In status indicator can accurately judge incremental data whether transmission success, then make corresponding processing, so as to avoid The data transmission problems of loss of data or Data duplication reduce the error rate in incremental data transmission process, ensure that increment Safety in data transmission procedure.
On the basis of the above embodiments, incremental data transmission method further include: checking mode is added to incremental data.
In a particular embodiment, slave can be by way of increasing link protocol pair during sending incremental data to host Incremental data adds checking mode.It particularly may be divided into two kinds, a kind of checking mode is Cyclical Redundancy Check mode.Slave will use The verification data and incremental data that Cyclical Redundancy Check mode computation goes out send jointly to host, and host calculates number of links after receiving According to the verification data value in frame, if Framework computing verification data value is consistent with the verification data value that slave adds, host is thought Data are effective, otherwise it is assumed that error in data, and slave is required to retransmit incremental data.The method can prevent bus in data transmission dry It is abnormal the displacement of data caused by factors such as to disturb.Another checking mode is signature check mode, the label that slave receiving host issues Name mode and in this mode to data progress signature calculation, then host test answering, if test answer successfully if think that data have Effect, it is on the contrary then think data invalid, and slave is required to retransmit incremental data, to avoid incremental data quilt in data transmission Malice is distorted.It should be noted that checking mode is not limited to both the above, those skilled in the art can be according to actual needs Select suitable checking mode.
On the basis of the above embodiments, incremental data transmission method further include:
Whether normal detect communication link;
If not, prompt Communications failure.
Specifically, whether the communication link that slave can detect between host before sending incremental data connects normally, such as Fruit finds that communication abnormality then issues the prompt of Communications failure in time, and stops the transmission of incremental data, to reduce due to logical The abnormal caused incremental data of news sends failure.It should be noted that slave can be at any time in the case where establishing connection with host Carry out communication link detection, it is not limited to detect communication link before sending incremental data, with help staff and Shi Faxian communication abnormality, enables staff to repair in time.
Fig. 2 is a kind of flow chart of the incremental data transmission method applied to host provided in an embodiment of the present invention.Such as Fig. 2 It is shown, a kind of incremental data transmission method applied to host, including step S201, step S202.
Step S201: generation includes the data acquisition instruction of status indicator;Wherein, the status indicator of equal increments data Identical, the status indicator of different incremental datas is different;
Step S202: data acquisition instruction is sent to slave.
In specific implementation, host needs to generate data acquisition and instructs and be sent to slave when obtaining incremental data.Number According to including status indicator in acquisition instruction, wherein when the incremental data of acquisition and last time obtain it is identical when, by status indicator It is set as identical as the status indicator of last time;When the incremental data of acquisition and the difference of last time acquisition, data acquisition is instructed In status indicator be set as different from the status indicator of last time.It should be understood that when host receives incremental data not successfully, Then send again and identify identical data acquisition with last state and instruct, make slave tell host occur in last time transmission it is different Often, need to retransmit the incremental data of last time;When host has successfully received incremental data, then send with last state mark not Same data acquisition instruction, makes slave tell host last time transmission success, need to send new incremental data.For example, host is sent out Sending includes that the data acquisition of status indicator X is instructed to slave, after slave receives the instruction, sends incremental data accordingly To host;If host receives incremental data, transmission includes that the data acquisition of status indicator Y is instructed to slave, slave root It is judged that status indicator Y is different from status indicator X, it is known that last time incremental data is sent successfully, then is sent next increment data To host;If host does not receive incremental data, the data acquisition instruction that transmission includes status indicator X is repeated, slave connects After receiving known to last time incremental data transmission failure, then again send with status indicator X relative to incremental data.
A kind of incremental data transmission method provided by the present invention, host send data acquisition instruction in include shape State mark, the status indicator for obtaining equal increments data is identical, and the status indicator for obtaining different incremental datas is different.Keep slave logical In the data acquisition instruction that the current state mark crossed in the data acquisition instruction that judgement is currently received was received with last time Historic state identify whether it is identical, so that it is determined that out the incremental data of last time whether transmission success;Think if different transmission at Function, slave send current state and identify corresponding incremental data, avoid due to not knowing whether last incremental data is sent out It repeats to send caused by sending successfully;Transmission failure is then thought if they are the same, and historic state is identified corresponding incremental data weight by slave It is new to send, the transmission problem for successfully avoiding loss of data is sent until confirming.It can be seen that the present invention passes through data acquisition Status indicator in instruction can accurately judge incremental data whether transmission success, corresponding processing is then made, to keep away The data transmission problems for having exempted from loss of data or Data duplication reduce the error rate in incremental data transmission process, ensure that Safety in incremental data transmission process.
Fig. 3 is a kind of flow chart of method for transmitting incremental data provided in an embodiment of the present invention.As shown in figure 3, the party Method includes step S301, step S302 and step S303:
Step S301: host generation includes the data acquisition instruction of status indicator, wherein the state of equal increments data Identify identical, the status indicator difference of different incremental datas.
Step S302: data acquisition instruction is sent to slave by host.
The slave mentioned in the present embodiment can be the instrumentation devices for measurement, and host can be upper to communicate with slave Position machine, it is generally the case that the communication mode of host and slave is wire communication.Certainly, those skilled in the art can be according to reality Situation uses wire communication, and the present invention is not construed as limiting.
Specifically, host needs to generate data acquisition and instructs and be sent to slave when obtaining incremental data.Data acquisition It include status indicator in instruction, wherein when the incremental data of acquisition is identical as last time, set status indicator to and last time Status indicator it is identical;When the incremental data of acquisition and when last time difference, by data acquisition instruct in status indicator be set as It is different from the status indicator of last time.It should be understood that then being sent and last time shape again when host receives incremental data not successfully State identifies identical data acquisition instruction, so that slave is told host and exception occurs in last time transmission, needs in retransmission The incremental data of secondary transmission;When host has successfully received incremental data, then sends and identify different data acquisitions from last state Instruction, makes slave tell host last time transmission success, need to send new incremental data.
Step S303: slave receives data acquisition instruction, and judges current in the data acquisition being currently received instruction The historic state in data acquisition instruction that status indicator and last time receive identify whether it is identical, if so, send again with Historic state identifies corresponding incremental data, if not, sending incremental data corresponding with current state mark.
Specifically, slave can determine whether host succeeds according to the status indicator in the data acquisition instruction received Receive an incremental data.After slave receives data acquisition instruction, status indicator therein is obtained first, judgement is worked as Before historic state in the data acquisition instruction that receives with last time of current state mark in the data acquisition instruction that receives Identify whether it is identical, if the same illustrate host be not received by slave last time transmission incremental data, last time data transmission Failure needs to obtain the incremental data of last time transmission again.If current status indicator and the last status indicator obtained Difference then illustrates that host needs to obtain the incremental data different from the incremental data that last time obtains, that is, can be regarded as the increasing of last time Measure data transmission success.
It is to be appreciated that the data acquisition instruction being currently received can be to refer to for obtaining the reading of new incremental data It enables, can also be the stressed instruction of the incremental data due to last time unsuccessful transmission, for obtaining last transmission.It needs to illustrate It is that the data acquisition instruction received the last time mentioned in the present embodiment refers to the number that receives nearest with current time interval According to acquisition instruction;The current state mark mentioned in the present embodiment and the state that historic state mark is in data acquisition instruction Mark is only to distinguish herein.
A kind of incremental data transmission method provided by the present invention includes in the instruction of each data acquisition that slave receives Stateful mark, the status indicator for obtaining equal increments data is identical, and the status indicator for obtaining different incremental datas is different.Pass through Judge that the current state in the data acquisition being currently received instruction identifies going through in the data acquisition instruction received with last time Whether history status indicator identical, so that it is determined that out the incremental data of last time whether transmission success;Transmission success is thought if different, Slave sends current state and identifies corresponding incremental data, avoids due to not knowing whether last incremental data sends into It repeats to send caused by function;Transmission failure is then thought if they are the same, and historic state is identified corresponding incremental data and sent out again by slave It send, sends the transmission problem for successfully avoiding loss of data until confirming.It can be seen that the present invention is instructed by data acquisition In status indicator can accurately judge incremental data whether transmission success, then make corresponding processing, so as to avoid The data transmission problems of loss of data or Data duplication reduce the error rate in incremental data transmission process, ensure that increment Safety in data transmission procedure.
In the above-described embodiments, it is described in detail for being applied to the incremental data transmission method of slave, the present invention Also provide slave corresponding embodiment.It should be noted that the present invention is described the embodiment of slave from two angles, one Kind is the angle based on functional module, and another kind is hardware based angle.
Fig. 4 is a kind of structure chart of incremental data transmitting device provided in an embodiment of the present invention.As shown in figure 4, a kind of increasing Measure data transmission device, comprising:
Receiving module 40, for receiving host send include status indicator data acquisition instruction;Wherein, identical increasing The status indicator for measuring data is identical, and the status indicator of different incremental datas is different;
Judgment module 41, the current state mark in data acquisition instruction for judging to be currently received were received with last time To data acquisition instruction in historic state identify whether it is identical, if so, again send it is corresponding with historic state mark Incremental data, if not, sending incremental data corresponding with current state mark.
Since the embodiment of this part is corresponded to each other with the embodiment of method part, the embodiment of this part is referred to The description of the embodiment of method part wouldn't repeat here.
As a preferred embodiment, incremental data transmitting device further include:
Adding module, for adding checking mode to incremental data;Wherein checking mode be specially signature check mode or Cyclical Redundancy Check mode.
As a preferred embodiment, incremental data transmitting device further include:
Whether detection module is normal for detecting communication link;If not, prompt Communications failure.
As a preferred embodiment, incremental data transmitting device further include:
Generation module, for generating the transmission log of the sending instant comprising whole incremental datas.
A kind of incremental data transmitting device provided by the present invention includes in the instruction of each data acquisition that slave receives Stateful mark, the status indicator for obtaining equal increments data is identical, and the status indicator for obtaining different incremental datas is different.Pass through Judge that the current state in the data acquisition being currently received instruction identifies going through in the data acquisition instruction received with last time Whether history status indicator identical, so that it is determined that out the incremental data of last time whether transmission success;Transmission success is thought if different, Slave sends current state and identifies corresponding incremental data, avoids due to not knowing whether last incremental data sends into It repeats to send caused by function;Transmission failure is then thought if they are the same, and historic state is identified corresponding incremental data and sent out again by slave It send, sends the transmission problem for successfully avoiding loss of data until confirming.It can be seen that the present invention is instructed by data acquisition In status indicator can accurately judge incremental data whether transmission success, then make corresponding processing, so as to avoid The data transmission problems of loss of data or Data duplication reduce the error rate in incremental data transmission process, ensure that increment Safety in data transmission procedure.
Fig. 5 is a kind of structure chart of slave provided in an embodiment of the present invention.As shown in figure 5, a kind of slave, including memory 50, for storing computer program;
Processor 51, when for executing computer program the step of the incremental data transmission method of realization any of the above-described.
Wherein, processor 51 may include one or more processing cores, such as 4 core processors, 8 core processors Deng.Processor 51 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 51 also may include primary processor and coprocessor, main place Reason device is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.In In some embodiments, processor 51 can be integrated with GPU (Graphics Processing Unit, image processor), GPU For being responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 51 can also include AI (Artificial Intelligence, artificial intelligence) processor, the AI processor is for handling the calculating in relation to machine learning Operation.
Memory 50 may include one or more computer readable storage mediums, which can be with It is non-transient.Memory 50 may also include high-speed random access memory and nonvolatile memory, such as one or more A disk storage equipment, flash memory device.In the present embodiment, memory 50 is at least used to store following computer program 501, Wherein, after which is loaded and executed by processor 51, it can be realized disclosed obtain of aforementioned any embodiment and use Correlation step in the method for family operating habit.In addition, the resource that memory 50 is stored can also include 502 He of operating system Data 503 etc., storage mode can be of short duration storage or permanently store.Wherein, operating system 502 may include Windows, Unix, Linux etc..Data 503 can include but is not limited to diagnosis interaction data, diagnostic device signal etc..
In some embodiments, server, which may also include, has input/output interface 52, communication interface 53, power supply 54 and leads to Believe bus 55.
It will be understood by those skilled in the art that structure shown in Fig. 5 does not constitute the restriction to slave, it may include ratio Illustrate more or fewer components.
A kind of slave provided by the present invention, can be realized following method: wrap in each data acquisition instruction received Containing status indicator, the status indicator for obtaining equal increments data is identical, and the status indicator for obtaining different incremental datas is different.It is logical In the data acquisition instruction that the current state mark crossed in the data acquisition instruction that judgement is currently received was received with last time Historic state identify whether it is identical, so that it is determined that out the incremental data of last time whether transmission success;Think if different transmission at Function, slave send current state and identify corresponding incremental data, avoid due to not knowing whether last incremental data is sent out It repeats to send caused by sending successfully;Transmission failure is then thought if they are the same, and historic state is identified corresponding incremental data weight by slave It is new to send, the transmission problem for successfully avoiding loss of data is sent until confirming.It can be seen that the present invention passes through data acquisition Status indicator in instruction can accurately judge incremental data whether transmission success, corresponding processing is then made, to keep away The data transmission problems for having exempted from loss of data or Data duplication reduce the error rate in incremental data transmission process, ensure that Safety in incremental data transmission process.
The present invention also provides a kind of corresponding embodiments of host.It should be noted that the present invention is from two angles to host Embodiment be described, one is the angle based on functional module, another kind is hardware based angle.
Another kind incremental data transmitting device provided in an embodiment of the present invention, comprising:
Generation module, for generate include status indicator data acquisition instruction;Wherein, the state of equal increments data Identify identical, the status indicator difference of different incremental datas;
Sending module, for sending data acquisition instruction to slave.
Since the embodiment of this part is corresponded to each other with the embodiment of method part, the embodiment of this part is referred to The description of the embodiment of method part wouldn't repeat here.A kind of incremental data transmitting device provided by the present invention, beneficial to effect Fruit is identical as a kind of beneficial effect of incremental data transmission method applied to host of offer.
A kind of host provided in an embodiment of the present invention, including memory, for storing computer program;
Processor, when for executing computer program the step of the incremental data transmission method of realization any of the above-described.
Wherein, processor may include one or more processing cores, such as 4 core processors, 8 core processors etc.. Processor can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor also may include primary processor and coprocessor, main process task Device is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, Central processing unit);Coprocessor is the low power processor for being handled data in the standby state.In some realities It applies in example, processor can be integrated with GPU (Graphics Processing Unit, image processor), and GPU is for being responsible for The rendering and drafting of content to be shown needed for display screen.In some embodiments, processor can also include AI (Artificial Intelligence, artificial intelligence) processor, the AI processor is for handling the calculating operation in relation to machine learning.
Memory may include one or more computer readable storage mediums, which can be Non-transient.Memory may also include high-speed random access memory and nonvolatile memory, such as one or more magnetic Disk storage device, flash memory device.In the present embodiment, memory is at least used to store following computer program, wherein the meter After calculation machine program is loaded and executed by processor, it can be realized the disclosed acquisition user operation habits of aforementioned any embodiment Correlation step in method.In addition, the resource that memory is stored can also include operating system and data etc., storage mode can To be of short duration storage or permanently store.Wherein, operating system may include Windows, Unix, Linux etc..Data can wrap Include but be not limited to diagnosis interaction data, diagnostic device signal etc..
In some embodiments, server, which may also include, has input/output interface, communication interface, power supply and communication total Line.
It will be understood by those skilled in the art that the structure in the present embodiment does not constitute the restriction to host, may include Than illustrating more or fewer components.
A kind of incremental data transmission side applied to host of a kind of host provided by the present invention, beneficial effect and offer The beneficial effect of method is identical.
Finally, the present invention also provides a kind of corresponding embodiments of computer readable storage medium.Computer-readable storage medium It is stored with computer program in matter, is realized when computer program is executed by processor as above method embodiment (can be host The corresponding method in side is also possible to method corresponding from pusher side, can also be host computer side with from the corresponding method of pusher side) in record The step of.
It is understood that if the method in above-described embodiment is realized in the form of SFU software functional unit and as independence Product when selling or using, can store in a computer readable storage medium.Based on this understanding, of the invention Technical solution substantially all or part of the part that contributes to existing technology or the technical solution can be in other words It is expressed in the form of software products, which is stored in a storage medium, and it is each to execute the application The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk Etc. the various media that can store program code.
A kind of incremental data transmission method provided by the present invention, device, slave and storage medium have been carried out in detail above It is thin to introduce.Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration .It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, also Can be with several improvements and modifications are made to the present invention, these improvement and modification also fall into the protection scope of the claims in the present invention It is interior.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or equipment for including element.

Claims (10)

1. a kind of incremental data transmission method, which is characterized in that it is applied to slave, this method comprises:
What receiving host was sent includes the data acquisition instruction of status indicator;Wherein, the status indicator phase of equal increments data Together, the status indicator of different incremental datas is different;
In judging that current state mark and the data acquisition that last time receives in the data acquisition being currently received instruction instruct Historic state identify whether it is identical;
If so, sending incremental data corresponding with historic state mark again;
If not, sending incremental data corresponding with current state mark.
2. incremental data transmission method according to claim 1, which is characterized in that further include:
Checking mode is added to the incremental data.
3. incremental data transmission method according to claim 2, which is characterized in that the checking mode is specially school of signing Test mode or Cyclical Redundancy Check mode.
4. incremental data transmission method according to claim 1, which is characterized in that further include:
Whether normal detect communication link;
If not, prompt Communications failure.
5. incremental data transmission method according to claim 1, which is characterized in that further include:
Generate the transmission log comprising all sending instants of the incremental data.
6. a kind of incremental data transmission method, which is characterized in that it is applied to host, this method comprises:
Generation includes the data acquisition instruction of status indicator;Wherein, the status indicator of equal increments data is identical, different increments The status indicator of data is different;
The data acquisition instruction is sent to slave.
7. a kind of method for transmitting incremental data, which is characterized in that this method comprises:
Host generation includes the data acquisition instruction of status indicator;Wherein, the status indicator of equal increments data is identical, different The status indicator of incremental data is different, and sends the data acquisition instruction to slave;
Slave receives data acquisition instruction, and judge the current state mark in the data acquisition being currently received instruction with Historic state in the instruction of data acquisition that last time receives identify whether it is identical, if so, sending and the history shape again State identifies corresponding incremental data, if not, sending incremental data corresponding with current state mark.
8. a kind of incremental data transmitting device characterized by comprising
Receiving module, for receiving host send include status indicator data acquisition instruction;Wherein, equal increments data Status indicator it is identical, the status indicators of different incremental datas is different;
Judgment module, the number that the current state mark in data acquisition instruction for judging to be currently received was received with last time Identified whether according to the historic state in acquisition instruction it is identical, if so, sending corresponding with historic state mark increasing again Data are measured, if not, sending incremental data corresponding with current state mark.
9. a kind of slave, which is characterized in that including memory, for storing computer program;
Processor realizes that incremental data described in any one of claim 1 to 5 such as is transmitted when for executing the computer program The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes such as incremental data transmission side described in any one of claim 1 to 5 when the computer program is executed by processor The step of method.
CN201910779128.5A 2019-08-22 2019-08-22 Incremental data transmission method and device, slave and storage medium Active CN110492979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910779128.5A CN110492979B (en) 2019-08-22 2019-08-22 Incremental data transmission method and device, slave and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910779128.5A CN110492979B (en) 2019-08-22 2019-08-22 Incremental data transmission method and device, slave and storage medium

Publications (2)

Publication Number Publication Date
CN110492979A true CN110492979A (en) 2019-11-22
CN110492979B CN110492979B (en) 2022-10-28

Family

ID=68552784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910779128.5A Active CN110492979B (en) 2019-08-22 2019-08-22 Incremental data transmission method and device, slave and storage medium

Country Status (1)

Country Link
CN (1) CN110492979B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030220944A1 (en) * 2002-04-03 2003-11-27 Lyman Schottland Paul Joseph Delta replication of source files and packages across networked resources
CN102271034A (en) * 2010-12-31 2011-12-07 重庆重邮信科通信技术有限公司 Long term evolution (LTE) uplink hybrid automatic repeat request (HARQ) control method
CN104348849A (en) * 2013-07-25 2015-02-11 腾讯科技(深圳)有限公司 Instant communication key-value data issuing method, server, client and system
CN108111598A (en) * 2017-12-19 2018-06-01 腾讯科技(深圳)有限公司 Delivery method, device and the storage medium of cloud disk data
CN109388671A (en) * 2018-10-10 2019-02-26 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030220944A1 (en) * 2002-04-03 2003-11-27 Lyman Schottland Paul Joseph Delta replication of source files and packages across networked resources
CN102271034A (en) * 2010-12-31 2011-12-07 重庆重邮信科通信技术有限公司 Long term evolution (LTE) uplink hybrid automatic repeat request (HARQ) control method
CN104348849A (en) * 2013-07-25 2015-02-11 腾讯科技(深圳)有限公司 Instant communication key-value data issuing method, server, client and system
CN108111598A (en) * 2017-12-19 2018-06-01 腾讯科技(深圳)有限公司 Delivery method, device and the storage medium of cloud disk data
CN109388671A (en) * 2018-10-10 2019-02-26 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110492979B (en) 2022-10-28

Similar Documents

Publication Publication Date Title
CA1315008C (en) System permitting peripheral interchangeability
US8042004B2 (en) Diagnosing communications between computer systems
CN107122277A (en) The wrong test system of PCIERAS notes and method based on PCIE protocol analyzers
CN109167699A (en) The method and apparatus for handling the state of the node of block chain
CN109587112A (en) It is a kind of send data method, receive data method, equipment and system
CN101677277B (en) MODBUS-RTU protocol conformance test method
CN104914815A (en) Processor monitoring method, device and system
CN109299193A (en) Method of data synchronization and relevant device
CN110489320A (en) Restoring method, device, terminal device and the medium of test data
US9037910B2 (en) SAS self-test operations
CN103312554B (en) A kind of method of testing of multiserver interactive service and system
CN110492979A (en) A kind of incremental data transmission method, device, slave and storage medium
CN104780123A (en) Network packet receiving and sending processing device and design method thereof
CN102884744B (en) For protecting up for the method and apparatus of the packet transmitted by interface
US20220398177A1 (en) Error rate measuring apparatus and error rate measuring method
CN112965915B (en) Method, device, equipment and storage medium for detecting satellite-borne equipment
CN108028530B (en) ESD detection device, integrated circuit and method applied to digital integrated electronic circuit
CN111786842B (en) Data processing method and hardware-in-the-loop test system
CN115098137A (en) Upgrading method, device, detector, system and storage medium of battery protection board
CN115129509A (en) Data transmission method, device and medium
CN110083478B (en) Data recovery method, data recovery system and solid state disk
CN110493247A (en) A kind of distribution terminal communication check method, system, equipment and computer media
CN112363975A (en) Interaction method and interaction system for configuration software and FPGA
CN111930582A (en) System management bus detection platform, processor and system management bus detection method
CN110519116B (en) Cyclic redundancy check code storage comparison module and switching equipment performance test system

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