CN108445436B - Electric energy meter with double cores for mutual detection of running states - Google Patents

Electric energy meter with double cores for mutual detection of running states Download PDF

Info

Publication number
CN108445436B
CN108445436B CN201810169927.6A CN201810169927A CN108445436B CN 108445436 B CN108445436 B CN 108445436B CN 201810169927 A CN201810169927 A CN 201810169927A CN 108445436 B CN108445436 B CN 108445436B
Authority
CN
China
Prior art keywords
metering
management
core
mcu
circuit
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.)
Active
Application number
CN201810169927.6A
Other languages
Chinese (zh)
Other versions
CN108445436A (en
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.)
Ningbo Jianan Electronics Co ltd
Original Assignee
Ningbo Jianan Electronics 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 Ningbo Jianan Electronics Co ltd filed Critical Ningbo Jianan Electronics Co ltd
Priority to CN201810169927.6A priority Critical patent/CN108445436B/en
Publication of CN108445436A publication Critical patent/CN108445436A/en
Application granted granted Critical
Publication of CN108445436B publication Critical patent/CN108445436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24015Monitoring

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The electric energy meter comprises a metering core and a management core, wherein the metering core and the management core independently run by using respective clocks; the metering core is provided with a metering MCU, a metering reset circuit and a metering UART circuit; the management core is provided with a management MCU, a management reset circuit and a management UART circuit; the metering UART circuit is in communication connection with the management UART circuit; the metering core and the management core are mutually checked and reset through respective reset circuits when a fault occurs. The metering core and the management core of the invention can be mutually detected, and the short-time fault can be quickly and automatically recovered as long as the device is not damaged.

Description

