CN102970104A - Method for acquiring data and server - Google Patents

Method for acquiring data and server Download PDF

Info

Publication number
CN102970104A
CN102970104A CN2012104106468A CN201210410646A CN102970104A CN 102970104 A CN102970104 A CN 102970104A CN 2012104106468 A CN2012104106468 A CN 2012104106468A CN 201210410646 A CN201210410646 A CN 201210410646A CN 102970104 A CN102970104 A CN 102970104A
Authority
CN
China
Prior art keywords
data
frame number
numbering
data frame
terminal equipment
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
CN2012104106468A
Other languages
Chinese (zh)
Other versions
CN102970104B (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.)
Beijing Jingwei Hirain Tech Co Ltd
Original Assignee
Beijing Jingwei Hirain Tech 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 Beijing Jingwei Hirain Tech Co Ltd filed Critical Beijing Jingwei Hirain Tech Co Ltd
Priority to CN201210410646.8A priority Critical patent/CN102970104B/en
Publication of CN102970104A publication Critical patent/CN102970104A/en
Application granted granted Critical
Publication of CN102970104B publication Critical patent/CN102970104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method for acquiring data. The method includes receiving first data transmitted by a terminal device, storing the first data to a first storage space, judging whether data loss happens or not, determining a data frame number of lost data according to the data frame number of the first data and storing the data frame number of the lost data to a second storage space corresponding to the terminal device when determining that data loss happens, reading the data frame number of the lost data from the second storage space after the terminal device transmits the first data of a current data group, transmitting a lost data acquiring instruction with the data frame number of the lost data to the corresponding terminal device, receiving the lost data transmitted by the terminal device and for response of the instruction and storing the data to the first storage space. The method achieves acquisition of complete real-time data, and avoids inconvenience in work and life caused by data loss. A server is further disclosed.

Description

