Smart mailbox alarm methods, devices, equipment and storage media

By combining infrared detection with door angle detection, the intelligent mailbox system solves the problem of high false alarm rate in traditional mailboxes, achieving accurate judgment and timely alarm for abnormal opening, thus improving mailbox security and management efficiency.

CN120656269BActive Publication Date: 2025-10-28X-SENSE INNOVATIONS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511144481.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-15
Publication Date
2025-10-28
Estimated Expiration
2045-08-15

AI Technical Summary

Technical Problem

Traditional email systems cannot accurately detect whether a door has been opened abnormally, leading to lost emails or device damage, and have a high false alarm rate.

Method used

Combining infrared detection with door angle detection, the system acquires object information and door opening angle through a PIR sensor and a horizontal switch, generates alarm prompts, and sends them to the server.

Benefits of technology

It improves the accuracy of email alerts, reduces false alarms and missed alarms, and enhances email security and management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120656269B_ABST
    Figure CN120656269B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, device, and storage medium for alarming a smart mailbox. The method includes: acquiring first infrared data from a PIR sensor within a preset detection area outside the smart mailbox; determining object information within the detection area based on the first infrared data; acquiring the door opening angle of a horizontal switch; determining the corresponding status information of the smart mailbox based on the object information and the door opening angle; generating an alarm notification based on the status information and sending the alarm notification to a server via a wireless module; the server forwards the alarm notification to a target user to alert the user. By combining infrared detection and door angle detection, the status of the mailbox is accurately determined, reducing false alarms and missed alarms, thereby improving the accuracy of the mailbox alarm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of mailbox alarm technology, and in particular to a smart mailbox alarm method, device, equipment and storage medium. Background Technology

[0002] Currently, traditional mailboxes rely solely on their physical structure to store items and cannot detect whether the door has been opened or whether the opening angle is abnormal (such as being forcibly pried open or being partially closed due to wind). When the mailbox door is opened abnormally, users cannot be notified in time, leading to lost mail or equipment damage. Furthermore, if traditional mailboxes only detect the door's status, vibrations from vehicles or impacts from heavy objects may cause the door to shake, which could be mistaken for human intervention, resulting in inaccurate mailbox alarms.

[0003] Therefore, improving the accuracy of email alerts is an urgent issue that needs to be addressed. Summary of the Invention

[0004] This application provides an intelligent mailbox alarm method, device, equipment, and storage medium. By combining infrared detection and door angle detection, the state of the mailbox can be accurately determined, reducing false alarms and missed alarms, thereby improving the accuracy of mailbox alarms.

[0005] In a first aspect, embodiments of this application provide a smart mailbox alarm method, applied to a smart mailbox in a mailbox alarm system. The mailbox alarm system includes the smart mailbox and a server. The smart mailbox includes a housing, a door, and an alarm module. The alarm module is installed on the inside of the door and includes a PIR sensor, a horizontal switch, and a wireless module. The method includes:

[0006] Acquire first infrared data from the PIR sensor within a preset detection area outside the smart mailbox;

[0007] The object information within the detection area is determined based on the first infrared data;

[0008] Obtain the door opening angle of the horizontal switch;

[0009] The status information of the smart mailbox is determined based on the object information and the door opening angle.

[0010] An alarm notification is generated based on the status information and sent to the server via the wireless module; the server is used to forward the alarm notification to the target user to remind the target user.

[0011] Secondly, embodiments of this application provide an intelligent mailbox alarm device for use in an intelligent mailbox alarm system. The mailbox alarm system includes the intelligent mailbox and a server. The intelligent mailbox includes a housing, a door, and an alarm module. The alarm module is installed on the inside of the door and includes a PIR sensor, a level switch, and a wireless module. The device includes a first acquisition module, a first determination module, a second acquisition module, a second determination module, and an alarm notification module, wherein:

[0012] The first acquisition module is used to acquire first infrared data of the PIR sensor within a preset detection area outside the smart mailbox;

[0013] The first determining module is used to determine object information within the detection area based on the first infrared data;

[0014] The second acquisition module is used to acquire the door opening angle of the horizontal switch;

[0015] The second determining module is used to determine the status information corresponding to the smart mailbox based on the object information and the door opening angle;

[0016] The alarm notification module is used to generate alarm notification information based on the status information and send the alarm notification information to the server through the wireless module; the server is used to forward the alarm notification information to the target user to remind the target user.

[0017] Thirdly, embodiments of this application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing steps in any method of the first aspect of this application.

[0018] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program for electronic data interchange, wherein the computer program causes a computer to perform some or all of the steps described in any method of the first aspect of this application.

[0019] Fifthly, embodiments of this application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in any method of the first aspect of this application. The computer program product may be a software installation package.

[0020] By implementing the embodiments of this application, infrared detection and door angle detection can be combined to accurately determine the status of the mailbox, reduce false alarms and missed alarms, and thus improve the accuracy of mailbox alarms. Attached Figure Description

[0021] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a system architecture diagram of an email alarm system provided in an embodiment of this application;

[0023] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0024] Figure 3 This is a schematic diagram of the structure of a smart mailbox provided in an embodiment of this application;

[0025] Figure 4 This is an internal structural block diagram of an alarm module provided in an embodiment of this application;

[0026] Figure 5 This is a flowchart illustrating an intelligent mailbox alarm method provided in an embodiment of this application;

[0027] Figure 6 This is a schematic diagram of an infrared detection process provided in an embodiment of this application;

[0028] Figure 7 This is a schematic diagram of the status recognition process for a smart mailbox provided in an embodiment of this application;

[0029] Figure 8 This is a block diagram of the functional modules of an intelligent mailbox alarm device provided in an embodiment of this application. Detailed Implementation

[0030] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0031] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0032] It should be understood that the term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this document indicates that the preceding and following related objects are in an "or" relationship. In the embodiments of this application, "multiple" refers to two or more.

[0033] In the embodiments of this application, "at least one item" or its similar expression refers to any combination of these items, including any combination of a single item or a plurality of items. "One or more" means one or more, while "multiple" means two or more. For example, "at least one item" of a, b, or c can represent the following seven cases: a, b, c; a and b; a and c; b and c; a, b, and c. Each of a, b, and c can be an element or a set containing one or more elements.

[0034] In this application, the term "connection" refers to various connection methods, such as direct connection or indirect connection, to achieve communication between devices. This application does not impose any limitations on this.

[0035] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0036] The following is an explanation of the relevant terms used in this application:

[0037] A passive infrared sensor (PIR sensor) is an electronic component that determines the presence of a moving object by detecting the infrared radiation emitted by the object. Its core principle is to trigger a sensing action based on changes in infrared radiation. It can detect the presence of a human or object by detecting infrared radiation in the surrounding environment and convert the infrared radiation into an infrared signal.

