Infrared-based meter box switch monitoring method and system, electronic device and medium

By using an infrared rangefinder and a camera module to monitor the opening and closing status of the meter box door in real time, the problem of not being able to determine whether the meter box door opening and closing event is a legitimate operation in the existing technology is solved, and the safety monitoring and alarm functions of the meter box door are realized.

CN115691014BActive Publication Date: 2025-12-09WUHAN ROUTON ELECTRONIC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211137172.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-19
Publication Date
2025-12-09
Estimated Expiration
2042-09-19

AI Technical Summary

Technical Problem

The existing meter box door opening and closing events cannot determine in real time whether it is a legitimate unlocking action by staff, resulting in insufficient security.

Method used

The system uses an infrared rangefinder to monitor the opening and closing status of the meter box door. By comparing the detected distance with the preset closing distance and combining the unlocking status, it determines whether the unlocking is legal or illegal. An alarm is issued when the unlocking is illegal, and at the same time, a photo of the scene is taken and uploaded to the backend.

Benefits of technology

It enables real-time monitoring of the meter box door, distinguishes between legal and illegal door opening and closing events, and issues alarms and uploads photos when illegal operations occur, thereby improving security and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115691014B_ABST
    Figure CN115691014B_ABST
Patent Text Reader

Abstract

The present application relates to an infrared-based meter box switch monitoring method, system, electronic device and medium, comprising: acquiring a detection distance; if the detection distance is greater than a preset door closing distance, determining that the current state of the meter box door is an open door state, and if the detection distance is less than the preset door closing distance, determining that the current state of the meter box door is a closed door state; acquiring an unlocking state of the meter box door, if the unlocking state is a legal unlocking, judging that the meter box door is in an open door event, if the unlocking state is an illegal unlocking, issuing a first alarm information, and ending the current process; acquiring the current state of the meter box door in the previous process of the current process, if the current state is an open door state, judging that the meter box door is in a closed door event, recording the closed door event, uploading the closed door event to the back end, and ending the current process, if the current state is a closed door state, ending the current process. The problem that the opening and closing door events of the meter box cannot be judged in real time whether they are the legal unlocking behavior of the staff is solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of meter box monitoring, and in particular to an infrared-based meter box opening and closing monitoring method and system, an electronic device, and a medium. BACKGROUND

[0002] A meter box of an electric meter usually needs to be locked to prevent someone from illegally modifying the electric meter. The existing meter box door opening and closing event is reported by a door magnetic switch. The door magnetic switch is a mechanical switch, and cannot determine in real time whether the meter box door opening and closing event is a legal unlocking action of a staff member. SUMMARY

[0003] To solve the problem that the meter box door opening and closing event cannot be determined in real time whether it is a legal unlocking action of a staff member, the present application provides an infrared-based meter box opening and closing monitoring method, system, electronic device, and medium.

[0004] In a first aspect, to solve the above technical problem, the present application provides an infrared-based meter box opening and closing monitoring method, comprising the following steps:

[0005] S1, obtaining a detection distance, the detection distance being a distance between a meter box door and an infrared range finder obtained by the infrared range finder installed on a meter box cabinet;

[0006] S2, comparing the detection distance with a preset door closing distance, if the detection distance is greater than the preset door closing distance, determining that a current state of the meter box door is an opening state, and performing S3, if the detection distance is less than the preset door closing distance, determining that the current state of the meter box door is a closing state, and performing S4, the preset door closing distance being determined based on a distance between the meter box door and the infrared range finder when the meter box door is closed;

[0007] S3, obtaining an unlocking state of the meter box door, the unlocking state being a legal unlocking or an illegal unlocking, if the unlocking state is the legal unlocking, determining that the meter box door is in an opening event, recording the opening event, uploading the opening event to a backend, and ending the current process, if the unlocking state is the illegal unlocking, issuing a first alarm information, and ending the current process, the legal unlocking indicating that the meter box door is allowed to be opened or closed, and the illegal unlocking indicating that the meter box door is not allowed to be opened or closed;