Electric energy meter with double cores for mutual detection of running states
Technical Field
The invention relates to an electric energy meter with double cores running.
Background
With the technical development of electric energy meters, people have more and more requirements on the functions of the electric energy meters, and the electric energy meters are required to have upgrading functions. However, the electric energy meter is a metering product, and the basic attribute as metering cannot be changed, so that a double-core structure is provided in the industry, namely, the electric energy meter is provided with two core chips, one is a metering core and the other is a management core, the metering core and the management core both comprise an MCU, the function of the metering core is fixed and cannot be upgraded, and the function of the management core can be upgraded. The functions of the electric energy meter become more and more complex, and the electric energy meter can be abnormally operated when any one of the two MCUs is in operation error (namely commonly called 'running away'), so that the fault probability of the electric energy meter is multiplied. And each time of upgrading is equal to one updating and upgrading of the product, the probability of new problems is improved, and therefore the running reliability of the MCU needs to be improved. There are various factors that have great difficulty in solving the above problems by improving the performance of circuits and devices under low-cost mass-producible conditions.
Disclosure of Invention
In order to overcome the defects of the conventional electric energy meter with double-core operation, the invention provides the electric energy meter with double-core operation, which can carry out mutual detection on the operation state.
The technical scheme for solving the technical problem is as follows: the electric energy meter comprises a metering core and a management core, wherein the metering core and the management core independently run by using respective clocks;
the metering core is provided with a metering MCU, a metering reset circuit and a metering UART circuit;
the metering reset circuit is connected with the metering MCU and is used for resetting the metering MCU when the metering MCU is in operation error;
the metering UART circuit is in bidirectional communication connection with the metering MCU so as to realize data transmission;
the management core is provided with a management MCU, a management reset circuit and a management UART circuit;
the management reset circuit is connected with the management MCU and is used for resetting the management MCU when the management MCU is in operation error;
the UART management circuit is in bidirectional communication connection with the MCU so as to realize data transmission;
the metering UART circuit and the management UART circuit carry out full duplex communication through a TTL level UART serial bus;
the metering MCU is connected with the management reset circuit through a management reset control line, and the management MCU is connected with the metering reset circuit through a metering reset control line;
the management core communicates with the metering core through a UART serial bus, reads or sets data of the metering core, and the metering core returns corresponding data to the management core through the UART serial bus;
when the management core does not receive the effective communication message replied by the metering core after exceeding the appointed communication interval time, judging that the metering core is in error operation, sending a reset signal to a metering reset circuit by the management MCU through a metering reset control line, resetting the metering MCU by the metering reset circuit, and recovering the work of the metering core;
when the metering core detects that the effective communication messages sent by the management core are not received within the time exceeding the plurality of appointed communication intervals, the operation error of the management core is judged, the metering MCU sends a reset signal to the management reset circuit through the management reset control line, the management reset circuit resets the management MCU, and the work of the management core is recovered.
Furthermore, when the metering core and the management core find that a communication interval does not receive an effective communication message of the opposite side, a heartbeat frame is sent to the opposite side to confirm the communication connection, and short-term interference is eliminated.
The invention has the beneficial effects that: 1. the metering core and the management core are mutually detected, and as long as the device is not damaged, the short-time fault can be quickly and automatically recovered; 2. whether the MCU normally operates is judged through an effective message between the double cores, and the judgment accuracy is ensured unlike the detection of pulse signals which are easily interfered; 3. can be processed by software without increasing the cost of the equipment.
Drawings
Fig. 1 is a schematic diagram of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Referring to fig. 1, the electric energy meter with mutual detection of the operation states of two cores comprises a metering core 1 and a management core 2, wherein the metering core 1 and the management core 2 independently operate by using respective clocks.
The metering core 1 is provided with a metering MCU3, a metering reset circuit 4 and a metering UART circuit 5.
The metering reset circuit 4 is connected with the metering MCU3, and the metering reset circuit 4 is used for resetting the metering MCU3 when the metering MCU3 has an operation error.
The metering UART circuit 5 is in bidirectional communication connection with the metering MCU3 so as to realize data transmission.
The management core 2 is provided with a management MCU6, a management reset circuit 7 and a management UART circuit 8.
The management reset circuit 7 is connected to the management MCU6, and the management reset circuit 7 is configured to reset the management MCU6 when the management MCU6 has an operation error.
The management UART circuit 8 is in bidirectional communication connection with the management MCU6 so as to realize data transmission.
The metering UART circuit 5 and the management UART circuit 8 carry out full duplex communication through a TTL level UART serial bus 9.
The metering MCU3 is connected with the management reset circuit 7 through a management reset control line 10, and the management MCU6 is connected with the metering reset circuit 4 through a metering reset control line 11.
The management core 2 communicates with the measurement core 1 through a UART serial bus 9 to read or set data of the measurement core 1, and the measurement core 1 returns corresponding data to the management core 2 through the UART serial bus 9.
The management core 2 sends messages to the metering core 1 regularly as required, the communication messages comprise reading data, parameter setting, heartbeat frames and the like, when the management core 2 does not receive effective communication messages replied by the metering core 1 (once or continuously for a plurality of times) after exceeding a plurality of appointed communication interval time, the operation error of the metering core 1 is judged, the management MCU6 sends a reset signal to the metering reset circuit 4 through the metering reset control line 11, the metering reset circuit 4 resets the metering MCU3, and the metering MCU3 recovers normal operation.
The metering core 1 monitors the message from the management core 2, when the metering core 1 detects that the effective communication message from the management core 2 is not received (once or continuously for a plurality of times) in the time exceeding the appointed communication intervals, the operation error of the management core 2 is judged, the metering MCU3 sends a reset signal to the management reset circuit 7 through the management reset control line 10, and the management reset circuit 7 resets the management MCU6, so that the management MCU6 recovers the normal operation.
The requirement of regular time is required when the electric energy meter is reset to normal operation, the different standard requirements are different, and generally the requirement does not exceed 3 seconds, because the two cores in the reset process can not normally communicate, in order to prevent the two cores in the reset from being detected to be repeatedly overtime, the appointed overtime judgment needs to exceed the regular time, and the overtime frequency is 4 times in the embodiment. In order to improve the response speed, the message interval of the management core 2 sending the message to the metering core 1 periodically is shorter than the reset time requirement, and the interval of 1 second is used in the embodiment.
When the management core 2 does not need to copy the data of the measurement core 1, a heartbeat frame is sent to the measurement core 1 at an appointed interval, and when the measurement core 1 does not receive an effective message from the management core 2 at any communication interval, a heartbeat frame is actively sent to the management core 2, wherein the heartbeat frame is a relatively short communication message, the time for processing the MCU and the UART serial bus is short, other normal work of the management core 2 and the measurement core 1 cannot be influenced, and the method is mainly used for maintaining the communication connection state.

Claims (2)

