CN104135530A - Increment reporting method and device - Google Patents

Increment reporting method and device Download PDF

Info

Publication number
CN104135530A
CN104135530A CN201410383051.7A CN201410383051A CN104135530A CN 104135530 A CN104135530 A CN 104135530A CN 201410383051 A CN201410383051 A CN 201410383051A CN 104135530 A CN104135530 A CN 104135530A
Authority
CN
China
Prior art keywords
data
cloud server
status data
smart jack
current time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410383051.7A
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410383051.7A priority Critical patent/CN104135530A/en
Publication of CN104135530A publication Critical patent/CN104135530A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to an increment reporting method and device. The method comprises the following steps that: when a set period interval is reached, a smart socket compares current moment state data with recorded history increment data, and reports data items which are judged to be varied in the current moment state data to a cloud server for recording; and the smart socket does not report data items which are judged to be unvaried, and the cloud server calculate the current moment state data of the unvaried data items according to recorded state data of a previous moment. By adopting the increment reporting method and device, reporting of repeated data is reduced, the reporting data size is reduced, and the occupation of network bandwidth is effectively reduced.

Description

A kind of method that increment reports and device
Technical field
The present invention relates to intelligent power equipment field, method and device that particularly a kind of increment reports.
Background technology
At present, a lot of smart jacks can connect cloud server, and send voltage, electric current, on off state etc. information to cloud server at regular intervals, to facilitate user can understand at any time the running status of described smart jack.
But the degree that the information that smart jack reports repeats is larger, even if significant change does not occur the state of this socket, also can send identical status data to cloud server at every turn.Although the data volume that single socket reports is little at every turn, along with the use amount of socket increases, will certainly bring pressure to the network bandwidth.
Summary of the invention
The method and the device that the object of the present invention is to provide a kind of increment to report, by reducing number of times and the data volume of the regular uploaded state data of device, reduce taking of the network bandwidth.
In order to achieve the above object, a technical scheme of the present invention is to provide a kind of method that increment reports, wherein, arrive the cycle of setting when interval, smart jack compares the historical variable data of current time status data and its record, report being judged as vicissitudinous data item in current time status data, and will not be to report to being judged as unconverted data item;
Cloud server is to receiving the data item reporting, judge that it is the vicissitudinous data item line item of going forward side by side, and to the data item not reporting, judge that it is unconverted data item, and calculate the current time status data of the unconverted data item line item of going forward side by side according to the status data of the previous moment of cloud server place record.
Alternatively, in the time that smart jack successfully connects cloud server for the first time, the cycle interval that smart jack reports current time status data and regularly reports to cloud server, and historical variable is set in smart jack to record the status data in a nearest moment.
Alternatively, smart jack to after while judging that all data item all do not change, do not report or only report a repetition flag value to cloud server.
Alternatively, cloud server reports arriving the cycle interval and not receiving of setting, or while only receiving repetition flag value, calculates the current time status data of all data item line item of going forward side by side according to the status data of the previous moment of its record.
Alternatively, the operation that the status data of previous moment that what cloud server carried out pass through is calculated current time status data, in the time reaching current period interval, to carry out at once this operation, or receiving that user carries out this operation when current time status data is proposed for the first time to inquiry request.
Alternatively, smart jack judges when the on off state of this smart jack in current time status data is closed condition, only report a closed condition value to cloud server, make cloud server judge that according to closed condition value the equipment on smart jack does not have power consumption, and then calculate and record the numerical value of the data item of relevant devices power information in current time status data.
Alternatively, when occurring being connected when abnormal between smart jack and cloud server, the historical state data before the generation of cloud server abnormal replication.
Alternatively, smart jack reports a repetition flag value to cloud server, to represent that in current time status data, all data item all do not change; When occurring being connected when abnormal between smart jack and cloud server, smart jack is ignored the status data between anomalistic period, not uploaded state data;
If when cloud server receives repetition flag value, judge that in current time status data, all data item all do not change; Give the correct time if cloud server is not received on any, judgement occurs connecting abnormal.
Alternatively, when occurring being connected when abnormal between smart jack and cloud server, smart jack is uploaded state data not; After abnormal ending, smart jack is the status data not reporting between anomalistic period, disposable all handing in retroactively to cloud server.
Another technical scheme of the present invention is to provide the device that a kind of increment reports, and wherein comprises smart jack, and it is further provided with:
Electric energy computation chip, gathers the power information of the equipment on smart jack in the time of opening, and is recorded in corresponding register;
Regularly reading unit arriving the cycle of setting when interval, obtains the on off state of power information and smart jack as current time status data from corresponding register;
Historical variable setting unit, is provided with status data that historical variable records a nearest moment as historical variable data;
Comparison judgment unit, arriving the cycle of setting when interval, compares the historical variable data of the status data of current time and record, and judges whether the each data item in current time status data changes;
Regularly report unit, will be judged as vicissitudinous data item and report cloud server, by cloud server, the current time status data of vicissitudinous data item is carried out to record; The described unit that regularly reports will not be to report, so that cloud server is calculated the current time status data of the unconverted data item obtaining according to previous moment status data to being judged as unconverted data item.
Compared with existing best technique, the method that increment of the present invention reports and device, its advantage is:
The present invention realize fairly simple, not high to the technical requirement of smart jack and cloud server.
2. the present invention can significantly reduce the volume of transmitted data of network, and special when less demanding to the susceptibility of data variation, effect is more obvious.If when for example user is indifferent to moving within narrow limits of voltage and current, socket can be considered not variation and can report.
Brief description of the drawings
Fig. 1 is the schematic diagram that device of the present invention is realized a concrete example of increment report method;
Fig. 2 is the schematic diagram that device of the present invention is realized increment report method;
Fig. 3 is the schematic diagram that device of the present invention is realized the flow process of increment report method.
Embodiment
Device of the present invention, taking smart jack as example, the mode that adopts increment to report, reduces the data volume that reports repetition, to save network overhead.
Electric energy computation chip on smart jack, has recorded the information such as electric current, power consumption that when socket is opened, the equipment on socket uses, and the data that the program on socket reads corresponding register by timing obtain corresponding informance.Smart jack internal processes is provided with special historical variable, records the last status data such as electric weight, the on off state of socket successfully reporting.
As shown in Figure 1, Figure 2, Figure 3 shows, the mode that smart jack adopts increment to report to status data, after regularly reporting functions starts, carries out initialization of variable.When successfully connecting after cloud server for the first time, referring to the T1 moment, the status data that smart jack reports current time to cloud server (for example, the opening of the electric current I 1 of equipment, voltage U 1 and socket on socket) and the cycle interval t that regularly reports, and historical variable is set in smart jack to record the last status data.
While arriving report cycle each time afterwards, socket compares current status data and historical variable data, and vicissitudinous data item is reported.And to after be judged as unconverted data item will not be to report, or only report a repetition flag value.
For example, referring to T2, T5, T6 moment, only there are some data item wherein to change, these data item reported; Referring to the T4 moment, all data item all change, and all status datas are all reported; Again for example, referring to the T3 moment, all data item all do not change, and can not report, or only report a repetition flag value.
Cloud server is received and is reported when representing vicissitudinous data item, and it is recorded for inquiry or later use; And to the data item not reporting, judge that it is for not changing, according to current time and the cycle interval t that receives before, calculate and the historical state data that copies socket is carried out record as the status data of current time.
Taking the T2 moment as example, compare the T1 moment, electric current and voltage data change, and report electric current and voltage data server place record beyond the clouds by socket; And the on off state of socket does not change always as opening, will not report, cloud server is directly according to the opening in T1 moment, and judging and recording the on off state in T2 moment is also opening.
And taking the T3 moment as example, cloud server is not received and is reported at the report cycle of setting, or while receiving repetition flag value, judge that all status datas all do not change, thereby the historical state data that can directly calculate and copy socket is carried out record as the status data of current time.
Cloud server is calculated current all status datas or the wherein operation of some data item with historical state data, can be to carry out this operation once the moment that reaches report cycle, can be also receiving that user carries out this operation again when the status data of current time is proposed for the first time to inquiry request.
Taking the T3 moment as example, socket can as described above, all report cloud server by all status datas that change again.Or, smart jack can judge its on off state in nearest cycle interval, and because this socket is in closed condition, the equipment on socket can not be switched on, also just do not have power consumption consumption, now socket can only report closed condition value to represent that socket is in closed condition.Cloud server, according to closed condition value, just can directly judge that electric current, voltage data are zero.
In addition, if to report being connected of socket and cloud server in process to occur abnormal, the historical data processing policy between anomalistic period has three kinds:
The one, the historical data before cloud server abnormal replication.
The 2nd, ignore the status data between anomalistic period; For this situation, require socket within each cycle, even if data do not change, still need to report a value of statistical indicant (being for example aforesaid repetition flag value), so that server judged between the abnormal emergence period, be that data do not change on earth, or socket does not have reported data at all.
The 3rd, socket is the data that do not report between anomalistic period, disposable all handing in retroactively to cloud server.For this situation, require socket to possess extra treatment mechanism, in the present invention, specifically do not launch to describe.
In sum, the mode that device of the present invention adopts increment to report, reduces reporting of repeating data, reduces the data volume that device reports, and effectively reduces taking of the network bandwidth.
Although content of the present invention has been done detailed introduction by above preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.Read after foregoing those skilled in the art, for multiple amendment of the present invention and substitute will be all apparent.Therefore, protection scope of the present invention should be limited to the appended claims.