[0008] S4, obtaining a current state of the meter box door in a previous process of the current process, if the current state is the opening state, determining that the meter box door is in a closing event, recording the closing event, uploading the closing event to the backend, and ending the current process, if the current state is the closing state, ending the current process.

[0009] The method has the beneficial effects that: by comparing the detection distance and the preset door closing distance, the current state of the meter box door is determined to be an open door state or a closed door state; when the current state is the open door state, the current open door event needs to be recorded, and it is determined whether the current open door event is a legal unlocking; if the current open door event is an illegal unlocking, a first alarm information is sent; when the current state is the closed door state, the current state of the meter box door of the previous process of the current process is determined, so as to determine whether the closed door event is being performed; if the current state of the meter box door of the previous process of the current process is the open door state, the current closed door event is recorded; based on this, when the meter box door is opened or closed, the open door event and the closed door event of the meter box door can be monitored in real time, and the back end can determine whether the person who opens or closes the meter box door is a staff member or a non-staff member in the first time, so that the problem that whether the open and closed door events of the meter box are legal unlocking behaviors of the staff member cannot be determined in real time is solved.

[0010] Based on the above technical solutions, the infrared-based meter box opening and closing monitoring method of the present application can be further improved as follows.

[0011] Further, the method further comprises:

[0012] Every first preset time, the photographing module is controlled to obtain the on-site photos of the meter box, and the obtained on-site photos are uploaded to the back end;

[0013] If the unlocking state is an illegal unlocking, a first alarm information is sent, which comprises:

[0014] If the unlocking state is an illegal unlocking, a first alarm information is sent, and every first preset time, the photographing module is controlled to obtain the on-site photos of the meter box, and the obtained on-site photos are uploaded to the back end.

[0015] The beneficial effects of the above further scheme are that: when it is determined that the unlocking is illegal, the operator can be reminded by the first alarm information to prohibit the operation, and the on-site photos of the meter box are uploaded to the back end, so that the identity of the operator can be determined by the back end.

[0016] Further, the method further comprises:

[0017] Every second preset time, a new detection distance is obtained, and after a preset number of new detection distances are obtained, if each new detection distance has an error less than a second preset error distance from the detection distance obtained in S1, S4 is executed.

[0018] If the detection distance is less than the preset door closing distance, it is determined that the current state of the meter box door is the closed door state, and S4 is executed, which comprises:

[0019] If the detection distance is less than the preset door closing distance, it is determined that the current state of the meter box door is a door closing state, and a new detection distance is obtained every second preset time. After a preset number of new detection distances are obtained, if the error between each new detection distance and the detection distance obtained in S1 is less than a second preset error distance, S4 is executed.

[0020] The beneficial effect of the above further scheme is that when the meter box door is in an open door state and is in a shaking state, the detection distance may frequently be less than the preset door closing distance, leading to a false judgment. Therefore, a new detection distance is obtained every second preset time, and after a preset number of new detection distances are obtained, each new detection distance is compared with the detection distance obtained in S1. If the error is within the second preset error distance, it indicates that the meter box door is not shaking at this time.

[0021] Further, in the above method, the preset door closing distance includes an actual door closing distance and a first preset error distance. The actual door closing distance is 20 cm, and the first preset error distance is 4 mm. The second preset error distance is 2 mm.

[0022] The beneficial effect of the above further scheme is that due to differences in the manufacturing process of the meter box door, a first preset error distance is set to adapt to different meter box doors. Since there is a slight error in the value of the detection distance obtained each time, a second preset error distance is set to reduce the impact of the error when obtaining the detection distance.

[0023] Further, the method further comprises:

[0024] S5, obtaining the current state of the meter box door in the current process. If the current state is an open door state, S6 is executed. If the current state is a door closing state, the process is ended.