1. The utility model provides an electric energy meter that two core running state were examined each other, includes measurement core and management core, its characterized in that: the metering core and the management core independently run by using respective clocks;
the metering core is provided with a metering MCU, a metering reset circuit and a metering UART circuit;
the metering reset circuit is connected with the metering MCU and is used for resetting the metering MCU when the metering MCU is in operation error;
the metering UART circuit is in bidirectional communication connection with the metering MCU so as to realize data transmission;
the management core is provided with a management MCU, a management reset circuit and a management UART circuit;
the management reset circuit is connected with the management MCU and is used for resetting the management MCU when the management MCU is in operation error;
the UART management circuit is in bidirectional communication connection with the MCU so as to realize data transmission;
the metering UART circuit and the management UART circuit carry out full duplex communication through a TTL level UART serial bus;
the metering MCU is connected with the management reset circuit through a management reset control line, and the management MCU is connected with the metering reset circuit through a metering reset control line;
the management core communicates with the metering core through a UART serial bus, reads or sets data of the metering core, and the metering core returns corresponding data to the management core through the UART serial bus;
when the management core does not receive the effective communication message replied by the metering core after exceeding the appointed communication interval time, the management core judges that the metering core is in error operation, the management MCU sends a reset signal to the metering reset circuit through a metering reset control line, and the metering reset circuit resets the metering MCU and restores the normal operation of the metering core;
when the metering core detects that the effective communication messages from the management core are not received within the time exceeding the plurality of appointed communication intervals, the metering core judges that the management core is in error operation, the metering MCU sends a reset signal to the management reset circuit through the management reset control line, and the management reset circuit resets the management MCU and restores the normal operation of the management core.
2. The electric energy meter for mutual detection of two-core operation states of claim 1, wherein: when finding that a communication interval does not receive an effective communication message of the opposite side, the metering core and the management core send a heartbeat frame to confirm the communication connection of the opposite side, and short-term interference is eliminated.
CN201810169927.6A 2018-03-01 2018-03-01 Electric energy meter with double cores for mutual detection of running states Active CN108445436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810169927.6A CN108445436B (en) 2018-03-01 2018-03-01 Electric energy meter with double cores for mutual detection of running states

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810169927.6A CN108445436B (en) 2018-03-01 2018-03-01 Electric energy meter with double cores for mutual detection of running states

Publications (2)

Publication Number Publication Date
CN108445436A CN108445436A (en) 2018-08-24
CN108445436B true CN108445436B (en) 2020-04-10

Family

ID=63193203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810169927.6A Active CN108445436B (en) 2018-03-01 2018-03-01 Electric energy meter with double cores for mutual detection of running states

Country Status (1)