[0038] A level switch is a sensor or switch device used to detect whether an object has reached a preset horizontal position. Its core function is to detect the trigger state of a "level threshold" and output a switch signal (such as on / off) or a level signal to monitor and control the level.

[0039] Currently, traditional mailboxes rely solely on their physical structure to store items and cannot detect whether the door has been opened or whether the opening angle is abnormal (such as being forcibly pried open or being partially closed due to wind). When the mailbox door is opened abnormally, users are not notified in time, leading to lost mail or equipment damage. Furthermore, if traditional mailboxes only detect the door's status, vibrations from vehicles or impacts from heavy objects may cause the door to shake, which could be misinterpreted as human intervention, resulting in inaccurate mailbox alarms. Therefore, improving the accuracy of mailbox alarms is an urgent issue that needs to be addressed.

[0040] To address the aforementioned issues, this application provides a smart mailbox alarm method, device, equipment, and storage medium. The smart mailbox alarm system includes the smart mailbox and a server. The smart mailbox includes a housing, a door, and an alarm module. The alarm module is installed inside the door and includes a PIR sensor, a horizontal switch, and a wireless module. First, the PIR sensor acquires first infrared data within a preset detection area outside the smart mailbox. Then, based on the first infrared data, object information within the detection area is determined. Next, the door opening angle of the horizontal switch is acquired. Based on the object information and the door opening angle, the corresponding status information of the smart mailbox is determined. Finally, an alarm notification is generated based on the status information and sent to the server via the wireless module. The server forwards the alarm notification to a target user to alert them. By combining infrared detection and door angle detection, the status of the mailbox is accurately determined, reducing false alarms and missed alarms, thereby improving the accuracy of the mailbox alarm.

[0041] For easier understanding, please refer to Figure 1 , Figure 1This is a system architecture diagram of a mailbox alarm system provided in an embodiment of this application. The mailbox alarm system includes a smart mailbox and a server. The smart mailbox can send alarm notification information to the server, and the server forwards the alarm notification information to the target user. The target user can send operation requests to the server through application software, web pages, or other terminals, such as querying the mailbox's historical status (whether there have been any abnormal alarms) or setting alarm thresholds (how long the door needs to be open to be considered abnormal). The server can issue instructions to the smart mailbox, such as remotely configuring mailbox parameters (adjusting sensor sensitivity), upgrading the mailbox's built-in program, and controlling the mailbox door lock (e.g., remotely unlocking after user authorization).

[0042] The smart mailbox comprises a cabinet, a door, and an alarm module. It not only provides the basic storage function of a traditional mailbox but also offers intelligent alarm functionality. This alarm module includes, but is not limited to, PIR sensors, level switches, and wireless modules. The PIR sensor monitors the activity of objects around the smart mailbox to determine if strangers or suspicious individuals are approaching, providing early warnings of potential theft or vandalism risks. The level switch and door sensor monitor the door's opening and closing status and angle. If forced entry, violent damage, or abnormal opening (such as an excessively large opening angle without authorization) occurs, the alarm mechanism is immediately triggered. When an anomaly is detected (such as unauthorized opening, external damage, or prolonged unsealing), the system quickly collects abnormal information (time, location, and behavior type) and transmits the data to the server via the wireless module. The smart mailbox can also be equipped with an audible and visual alarm to deter suspicious individuals. Through multi-sensor data linkage, false alarms caused by non-malicious factors such as wind or pet contact are eliminated, ensuring that genuine security risks are not overlooked.

[0043] The server can receive various data uploaded by the smart mailbox via its wireless module in real time, such as the smart mailbox's physical identification information, battery level indicators, and alarm notifications (the specifics are not limited here). The server can filter information based on the target user's preset preferences or the urgency of the issue, and select the most appropriate notification channel. For example, for general anomalies (such as "smart mailbox shaking abnormally"), push notifications or alerts can be used to avoid excessive disturbance. For urgent anomalies (such as "smart mailbox abnormally activated"), SMS, phone calls, and push notifications can be triggered simultaneously to ensure the user is quickly informed. The server can generate the smart mailbox's specific location information based on its physical identification information, allowing the target user to quickly locate the problem (e.g., "View nearby surveillance footage immediately" or "Contact property management for on-site assistance"). If the smart mailbox is associated with multiple administrators (e.g., the smart mailbox is associated with both the target user and property management), the server can push notifications synchronously according to preset permissions to avoid information omissions (e.g., if the target user does not respond promptly, property management can proactively intervene).

[0044] As can be seen, by using the PIR sensor and level switch of the smart mailbox, combined with object information and the door opening angle, anomalies can be accurately identified. The alarm information is then transmitted to the server via the wireless module. After filtering, the server promptly pushes the alarm information to the user, which not only improves email security and reduces false alarms and missed alarms, but also allows the target user to respond quickly and optimizes management efficiency.

[0045] The following combination Figure 2 The electronic devices in the embodiments of this application will be described. Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 2 As shown, the electronic device includes one or more processors, a memory, a communication interface, and one or more programs. The processor is connected to the memory and the communication interface via an internal communication bus.

[0046] The processor is mainly used for:

[0047] Acquire the first infrared data from the PIR sensor within a preset detection area outside the smart mailbox;

[0048] The object information within the detection area is determined based on the first infrared data;

[0049] Obtain the opening angle of the door with the horizontal switch;

[0050] The status information of the smart mailbox is determined based on the object information and the door opening angle.

[0051] An alarm message is generated based on the status information and sent to the server via a wireless module. The server then forwards the alarm message to the target user to alert them.

[0052] The one or more programs are stored in the aforementioned memory and configured to be executed by the aforementioned processor, and the one or more programs include instructions for performing any step in the above method embodiments.

[0053] The processor can be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, cells, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc. The communication unit can be a communication interface, transceiver, transceiver circuit, etc., and the storage unit can be a memory.

[0054] The memory can be volatile or non-volatile, or a combination of both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), used as an external cache. By way of example, but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), synchronous linked DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0055] It is understood that the electronic device may include more or fewer structural elements than those shown in the block diagram above, such as a power module, physical buttons, a Wi-Fi module, a speaker, a Bluetooth module, sensors, a display module, etc., without limitation. It is understood that the electronic device may incorporate elements such as... Figure 1 The system architecture described above.

[0056] For easier understanding, please refer to Figure 3 , Figure 3 This is a schematic diagram of the structure of a smart mailbox provided in an embodiment of this application. The smart mailbox is a mailbox device with intelligent monitoring and alarm functions, including a box, a door, and an alarm module. It is used to store mail and other items, and at the same time realizes abnormal alarms (such as unauthorized opening or damage) through sensors and communication technology.

[0057] The enclosure is the main frame of the smart mailbox, made of sturdy materials such as metal and engineering plastics. It provides a closed storage space, protecting mail from the natural environment (wind, rain, dust) and external damage. As the basic load-bearing structure of the smart mailbox, the enclosure determines the mailbox's capacity and installation method (such as wall-mounted or floor-standing), while also providing mounting points for the door and alarm module, ensuring the overall structural stability.