[0025] S6, obtaining vibration values obtained by a vibration detector on the meter box cabinet within a third preset time. If the vibration values are continuously 0 within the third preset time, the process is ended. If the vibration values change within the third preset time, S7 is executed.

[0026] S7, obtaining an unlocking state of the meter box door. If the unlocking state is a legal unlocking, it is determined that the meter box cabinet is in a device moving event, the device moving event is stored, and the moving event is uploaded to the backend. If the unlocking state is an illegal unlocking, a second alarm information is issued.

[0027] The beneficial effect of the above further scheme is that when the meter box door is in an open door state, the vibration values obtained within the third preset time and the unlocking state are used to determine whether the meter box cabinet is in a moving event, thereby avoiding illegal movement of the meter box by non-staff.

[0028] In a second aspect, the present application provides an infrared-based metering box switch monitoring system, comprising:

[0029] A first acquisition module is configured to acquire a detection distance, which is a distance between a metering box door and an infrared distance meter acquired by the infrared distance meter installed on a metering box cabinet body;

[0030] A judgment module is configured to compare the detection distance with a preset door closing distance, and if the detection distance is greater than the preset door closing distance, determine that a current state of the metering box door is an open door state, and execute a function corresponding to an open door event module, and if the detection distance is less than the preset door closing distance, determine that the current state of the metering box door is a closed door state, and execute a function corresponding to a closed door event module, wherein the preset door closing distance is determined based on a distance between the metering box door and the infrared distance meter when the metering box door is closed;

[0031] The open door event module is configured to acquire an unlocking state of the metering box door, wherein the unlocking state is a legal unlocking or an illegal unlocking, if the unlocking state is the legal unlocking, determine that the metering box door is in an open door event, record the open door event, upload the open door event to a back end, and end a current process, and if the unlocking state is the illegal unlocking, issue a first alarm information, and end the current process, wherein the legal unlocking represents that the metering box door is allowed to be opened or closed, and the illegal unlocking represents that the metering box door is not allowed to be opened or closed;

[0032] The closed door event module is configured to acquire a current state of the metering box door in a previous process of the current process, if the current state is the open door state, determine that the metering box door is in a closed door event, record the closed door event, upload the closed door event to the back end, and end the current process, and if the current state is the closed door state, end the current process.

[0033] In a third aspect, the present application further provides an electronic device, comprising a memory, a processor, and a program stored in the memory and running on the processor, wherein the processor executes the program to implement the steps of the infrared-based metering box switch monitoring method as described above.

[0034] In a fourth aspect, the present application further provides a computer readable storage medium, wherein the computer readable storage medium stores instructions, and when the instructions run on a terminal device, the terminal device executes the steps of the infrared-based metering box switch monitoring method as described above. BRIEF DESCRIPTION OF DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the present application will be further described below with reference to the drawings and embodiments.

[0036] Figure 1 A flowchart of the infrared-based metering box switch monitoring method of the embodiments of the present application;

[0037] Figure 2A structural schematic diagram of an infrared range finder;

[0038] Figure 3 A live photo taken by a camera;

[0039] Figure 4 A table box door event recorded by a backend each time;

[0040] Figure 5 A structural schematic diagram of an infrared-based table box switch monitoring system according to an embodiment of the present application. DETAILED DESCRIPTION

[0041] The following embodiments are further explanations and supplements of the present application and do not constitute any limitation on the present application.

[0042] The infrared-based table box switch monitoring method, system, electronic device and medium according to an embodiment of the present application are described below in combination with the accompanying drawings.

[0043] As shown in Figure 1 , the infrared-based table box switch monitoring method according to an embodiment of the present application includes the following steps:

[0044] S1, obtaining a detection distance, the detection distance being a distance between a table box door and an infrared range finder obtained by the infrared range finder installed on a table box cabinet.