Country Link
CN (1) CN108445436B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343052B (en) * 2020-03-11 2023-04-07 中国电力科学研究院有限公司 System and method for carrying out protocol consistency test on intelligent electric energy meter
CN111211949B (en) * 2020-03-11 2023-04-07 中国电力科学研究院有限公司 System and method for carrying out protocol consistency test on intelligent electric energy meter metering core
CN112748271B (en) * 2020-12-01 2022-11-04 宁波三星医疗电气股份有限公司 Electric energy meter and electric quantity metering method thereof
CN112486886B (en) * 2020-12-09 2023-04-18 国网四川省电力公司电力科学研究院 Method for stable communication between double cores of double-core intelligent electric energy meter
CN112684404A (en) * 2020-12-15 2021-04-20 国家电网有限公司 Analog detection system and method for metering core
CN114764959A (en) * 2021-01-13 2022-07-19 辽宁思凯科技股份有限公司 Double-core intelligent water meter
CN112858993B (en) * 2021-02-20 2023-06-13 南方电网数字电网科技(广东)有限公司 Double-core electric energy meter test system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101900801A (en) * 2010-07-15 2010-12-01 田卫华 Intelligent electric energy meter field test device and test method thereof
CN201887418U (en) * 2010-06-30 2011-06-29 珠海中慧微电子有限公司 Power supply management module of electric energy metering chip
CN104407211A (en) * 2014-12-06 2015-03-11 宁波迦南电子有限公司 Power consumption metering device
CN104502883A (en) * 2014-12-30 2015-04-08 宁波三星电气股份有限公司 Method for detecting and solving anomaly of metering chips
CN205067714U (en) * 2015-07-06 2016-03-02 广东电网有限责任公司电力科学研究院 Single -phase electric energy meter calibrating installation and single -phase electric energy meter credible test platform that resets
CN106125035A (en) * 2016-08-03 2016-11-16 宁波三星医疗电气股份有限公司 The method that twin-core clock of power meter synchronizes
CN106200353A (en) * 2016-08-03 2016-12-07 宁波三星医疗电气股份有限公司 A kind of method of the clock for testing twin-core electric energy meter
CN106406283A (en) * 2016-10-25 2017-02-15 威胜集团有限公司 Data management method of double controllers of intelligent electric energy meter
CN106501599A (en) * 2016-10-17 2017-03-15 国家电网公司 Twin-core electric energy meter data exchange validity determines method and system and twin-core electric energy meter
CN106569166A (en) * 2016-10-17 2017-04-19 中国电力科学研究院 Testing method for legal metering part of double-core electric energy meter
CN106571887A (en) * 2016-10-17 2017-04-19 国家电网公司 Management core and metering core clock synchronization processing method and device for dual-core intelligent electric energy meter

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201887418U (en) * 2010-06-30 2011-06-29 珠海中慧微电子有限公司 Power supply management module of electric energy metering chip
CN101900801A (en) * 2010-07-15 2010-12-01 田卫华 Intelligent electric energy meter field test device and test method thereof
CN104407211A (en) * 2014-12-06 2015-03-11 宁波迦南电子有限公司 Power consumption metering device
CN104502883A (en) * 2014-12-30 2015-04-08 宁波三星电气股份有限公司 Method for detecting and solving anomaly of metering chips
CN205067714U (en) * 2015-07-06 2016-03-02 广东电网有限责任公司电力科学研究院 Single -phase electric energy meter calibrating installation and single -phase electric energy meter credible test platform that resets
CN106125035A (en) * 2016-08-03 2016-11-16 宁波三星医疗电气股份有限公司 The method that twin-core clock of power meter synchronizes
CN106200353A (en) * 2016-08-03 2016-12-07 宁波三星医疗电气股份有限公司 A kind of method of the clock for testing twin-core electric energy meter
CN106501599A (en) * 2016-10-17 2017-03-15 国家电网公司 Twin-core electric energy meter data exchange validity determines method and system and twin-core electric energy meter
CN106569166A (en) * 2016-10-17 2017-04-19 中国电力科学研究院 Testing method for legal metering part of double-core electric energy meter
CN106571887A (en) * 2016-10-17 2017-04-19 国家电网公司 Management core and metering core clock synchronization processing method and device for dual-core intelligent electric energy meter
CN106406283A (en) * 2016-10-25 2017-02-15 威胜集团有限公司 Data management method of double controllers of intelligent electric energy meter

Also Published As

Publication number Publication date
CN108445436A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
CN108445436B (en) Electric energy meter with double cores for mutual detection of running states
CN102768561B (en) Design method for twinbridge piece mainboard redundancy
CN106502952A (en) A kind of PCIE device is gone offline safely method for designing
CN111078445A (en) PSU power failure reason detection method and device
JP6754693B2 (en) How to match data and event gaps sent and received on networks using different communication technologies
CN105676052B (en) A kind of method and system of serial ports line sequence identification
CN110719147A (en) High-reliability dual-computer hot standby data acquisition method based on LoRa
CN106455039A (en) Communication terminal, network and method for improving time synchronization accuracy in power distribution network
CN101397020A (en) Intelligent acquisition driving device
CN102591739B (en) Method and device for aligning serial synchronous communication data
CN112380036B (en) Cab signal host software system
CN103326897A (en) Distributed computing environment general monitoring device and failure detection method
CN213659436U (en) Mainboard state real-time monitoring circuit device
CN219351748U (en) BLE production detection device
CN109067567A (en) A kind of network communication method for diagnosing interruption
US11953975B2 (en) Peripheral component interconnect express device error reporting optimization method and system capable of filtering error reporting messages
CN211029246U (en) Edge calculation equipment applied to machine tool state monitoring
CN118524037B (en) Communication signal short circuit detection method, circuit, equipment and system
CN203084218U (en) Intelligent human body detector
CN116654049B (en) Train state data processing method, device, equipment and storage medium
CN103001789A (en) Clock switching method and clock switching device
CN208077388U (en) Number adopts instrument
CN205353254U (en) Professional card running state's detection circuitry in detection plug -in card formula equipment
JP2001134883A (en) Meter-reading method, meter-reading system, host device and meter-reading terminal
CN204406388U (en) Automatically abnormal device is notified during a kind of program exception

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
GR01 Patent grant
GR01 Patent grant