[0058] The door is the movable opening and closing component of the mailbox. It connects to the mailbox via mechanical structures such as hinges and pivots, enabling opening (for easy delivery / retrieval) and closing (to seal the storage space). It is the only physical channel for mail storage and retrieval. The door, together with the mailbox, forms a closed space to protect it from external environmental factors (such as wind, rain, and dust). At the same time, its own materials (such as metal and high-strength plastic) and locks enhance the mailbox's resistance to damage (preventing physical attacks such as prying or smashing the door).

[0059] The alarm module, installed inside the door, includes a PIR sensor, a level switch, and a wireless module. The PIR sensor detects infrared heat emitted by objects (such as humans or animals) to sense movement within the smart mailbox's storage area or external detection area (such as a person approaching or retrieving a package). The level switch monitors the door's opening and closing angle and horizontal status in real time (e.g., whether the door is fully closed or within the normal opening angle range). The wireless module acts as a communication bridge between the alarm module and the server, handling data transmission. It sends alarm alerts wirelessly to the server, which then forwards them to the target user.

[0060] It is evident that smart mailboxes combine the functions of item storage with intelligent monitoring and alarm. The mailbox body, door, and alarm module work together to accurately detect abnormalities such as unauthorized opening and damage through sensors, and promptly alert the authorities via communication technology. This not only enhances the security of mail and mailboxes and reduces the risk of damage or theft of items, but also allows target users to remotely monitor the status and conveniently receive alerts. Furthermore, it facilitates centralized management and optimization of security by administrators, achieving multiple improvements in security, usability, and management efficiency.

[0061] For easier understanding, please refer to Figure 4 , Figure 4 This is an internal structural block diagram of an alarm module provided in an embodiment of this application. The alarm module includes, but is not limited to, a PIR sensor, a horizontal switch, a wireless module, a control center, and a target battery, which are not specifically limited here.

[0062] Among them, the PIR sensor is a sensing element based on the principle of infrared thermal radiation detection, which can capture the infrared energy emitted by objects in the environment (such as humans and animals). It can monitor moving objects near the door or inside the smart mailbox (such as someone approaching the smart mailbox, reaching for mail, or limb movements during unauthorized intrusion), converting changes in infrared heat into electrical signals and transmitting them to the control center to determine whether there is any abnormal object activity.

[0063] The horizontal switch can sense the relative position and opening / closing angle of the door and the enclosure through mechanical contacts, Hall effect sensors, or angle sensing chips. When the horizontal switch is in the horizontal position, the door is normally closed; when the horizontal switch is in the vertical position, the door is normally open. It can accurately detect changes in the door's state to determine whether the door is fully closed (e.g., triggering a closing signal when the angle is 0°) or has been abnormally opened (e.g., sudden angle change due to forceful prying). This door angle or state information is converted into an electrical signal and transmitted to the control center.

[0064] The control center can be a microcontroller unit (MCU), which can collect electrical signals transmitted by PIR sensors and horizontal switches in real time and parse them into data such as "object activity" and "door status". Simultaneously, it can perform fusion analysis and logical judgment on this data to determine whether to trigger an alarm. If an anomaly is detected, it sends an "alarm notification information upload" command to the wireless module. It can also manage the operating modes of various components within the module (such as low-power standby and abnormal trigger wake-up).

[0065] The wireless module integrates a wireless communication chip and antenna, enabling data transmission and reception. It can receive alarm commands from the control center and send alarm information to the server. It can also receive remote configuration commands from the server (such as adjusting PIR sensor sensitivity or calibrating level switch parameters) and transmit them to the control center for execution, thus achieving remote management of the module.

[0066] The target battery serves as the power supply unit for the alarm module. It can be a small rechargeable battery (such as a lithium battery) or a button cell battery to provide a stable DC power supply; no specific limitations are specified here. The target battery can continuously power the PIR sensor, level switch, control center, and wireless module, ensuring that the alarm module can still operate independently when disconnected from an external power source (e.g., in a smart mailbox scenario without external power, the target battery maintains monitoring and alarm functions). This target battery can support a low-power mode to extend the alarm module's battery life.

[0067] As can be seen, the PIR sensor and horizontal switch accurately sense the status of moving objects and doors, the control center intelligently analyzes and judges risks, the wireless module realizes remote transmission of abnormal information and command interaction, and the battery ensures continuous power supply. The five elements work together to enable the smart mailbox to accurately identify abnormalities such as unauthorized opening and promptly trigger alarms. This not only improves the security of email storage but also supports remote management, effectively reduces false alarms, and ensures stable operation of the equipment, providing core support for mailbox security protection and intelligent management.

[0068] After understanding the software and hardware architecture of this application, the following will be combined with... Figure 5 This application describes a smart mailbox alarm method according to an embodiment. Figure 5 This is a flowchart illustrating a smart mailbox alarm method provided in an embodiment of this application. The method applies to a smart mailbox within a mailbox alarm system. The mailbox alarm system includes the smart mailbox and a server. The smart mailbox includes a housing, a door, and an alarm module. The alarm module is installed on the inside of the door and includes a PIR sensor, a horizontal switch, and a wireless module. The method specifically includes the following steps:

[0069] Step S501: Obtain first infrared data from the PIR sensor within a preset detection area outside the smart mailbox.

[0070] Specifically, a PIR sensor can be installed inside the door of the smart mailbox. After pre-determining the detection area by adjusting the sensor angle and parameters (e.g., the area 0.5-2 meters in front of the smart mailbox), a key area covering its perimeter is defined. This detection area is used to monitor whether any people or objects are approaching the mailbox. This detection area can be further customized according to actual security needs; no specific limitations are made here. When an object (such as a human or animal that emits infrared heat) enters the preset detection area, the PIR sensor, based on the principle of infrared thermal radiation detection, captures the changes in infrared energy emitted by the object and converts it into first infrared data in the form of electrical or digital signals. This data includes information such as the object's presence, movement trajectory, and heat intensity. Subsequently, the PIR sensor transmits this data to the control center of the alarm module, providing a basis for subsequent judgment of whether there are any abnormally approaching objects around the smart mailbox.

[0071] Step S502: Determine the object information within the detection area based on the first infrared data.

[0072] For easier understanding, please refer to Figure 6 , Figure 6 This is a schematic flowchart of an infrared detection method provided in an embodiment of this application. The specific steps for determining object information within the detection area based on the first infrared data include:

[0073] A1. Filter and amplify the first infrared data to obtain the second infrared data;

[0074] A2. Extract the infrared features from the second infrared data to obtain the reference infrared features;

[0075] A3. Match the reference infrared feature with the preset target infrared feature;

