CN104978852A - Electricity meter data collection device with infrared upgrading function and upgrading method of electricity meter data collection device - Google Patents
Electricity meter data collection device with infrared upgrading function and upgrading method of electricity meter data collection device Download PDFInfo
- Publication number
- CN104978852A CN104978852A CN201510468026.3A CN201510468026A CN104978852A CN 104978852 A CN104978852 A CN 104978852A CN 201510468026 A CN201510468026 A CN 201510468026A CN 104978852 A CN104978852 A CN 104978852A
- Authority
- CN
- China
- Prior art keywords
- infrared
- main control
- control module
- module
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention relates to an electricity meter data collection device with an infrared upgrading function and an upgrading method of the electricity meter data collection device and can be used for solving the defect that existing collection devices can not be updated in batch under a condition of disconnection of a grid and the detects in an existing updating method compared with the prior art. The electricity meter data collection device comprises a main control module, a memorizer, an RS485 communication module and an infrared receiving and transmitting module, wherein the main control module is a uPD78F0526 processor; the RS485 communication module is connected with the main control module; the memorizer is connected with the main control module by an I2C bus; the infrared receiving and transmitting module is connected with the data input end and the data output end of the main control module; and the infrared receiving and transmitting module is in infrared wireless transmission with an infrared handheld game console. According to the device and the method, infrared rays are used as an information transmission medium; and updating information is transmitted by the infrared rays without wiring. The batch upgrading of products can be realized by using an infrared ray broadcast technology, the production cycle is shortened, and the method is suitable for updating a product program in batch in a workshop.
Description
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).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510468026.3A CN104978852A (en) | 2015-08-04 | 2015-08-04 | Electricity meter data collection device with infrared upgrading function and upgrading method of electricity meter data collection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510468026.3A CN104978852A (en) | 2015-08-04 | 2015-08-04 | Electricity meter data collection device with infrared upgrading function and upgrading method of electricity meter data collection device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104978852A true CN104978852A (en) | 2015-10-14 |
Family
ID=54275325
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510468026.3A Withdrawn CN104978852A (en) | 2015-08-04 | 2015-08-04 | Electricity meter data collection device with infrared upgrading function and upgrading method of electricity meter data collection device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104978852A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117573156A (en) * | 2023-10-19 | 2024-02-20 | 京源中科科技股份有限公司 | Ultrasonic water meter upgrading method, system and device supporting infrared function |
-
2015
- 2015-08-04 CN CN201510468026.3A patent/CN104978852A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117573156A (en) * | 2023-10-19 | 2024-02-20 | 京源中科科技股份有限公司 | Ultrasonic water meter upgrading method, system and device supporting infrared function |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104104436A (en) | Electricity meter data acquisition apparatus with infrared upgrade function and upgrade method thereof | |
US9292411B2 (en) | Wireless debugging and updating of firmware | |
CN112653738B (en) | Internet of things network debugging system and method | |
CN106787199A (en) | A kind of portable substation simulated testing system and method | |
CN103475747A (en) | Electric energy meter networked system capable of automatically sending address information and sending method thereof | |
CN112100081B (en) | Upgrade test method and device based on double-core intelligent electric meter and computer equipment | |
CN103996276A (en) | Remote transmission system and method for data of power plant | |
CN109951842A (en) | A kind of bluetooth firmware method during upgrading for retaining BLE title and MAC Address | |
CN104933851A (en) | Electric meter data collector with infrared upgrade function and upgrade method thereof | |
CN113810788A (en) | Intelligent ammeter information transmission method and device and terminal equipment | |
CN111081003A (en) | Meter reading method, device and system | |
CN107621943A (en) | A kind of FPGA dynamic batch programming system and method | |
CN104933853A (en) | Ammeter data acquisition unit with infrared upgrading function and upgrading method thereof | |
CN105607606A (en) | Data acquisition device and data acquisition method based on double-mainboard framework | |
CN104978852A (en) | Electricity meter data collection device with infrared upgrading function and upgrading method of electricity meter data collection device | |
CN105094886A (en) | Device and method for burning serial number to lower computer containing RS (Recommended Standard) 485 bus from PC (Personal Computer) machine | |
CN104793081A (en) | USB (universal serial bus) interface detection device and method | |
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 | |
CN115827543A (en) | Method, system, device and medium for realizing eSIP communication based on FPGA | |
CN104850446A (en) | Electric meter data acquisition device with infrared upgrade function and upgrade method of electric meter data acquisition device | |
CN103531002B (en) | A kind of remote debugging method based on TD-SCDMA | |
CN111722858A (en) | Online upgrading method and terminal equipment | |
CN107888408B (en) | System and method for improving connection reliability of network measurement equipment | |
CN211426629U (en) | Electricity consumption information acquisition equipment |
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: 20151014 |