A kind of heat-pump hot-water controller automatically updating methodTechnical field
The present invention relates to device upgrade technical field, more particularly to a kind of heat-pump hot-water controller automatically updating method.
Background technology
In production, life in reality, substantial amounts of industrial plants start to be managed by electronic equipment and computer program,One side electronic equipment has certain fault rate in production, and on the other hand, the integrated software of electronic equipment is also due to versionAging no longer adapts to the production process constantly updated.To the maintenance and upgrade of such field apparatus just into people's needsThe technical problem solved first.
Changed by coal in electric process exemplified by air energy heat pump, Shandong only Dezhou City, just there is more than 2000 small molded coal boiler to substituteWith the clean energy resource heating of million peasant households, larger demand is shown to air energy heat pump heating.Coal changes the use of electricity air energy heat pump,Have benefited from vigorously advocating and subsidizing for government.The dilatation of local supply line, is invested by government.Buy water heating heat pumpCost of equipment undertakes 70-80% by government.The routine use electricity charge are also respectively to undertake 30% by city, two-tier government of area.Jie of governmentEnter, it is desirable to which heat pump controller has unified Remote-Data-Interface, for provide operation of heat pump data from the background.Teledata connectsMouthful to realize that the function upgrading of heat pump controller provides data path.
This kind of maintenance of system by largely having unified Remote-Data-Interface equipment to form, remote maintenance is proposedNew demand, such as when equipment component has maintenance needs, it is accurate to determine to need maintained equipment and safeguard in time, and ensure to safeguardThe operation of system is efficient and reliable, and existing remote upgrade scheme is generally realized by the fixed terminal away from equipment in addition, withThe popularization of mobile Internet, in mobile terminal, the maintenance upgrade of easily control device undoubtedly can more maintain easily personnel.
The content of the invention
, can it is an object of the invention to provide a kind of heat-pump hot-water controller automatically updating method to realize the demandReliably to be safeguarded to largely having the equipment of unified Remote-Data-Interface to carry out efficient, and moving attendantThe maintenance upgrade of moved end easily control device.
The technical solution adopted by the present invention is:
A kind of heat-pump hot-water controller automatically updating method, including:
Step 1:Line control machine or controller information, and the line control machine corresponding with cloud database are read by mobile terminalOr controller information contrasts, to confirm to need the equipment upgraded;
Step 2:By mobile terminal to line control machine and/or controller remote upgrade;
Step 3:Update relevant information of the equipment upgraded in cloud database.
Further, maintenance personal can submit the two dimension of the exclusive identification code or equipment that need maintained equipment on mobile terminalsCode.
Further, it is necessary to verify the MCU models and controller of line control machine during the equipment for confirming to need to upgradeMCU models and exclusive identification code, if user have submitted the Quick Response Code of equipment, also need verify Quick Response Code.
Further, when line control machine and controller are required for upgrading, line control machine is preferentially upgraded, for controller, according to existingThe online situation of field device, controller is upgraded by apparatus logic address.
Further, device upgrade is completed, and restarts line control machine or controller operation from mobile terminal.
Further, mobile terminal receives the information after reruning, then the software code versions of equipment is checked, coreAfter success, legacy version software is deleted.
Further, after the completion of software version verification, line control machine or controller software version information are returned number by mobile terminalAccording to storehouse, beam back upgrading and complete information, change the code upgrade time of the equipment in cloud database.
Further, if user equipment powers off in upgrading failure or escalation process, upgrading is re-started.
Beneficial effects of the present invention, the invention provides a kind of simple and reliable heat-pump hot-water controller side of upgrading automaticallyMethod, the maintenance free of demolition of Teat pump boiler is realized, can be completed in mobile terminal, it is more convenient compared with conventional method flexible and suitableMaintenance for multiple equipment for having a unified port.
Brief description of the drawings
Fig. 1 is the system block diagram of the present invention;
Fig. 2 is the flow chart of embodiment 1.
Embodiment
In order that technical problems, technical solutions and advantages to be solved are more clearly understood, tie belowEmbodiment is closed, the present invention is described in detail.Specific embodiment described herein only to explain the present invention, is not used toLimit the present invention.
Embodiment 1
, can be by mobile phone to line when the line control machine installed in working site, it is necessary to when increasing function or wrong modificationControl device is upgraded.Promotion condition is will move out to be arranged to:Upgrade number to be more than 3 times, exit upgrading.
Escalation process step is as follows
Step 1:The unique address information of equipment or the two dimension of equipment are submitted on mobile phone by user or maintenance personalCode.
Step 2:Mobile phone calls the line control machine information in MES cloud databases by special APP, includes the two dimension of line control machineCode, MCU models and exclusive identification code.
Step 3:After mobile communication, the information MCU models and exclusive identification code of line control machine are read, and is compared, is contrastedThree steps of process point:
The first step, the Quick Response Code provided user, carries out lookup comparison in cloud database;Find and just upgrade, otherwise move backGo out upgrading;
Second step, the MCU models for the reading that communicates, it is compared with the information of the two-dimentional decoding apparatus in cloud database;Look intoTo just upgrading, upgrading is otherwise exited;
3rd step, communication are read MCU exclusive identification code, compared with the information of the two-dimentional decoding apparatus in cloud databaseIt is right;Find and just upgrade, otherwise exit upgrading.
The step of the above three is all by comparing successfully, obtaining upgrading authority.
Step 4:Mobile phone is upgraded line control machine by WIFI modes.
Step 5:Upgrade line control machine, line control machine calls BOOTLOADER programs, native codes are upgraded.Upgrading is completedAfterwards, software version information is write in the controller, and the code after upgrading is verified, and verification mode can be CRC check.After verification passes through, upgrading is completed.
Step 6:If upgrading is completed, cell phone application restarting line control machine operation.
Step 7:If user equipment powers off in verification failure or escalation process, cause upgrading to fail, re-start step4。
Step 8:Mobile phone receives line control machine upgrading and completed, the information (first powering on) after reruning, then to line control machineSoftware code versions checked, after checking successfully, delete legacy version software.
Step 9:After the completion of software version verification, liter is beamed back in the software version information return data storehouse of line control machine by mobile phoneLevel completes information, changes the code upgrade time of the line control machine in cloud database.
Embodiment 2
When the controller installed in working site, it is necessary to when increasing function or modification known error, mobile phone can be passed throughController is upgraded.Promotion condition is exited in setting:It is more than 3 times when upgrading number, exits upgrading.
Escalation process step is as follows:
Step 1:The unique address information of equipment or the two dimension of equipment are submitted on mobile phone by user or maintenance personalCode;
Step 2:Mobile phone calls the line control machine information in MES cloud databases by special APP, includes the two dimension of line control machineCode, MCU models.
Step 3:After mobile communication, the MCU models of line control machine are read, and are compared, comparison process is in two steps:
The first step, the Quick Response Code provided user, carries out lookup comparison in cloud database;Find and just upgrade, otherwise move backGo out upgrading;
Second step, the MCU models for the reading that communicates, it is compared with the information of the two-dimentional decoding apparatus in cloud database;Look intoTo just upgrading, upgrading is otherwise exited;
The step of the above two is all by comparing successfully, obtaining upgrading authority.
Step 4:After comparison passes through, then the upgrading that step 5 is controlled device is performed, otherwise increase and once upgrade number, andReturn and perform step 2.
Step 5:Mobile phone calls the controller information of equipment in MES cloud databases by special APP, includes the number of controllerAmount, Quick Response Code, MCU models and exclusive identification code.
Step 6:Mobile phone is communicated by WIFI modes with controller 1, and the controller information of equipment is read at scene, includingThe quantity of controller, Quick Response Code, MCU models and exclusive identification code.
Step 7:Information after mobile communication with controller 1 is compared, and obtains upgrading authority, three steps of comparison process point:
The first step, the Quick Response Code provided user, carries out lookup comparison in cloud database;Find and just upgrade, otherwise move backGo out upgrading;
Second step, the MCU models for the Read Controller that communicates, compared with the information of the two-dimentional decoding apparatus in cloud databaseIt is right;Find and just upgrade, otherwise exit upgrading;
3rd step, communication Read Controller MCU exclusive identification code, with the information of the two-dimentional decoding apparatus in cloud databaseIt is compared;Find and just upgrade, otherwise exit upgrading.
The step of the above three is by comparing successfully, obtaining upgrading authority.
Step 8:Upgrade controller, intelligent controller calls BOOTLOADER programs, to controller 1, according to existing during upgradingThe online situation of field device, the code of controller 1 or n is upgraded by apparatus logic address.
After the completion of upgrading, software version information is write in the controller, and the code after upgrading is verified, verification sideFormula can be CRC check or add and verify.After verification passes through, the upgrading of controller 1 is completed.
Step 9:If the upgrading of controller 1 is completed, the code upgrade of device 2 is controlled, until controller n.
Step 10:If user equipment powers off in upgrading failure or escalation process, step 5 is re-started.
Step 11:Cell phone application restarts line control machine and controller operation, and the information after reruning is (on first timeElectricity), then the software code versions of line control machine are checked.If checking successfully, upgrading terminates;Otherwise, repeat
Step 12:Mobile phone receives the information deletion legacy version software after controller normal operation.
Step 13:After the completion of upgrading, mobile phone is by the software version information return data storehouse of controller.
In embodiment, mobile terminal is established using communication with line control machine and connected, and is not limited to above-mentioned WIFI and is led toLetter mode.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the invention, all originals in the present inventionThen with all any modification, equivalent and improvement made within spirit etc., it is included within protection scope of the present invention.