CN104933853A - Ammeter data acquisition unit with infrared upgrading function and upgrading method thereof - Google Patents

Ammeter data acquisition unit with infrared upgrading function and upgrading method thereof Download PDF

Info

Publication number
CN104933853A
CN104933853A CN201510393171.XA CN201510393171A CN104933853A CN 104933853 A CN104933853 A CN 104933853A CN 201510393171 A CN201510393171 A CN 201510393171A CN 104933853 A CN104933853 A CN 104933853A
Authority
CN
China
Prior art keywords
infrared
module
control module
main control
upgrading
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.)
Withdrawn
Application number
CN201510393171.XA
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.)
Anhui Rui Hong Mdt Info Tech Ltd
Original Assignee
Anhui Rui Hong Mdt Info Tech 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 Anhui Rui Hong Mdt Info Tech Ltd filed Critical Anhui Rui Hong Mdt Info Tech Ltd
Priority to CN201510393171.XA priority Critical patent/CN104933853A/en
Publication of CN104933853A publication Critical patent/CN104933853A/en
Withdrawn legal-status Critical Current

Links

Abstract

The invention relates to an ammeter data acquisition unit with the infrared upgrading function and an upgrading method thereof. Compared with the prior art, the ammeter data acquisition unit with the infrared upgrading function and the upgrading method thereof overcome the defect that an acquisition unit cannot conduct batch upgrading when not connected with a power grid and the defects of an upgrading method of the acquisition unit. The ammeter data acquisition unit with the infrared upgrading function comprises a master control module, a storage unit, an RS485 communication module and an infrared transceiving module, wherein the master control module is a uPD78F0526 processor; the RS485 communication module is connected with the master control module; the storage unit is connected with the master control module through an I2C bus; the infrared transceiving module is connected with the data input end and the data output end of the master control module; the infrared transceiving module is in infrared wireless transmission with an infrared handheld machine. According to the ammeter data acquisition unit with the infrared upgrading function, infrared rays serve as information transmission media, and upgrading information is transmitted through the infrared rays without wire connection. Products can be upgraded in batch through the infrared broadcasting technology, the production cycle is shortened, and the ammeter data acquisition unit is applicable to batch upgrading of programs of the products in a production workshop.

Description