[0045] Optionally, as shown in Figure 2 , the infrared range finder can be fixed on the table box cabinet by means of a bolt or the like, and meanwhile, connected with a backend by means of a 4G antenna or the like. The infrared range finder 1 includes an infrared ranging sensor 2, a camera 3 and a flash 4. The infrared ranging sensor 2 is used to obtain the detection distance, the camera 3 is used to obtain a live photo of the table box, and the flash 4 is used to perform a light supplement operation when the camera 3 obtains the photo.

[0046] S2, comparing the detection distance with a preset door closing distance. If the detection distance is greater than the preset door closing distance, it is determined that a current state of the table box door is an open door state, and S3 is performed. If the detection distance is less than the preset door closing distance, it is determined that the current state of the table box door is a closed door state, and S4 is performed. The preset door closing distance is determined based on a distance between the table box door and the infrared range finder when the table box door is closed.

[0047] Optionally, the preset door closing distance includes an actual door closing distance and a first preset error distance. The actual door closing distance is 20 cm, and the first preset error distance is 4 mm. The actual door closing distance and the first preset error distance are data obtained through multiple experiments and experience summary.

[0048] S3, acquire the unlocking state of the meter box door, the unlocking state being legal unlocking or illegal unlocking, if the unlocking state is legal unlocking, it is judged that the meter box door is in an opening event, the opening event is recorded, the opening event is uploaded to the backend, and the current process is ended, if the unlocking state is illegal unlocking, a first alarm information is sent, and the current process is ended, the legal unlocking represents that the meter box door is allowed to be opened or closed, and the illegal unlocking represents that the meter box door is not allowed to be opened or closed.

[0049] In the embodiment, the meter box door can be unlocked or locked by remote operation, for example, using a mobile phone app to control the unlocking state of the meter box door, if the unlocking state is switched to legal unlocking, it indicates that the meter box door is allowed to be opened or closed, if the unlocking state is switched to illegal unlocking, it indicates that the meter box door is not allowed to be opened or closed.

[0050] In the embodiment, the first alarm information can be a voice alarm, for example, when the unlocking state is illegal unlocking, a voice alarm is sent to prevent non-staff from continuing to operate the opening event.

[0051] Optionally, the method further comprises:

[0052] Every first preset time, the photographing module is controlled to acquire the on-site photos for the meter box, and the acquired on-site photos are uploaded to the backend;

[0053] If the unlocking state is illegal unlocking, a first alarm information is sent, comprising:

[0054] If the unlocking state is illegal unlocking, a first alarm information is sent, and every first preset time, the photographing module is controlled to acquire the on-site photos for the meter box, and the acquired on-site photos are uploaded to the backend.

[0055] When the unlocking state is illegal unlocking, the camera and the flash are controlled to work at the same time when the first alarm information is sent, the on-site photos of the meter box are uploaded to the backend, so that the monitoring personnel can acquire the face information of the non-staff, Figure 3 That is, the on-site photos are photographed, the backend will record this opening event of the meter box door, and will also record the transformer area number, the meter box number, the event name, and the detailed address and the electric meter address of the meter box, wherein:

[0056] The transformer area number refers to the number used by the local power supply station for unified numbering and recording of all transformers in the meter box, Figure 3 In the embodiment, the transformer area number is 20155;

[0057] The meter box number refers to the numbering of all meter boxes in the local area, Figure 3 In the embodiment, the meter box number is 26-73;

[0058] The event name refers to the opening operation or closing operation of the meter box door,Figure 3 In the embodiment, the illegal opening of the door corresponds to an opening event in the illegal unlocking of the embodiment, and 2022-07-05 18:06:31 refers to the specific time when the opening event occurs in the illegal unlocking this time;

[0059] The detailed address refers to the area where the box is located, Figure 3 In the embodiment, the detailed address is the Friendship Community.

[0060] The meter address refers to the specific location of the meter in the detailed address, Figure 3 In the embodiment, the meter address is the Friendship Community. It should be particularly noted that the detailed address can be any city, any district, and any community, and the meter address is a specific community (for example, the detailed address can be X City Y District, and the meter address is Z community (which is located in Y District of X City)).