Claims (10)

1. the method that increment reports, is characterized in that,
Arrive the cycle of setting when interval, smart jack compares the historical variable data of current time status data and its record, report being judged as vicissitudinous data item in current time status data, and will not be to report to being judged as unconverted data item;
Cloud server is to receiving the data item reporting, judge that it is the vicissitudinous data item line item of going forward side by side, and to the data item not reporting, judge that it is unconverted data item, and calculate the current time status data of the unconverted data item line item of going forward side by side according to the status data of the previous moment of cloud server place record.
2. the method for claim 1, is characterized in that,
In the time that smart jack successfully connects cloud server for the first time, the cycle interval that smart jack reports current time status data and regularly reports to cloud server, and historical variable is set in smart jack to record the status data in a nearest moment.
3. the method for claim 1, is characterized in that,
Smart jack to after while judging that all data item all do not change, do not report or only report a repetition flag value to cloud server.
4. method as claimed in claim 3, is characterized in that,
Cloud server reports arriving the cycle interval and not receiving of setting, or while only receiving repetition flag value, calculates the current time status data of all data item line item of going forward side by side according to the status data of the previous moment of its record.
5. the method for claim 1, is characterized in that,
The operation that the status data of previous moment that what cloud server carried out pass through is calculated current time status data, in the time reaching current period interval, to carry out at once this operation, or receiving that user carries out this operation when current time status data is proposed for the first time to inquiry request.
6. the method for claim 1, is characterized in that,
Smart jack judges when the on off state of this smart jack in current time status data is closed condition, only report a closed condition value to cloud server, make cloud server judge that according to closed condition value the equipment on smart jack does not have power consumption, and then calculate and record the numerical value of the data item of relevant devices power information in current time status data.
7. the method for claim 1, is characterized in that,
When occurring being connected when abnormal between smart jack and cloud server, the historical state data before the generation of cloud server abnormal replication.
8. the method for claim 1, is characterized in that,
Smart jack reports a repetition flag value to cloud server, to represent that in current time status data, all data item all do not change; When occurring being connected when abnormal between smart jack and cloud server, smart jack is ignored the status data between anomalistic period, not uploaded state data;
If when cloud server receives repetition flag value, judge that in current time status data, all data item all do not change; Give the correct time if cloud server is not received on any, judgement occurs connecting abnormal.
9. the method for claim 1, is characterized in that,
When occurring being connected when abnormal between smart jack and cloud server, smart jack is uploaded state data not; After abnormal ending, smart jack is the status data not reporting between anomalistic period, disposable all handing in retroactively to cloud server.
10. the device that increment reports, is characterized in that, comprises smart jack, and it is further provided with:
Electric energy computation chip, gathers the power information of the equipment on smart jack in the time of opening, and is recorded in corresponding register;
Regularly reading unit arriving the cycle of setting when interval, obtains the on off state of power information and smart jack as current time status data from corresponding register;
Historical variable setting unit, is provided with status data that historical variable records a nearest moment as historical variable data;
Comparison judgment unit, arriving the cycle of setting when interval, compares the historical variable data of the status data of current time and record, and judges whether the each data item in current time status data changes;
Regularly report unit, will be judged as vicissitudinous data item and report cloud server, by cloud server, the current time status data of vicissitudinous data item is carried out to record; The described unit that regularly reports will not be to report, so that cloud server is calculated the current time status data of the unconverted data item obtaining according to previous moment status data to being judged as unconverted data item.
CN201410383051.7A 2014-08-06 2014-08-06 Increment reporting method and device Pending CN104135530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410383051.7A CN104135530A (en) 2014-08-06 2014-08-06 Increment reporting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410383051.7A CN104135530A (en) 2014-08-06 2014-08-06 Increment reporting method and device