A kind of ammeter data collector and upgrade method thereof possessing infrared upgrade function
Technical field
The present invention relates to ammeter data collector technical field, specifically a kind of ammeter data collector and upgrade method thereof possessing infrared upgrade function.
Background technology
The use of ammeter data collector is comparatively general, and it can gather ammeter data and read in real time for system terminal.The program of collector inside when dispatching from the factory burning enter in storer, but along with the continuous upgrading of electric power software systems and the constantly perfect of electric power terminal function, the program leaving collector inside in cannot be satisfied the demand, then will carry out program upgrade.
The program upgrade of current collector mainly contains following several method: 1, utilize between PC and collector by RS485 communication modes, to realize the upgrading of collector terminal program, but the method is only suitable for single upgrading, if run into the batch upgrade of collector, then wiring is very loaded down with trivial details, and efficiency is extremely low; 2, directly burning program is carried out to collector control chip or storer by cd-rom recorder, the method cannot be applied in practice, need to pull down collector shell and carry out burning, during production, also will reserve DLL (dynamic link library), there is the problem that workload is large, be not suitable for batch upgrade equally; 3, utilize power line carrier to carry out program upgrade, though the method can batch upgrade, but be only applicable to the collector accessing electrical network, if when workshop, be also in the construction stage etc. do not connect electrical network, then cannot carry out updating operation.
How to develop and a kind ofly can not access the ammeter data collector that carries out batch upgrade under grid condition and upgrade method has become the technical matters being badly in need of solving.
Summary of the invention
The object of the invention is not carry out the collector of batch upgrade and the defect of method thereof not connecting under grid condition to solve in prior art, provide a kind of possess infrared upgrade function ammeter data collector and upgrade method solve the problems referred to above.
To achieve these goals, technical scheme of the present invention is as follows:
A kind of ammeter data collector possessing infrared upgrade function, comprise main control module, main control module is uPD78F0526 processor, also comprise storer, RS485 communication module and infrared transceiver module, described RS485 communication module is connected with main control module, described storer is connected with main control module by I2C bus, and described infrared transceiver module is connected with data output end with the data input pin of main control module respectively, and described infrared transceiver module and infrared palm machine carry out wireless infrared transmitting.
Also comprise carrier module, described carrier module is connected with the signal output part of main control module.
Also comprise power module, described power module is connected with infrared transceiver module with main control module, carrier module, storer, RS485 communication module respectively.
Infrared upgrade method, comprises the following steps:
Upgrading message, by ROMPaq framing composition upgrading message, is sent to infrared transceiver module by wireless infrared transmitting by infrared palm machine;
Main control module reads the upgrading message that infrared transceiver module receives, and upgrading message is resolved and validation verification it according to frame number by main control module, verifies that effective upgrade data writes in the corresponding stored unit of storer by main control module;
After all frames have all issued, main control module has checked the integrality of the upgrading frame in storer; If imperfect, main control module record lacks the frame number of frame, and by infrared transceiver module, the frame number lacking frame is sent to infrared palm machine;
The frame lacked is sent to infrared transceiver module by infrared palm machine again, the frame that infrared transceiver module sends to main control module polishing to lack;
Main control module carries out reset operation, and Bootloader in main control module checks the legitimacy of application area and upgrading district program, determines whether ROMPaq;
If upgrading district does not conform to rule and abandons updating operation;
If upgrading district is legal, ROMPaq, ROMPaq terminates the ROMPaq in rear deletion storer.
Beneficial effect
A kind of ammeter data collector and upgrade method thereof possessing infrared upgrade function of the present invention, compared with prior art adopt infrared ray as information transmission medium, upgrade information is transmitted by infrared ray, without the need to wiring.By adopting infrared ray broadcast technology can batch upgrade product, shortening the production cycle, being applicable to workshop batch to product program upgrade.There is simple to operate, saving manpower, feature easy to use, applied widely.
Accompanying drawing explanation
Fig. 1 is structural representation of the present invention
Wherein, 1-main control module, 2-infrared transceiver module, 3-RS485 communication module, 4-power module, 5-storer, 6-carrier module, 7-infrared palm machine.
Embodiment
For making to have a better understanding and awareness architectural feature of the present invention and effect of reaching, coordinating detailed description in order to preferred embodiment and accompanying drawing, being described as follows:
As shown in Figure 1, a kind of ammeter data collector possessing infrared upgrade function of the present invention, comprise main control module 1, main control module 1 adopts uPD78F0526 processor, for controlling whole collector and calculating.Also comprise storer 5, RS485 communication module 3 and infrared transceiver module 2, storer 5 stores for data and program, and RS485 communication module 3, for the connection between collector and outside ammeter, can obtain the data on outside ammeter.Infrared transceiver module 2 is for the communication between infrared palm machine 7 and main control module 1, and infrared palm machine 7 and main control module 1 can transceiving datas in infrared allowed band.
RS485 communication module 3 is connected with main control module 1, and the other end of RS485 communication module 3 is connected with outside ammeter, sends the data of outside ammeter to main control module 1.Storer 5 is connected with main control module 1 by I2C bus, uses I2C bus can complete transmission work reliably, fast.Infrared transceiver module 2 is connected with data output end with the data input pin of main control module 1 respectively, and infrared transceiver module 2 and infrared palm machine 7 carry out wireless infrared transmitting, can carry out wireless data input and output with infrared palm machine 7.
Carrier module 6 is for the carrier processing of signal, and carrier module 6 is connected with the signal output part of main control module 1, and the other end of carrier module 6 is connected with power circuit.The ammeter data that main control module 1 is collected by RS485 communication module 3 on power circuit, utilizes power circuit to reach system terminal by carrier module 6 carrier wave.Power module 4 is for powering to whole collector, and power module 4 is connected with infrared transceiver module 2 with main control module 1, carrier module 6, storer 5, RS485 communication module 3 respectively.Power taking is by after transformer pressure-reducing, rectifier rectification, capacitor filtering from line of electric force for power module 4, and access three-terminal voltage-stabilizing feed regulator isolator (78L05) is that+5V voltage supply whole system uses after adjustment.
The invention provides the infrared upgrade method that a kind of dependence possesses the ammeter data collector of infrared upgrade function, comprise the following steps:
The first step, is placed in infrared palm machine 7 within the scope of the Infrared Transmission of infrared transceiver module 2, utilizes the method for prior art to set up with infrared transceiver module 2 and communicates.Infrared palm machine 7 is by ROMPaq framing composition upgrading message, and multiple Frame forms upgrading message.Upgrading message is sent to infrared transceiver module 2 by wireless infrared transmitting by infrared palm machine 7.
Second step, the upgrading message received is passed to main control module 1 by infrared transceiver module 2, and main control module 1 reads the upgrading message that infrared transceiver module 2 receives.Upgrading message is resolved and validation verification it according to frame number by main control module 1, first carries out the sequence of frame number, then resolves to upgrade data, finally verify validity.If it is invalid to verify, the corrupted data that there is Receiver Problem and cause is described in data transmission procedure, the upgrading message damaged is deleted, again receive upgrading message from infrared palm machine 7 by infrared transceiver module 2.If upgrade data effectively, is then write in the corresponding stored unit of storer 5 by main control module 1 by checking.
3rd step, after all frames have all issued, main control module 1 has checked the integrality of the upgrading frame in storer 5, judges in transport process, whether have the Frame do not transmitted.If imperfect, main control module 1 record lacks the frame number of frame, owing to sorting to frame number in second step, directly can find out the frame number of lacked frame.By infrared transceiver module 2, the frame number lacking frame is sent to infrared palm machine 7, require that infrared palm machine 7 is reissued and lack frame.
4th step, the frame lacked is sent to infrared transceiver module 2 by infrared palm machine 7 again, the frame that infrared transceiver module 2 sends to main control module 1 polishing to lack, and the transmission that the ROMPaq now in storer 5 is complete terminates.
5th step, main control module 1 carries out reset operation, and the Bootloader started in main control module 1 checks the legitimacy of application area and upgrading district program, determines whether ROMPaq.
If upgrading district does not conform to rule and abandons updating operation, present procedure version, without the need to upgrading, proceeds to application area and performs.If upgrading district is legal, ROMPaq, ROMPaq terminates the ROMPaq in rear deletion storer 5, prevents program to be again upgraded, and completes a program upgrade.When reality uses, broadcast in infrared palm machine 7 pairs of infra-red range can be utilized to issue ROMPaq, and multiple infrared transceiver module 2 receives laggard line program upgrading processing, can realize the program upgrade of batch to ammeter data collector with this.
More than show and describe ultimate principle of the present invention, principal character and advantage of the present invention.The technician of the industry should understand; the present invention is not restricted to the described embodiments; the just principle of the present invention described in above-described embodiment and instructions; the present invention also has various changes and modifications without departing from the spirit and scope of the present invention, and these changes and improvements all fall in claimed scope of the present invention.The protection domain of application claims is defined by appending claims and equivalent thereof.