[0061] In the embodiment, 6 photos can be continuously taken, and the first preset time is set to 2-3 minutes, that is, a live photo is taken every 2-3 minutes.

[0062] S4, the current state of the box door in the previous process is obtained, if the current state is an open door state, it is determined that the box door is in a closing event, the closing event is recorded, the closing event is uploaded to the backend, and the current process is ended, if the current state is a closed door state, the current process is ended.

[0063] Optionally, the method further comprises:

[0064] A new detection distance is obtained every second preset time, and after a preset number of new detection distances are obtained, if the error between each new detection distance and the detection distance obtained in S1 is less than a second preset error distance, S4 is executed;

[0065] If the detection distance is less than the preset closing distance, it is determined that the current state of the box door is a closed door state, and S4 is executed, including:

[0066] If the detection distance is less than the preset closing distance, it is determined that the current state of the box door is a closed door state, and a new detection distance is obtained every second preset time, and after a preset number of new detection distances are obtained, if the error between each new detection distance and the detection distance obtained in S1 is less than a second preset error distance, S4 is executed.

[0067] Optionally, the second preset error distance is 2mm, wherein the second preset error distance is data obtained through multiple experiments and experience summary.

[0068] In the embodiment, the meter box door is sometimes closed but not successfully locked, and the meter box door rotates back and forth when the meter box door shakes, resulting in frequent reporting of the closed door event. Therefore, the new detection distances are continuously acquired for a preset number of times within a second preset time, and if the error between each new detection distance and the detection distance acquired in S1 is less than a second preset error distance, it indicates that the meter box door is successfully locked.

[0069] Optionally, the second preset time is 2 minutes, and the preset number of times is 10-20 times, i.e., 10-20 new detection distances are continuously acquired within 2 minutes.

[0070] Optionally, the method further comprises:

[0071] S5, acquiring a current state of the meter box door in the current process, if the current state is an open door state, performing S6, and if the current state is a closed door state, ending the process;

[0072] S6, acquiring vibration values acquired by a vibration detector on the meter box cabinet within a third preset time, if the vibration values are continuously 0 within the third preset time, ending the process, and if the vibration values change within the third preset time, performing S7;

[0073] S7, acquiring an unlocking state of the meter box door, if the unlocking state is a legal unlocking, judging that the meter box cabinet is in a device moving event, storing the device moving event, and uploading the moving event to a backend, and if the unlocking state is an illegal unlocking, issuing a second alarm information.

[0074] In the embodiment, the third preset time is 5 minutes, i.e., the vibration values acquired by the vibration detector are acquired within 5 minutes.

[0075] Optionally, since the meter box is not allowed to be operated by anyone when the meter box door is in the unlocking state, once the meter box is in the vibration state within 5 minutes, it indicates that a non-staff is moving the meter box, at this time, the moving event needs to be reported to the backend, and a second alarm information is issued, wherein the second alarm information can be a voice alarm to remind the non-staff to prohibit moving the meter box.

[0076] Optionally, the backend records the opening event or the closing event of the meter box door, and records the substation number, the meter box number, the event name, the SN code, and the detailed address and the meter address of the meter box, wherein:

[0077] The substation number refers to a number used by a local power supply station for unified numbering and recording of all transformers in the meter box for the purpose of convenient management and recording, Figure 4 In the embodiment, the substation number is 20154 or 20155;

[0078] The meter box number refers to numbering all meter boxes locally, Figure 4 In the embodiment, the meter box number is 26-73 or 1.

[0079] The event name refers to the opening operation or closing operation of the meter box door, Figure 4 In the embodiment, the illegal opening corresponds to the opening event when the lock is illegally opened, the illegal closing corresponds to the closing event when the lock is illegally opened, and 2022-07-05 19:52:29 refers to the specific time when the opening event occurs when the lock is illegally opened. Figure 4 Involving multiple times, not one by one in this paper.

[0080] The SN code refers to the serial number on the meter box, Figure 4 In the embodiment, the SN code is ZPA2206300100170 or ZPA2206300100240.