A kind of method and server that obtains data
Technical field
The present invention relates to data communication technology field, more particularly, relate to a kind of method and server that obtains data.
Background technology
Nowadays, along with the development of data communication technology, successfully be applied to the every aspect of current scientific and technological industry and daily life based on the acquisition technique of the real time data of wired or wireless communication mode.
In the collection and memory technology of real time data, whole system comprises host computer, terminal equipment also has client, generally speaking, the disappearance that is difficult for causing data based on the Data acquisition and storage of wire transmission pattern, when host computer, terminal equipment are in the storehouse, be furnished with wireless telegon in this storehouse, Data acquisition and storage just becomes the data communication technology based on wireless communication mode.
Normal, when terminal equipment sent real time data to host computer, host computer received real time data and it is stored in the database of self, again the real time data in the database is sent to client, to satisfy the needs of client.But, if when terminal equipment is drawn out the storehouse with wireless network, perhaps equipment cuts off the power supply suddenly, will be so that the real time data partial loss that gathers in the host computer, again recover under normal circumstances, this part missing data also can't obtain again, so just causes client can't receive complete real time data, and then affected the correctness that follow-up data is analyzed, make troubles for work and life.
Summary of the invention
In view of this, the invention provides a kind of data method that obtains, with the inconvenience that realizes obtaining complete real time data, avoids shortage of data to bring to work and life.
A kind of method of obtaining data comprises:
The the first data receiving terminal apparatus transmission, that carry predefined Frame numbering, and store described the first data to first memory space corresponding with described terminal equipment;
Frame numbering according to described the first data judges whether to occur loss of data, when determining loss of data occurs, Frame numbering according to described the first data, determine the Frame numbering of missing data, and the Frame numbering of storing described missing data is to second memory space corresponding with described terminal equipment;
Send described first data of current data group when described terminal equipment after, read the Frame of described missing data from described the second memory space and number, the missing data that sends the Frame numbering that carries described missing data obtains instruction to corresponding terminal equipment;
Receiving described terminal equipment responds the missing data of described instruction transmission and it is stored to described the first memory space.
Preferably, described Frame is numbered the arithmetic progression with default tolerance;
Described Frame numbering according to described the first data judges whether to occur loss of data, comprising:
Calculate the difference between the Frame numbering of described the first data of described first data of current reception and a upper reception;
Judge whether described difference is described tolerance, if, then determine not occur shortage of data, otherwise, determine to occur shortage of data;
Number the Frame numbering of determining missing data according to the Frame of described the first data, comprising:
Determine the Frame numbering of the first data of current reception and between the Frame numbering of the first data of a reception and with described on the Frame numbering of the first data of a reception differ the numbering of the integral multiple of described tolerance;
Described numbering is defined as the Frame numbering of described obliterated data.
Preferably, send described first data of current data group when described terminal equipment after, read the Frame numbering of described missing data from described the second memory space before, also comprise:
Gather pre-stored in described terminal equipment, carry the second data of the first minimum data frame number;
Gather described the first data that carry the second minimum data frame number in described the first memory space;
Obtain described the first minimum data frame number and described the second minimum data frame number, and calculate the difference between described the first minimum data frame number and the second minimum data frame number;
When the difference between described the first minimum data frame number and the second minimum data frame number less than zero the time, determine between described the first minimum data frame number and described the second minimum data frame number and differ the numbering of the integral multiple of described tolerance with described the first minimum data frame number, deposit described numbering and described the first minimum data frame number in second memory space corresponding with described terminal equipment.
Preferably, send described first data of current data group when described terminal equipment after, read the Frame numbering of described missing data from described the second memory space before, also comprise:
Gather pre-stored in described terminal equipment, carry the second data of the first maximum data frame number;
Gather described the first data that carry the second maximum data frame number in described the first memory space;
Obtain described the first maximum data frame number and described the second maximum data frame number, and calculate the difference between described the first maximum data frame number and the second maximum data frame number;
When the difference between described the first maximum data frame number and the second maximum data frame number greater than zero the time, determine between described the first maximum data frame number and described the second maximum data frame number and differ the numbering of the integral multiple of described tolerance with described the first maximum data frame number, deposit described numbering and described the first maximum data frame number in second memory space corresponding with described terminal equipment.
Preferably, described terminal equipment continues receive data, it is characterized in that, send described first data of current data group when described terminal equipment after, read the Frame numbering of described missing data from described the second memory space before, also comprise:
Gather pre-stored in described terminal equipment, carry the second data of the first minimum data frame number, the first maximum data frame number;
Gather the first data that carry the second maximum data frame number in described the first memory space;
Obtain described the first minimum data frame number, the first maximum data frame number and described the second maximum data frame number, calculate difference between described the first minimum data frame number and described the second maximum data frame number;
Difference is not described tolerance between described the first minimum data frame number and described the second maximum data frame number, and described difference is greater than zero the time, determine between described the first minimum data frame number and described the second maximum data frame number and differ the numbering of described tolerance integral multiple with described the second maximum data frame number, deposit described numbering in second memory space corresponding with described terminal equipment.
A kind of server comprises:
The first that receiving terminal apparatus sends, as to carry the first data of predefined Frame numbering receiving element;
Link to each other with described the first receiving element, described the first data of storage to the first processing unit of corresponding the first memory space of described terminal equipment;
Link to each other, judge whether to occur according to the Frame numbering of described the first data the judging unit of loss of data with described the first processing unit;
Link to each other with described judging unit, when loss of data determine to occur when, according to the Frame numbering of described the first data, determine the determining unit of the Frame numbering of missing data;
Link to each other with described determining unit, the Frame numbering of the described missing data of storage to the second processing unit of corresponding the second memory space of described terminal equipment;
After linking to each other with described the second processing unit, sending described first data of current data group when described terminal equipment, read the reading unit of the Frame numbering of described missing data from described the second memory space;
The missing data that links to each other, sends the Frame numbering that carries described missing data with described reading unit obtains instruction to the transmitting element of corresponding terminal equipment;
Linking to each other, receive described terminal equipment with described transmitting element responds the missing data of described instruction transmission and it is stored to the second receiving element of described the first memory space.
Preferably, described Frame is numbered the arithmetic progression with default tolerance;
Described judging unit comprises:
Calculate the first computing module of the difference between the Frame numbering of described the first data of described first data of current reception and a upper reception;
With the first judge module that described the first computing module links to each other, described the first judge module judges whether described difference is described tolerance, if, then determine not occur shortage of data, otherwise, determine to occur shortage of data;
Described determining unit comprises:
Determine the Frame numbering of the first data of current reception and between the Frame numbering of the first data of a reception and with described on the Frame numbering of the first data of a reception differ the numbering determination module of numbering of the integral multiple of described tolerance;
Link to each other, described numbering be defined as the Frame numbering determination module of the Frame numbering of described obliterated data with described numbering determination module.
Preferably, described server also comprises:
Gather pre-stored in described terminal equipment, carry the first collecting unit of the second data of the first minimum data frame number;
Link to each other, gather the second collecting unit that carries described first data of the second minimum data frame number in described the first memory space with described the first memory space;
Link to each other, obtain described the first minimum data frame number and described the second minimum data frame number with described the first collecting unit, the second collecting unit, and calculate the second computing unit of the difference between described the first minimum data frame number and the second minimum data frame number;
The first determining unit that links to each other with described the second computing unit and described reading unit, when the difference between described the first minimum data frame number and the second minimum data frame number less than zero the time, described the first determining unit is determined between described the first minimum data frame number and described the second minimum data frame number and is differed the numbering of the integral multiple of described tolerance with described the first minimum data frame number, deposits described numbering and described the first minimum data frame number in second memory space corresponding with described terminal equipment.
Preferably, described server also comprises:
Gather pre-stored in described terminal equipment, carry the 3rd collecting unit of the second data of the first maximum data frame number;
Link to each other, gather the 4th collecting unit that carries described first data of the second maximum data frame number in described the first memory space with described the first memory space;
Link to each other, obtain described the first maximum data frame number and described the second maximum data frame number with described the 3rd collecting unit, the 4th collecting unit, and calculate the 3rd computing unit of the difference between described the first maximum data frame number and the second maximum data frame number;
The second determining unit that links to each other with described the 3rd computing unit and described reading unit, when the difference between described the first maximum data frame number and the second maximum data frame number greater than zero the time, described the second determining unit is determined between described the first minimum data frame number and described the second minimum data frame number and is differed the numbering of the integral multiple of described tolerance with described the first maximum data frame number, deposits described numbering and described the first maximum data frame number in second memory space corresponding with described terminal equipment.
Preferably, described terminal equipment continues receive data, it is characterized in that, also comprises:
Gather pre-stored in described terminal equipment, carry the 5th collecting unit of the second data of the first minimum data frame number, the first maximum data frame number;
Link to each other, gather the 6th collecting unit that carries the first data of the second maximum data frame number in described the first memory space with described the first memory space;
Link to each other, obtain described the first minimum data frame number, the first maximum data frame number and described the second maximum data frame number with described the 5th collecting unit, the 6th collecting unit, calculate the 4th computing unit of difference between described the first minimum data frame number and described the second maximum data frame number;
The 3rd determining unit that links to each other with described the 4th computing unit and described reading unit, between described the first minimum data frame number and described the second maximum data frame number difference for described tolerance, and described difference is greater than zero the time, described the 3rd determining unit is determined between described the first minimum data frame number is greater than described the second maximum data frame number and is differed the numbering of described tolerance integral multiple with described the second maximum data frame number, deposits described numbering in second memory space corresponding with described terminal equipment.
Can find out from above-mentioned technical scheme, the invention provides a kind of method of obtaining data, comprise the first data receiving terminal apparatus transmission, that carry predefined Frame numbering, and store described the first data to first memory space corresponding with described terminal equipment; Frame numbering according to described the first data judges whether to occur loss of data, when determining loss of data occurs, Frame numbering according to described the first data, determine the Frame numbering of missing data, and the Frame numbering of storing described missing data is to second memory space corresponding with described terminal equipment; When terminal equipment draws in the storehouse with wireless network again, perhaps in the situation of equipment Power resumption, this moment, terminal equipment sent described the first data.Send described first data of current data group when described terminal equipment after, read the Frame of described missing data from described the second memory space and number, the missing data that sends the Frame numbering that carries described missing data obtains instruction to corresponding terminal equipment; Terminal equipment sends described missing data again like this, at last missing data is stored to the first memory space of preserving real time data.Therefore, obtained complete real time data, and then guaranteed the integrality of client to the data subsequent analysis, the inconvenience of having avoided shortage of data to bring to work and life.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the disclosed a kind of method flow diagram that obtains data of the embodiment of the invention;
Fig. 2 is the disclosed a kind of method flow diagram that obtains data of another embodiment of the present invention;
Fig. 3 is the disclosed a kind of method flow diagram that obtains data of another embodiment of the present invention;
Fig. 4 is the disclosed a kind of method flow diagram that obtains data of another embodiment of the present invention;
Fig. 5 is the disclosed a kind of method flow diagram that obtains data of another embodiment of the present invention;
Fig. 6 is the structured flowchart of the disclosed a kind of server of the embodiment of the invention;
Fig. 7 is the structured flowchart of the disclosed a kind of server of another embodiment of the present invention;
Fig. 8 is the structured flowchart of the disclosed a kind of server of another embodiment of the present invention;
Fig. 9 is the structured flowchart of the disclosed a kind of server of another embodiment of the present invention;
Figure 10 is the structured flowchart of the disclosed a kind of server of another embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention discloses a kind of method of obtaining data, with the inconvenience that realizes obtaining complete real time data, avoids shortage of data to bring to work and life.
A kind of method of obtaining data as shown in Figure 1, may further comprise the steps:
The first data S101, receiving terminal apparatus transmission, that carry predefined Frame numbering, and store described the first data to first memory space corresponding with described terminal equipment;
S102, judge whether to occur loss of data according to the Frame of described the first data numbering, if determine to occur loss of data, then execution in step S103 if determine loss of data does not occur, then enters normal flow;
S103, according to the Frame of described the first data numbering, determine the Frame numbering of missing data, and the Frame numbering of storing described missing data is to second memory space corresponding with described terminal equipment;
S104, send described first data of current data group when described terminal equipment after, read the Frame numbering of described missing data from described the second memory space;
The missing data that S105, transmission carry the Frame numbering of described missing data obtains instruction to corresponding terminal equipment;
S106, the described terminal equipment of reception respond the missing data of described instruction transmission and it are stored to described the first memory space.
Can find out from the disclosed method of obtaining data of present embodiment, the method comprises the first data receiving terminal apparatus transmission, that carry predefined Frame numbering, and stores described the first data to first memory space corresponding with described terminal equipment; Frame numbering according to described the first data judges whether to occur loss of data, when determining loss of data occurs, Frame numbering according to described the first data, determine the Frame numbering of missing data, and the Frame numbering of storing described missing data is to second memory space corresponding with described terminal equipment; So, when terminal equipment draws in the storehouse with wireless network again, perhaps in the situation of equipment Power resumption, at this moment, terminal equipment has sent described the first data.And send described first data of current data group when described terminal equipment after, read the Frame of described missing data from described the second memory space and number, the missing data that sends the Frame numbering that carries described missing data obtains instruction to corresponding terminal equipment; Terminal equipment sends described missing data again like this, at last missing data is stored to the first memory space of preserving real time data.Therefore, just can obtain complete real time data, and then guarantee the integrality of client to the data subsequent analysis, the inconvenience of having avoided shortage of data to bring to work and life.
In the disclosed method of obtaining data of above-described embodiment, if a plurality of terminal equipments are in wake-up states, and the data acquisition software of automatically giving host computer sends the real time data of up till now terminal equipment collection, in advance a plurality of terminal equipments are numbered, and to be numbered for the data of each terminal equipment collection, terminal equipment can leave the Frame numbering that gathers in self storage device of reference numeral in order, after data acquisition in the corresponding terminal equipment is complete, can carry out the collection of next terminal equipment real time data according to the order of numbering.
When determining that loss of data does not occur, then enter normal flow, so-called old process is exactly real time data to the first memory space that storage is obtained in fact, and client device can obtain the complete real time data that is stored to the first memory space.
In order to gather easily real time data, when Frame is numbered, need to select best ordered series of numbers, according to certain rule the real time data Frame is numbered.Therefore, another embodiment of the present invention also discloses a kind of method of obtaining data, as shown in Figure 2, may further comprise the steps:
The first data S101, receiving terminal apparatus transmission, that carry predefined Frame numbering, and store described the first data to first memory space corresponding with described terminal equipment;
Wherein, described Frame is numbered the arithmetic progression with default tolerance;
S102, judge whether to occur loss of data according to the Frame of described the first data numbering, if determine to occur loss of data, then execution in step S103 if determine loss of data does not occur, then enters normal flow;
Wherein, step S102 comprises:
Difference between the Frame numbering of described first data of S1021, described the first data of calculating current reception and a upper reception;
S1022, judge whether described difference is described tolerance, if, determine not occur shortage of data, execution in step S103 then, otherwise, determine shortage of data occurs, then enter normal flow;
S103, according to the Frame of described the first data numbering, determine the Frame numbering of missing data, and the Frame numbering of storing described missing data is to second memory space corresponding with described terminal equipment;
Wherein, step S103 comprises:
S1031, determine the Frame numbering of the first data of current reception and between the Frame numbering of the first data of a reception and with described on the Frame numbering of the first data of a reception differ the numbering of the integral multiple of described tolerance;
S1032, described numbering is defined as the Frame numbering of described obliterated data;
The Frame numbering of S1033, the described missing data of storage is to second memory space corresponding with described terminal equipment;
S104, send described first data of current data group when described terminal equipment after, read the Frame numbering of described missing data from described the second memory space;
The missing data that S105, transmission carry the Frame numbering of described missing data obtains instruction to corresponding terminal equipment;
S106, the described terminal equipment of reception respond the missing data of described instruction transmission and it are stored to described the first memory space.
In the disclosed method of obtaining data of present embodiment, if the Frame numbering is decided to be the arithmetic progression with default tolerance, for example from 1 to N natural sequence, when receiving terminal apparatus sends, carry the first data of predefined Frame numbering, data 1, data 2, data 3 ... data N, and store described the first data to first memory space corresponding with described terminal equipment, for example, the data that are stored to the first memory space are data 1, data 2, data 3, at this moment, if terminal equipment is drawn out the storehouse with wireless network, perhaps equipment cuts off the power supply suddenly, host computer just can not collect the part real time data, when again recovering normal condition, the first data that carry predefined Frame numbering that again can receiving terminal apparatus send this moment, data 11 ... data N, calculate the first data of current reception, the first data of data 10 and a upper reception, difference between the Frame numbering of data 3, difference is 7, judge that described difference is not tolerance 1, then determine to occur loss of data, Frame numbering according to the first data, determine the Frame numbering of missing data, and the Frame numbering of storage missing data is to second memory space corresponding with terminal equipment, this is, just can determine that the Frame numbering of missing data is between 3 and 10, be respectively 4,5,6,7,8,9, the Frame numbering that these numberings is decided to be missing data, be stored to second memory space corresponding with terminal equipment, send described first data of current data group when described terminal equipment after, the Frame numbering that reads described missing data from described the second memory space is last, the missing data that transmission carries the Frame numbering of described missing data obtains instruction to corresponding terminal equipment, receives described terminal equipment and responds the missing data of described instruction transmission and it is stored to described the first memory space.
Certainly, the Frame numbering can also be decided to be the even number ordered series of numbers, when Frame is numbered the even number ordered series of numbers, real time data is data 2, data 4, data 6 ... data 2N, the difference between numbering with the Frame of the first data of a upper reception by the first data of calculating current reception so judges whether difference is tolerance 2, if, then loss of data does not occur in data, if not described tolerance 2 data has then occured lost.And then the Frame of definite missing data numbering, be stored to the second memory space, the Frame numbering that reads described missing data from the second memory space is last, the missing data that transmission carries the Frame numbering of described missing data obtains instruction to corresponding terminal equipment, receives described terminal equipment and responds the missing data of described instruction transmission and it is stored to described the first memory space.
Sometimes, the difference that the first data by calculating current reception in above-described embodiment and the Frame of the first data of a upper reception are numbered judges that whether difference is the tolerance to arithmetic progression, if then data do not lack, if not, shortage of data then.But can miss by this method the Frame numbering of a part of missing data, for the Frame that replenishes the missing data of missing is numbered to the second memory space, another embodiment of the present invention also discloses a kind of method of obtaining data, as shown in Figure 3, may further comprise the steps:
The first data S101, receiving terminal apparatus transmission, that carry predefined Frame numbering, and store described the first data to first memory space corresponding with described terminal equipment;
Wherein, described Frame is numbered the arithmetic progression with default tolerance;
S102, judge whether to occur loss of data according to the Frame of described the first data numbering;
Wherein, step S102 comprises:
Difference between the Frame numbering of described first data of S1021, described the first data of calculating current reception and a upper reception;
S1022, judge whether described difference is described tolerance, if, determine loss of data does not occur, then enter normal flow, otherwise, determine to occur loss of data, then execution in step S103;
S103, according to the Frame of described the first data numbering, determine the Frame numbering of missing data, and the Frame numbering of storing described missing data is to second memory space corresponding with described terminal equipment;
Wherein, step S103 comprises:
S1031, determine the Frame numbering of the first data of current reception and between the Frame numbering of the first data of a reception and with described on the Frame numbering of the first data of a reception differ the numbering of the integral multiple of described tolerance;
S1032, described numbering is defined as the Frame numbering of described obliterated data;
The Frame numbering of S1033, the described missing data of storage is to second memory space corresponding with described terminal equipment;
After step S103, before the step S104, also comprise:
S107, gather pre-stored in terminal equipment, carry the second data of the first minimum data frame number;
Carry described first data of the second minimum data frame number in S108, collection the first memory space;
S109, obtain the first minimum data frame number and the second minimum data frame number, and calculate the difference between the first minimum data frame number and the second minimum data frame number;
S110, judge that described difference is whether less than zero, when the difference between the first minimum data frame number and the second minimum data frame number less than zero the time, loss of data then occurs, execution in step S111, when the difference between the first minimum data frame number and the second minimum data frame number is not less than zero, further losing of data, execution in step S104 then do not occur;
S111, determine between the first minimum data frame number and the second minimum data frame number and differ the numbering of the integral multiple of described tolerance with the first minimum data frame number, deposit described numbering and the first minimum data frame number in second memory space corresponding with described terminal equipment.
S104, send described first data of current data group when described terminal equipment after, read the Frame numbering of described missing data from described the second memory space;
The missing data that S105, transmission carry the Frame numbering of described missing data obtains instruction to corresponding terminal equipment;
S106, the described terminal equipment of reception respond the missing data of described instruction transmission and it are stored to described the first memory space.
In the disclosed method of obtaining data of present embodiment, difference between the Frame numbering of the first data of the Frame numbering of the first data of calculating current reception and a upper reception, and judge whether described difference is described tolerance, after obtaining the Frame numbering of a part of missing data, gather pre-stored in terminal equipment, carry the second data of the first minimum data frame number, gather simultaneously described the first data that carry the second minimum data frame number in the first memory space, obtain the first minimum data frame number and the second minimum data frame number, and calculate difference between the first minimum data frame number and the second minimum data frame number, for example, the Frame of the real time data of storing in the initial time terminal equipment is numbered 1 to 50, the Frame that sends to data acquisition software is numbered 35 to 45, the Frame of the second data that carry the first minimum data frame number that gather this moment is numbered 31, the Frame that carries described first data of the second minimum data frame number in the first memory space that gathers is numbered 35, difference between the first minimum data frame volume the 31 and second minimum data frame number 35 is less than zero, therefore, losing of data occured as can be known, determine between 31 to 35, and number for the Frame of missing data with 31 numbering and the first minimum data frame numbers 31 that differ the integral multiple of tolerance 1, this moment, the Frame of missing data was numbered 31,32,33,34, and deposit these four data frame numbers in second memory space corresponding with described terminal equipment.
In like manner, we also need the maximum data frame number in the terminal equipment and the maximum data frame number in the real-time data base are compared, and have judged whether to occur further losing of data.Similar to the above embodiments, another embodiment of the present invention also discloses a kind of method of obtaining data, as shown in Figure 4, except comprising step S101, S102, S103, S104, S105, S106, wherein, step S102 comprises S1021, S1022, and step S103 comprises S1031, S1032, S1033;
After step S103, before the step S104, also comprise:
S112, gather pre-stored in described terminal equipment, carry the second data of the first maximum data frame number;
Carry described first data of the second maximum data frame number in S113, collection the first memory space;
S114, obtain the first maximum data frame number and the second maximum data frame number, and calculate the difference between the first maximum data frame number and the second maximum data frame number;
S115, judge described difference whether greater than zero, if further losing of data then occured greater than zero in described difference, execution in step S116, if described difference is not more than zero, upper further losing of data, then the execution in step S104 of occuring then;
S116, determine between the first maximum data frame number and the second maximum data frame number and differ the numbering of the integral multiple of tolerance with the first maximum data frame number, deposit described numbering and the first maximum data frame number in second memory space corresponding with described terminal equipment.
In the disclosed method of obtaining missing data of above-described embodiment, difference between the Frame numbering of the first data of the Frame numbering of the first data of calculating current reception and a upper reception, and judge whether described difference is described tolerance, after obtaining the Frame numbering of a part of missing data, also can gather pre-stored in described terminal equipment, carry the second data of the first maximum data frame number, gather simultaneously the first data that carry the second maximum data frame number in the first memory space, obtain described the first maximum data frame number and described the second maximum data frame number, and calculate the difference between described the first maximum data frame number and the second maximum data frame number.For example, at initial time, the Frame of the real time data of storing in the terminal equipment is numbered 1 to 50, carry the first data of predefined Frame numbering when transmission, and store described the first data to first memory space corresponding with described terminal equipment, the Frame of storing in terminal equipment is numbered 35 to 50, what collect like this is pre-stored in described terminal equipment, the Frame that carries the second data of the first maximum data frame number is numbered 50, and the Frame in the first memory space is numbered 1 to 34, then the second maximum data frame number is 34, the difference of calculating gained is 16, described difference is greater than zero, then determine to have occured further losing of data, determine that the Frame numbering of missing data is between 34 to 50, and with 50 numbering and described the first maximum data frame numbers that differ the integral multiple of tolerance 1, therefore the Frame of missing data is numbered 35,36,37,38,39,40 ... 50, again these 16 data frame numbers are stored to corresponding the second memory space with terminal equipment.
Above-mentioned four embodiment are disclosed to be obtained in the method for data, terminal equipment is after receiving the real time data that extraneous input advances, within the regular hour, terminal equipment does not receive external data, after namely the first data of current group of storage being sent, there are not new data to enter the storage device of terminal equipment.But in general, terminal equipment is in the state that upgrades its data storehouse often always, the extraneous new real time data that constantly carries the Frame numbering to the terminal equipment input.Therefore, in order to replenish the Frame numbering of the missing data that does not deposit the second memory space in, another embodiment of the present invention also discloses a kind of method of obtaining missing data, as shown in Figure 5, except comprising step S101, S102, S103, S104, S105, S106, wherein, step S102 comprises S1021, S1022, and step S103 comprises S1031, S1032, S1033;
Described terminal equipment continues receive data, after step S103, before the step S104, also comprises:
S117, gather pre-stored in described terminal equipment, carry the second data of the first minimum data frame number, the first maximum data frame number;
Carry the first data of the second maximum data frame number in S118, described the first memory space of collection;
S119, obtain described the first minimum data frame number, the first maximum data frame number and described the second maximum data frame number, calculate difference between described the first minimum data frame number and described the second maximum data frame number;
S120, judge that whether described difference is greater than zero, and whether be not described tolerance, if difference is not described tolerance between described the first minimum data frame number and described the second maximum data frame number, and described difference is greater than zero, then data have occured further to lose, execution in step S121, if difference is described tolerance between described the first minimum data frame number and described the second maximum data frame number, perhaps described the second maximum data frame number is greater than described the first minimum data frame number and less than described the first maximum data frame number, data do not occur further to lose, then execution in step S104;
S121, determine between described the first minimum data frame number and described the second maximum data frame number and differ the numbering of described tolerance integral multiple with described the second maximum data frame number, deposit described numbering in second memory space corresponding with described terminal equipment;
Can find out from the disclosed method of obtaining data of present embodiment, when terminal equipment continues ceaselessly at receiving real-time data, when self stores the storage device continuous updating of real time data, send described first data of current data group when terminal equipment after, the Frame that is stored to the second memory space is numbered the Frame numbering of missing data, but, this moment, the Frame numbering that is stored to the second memory space is numbered and be not only to the Frame of missing data, and we also need the Frame numbering of the missing data of the second memory space is replenished.Therefore, at first gather pre-stored in described terminal equipment, carry the first minimum data frame number, the first maximum data frame number the second data, gather the first data that carry the second maximum data frame number in described the first memory space.For example, at initial time, the Frame of the real time data of the preservation in the terminal equipment is numbered 1 to 100, now be sent in the data acquisition software of host computer 1 to 10, also machine is to the data of its input outside receiving when terminal equipment sends real time data, and the external world is numbered 101 to 110 to the Frame of the data of its input.In general, the device of above-mentioned the first memory space, the second memory space and terminal equipment self preservation real time data can be defined as the database of save data.As everyone knows, the internal memory that terminal equipment self is preserved the database of real time data is certain, therefore, when the external world inputs data to its, Frame numbering in the real-time data base becomes 11 to 110, and the change of Frame numbering is so that the method change of follow-up additional missing data to the second memory space.
Frame in the terminal equipment is numbered 11 to 110, therefore, the first maximum data frame number is 110, the first minimum data frame number is 11, and the second maximum data frame number is 10, can get thus, difference is tolerance 1 between the first minimum data frame number and described the second maximum data frame number, then data do not occur further to lose, get final product execution in step 104, send described first data of current data group when described terminal equipment after, read the Frame numbering of described missing data from described the second memory space.
For example, at initial time, the Frame of the real time data of the preservation in the terminal equipment is numbered 1 to 100, now be sent in the data acquisition software of host computer 1 to 10, and the Frame that is stored in the first memory space to be numbered only be 1 to 8, also machine is to the data of its input outside receiving when terminal equipment sends real time data, and the external world is numbered 101 to 110 to the Frame of the data of its input.Therefore, when the external world inputs data to its, Frame numbering in the real-time data base becomes 11 to 110, the first maximum data frame number is 110, the first minimum data frame limit is numbered 11, the second maximum data frame number is 8, difference 3 is not tolerance 1 between the first minimum data frame number and described the second maximum data frame number, and difference is greater than zero, then can specified data occur further to lose, determine between the first minimum data frame number 11 and the second maximum data frame number 8, and differ the numbering of tolerance 1 integral multiple with the second maximum data frame number 8, describedly be numbered 9 and 10, deposit these two numberings in second memory space corresponding with described terminal equipment again, then execution in step 104.
For another example, at initial time, the Frame of the real time data of the preservation in the terminal equipment is numbered 1 to 100, now be sent in the data acquisition software of host computer 1 to 15, and the Frame numbering that is stored in the first memory space also is 1 to 15, the Frame of follow-up reception is numbered 101 to 105, therefore, at this moment, the Frame of preserving in the real-time data base in the terminal equipment is numbered 5 to 105, therefore, the first maximum data frame number is 105, the first minimum data frame number is 5, the second maximum data frame number is 15, can determine, the second maximum data frame number 15 is greater than the first minimum data frame number 5, and less than the first maximum data frame number 105, at this moment, data do not occur further to lose yet, execution in step 104 and subsequent step, send described first data of current data group when described terminal equipment after, read the Frame numbering of described missing data from described the second memory space, the missing data that transmission carries the Frame numbering of described missing data obtains instruction to corresponding terminal equipment, receives described terminal equipment and responds the missing data of described instruction transmission and it is stored to described the first memory space.
In the disclosed method of obtaining data of above-described embodiment, reading the Frame numbering of missing data, the missing data that also will carry the Frame numbering of described missing data simultaneously obtains instruction to corresponding terminal equipment, the disappearance numbered list of Data Update the second memory space that sends according to terminal equipment, concrete grammar is deleted from the second memory space for the Frame numbering that will read, the Frame numbering that perhaps will read is put and is indicated the position, until reading, all missing datas finish and are saved to the first memory space, guarantee the integrality of real time data, cause disorder in case repeat to read the transmission identical data to program threads, and then bring the inconvenience in the work.
The embodiment of the invention also discloses a kind of server, with the inconvenience that realizes obtaining complete real time data, avoids shortage of data to bring to work and life.
A kind of server as shown in Figure 6, comprising:
The first that receiving terminal apparatus sends, as to carry the first data of predefined Frame numbering receiving element 101;
Link to each other with the first receiving element 101, storage the first data to the first processing unit 102 of corresponding the first memory space of terminal equipment;
Link to each other, judge whether to occur according to the Frame numbering of the first data the judging unit 103 of loss of data with the first processing unit 102;
Link to each other with judging unit 103, when loss of data determine to occur when, according to the Frame numbering of the first data, determine the determining unit 104 of the Frame numbering of missing data;
Link to each other with determining unit 104, the Frames numbering of storage missing data to the second processing unit 105 of corresponding the second memory space of terminal equipment;
After linking to each other with the second processing unit 105, sending the first data of current data group when terminal equipment, read the reading unit 106 of the Frame numbering of missing data from the second memory space;
The missing data that links to each other, sends the Frame numbering that carries missing data with reading unit 106 obtains instruction to the transmitting element 107 of corresponding terminal equipment;
Link to each other with transmitting element 107, receiving terminal apparatus responds missing data that described instruction sends and it is stored to the second receiving element 108 of the first memory space.
In the disclosed server of above-described embodiment, the first receiving element 101 at first receiving terminal apparatus sends, carry the first data of predefined Frame numbering, the first processing unit 102 storages the first data are to first memory space corresponding with terminal equipment, secondly judging unit 103 judges whether to occur loss of data according to the Frame numbering of the first data, when determining loss of data occurs, determining unit 104 is numbered according to the Frame of the first data again, determine the Frame numbering of missing data, the Frame numbering of the second processing unit 105 storage missing datas is to second memory space corresponding with terminal equipment.When terminal equipment draws in the storehouse with wireless network again, perhaps in the situation of equipment Power resumption, this moment, terminal equipment sent the first data.Send the first data of current data group when terminal equipment after, the second memory space is set up complete, reading unit 106 can read from the second memory space the Frame numbering of missing data, the missing data that transmitting element 107 then sends the Frame numbering that carries missing data obtains instruction to corresponding terminal equipment, terminal equipment responds the second receiving element 108, the second receiving elements 108 receiving terminal apparatus that missing data sends it back server the missing data of described instruction transmission and it is stored to the first memory space.Come thus, missing data just can be stored to the first memory space, is kept in the real-time data memory device.Therefore, this server has obtained complete real time data, and then has guaranteed the integrality of client to the data subsequent analysis, the inconvenience of having avoided shortage of data to bring to work and life.
When the instruction of missing data is obtained in transmission, can a button be set at the interface of the data acquisition software of server, after this button is pressed, namely send an instruction of obtaining missing data to terminal equipment, after obtaining the feedback of terminal equipment, open the thread that obtains missing data.
In order to gather easily real time data, when Frame is numbered, need to select best ordered series of numbers, according to certain rule the real time data Frame is numbered.Therefore, another embodiment of the present invention also discloses a kind of server, as shown in Figure 7, comprising:
The first that receiving terminal apparatus sends, as to carry the first data of predefined Frame numbering receiving element 101;
Wherein, described Frame is numbered the arithmetic progression with default tolerance;
Link to each other with the first receiving element 101, storage the first data to the first processing unit 102 of corresponding the first memory space of terminal equipment;
Link to each other, judge whether to occur according to the Frame numbering of the first data the judging unit 103 of loss of data with the first processing unit 102;
Wherein, judging unit 103 comprises:
Calculate the first computing module 1031 of the difference between the Frame numbering of the first data of the first data of current reception and a upper reception;
The first judge module 1032, the first judge modules 1032 that link to each other with the first computing module 1031 judge whether difference is described tolerance, if, then determine not occur shortage of data, otherwise, determine to occur shortage of data;
Link to each other with judging unit 103, when loss of data determine to occur when, according to the Frame numbering of the first data, determine the determining unit 104 of the Frame numbering of missing data;
Wherein, determining unit 104 comprises:
Determine the Frame numbering of the first data of current reception and between the Frame numbering of the first data of a reception and with on the Frame numbering of the first data of a reception differ the numbering determination module 1041 of numbering of the integral multiple of tolerance;
Link to each other, described numbering be defined as the Frame numbering determination module 1042 of the Frame numbering of obliterated data with numbering determination module 1041.
Link to each other with determining unit 104, the Frames numbering of storage missing data to the second processing unit 105 of corresponding the second memory space of terminal equipment;
After linking to each other with the second processing unit 105, sending the first data of current data group when terminal equipment, read the reading unit 106 of the Frame numbering of missing data from the second memory space;
The missing data that links to each other, sends the Frame numbering that carries missing data with reading unit 106 obtains instruction to the transmitting element 107 of corresponding terminal equipment;
Link to each other with transmitting element 107, receiving terminal apparatus responds missing data that described instruction sends and it is stored to the second receiving element 108 of the first memory space.
In the disclosed server of above-described embodiment, when Frame is numbered the odd column with default tolerance 2, judge whether to occur the first computing module 1031 in the judging unit 103 of loss of data according to the Frame of the first data numbering, at first calculate the difference between the Frame numbering of the first data of the first data of current reception and a upper reception, if the Frame of the first data of current reception is numbered 9, and the Frame of a upper reception is numbered 3, the difference of then calculating gained is 6,1032 judgements of the first judge module learn that difference 6 is not tolerance 2, then determines to occur shortage of data.And then the numbering determination module 1041 in the determining unit 104 determine the Frame numbering 9 of the first data of current reception and between the Frame numbering 3 of the first data of a reception and with on the Frame numbering 3 of the first data of a reception differ tolerance 2 integral multiple be numbered 5 and 7, Frame numbering determination module 1042 is numbered the Frame that these two numberings are decided to be obliterated data, and deposits in second memory space corresponding with terminal equipment 5 and 7.
By specializing judging unit 103 and determining unit 104, can not all deposit complete missing data Frame numbering in second memory space, for the Frame that replenishes the missing data of missing is numbered to the second memory space, another embodiment of the present invention also discloses a kind of server, as shown in Figure 8, except comprising: the first receiving element 101, the first processing unit 102, judging unit 103, determining unit 104, the second processing unit 105, reading unit 106, transmitting element 107 and the second receiving element 108, wherein, judging unit 103 comprises the first computing module 1031 and the first judge module 1032, and determining unit 104 comprises numbering determination module 1041 and Frame numbering determination module 1042;
Also comprise:
Gather pre-stored in described terminal equipment, carry the first collecting unit 109 of the second data of the first minimum data frame number;
Link to each other, gather the second collecting unit 110 of the first data that carry the second minimum data frame number in the first memory space with the first memory space;
Link to each other, obtain the first minimum data frame number and the second minimum data frame number with the first collecting unit 109, the second collecting unit 110, and calculate the second computing unit 111 of the difference between the first minimum data frame number and the second minimum data frame number;
The first determining unit 112 that links to each other with the second computing unit 111 and reading unit 106, when the difference between the first minimum data frame number and the second minimum data frame number less than zero the time, the first determining unit 112 is determined between the first minimum data frame number and the second minimum data frame number and is differed the numbering of the integral multiple of described tolerance with the first minimum data frame number, deposits numbering and the first minimum data frame number in second memory space corresponding with described terminal equipment.
In the disclosed server of above-described embodiment, calculate the difference between the Frame numbering of the first data of the Frame numbering of the first data of current reception and a upper reception when the first computing module 1031, and the first judge module 1032 judges whether described difference is described tolerance, after obtaining the Frame numbering of a part of missing data, the first collecting unit 109 gathers pre-stored in terminal equipment, carry the second data of the first minimum data frame number, simultaneously, the second collecting unit 110 gathers the first data that carry the second minimum data frame number in the first memory space, the second computing unit 111 obtains the first minimum data frame number and the second minimum data frame number, and calculates the difference between the first minimum data frame number and the second minimum data frame number.For example, at initial time, the Frame of the real time data in the terminal equipment is numbered 1 to 50, the Frame that sends to data acquisition software is numbered 35 to 45, at this moment, the Frame of the second data that carry the first minimum data frame number that the first collecting unit 109 gathers is numbered 31, the Frame that carries described first data of the second minimum data frame number in the first memory space that the second collecting unit 110 gathers is numbered 35, the difference that the second computing unit 111 calculates between the first minimum data frame number and the second minimum data frame number is-4, the first determining unit 112 is determined between 31 to 35, and number for the Frame of missing data with 31 numbering and the first minimum data frame numbers 31 that differ the integral multiple of tolerance 1, this moment, the Frame of missing data was numbered 31,32,33,34, and deposit these four data frame numbers in second memory space corresponding with described terminal equipment.
Then, reading unit 106 reads the Frame numbering of missing data from the second memory space, the missing data that transmitting element 107 sends the Frame numbering that carries missing data obtains instruction to corresponding terminal equipment, the second receiving element 108 receiving terminal apparatus respond the missing data of described instruction transmission and it are stored to the first memory space, and then have guaranteed the integrality of the first memory space real time data.
In like manner, we also need the maximum data frame number in the terminal equipment and the maximum data frame number in the real-time data base are compared, and have judged whether to occur further losing of data.Similar to the above embodiments, another embodiment of the present invention also discloses a kind of server, as shown in Figure 9.Except comprising:
The first receiving element 101, the first processing unit 102, judging unit 103, determining unit 104, the second processing unit 105, reading unit 106, transmitting element 107 and the second receiving element 108, wherein, judging unit 103 comprises the first computing module 1031 and the first judge module 1032, and determining unit 104 comprises numbering determination module 1041 and Frame numbering determination module 1042;
Also comprise:
Gather pre-stored in described terminal equipment, carry the 3rd collecting unit 113 of the second data of the first maximum data frame number;
Link to each other, gather the 4th collecting unit 114 of the first data that carry the second maximum data frame number in the first memory space with the first memory space;
Link to each other, obtain the first maximum data frame number and the second maximum data frame number with the 3rd collecting unit 113, the 4th collecting unit 114, and calculate the 3rd computing unit 115 of the difference between the first maximum data frame number and the second maximum data frame number;
The second determining unit 116 that links to each other with the 3rd computing unit 115 and reading unit 106, when the difference between described the first maximum data frame number and the second maximum data frame number greater than zero the time, the second determining unit 116 is determined between the first minimum data frame number and the second minimum data frame number and is differed the numbering of the integral multiple of tolerance with the first maximum data frame number, deposits described numbering and the first maximum data frame number in second memory space corresponding with terminal equipment.
When the first maximum data frame number that needs acquisition terminal equipment with when being stored to the second maximum data frame number of the first memory space, the setting of work virtual bench is identical with the virtual bench workflow of the second minimum data frame number that is stored to the first memory space with the first minimum data frame number of acquisition terminal equipment, be converted to only respectively the 3rd collecting unit 113, the 4th collecting unit 114, the 3rd computing unit 115, the second determining unit 116, how each unit is carried out replenishing of missing data, will not do here and give unnecessary details.
Similarly, in above-mentioned four disclosed servers of embodiment, terminal equipment is after receiving the real time data that extraneous input advances, within the regular hour, terminal equipment does not receive external data, after namely the first data of current group of storage being sent, there are not new data to enter the storage device of terminal equipment.But in general, terminal equipment is in the state that upgrades its data storehouse often always, the extraneous new real time data that constantly carries the Frame numbering to the terminal equipment input.Therefore, in order to replenish the Frame numbering of the missing data that does not deposit the second memory space in, another embodiment of the present invention also discloses a kind of server, as shown in figure 10, and except comprising:
The first receiving element 101, the first processing unit 102, judging unit 103, determining unit 104, the second processing unit 105, reading unit 106, transmitting element 107 and the second receiving element 108, wherein, judging unit 103 comprises the first computing module 1031 and the first judge module 1032, and determining unit 104 comprises numbering determination module 1041 and Frame numbering determination module 1042;
Also comprise:
Gather pre-stored in terminal equipment, carry the 5th collecting unit 117 of the second data of the first minimum data frame number, the first maximum data frame number;
Link to each other, gather the 6th collecting unit 118 of the first data that carry the second maximum data frame number in described the first memory space with the first memory space;
Link to each other, obtain the first minimum data frame number, the first maximum data frame number and the second maximum data frame number with the 5th collecting unit 117, the 6th collecting unit 118, calculate the 4th computing unit 119 of difference between the first minimum data frame number and the second maximum data frame number;
The 3rd determining unit 120 that links to each other with the 4th computing unit 119 and reading unit 106, between the first minimum data frame number and the second maximum data frame number difference for tolerance, and difference is greater than zero the time, the 3rd determining unit 120 is determined between the first minimum data frame number is greater than the second maximum data frame number and is differed the numbering of described tolerance integral multiple with the second maximum data frame number, deposits described numbering in second memory space corresponding with described terminal equipment.
In the disclosed server of above-described embodiment, when terminal equipment continues ceaselessly at receiving real-time data, when self stores the storage device continuous updating of real time data, send described first data of current data group when terminal equipment after, the Frame that is stored to the second memory space is numbered the Frame numbering of missing data, but, this moment, the Frame numbering that is stored to the second memory space is numbered and be not only to the Frame of missing data, and we also need the Frame numbering of the missing data of the second memory space is replenished.Therefore, in the situation of terminal equipment continuous updating data, just needing to increase several working cells replenishes missing data complete, the 5th collecting unit 117, the 6th collecting unit 118, the 4th computing unit 119, the 3rd determining unit 120 are arisen at the historic moment, the course of work sees the method for obtaining data for details, says here not do and gives unnecessary details.
Each embodiment adopts the mode of going forward one by one to describe in this specification, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be apparent concerning those skilled in the art, and General Principle as defined herein can in the situation that does not break away from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a method of obtaining data is characterized in that, comprising:
The the first data receiving terminal apparatus transmission, that carry predefined Frame numbering, and store described the first data to first memory space corresponding with described terminal equipment;
Frame numbering according to described the first data judges whether to occur loss of data, when determining loss of data occurs, Frame numbering according to described the first data, determine the Frame numbering of missing data, and the Frame numbering of storing described missing data is to second memory space corresponding with described terminal equipment;
Send described first data of current data group when described terminal equipment after, read the Frame of described missing data from described the second memory space and number, the missing data that sends the Frame numbering that carries described missing data obtains instruction to corresponding terminal equipment;
Receiving described terminal equipment responds the missing data of described instruction transmission and it is stored to described the first memory space.
2. the method for obtaining data according to claim 1 is characterized in that, described Frame is numbered the arithmetic progression with default tolerance;
Described Frame numbering according to described the first data judges whether to occur loss of data, comprising:
Calculate the difference between the Frame numbering of described the first data of described first data of current reception and a upper reception;
Judge whether described difference is described tolerance, if, then determine not occur shortage of data, otherwise, determine to occur shortage of data;
Number the Frame numbering of determining missing data according to the Frame of described the first data, comprising:
Determine the Frame numbering of the first data of current reception and between the Frame numbering of the first data of a reception and with described on the Frame numbering of the first data of a reception differ the numbering of the integral multiple of described tolerance;
Described numbering is defined as the Frame numbering of described obliterated data.
3. the method for obtaining data according to claim 2 is characterized in that, send described first data of current data group when described terminal equipment after, read the Frame numbering of described missing data from described the second memory space before, also comprise:
Gather pre-stored in described terminal equipment, carry the second data of the first minimum data frame number;
Gather described the first data that carry the second minimum data frame number in described the first memory space;
Obtain described the first minimum data frame number and described the second minimum data frame number, and calculate the difference between described the first minimum data frame number and the second minimum data frame number;
When the difference between described the first minimum data frame number and the second minimum data frame number less than zero the time, determine between described the first minimum data frame number and described the second minimum data frame number and differ the numbering of the integral multiple of described tolerance with described the first minimum data frame number, deposit described numbering and described the first minimum data frame number in second memory space corresponding with described terminal equipment.
4. according to claim 2 or the 3 described methods of obtaining data, it is characterized in that, send described first data of current data group when described terminal equipment after, read the Frame numbering of described missing data from described the second memory space before, also comprise:
Gather pre-stored in described terminal equipment, carry the second data of the first maximum data frame number;
Gather described the first data that carry the second maximum data frame number in described the first memory space;
Obtain described the first maximum data frame number and described the second maximum data frame number, and calculate the difference between described the first maximum data frame number and the second maximum data frame number;
When the difference between described the first maximum data frame number and the second maximum data frame number greater than zero the time, determine between described the first maximum data frame number and described the second maximum data frame number and differ the numbering of the integral multiple of described tolerance with described the first maximum data frame number, deposit described numbering and described the first maximum data frame number in second memory space corresponding with described terminal equipment.
5. the method for obtaining data according to claim 2, described terminal equipment continues receive data, it is characterized in that, send described first data of current data group when described terminal equipment after, read the Frame numbering of described missing data from described the second memory space before, also comprise:
Gather pre-stored in described terminal equipment, carry the second data of the first minimum data frame number, the first maximum data frame number;
Gather the first data that carry the second maximum data frame number in described the first memory space;
Obtain described the first minimum data frame number, the first maximum data frame number and described the second maximum data frame number, calculate difference between described the first minimum data frame number and described the second maximum data frame number;
Difference is not described tolerance between described the first minimum data frame number and described the second maximum data frame number, and described difference is greater than zero the time, determine between described the first minimum data frame number and described the second maximum data frame number and differ the numbering of described tolerance integral multiple with described the second maximum data frame number, deposit described numbering in second memory space corresponding with described terminal equipment.
6. a server is characterized in that, comprising:
The first that receiving terminal apparatus sends, as to carry the first data of predefined Frame numbering receiving element;
Link to each other with described the first receiving element, described the first data of storage to the first processing unit of corresponding the first memory space of described terminal equipment;
Link to each other, judge whether to occur according to the Frame numbering of described the first data the judging unit of loss of data with described the first processing unit;
Link to each other with described judging unit, when loss of data determine to occur when, according to the Frame numbering of described the first data, determine the determining unit of the Frame numbering of missing data;
Link to each other with described determining unit, the Frame numbering of the described missing data of storage to the second processing unit of corresponding the second memory space of described terminal equipment;
After linking to each other with described the second processing unit, sending described first data of current data group when described terminal equipment, read the reading unit of the Frame numbering of described missing data from described the second memory space;
The missing data that links to each other, sends the Frame numbering that carries described missing data with described reading unit obtains instruction to the transmitting element of corresponding terminal equipment;
Linking to each other, receive described terminal equipment with described transmitting element responds the missing data of described instruction transmission and it is stored to the second receiving element of described the first memory space.
7. server according to claim 6 is characterized in that, described Frame is numbered the arithmetic progression with default tolerance;
Described judging unit comprises:
Calculate the first computing module of the difference between the Frame numbering of described the first data of described first data of current reception and a upper reception;
With the first judge module that described the first computing module links to each other, described the first judge module judges whether described difference is described tolerance, if, then determine not occur shortage of data, otherwise, determine to occur shortage of data;
Described determining unit comprises:
Determine the Frame numbering of the first data of current reception and between the Frame numbering of the first data of a reception and with described on the Frame numbering of the first data of a reception differ the numbering determination module of numbering of the integral multiple of described tolerance;
Link to each other, described numbering be defined as the Frame numbering determination module of the Frame numbering of described obliterated data with described numbering determination module.
8. server according to claim 7 is characterized in that, also comprises:
Gather pre-stored in described terminal equipment, carry the first collecting unit of the second data of the first minimum data frame number;
Link to each other, gather the second collecting unit that carries described first data of the second minimum data frame number in described the first memory space with described the first memory space;
Link to each other, obtain described the first minimum data frame number and described the second minimum data frame number with described the first collecting unit, the second collecting unit, and calculate the second computing unit of the difference between described the first minimum data frame number and the second minimum data frame number;
The first determining unit that links to each other with described the second computing unit and described reading unit, when the difference between described the first minimum data frame number and the second minimum data frame number less than zero the time, described the first determining unit is determined between described the first minimum data frame number and described the second minimum data frame number and is differed the numbering of the integral multiple of described tolerance with described the first minimum data frame number, deposits described numbering and described the first minimum data frame number in second memory space corresponding with described terminal equipment.
9. according to claim 8 or 7 described servers, it is characterized in that, also comprise:
Gather pre-stored in described terminal equipment, carry the 3rd collecting unit of the second data of the first maximum data frame number;
Link to each other, gather the 4th collecting unit that carries described first data of the second maximum data frame number in described the first memory space with described the first memory space;
Link to each other, obtain described the first maximum data frame number and described the second maximum data frame number with described the 3rd collecting unit, the 4th collecting unit, and calculate the 3rd computing unit of the difference between described the first maximum data frame number and the second maximum data frame number;
The second determining unit that links to each other with described the 3rd computing unit and described reading unit, when the difference between described the first maximum data frame number and the second maximum data frame number greater than zero the time, described the second determining unit is determined between described the first minimum data frame number and described the second minimum data frame number and is differed the numbering of the integral multiple of described tolerance with described the first maximum data frame number, deposits described numbering and described the first maximum data frame number in second memory space corresponding with described terminal equipment.
10. server according to claim 7, described terminal equipment continues receive data, it is characterized in that, also comprises:
Gather pre-stored in described terminal equipment, carry the 5th collecting unit of the second data of the first minimum data frame number, the first maximum data frame number;
Link to each other, gather the 6th collecting unit that carries the first data of the second maximum data frame number in described the first memory space with described the first memory space;
Link to each other, obtain described the first minimum data frame number, the first maximum data frame number and described the second maximum data frame number with described the 5th collecting unit, the 6th collecting unit, calculate the 4th computing unit of difference between described the first minimum data frame number and described the second maximum data frame number;
The 3rd determining unit that links to each other with described the 4th computing unit and described reading unit, between described the first minimum data frame number and described the second maximum data frame number difference for described tolerance, and described difference is greater than zero the time, described the 3rd determining unit is determined between described the first minimum data frame number is greater than described the second maximum data frame number and is differed the numbering of described tolerance integral multiple with described the second maximum data frame number, deposits described numbering in second memory space corresponding with described terminal equipment.
CN201210410646.8A 2012-10-24 2012-10-24 A kind of method and server obtaining data Active CN102970104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210410646.8A CN102970104B (en) 2012-10-24 2012-10-24 A kind of method and server obtaining data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210410646.8A CN102970104B (en) 2012-10-24 2012-10-24 A kind of method and server obtaining data

