CN106559477A - Data uploading method - Google Patents

Data uploading method Download PDF

Info

Publication number
CN106559477A
CN106559477A CN201610897998.9A CN201610897998A CN106559477A CN 106559477 A CN106559477 A CN 106559477A CN 201610897998 A CN201610897998 A CN 201610897998A CN 106559477 A CN106559477 A CN 106559477A
Authority
CN
China
Prior art keywords
power information
information table
measuring equipment
power
stored
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
CN201610897998.9A
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.)
Putian Intelligent Lighting Institute Co Ltd
Original Assignee
Putian Intelligent Lighting Institute 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 Putian Intelligent Lighting Institute Co Ltd filed Critical Putian Intelligent Lighting Institute Co Ltd
Priority to CN201610897998.9A priority Critical patent/CN106559477A/en
Publication of CN106559477A publication Critical patent/CN106559477A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The present invention proposes data uploading method, belongs to the communications field, including making measuring equipment that power information is obtained from electric quantity acquisition equipment by the first predetermined period, power information is preserved to power information table;Make the measuring equipment that network time is obtained from server by the second predetermined period, after successfully network time is obtained, will be stored in the power information in the power information table and be uploaded to storage server, and the power information table is emptied.By way of making measuring equipment and carrying out concentrating upload by the power information for getting by the cycle to storage server, it is to avoid because suspension causes the defect that power information cannot upload, improve the accuracy of power information upload.

Description

