CN107894897A - A kind of long-range real-time upgrading of energy consumption collector and collocation method - Google Patents

A kind of long-range real-time upgrading of energy consumption collector and collocation method Download PDF

Info

Publication number
CN107894897A
CN107894897A CN201711164283.3A CN201711164283A CN107894897A CN 107894897 A CN107894897 A CN 107894897A CN 201711164283 A CN201711164283 A CN 201711164283A CN 107894897 A CN107894897 A CN 107894897A
Authority
CN
China
Prior art keywords
configuration file
rompaq
version
energy consumption
new
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
CN201711164283.3A
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.)
Dandong Huatong Measurement & Control Co Ltd
Original Assignee
Dandong Huatong Measurement & Control 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 Dandong Huatong Measurement & Control Co Ltd filed Critical Dandong Huatong Measurement & Control Co Ltd
Priority to CN201711164283.3A priority Critical patent/CN107894897A/en
Publication of CN107894897A publication Critical patent/CN107894897A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

A kind of long-range real-time upgrading of energy consumption collector and collocation method of the present invention, including:Step 1:Ask for the version number of ROMPaq and configuration file;Step 2:Original version is contrasted with redaction, if version is consistent, step 1 is performed and asks for version number again;Otherwise step 3 is performed;Step 3:Start Webget service acquisitions newest ROMPaq and configuration file, be saved in local;Step 4:New ROMPaq and configuration file are done into decryption processing, processing is decrypted according to specified key and encryption vector, if decryption is correct, new ROMPaq and configuration file are replaced into original program and file;Otherwise return to step 3 reacquires ROMPaq and configuration file;Step 5:New configuration file is loaded, starts application program.The inventive method, carry out remote upgrade that can in real time, accurate, safe or configuration, the complicated regional equipment of various remote and bad environments can be widely applied to and carry out remote upgrades and configuration.

Description