Publications (1)

Publication Number Publication Date
CN104135530A true CN104135530A (en) 2014-11-05

Family

ID=51808052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410383051.7A Pending CN104135530A (en) 2014-08-06 2014-08-06 Increment reporting method and device

Country Status (1)

Country Link
CN (1) CN104135530A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105515900A (en) * 2015-12-07 2016-04-20 北京奇虎科技有限公司 Method and device for acquiring on-line state of terminal
CN107707632A (en) * 2017-09-19 2018-02-16 北京小米移动软件有限公司 Data reporting method and device based on smart jack
CN108449404A (en) * 2018-03-13 2018-08-24 深圳市中科智联科技有限公司 Reporting terminal information approach, terminal, concentrator and computer readable storage medium
CN108566320A (en) * 2018-03-28 2018-09-21 青岛海信智慧家居系统股份有限公司 A kind of method and electronic equipment of information reporting
CN108880952A (en) * 2018-03-28 2018-11-23 青岛海信智慧家居系统股份有限公司 A kind of household appliance reports the method, device and equipment of information
CN110035055A (en) * 2019-02-19 2019-07-19 中国铁建重工集团股份有限公司 The acquisition of industrial equipment teledata and processing method, transmission method
CN111078755A (en) * 2019-12-19 2020-04-28 远景智能国际私人投资有限公司 Time sequence data storage query method and device, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770702A (en) * 2004-11-02 2006-05-10 华为技术有限公司 Performance index maximum value realizing method in distribution environment
CN102546324A (en) * 2011-10-19 2012-07-04 无锡物联网产业研究院 Internet of things intelligent home system and method
CN102880150A (en) * 2012-10-11 2013-01-16 北京国电通网络技术有限公司 Method for acquiring power utilization information and smart socket

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770702A (en) * 2004-11-02 2006-05-10 华为技术有限公司 Performance index maximum value realizing method in distribution environment
CN102546324A (en) * 2011-10-19 2012-07-04 无锡物联网产业研究院 Internet of things intelligent home system and method
CN102880150A (en) * 2012-10-11 2013-01-16 北京国电通网络技术有限公司 Method for acquiring power utilization information and smart socket

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105515900A (en) * 2015-12-07 2016-04-20 北京奇虎科技有限公司 Method and device for acquiring on-line state of terminal
CN105515900B (en) * 2015-12-07 2019-04-19 北京奇虎科技有限公司 A kind of method and device obtaining terminal presence
CN107707632A (en) * 2017-09-19 2018-02-16 北京小米移动软件有限公司 Data reporting method and device based on smart jack
CN108449404A (en) * 2018-03-13 2018-08-24 深圳市中科智联科技有限公司 Reporting terminal information approach, terminal, concentrator and computer readable storage medium
CN108566320A (en) * 2018-03-28 2018-09-21 青岛海信智慧家居系统股份有限公司 A kind of method and electronic equipment of information reporting
CN108880952A (en) * 2018-03-28 2018-11-23 青岛海信智慧家居系统股份有限公司 A kind of household appliance reports the method, device and equipment of information
CN110035055A (en) * 2019-02-19 2019-07-19 中国铁建重工集团股份有限公司 The acquisition of industrial equipment teledata and processing method, transmission method
CN110035055B (en) * 2019-02-19 2022-02-01 中国铁建重工集团股份有限公司 Method for transmitting remote data of industrial equipment
CN111078755A (en) * 2019-12-19 2020-04-28 远景智能国际私人投资有限公司 Time sequence data storage query method and device, server and storage medium