Claims (4)

1. one kind possesses the ammeter data collector of infrared upgrade function, comprise main control module (1), main control module (1) is uPD78F0526 processor, it is characterized in that: also comprise storer (5), RS485 communication module (3) and infrared transceiver module (2), described RS485 communication module (3) is connected with main control module (1), described storer (5) is connected with main control module (1) by I2C bus, described infrared transceiver module (2) is connected with data output end with the data input pin of main control module (1) respectively, described infrared transceiver module (2) and infrared palm machine (7) carry out wireless infrared transmitting.
2. a kind of ammeter data collector possessing infrared upgrade function according to claim 1, is characterized in that: also comprise carrier module (6), and described carrier module (6) is connected with the signal output part of main control module (1).
3. a kind of ammeter data collector possessing infrared upgrade function according to claim 2, it is characterized in that: also comprise power module (4), described power module (4) is connected with infrared transceiver module (2) with main control module (1), carrier module (6), storer (5), RS485 communication module (3) respectively.
4. infrared upgrade method according to claim 1, is characterized in that, comprise the following steps:
41) infrared palm machine (7) is by ROMPaq framing composition upgrading message, and upgrading message is sent to infrared transceiver module (2) by wireless infrared transmitting;
42) main control module (1) reads the upgrading message that infrared transceiver module (2) receives, upgrading message is resolved and validation verification it according to frame number by main control module (1), verifies that effective upgrade data writes in the corresponding stored unit of storer (5) by main control module (1);
43) after all frames have all issued, main control module (1) checks the integrality of the upgrading frame in storer (5); If imperfect, main control module (1) record lacks the frame number of frame, and by infrared transceiver module (2), the frame number lacking frame is sent to infrared palm machine (7);
44) frame lacked is sent to infrared transceiver module (2) by infrared palm machine (7) again, the frame that infrared transceiver module (2) sends to main control module (1) polishing to lack;
45) main control module (1) carries out reset operation, and Bootloader in main control module (1) checks the legitimacy of application area and upgrading district program, determines whether ROMPaq;
If upgrading district does not conform to rule and abandons updating operation;
If upgrading district is legal, ROMPaq, ROMPaq terminates the ROMPaq in rear deletion storer (5).
CN201510393171.XA 2015-07-07 2015-07-07 Ammeter data acquisition unit with infrared upgrading function and upgrading method thereof Withdrawn CN104933853A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510393171.XA CN104933853A (en) 2015-07-07 2015-07-07 Ammeter data acquisition unit with infrared upgrading function and upgrading method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510393171.XA CN104933853A (en) 2015-07-07 2015-07-07 Ammeter data acquisition unit with infrared upgrading function and upgrading method thereof

