Method and apparatus for detecting a meter device decap event
By acquiring the opening event of the electricity meter and the carrier signal reception interval, the on-site status of the communication component is determined, which solves the problem of poor detection accuracy of the electricity meter opening event and improves the detection accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-28
- Publication Date
- 2026-04-10
AI Technical Summary
The accuracy of existing electricity meter cover opening detection is poor. Mechanical buttons or switches are easily affected by environmental changes, leading to malfunctions and reducing detection efficiency.
By acquiring the opening event of the metering device and the reception interval of the carrier signal, it is determined whether the communication component is in place. If the communication component is in place, the opening event is determined to be abnormal, avoiding judgment based on the level of a single button and improving detection accuracy.
This reduced the frequency of abnormal cover opening reports, improved the detection accuracy of cover opening events on metering equipment, and avoided false alarms from button presses.
Smart Images

Figure CN115164947B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to a detection technology field, and in particular to a detection method and device for an opening cover event of a metering device. BACKGROUND
[0002] Electric energy meters as a kind of metering devices have been popularized in various power consumption fields, especially for detecting power consumption. Among them, the electric energy meter will be pasted with a certificate of compliance after production, and the electric energy meter is not allowed to open the cover (also known as the shell) under normal use, and if it is opened abnormally, it will be used as a basis for judging electricity stealing, failure, etc.
[0003] At present, the opening cover event of the existing electric energy meter is usually based on configuring a key or a switch in the electric energy meter content, and the opening cover event is detected by acquiring the level signal of the key or the switch. However, the configured key or switch belongs to a mechanical structure, and with the change of time and environment, the key or switch will produce indirect misoperation, and the abnormal switching will cause false opening cover event, thereby reducing the detection efficiency of the opening cover event of the metering device. SUMMARY
[0004] Therefore, the present application provides a detection method and device for an opening cover event of a metering device, mainly aiming at solving the problem of poor detection accuracy of the opening cover event of the existing metering device.
[0005] According to one aspect of the present application, a detection method for an opening cover event of a metering device is provided, comprising:
[0006] acquiring an opening cover event of a metering device and a receiving interval time of a carrier signal, the opening cover event being determined based on a key level signal of the metering device, and the carrier signal being emitted by a communication component installed in the metering device;
[0007] if the detection time of the key level signal is greater than the receiving interval time, determining whether the communication component is in place relative to the metering device;
[0008] if the communication component is in the in-place state relative to the metering device, determining that the opening cover event is an abnormal opening cover event.
[0009] Further, the determination of whether the communication component is in place relative to the metering device comprises:
[0010] configuring a target pin of the communication component to be in an input state, and acquiring a pin level signal of the target pin in the input state, to determine whether the communication component is in place relative to the metering device based on the pin level signal;
[0011] Before determining that the opening cover event is an abnormal opening cover event, the method further comprises:
[0012] If the pin level signal is a preset pin level signal, it is determined that the communication component is in an in-place state relative to the metering device.
[0013] Further, the determination of whether the communication component is in place relative to the metering device includes:
[0014] sending a response request to the communication component, and detecting whether a response reply information is received, so as to determine whether the communication component is in place relative to the metering device according to the response reply information;
[0015] Before the determination of the cover opening event as an abnormal cover opening event, the method further includes:
[0016] If the response reply information is received, it is determined that the communication component is in an in-place state relative to the metering device.
[0017] Further, before the acquisition of the cover opening event of the metering device and the receiving interval time of the carrier signal, the method further includes:
[0018] After the metering device completes the power-on operation, it is detected whether the message information sent by the communication component is received within a first preset time interval;
[0019] If the message information is received, it is determined that the communication component completes the installation in the metering device.
[0020] Further, before the acquisition of the cover opening event of the metering device and the receiving interval time of the carrier signal, the method further includes:
[0021] acquiring a key level signal of different metering devices within a second preset time interval;
[0022] According to the comparison result of the key level signal and a preset cover opening level signal, a cover opening event of the metering device is generated, and the cover opening event and the detection time of the key level signal are stored.
[0023] Further, the method further includes:
[0024] If the detection time of the key level signal is less than or equal to the receiving interval time, it is determined that the communication component is in an in-place state relative to the metering device, and the cover opening event is an abnormal cover opening event.
[0025] Further, the method further includes:
[0026] The abnormal cover opening event is reported to perform offline inspection on the metering device;
[0027] When the abnormal uncovering event detection is completed, no packet information of the metering device is received within a third preset time interval, and a target pin of the communication component is reset to re-determine whether the communication component is in the in-place state relative to the metering device.
[0028] According to another aspect of the present application, a device for detecting an uncovering event of a metering device is provided, comprising:
[0029] An acquisition module is configured to acquire an uncovering event of a metering device and a receiving interval time of a carrier signal, wherein the uncovering event is determined based on a key level signal of the metering device, and the carrier signal is sent by a communication component installed in the metering device.
[0030] A determination module is configured to determine whether the communication component is in place relative to the metering device if the detection time of the key level signal is greater than the receiving interval time.
[0031] A determination module is configured to determine that the uncovering event is an abnormal uncovering event if the communication component is in the in-place state relative to the metering device.
[0032] Further, the determination module is specifically configured to configure a target pin of the communication component to an input state, acquire a pin level signal of the target pin in the input state, and determine whether the communication component is in place relative to the metering device based on the pin level signal.
[0033] The determination module is specifically configured to determine that the communication component is in the in-place state relative to the metering device if the pin level signal is a preset pin level signal.
[0034] Further, the determination module is specifically configured to send a response request to the communication component, detect whether a response reply information is received, and determine whether the communication component is in place relative to the metering device according to the response reply information.
[0035] The determination module is specifically configured to determine that the communication component is in the in-place state relative to the metering device if the response reply information is received.
[0036] Further, the device further comprises a detection module,
[0037] The detection module is configured to detect whether packet information sent by the communication component is received within a first preset time interval when the metering device completes a power-on operation.
[0038] The determination module is further configured to determine that the communication component completes installation in the metering device if the packet information is received.
[0039] Further, the apparatus further comprises a generating module,
[0040] The acquisition module is further configured to acquire the key level signals of different metering devices in a second preset time interval.
[0041] The generating module is configured to generate the uncovering event of the metering device according to a comparison result of the key level signals and a preset uncovering level signal, and store the uncovering event and a detection time of the key level signals.
[0042] Further, the determining module is further configured to determine that the communication component is in the in-position state relative to the metering device and the uncovering event is an abnormal uncovering event if the detection time of the key level signals is less than or equal to the receiving interval time.
[0043] Further, the apparatus further comprises:
[0044] The reporting module is configured to report the abnormal uncovering event to perform offline inspection on the metering device.
[0045] The resetting module is configured to reset a target pin of the communication component to re-determine that the communication component is in the in-position state relative to the metering device when the abnormal uncovering event detection is completed and no packet information of the metering device is received in a third preset time interval.
[0046] According to another aspect of the present application, a storage medium is provided, and the storage medium stores at least one executable instruction, and the executable instruction causes a processor to perform operations corresponding to the above-mentioned metering device uncovering event detection method.
[0047] According to still another aspect of the present application, a terminal is provided, and the terminal comprises a processor, a memory, a communication interface and a communication bus, and the processor, the memory and the communication interface complete communication with each other through the communication bus.
[0048] The memory is configured to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the above-mentioned metering device uncovering event detection method.
[0049] Through the above technical solutions, the technical solutions provided by the embodiments of the present application have at least the following advantages:
[0050] The application provides a kind of meter opening event detection method and device, compared with prior art, the application embodiment obtains the opening event of meter, the receiving interval time of carrier signal, the opening event is determined based on the key level signal of the meter, the carrier signal is emitted by the communication component installed in the meter;If the detection time of the key level signal is greater than the receiving interval time, it is judged whether the communication component is in place relative to the meter;If the communication component is in place relative to the meter, it is determined that the opening event is an abnormal opening event, avoid the key false alarm situation caused by the determination of opening event based on single key level judgment mode, greatly reduce the frequency of abnormal opening report, thereby improving the detection accuracy of meter opening event.
[0051] The above description is only a summary of the technical scheme of the application, in order to more clearly understand the technical means of the application, which can be implemented according to the content of the specification, and in order to make the above and other purposes, characteristics and advantages of the application more obvious and easy to understand, the following specific embodiments of the application are described. BRIEF DESCRIPTION OF DRAWINGS
[0052] By reading the detailed description of the preferred embodiments below, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of illustrating the preferred embodiments and are not considered as limiting the application. Moreover, the same reference symbols are used throughout the drawings to represent the same parts. In the drawings:
[0053] Figure 1 A flow chart of a meter opening event detection method provided by an embodiment of the application is shown;
[0054] Figure 2 A flow chart of another meter opening event detection method provided by an embodiment of the application is shown;
[0055] Figure 3 A flow chart of a meter opening event detection method provided by an embodiment of the application is shown;
[0056] Figure 4 A flow chart of another meter opening event detection method provided by an embodiment of the application is shown;
[0057] Figure 5 A flow chart of an abnormal opening detection scenario provided by an embodiment of the application is shown;
[0058] Figure 6 A block diagram of a meter opening event detection device provided by an embodiment of the application is shown;
[0059] Figure 7A structure schematic diagram of a terminal provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0060] Exemplary embodiments of the present disclosure will be described in greater detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be accurately conveyed to those skilled in the art.
[0061] The cover opening event of the existing electric energy meter is usually based on a button or switch configured in the content of the electric energy meter, and the cover opening event is detected by acquiring the level signal of the button or switch. However, the configured button or switch belongs to a mechanical structure, and with the change of time and environment, the button or switch will produce indirect misoperation, and the abnormal switching will cause false cover opening event, thereby reducing the detection efficiency of the cover opening event of the metering device. An embodiment of the present application provides a detection method for the cover opening event of the metering device, as shown in Figure 1 The method comprises the following steps.
[0062] 101, acquiring the cover opening event of the metering device and the receiving interval time of the carrier signal.
[0063] In an embodiment of the present application, the current execution subject can be a processor pre-configured and installed on the metering device, or a terminal device having remote data communication with the metering device, and the terminal device includes but is not limited to a server, a personal computer device, a cloud processor, etc. The metering device is a detection device suitable for different industrial production with a shell and limiting the shell based on the button cover opening, such as an electric energy meter in the electric power industry, a flow meter in pipeline transportation, etc. The embodiment of the present application is not limited specifically. Each metering device is configured with a button for opening and closing the shell of the metering device, and the button is electrically connected to the current execution subject to acquire the button level signal. Therefore, the cover opening event is determined based on the button level signal of the metering device, that is, for representing the cover opening state of the metering device shell. Specifically, the button is a button assembly with high and low level output function, such as a relay, etc. The embodiment of the present application is not limited specifically. In an embodiment of the present application, each metering device is also configured with a communication component for data communication to the current execution subject or a remote server, etc. At this time, the carrier signal is emitted by the communication component installed in the metering device. Since the communication component sends the carrier signal according to a specific time sequence, the transmission of communication data is realized. Therefore, after determining the model, hardware information or communication protocol of the communication component, the receiving interval time of the carrier signal of the current execution subject can be acquired.
[0064] It should be noted that, since the key is a component for opening and closing the metering device, the high and low level signals output as the trigger basis of the cover opening event, for example, the high level corresponds to the cover opening of the metering device, so that the cover opening event can be determined based on the key level signal, at this time, the correspondence between the high and low levels and the cover opening event can be pre-configured by the technical personnel, and the embodiment of the present application is not limited.
[0065] 102. If the detection time of the key level signal is greater than the receiving interval time, it is determined whether the communication component is in place relative to the metering device.
[0066] In the embodiment of the present application, the detection time of the key level signal is pre-configured and the length of time for triggering the determination of whether the cover is opened through the key level signal, if the detection time is greater than the receiving interval time of the communication component, it indicates that the metering device may be in an abnormal state of the communication component under the cover opening state, therefore, it is determined whether the communication component is in place relative to the metering device, in the embodiment of the present application, the receiving time interval can be pre-configured, such as 30 seconds, without specific limitation. Specifically, whether the communication component is in place relative to the metering device represents whether the communication component is separated from the metering device, in the embodiment of the present application, the communication component is installed inside the shell of the metering device under the normal cover closing state, at this time, the communication component is in place relative to the metering device, when the metering device is in the normal cover opening state, the communication component will be separated from the metering device, at this time, the communication component is not in place relative to the metering device.
[0067] It should be noted that, in the embodiment of the present application, the communication component is installed in the module compartment of the metering device, and when the metering device is opened, the communication component in the module compartment will be separated from the metering device body, so as to determine the in-place state between the communication component and the metering device.
[0068] 103. If the communication component is in place relative to the metering device, it is determined that the cover opening event is an abnormal cover opening event.
[0069] In the embodiment of the present application, when the communication component is in place relative to the metering device, it indicates that the communication component is also configured on the metering device, and no real cover opening of the metering device occurs, therefore, the cover opening event obtained based on the step 101 is a false judgment, and it is further indicated that the cover opening event of the metering device is an abnormal cover opening event, which greatly improves the accuracy of the cover opening event detection.
[0070] In another embodiment of the present application, in order to further limit and illustrate, the step of determining whether the communication component is in place relative to the metering device comprises: configuring a target pin of the communication component to be in an input state, and obtaining a pin level signal of the target pin in the input state, to determine whether the communication component is in place relative to the metering device based on the pin level signal.
[0071] In order to realize the judgment of whether the metering device has the cover opening abnormality based on the communication component, whether the communication component is in place relative to the metering device is judged by the pin level signal of the target pin of the configured communication component. Since the communication component can be a module unit including but not limited to a chip with a carrier signal, a single-chip microcomputer, etc., the target pin of the configured communication component is in an input state, at this time, the target pin can include but is not limited to a module reset pin RST, a meter sending and module receiving pin TXD, etc., and the embodiments of the present application are not limited specifically. At the same time, the pin level signal of the target pin in the input state is detected to judge whether the communication component is in place based on the pin level signal.
[0072] Correspondingly, in order to further limit and illustrate, before determining that the cover opening event is an abnormal cover opening event, the method further includes: if the pin level signal is a preset pin level signal, determining that the communication component is in a in-place state relative to the metering device.
[0073] Specifically, in the embodiments of the present application, a specified preset pin signal is configured for the target pin in advance as a basis for judging that the communication component is in a in-place state, that is, when the detected pin level signal of the target pin is a preset pin level signal, it is determined that the communication component is in a in-place state relative to the metering device. For example, when RST and TXD are both high level, it is determined that the communication component is in place. The preset pin signal can be that the target pin is all high level or all low level, and the embodiments of the present application are not limited specifically. In addition, in the embodiments of the present application, after the detection of the pin level signal of the target pin is completed, the target pin is reset to an output high level state to restore the communication function of the communication component.
[0074] In another embodiment of the present application, in order to further limit and illustrate, the step of judging whether the communication component is in place relative to the metering device includes: sending a response request to the communication component and detecting whether a response reply information is received to judge whether the communication component is in place relative to the metering device according to the response reply information.
[0075] In order to realize judging whether the metering device has the cover opening abnormal situation based on the communication component, whether the communication component is in place relative to the metering device is judged by sending a response request to the communication component by the current execution end, and judging whether the communication component is in place relative to the metering device based on whether the reply information is received. Since the communication component is configured on the metering device, if in place, the communication component can normally communicate data, if not in place, the communication component cannot normally communicate data, therefore, the response request is sent to the communication component, and whether the reply information is received is detected to judge whether the communication component is in place. For example, a read chip ID information request is sent to the communication component, whether the chip ID information reply information of the communication component is received is detected to judge whether the communication component is in place.
[0076] Correspondingly, in order to further limit and illustrate, before determining that the cover opening event is an abnormal cover opening event, the method further includes: if the reply information is received, determining that the communication component is in a in-place state relative to the metering device.
[0077] Specifically, in the embodiment of the application, the request content of the response request can be pre-configured, which is not limited, after the current execution end sends the request response, if the reply information of the request response is received, it indicates that the communication component can normally communicate data, therefore, it is determined that the communication component is in a in-place state relative to the metering device.
[0078] In another embodiment of the application, in order to further limit and illustrate, as shown in the method further includes: Figure 2 before the step of acquiring the cover opening event of the metering device and the receiving interval time of the carrier signal, the method further includes:
[0079] 201, after the metering device completes the power-on operation, whether the message information sent by the communication component is received within a first preset time interval is detected;
[0080] 202, if the message information is received, it is determined that the communication component completes the installation in the metering device.
[0081] In the embodiment of the present application, in order to realize the abnormal detection of the opening cover event of the metering device based on the communication component, it is necessary to determine in advance whether the communication component is installed in the recording device to ensure the transmission and reception of the carrier signal of the communication component. First, the metering device is powered on, that is, the metering device can be powered on based on the power line, or the metering device can be powered on through the device battery, which is not limited in the embodiment of the present application. When the power-on operation is completed, the metering device is in a normal running state, and the current execution end determines whether the communication component is in normal communication by detecting whether the message information sent by the communication component can be received. The first preset time interval is a time length for judging whether the message information is received, which can be 10 seconds, 1 minute, etc., and is not limited in the embodiment of the present application. At the same time, if the message information sent by the communication component is detected within the first preset time interval, it is indicated that the communication component is normally running in the metering device, and the message information is preferably a legal message, so it can be determined that the communication component is normally installed in the metering device, and the opening cover event abnormal detection is combined with the communication component in the case of normal installation. For example, if the legal message of the module is received after the power-on of the electric meter, it is determined that the communication module is installed in the electric meter, and if no message is received, it is determined that there is no communication module, as shown in Figure 3
[0082] In another embodiment of the present application, in order to further limit and illustrate, as shown in Figure 4 the method further comprises the following steps before the step of obtaining the opening cover event of the metering device and the receiving interval time of the carrier signal:
[0083] 301, obtaining the key level signal of different metering devices in a second preset time interval;
[0084] 302, generating the opening cover event of the metering device according to the comparison result of the key level signal and the preset opening cover level signal, and storing the opening cover event and the detection time of the key level signal.
[0085] In the embodiment of the present application, in order to improve the accuracy of the cover opening judgment based on the key level signal, the cover opening event of the metering device needs to be detected in advance, so as to judge based on the cover opening event combined with the communication component. Specifically, the key level signals of different metering devices in a second preset time interval are obtained. At this time, since the metering devices can be installed at metering targets in different positions, the key level signals of different metering devices can be collected, and when it is necessary to detect the cover opening event, the key level signals of different metering devices in a second preset time interval are obtained for unified judgment. The second preset time interval can be 1 day, 1 week, etc., which is not limited in the embodiment of the present application. At the same time, a cover opening level signal is preset, such as a high level, so that after the key level signal is compared with the preset cover opening level signal, the cover opening event of the metering device is generated, such as when the key level signal is detected as a high level, the cover opening event of the metering device is generated, indicating that the metering device is in an open state at this time. In addition, in order to facilitate the abnormal judgment of the cover opening event of the metering device, the cover opening event and the corresponding detection time are stored, so as to compare the receiving interval time with the detection time to determine whether the cover opening event is abnormal, thereby improving the accuracy of the cover opening event detection.
[0086] In another embodiment of the present application, in order to further limit and illustrate, the step further comprises: if the detection time of the key level signal is less than or equal to the receiving interval time, it is determined that the communication component is in the in-place state relative to the metering device, and the cover opening event is an abnormal cover opening event.
[0087] Since the interval time of the transmission carrier signal of the communication component installed in the metering device is the basis for judging the communication component, at this time, if the detection time of the key level signal is less than or equal to the receiving interval time, it indicates that a cover opening event occurs within a carrier signal receiving interval in the normal communication process of the communication component, and the cover opening is abnormal. Therefore, it is determined that the communication component is in the in-place state of the metering device at this time, and the cover opening event is an abnormal cover opening event, which meets the requirement of detecting the cover opening abnormality in the receiving interval time period.
[0088] In another embodiment of the present application, in order to further limit and illustrate, the step further comprises: reporting the abnormal cover opening event to perform offline inspection on the metering device; and when the abnormal cover opening event detection is completed, if no packet information of the metering device is received within a third preset time interval, a reset operation is performed on the target pin of the communication component to re-judge whether the communication component is in the in-place state relative to the metering device.
[0089] In the embodiment of the present application, in order to ensure the processing efficiency of the abnormal cover opening event, avoid the metering error caused by the abnormal cover opening event, report the abnormal cover opening event, so that the operator can perform offline inspection on the metering device with the abnormal cover opening event. In addition, after completing the abnormal cover opening event detection, in order to enable the metering device to normally operate and perform normal metering operation, whether the message information of the communication component can be received is detected within a third preset time interval. If not, it means that the communication component is abnormal. At this time, the target pin of the communication component is reset to re-determine whether the communication component is in the in-place state relative to the metering device. The third preset time interval can be 24 hours, 2 days, etc., which is not limited in the embodiment of the present application. For example, if no legal communication message is received for more than 24 hours, the RST pin can be reset, and the communication component can be reset to read the communication reading number of the electric meter again to re-determine whether the electric meter is installed with the communication component, which is not limited in the embodiment of the present application.
[0090] In addition, in the embodiment of the present application, the generated cover opening event can also be directly reported. That is, if the reporting instruction of the cover opening event is opened, the generated cover opening event is directly reported, which is not limited in the embodiment of the present application.
[0091] In one specific implementation scenario in the embodiment of the present application, as shown in Figure 5 After the cover opening level is detected, the cover opening event is generated and recorded. It is judged whether the electric meter is provided with a carrier module as a communication component. If yes, it is judged whether the detection time is greater than the receiving interval time of the carrier signal. If yes, it is judged whether the carrier module is in place based on the target pin RST, TXD or request reading chip ID information. If yes, it is determined that the cover opening event is an abnormal cover opening event.
[0092] The embodiment of the present application provides a detection method for a cover opening event of a metering device. Compared with the prior art, the embodiment of the present application acquires a cover opening event of a metering device and a receiving interval time of a carrier signal. The cover opening event is determined based on a key level signal of the metering device. The carrier signal is emitted by a communication component installed in the metering device. If the detection time of the key level signal is greater than the receiving interval time, it is judged whether the communication component is in place relative to the metering device. If the communication component is in the in-place state relative to the metering device, it is determined that the cover opening event is an abnormal cover opening event. The embodiment of the present application avoids the key false alarm caused by the single determination of the cover opening event based on the key level judgment mode, greatly reduces the frequency of abnormal cover opening reporting, and improves the detection accuracy of the cover opening event of the metering device.
[0093] Further, as an implementation of the method shown in Figure 1 The embodiment of the present application provides a detection device for a cover opening event of a metering device, as shown in Figure 6As shown, the device comprises:
[0094] The acquisition module 41 is configured to acquire an uncovering event of a metering device and a receiving interval time of a carrier signal, the uncovering event being determined based on a key level signal of the metering device, and the carrier signal being emitted by a communication component installed in the metering device.
[0095] The judgment module 42 is configured to judge whether the communication component is in place relative to the metering device if the detection time of the key level signal is greater than the receiving interval time.
[0096] The determination module 43 is configured to determine the uncovering event as an abnormal uncovering event if the communication component is in the in-place state relative to the metering device.
[0097] Further, the judgment module is specifically configured to configure a target pin of the communication component as an input state, and acquire a pin level signal of the target pin in the input state, so as to judge whether the communication component is in place relative to the metering device based on the pin level signal.
[0098] The determination module is specifically configured to determine that the communication component is in the in-place state relative to the metering device if the pin level signal is a preset pin level signal.
[0099] Further, the judgment module is specifically configured to send a response request to the communication component, and detect whether a response reply information is received, so as to judge whether the communication component is in place relative to the metering device according to the response reply information.
[0100] The determination module is specifically configured to determine that the communication component is in the in-place state relative to the metering device if the response reply information is received.
[0101] Further, the device further comprises a detection module,
[0102] The detection module is configured to detect whether a packet information sent by the communication component is received within a first preset time interval when the metering device completes a power-on operation.
[0103] The determination module is further configured to determine that the communication component completes the installation in the metering device if the packet information is received.
[0104] Further, the device further comprises a generation module,
[0105] The acquisition module is further configured to acquire key level signals of different metering devices within a second preset time interval.
[0106] The generation module is configured to generate an opening cover event of the metering device according to a comparison result of the key level signal and a preset opening cover level signal, and store the opening cover event and a detection time of the key level signal.
[0107] Further, the determination module is further configured to determine that the communication component is in the in-place state relative to the metering device and the opening cover event is an abnormal opening cover event if the detection time of the key level signal is less than or equal to the receiving interval time.
[0108] Further, the apparatus further comprises:
[0109] The reporting module is configured to report the abnormal opening cover event to perform offline inspection on the metering device.
[0110] The reset module is configured to reset a target pin of the communication component to re-determine whether the communication component is in the in-place state relative to the metering device when the abnormal opening cover event detection is completed and no packet information of the metering device is received within a third preset time interval.
[0111] The embodiment of the present application provides a detection apparatus of an opening cover event of a metering device, compared with the prior art, the detection apparatus of the opening cover event of the metering device is obtained, a receiving interval time of a carrier signal, the opening cover event is determined based on a key level signal of the metering device, the carrier signal is emitted by a communication component installed in the metering device, if the detection time of the key level signal is greater than the receiving interval time, whether the communication component is in place relative to the metering device is determined, if the communication component is in the in-place state relative to the metering device, it is determined that the opening cover event is an abnormal opening cover event, the key level judgment mode is avoided to determine the opening cover event, the key misreporting situation is avoided, the frequency of the abnormal opening cover reporting is greatly reduced, and the detection accuracy of the opening cover event of the metering device is improved.
[0112] According to an embodiment of the present application, a storage medium is provided, the storage medium stores at least one executable instruction, the computer executable instruction can execute the detection method of the opening cover event of the metering device in any method embodiment.
[0113] Figure 7 A structure schematic diagram of a terminal is shown according to an embodiment of the present application, and the specific implementation of the terminal is not limited in the embodiment of the present application.
[0114] As Figure 7As shown, the terminal can include a processor 502, a communications interface 504, a memory 506, and a communications bus 508.
[0115] The processor 502, the communications interface 504, and the memory 506 can communicate with each other through the communications bus 508.
[0116] The communications interface 504 is configured to communicate with network elements such as clients or other servers.
[0117] The processor 502 is configured to execute the program 510, and in particular, can execute the related steps in the meter cover opening event detection method embodiments described above.
[0118] In particular, the program 510 can include program code including computer operation instructions.
[0119] The processor 502 can be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present application. The one or more processors included in the terminal can be the same type of processor, such as one or more CPUs; or can be different types of processors, such as one or more CPUs and one or more ASICs.
[0120] The memory 506 is configured to store the program 510. The memory 506 can include a high-speed RAM memory, and can also include a non-volatile memory such as at least one disk memory.
[0121] The program 510 can be specifically configured to cause the processor 502 to perform the following operations:
[0122] Obtain a cover opening event of a metering device and a receiving interval time of a carrier signal, the cover opening event being determined based on a key level signal of the metering device, and the carrier signal being emitted by a communication component installed in the metering device;
[0123] If the detection time of the key level signal is greater than the receiving interval time, determine whether the communication component is in place relative to the metering device;
[0124] If the communication component is in the in-place state relative to the metering device, determine that the cover opening event is an abnormal cover opening event.
[0125] It should be apparent to those skilled in the art that the modules or steps of the application described above can be implemented with a general purpose computing device, which can be centralized on a single computing device or distributed over a network of multiple computing devices, and optionally implemented with program code executable by a computing device, which can be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described can be performed in a different order than shown, or made into individual integrated circuit modules, or multiple modules or steps made into a single integrated circuit module. Thus, the application is not limited to any particular combination of hardware and software.
[0126] The preferred embodiments of the application described above are intended to be merely exemplary and those skilled in the art will recognize that changes can be made to the above-described embodiments without departing from the spirit and scope of the application. What is desired to be protected by letters patent is set forth in the appended claims.
Claims
1. A method for detecting an event of a metering device being opened, characterized in that, include: The device acquires the opening event of the metering device and the reception interval of the carrier signal. The opening event is determined based on the key level signal of the metering device, and the carrier signal is emitted by the communication component installed in the metering device. If the detection time of the key level signal is greater than the receiving interval time, it is determined whether the communication component is in place relative to the metering device; If the communication component is in place relative to the metering device, then the opening event is determined to be an abnormal opening event; If the detection time of the key level signal is less than or equal to the receiving interval time, then it is determined that the communication component is in place relative to the metering device, and the opening event is an abnormal opening event.
2. The method according to claim 1, characterized in that, The step of determining whether the communication component is in place relative to the metering device includes: Configure the target pin of the communication component to an input state, and acquire the pin level signal of the target pin in the input state, so as to determine whether the communication component is in place relative to the metering device based on the pin level signal; Before determining that the opening event is an abnormal opening event, the method further includes: If the pin level signal is a preset pin level signal, then it is determined that the communication component is in place relative to the metering device.
3. The method according to claim 1, characterized in that, The step of determining whether the communication component is in place relative to the metering device includes: A response request is sent to the communication component, and a response reply is detected to determine whether the communication component is in place relative to the metering device based on the response reply. Before determining that the opening event is an abnormal opening event, the method further includes: If the response reply information is received, it is determined that the communication component is in place relative to the metering device.
4. The method according to claim 1, characterized in that, Before acquiring the opening event of the metering device and the reception interval of the carrier signal, the method further includes: After the metering device completes the power-on operation, it detects whether it receives message information sent by the communication component within a first preset time interval. If the message information is received, it is determined that the communication component has completed its installation in the metering device.
5. The method according to claim 1, characterized in that, Before acquiring the opening event of the metering device and the reception interval of the carrier signal, the method further includes: Acquire the key level signals of different metering devices within a second preset time interval; Based on the comparison result between the key level signal and the preset lid opening level signal, the lid opening event of the measuring device is generated, and the lid opening event and the detection time of the key level signal are stored.
6. The method according to any one of claims 1-5, characterized in that, The method further includes: The abnormal opening event will be reported to facilitate offline inspection of the metering equipment. If no message information from the metering device is received within a third preset time interval after the abnormal opening event detection is completed, the target pin of the communication component is reset to re-determine whether the communication component is in place relative to the metering device.
7. A detection device for an event of a metering device being opened, characterized in that, include: The acquisition module is used to acquire the opening event of the metering device and the reception interval of the carrier signal. The opening event is determined based on the key level signal of the metering device, and the carrier signal is emitted by the communication component installed in the metering device. The judgment module is used to determine whether the communication component is in place relative to the metering device if the detection time of the key level signal is greater than the receiving interval time. The determination module is used to determine that the opening event is an abnormal opening event if the communication component is in an in-situ state relative to the metering device. The determining module is further configured to determine that the communication component is in place relative to the metering device and that the opening event is an abnormal opening event if the detection time of the key level signal is less than or equal to the receiving interval time.
8. A storage medium storing at least one executable instruction that causes a processor to perform an operation corresponding to the detection method for a metering device opening event as described in any one of claims 1-6.
9. A terminal, comprising: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the detection method for the metering device opening event as described in any one of claims 1-6.
Citation Information
Patent Citations
Uncovering detection circuit integrated in MCU and uncovering detection method based on MCU
CN111323626A