[0076] A4. If the reference infrared feature and the target infrared feature are successfully matched, then the object information is determined to be a target object existing in the detection area; the target object is a person moving in the detection area.

[0077] A5. If the reference infrared feature fails to match the target infrared feature, then the object information is determined to be that the target object does not exist in the detection area.

[0078] In a specific embodiment, firstly, the first infrared data collected by the PIR sensor may be mixed with environmental noise (such as sunlight infrared interference and electronic component noise), and the signal may be relatively weak. Therefore, the first infrared data can be filtered and amplified to filter out environmental noise, retain the infrared signal related to object movement, and enhance the amplitude of the effective signal, thereby obtaining the second infrared data. Next, infrared features representing "personal activity" (such as the frequency and intensity fluctuation of human infrared radiation) are extracted from the second infrared data to obtain reference infrared features. Then, the reference infrared features are matched with preset target infrared features, which can be trained with a large number of samples (collecting infrared data of different people and different actions, extracting and storing typical features) to form target infrared features representing "personal activity".

[0079] If the reference infrared feature and the target infrared feature match successfully, the object information is determined to be a target object present within the detection area. If the reference infrared feature and the target infrared feature fail to match, the object information is determined to be a target object not present within the detection area. Here, the target object refers to a person moving within the detection area, indicating that a person is active within the detection area and is near the smart mailbox.

[0080] As can be seen, by filtering, amplifying, and optimizing infrared signals, extracting corresponding infrared features, and then performing matching and verification, the system can intelligently determine whether there is human activity and that the smart mailbox is approaching. This reduces environmental noise interference, improves data quality, and effectively distinguishes between human and non-human interference, significantly reducing the false alarm rate. This provides core algorithmic support for the smart mailbox to accurately perceive surrounding risks and reliably trigger alarms, making anomaly identification more intelligent and security protection more precise.

[0081] In one possible embodiment, the smart mailbox further includes a temperature sensor installed inside the casing. The reference infrared feature includes reference radiation intensity fluctuation, reference change frequency, and reference duration. The specific steps of matching the reference infrared feature with a preset target infrared feature include:

[0082] B1. Determine the radiation intensity range, frequency range, and reference duration threshold corresponding to the infrared characteristics of the target;

[0083] B2. Obtain the average ambient temperature of the smart mailbox using the temperature sensor;

[0084] B3. Determine the first adjustment factor corresponding to the average ambient temperature; the higher the average ambient temperature, the larger the first adjustment factor.

[0085] B4. Adjust the reference duration threshold according to the first adjustment factor to obtain the target duration threshold;

[0086] B5. If the reference radiation intensity fluctuation is within the radiation intensity range, the reference change frequency is within the change frequency range, and the reference duration is greater than or equal to the target duration threshold, then the reference infrared feature is determined to be a successful match with the target infrared feature; otherwise, the match is determined to be a failure.

[0087] In a specific embodiment, a temperature sensor is installed inside the smart mailbox to capture the average temperature of the environment in real time. Reference infrared features (reference radiation intensity fluctuation, reference change frequency, and reference duration) are key signal features extracted by the PIR sensor from the detection area to determine the presence of personnel. First, the radiation intensity range, change frequency range, and reference duration threshold corresponding to the target infrared features are determined. The radiation intensity range represents the typical intensity range of human infrared radiation (e.g., based on the infrared radiation energy corresponding to a human body temperature of 36-37℃, converted into a measurable electrical signal intensity range); the change frequency range represents the fluctuation frequency range of the infrared signal during human activity (e.g., walking, standing still) (e.g., 0.5-3Hz, corresponding to the natural frequency of human movement); and the reference duration threshold represents the shortest duration benchmark for human activity within the detection area (e.g., a default of 1 second, meaning objects that pass by briefly are not considered targets).

[0088] Next, the average ambient temperature of the smart mailbox is obtained through a temperature sensor, for example, the average temperature over a preset time period, which can be 1 minute, 5 minutes, or half an hour, without specific limitations. It should be noted that ambient temperature significantly affects the infrared radiation background. For example, in high-temperature environments (such as after being exposed to the sun in summer), objects around the mailbox (such as metal or walls) may release strong infrared radiation due to the increased temperature, which can easily be confused with human infrared signals; while in low-temperature environments, the infrared radiation from non-target objects is weaker, resulting in less interference.

[0089] Then, based on the preset mapping relationship between temperature and adjustment factor, the first adjustment factor corresponding to the average ambient temperature is determined. For example, the factor is 1.0 at 25℃, 1.2 at 30℃, and 1.5 at 35℃, etc., without specific limitations. The higher the average ambient temperature, the larger the first adjustment factor. The reference duration threshold is then adjusted according to the first adjustment factor to obtain the target duration threshold. It should be noted that in high-temperature environments, direct sunlight, strong ground or wall heat radiation may cause the PIR sensor to capture continuous infrared signal fluctuations (similar to the low-frequency characteristics of human activity). If the default threshold (e.g., 1 second) is used, environmental interference may be misjudged as human activity. Furthermore, while the infrared signal from environmental interference fluctuates, its stability is poor (it may show significant attenuation or interruption within 2 seconds), whereas when a person operates in front of the mailbox, the infrared signal will remain stable for more than 2 seconds. Extending the threshold can filter out environmental interference.

[0090] Finally, multi-dimensional feature matching is performed on the reference infrared features. If the reference radiation intensity fluctuation is within the radiation intensity range, the reference change frequency is within the change frequency range, and the reference duration is greater than or equal to the target duration threshold, then the reference infrared features are determined to be a successful match with the target infrared features. Otherwise, the match is determined to be a failure.

[0091] It is evident that by using multi-dimensional feature matching and verification, combined with a time threshold dynamically adjusted based on the average ambient temperature, the limitations of single-feature judgment are avoided, and the interference characteristics under different temperatures are adapted to, ultimately achieving accurate identification of the target object.

[0092] Step S503: Obtain the door opening angle of the horizontal switch.

[0093] Specifically, the horizontal switch can be installed at the connection between the door and the housing. Its internal angle sensing element (such as a Hall sensor or angle encoder) can detect the rotation angle of the door relative to the housing in real time. When the door is opened, the horizontal switch rotates with the door, and the sensing element converts the mechanical angle change into an electrical signal (such as a voltage change or a pulse signal). This electrical signal is processed by the control center of the alarm module (such as AD conversion and signal calibration) and converted into a specific angle value (such as 0° representing fully closed and 90° representing fully open), thus obtaining the door opening angle.

[0094] Step S504: Determine the status information corresponding to the smart mailbox based on the object information and the door opening angle.

[0095] The smart mailbox also includes a wind sensor installed on the outside of the mailbox. The steps for determining the status information of the smart mailbox based on the object information and the door opening angle include:

[0096] C1. Determine the first angle threshold corresponding to the smart mailbox;

