CN113433503B - Self-diagnosis method of resident user load identification module - Google Patents
Self-diagnosis method of resident user load identification module Download PDFInfo
- Publication number
- CN113433503B CN113433503B CN202110986074.7A CN202110986074A CN113433503B CN 113433503 B CN113433503 B CN 113433503B CN 202110986074 A CN202110986074 A CN 202110986074A CN 113433503 B CN113433503 B CN 113433503B
- Authority
- CN
- China
- Prior art keywords
- identification module
- spi data
- load identification
- spi
- ammeter
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R35/00—Testing or calibrating of apparatus covered by the other groups of this subclass
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a self-diagnosis method of a resident user load identification module, belonging to the technical field of intelligent power utilization. Step 1, carrying out time synchronization and configuration on a load identification module and an ammeter; step 1.1, a load identification module actively requests time from an ammeter, and sets a time setting flag bit after receiving a time message returned by the ammeter; step 1.2, the load identification module actively requests configuration from the ammeter, and sets a configuration flag bit after receiving a configuration message returned by the ammeter. And 2, after time synchronization and configuration are completed, the load identification module opens the SPI channel, receives the SPI data transmission packet and monitors the SPI data. The invention can quickly locate the problem in the joint debugging process and effectively evaluate the quality of the original data sent by the metering core.
Description
Technical Field
The invention relates to a self-diagnosis method of a resident user load identification module, belonging to the technical field of intelligent power utilization.
Background
The original data of the load identification module is obtained through an electric meter measuring core, and the sending quality of the original data determines whether the module can accurately identify. Meanwhile, in the actual use process, the load identification module has the butt joint condition with the metering cores of a plurality of manufacturers, various problems exist in the butt joint process, and various problems are positioned due to the lack of effective means.
Disclosure of Invention
The invention aims to overcome the problems in the prior art and provide a self-diagnosis method of a resident user load identification module, which can quickly locate the problems in the joint debugging process and effectively evaluate the quality of original data sent by a metering core.
In order to solve the above problems, the self-diagnosis method of the resident user load identification module of the present invention comprises the steps of:
step 1: carrying out time synchronization and configuration on the load identification module and the ammeter;
the step 1 specifically comprises the following steps:
step 1.1: the load identification module actively requests time from the ammeter, and sets a time setting flag bit after receiving a time message returned by the ammeter;
step 1.2: the load identification module actively requests configuration from the ammeter, and sets a configuration flag bit after receiving a configuration message returned by the ammeter;
step 2: after time synchronization and configuration are completed, the load identification module opens the SPI channel, receives the SPI data transmission packet and monitors the SPI data.
Further, the step 2 specifically comprises the following steps:
step 2.1: judging whether the load identification module receives an SPI data transmission packet currently, if so, entering a step 2.2, and if not, discarding the SPI data transmission packet;
step 2.2: judging whether the load identification module receives the SPI frame header, if so, entering the step 2.3, and if not, discarding the SPI data;
step 2.3: judging whether the SPI data in the SPI data sending packet is a complete frame or not, and if the SPI data in the SPI data sending packet is the complete frame, entering a step 2.4; if not, discarding the SPI data;
step 2.4: judging whether the complete frame check is correct or not, if not, marking the SPI data as an abnormal state-check error, generating an abnormal record and discarding the SPI data; if the frame check is correct, step 2.5 is entered;
step 2.5: judging whether the packet serial numbers of the SPI data sending packets are continuous, if not, marking the SPI data as an abnormal state, namely packet loss, and generating an abnormal record; if the packet sequence numbers are continuous, step 2.6 is entered;
step 2.6: judging whether the interval time of the SPI data transmission packet is normal or not, if not, generating an abnormal record, and marking the SPI data transmission packet as abnormal state-abnormal frequency; if the interval time of the sending packet is normal, the step 2.7 is carried out;
step 2.7: judging whether the deviation of the algorithm clock of the SPI data and the RTC clock is within a threshold range, if the clock deviation exceeds the threshold, automatically correcting the algorithm clock, and completing self-diagnosis of the load identification module; if the clock deviation is within the threshold value range, the SPI data is normal.
Further, the configuration in step 1 includes a voltage coefficient, a current coefficient and a cycle point number of the load identification module.
Further, the threshold value in step 2.7 is 15 s.
Further, the interval time in step 2.6 is within 20 ms.
The invention has the beneficial effects that: 1. after the data are recovered abnormally, the algorithm clock can be automatically corrected, and the normal operation of the module is ensured;
2. according to the running state of the load identification module, the problem can be quickly positioned in the joint debugging stage;
3. the SPI data transmission condition is monitored in a multidimensional mode, the quality of original data transmitted by an electric meter measuring core can be conveniently and effectively evaluated, and problems can be analyzed.
Drawings
FIG. 1 is a schematic diagram of a self-diagnosis method of a load identification module for residential users according to the present invention;
FIG. 2 is a flow chart of a self-diagnosis method of the resident user load identification module according to the present invention;
FIG. 3 is a flow chart showing the details of step 1 in the present invention;
FIG. 4 is a flowchart illustrating step 2 of the present invention.
Detailed Description
The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic views illustrating only the basic structure of the present invention in a schematic manner, and thus show only the constitution related to the present invention.
As shown in fig. 1 and 2, the self-diagnosis method of the resident user load recognition module of the present invention comprises the steps of:
step 1: carrying out time synchronization and configuration on the load identification module and the ammeter;
as shown in fig. 3, step 1 specifically includes the following steps:
step 1.1: the load identification module actively requests time from the ammeter, and sets a time setting flag bit after receiving a time message returned by the ammeter; if the time is illegal, the time is continuously requested, and the module can diagnose whether the time synchronization step has problems or not through the diagnosis;
step 1.2: the load identification module actively requests configuration from the ammeter, and sets a configuration flag bit after receiving a configuration message returned by the ammeter. The configuration comprises a voltage coefficient, a phase, a current coefficient and a cycle point number of the load identification module. If the parameters are illegal, the configuration is continuously requested, and the module can diagnose whether the configuration step has problems or not through the configuration step.
Step 2: after time synchronization and configuration are completed, the load identification module opens the SPI channel, receives the SPI data transmission packet and monitors the SPI data.
As shown in fig. 4, step 2 specifically includes the following steps:
step 2.1: judging whether the load identification module receives an SPI data transmission packet currently, if so, entering a step 2.2, and if not, discarding the SPI data transmission packet; the load identification module can judge whether the data format sent by the diagnosis ammeter meets the requirement or not;
step 2.2: judging whether the load identification module receives the SPI frame header, if so, entering the step 2.3, and if not, discarding the SPI data;
step 2.3: judging whether the SPI data in the SPI data sending packet is a complete frame or not, and if the SPI data in the SPI data sending packet is the complete frame, entering a step 2.4; if not, discarding the SPI data;
step 2.4: judging whether the complete frame check is correct or not, if not, marking the SPI data as an abnormal state-check error, generating an abnormal record and discarding the SPI data; if the frame check is correct, step 2.5 is entered;
step 2.5: judging whether the packet serial numbers of the SPI data sending packets are continuous, if not, marking the SPI data as an abnormal state, namely packet loss, and generating an abnormal record; if the packet sequence numbers are continuous, step 2.6 is entered;
step 2.6: judging whether the interval time of the SPI data transmission packet is normal or not, if not, generating an abnormal record, and marking the SPI data transmission packet as abnormal state-abnormal frequency; if the interval time of the sending packet is normal, the step 2.7 is carried out; the normal interval time is within 20 ms. During the normal operation of the equipment, the abnormal records of the step 2.4 and the step 2.5 cannot be generated, the load identification module can monitor the sending quality of the SPI data in the operation process through the abnormal records, and whether the sending data quality of the ammeter meets the requirements or not is diagnosed according to the corresponding abnormal state;
step 2.7: judging whether the deviation of an algorithm clock of the SPI data and an RTC clock is in a threshold range, if the deviation of the clock exceeds the threshold, automatically rectifying the algorithm clock, and simultaneously completing self-diagnosis of the load identification module, wherein the self-diagnosis content comprises corresponding processing on load identification data and frozen data, so that the running synchronization of the load identification module and an ammeter is ensured, and the stability of the whole equipment is improved; if the clock deviation is within the threshold value range, the SPI data are normal; the threshold is 15 s.
In light of the foregoing description of the preferred embodiment of the present invention, many modifications and variations will be apparent to those skilled in the art without departing from the spirit and scope of the invention. The technical scope of the present invention is not limited to the content of the specification, and must be determined according to the scope of the claims.
Claims (1)
1. A self-diagnosis method of a resident user load identification module is characterized by comprising the following steps:
step 1: carrying out time synchronization and configuration on the load identification module and the ammeter;
the step 1 specifically comprises the following steps:
step 1.1: the load identification module actively requests time from the ammeter, and sets a time setting flag bit after receiving a time message returned by the ammeter;
step 1.2: the load identification module actively requests configuration from the ammeter, and sets a configuration flag bit after receiving a configuration message returned by the ammeter;
step 2: after time synchronization and configuration are completed, the load identification module opens an SPI channel, receives an SPI data sending packet and monitors SPI data;
the step 2 specifically comprises the following steps:
step 2.1: judging whether the load identification module receives an SPI data transmission packet currently, if so, entering a step 2.2, and if not, discarding the SPI data transmission packet;
step 2.2: judging whether the load identification module receives the SPI frame header, if so, entering the step 2.3, and if not, discarding the SPI data;
step 2.3: judging whether the SPI data in the SPI data sending packet is a complete frame or not, and if the SPI data in the SPI data sending packet is the complete frame, entering a step 2.4; if not, discarding the SPI data;
step 2.4: judging whether the complete frame check is correct or not, if not, marking the SPI data as an abnormal state-check error, generating an abnormal record and discarding the SPI data; if the frame check is correct, step 2.5 is entered;
step 2.5: judging whether the packet serial numbers of the SPI data sending packets are continuous, if not, marking the SPI data as an abnormal state, namely packet loss, and generating an abnormal record; if the packet sequence numbers are continuous, step 2.6 is entered;
step 2.6: judging whether the interval time of the SPI data transmission packet is normal or not, if not, generating an abnormal record, and marking the SPI data transmission packet as abnormal state-abnormal frequency; if the interval time of the sending packet is normal, the step 2.7 is carried out;
step 2.7: judging whether the deviation of the algorithm clock of the SPI data and the RTC clock is within a threshold range, if the clock deviation exceeds the threshold, automatically correcting the algorithm clock, and completing self-diagnosis of the load identification module; if the clock deviation is within the threshold value range, the SPI data are normal;
the configuration in the step 1 comprises a voltage coefficient, a current coefficient and a cycle point number of a load identification module;
the threshold value in step 2.7 is 15 s;
the interval time in step 2.6 is within 20 ms.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110986074.7A CN113433503B (en) | 2021-08-26 | 2021-08-26 | Self-diagnosis method of resident user load identification module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110986074.7A CN113433503B (en) | 2021-08-26 | 2021-08-26 | Self-diagnosis method of resident user load identification module |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113433503A CN113433503A (en) | 2021-09-24 |
CN113433503B true CN113433503B (en) | 2022-02-18 |
Family
ID=77798020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110986074.7A Active CN113433503B (en) | 2021-08-26 | 2021-08-26 | Self-diagnosis method of resident user load identification module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113433503B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102621954A (en) * | 2012-03-22 | 2012-08-01 | 上海许继电气有限公司 | Self-adaptive multi-signal-source time synchronization card device for smart grid and message analysis system |
CN109193630A (en) * | 2018-09-21 | 2019-01-11 | 武汉大学 | A kind of adjustable interval prediction method and device of flexible load |
CN111060745A (en) * | 2019-12-06 | 2020-04-24 | 江苏智臻能源科技有限公司 | Electric energy meter intelligent base with load identification function and implementation method |
CN210781189U (en) * | 2019-11-28 | 2020-06-16 | 江苏智臻能源科技有限公司 | Hardware equipment for collecting load identification data of user electric meter |
CN111505374A (en) * | 2020-04-29 | 2020-08-07 | 南方电网科学研究院有限责任公司 | Two-in-one metering device with mutual inspection and self-diagnosis functions and detection method |
CN111856131A (en) * | 2020-07-17 | 2020-10-30 | 许继集团有限公司 | Load data recording method and device |
CN112014788A (en) * | 2020-11-02 | 2020-12-01 | 江苏智臻能源科技有限公司 | Load identification module detection method based on wave recording file playback |
CN113223287A (en) * | 2021-04-02 | 2021-08-06 | 国电南瑞南京控制系统有限公司 | SPI-based communication method and system for intelligent electric energy meter and load identification module |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105323144B (en) * | 2014-07-16 | 2020-05-29 | 腾讯科技(深圳)有限公司 | Message abnormity prompting method and system in instant messaging |
CN105939215B (en) * | 2016-03-10 | 2018-12-25 | 杭州迪普科技股份有限公司 | The method and device of VRRP backup group state switching |
CN109150241A (en) * | 2018-09-21 | 2019-01-04 | 武汉光庭信息技术股份有限公司 | Communication means and device between a kind of single-chip microcontroller |
-
2021
- 2021-08-26 CN CN202110986074.7A patent/CN113433503B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102621954A (en) * | 2012-03-22 | 2012-08-01 | 上海许继电气有限公司 | Self-adaptive multi-signal-source time synchronization card device for smart grid and message analysis system |
CN109193630A (en) * | 2018-09-21 | 2019-01-11 | 武汉大学 | A kind of adjustable interval prediction method and device of flexible load |
CN210781189U (en) * | 2019-11-28 | 2020-06-16 | 江苏智臻能源科技有限公司 | Hardware equipment for collecting load identification data of user electric meter |
CN111060745A (en) * | 2019-12-06 | 2020-04-24 | 江苏智臻能源科技有限公司 | Electric energy meter intelligent base with load identification function and implementation method |
CN111505374A (en) * | 2020-04-29 | 2020-08-07 | 南方电网科学研究院有限责任公司 | Two-in-one metering device with mutual inspection and self-diagnosis functions and detection method |
CN111856131A (en) * | 2020-07-17 | 2020-10-30 | 许继集团有限公司 | Load data recording method and device |
CN112014788A (en) * | 2020-11-02 | 2020-12-01 | 江苏智臻能源科技有限公司 | Load identification module detection method based on wave recording file playback |
CN113223287A (en) * | 2021-04-02 | 2021-08-06 | 国电南瑞南京控制系统有限公司 | SPI-based communication method and system for intelligent electric energy meter and load identification module |
Also Published As
Publication number | Publication date |
---|---|
CN113433503A (en) | 2021-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111694579B (en) | Remote upgrading method of energy storage system, energy management system and battery management system | |
WO2017041406A1 (en) | Failure positioning method and device | |
CN109733238B (en) | Fault detection method, device, storage medium and processor | |
WO2022028017A1 (en) | Data submitting method for base station, device, electronic device, and storage medium | |
CN113092130A (en) | Method for simulating conformance test of electric automobile and vehicle-mounted terminal | |
CN113433503B (en) | Self-diagnosis method of resident user load identification module | |
CN112003765A (en) | Gateway fault diagnosis method, system, server and storage medium | |
EP3860200A1 (en) | Data transmission method and device | |
CN117082462B (en) | Health monitoring system of short message platform | |
CN114650309A (en) | Control method and battery BMS system control method | |
CN112888007B (en) | Method, device and storage medium for diagnosing offline reasons of device | |
CN117811898A (en) | FTTR equipment fault repairing method and device | |
US20230089918A1 (en) | Method and apparatus for controlling charging, based on monitored communication signals associated with a charging session | |
CN107843867A (en) | Method and device for acquiring calibration parameters | |
CN110896544B (en) | Fault delimiting method and device | |
CN113949657B (en) | Internet of things detection device, system and test method | |
CN115174437A (en) | Network connection stability detection method and system | |
CN112595933A (en) | Power distribution network fault positioning system and method | |
Trinder et al. | Algorithms for the adaption of data rate using STANAG 5066 | |
CN118250220B (en) | Data transmitting and receiving method, mac device, electronic equipment and storage medium | |
CN114257660B (en) | SV and GOOSE message processing method, device, equipment and storage medium | |
CN117478561B (en) | Ethernet industrial bus time delay analysis method and system | |
CN114567579A (en) | Frame synchronization global quality monitoring method and device and readable access medium | |
CN116742796A (en) | Method and system for interaction of main station and sub station of intelligent substation configuration management and control system | |
TW202224375A (en) | Debugging method for narrowband internet of things terminal and electronic device using the same |
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 |