Data uploading method
Technical field
The invention belongs to the communications field, more particularly to data uploading method.
Background technology
The power consumption of household electrical appliance is closely bound up with the life of people, and ammeter all in statistician can only use telecommunications in family Breath, it is impossible to which the power information of accurately each household electrical appliance is provided, and in the position to take power of household electrical appliance such as socket, socket, sky Open, use the measuring equipment with power information acquisition function, then in the power information of the circuit that can be monitored smart machine Report for work Cloud Server, user using mobile terminals such as mobile phones by obtaining the data such as electricity consumption statistics and analysis from Cloud Server, can With clearly see become a Buddhist monk or nun in each household electrical appliance power information and electricity consumption frequency, and specification oneself electricity consumption, reach and economize on The purpose of electricity.
More than existing measuring equipment by the way of data real-time report, often gather a power information and be just reported to cloud service Device, complicated data analysiss then transfer to Cloud Server to process.But this method depends on network connectivty, once measuring equipment Network between Cloud Server disconnects, such as the time switch of router in family, network link break down, then disconnected Power information during net cannot reach Cloud Server, not have time tag and loss, Yong Huwu so as to cause electricity consumption data Method obtains accurate power information.
The content of the invention
In order to solve shortcoming and defect present in prior art, the invention provides uploading surely for improving continuous data Qualitatively data uploading method.
In order to reach above-mentioned technical purpose, the invention provides data uploading method, methods described includes:
Make measuring equipment that power information is obtained from electric quantity acquisition equipment by the first predetermined period, by power information preserve to Power information table;
Make the measuring equipment that network time is obtained from server by the second predetermined period, successfully obtain network time Afterwards, will be stored in the power information in the power information table and be uploaded to storage server, and the power information table is emptied;
Wherein, the power information includes current acquisition time accumulative power consumption corresponding with the current acquisition time.
Optionally, after the accumulative power consumption refers to that the measuring equipment is powered first, the power consumption for collecting it is cumulative With;After the accumulative power consumption exceedes predetermined threshold value, the accumulative power consumption is forced into zero.
Optionally, it is described to make measuring equipment that power information is obtained from electric quantity acquisition equipment by the first predetermined period, including:
The measuring equipment obtains local zone time attribute by first predetermined period;
If determining that local zone time is changed according to the local zone time attribute, start collection intervalometer;
After collection intervalometer is triggered, the measuring equipment is made to obtain power information.
Optionally, it is stored with power information with sequential organization in the power information table, and the power information is deposited There is the upper limit in storage quantity;It is provided with start pointer and current pointer in the power information table, the start pointer points to the The next position for storing power information is pointed in the position of one power information that is stored with, the current pointer.
Optionally, it is described power information to be preserved to power information table, including:
Power information is stored by the position pointed in current pointer, and current pointer is moved to next position.
Optionally, it is described to make measuring equipment that network time is obtained from server by the second predetermined period, including:
The measuring equipment startup reports intervalometer;
When it is described report intervalometer to be triggered after, the measuring equipment sends and obtains network time request, from server Obtain network time.
Optionally, it is described after successfully network time is obtained, will be stored in the power information in the power information table Storage server is reached, and the power information table is emptied:
It is after successfully network time is obtained, complete from start pointer to what is stored between current pointer in reading power information table Whole power informations are uploaded to storage server by portion's power information;
From start pointer to the whole power informations stored between current pointer in deletion power information table, by current pointer Move at start pointer.
Optionally, when the current pointer points to same position with the start pointer, do not deposit in the power information table Contain power information.
The beneficial effect brought of technical scheme that the present invention is provided is:
By way of making measuring equipment and carrying out concentrating upload by the power information for getting by the cycle to storage server, Avoid the defect that power information cannot upload being caused because of suspension, improve the accuracy of power information upload.
Description of the drawings
In order to be illustrated more clearly that technical scheme, embodiment will be described below needed for accompanying drawing to be used It is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is the schematic flow sheet of the data uploading method that the present invention is provided.
Specific embodiment
To make the structure and advantage of the present invention clearer, the structure of the present invention is made further below in conjunction with accompanying drawing Description.
Embodiment one
The invention provides data uploading method, as shown in figure 1, methods described includes:
101st, make measuring equipment that power information is obtained from electric quantity acquisition equipment by the first predetermined period, power information is protected Deposit to power information table;
102nd, make the measuring equipment that network time is obtained from server by the second predetermined period, successfully obtain network After time, will be stored in the power information in the power information table and be uploaded to storage server, and by the power information table Empty;
Wherein, the power information includes current acquisition time accumulative power consumption corresponding with the current acquisition time.
In force, the method that data are uploaded specifically includes two steps, makes measuring equipment obtain power information first, and The power information is preserved into power information table.Then measuring equipment is made to will be stored in the power information in power information table Reach storage server.Measuring equipment is respectively necessary for by the first predetermined period, the second default week when above-mentioned two step is carried out Phase is carried out, and under normal circumstances, the second predetermined period will be longer than the first predetermined period.
It is stored with power information, and the storage of power information with sequential organization in the power information table that the present embodiment is proposed There is the upper limit in quantity.The amount of capacity of power information table is defined, so as to save data management in power information management aspect Expense.
Specifically, start pointer and current pointer are provided with power information table, start pointer points to first storage There is the position of power information, current pointer points to the next position for storing power information.Power information is preserved to use The concrete mode of electrical information table is:Power information is stored by the position pointed in current pointer, and current pointer is moved to Next position.
Based on above-mentioned power information table, make measuring equipment by the first predetermined period from acquisition telecommunications at electric quantity acquisition equipment The concrete steps of breath include:
Measuring equipment obtains local zone time attribute by the first predetermined period;
If determining that local zone time is changed according to local zone time attribute, start collection intervalometer;
After collection intervalometer is triggered, measuring equipment is made to obtain power information.
It is similar with power information is obtained, make measuring equipment that network time is obtained from server by the second predetermined period, wrap Include:
Measuring equipment startup reports intervalometer;
After reporting intervalometer to be triggered, measuring equipment sends and obtains network time request, and network is obtained from server Time.
In addition, after successfully network time is obtained, will be stored in the power information in power information table and be uploaded to storage clothes Business device, and power information table is emptied:
It is after successfully network time is obtained, complete from start pointer to what is stored between current pointer in reading power information table Whole power informations are uploaded to storage server by portion's power information;
From start pointer to the whole power informations stored between current pointer in deletion power information table, by current pointer Move at start pointer.
Why aforesaid operations are carried out, be for the storage operation to power information in next cycle.
Optionally, when current pointer points to same position with start pointer, be not stored with power information table power information. After accumulative power consumption refers to that measuring equipment is powered first, the power consumption for collecting cumulative and;Preset when accumulative power consumption exceedes After threshold value, accumulative power consumption is forced to be zeroed.
If additionally, because suspension causes the time of measuring equipment itself and standard time error occur, in addition it is also necessary to order metering Equipment is obtained the standard time on network by other cycles, and then carries out time calibration according to the standard time, after time calibration The data as shown in step 101-102 are carried out again and uploads scheme, so as to avoid being forbidden to cause data to upload going out for failure because of the time It is existing.
The present invention proposes data uploading method, including making measuring equipment by the first predetermined period from electric quantity acquisition equipment Power information is obtained, power information is preserved to power information table;Make the measuring equipment by the second predetermined period from server Place obtains network time, and after successfully network time is obtained, the power information that will be stored in the power information table is uploaded to Storage server, and the power information table is emptied.By make measuring equipment by the power information for getting by the cycle to depositing Storage server carries out the mode for concentrating upload, it is to avoid because suspension causes the defect that power information cannot upload, improves and uses telecommunications The accuracy that breath is uploaded.
Each sequence number in above-described embodiment is for illustration only, does not represent the elder generation during the assembling or use of each part Afterwards sequentially.
Embodiments of the invention are the foregoing is only, it is not to limit the present invention, all in the spirit and principles in the present invention Within, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.