[0097] C2. Obtain the ambient wind force level of the smart mailbox through the wind sensor;

[0098] C3. Determine the second adjustment factor corresponding to the environmental wind force level; the higher the environmental wind force level, the larger the second adjustment factor.

[0099] C4. Adjust the first angle threshold according to the second adjustment factor to obtain the second angle threshold;

[0100] C5. If the object information indicates that the target object exists within the detection area, and the door opening angle is greater than the second angle threshold, then the status information indicates that the smart mailbox is open normally.

[0101] C6. If the object information indicates that the target object exists within the detection area, and the door opening angle is greater than 0 degrees and less than the second angle threshold, then the status information indicates that the smart mailbox is in a human-caused abnormal state.

[0102] C7. If the object information indicates that the target object does not exist within the detection area, and the door opening angle is greater than the second angle threshold, then the status information is determined to be that the smart mailbox is abnormally opened.

[0103] C8. If the object information indicates that the target object does not exist within the detection area, and the door opening angle is greater than 0 degrees and less than the second angle threshold, then the status information indicates that the smart mailbox is in an abnormal environmental state.

[0104] In a specific embodiment, a wind sensor is installed on the outside of the smart mailbox to detect the wind level of the surrounding environment in real time. First, a first angle threshold is determined for the smart mailbox. This first angle threshold is the minimum angle at which a person can open the door to retrieve / place mail under normal usage conditions (for example, preset to 25°, meaning that an opening angle ≥ 25° is generally within a reasonable range for normal operation). Then, the wind sensor monitors the surrounding wind force in real time to obtain the environmental wind level (e.g., using a 0-6 level rating system, where level 0 is calm and level 6 is strong wind).

[0105] Then, based on the preset mapping relationship between wind force and adjustment factor, a second adjustment factor corresponding to the environmental wind force level is determined. For example, a second adjustment factor of 1.0 corresponds to a wind force of level 0, 1.2 to a wind force of level 3, and 1.5 to a wind force of level 6; no specific limitation is made here. The higher the environmental wind force level, the larger the second adjustment factor. Next, the first angle threshold is adjusted according to the second adjustment factor to obtain the second angle threshold.

[0106] If the object information indicates the presence of a target object within the detection area, and the door opening angle is greater than the second angle threshold, then the status information is determined to be that the smart mailbox is normally open. For example, a mail carrier normally opens the smart mailbox to retrieve / place mail. If the object information indicates the presence of a target object within the detection area, and the door opening angle is greater than 0 degrees but less than the second angle threshold, then the status information is determined to be that the smart mailbox is in an abnormal human-caused state, indicating that there may be a situation where the smart mailbox has been forcibly opened, requiring further identification.

[0107] If the object information indicates that there is no target object within the detection area, and the door opening angle is greater than the second angle threshold, then the status information is determined to be that the smart mailbox is abnormally opened. For example, the smart mailbox may have collapsed, causing the door to open. If the object information indicates that there is no target object within the detection area, and the door opening angle is greater than 0 degrees but less than the second angle threshold, then the status information is determined to be that the smart mailbox is in an abnormal environmental state, indicating that there may be environmental factors causing abnormal vibration of the smart mailbox, which requires further identification.

[0108] As can be seen, adjusting the angle threshold according to the environmental wind force level avoids misjudgment caused by environmental factors; combining the situation of the detection area and the actual opening angle of the door, the current state of the smart mailbox can be accurately distinguished. This not only dynamically adapts to environmental interference such as wind force and reduces misjudgment, but also accurately identifies different types of anomalies, improving security protection capabilities and scene adaptability.

[0109] For easier understanding, please refer to Figure 7 , Figure 7 This is a flowchart illustrating the status recognition process of a smart mailbox according to an embodiment of this application. After determining that the status information indicates the smart mailbox is in a human-caused abnormal state, the method further includes:

[0110] D1. Obtain the first duration of the intelligent mailbox being in the human-induced abnormal state;

[0111] D2. Obtain the historical opening data of the smart mailbox;

[0112] D3. Determine a first duration threshold based on the historical opening data; the first duration threshold is the normal opening operation time of the smart mailbox;

[0113] D4. If the first duration is less than the first duration threshold, then update the status information to indicate that the smart mailbox is normally open.

[0114] D5. If the first duration is greater than or equal to the first duration threshold, then update the status information to indicate that the smart mailbox is abnormally opened.

[0115] In a specific embodiment, firstly, the duration of the smart mailbox being in an abnormal human-caused state is recorded, for example, the time the door remains open at a 10° angle while the person is still within the detection area. Then, historical opening data of the smart mailbox is acquired. This historical opening data consists of operation records of normal package retrieval within a preset historical time period, such as the total time taken from opening the door to closing it after the operation is completed. Statistics show that most normal operations take 5-15 seconds. Next, a first duration threshold is determined based on the historical opening data. This first duration threshold represents the normal opening operation time of the smart mailbox. For example, the first duration threshold can be set to 15 seconds (taking the upper limit of the normal operation time to ensure coverage of most normal scenarios).

[0116] If the first duration is less than the first duration threshold, the status information is updated to "Smart Mailbox Open Normally," indicating that the person may have just opened the door (not yet fully opened above the second angle threshold) and is in the process of retrieving the item, which is a normal operational delay. If the first duration is greater than or equal to the first duration threshold, the status information is updated to "Smart Mailbox Open Abnormally." Since the first duration exceeds the normal operation time and the door remains open at a small angle, it is more likely that the person is deliberately trying to pry open the door (attempting to illegally open it but failing), which is an abnormal situation that requires an alarm.

[0117] It is evident that by combining historical activation data for dynamic verification, normal operation delays can be avoided from being misjudged as abnormalities, while accurately identifying the risk of malicious operation timeouts, thus improving the flexibility and accuracy of the status determination of the smart mailbox.

[0118] The method further includes, after determining that the status information indicates the smart mailbox is in an abnormal environmental state:

[0119] E1. Determine a third angle threshold based on a preset ratio and the second angle threshold; the third angle threshold is less than the second angle threshold.

[0120] E2. If the door opening angle is greater than 0 degrees and less than the third angle threshold, then update the status information to indicate that the smart mailbox is shaking normally.

[0121] E3. If the door opening angle is greater than the third angle threshold, then update the status information to indicate that the smart mailbox is shaking abnormally.