A kind of long-range real-time upgrading of energy consumption collector and collocation method
Technical field
The present invention relates to energy consumption collector technology, more particularly to a kind of long-range real-time upgrading of energy consumption collector and configuration side Method.
Background technology
Firmly build portion and carry out building for building energy consumption monitoring system in experimental cities such as Beijing, Tianjin, Shenzhen since 2007 If but compare in the supervision and management controlled public building air-conditioner temperature and lack effective means.So apply a large amount of Energy consumption harvester.Find in actual use, many equipment need often modification relevant configuration and maintenance.
At present, the energy consumption collecting device modification of in the market configures or upgrading mainly has two methods:
A kind of method is to send engineers and technicians to go modification configuration information or upgrading, this method ageing very to scene Difference, technical staff is needed to wait for, number of devices is a lot, and modification configuration or upgrading take long enough, and device distribution is wider General, the physical demands to technical staff is bigger.
Another method is remotely to download to configuration information in energy consumption collector, and this method remains manual configuration, If the IP at collector end is not fixed, can not configure;In addition, this passive modification collocation method, dangerous, it is impossible to ensure Configuration is changed again after cutting off original operation program, easily causes configuration file to damage, equipment cisco unity malfunction;
The content of the invention
The embodiment of the present invention provides a kind of long-range real-time upgrading of energy consumption collector and collocation method, can in real time, accurately, safely Carry out remote upgrade or configuration, can be widely applied to the complicated regional equipment of various remote and bad environments carry out it is long-range Upgrading and configuration.
The present invention provides a kind of long-range real-time upgrading of energy consumption collector and collocation method, comprises the following steps:
Step 1:The version number of ROMPaq and configuration file is asked for server;
Step 2:By the version of original ROMPaq and configuration file and the version of new ROMPaq and configuration file Contrasted, if version is consistent, performs step 1 and ask for version number again;If version is inconsistent, step 3 is performed;
Step 3:Start Webget service acquisitions newest ROMPaq and configuration file, be saved in local;
Step 4:Processing is decrypted according to specified key and encryption vector in new ROMPaq and configuration file, such as Fruit decryption is correct, and new ROMPaq and configuration file are replaced into original program and file;If decryption is incorrect, return Step 3 reacquires ROMPaq and configuration file;
Step 5:New configuration file is loaded, starts the application program after upgrading.
In the long-range real-time upgrading of energy consumption collector and collocation method of the present invention, also include before the step 1:
The embedded SQLite3 databases for being used to store ROMPaq and configuration file in energy consumption collector.
In the long-range real-time upgrading of energy consumption collector and collocation method of the present invention, version contrast is carried out in the step 2 Specially:
Step 2.1:The MD5 check codes of version are verified, if the MD5 check codes asked for verify with original MD5 Code is consistent, then performs step 3;Otherwise perform step 1 and ask for version number again;
Step 2.2:By the version number of original ROMPaq and configuration file and new ROMPaq and configuration file Version number is contrasted, if version number is consistent, performs step 3;Otherwise perform step 1 and ask for version number again.
In the long-range real-time upgrading of energy consumption collector and collocation method of the present invention, decryption processing is specific in the step 4 For:Do the close decryption processing of AES decryption processings or SM (X) state.
In the long-range real-time upgrading of energy consumption collector and collocation method of the present invention, the step 5 is specially:
Step 5.1:New ROMPaq and configuration file are moved to system directory;
Step 5.2:Original operation program process is killed;
Step 5.3:New configuration file is loaded, starts the application program after upgrading, completes remote upgrade and configuration.
A kind of long-range real-time upgrading of energy consumption collector and collocation method of the present invention, as long as energy consumption collector can network, nothing , can Remote configuration by being client or service end;The file of configuration can guarantee that the peace of energy consumption collector with encrypted transmission Entirely;Energy consumption collector automatically updates configuration, it is not necessary to manual intervention;Configuration and upgrading failure are needed not worry about, is not gone out in network Now in the case of exception, file will not damage.Even if damaging, collector will not also upgrade, and not influence normal work.
Brief description of the drawings
Fig. 1 is the flow chart of a kind of long-range real-time upgrading of energy consumption collector and collocation method.
Embodiment
It is as shown in Figure 1 a kind of long-range real-time upgrading of energy consumption collector and the flow chart of collocation method, method of the invention Specifically include step:
Step 1:The version number of ROMPaq and configuration file is asked for server;
Step 2:By the version of original ROMPaq and configuration file and the version of new ROMPaq and configuration file Contrasted, if version is consistent, performs step 1 and ask for version number again;If version is inconsistent, step 3 is performed;
Step 3:Start Webget service acquisitions newest ROMPaq and configuration file, be saved in local;
Step 4:New ROMPaq and configuration file are done into decryption processing, carried out according to specified key and encryption vector Decryption processing, if decryption is correct, new ROMPaq and configuration file are replaced into original program and file;If decryption is not Correctly, then return to step 3 reacquires ROMPaq and configuration file;
Step 5:New configuration file is loaded, starts the application program after upgrading.
When it is implemented, also include before step 1:
The embedded SQLite3 databases for being used to store ROMPaq and configuration file in energy consumption collector.
Version contrast is carried out in step 2 is specially:
Step 2.1:The MD5 check codes of version are verified, if the MD5 check codes asked for verify with original MD5 Code is consistent, then performs step 3;Otherwise perform step 1 and ask for version number again;
Step 2.2:By the version number of original ROMPaq and configuration file and new ROMPaq and configuration file Version number is contrasted, if version number is consistent, performs step 3;Otherwise perform step 1 and ask for version number again.
Decryption processing is specially in step 4:Do the close decryption processing of AES decryption processings or SM (X) state.
Step 5 is specially:
Step 5.1:New ROMPaq and configuration file are moved to system directory;
Step 5.2:Original operation program process is killed;
Step 5.3:New configuration file is loaded, starts the application program after upgrading, completes remote upgrade and configuration.
The method of the present invention, no matter collector is client or service end, and no matter collector erecting bed is commercial net Network or civilian network, no matter collector erecting bed is cable network or WIFI, 2/3/4 G networks, can realize reality When, accurate, safety carry out remote upgrade or configuration, it can be widely applied to the complicated ground of various remote and bad environments The equipment of area's installation carries out remote upgrade and configuration.
Presently preferred embodiments of the present invention is the foregoing is only, the thought being not intended to limit the invention is all the present invention's Within spirit and principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (5)