Claims (8)

1. data uploading method, it is characterised in that methods described includes:
Make measuring equipment that power information is obtained from electric quantity acquisition equipment by the first predetermined period, power information is preserved to electricity consumption Information table;
Make the measuring equipment that network time is obtained from server by the second predetermined period, after successfully network time is obtained, Will be stored in the power information in the power information table and be uploaded to storage server, and the power information table is emptied;
Wherein, the power information includes current acquisition time accumulative power consumption corresponding with the current acquisition time.
2. data uploading method according to claim 1, it is characterised in that the accumulative power consumption refers to that the metering sets It is standby be powered first after, the power consumption for collecting cumulative and;After the accumulative power consumption exceedes predetermined threshold value, will be described accumulative Power consumption forces zero.
3. data uploading method according to claim 1, it is characterised in that described to make measuring equipment by the first predetermined period Power information is obtained from electric quantity acquisition equipment, including:
The measuring equipment obtains local zone time attribute by first predetermined period;
If determining that local zone time is changed according to the local zone time attribute, start collection intervalometer;
After collection intervalometer is triggered, the measuring equipment is made to obtain power information.
4. data uploading method according to claim 1, it is characterised in that deposited with sequential organization in the power information table Power information is contained, and the stored number of the power information has the upper limit;It is provided with the power information table and starts to refer to Pin and current pointer, the start pointer point to the position of first power information that is stored with, under the current pointer is pointed to One position for being used to store power information.
5. data uploading method according to claim 4, it is characterised in that described power information to be preserved to power information Table, including:
Power information is stored by the position pointed in current pointer, and current pointer is moved to next position.
6. data uploading method according to claim 1, it is characterised in that described to make measuring equipment by the second predetermined period Network time is obtained from server, including:
The measuring equipment startup reports intervalometer;
When it is described report intervalometer to be triggered after, the measuring equipment sends and obtains network time request, obtains from server Network time.
7. data uploading method according to claim 4, it is characterised in that described after successfully network time is obtained, will The power information being stored in the power information table is uploaded to storage server, and the power information table is emptied:
After successfully network time is obtained, use from start pointer to the whole stored between current pointer in reading power information table Whole power informations are uploaded to storage server by electrical information;
From start pointer to the whole power informations stored between current pointer in deletion power information table, current pointer is moved to At start pointer.
8. data uploading method according to claim 7, it is characterised in that the current pointer is referred to the start pointer During to same position, be not stored with the power information table power information.
CN201610897998.9A 2016-10-14 2016-10-14 Data uploading method Pending CN106559477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610897998.9A CN106559477A (en) 2016-10-14 2016-10-14 Data uploading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610897998.9A CN106559477A (en) 2016-10-14 2016-10-14 Data uploading method