[0122] In a specific embodiment, firstly, a third angle threshold is determined based on a preset ratio (e.g., 50%) and a second angle threshold (e.g., when the second angle threshold is 25°, the third threshold is 12.5°). This third angle threshold is less than the second angle threshold. It should be noted that the preset ratio can be set based on the environmental characteristics, material information, and safety requirements of the smart mailbox. Specifically, the environmental characteristics of the smart mailbox can be obtained and the preset ratio set accordingly. If the installation area of ​​the smart mailbox (e.g., a high-rise terrace or a windy location) is frequently affected by wind, the preset ratio can be set to 30%-40% to ensure that the third angle threshold accurately defines the range of normal swaying. If the wind in the installation area of ​​the smart mailbox is relatively stable, and the proportion of slight swaying is lower, the preset ratio can be further reduced (e.g., 20%). The system can also acquire the material information of the smart mailbox and set a preset ratio based on this information. If the smart mailbox door is made of a light material that is easily affected by a light breeze (such as a plastic door), the angle of slight shaking may be slightly larger, and the preset ratio can be set to 50% to avoid misjudging reasonable shaking as abnormal. For heavy doors made of materials such as metal, the angle of slight shaking is smaller, and the preset ratio can be set to 20%-30%. The system can also acquire the security requirements of the smart mailbox and set a preset ratio based on these requirements. If it is necessary to strictly control the sensitivity of abnormal warnings (such as preventing damage to the door from strong winds), the preset ratio can be reduced (e.g., 20%) to make the third angle threshold smaller, and any angle exceeding a small threshold will be judged as "abnormal shaking". If it is necessary to reduce interference with users (such as avoiding frequent push notifications of slight shaking), the preset ratio can be increased (e.g., 50%) to expand the judgment range of normal shaking; no specific limitation is made here.

[0123] Next, if the door opening angle is greater than 0 degrees and less than the third angle threshold, the status information is updated to normal shaking of the smart mailbox, such as harmless shaking caused by a light breeze or slight vibration. If the door opening angle is greater than the third angle threshold, the status information is updated to abnormal shaking of the smart mailbox, such as significant shaking caused by continuous impact from strong winds or external collisions.

[0124] It is evident that after the smart mailbox determines that the environment is abnormal, the state is further subdivided into normal smart mailbox shaking and abnormal smart mailbox shaking. This not only avoids overreacting to minor and harmless interference, but also accurately identifies risks that may affect the stability of the mailbox, providing a basis for graded early warning and maintenance, and improving the system's ability to respond to environmental interference in a refined manner.

[0125] Step S505: Generate alarm notification information based on the status information, and send the alarm notification information to the server through the wireless module.

[0126] The server is used to forward the alarm notification information to the target user to remind them. When the control center of the smart mailbox determines the status information (such as the smart mailbox being abnormally opened or abnormally shaking), it will generate corresponding alarm notification information based on the status type. For example, if the status information is "smart mailbox abnormally opened" and there is no target object in the detection area, the generated alarm notification information includes "Your smart mailbox has been opened at a large angle without human intervention, which may pose a safety risk." If the status information is "smart mailbox abnormally shaking," the generated alarm notification information includes "Your smart mailbox is shaking significantly due to strong winds or external forces. Please check the stability of the device."

[0127] Next, the control center transmits the alarm notification to the wireless module, which then sends it to the server via the network. Upon receiving the alarm notification, the server forwards it to the target user's terminal device (such as a mobile phone) based on the preset user binding relationship (e.g., target user, property manager), thereby promptly reminding the target user to check their email status and take appropriate measures (e.g., check surveillance footage, conduct on-site inspections, contact property management, etc.).

[0128] In one possible embodiment, the alarm module further includes a target battery; the target battery is used to power the alarm module, and the method further includes:

[0129] F1. Determine the physical identification information of the smart mailbox; the physical identification information includes a unique identifier and the mailbox's geographical location;

[0130] F2. Obtain the current charge level of the target battery;

[0131] F3. If the current battery level is less than a preset battery level threshold, then generate a battery level reminder message based on the current battery level.

[0132] F4. Generate a first data packet based on the physical identification information, the power level indication information, and the alarm indication information;

[0133] F5. Control the wireless module to send the first data packet to the server.

[0134] In a specific embodiment, the alarm module further includes a target battery, which is installed inside the smart mailbox's casing and used to power the various components within the alarm module. First, the physical identification information of the smart mailbox is determined, including a unique identifier and the mailbox's geographical location. Then, the current battery level of the target battery is acquired in real time. When the battery level falls below a preset threshold, a battery level alert is generated based on the current level. Finally, the physical identification information, the battery level alert, and the alarm alert are integrated into a first data packet and sent to the server via a wireless module.

[0135] As can be seen, by monitoring the battery level and safety status of the smart mailbox, alarm and battery level information can be integrated simultaneously, facilitating unified backend management and timely notification to target users. Specifically, target users can receive both mailbox safety status and low battery alerts simultaneously, preventing alarm function failure due to battery depletion, further ensuring the reliability of the smart mailbox and improving the timeliness and convenience of device maintenance.

[0136] In one possible embodiment, if the target battery's current charge level is less than a preset charge threshold, the power consumption of non-core functions can be automatically reduced (e.g., reducing the detection frequency of the PIR sensor and decreasing the real-time heartbeat reporting interval of the wireless module), prioritizing the continuous operation of core alarm functions (e.g., detection of abnormal door opening in horizontal switches and forced entry sensing), thus extending the battery life of critical functions. Secondly, a charge warning message containing "Battery level less than 30%, please replace the battery promptly" is generated. Combined with the smart mailbox's physical identification information (unique identifier, geographical location), this message is prioritized and sent to the server via the wireless module. The server then pushes the message to the administrator or maintenance personnel, ensuring that relevant personnel can accurately locate the low-battery device and arrange for its replacement. Simultaneously, an alarm indicator light can be equipped on the exterior of the smart mailbox to issue a low-battery reminder through flashing red lights, making it easy for nearby personnel to visually notice.

[0137] It is evident that by optimizing power consumption to delay battery depletion and by using an alarm mechanism to ensure that power issues are addressed promptly, the security monitoring function of the smart mailbox is prevented from failing due to power outages, thereby improving the reliability of the smart mailbox.

[0138] The above primarily describes the solutions of the embodiments of this application from the perspective of the method execution process. It is understood that, in order to achieve the above functions, the electronic device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments provided herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0139] This application embodiment can divide the electronic device into functional units according to the above method example. For example, each function can be divided into a separate functional unit, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware or as a software functional unit. It should be noted that the unit division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0140] When dividing each function into modules according to its corresponding function. Figure 8 This is a functional module block diagram of an intelligent mailbox alarm device provided in an embodiment of this application. The intelligent mailbox alarm device 800 is applied to an intelligent mailbox in a mailbox alarm system. The mailbox alarm system includes the intelligent mailbox and a server. The intelligent mailbox includes a housing, a door, and an alarm module. The alarm module is installed on the inside of the door and includes a PIR sensor, a level switch, and a wireless module. The device includes a first acquisition module 810, a first determination module 820, a second acquisition module 830, a second determination module 840, and an alarm notification module 850, wherein:

[0141] The first acquisition module 810 is used to acquire first infrared data of the PIR sensor within a preset detection area outside the smart mailbox;