1. a kind of long-range real-time upgrading of energy consumption collector and collocation method, it is characterised in that comprise the following steps:
Step 1:The version number of ROMPaq and configuration file is asked for server;
Step 2:The version of the version of original ROMPaq and configuration file and new ROMPaq and configuration file is carried out Contrast, if version is consistent, performs step 1 and ask for version number again;If version is inconsistent, step 3 is performed;
Step 3:Start Webget service acquisitions newest ROMPaq and configuration file, be saved in local;
Step 4:Processing is decrypted according to specified key and encryption vector in new ROMPaq and configuration file, if solution It is close correct, new ROMPaq and configuration file are replaced into original program and file;If decryption is incorrect, return to step 3 reacquire ROMPaq and configuration file;
Step 5:New configuration file is loaded, starts the application program after upgrading.
2. the long-range real-time upgrading of energy consumption collector as claimed in claim 1 and collocation method, it is characterised in that in the step Also include before 1:
The embedded SQLite3 databases for being used to store ROMPaq and configuration file in energy consumption collector.
3. the long-range real-time upgrading of energy consumption collector as claimed in claim 1 and collocation method, it is characterised in that the step 2 Middle progress version, which contrasts, is specially:
Step 2.1:The MD5 check codes of version are verified, if the MD5 check codes asked for and original MD5 check codes one Cause, then perform step 3;Otherwise perform step 1 and ask for version number again;
Step 2.2:By the version number of original ROMPaq and configuration file and the version of new ROMPaq and configuration file Number contrasted, if version number is consistent, perform step 3;Otherwise perform step 1 and ask for version number again.
4. the long-range real-time upgrading of energy consumption collector as claimed in claim 1 and collocation method, it is characterised in that the step 4 Middle decryption processing is specially:Do the close decryption processing of AES decryption processings or SM (X) state.
5. the long-range real-time upgrading of energy consumption collector as claimed in claim 1 and collocation method, it is characterised in that the step 5 Specially:
Step 5.1:New ROMPaq and configuration file are moved to system directory;
Step 5.2:Original operation program process is killed;
Step 5.3:New configuration file is loaded, starts the application program after upgrading, completes remote upgrade and configuration.
CN201711164283.3A 2017-11-21 2017-11-21 A kind of long-range real-time upgrading of energy consumption collector and collocation method Pending CN107894897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711164283.3A CN107894897A (en) 2017-11-21 2017-11-21 A kind of long-range real-time upgrading of energy consumption collector and collocation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711164283.3A CN107894897A (en) 2017-11-21 2017-11-21 A kind of long-range real-time upgrading of energy consumption collector and collocation method

Publications (1)

Publication Number Publication Date
CN107894897A true CN107894897A (en) 2018-04-10

Family

ID=61804472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711164283.3A Pending CN107894897A (en) 2017-11-21 2017-11-21 A kind of long-range real-time upgrading of energy consumption collector and collocation method

Country Status (1)

Country Link
CN (1) CN107894897A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829424A (en) * 2018-07-17 2018-11-16 武汉金运激光股份有限公司 A kind of method and apparatus that remote deployment updates

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132573A (en) * 2006-08-23 2008-02-27 中兴通讯股份有限公司 Method for implementing terminal batch upgrading
CN104702631A (en) * 2013-12-04 2015-06-10 航天信息股份有限公司 Method and system for upgrading client software
US20170131993A1 (en) * 2015-11-05 2017-05-11 Dexcom, Inc. Compatibility check for continuous glucose monitoring application

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132573A (en) * 2006-08-23 2008-02-27 中兴通讯股份有限公司 Method for implementing terminal batch upgrading
CN104702631A (en) * 2013-12-04 2015-06-10 航天信息股份有限公司 Method and system for upgrading client software
US20170131993A1 (en) * 2015-11-05 2017-05-11 Dexcom, Inc. Compatibility check for continuous glucose monitoring application

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829424A (en) * 2018-07-17 2018-11-16 武汉金运激光股份有限公司 A kind of method and apparatus that remote deployment updates

Similar Documents

Publication Publication Date Title
CN110134420A (en) Firmware upgrade method and system based on cloud platform
CN104765629B (en) A kind of installation method and device of system application
CN102045201B (en) Automatic upgrading method and system of intranet server cluster
CN102857520B (en) Telnet protocol security access system and method for character terminal
CN105763389A (en) Electrical power monitoring and fault information management system based on Android platform
CN103595807B (en) A kind of data synchronization updating method and device
CN104793970A (en) Online upgrade method based on FTP
CN107294924B (en) Vulnerability detection method, device and system
CN111433773B (en) Updating gateways in substations
WO2016210013A1 (en) System and method for centralized configuration and authentication
CN106911685B (en) Intelligent control system of thing networking light traffic case
CN107122207A (en) Method for upgrading software, client device and server
CN110708164A (en) Control method and device for Internet of things equipment, storage medium and electronic device
CN112559005A (en) Internet of things equipment firmware updating method and system based on block chain and distributed storage
CN105846996B (en) The automatic deployment system and method for server certificate
CN105337978B (en) A kind of section method for verifying authority and system based on security service blocking
CN107894897A (en) A kind of long-range real-time upgrading of energy consumption collector and collocation method
CN107329787B (en) Method for updating terminal equipment program
CN103810420A (en) Application uninstall preventing method and system
CN108011870B (en) A kind of remote software online upgrading information automatic identification management method
CN109885629B (en) Unmanned aerial vehicle management method, unmanned aerial vehicle management device, computer system and readable storage medium
CN103795561A (en) Apparatus for upgrading internal network system
CN102394770A (en) Off-line configuration method for network equipment based on simple network management protocol (SNMP)
EP2808820A1 (en) Method of changing password in an industrial automation and control system
KR20200122551A (en) Method for providing a communication channel for secure management between a physically separated uniway data transmitting and receiving device in uniway security gateway system and uniway data transmitting and receiving device providing two uniway communication channels therefor

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: 20180410

RJ01 Rejection of invention patent application after publication