Publications (2)

Publication Number Publication Date
CN102970104A true CN102970104A (en) 2013-03-13
CN102970104B CN102970104B (en) 2016-01-27

Family

ID=47800003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210410646.8A Active CN102970104B (en) 2012-10-24 2012-10-24 A kind of method and server obtaining data

Country Status (1)

Country Link
CN (1) CN102970104B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677191A (en) * 2016-02-29 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Data input method and device
CN106445771A (en) * 2015-08-12 2017-02-22 北京国双科技有限公司 Monitoring data processing method and device, and monitoring server
CN106911519A (en) * 2017-04-10 2017-06-30 北京搜狐新媒体信息技术有限公司 A kind of data acquisition monitoring method and device
CN107040601A (en) * 2017-04-21 2017-08-11 广州明珞汽车装备有限公司 A kind of collecting method and system
CN107707590A (en) * 2016-08-09 2018-02-16 阿里巴巴集团控股有限公司 System, the method and device of data transfer
CN104104475B (en) * 2013-04-02 2018-05-29 安凯(广州)微电子技术有限公司 A kind of generation method of answer signal, method of reseptance and device
CN111625601A (en) * 2020-05-27 2020-09-04 北京字节跳动网络技术有限公司 Data writing method and device, computer equipment and storage medium
CN112509176A (en) * 2020-11-30 2021-03-16 北京公共交通控股(集团)有限公司 Fault repair method and device based on vehicle data
CN114357030A (en) * 2022-01-04 2022-04-15 深圳市智百威科技发展有限公司 Big data storage system and method
CN114884713A (en) * 2022-04-26 2022-08-09 中通服慧展科技有限公司 Information protection method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411198A (en) * 2001-09-25 2003-04-16 义隆电子股份有限公司 Method of detecting and restoring lost data in radio communication and its system
CN1503535A (en) * 2002-11-20 2004-06-09 华为技术有限公司 Method for assuring reliability of data package transmission in simple network management protocol
CN101127715A (en) * 2002-11-20 2008-02-20 华为技术有限公司 Reliability guarantee method for data packet transmission in SNMP
WO2010095458A1 (en) * 2009-02-20 2010-08-26 日本電気株式会社 Analysis preprocessing system, analysis preprocessing method, and analysis preprocessing program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411198A (en) * 2001-09-25 2003-04-16 义隆电子股份有限公司 Method of detecting and restoring lost data in radio communication and its system
CN1503535A (en) * 2002-11-20 2004-06-09 华为技术有限公司 Method for assuring reliability of data package transmission in simple network management protocol
CN101127715A (en) * 2002-11-20 2008-02-20 华为技术有限公司 Reliability guarantee method for data packet transmission in SNMP
WO2010095458A1 (en) * 2009-02-20 2010-08-26 日本電気株式会社 Analysis preprocessing system, analysis preprocessing method, and analysis preprocessing program

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104475B (en) * 2013-04-02 2018-05-29 安凯(广州)微电子技术有限公司 A kind of generation method of answer signal, method of reseptance and device
CN106445771A (en) * 2015-08-12 2017-02-22 北京国双科技有限公司 Monitoring data processing method and device, and monitoring server
CN105677191A (en) * 2016-02-29 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Data input method and device
CN105677191B (en) * 2016-02-29 2019-03-08 宇龙计算机通信科技(深圳)有限公司 A kind of data entry device and device
CN107707590A (en) * 2016-08-09 2018-02-16 阿里巴巴集团控股有限公司 System, the method and device of data transfer
CN106911519B (en) * 2017-04-10 2020-04-07 北京搜狐新媒体信息技术有限公司 Data acquisition monitoring method and device
CN106911519A (en) * 2017-04-10 2017-06-30 北京搜狐新媒体信息技术有限公司 A kind of data acquisition monitoring method and device
CN107040601A (en) * 2017-04-21 2017-08-11 广州明珞汽车装备有限公司 A kind of collecting method and system
CN111625601A (en) * 2020-05-27 2020-09-04 北京字节跳动网络技术有限公司 Data writing method and device, computer equipment and storage medium
CN111625601B (en) * 2020-05-27 2023-03-14 北京火山引擎科技有限公司 Data writing method and device, computer equipment and storage medium
CN112509176A (en) * 2020-11-30 2021-03-16 北京公共交通控股(集团)有限公司 Fault repair method and device based on vehicle data
CN114357030A (en) * 2022-01-04 2022-04-15 深圳市智百威科技发展有限公司 Big data storage system and method
CN114884713A (en) * 2022-04-26 2022-08-09 中通服慧展科技有限公司 Information protection method, device, equipment and medium
CN114884713B (en) * 2022-04-26 2024-05-10 中通服慧展科技有限公司 Information protection method, device, equipment and medium