[0142] The first determining module 820 is used to determine object information within the detection area based on the first infrared data;

[0143] The second acquisition module 830 is used to acquire the door opening angle of the horizontal switch;

[0144] The second determining module 840 is used to determine the status information corresponding to the smart mailbox based on the object information and the door opening angle;

[0145] The alarm notification module 850 is used to generate alarm notification information based on the status information and send the alarm notification information to the server through the wireless module; the server is used to forward the alarm notification information to the target user to remind the target user.

[0146] Optionally, in determining the object information within the detection area based on the first infrared data, the first determining module 820 is specifically used for:

[0147] The first infrared data is filtered and amplified to obtain the second infrared data.

[0148] Infrared features are extracted from the second infrared data to obtain reference infrared features;

[0149] The reference infrared feature is matched with the preset target infrared feature;

[0150] If the reference infrared feature matches the target infrared feature, then the object information is determined to be a target object within the detection area; the target object is a person moving within the detection area.

[0151] If the reference infrared feature fails to match the target infrared feature, then the object information is determined to be that the target object does not exist within the detection area.

[0152] Optionally, the smart mailbox further includes a temperature sensor installed inside the casing. The reference infrared feature includes reference radiation intensity fluctuation, reference change frequency, and reference duration. In matching the reference infrared feature with a preset target infrared feature, the first determining module 820 is further specifically used for:

[0153] Determine the radiation intensity range, variation frequency range, and reference duration threshold corresponding to the target infrared characteristics;

[0154] The average ambient temperature of the smart mailbox is obtained through the temperature sensor.

[0155] Determine a first adjustment factor corresponding to the average ambient temperature; the higher the average ambient temperature, the larger the first adjustment factor.

[0156] The reference duration threshold is adjusted according to the first adjustment factor to obtain the target duration threshold;

[0157] If the reference radiation intensity fluctuation is within the radiation intensity range, the reference change frequency is within the change frequency range, and the reference duration is greater than or equal to the target duration threshold, then the reference infrared feature is determined to be a successful match with the target infrared feature; otherwise, the match is determined to be a failure.

[0158] Optionally, the smart mailbox further includes a wind sensor, which is installed on the outside of the mailbox. In determining the status information of the smart mailbox based on the object information and the door opening angle, the second determining module 840 is specifically used for:

[0159] Determine the first angle threshold corresponding to the smart mailbox;

[0160] The wind speed level of the smart mailbox is obtained through the wind sensor.

[0161] Determine the second adjustment factor corresponding to the environmental wind force level; the higher the environmental wind force level, the larger the second adjustment factor.

[0162] The first angle threshold is adjusted according to the second adjustment factor to obtain the second angle threshold;

[0163] If the object information indicates that the target object exists within the detection area, and the door opening angle is greater than the second angle threshold, then the status information indicates that the smart mailbox is open normally.

[0164] If the object information indicates that the target object exists within the detection area, and the door opening angle is greater than 0 degrees and less than the second angle threshold, then the status information indicates that the smart mailbox is in a human-caused abnormal state.

[0165] If the object information indicates that the target object does not exist within the detection area, and the door opening angle is greater than the second angle threshold, then the status information indicates that the smart mailbox is abnormally opened.

[0166] If the object information indicates that the target object does not exist within the detection area, and the door opening angle is greater than 0 degrees and less than the second angle threshold, then the status information indicates that the smart mailbox is in an abnormal environmental state.

[0167] Optionally, after determining that the status information indicates the smart mailbox is in a human-caused abnormal state, the second determining module 840 is further specifically used for:

[0168] Obtain the first duration during which the smart mailbox is in the human-induced abnormal state;

[0169] Obtain the historical opening data of the smart mailbox;

[0170] A first duration threshold is determined based on the historical opening data; the first duration threshold is the normal opening operation time of the smart mailbox;

[0171] If the first duration is less than the first duration threshold, then update the status information to indicate that the smart mailbox is open normally;

[0172] If the first duration is greater than or equal to the first duration threshold, then the status information is updated to indicate that the smart mailbox is abnormally opened.

[0173] Optionally, after determining that the status information indicates the smart mailbox is in an abnormal environmental state, the second determining module 840 is further specifically used for:

[0174] A third angle threshold is determined based on a preset ratio and the second angle threshold; the third angle threshold is less than the second angle threshold.

[0175] If the door opening angle is greater than 0 degrees and less than the third angle threshold, then the status information is updated to indicate that the smart mailbox is shaking normally.

[0176] If the door opening angle is greater than the third angle threshold, the status information is updated to indicate that the smart mailbox is shaking abnormally.

[0177] Optionally, the alarm module further includes a target battery; the target battery is used to power the alarm module, and the alarm notification module 850 is specifically used for:

[0178] Determine the physical identification information of the smart mailbox; the physical identification information includes a unique identifier and the mailbox's geographical location;

[0179] Obtain the current charge level of the target battery;

[0180] If the current battery level is less than a preset battery threshold, a battery level reminder message is generated based on the current battery level.

[0181] A first data packet is generated based on the physical identification information, the power level indication information, and the alarm indication information;

[0182] The wireless module is controlled to send the first data packet to the server.

[0183] It is evident that by combining infrared detection with door angle detection, the status of the mailbox can be accurately determined, reducing false alarms and missed alarms, thereby improving the accuracy of mailbox alarms.

[0184] It should be noted that the specific implementation of each operation can be described in the corresponding description of the method embodiments shown above. The smart mailbox alarm device 800 can be used to execute the above method embodiments of this application, and will not be described again here.

[0185] This application also provides a computer-readable storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments, wherein the computer includes an electronic device.

[0186] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer may include an electronic device.

[0187] It should be noted that, for the sake of simplicity, the above embodiments are all described as a series of actions. Those skilled in the art should understand that this application is not limited to the described order of actions, as some steps in the embodiments of this application can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions, steps, modules, or units involved are not necessarily essential to the embodiments of this application.

[0188] In the above embodiments, the descriptions of each embodiment in this application have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0189] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0190] The steps of the methods or algorithms described in the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in RAM, flash memory, ROM, EPROM, electrically erasable programmable read-only memory (EEPROM), registers, hard disk, portable hard disk, read-only optical disk (CD-ROM), or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside in an ASIC. Furthermore, the ASIC can reside in a terminal device or management device. Alternatively, the processor and storage medium can exist as discrete components in the terminal device or management device.

[0191] Those skilled in the art will recognize that, in one or more of the examples above, the functions described in the embodiments of this application can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).