[0081] The detailed address refers to the area where the meter box is located, Figure 4 In the embodiment, the detailed address is the Friendship Community.

[0082] The meter address refers to the specific location of the meter box in the detailed address, Figure 4 In the embodiment, the meter address is the Friendship Community. It should be noted that the detailed address can be any city, any district, and any community, and the meter address is a specific community (for example, the detailed address can be X City Y District, and the meter address is Z Community (located in Y District of X City)).

[0083] Optionally, in the embodiment, all processes of S1-S7 can be realized by a processor arranged in the meter box, and the processor is in communication connection with the backend to receive control instructions from the backend and interact with the backend data, such as uploading on-site photos, opening events, closing events, moving events, opening states, and closing states.

[0084] As shown in Figure 5 The infrared-based meter box opening and closing monitoring system of the embodiment of the application comprises:

[0085] The first acquisition module 202 is configured to acquire a detection distance, which is the distance between the meter box door and the infrared range finder acquired by the infrared range finder installed on the meter box cabinet.

[0086] The judgment module 203 is configured to compare the detection distance with a preset closing distance, and if the detection distance is greater than the preset closing distance, it is determined that the current state of the meter box door is an opening state, and the function corresponding to the opening event module is executed, and if the detection distance is less than the preset closing distance, it is determined that the current state of the meter box door is a closing state, and the function corresponding to the closing event module is executed. The preset closing distance is determined based on the distance between the meter box door and the infrared range finder when the meter box door is closed.

[0087] The door opening event module 204 is configured to obtain an unlocking state of the meter box door, the unlocking state being a legal unlocking or an illegal unlocking, if the unlocking state is the legal unlocking, it is determined that the meter box door is in a door opening event, the door opening event is recorded, the door opening event is uploaded to the backend, and the current process is ended, if the unlocking state is the illegal unlocking, a first alarm information is sent, and the current process is ended, the legal unlocking represents that the meter box door is allowed to be opened or closed, and the illegal unlocking represents that the meter box door is not allowed to be opened or closed;

[0088] The door closing event module 205 is configured to obtain a current state of the meter box door in a previous process of the current process, if the current state is an opening state, it is determined that the meter box door is in a door closing event, the door closing event is recorded, the door closing event is uploaded to the backend, and the current process is ended, if the current state is a closing state, the current process is ended.

[0089] Optionally, the system further comprises:

[0090] The photo acquisition module is configured to control the photographing module to acquire a live photo of the meter box every first preset time, and upload the acquired live photo to the backend;

[0091] The door opening event module 204 further comprises:

[0092] If the unlocking state is the illegal unlocking, the first alarm information is sent, the photographing module is controlled to acquire a live photo of the meter box every first preset time, and each acquired live photo is uploaded to the backend.

[0093] Optionally, the system further comprises:

[0094] The second acquisition module is configured to acquire a new detection distance every second preset time, and after a preset number of new detection distances are acquired, if an error between each new detection distance and the detection distance acquired in S1 is less than a second preset error distance, a function corresponding to the door closing event module 205 is executed;

[0095] The determination module 203 further comprises:

[0096] If the detection distance is less than the preset closing distance, the current state of the meter box door is determined to be a closing state, a new detection distance is acquired every second preset time, and after a preset number of new detection distances are acquired, if an error between each new detection distance and the detection distance acquired in S1 is less than a second preset error distance, a function corresponding to the door closing event module 205 is executed.

[0097] Optionally, the system further comprises:

[0098] The parameter setting module is configured to set a preset door closing distance, a first preset error distance and a second preset error distance, wherein the preset door closing distance comprises an actual door closing distance and the first preset error distance, the actual door closing distance is 20 cm, the first preset error distance is 4 mm, and the second preset error distance is 2 mm.

[0099] Optionally, the system further comprises:

[0100] The third acquisition module is configured to acquire a current state of the door of the meter box in the current process, and if the current state is an open door state, S6 is executed, and if the current state is a closed door state, the process is ended.

[0101] The vibration detection module is configured to acquire vibration values acquired by a vibration detector on the meter box cabinet within a third preset time, and if the vibration values are continuously 0 within the third preset time, the process is ended, and if the vibration values change within the third preset time, S7 is executed.

[0102] The moving event module is configured to acquire an unlocking state of the door of the meter box, and if the unlocking state is a legal unlocking, it is determined that the meter box cabinet is in a device moving event, the device moving event is stored, and the moving event is uploaded to a backend, and if the unlocking state is an illegal unlocking, a second alarm information is sent.

[0103] The electronic device of the embodiment of the present application comprises a memory, a processor and a program stored on the memory and running on the processor, and the processor implements part or all steps of the above-mentioned gas pipe network device state detection method when executing the program.

[0104] Correspondingly, the program is computer software, and the parameters and steps in the electronic device of the present application can refer to the parameters and steps in the embodiments of the gas pipe network device state detection method, which will not be described here.

[0105] Those skilled in the art know that the present application can be implemented as a system, a method or a computer program product. Therefore, the present disclosure can be embodied in the form of a complete hardware, a complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, which is generally referred to as "circuit", "module" or "system" in this paper. In addition, in some embodiments, the present application can also be implemented in the form of a computer program product in one or more computer readable media, which contains computer readable program code. The computer readable storage medium may, for example, be but not limited to an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or component, or any combination of the above.

[0106] In the description of the specification, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are contained in at least one embodiment or example of the present application. In the specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any suitable manner in any one or more embodiments or examples. In addition, the person skilled in the art can combine and combine the different embodiments or examples described in the specification and the features of the different embodiments or examples without contradiction.

[0107] Although the embodiments of the present application have been shown and described above, it is understood that the above-described embodiments are exemplary and are not to be construed as limiting the present application, and those skilled in the art can make changes, modifications, replacements and variations to the above-described embodiments within the scope of the present application.

Claims

1. A method for monitoring an infrared-based meter box switch, the method comprising: The method comprises the following steps: S1, acquiring a detection distance, the detection distance being a distance between a meter box door and an infrared distance meter installed on a meter box cabinet body, the distance being acquired by the infrared distance meter; S2, comparing the detection distance with a preset door closing distance, if the detection distance is greater than the preset door closing distance, determining that a current state of the meter box door is an open door state, and executing S3, if the detection distance is less than the preset door closing distance, determining that the current state of the meter box door is a closed door state, and executing S4, the preset door closing distance being determined based on a distance between the meter box door and the infrared distance meter when the meter box door is closed; S3, acquiring an unlocking state of the meter box door, the unlocking state being a legal unlocking or an illegal unlocking, if the unlocking state is the legal unlocking, judging that the meter box door is in an open door event, recording the open door event, uploading the open door event to a back end, and ending a current process, if the unlocking state is the illegal unlocking, issuing a first alarm information, and ending the current process, the legal unlocking indicating that the meter box door is allowed to be opened or closed, and the illegal unlocking indicating that the meter box door is not allowed to be opened or closed; S4, acquiring the current state of the meter box door in a previous process of the current process, if the current state is the open door state, judging that the meter box door is in a closed door event, recording the closed door event, uploading the closed door event to the back end, and ending the current process, if the current state is the closed door state, ending the current process; The method further comprises: S5, acquiring the current state of the meter box door in the current process, if the current state is the open door state, executing S6, if the current state is the closed door state, ending the process; S6, acquiring a vibration value acquired by a vibration detector on the meter box cabinet body within a third preset time, if the vibration value is continuously 0 within the third preset time, ending the process, if the vibration value changes within the third preset time, executing S7; S7, acquiring the unlocking state of the meter box door, if the unlocking state is the legal unlocking, judging that the meter box cabinet body is in a device moving event, storing the device moving event, and uploading the moving event to the back end, if the unlocking state is the illegal unlocking, issuing a second alarm information.