Publications (1)

Publication Number Publication Date
CN106559477A true CN106559477A (en) 2017-04-05

Family

ID=58443111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610897998.9A Pending CN106559477A (en) 2016-10-14 2016-10-14 Data uploading method

Country Status (1)

Country Link
CN (1) CN106559477A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554311A (en) * 2022-01-17 2022-05-27 深圳拓邦股份有限公司 Energy accumulation method for lighting lamp

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202353606U (en) * 2011-10-15 2012-07-25 江苏省电力公司南京供电公司 User power utilization information centralized system
CN103136914A (en) * 2011-11-24 2013-06-05 新疆电力公司电力科学研究院 TD-LTE wireless network-based automatic meter reading system
CN103490843A (en) * 2013-09-22 2014-01-01 四川九洲电器集团有限责任公司 Method for transmitting offline data from terminal to platform
CN104660293A (en) * 2013-11-21 2015-05-27 国家电网公司 Terminal, intelligent electricity consuming system and method for acquiring electricity consumption information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202353606U (en) * 2011-10-15 2012-07-25 江苏省电力公司南京供电公司 User power utilization information centralized system
CN103136914A (en) * 2011-11-24 2013-06-05 新疆电力公司电力科学研究院 TD-LTE wireless network-based automatic meter reading system
CN103490843A (en) * 2013-09-22 2014-01-01 四川九洲电器集团有限责任公司 Method for transmitting offline data from terminal to platform
CN104660293A (en) * 2013-11-21 2015-05-27 国家电网公司 Terminal, intelligent electricity consuming system and method for acquiring electricity consumption information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554311A (en) * 2022-01-17 2022-05-27 深圳拓邦股份有限公司 Energy accumulation method for lighting lamp

Similar Documents

Publication Publication Date Title
CN104935489B (en) A kind of information collection networking method and power information acquire network
CN107945053A (en) A kind of multiple source power distribution network data convergence analysis platform and its control method
CN112216090B (en) Device and method for generating topology of newly-built cell and checking and accepting user change
CN106443166B (en) A kind of kilowatt meter reading-out system based on platform of internet of things
CN107798849A (en) A kind of intelligent meter data recording system
CN106771880B (en) A kind of distribution network electricity anti-stealing system
CN103369044A (en) Mobile terminal user network perception diagnosis and treatment method based on cloud knowledge base
CN107727958A (en) A kind of power information event acquisition method of electric energy meter acquisition system
CN207518635U (en) Long-distance meter-reading system based on NB-IOT technologies
CN104113138A (en) Power-event collection system based on low-voltage power-line carrier communication
CN106559477A (en) Data uploading method
CN107819328A (en) A kind of storage method and device of electric network fault data
CN104699553B (en) The self-recovery method of clock after a kind of power information acquisition terminal Clock battery failure
CN110636107A (en) Power grid data interaction system based on 5g communication and interaction method thereof
CN103617553A (en) Comprehensive promotion system of grid data quality
CN103632522A (en) Mobile phone meter reading system
CN106202461B (en) A kind of synchronous method and device
CN107093069A (en) Intelligent electric meter data handling system and method
CN101083561A (en) Method for summarizing and reporting XDSL user connection parameter to network management
CN109143084A (en) A kind of storage batteries of transformer substation group state collecting device based on WLAN technology
CN202057425U (en) An intelligent long-distance temperature acquisition and transmission module
CN110992671B (en) Ammeter address forwarding method, device and system and electronic equipment
CN104703214A (en) Positioning monitoring method and device
CN105700042B (en) A kind of portable weather monitoring device
CN102882980A (en) Advanced material information (AMI) collection system file synchronization method

Legal Events

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

Application publication date: 20170405

RJ01 Rejection of invention patent application after publication