[0192] The modules / units included in the various devices and products described in the above embodiments can be software modules / units, hardware modules / units, or a combination of both. For example, for devices and products applied to or integrated into a chip, all modules / units can be implemented using hardware methods such as circuits, or at least some modules / units can be implemented using software programs that run on a processor integrated within the chip, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits. For devices and products applied to or integrated into a chip module, all modules / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some modules / units can be implemented using hardware methods such as circuits. The implementation is achieved through a software program that runs on the processor integrated within the chip module. The remaining modules / units (if any) can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into terminal equipment, each of their modules / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components within the terminal equipment. Alternatively, at least some modules / units can be implemented through a software program that runs on the processor integrated within the terminal equipment, while the remaining modules / units (if any) can be implemented using hardware methods such as circuits.

[0193] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the embodiments of this application. It should be understood that the above descriptions are merely specific embodiments of the embodiments of this application and are not intended to limit the protection scope of the embodiments of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solutions of the embodiments of this application should be included within the protection scope of the embodiments of this application.

Claims

1. A smart mailbox alarm method, characterized in that, A smart mailbox is used in a mailbox alarm system. The mailbox alarm system includes the smart mailbox and a server. The smart mailbox includes a housing, a door, and an alarm module. The alarm module is installed on the inside of the door. The alarm module includes a PIR sensor, a level switch, and a wireless module. The method includes: Acquire first infrared data from the PIR sensor within a preset detection area outside the smart mailbox; The object information within the detection area is determined based on the first infrared data; Obtain the door opening angle of the horizontal switch; The status information of the smart mailbox is determined based on the object information and the door opening angle. An alarm notification is generated based on the status information and sent to the server via the wireless module; the server is used to forward the alarm notification to the target user to remind the target user. The step of determining the object information within the detection area based on the first infrared data includes: The first infrared data is filtered and amplified to obtain the second infrared data. Infrared features are extracted from the second infrared data to obtain reference infrared features; The reference infrared feature is matched with the preset target infrared feature; If the reference infrared feature matches the target infrared feature, then the object information is determined to be a target object within the detection area; the target object is a person moving within the detection area. If the reference infrared feature fails to match the target infrared feature, then the object information is determined to be that the target object does not exist in the detection area; The smart mailbox also includes a temperature sensor installed inside the casing. The reference infrared feature includes reference radiation intensity fluctuation, reference change frequency, and reference duration. Matching the reference infrared feature with a preset target infrared feature includes: Determine the radiation intensity range, variation frequency range, and reference duration threshold corresponding to the target infrared characteristics; The average ambient temperature of the smart mailbox is obtained through the temperature sensor. Determine a first adjustment factor corresponding to the average ambient temperature; the higher the average ambient temperature, the larger the first adjustment factor. The reference duration threshold is adjusted according to the first adjustment factor to obtain the target duration threshold; If the reference radiation intensity fluctuation is within the radiation intensity range, the reference change frequency is within the change frequency range, and the reference duration is greater than or equal to the target duration threshold, then the reference infrared feature is determined to be a successful match with the target infrared feature; otherwise, the match is determined to be a failure.

2. The method as described in claim 1, characterized in that, The smart mailbox also includes a wind sensor, which is installed on the outside of the mailbox. Determining the status information of the smart mailbox based on the object information and the door opening angle includes: Determine the first angle threshold corresponding to the smart mailbox; The wind speed level of the smart mailbox is obtained through the wind sensor. Determine the second adjustment factor corresponding to the environmental wind force level; the higher the environmental wind force level, the larger the second adjustment factor. The first angle threshold is adjusted according to the second adjustment factor to obtain the second angle threshold; If the object information indicates that the target object exists within the detection area, and the door opening angle is greater than the second angle threshold, then the status information indicates that the smart mailbox is open normally. If the object information indicates that the target object exists within the detection area, and the door opening angle is greater than 0 degrees and less than the second angle threshold, then the status information indicates that the smart mailbox is in a human-caused abnormal state. If the object information indicates that the target object does not exist within the detection area, and the door opening angle is greater than the second angle threshold, then the status information indicates that the smart mailbox is abnormally opened. If the object information indicates that the target object does not exist within the detection area, and the door opening angle is greater than 0 degrees and less than the second angle threshold, then the status information indicates that the smart mailbox is in an abnormal environmental state.

3. The method as described in claim 2, characterized in that, After determining that the status information indicates the smart mailbox is in a human-caused abnormal state, the method further includes: Obtain the first duration during which the smart mailbox is in the human-induced abnormal state; Obtain the historical opening data of the smart mailbox; A first duration threshold is determined based on the historical opening data; the first duration threshold is the normal opening operation time of the smart mailbox; If the first duration is less than the first duration threshold, then update the status information to indicate that the smart mailbox is open normally; If the first duration is greater than or equal to the first duration threshold, then the status information is updated to indicate that the smart mailbox is abnormally opened.

4. The method as described in claim 2, characterized in that, After determining that the status information indicates the smart mailbox is in an abnormal environmental state, the method further includes: A third angle threshold is determined based on a preset ratio and the second angle threshold; the third angle threshold is less than the second angle threshold. If the door opening angle is greater than 0 degrees and less than the third angle threshold, then the status information is updated to indicate that the smart mailbox is shaking normally. If the door opening angle is greater than the third angle threshold, the status information is updated to indicate that the smart mailbox is shaking abnormally.

5. The method according to any one of claims 1-4, characterized in that, The alarm module further includes a target battery; the target battery is used to power the alarm module, and the method further includes: Determine the physical identification information of the smart mailbox; the physical identification information includes a unique identifier and the mailbox's geographical location; Obtain the current charge level of the target battery; If the current battery level is less than a preset battery threshold, a battery level reminder message is generated based on the current battery level. A first data packet is generated based on the physical identification information, the power level indication information, and the alarm indication information; The wireless module is controlled to send the first data packet to the server.

6. A smart mailbox alarm device, used to perform the method as described in any one of claims 1-5, characterized in that, A smart mailbox is used in a mailbox alarm system. The mailbox alarm system includes the smart mailbox and a server. The smart mailbox includes a housing, a door, and an alarm module. The alarm module is installed on the inside of the door and includes a PIR sensor, a level switch, and a wireless module. The device includes a first acquisition module, a first determination module, a second acquisition module, a second determination module, and an alarm notification module, wherein: The first acquisition module is used to acquire first infrared data of the PIR sensor within a preset detection area outside the smart mailbox; The first determining module is used to determine object information within the detection area based on the first infrared data; The second acquisition module is used to acquire the door opening angle of the horizontal switch; The second determining module is used to determine the status information corresponding to the smart mailbox based on the object information and the door opening angle; The alarm notification module is used to generate alarm notification information based on the status information and send the alarm notification information to the server through the wireless module; the server is used to forward the alarm notification information to the target user to remind the target user.

7. An electronic device, characterized in that, include: Processor, memory, communication interface, and one or more programs; The one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps of the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Intelligent alarm method and alarm system based on human body infrared characteristic human body identification

    CN105632058A

  • Intelligent alarm system and alarm method thereof

    CN106157504A