CN102970104B - A kind of method and server obtaining data - Google Patents

A kind of method and server obtaining data Download PDF

Info

Publication number
CN102970104B
CN102970104B CN201210410646.8A CN201210410646A CN102970104B CN 102970104 B CN102970104 B CN 102970104B CN 201210410646 A CN201210410646 A CN 201210410646A CN 102970104 B CN102970104 B CN 102970104B
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.)
Active
Application number
CN201210410646.8A
Other languages
Chinese (zh)
Other versions
CN102970104A (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

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses the method obtaining data, comprise the first data that receiving terminal apparatus sends, and store described first data to the first memory space; Judge whether loss of data occurs, when determining loss of data occurs, Frame according to described first data is numbered, and determines the Frame numbering of missing data, and the second memory space that the Frame numbering storing described missing data is extremely corresponding with described terminal equipment; After described terminal equipment sends described first data of current data group, read the Frame numbering of described missing data from described second memory space, the missing data sending the Frame numbering carrying described missing data obtains instruction to corresponding terminal equipment; Receive described terminal equipment respond the missing data of described instruction transmission and be stored to described first memory space.The method achieve the acquisition of complete real time data, avoid shortage of data to work and the inconvenience brought of living, the invention also discloses a kind of server.

Description

A kind of method and server obtaining data
Technical field
The present invention relates to data communication technology field, more particularly, relate to a kind of method and the server that obtain data.
Background technology
Nowadays, along with the development of data communication technology, the acquisition technique based on the real time data of wired or wireless communication mode has successfully been applied to the every aspect of current scientific and technological industry and daily life.
In the collection and memory technology of real time data, whole system comprises host computer, terminal equipment also has client, generally, Data acquisition and storage based on wire transmission pattern not easily causes the disappearance of data, when host computer, terminal equipment are in a 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 sends real time data to host computer, host computer receives real time data and is stored in the database of self, then the real time data in database is sent to client, to meet the needs of client.But, if when terminal equipment is drawn out the storehouse with wireless network, or equipment is power-off suddenly, the real time data partial loss gathered in host computer will be made, again recover under normal circumstances, this part data of losing also cannot obtain again, so just causes client cannot receive complete real time data, and then have impact on the correctness of subsequent data analysis, make troubles to work and life.
Summary of the invention
In view of this, the invention provides a kind of acquisition data method, with the inconvenience realizing obtaining complete real time data, avoid shortage of data to bring to work and life.
Obtain a method for data, comprising:
The first that receiving terminal apparatus sends, to carry the Frame numbering preset data, and store described first data to first memory space corresponding with described terminal equipment;
Frame numbering according to described first data judges whether loss of data occurs, when determining loss of data occurs, Frame according to described first data is numbered, determine the Frame numbering of missing data, and the second memory space that the Frame numbering storing described missing data is extremely corresponding with described terminal equipment;
After described terminal equipment sends described first data of current data group, read the Frame numbering of described missing data from described second memory space, the missing data sending the Frame numbering carrying described missing data obtains instruction to corresponding terminal equipment;
Receive described terminal equipment respond the missing data of described instruction transmission and be stored to described first memory space.
Preferably, described Frame is numbered the arithmetic progression with pre-set tolerance;
The described numbering of the Frame according to described first data judges whether loss of data occurs, and comprising:
The Frame of described first data and upper described first data received that calculate current reception number between difference;
Judge whether described difference is described tolerance, if so, then determines shortage of data does not occur, otherwise, determine shortage of data occurs;
Determine the Frame numbering of missing data according to the Frame numbering of described first data, comprising:
Determine the first data of current reception Frame numbering and on first data received Frame numbering between and with described on the Frame of first data received number the numbering of the integral multiple differing described tolerance;
Described numbering is defined as the Frame numbering of described obliterated data.
Preferably, after described terminal equipment sends described first data of current data group, before read the Frame numbering of described missing data from described second memory space, also comprise:
Collection is stored in advance in described terminal equipment, carries the second data of the first minimum data frame number;
Gather in described first memory space described first data carrying the second minimum data frame number;
Obtain described first minimum data frame number and described second minimum data frame number, and calculate the difference between described first minimum data frame number and the second minimum data frame number;
When difference between described first minimum data frame number and the second minimum data frame number is less than zero, to determine between described first minimum data frame number and described second minimum data frame number and to differ the numbering of the integral multiple of described tolerance with described first minimum data frame number, by described numbering and described first minimum data frame number stored in second memory space corresponding with described terminal equipment.
Preferably, after described terminal equipment sends described first data of current data group, before read the Frame numbering of described missing data from described second memory space, also comprise:
Collection is stored in advance in described terminal equipment, carries the second data of the first maximum data frame number;
Gather in described first memory space described first data carrying the second maximum data frame number;
Obtain described first maximum data frame number and described second maximum data frame number, and calculate the difference between described first maximum data frame number and the second maximum data frame number;
When difference between described first maximum data frame number and the second maximum data frame number is greater than zero, to determine between described first maximum data frame number and described second maximum data frame number and to differ the numbering of the integral multiple of described tolerance with described first maximum data frame number, by described numbering and described first maximum data frame number stored in second memory space corresponding with described terminal equipment.
Preferably, described terminal equipment continuous reception data, is characterized in that, after described terminal equipment sends described first data of current data group, before read the Frame numbering of described missing data from described second memory space, also comprise:
Collection is stored in advance in described terminal equipment, carries the second data of the first minimum data frame number, the first maximum data frame number;
Gather the first data carrying the second maximum data frame number in described first memory space;
Obtain described first minimum data frame number, the first maximum data frame number and described second maximum data frame number, calculate difference between described first minimum data frame number and described second maximum data frame number;
Between described first minimum data frame number and described second maximum data frame number, difference is not described tolerance, and described difference is when being greater than zero, to determine between described first minimum data frame number with described second maximum data frame number and to differ the numbering of described tolerance integral multiple with described second maximum data frame number, by described numbering stored in second memory space corresponding with described terminal equipment.
A kind of server, comprising:
The first that receiving terminal apparatus sends, to carry the first data of the Frame numbering preset receiving element;
Be connected with described first receiving element, store first processing unit of described first data to first memory space corresponding with described terminal equipment;
Be connected with described first processing unit, number the judging unit judging whether loss of data occurs according to the Frame of described first data;
Be connected with described judging unit, when determining loss of data occurs, the Frame according to described first data is numbered, determine the determining unit of the Frame numbering of missing data;
The Frame of described missing data of being connected with described determining unit, storing numbers the second processing unit to second memory space corresponding with described terminal equipment;
Be connected with described second processing unit, after described terminal equipment sends described first data of current data group, read the reading unit of the Frame numbering of described missing data from described second memory space;
Be connected to described reading unit, send the missing data that the Frame that carries described missing data numbers and obtain the transmitting element of instruction to corresponding terminal equipment;
Be connected with described transmitting element, receive described terminal equipment and respond missing data that described instruction sends and the second receiving element being stored to described first memory space.
Preferably, described Frame is numbered the arithmetic progression with pre-set tolerance;
Described judging unit comprises:
The Frame of described first data and upper described first data received that calculate current reception number between the first computing module of difference;
The first judge module be connected with described first computing module, described first judge module judges whether described difference is described tolerance, if so, then determines shortage of data does not occur, otherwise, determine shortage of data occurs;
Described determining unit comprises:
Determine the first data of current reception Frame numbering and on first data received Frame numbering between and with described on the Frame of first data received number the numbering determination module of the numbering of the integral multiple differing described tolerance;
The Frame numbering determination module that the Frame be connected with described numbering determination module, described numbering is defined as described obliterated data is numbered.
Preferably, described server also comprises:
Collection is stored in advance in described terminal equipment, carries the first collecting unit of the second data of the first minimum data frame number;
Be connected with described first memory space, gather in described first memory space the second collecting unit of described first data carrying the second minimum data frame number;
Be connected with described first collecting unit, the second collecting unit, obtain described first minimum data frame number and described second minimum data frame number, and calculate the second computing unit of the difference between described first minimum data frame number and the second minimum data frame number;
The first determining unit be connected with described second computing unit and described reading unit, when difference between described first minimum data frame number and the second minimum data frame number is less than zero, described first determining unit to be determined between described first minimum data frame number and described second minimum data frame number and is differed the numbering of the integral multiple of described tolerance with described first minimum data frame number, by described numbering and described first minimum data frame number stored in second memory space corresponding with described terminal equipment.
Preferably, described server also comprises:
Collection is stored in advance in described terminal equipment, carries the 3rd collecting unit of the second data of the first maximum data frame number;
Be connected with described first memory space, gather in described first memory space the 4th collecting unit of described first data carrying the second maximum data frame number;
Be connected with described 3rd collecting unit, the 4th collecting unit, obtain described first maximum data frame number and described second maximum data frame number, and calculate the 3rd computing unit of the difference between described first maximum data frame number and the second maximum data frame number;
When the second determining unit be connected with described 3rd computing unit and described reading unit, difference between described first maximum data frame number and the second maximum data frame number are greater than zero, described second determining unit to be determined between described first minimum data frame number and described second minimum data frame number and is differed the numbering of the integral multiple of described tolerance with described first maximum data frame number, by described numbering and described first maximum data frame number stored in second memory space corresponding with described terminal equipment.
Preferably, described terminal equipment continuous reception data, is characterized in that, also comprise:
Gather the 5th collecting unit of the second data being stored in advance in described terminal equipment, carrying the first minimum data frame number, the first maximum data frame number;
Be connected with described first memory space, gather the 6th collecting unit of the first data carrying the second maximum data frame number in described first memory space;
Be connected with described 5th collecting unit, the 6th collecting unit, obtain described first minimum data frame number, the first maximum data frame number and described second maximum data frame number, calculate the 4th computing unit of difference between described first minimum data frame number and described second maximum data frame number;
The 3rd determining unit be connected with described 4th computing unit and described reading unit, between described first minimum data frame number and described second maximum data frame number difference for described tolerance, and described difference is when being greater than zero, described 3rd determining unit is determined to be greater than between described second maximum data frame number in described first minimum data frame number and to differ the numbering of described tolerance integral multiple with described second maximum data frame number, by described numbering stored in second memory space corresponding with described terminal equipment.
As can be seen from above-mentioned technical scheme, the invention provides a kind of method obtaining data, comprise the first data that receiving terminal apparatus sends, that carry the Frame numbering preset, and store described first data to first memory space corresponding with described terminal equipment; Frame numbering according to described first data judges whether loss of data occurs, when determining loss of data occurs, Frame according to described first data is numbered, determine the Frame numbering of missing data, and the second memory space that the Frame numbering storing described missing data is extremely corresponding with described terminal equipment; When terminal equipment draws in the storehouse with wireless network again, or when equipment Power resumption, now terminal equipment has sent described first data.After described terminal equipment sends described first data of current data group, read the Frame numbering of described missing data from described second memory space, the missing data sending the Frame numbering carrying described missing data obtains instruction to corresponding terminal equipment; Such terminal equipment sends described missing data again, finally missing data is stored to the first memory space preserving real time data.Therefore, obtain complete real time data, and then ensure that the integrality of client to data subsequent analysis, avoid shortage of data to work and the inconvenience brought of living.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of method flow diagram obtaining data disclosed in the embodiment of the present invention;
Fig. 2 is a kind of method flow diagram obtaining data disclosed in another embodiment of the present invention;
Fig. 3 is a kind of method flow diagram obtaining data disclosed in another embodiment of the present invention;
Fig. 4 is a kind of method flow diagram obtaining data disclosed in another embodiment of the present invention;
Fig. 5 is a kind of method flow diagram obtaining data disclosed in another embodiment of the present invention;
The structured flowchart of Fig. 6 a kind of server disclosed in the embodiment of the present invention;
The structured flowchart of Fig. 7 a kind of server disclosed in another embodiment of the present invention;
The structured flowchart of Fig. 8 a kind of server disclosed in another embodiment of the present invention;
The structured flowchart of Fig. 9 a kind of server disclosed in another embodiment of the present invention;
The structured flowchart of Figure 10 a kind of server disclosed in another embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of method obtaining data, with the inconvenience realizing obtaining complete real time data, avoid shortage of data to bring to work and life.
Obtain a method for data, as shown in Figure 1, comprise the following steps:
The first that S101, receiving terminal apparatus send, to carry the Frame numbering preset data, and store described first data to first memory space corresponding with described terminal equipment;
S102, judge whether loss of data occurs according to the Frame of described first data numbering, if determine, loss of data occurs, then perform step S103, loss of data does not occur if determine, then enter normal flow;
S103, to number according to the Frame of described first data, determine the Frame numbering of missing data, and the Frame numbering storing described missing data is to second memory space corresponding with described terminal equipment;
S104, after described terminal equipment sends described first data of current data group, from described second memory space read described missing data Frame numbering;
S105, transmission carry the missing data acquisition instruction of the Frame numbering of described missing data to corresponding terminal equipment;
S106, receive described terminal equipment respond described instruction send missing data and be stored to described first memory space.
As can be seen from the method obtaining data disclosed in the present embodiment, the method comprises the first data that receiving terminal apparatus sends, that carry the Frame numbering preset, and stores described first data to first memory space corresponding with described terminal equipment; Frame numbering according to described first data judges whether loss of data occurs, when determining loss of data occurs, Frame according to described first data is numbered, determine the Frame numbering of missing data, and the second memory space that the Frame numbering storing described missing data is extremely corresponding with described terminal equipment; So, when terminal equipment draws in the storehouse with wireless network again, or when equipment Power resumption, now, terminal equipment has sent described first data.And after described terminal equipment sends described first data of current data group, read the Frame numbering of described missing data from described second memory space, the missing data sending the Frame numbering carrying described missing data obtains instruction to corresponding terminal equipment; Such terminal equipment sends described missing data again, finally missing data is stored to the first memory space preserving real time data.Therefore, just can obtain complete real time data, and then ensure that the integrality of client to data subsequent analysis, avoid shortage of data to work and the inconvenience brought of living.
Obtaining in the method for data disclosed in above-described embodiment, if multiple terminal equipment is in wake-up states, and sending automatically to the data acquisition software of host computer ought the up till now real time data that gathers of terminal equipment, in advance multiple terminal equipment is numbered, and will be numbered for the data of each terminal equipment collection, the Frame of collection numbering can leave in self storage device of reference numeral by terminal equipment in order, after data acquisition in corresponding terminal equipment is complete, the collection of next terminal equipment real time data can be carried out according to the order of numbering.
When determining loss of data not to occur, then enter normal flow, so-called old process is exactly store real time data to the first memory space obtained in fact, and client device can obtain the complete real time data being stored to the first memory space.
Carrying out conveniently gathers real time data, when being numbered by Frame, needing to select best ordered series of numbers, is numbered according to certain rule to real-time data signal frame.Therefore, another embodiment of the present invention also discloses a kind of method obtaining data, as shown in Figure 2, comprises the following steps:
The first that S101, receiving terminal apparatus send, to carry the Frame numbering preset data, and store described first data to first memory space corresponding with described terminal equipment;
Wherein, described Frame is numbered the arithmetic progression with pre-set tolerance;
S102, judge whether loss of data occurs according to the Frame of described first data numbering, if determine, loss of data occurs, then perform step S103, loss of data does not occur if determine, then enter normal flow;
Wherein, step S102 comprises:
S1021, the Frame of described first data and upper described first data received calculating current reception number between difference;
S1022, judge whether described difference is described tolerance, if so, determines shortage of data does not occur, then perform step S103, otherwise, determine shortage of data occurs, then enter normal flow;
S103, to number according to the Frame of described first data, determine the Frame numbering of missing data, and the Frame numbering storing described missing data is to second memory space corresponding with described terminal equipment;
Wherein, step S103 comprises:
S1031, determine the first data of current reception Frame numbering and on first data received Frame numbering between and with described on the Frame of first data received number the numbering of the integral multiple differing described tolerance;
S1032, described numbering is defined as described obliterated data Frame numbering;
S1033, store the Frame numbering of described missing data to second memory space corresponding with described terminal equipment;
S104, after described terminal equipment sends described first data of current data group, from described second memory space read described missing data Frame numbering;
S105, transmission carry the missing data acquisition instruction of the Frame numbering of described missing data to corresponding terminal equipment;
S106, receive described terminal equipment respond described instruction send missing data and be stored to described first memory space.
Obtaining in the method for data disclosed in the present embodiment, if Frame numbering is decided to be the arithmetic progression with pre-set tolerance, such as from 1 to N natural sequence, when receiving terminal apparatus send, carry the first data of the Frame numbering preset, data 1, data 2, data 3 ... data N, and store described first data to first memory space corresponding with described terminal equipment, such as, the data being stored to the first memory space are data 1, data 2, data 3, now, if terminal equipment is drawn out the storehouse with wireless network, or equipment is power-off suddenly, host computer would not collect portions of real time data, when again recovering normal condition, now again can receiving terminal apparatus send carry preset Frame numbering the first data, , data 11 ... data N, calculate the first data of current reception, data 10 and upper first data received, difference between the Frame numbering of data 3, difference is 7, judge described difference not as tolerance 1, then determine loss of data occurs, Frame according to the first data is numbered, determine the Frame numbering of missing data, and the second memory space that the Frame numbering storing missing data is extremely 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, these numberings are decided to be the Frame numbering of missing data, be stored to second memory space corresponding with terminal equipment, after described terminal equipment sends described first data of current data group, the Frame numbering reading described missing data from described second memory space is last, the missing data sending the Frame numbering carrying described missing data obtains instruction to corresponding terminal equipment, receive described terminal equipment respond the missing data of described instruction transmission and be stored to described first memory space.
Certainly, Frame numbering can also be decided to be even number ordered series of numbers, when Frame is numbered even number ordered series of numbers, real time data is data 2, data 4, data 6 ... data 2N, the difference between so being numbered by calculating the first data of current reception and the Frame of upper first data received, judges whether difference is tolerance 2, if, then not there is loss of data in data, if not described tolerance 2, then there occurs data and lose.And then determine the Frame numbering of missing data, be stored to the second memory space, the Frame numbering reading described missing data from the second memory space is last, the missing data sending the Frame numbering carrying described missing data obtains instruction to corresponding terminal equipment, receives described terminal equipment and responds the missing data of described instruction transmission and be stored to described first memory space.
Sometimes, by calculating the difference that the first data of current reception and the Frame of upper first data received are numbered in above-described embodiment, judge that whether difference is the tolerance to arithmetic progression, if so, then data do not lack, if not, then shortage of data.But the Frame numbering of a part of missing data can be missed by this method, in order to supplement the Frame numbering of the missing data missed to the second memory space, another embodiment of the present invention also discloses a kind of method obtaining data, as shown in Figure 3, comprises the following steps:
The first that S101, receiving terminal apparatus send, to carry the Frame numbering preset data, and store described first data to first memory space corresponding with described terminal equipment;
Wherein, described Frame is numbered the arithmetic progression with pre-set tolerance;
S102, judge whether loss of data occurs according to the Frame of described first data numbering;
Wherein, step S102 comprises:
S1021, the Frame of described first data and upper described first data received calculating current reception number between difference;
S1022, judge whether described difference is described tolerance, if so, determines loss of data does not occur, then enters normal flow, otherwise, determine loss of data occurs, then perform step S103;
S103, to number according to the Frame of described first data, determine the Frame numbering of missing data, and the Frame numbering storing described missing data is to second memory space corresponding with described terminal equipment;
Wherein, step S103 comprises:
S1031, determine the first data of current reception Frame numbering and on first data received Frame numbering between and with described on the Frame of first data received number the numbering of the integral multiple differing described tolerance;
S1032, described numbering is defined as described obliterated data Frame numbering;
S1033, store the Frame numbering of described missing data to second memory space corresponding with described terminal equipment;
After step s 103, before step S104, also comprise:
S107, collection are stored in advance in terminal equipment, carry the second data of the first minimum data frame number;
S108, gather in the first memory space described first data carrying the second minimum data frame number;
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 whether described difference is less than zero, when difference between the first minimum data frame number and the second minimum data frame number is less than zero, then there is loss of data, perform step S111, when difference between the first minimum data frame number and the second minimum data frame number is not less than zero, then there is not the further loss of data, perform step S104;
S111, to determine between the first minimum data frame number and the second minimum data frame number and to differ the numbering of the integral multiple of described tolerance with the first minimum data frame number, by described numbering and the first minimum data frame number stored in second memory space corresponding with described terminal equipment.
S104, after described terminal equipment sends described first data of current data group, from described second memory space read described missing data Frame numbering;
S105, transmission carry the missing data acquisition instruction of the Frame numbering of described missing data to corresponding terminal equipment;
S106, receive described terminal equipment respond described instruction send missing data and be stored to described first memory space.
Obtaining in the method for data disclosed in the present embodiment, difference between the Frame numbering of the first data and the Frame of upper first data received that calculate current reception are numbered, and judge whether described difference is described tolerance, after obtaining the Frame numbering of a part of missing data, collection is stored in advance in terminal equipment, carry the second data of the first minimum data frame number, gather in the first memory space described first data carrying the second minimum data frame number simultaneously, obtain the first minimum data frame number and the second minimum data frame number, and the difference calculated between the first minimum data frame number and the second minimum data frame number, such as, the Frame of the real time data stored in initial time terminal equipment is numbered 1 to 50, the Frame being sent to data acquisition software is numbered 35 to 45, the Frame carrying the second data of the first minimum data frame number now gathered is numbered 31, the Frame carrying described first data of the second minimum data frame number in the first memory space gathered is numbered 35, difference between first minimum data frame volume 31 and the second minimum data frame number 35 is less than zero, therefore, the known loss that there occurs data, determine between 31 to 35, and differ the numbering of the integral multiple of tolerance 1 and the first minimum data frame number 31 with 31 be that the Frame of missing data is numbered, now the Frame of missing data is numbered 31, 32, 33, 34, and by these four data frame numbers stored in second memory space corresponding with described terminal equipment.
In like manner, we also need the maximum data frame number in terminal equipment and the maximum data frame number in real-time data base to compare, and judge whether the further loss that there occurs data.Similar to the above embodiments, another embodiment of the present invention also discloses a kind of method 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 s 103, before step S104, also comprise:
S112, collection are stored in advance in described terminal equipment, carry the second data of the first maximum data frame number;
S113, gather in the first memory space described first data carrying the second maximum data frame number;
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 whether described difference is greater than zero, if described difference is greater than zero, then there occurs the further loss of data, perform step S116, if described difference is not more than zero, then the upper further loss that data occur, then perform step S104;
S116, to determine between the first maximum data frame number and the second maximum data frame number and to differ the numbering of the integral multiple of tolerance with the first maximum data frame number, by described numbering and the first maximum data frame number stored in second memory space corresponding with described terminal equipment.
Obtaining in the method for missing data disclosed in above-described embodiment, difference between the Frame numbering of the first data and the Frame of upper first data received that calculate current reception are numbered, and judge whether described difference is described tolerance, after obtaining the Frame numbering of a part of missing data, also can gather and be stored in advance in described terminal equipment, carry the second data of the first maximum data frame number, gather in the first memory space the first data carrying the second maximum data frame number simultaneously, obtain described first maximum data frame number and described second maximum data frame number, and the difference calculated between described first maximum data frame number and the second maximum data frame number.Such as, at initial time, the Frame of the real time data stored in terminal equipment is numbered 1 to 50, when sending the first data carrying the Frame numbering preset, and after storing described first data to the first memory space corresponding with described terminal equipment, when the Frame stored in terminal equipment is numbered 35 to 50, what collect like this is stored in advance in described terminal equipment, the Frame carrying 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 calculating gained is 16, described difference is greater than zero, then determine the further loss that there occurs data, determine that the Frame numbering of missing data is between 34 to 50, and the numbering of the integral multiple of tolerance 1 and described first maximum data frame number is differed with 50, therefore the Frame of missing data is numbered 35, 36, 37, 38, 39, 40 ... 50, again these 16 data frame numbers are stored to second memory space corresponding with terminal equipment.
Above-mentioned four embodiments are disclosed to be obtained in the method for data, terminal equipment receive the external world input into real time data after, within the regular hour, terminal equipment does not receive external data, namely, after first data of current group stored being sent, new data are not had to enter the storage device of terminal equipment.But in general, terminal equipment is in the state upgrading its data storehouse often always, the extraneous new real time data constantly carrying Frame numbering to terminal equipment input.Therefore, do not number stored in the Frame of the missing data of the second memory space to supplement, another embodiment of the present invention also discloses a kind of method 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 continuous reception data, after step s 103, before step S104, also comprise:
S117, collection are stored in advance in described terminal equipment, carry the second data of the first minimum data frame number, the first maximum data frame number;
S118, gather the first data carrying the second maximum data frame number in described first memory space;
S119, obtain described first minimum data frame number, the first maximum data frame number and described second maximum data frame number, calculate difference between described first minimum data frame number and described second maximum data frame number;
S120, judge whether described difference is greater than zero, and whether be not described tolerance, if difference is not described tolerance between described first minimum data frame number and described second maximum data frame number, and described difference is greater than zero, then data there occurs further loss, perform step S121, if difference is described tolerance between described first minimum data frame number and described second maximum data frame number, or described second maximum data frame number is greater than described first minimum data frame number and is less than described first maximum data frame number, there is not further loss in data, then perform step S104,
S121, to determine between described first minimum data frame number with described second maximum data frame number and to differ the numbering of described tolerance integral multiple with described second maximum data frame number, by described numbering stored in second memory space corresponding with described terminal equipment;
As can be seen from the method obtaining data disclosed in the present embodiment, when terminal equipment continues ceaselessly at receiving real-time data, when self stores the storage device continuous updating of real time data, after terminal equipment sends described first data of current data group, the Frame being stored to the second memory space is numbered the Frame numbering of missing data, but, now the Frame of missing data is numbered and is not only the Frame numbering being stored to the second memory space, and we also need to supplement the Frame numbering of the missing data of the second memory space.Therefore, first gather be stored in advance in described terminal equipment, carry the first minimum data frame number, the first maximum data frame number the second data, gather the first data carrying the second maximum data frame number in described first memory space.Such as, at initial time, the Frame of the real time data of the preservation in terminal equipment is numbered 1 to 100, now be sent in the data acquisition software of host computer by 1 to 10, also in the data that the outer machine of reception inputs to it while terminal equipment sends real time data, the Frame of the extraneous data to its input is numbered 101 to 110.In general, the device of above-mentioned first memory space, the second memory space and terminal equipment self preservation real time data can be defined as the database for preserving data.As everyone knows, the internal memory that the database of real time data preserved by terminal equipment self is certain, therefore, when the external world inputs data to its, Frame numbering in real-time data base becomes 11 to 110, and the change of Frame numbering makes the method for follow-up supplementary missing data to the second memory space change.
Frame in terminal equipment is numbered 11 to 110, therefore, first maximum data frame number is 110, first minimum data frame number is 11, and the second maximum data frame number is 10, can obtain thus, between first minimum data frame number and described second maximum data frame number, difference is tolerance 1, then there is not further loss in data, step 104 can be performed, after described terminal equipment sends described first data of current data group, read the Frame numbering of described missing data from described second memory space.
Such as, at initial time, the Frame of the real time data of the preservation in terminal equipment is numbered 1 to 100, now be sent in the data acquisition software of host computer by 1 to 10, and the Frame being stored in the first memory space is numbered and is only 1 to 8, also in the data that the outer machine of reception inputs to it while terminal equipment sends real time data, the Frame of the extraneous data to its input is numbered 101 to 110.Therefore, when the external world inputs data to its, Frame numbering in real-time data base becomes 11 to 110, first maximum data frame number is 110, first minimum data frame limit is numbered 11, second maximum data frame number is 8, between first minimum data frame number and described second maximum data frame number, difference 3 is not tolerance 1, and difference is greater than zero, then can determine that data there occurs further loss, 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, again these two are numbered stored in second memory space corresponding with described terminal equipment, then step 104 is performed.
For another example, at initial time, the Frame of the real time data of the preservation in terminal equipment is numbered 1 to 100, now be sent in the data acquisition software of host computer by 1 to 15, and the Frame numbering being stored in the first memory space is also 1 to 15, the Frame of receipt of subsequent is numbered 101 to 105, therefore, now, the Frame preserved in real-time data base in terminal equipment is numbered 5 to 105, therefore, first maximum data frame number is 105, first minimum data frame number is 5, second maximum data frame number is 15, can determine, second maximum data frame number 15 is greater than the first minimum data frame number 5, and be less than the first maximum data frame number 105, now, there is not further loss in data yet, perform step 104 and subsequent step, after described terminal equipment sends described first data of current data group, the Frame numbering of described missing data is read from described second memory space, the missing data sending the Frame numbering carrying described missing data obtains instruction to corresponding terminal equipment, receive described terminal equipment respond the missing data of described instruction transmission and be stored to described first memory space.
Obtaining in the method for data disclosed in above-described embodiment, reading the Frame numbering of missing data, also after the missing data of the Frame numbering carrying described missing data being obtained instruction to corresponding terminal equipment simultaneously, according to the missing number list of Data Update second memory space that terminal equipment sends, concrete grammar is the Frame read numbering deleted from the second memory space, or the Frame read numbering is put and indicates position, until all missing datas have read and have been saved to the first memory space, ensure the integrality of real time data, in case repeat to read transmission identical data to cause disorder to program threads, and then bring inconvenience in work.
The embodiment of the invention also discloses a kind of server, with the inconvenience realizing obtaining complete real time data, avoid 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, to carry the first data of the Frame numbering preset receiving element 101;
Be connected with the first receiving element 101, store first processing unit 102 of the first data to first memory space corresponding with terminal equipment;
Be connected with the first processing unit 102, number the judging unit 103 judging whether loss of data occurs according to the Frame of the first data;
Be connected with judging unit 103, when determining loss of data occurs, the Frame according to the first data is numbered, determine the determining unit 104 of the Frame numbering of missing data;
The Frame being connected, storing missing data with determining unit 104 numbers the second processing unit 105 to second memory space corresponding with terminal equipment;
Be connected with the second processing unit 105, after terminal equipment sends the first data of current data group, read the reading unit 106 of the Frame numbering of missing data from the second memory space;
Be connected to reading unit 106, send the transmitting element 107 that missing data that the Frame that carries missing data numbers obtains the extremely corresponding terminal equipment of instruction;
Be connected with transmitting element 107, receiving terminal apparatus responds missing data that described instruction sends and be stored to the second receiving element 108 of the first memory space.
In server disclosed in above-described embodiment, first receiving element 101 first receiving terminal apparatus send, carry the first data of the Frame numbering preset, first processing unit 102 stores the first data to first memory space corresponding with terminal equipment, secondly judging unit 103 judges whether loss of data occurs 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, second processing unit 105 stores the Frame numbering of missing data to second memory space corresponding with terminal equipment.When terminal equipment draws in the storehouse with wireless network again, or when equipment Power resumption, now terminal equipment has sent the first data.After terminal equipment sends the first data of current data group, second memory space is set up complete, reading unit 106 can read the Frame numbering of missing data from the second memory space, the missing data that transmitting element 107 then sends the Frame numbering carrying missing data obtains instruction to corresponding terminal equipment, the second receiving element 108, second receiving element 108 receiving terminal apparatus that missing data is sent it back server by terminal equipment responds the missing data of described instruction transmission and is stored to the first memory space.Come thus, missing data just can be stored to the first memory space, is kept in real-time data memory device.Therefore, this server obtains complete real time data, and then ensure that the integrality of client to data subsequent analysis, avoids shortage of data to work and the inconvenience brought of living.
When sending the instruction obtaining missing data, can a button be set on the interface of the data acquisition software of server, after this button is pressed, namely sends one obtains instruction from missing data to terminal equipment, after obtaining the feedback of terminal equipment, open the thread obtaining missing data.
Carrying out conveniently gathers real time data, when being numbered by Frame, needing to select best ordered series of numbers, is numbered according to certain rule to real-time data signal frame.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, to carry the first data of the Frame numbering preset receiving element 101;
Wherein, described Frame is numbered the arithmetic progression with pre-set tolerance;
Be connected with the first receiving element 101, store first processing unit 102 of the first data to first memory space corresponding with terminal equipment;
Be connected with the first processing unit 102, number the judging unit 103 judging whether loss of data occurs according to the Frame of the first data;
Wherein, judging unit 103 comprises:
The Frame of the first data and upper first data received that calculate current reception number between the first computing module 1031 of difference;
The first judge module 1032, first judge module 1032 be connected with the first computing module 1031 judges whether difference is described tolerance, if so, then determines shortage of data does not occur, otherwise, determine shortage of data occurs;
Be connected with judging unit 103, when determining loss of data occurs, the Frame according to the first data is numbered, determine the determining unit 104 of the Frame numbering of missing data;
Wherein, determining unit 104 comprises:
Determine the first data of current reception Frame numbering and on first data received Frame numbering between and with on the Frame of first data received number the numbering determination module 1041 of the numbering of the integral multiple differing tolerance;
The Frame numbering determination module 1042 that the Frame be connected with numbering determination module 1041, described numbering is defined as obliterated data is numbered.
The Frame being connected, storing missing data with determining unit 104 numbers the second processing unit 105 to second memory space corresponding with terminal equipment;
Be connected with the second processing unit 105, after terminal equipment sends the first data of current data group, read the reading unit 106 of the Frame numbering of missing data from the second memory space;
Be connected to reading unit 106, send the transmitting element 107 that missing data that the Frame that carries missing data numbers obtains the extremely corresponding terminal equipment of instruction;
Be connected with transmitting element 107, receiving terminal apparatus responds missing data that described instruction sends and be stored to the second receiving element 108 of the first memory space.
In server disclosed in above-described embodiment, when Frame is numbered the odd column with pre-set tolerance 2, the first computing module 1031 occurred in the judging unit 103 of loss of data is judged whether according to the Frame numbering of the first data, the Frame of the first data and upper first data received that first calculate current reception number between difference, if the Frame of the first data of current reception is numbered 9, and a upper Frame received is numbered 3, the difference then calculating gained is 6, first judge module 1032 judges to learn difference 6 not as tolerance 2, then determine shortage of data occurs.And then the numbering determination module 1041 in determining unit 104 determine the first data of current reception Frame numbering 9 and on first data received Frame numbering 3 between and with on the Frame numbering 3 of first data received differ the integral multiple of tolerance 2 be numbered 5 and 7, Frame numbering determination module 1042 these two numberings are decided to be obliterated data Frame numbering, and by 5 with 7 stored in the second memory space corresponding with terminal equipment.
By specific judging unit 103 and determining unit 104, can not by complete missing data Frame numbering all stored in the second memory space, in order to supplement the Frame numbering of the missing data missed 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, first processing unit 102, judging unit 103, determining unit 104, 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, determining unit 104 comprises numbering determination module 1041 and Frame numbering determination module 1042,
Also comprise:
Collection is stored in advance in described terminal equipment, carries the first collecting unit 109 of the second data of the first minimum data frame number;
Be connected with the first memory space, gather in the first memory space the second collecting unit 110 of the first data carrying the second minimum data frame number;
Be connected with the first collecting unit 109, second collecting unit 110, obtain the first minimum data frame number and the second minimum data frame number, 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 be connected with the second computing unit 111 and reading unit 106, when difference between the first minimum data frame number and the second minimum data frame number is less than zero, first determining unit 112 to be 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, by numbering and the first minimum data frame number stored in second memory space corresponding with described terminal equipment.
In server disclosed in above-described embodiment, when the first computing module 1031 calculates the difference between the Frame numbering of the first data of current reception and the Frame numbering of upper first data received, 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 collection of first collecting unit 109 is stored in advance in terminal equipment, carry the second data of the first minimum data frame number, simultaneously, second collecting unit 110 gathers in the first memory space the first data carrying the second minimum data frame number, second computing unit 111 obtains the first minimum data frame number and the second minimum data frame number, and the difference calculated between the first minimum data frame number and the second minimum data frame number.Such as, at initial time, the Frame of the real time data in terminal equipment is numbered 1 to 50, the Frame being sent to data acquisition software is numbered 35 to 45, now, the Frame carrying the second data of the first minimum data frame number that first collecting unit 109 gathers is numbered 31, the Frame carrying described first data of the second minimum data frame number in the first memory space that second collecting unit 110 gathers is numbered 35, the difference that second computing unit 111 calculates between the first minimum data frame number and the second minimum data frame number is-4, first determining unit 112 is determined between 31 to 35, and differ the numbering of the integral multiple of tolerance 1 and the first minimum data frame number 31 with 31 be that the Frame of missing data is numbered, now the Frame of missing data is numbered 31, 32, 33, 34, and by these four data frame numbers stored 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 carrying missing data obtains instruction to corresponding terminal equipment, second receiving element 108 receiving terminal apparatus responds the missing data of described instruction transmission and is stored to the first memory space, and then ensure that the integrality of the first memory space real time data.
In like manner, we also need the maximum data frame number in terminal equipment and the maximum data frame number in real-time data base to compare, and judge whether the further loss that there occurs 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:
First receiving element 101, first processing unit 102, judging unit 103, determining unit 104, 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:
Collection is stored in advance in described terminal equipment, carries the 3rd collecting unit 113 of the second data of the first maximum data frame number;
Be connected with the first memory space, gather in the first memory space the 4th collecting unit 114 of the first data carrying the second maximum data frame number;
Be connected with the 3rd collecting unit 113, the 4th collecting unit 114, obtain the first maximum data frame number and the second maximum data frame number, and calculate the 3rd computing unit 115 of the difference between the first maximum data frame number and the second maximum data frame number;
When the second determining unit 116 be connected with the 3rd computing unit 115 and reading unit 106, difference between described first maximum data frame number and the second maximum data frame number are greater than zero, second determining unit 116 to be 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, by described numbering and the first maximum data frame number stored in second memory space corresponding with terminal equipment.
When needing the first maximum data frame number of acquisition terminal equipment and be stored to the second maximum data frame number of the first memory space, the work setting of virtual bench is identical with the virtual bench workflow of the second minimum data frame number being stored to the first memory space with the first minimum data frame number of acquisition terminal equipment, only be converted to the 3rd collecting unit 113, the 4th collecting unit 114, the 3rd computing unit 115, second determining unit 116 respectively, how supplementing of missing data is carried out to each unit, will not repeat here.
Similarly, in server disclosed in above-mentioned four embodiments, terminal equipment receive the external world input into real time data after, within the regular hour, terminal equipment does not receive external data, namely, after first data of current group stored being sent, new data are not had to enter the storage device of terminal equipment.But in general, terminal equipment is in the state upgrading its data storehouse often always, the extraneous new real time data constantly carrying Frame numbering to terminal equipment input.Therefore, do not number stored in the Frame of the missing data of the second memory space to supplement, another embodiment of the present invention also discloses a kind of server, as shown in Figure 10, except comprising:
First receiving element 101, first processing unit 102, judging unit 103, determining unit 104, 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 the 5th collecting unit 117 of the second data being stored in advance in terminal equipment, carrying the first minimum data frame number, the first maximum data frame number;
Be connected with the first memory space, gather the 6th collecting unit 118 of the first data carrying the second maximum data frame number in described first memory space;
Be connected with the 5th collecting unit 117, the 6th collecting unit 118, obtain the first minimum data frame number, the first maximum data frame number and the second maximum data frame number, 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 be connected 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 when being greater than zero, 3rd determining unit 120 is determined to be greater than between the second maximum data frame number in the first minimum data frame number and to differ the numbering of described tolerance integral multiple with the second maximum data frame number, by described numbering stored in second memory space corresponding with described terminal equipment.
In server disclosed in 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, after terminal equipment sends described first data of current data group, the Frame being stored to the second memory space is numbered the Frame numbering of missing data, but, now the Frame of missing data is numbered and is not only the Frame numbering being stored to the second memory space, and we also need to supplement the Frame numbering of the missing data of the second memory space.Therefore, when terminal equipment continuous updating data, just needing to increase several working cell supplements complete by missing data, 5th collecting unit 117,6th collecting unit 118, the 4th computing unit 119, the 3rd determining unit 120 are arisen at the historic moment, the course of work refers to the method obtaining data, says here and does not repeat.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (8)

1. obtain a method for data, it is characterized in that, comprising:
The first that receiving terminal apparatus sends, to carry the Frame numbering preset data, and store described first data to first memory space corresponding with described terminal equipment, described Frame is numbered the arithmetic progression with pre-set tolerance;
Frame numbering according to described first data judges whether loss of data occurs, when determining loss of data occurs, Frame according to described first data is numbered, determine the Frame numbering of missing data, and the second memory space that the Frame numbering storing described missing data is extremely corresponding with described terminal equipment;
After described terminal equipment sends described first data of current data group, read the Frame numbering of described missing data from described second memory space, the missing data sending the Frame numbering carrying described missing data obtains instruction to corresponding terminal equipment;
Receive described terminal equipment respond the missing data of described instruction transmission and be stored to described first memory space;
After described terminal equipment sends described first data of current data group, before read the Frame numbering of described missing data from described second memory space, also comprise:
Collection is stored in advance in described terminal equipment, carries the second data of the first minimum data frame number;
Gather in described first memory space described first data carrying the second minimum data frame number;
Obtain described first minimum data frame number and described second minimum data frame number, and calculate the difference between described first minimum data frame number and the second minimum data frame number;
When difference between described first minimum data frame number and the second minimum data frame number is less than zero, to determine between described first minimum data frame number and described second minimum data frame number and to differ the numbering of the integral multiple of tolerance with described first minimum data frame number, by described numbering and described first minimum data frame number stored in second memory space corresponding with described terminal equipment.
2. the method for acquisition data according to claim 1, is characterized in that,
The described numbering of the Frame according to described first data judges whether loss of data occurs, and comprising:
The Frame of described first data and upper described first data received that calculate current reception number between difference;
Judge whether described difference is described tolerance, if so, then determines shortage of data does not occur, otherwise, determine shortage of data occurs;
Determine the Frame numbering of missing data according to the Frame numbering of described first data, comprising:
Determine the first data of current reception Frame numbering and on first data received Frame numbering between and with described on the Frame of first data received number the numbering of the integral multiple differing described tolerance;
Described numbering is defined as the Frame numbering of described obliterated data.
3. the method for the acquisition data according to claim 2 or 1, is characterized in that, after described terminal equipment sends described first data of current data group, before read the Frame numbering of described missing data from described second memory space, also comprises:
Collection is stored in advance in described terminal equipment, carries the second data of the first maximum data frame number;
Gather in described first memory space described first data carrying the second maximum data frame number;
Obtain described first maximum data frame number and described second maximum data frame number, and calculate the difference between described first maximum data frame number and the second maximum data frame number;
When difference between described first maximum data frame number and the second maximum data frame number is greater than zero, to determine between described first maximum data frame number and described second maximum data frame number and to differ the numbering of the integral multiple of described tolerance with described first maximum data frame number, by described numbering and described first maximum data frame number stored in second memory space corresponding with described terminal equipment.
4. the method for acquisition data according to claim 2, described terminal equipment continuous reception data, it is characterized in that, after described terminal equipment sends described first data of current data group, before read the Frame numbering of described missing data from described second memory space, also comprise:
Collection is stored in advance in described terminal equipment, carries the second data of the first minimum data frame number, the first maximum data frame number;
Gather the first data carrying the second maximum data frame number in described first memory space;
Obtain described first minimum data frame number, the first maximum data frame number and described second maximum data frame number, calculate difference between described first minimum data frame number and described second maximum data frame number;
Between described first minimum data frame number and described second maximum data frame number, difference is not described tolerance, and described difference is when being greater than zero, to determine between described first minimum data frame number with described second maximum data frame number and to differ the numbering of described tolerance integral multiple with described second maximum data frame number, by described numbering stored in second memory space corresponding with described terminal equipment.
5. a server, is characterized in that, comprising:
First receiving element, the first data that send for receiving terminal apparatus, that carry the Frame numbering preset, described Frame is numbered the arithmetic progression with pre-set tolerance;
First processing unit, is connected with described first receiving element, for storing described first data to first memory space corresponding with described terminal equipment;
Judging unit, is connected with described first processing unit, judges whether loss of data occurs for the Frame numbering according to described first data;
Determining unit, is connected with described judging unit, and for when determining loss of data occurs, the Frame according to described first data is numbered, and determines the Frame numbering of missing data;
Second processing unit, is connected with described determining unit, for storing the Frame numbering of described missing data to second memory space corresponding with described terminal equipment;
Reading unit, is connected with described second processing unit, for send current data group when described terminal equipment described first data after, read the Frame numbering of described missing data from described second memory space;
Transmitting element, is connected with described reading unit, obtains instruction to corresponding terminal equipment for the missing data sending the Frame numbering carrying described missing data;
Second receiving element, is connected with described transmitting element, responds the missing data of described instruction transmission for receiving described terminal equipment and is stored to described first memory space;
Also comprise:
First collecting unit, for gathering the second data being stored in advance in described terminal equipment, carrying the first minimum data frame number;
Second collecting unit, is connected with described first memory space, for gathering in described first memory space described first data that carry the second minimum data frame number;
Second computing unit, be connected with described first collecting unit, the second collecting unit, for obtaining described first minimum data frame number and described second minimum data frame number, and calculate the difference between described first minimum data frame number and the second minimum data frame number;
First determining unit, be connected with described second computing unit and described reading unit, when difference between described first minimum data frame number and the second minimum data frame number is less than zero, described first determining unit to be determined between described first minimum data frame number and described second minimum data frame number and is differed the numbering of the integral multiple of tolerance with described first minimum data frame number, by described numbering and described first minimum data frame number stored in second memory space corresponding with described terminal equipment.
6. server according to claim 5, is characterized in that, described judging unit comprises:
First computing module, the difference between numbering for the Frame of described first data and upper described first data received that calculate current reception;
First judge module, is connected with described first computing module, for judging whether described difference is described tolerance, if so, then determines shortage of data does not occur, otherwise, determine shortage of data occurs;
Described determining unit comprises:
Numbering determination module, for determine the first data of current reception Frame numbering and on first data received Frame numbering between and with described on the Frame of first data received number the numbering of the integral multiple differing described tolerance;
Frame numbering determination module, is connected with described numbering determination module, for described numbering being defined as the Frame numbering of described obliterated data.
7. the server according to claim 5 or 6, is characterized in that, also comprises:
3rd collecting unit, for gathering the second data being stored in advance in described terminal equipment, carrying the first maximum data frame number;
4th collecting unit, is connected with described first memory space, for gathering in described first memory space described first data carrying the second maximum data frame number;
3rd computing unit, be connected with described 3rd collecting unit, the 4th collecting unit, for obtaining described first maximum data frame number and described second maximum data frame number, and calculate the difference between described first maximum data frame number and the second maximum data frame number;
Second determining unit, be connected with described 3rd computing unit and described reading unit, when difference between described first maximum data frame number and the second maximum data frame number is greater than zero, described second determining unit to be determined between described first minimum data frame number and described second minimum data frame number and is differed the numbering of the integral multiple of described tolerance with described first maximum data frame number, by described numbering and described first maximum data frame number stored in second memory space corresponding with described terminal equipment.
8. server according to claim 6, described terminal equipment continuous reception data, is characterized in that, also comprise:
5th collecting unit, being stored in advance in described terminal equipment for gathering, carrying the second data of the first minimum data frame number, the first maximum data frame number;
6th collecting unit, is connected with described first memory space, for gathering the first data carrying the second maximum data frame number in described first memory space;
4th computing unit, be connected with described 5th collecting unit, the 6th collecting unit, for obtaining described first minimum data frame number, the first maximum data frame number and described second maximum data frame number, calculate difference between described first minimum data frame number and described second maximum data frame number;
3rd determining unit, be connected with described 4th computing unit and described reading unit, between described first minimum data frame number and described second maximum data frame number, difference is not described tolerance, and described difference is when being greater than zero, described 3rd determining unit is determined to be greater than between described second maximum data frame number in described first minimum data frame number and to differ the numbering of described tolerance integral multiple with described second maximum data frame number, by described numbering stored 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 CN102970104A (en) 2013-03-13
CN102970104B true 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 (1)

* 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

Families Citing this family (9)

* 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
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
CN107040601A (en) * 2017-04-21 2017-08-11 广州明珞汽车装备有限公司 A kind of collecting method and system
CN111625601B (en) * 2020-05-27 2023-03-14 北京火山引擎科技有限公司 Data writing method and device, computer equipment and storage medium
CN112509176B (en) * 2020-11-30 2023-04-07 北京公共交通控股(集团)有限公司 Fault repair method and device based on vehicle data
CN114357030B (en) * 2022-01-04 2022-09-30 深圳市智百威科技发展有限公司 Big data storage system and method
CN114884713B (en) * 2022-04-26 2024-05-10 中通服慧展科技有限公司 Information protection method, device, equipment and medium

Citations (3)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010095458A1 (en) * 2009-02-20 2010-08-26 日本電気株式会社 Analysis preprocessing system, analysis preprocessing method, and analysis preprocessing program

Patent Citations (3)

* 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

Cited By (2)

* 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
CN105677191B (en) * 2016-02-29 2019-03-08 宇龙计算机通信科技(深圳)有限公司 A kind of data entry device and device

Also Published As

Publication number Publication date
CN102970104A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
CN102970104B (en) A kind of method and server obtaining data
CN110377590B (en) Data acquisition system and method based on Internet of things and computer readable storage medium
CN104034361A (en) Large-batch sensor quality inspection method
CN204631931U (en) A kind of intelligence goes out to put in storage unmanned automatic metering system
CN109254839A (en) It determines the method in task triggered time, construct the method and system of task timer
CN112087731A (en) Edge processing host, system and method for information acquisition, processing and transmission of Internet of things
CN105045114A (en) Information processing method, cloud service platform and information processing system
CN103780689A (en) Automated production line equipment data acquisition method and system
CN109684221A (en) Test code coverage acquisition method, system, equipment and medium
CN106201441A (en) The acquisition methods of cpu busy percentage and device in a kind of network equipment
CN117055496A (en) Multi-station product processing method and device, electronic equipment and storage medium
CN105357026A (en) Resource information collection method and computing node
CN111429061A (en) Order distribution method and device
US20220309061A1 (en) Mining machine management method and system
CN109813954B (en) Current monitoring method and device for mobile robot
CN112306722A (en) Method, device, equipment and computer readable medium for identifying fault
CN105573235A (en) PLC SYSTEM and operating method thereof
CN115660288A (en) Analysis management system based on internet big data
CN104468569A (en) Integrity detection method and device of distributed data
CN109542903B (en) Data processing method and device
WO2020221656A1 (en) Method, apparatus and system for acquiring digitized data of factory
CN110727667B (en) Consistency management system for power equipment
CN111427698A (en) Azakban-based data synchronization method and device and computer equipment
CN107220748B (en) Equipment acquisition scheduling method and system based on greedy algorithm
CN113094088A (en) Database configuration information acquisition method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
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.

CP03 Change of name, title or address