Publications (1)

Publication Number Publication Date
CN104933853A true CN104933853A (en) 2015-09-23

Family

ID=54121001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510393171.XA Withdrawn CN104933853A (en) 2015-07-07 2015-07-07 Ammeter data acquisition unit with infrared upgrading function and upgrading method thereof

Country Status (1)

Country Link
CN (1) CN104933853A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108964843A (en) * 2018-06-27 2018-12-07 宁波三星智能电气有限公司 A method of it is realized and is upgraded by intelligent electric energy meter infrared interface
CN116980290A (en) * 2023-09-22 2023-10-31 北京智芯微电子科技有限公司 Infrared communication upgrading method and device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108964843A (en) * 2018-06-27 2018-12-07 宁波三星智能电气有限公司 A method of it is realized and is upgraded by intelligent electric energy meter infrared interface
CN116980290A (en) * 2023-09-22 2023-10-31 北京智芯微电子科技有限公司 Infrared communication upgrading method and device and electronic equipment
CN116980290B (en) * 2023-09-22 2024-01-26 北京智芯微电子科技有限公司 Infrared communication upgrading method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN104104436A (en) Electricity meter data acquisition apparatus with infrared upgrade function and upgrade method thereof
CN104281520A (en) Tracking and debugging method, device and system
CN110405759A (en) A kind of chip control system
CN112100081B (en) Upgrade test method and device based on double-core intelligent electric meter and computer equipment
CN104933851A (en) Electric meter data collector with infrared upgrade function and upgrade method thereof
CN103106095A (en) Method for remotely upgrading industrial camera and camera
CN109951842A (en) A kind of bluetooth firmware method during upgrading for retaining BLE title and MAC Address
CN104933853A (en) Ammeter data acquisition unit with infrared upgrading function and upgrading method thereof
CN107621943A (en) A kind of FPGA dynamic batch programming system and method
CN207720150U (en) Wireless performance detection device
CN104978852A (en) Electricity meter data collection device with infrared upgrading function and upgrading method of electricity meter data collection device
CN106855850A (en) Based on portable equipment intelligent substation secondary void terminal figure reality symbol detection method
CN105827461A (en) Method for upgrading power line carrier communication module
CN104850446A (en) Electric meter data acquisition device with infrared upgrade function and upgrade method of electric meter data acquisition device
CN115827543A (en) Method, system, device and medium for realizing eSIP communication based on FPGA
CN112147562B (en) Bluetooth communication frame-based meter calibration method, system and meter calibration device
CN116155350A (en) Method and system for generating instructions of satellite in batches, storage medium and electronic equipment
CN113301182B (en) Networking communication system based on PLC bus
CN104793081A (en) USB (universal serial bus) interface detection device and method
CN104731723A (en) Power-off protection method and device for storage device
CN111541589B (en) Method, device and equipment for testing expansion module interface of intelligent terminal
CN104767995A (en) Method for recording electronic product test data and recording module
CN204925778U (en) Stage multimode cooperative control system
CN101540830A (en) Television upgrade-realization method and television with infrared upgrade functions
CN204925762U (en) Stage multimode cooperative system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20150923