Also Published As

Publication number Publication date
CN102970104B (en) 2016-01-27

Similar Documents

Publication Publication Date Title
CN102970104A (en) Method for acquiring data and server
CN109582588B (en) Test case generation method and device and electronic equipment
CN111835582B (en) Configuration method and device of Internet of things inspection equipment and computer equipment
US8301935B2 (en) Distributed batch runner
CN104065741A (en) Data collection system and method
CN109918205A (en) A kind of edge device dispatching method, system, device and computer storage medium
CN110377590B (en) Data acquisition system and method based on Internet of things and computer readable storage medium
CN107957940B (en) Test log processing method, system and terminal
CN112053082A (en) Material management system based on cloud computing
CN109254839A (en) It determines the method in task triggered time, construct the method and system of task timer
CN109451019A (en) High concurrent acquisition method for industrial real-time data
CN107819825A (en) A kind of service scheduling method, device and electronic equipment
CN114706675A (en) Task deployment method and device based on cloud edge cooperative system
CN109697117B (en) Terminal control method, terminal control device and computer-readable storage medium
CN105357026A (en) Resource information collection method and computing node
CN113504996A (en) Load balance detection method, device, equipment and storage medium
CN117055496A (en) Multi-station product processing method and device, electronic equipment and storage medium
CN111429061A (en) Order distribution method and device
US20220309061A1 (en) Mining machine management method and system
CN112306722A (en) Method, device, equipment and computer readable medium for identifying fault
CN115408034A (en) Vehicle-mounted controller upgrading method and device, electronic equipment and storage medium
CN109710442A (en) A kind of execution method and apparatus of task
CN113364625B (en) Data transmission method, intermediate transmission equipment and storage medium
CN111885159B (en) Data acquisition method and device, electronic equipment and storage medium
CN115167297A (en) Intelligent manufacturing industry Internet of things based on thread control and control method

Legal Events

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

Address after: 4 / F, building 1, No.14 Jiuxianqiao Road, Chaoyang District, Beijing 100020

Patentee after: Beijing Jingwei Hengrun Technology Co., Ltd

Address before: 100101 Beijing city Chaoyang District Anxiang Beili 11 B block 8 layer

Patentee before: Beijing Jingwei HiRain Technologies Co.,Ltd.