Similar Documents

Publication Publication Date Title
CN104135530A (en) Increment reporting method and device
CN101989926B (en) System and method for adjusting an energy efficient ethernet
WO2014197741A3 (en) System and method for managing behavior change applications for mobile users
JP2009503686A5 (en)
WO2015041741A3 (en) Systems and methods for utility usage monitoring and management
CN110908940B (en) Method for adjusting serial port communication parameters and terminal equipment
WO2015041773A3 (en) System power management using communication bus protocols
CN105676023A (en) Recording method and system of fault recording data
CN104166611A (en) Hard disk temperature information acquisition device and method
CN115469627B (en) Intelligent factory operation management system based on Internet of things
CN106817314A (en) Big data acquisition method, device and system
CN106444345A (en) Time measurement circuit and method and measuring equipment
CN102750819A (en) Electric power system telesignalling displacement dithering-removing method
WO2018232912A1 (en) Management method and management system for data traffic of internet of things
CN108171265A (en) A kind of label preparation method, device and electronic equipment
CN102685155B (en) The method that content transmits, content delivering server and content transmit proxy server
CN208283795U (en) energy management control system
CN110996289A (en) Intelligent gateway, method and system for machine state monitoring diagnostic instrument
CN103647659A (en) Monitoring method and system
CN104459324A (en) Transmission wire impedance test device and method
CN104348641A (en) Fault detection method and fault detection device
CN204667397U (en) A kind of movement circuit being applicable to the flow collection equipment of networks congestion control information audit
CN112782745A (en) GM tube signal processing device and method for high dose rate field
CN103278682B (en) Maximum power demand calculation method based on short-time communication outage
CN104702364A (en) Clock frequency adjustment method and clock frequency adjustment device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141105

RJ01 Rejection of invention patent application after publication