2. The method of claim 1, wherein, The method further comprises: Every first preset time, controlling a photographing module to acquire a live photo for the meter box, and uploading the acquired live photo to the back end; If the unlocking state is the illegal unlocking, issuing the first alarm information, comprising: If the unlocking state is the illegal unlocking, issuing the first alarm information, and every first preset time, controlling a photographing module to acquire a live photo for the meter box, and uploading the acquired live photo to the back end.

3. The method of claim 1, wherein, If the detection distance is less than the preset door closing distance, determining that the current state of the meter box door is the closed door state, and executing S4, comprising: If the detection distance is less than the preset closed door distance, it is determined that the current state of the meter box door is a closed door state, and a new detection distance is acquired every second preset time, and after a preset number of new detection distances are acquired, if the error between each new detection distance and the detection distance acquired in S1 is less than a second preset error distance, S4 is executed.

4. The method of claim 3, wherein, The preset closed door distance includes an actual closed door distance and a first preset error distance, the actual closed door distance is 20 cm, the first preset error distance is 4 mm, and the second preset error distance is 2 mm.

5. An infrared based meter box switch monitoring system characterized by, The system comprises: A first acquisition module is configured to acquire a detection distance, which is a distance between a meter box door and an infrared distance meter installed on a meter box cabinet, acquired by the infrared distance meter; A judgment module is configured to compare the detection distance with a preset closed door distance, if the detection distance is greater than the preset closed door distance, it is determined that the current state of the meter box door is an open door state, and a function corresponding to an open door event module is executed, if the detection distance is less than the preset closed door distance, it is determined that the current state of the meter box door is a closed door state, and a function corresponding to a closed door event module is executed, and the preset closed door distance is determined based on a distance between the meter box door and the infrared distance meter when the meter box door is closed; The open door event module is configured to acquire an unlocking state of the meter box door, the unlocking state is a legal unlocking or an illegal unlocking, if the unlocking state is the legal unlocking, it is determined that the meter box door is in an open door event, the open door event is recorded, the open door event is uploaded to a back end, and the current process is ended, if the unlocking state is the illegal unlocking, a first alarm information is sent, and the current process is ended, the legal unlocking indicates that the meter box door is allowed to be opened or closed, and the illegal unlocking indicates that the meter box door is not allowed to be opened or closed; The closed door event module is configured to acquire the current state of the meter box door in a previous process of the current process, if the current state is the open door state, it is determined that the meter box door is in a closed door event, the closed door event is recorded, the closed door event is uploaded to the back end, and the current process is ended, if the current state is the closed door state, the current process is ended; The system further comprises: A third acquisition module is configured to acquire a current state of the meter box door in the current process, if the current state is the open door state, a function corresponding to a vibration detection module is executed, if the current state is the closed door state, the process is ended; The vibration detection module is configured to acquire a vibration value acquired by a vibration detector on the meter box cabinet within a third preset time, if the vibration value is continuously 0 within the third preset time, the process is ended, if the vibration value changes within the third preset time, a function corresponding to a moving event module is executed; The moving event module is configured to acquire an unlocking state of the meter box door, if the unlocking state is the legal unlocking, it is determined that the meter box cabinet is in a device moving event, the device moving event is stored, and the moving event is uploaded to the back end, if the unlocking state is the illegal unlocking, a second alarm information is sent.

6. An electronic device comprising a memory, a processor, and a program stored on the memory and running on the processor, characterized in that, The processor implements the steps of the infrared-based meter box switch monitoring method according to any one of claims 1 to 4 when executing the program.

7. A computer-readable storage medium, characterized in that, The computer readable storage medium stores instructions, and when the instructions run on the terminal device, the terminal device executes the steps of the infrared-based meter box switch monitoring method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Intelligent door lock control method and device

    CN108035621A

  • Cabinet and method for detecting closing of cabinet door

    CN111998762A