Alarm methods, devices, electronic equipment and storage media for safes

By sending wireless signals to the safe and analyzing the signal strength and latency, the problem of low monitoring efficiency of the safe is solved, achieving efficient monitoring and timely alarm without equipment costs.

CN116927619BActive Publication Date: 2026-03-13INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-20
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Current technology for monitoring safe deposit boxes in bank vaults is inefficient, failing to provide real-time information on the location and status of the safe deposit boxes, thus hindering timely alarms.

Method used

The target device sends N wireless signals of the same frequency to the terminal device on the safe. The signal strength and delay values ​​are received and analyzed to determine the relative position of the terminal device and the target device, and an alarm message is generated to indicate that the safe is not in the target location.

Benefits of technology

No security cameras or sensors are required, saving equipment costs and improving the monitoring efficiency and alarm timeliness of the safe.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116927619B_ABST
    Figure CN116927619B_ABST
Patent Text Reader

Abstract

This application discloses an alarm method, device, electronic device, and storage medium for safes, relating to the fields of financial technology and other related technical fields. The method includes: sending N wireless signals from a target device to a terminal device, wherein the terminal device is mounted on the safe; receiving N signal strength values ​​and N signal delay values ​​returned by the terminal device; determining the target relative position between the terminal device and the target device based on the N signal strength values ​​and N signal delay values; and generating an alarm message if the target relative position differs from a preset relative position, wherein the preset relative position is the relative position between the terminal device and the target device when the safe is in the target position, and the alarm message is used to indicate that the safe is not in the target position. This application solves the technical problem of low monitoring efficiency of safes in existing technologies due to the inability to constantly monitor the location of the safe.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of financial technology and other related technologies, and more specifically, to an alarm method, device, electronic device and storage medium for safes. Background Technology

[0002] In the current technology, bank vault safes mainly rely on manual management. Generally, security cameras, access control systems and sensors are installed in the vault to monitor and manage the safes.

[0003] However, manual management methods typically cannot provide high-precision location information and can only monitor through devices such as cameras. Furthermore, relying on manual methods cannot provide real-time monitoring of the safe's location. Managers need to determine the safe's location by reviewing surveillance footage, making it impossible to promptly understand the safe's real-time location and status. This results in low monitoring efficiency for the safe and an inability to promptly alert authorities if the safe is not in the preset location.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This application provides an alarm method, device, electronic device, and storage medium for safes, to at least solve the technical problem of low monitoring efficiency of safes in the prior art due to the inability to monitor the location of safes at all times.

[0006] According to one aspect of this application, an alarm method for a safe is provided, comprising: sending N wireless signals from a target device to a terminal device, wherein the N wireless signals are generated by the target device and are signals of the same frequency, the terminal device is installed on the safe, and N is a positive integer; receiving N signal strength values ​​and N signal delay values ​​returned by the terminal device, wherein each signal strength value is the signal strength value of a wireless signal detected by the terminal device, and each signal delay value is the signal delay value of a wireless signal detected by the terminal device; determining the target relative position between the terminal device and the target device based on the N signal strength values ​​and the N signal delay values; generating an alarm message if the target relative position is different from a preset relative position, wherein the preset relative position is the relative position between the terminal device and the target device when the safe is in the target position, and the alarm message is used to indicate that the safe is not in the target position.

[0007] Optionally, the alarm method for the safe further includes: calculating the average of N signal strength values ​​to obtain the average signal strength value corresponding to the terminal device receiving N wireless signals; inputting the average signal strength value into a pre-trained first model to obtain a first relative position output by the first model, wherein the first relative position is the relative position between the terminal device and the target device predicted by the first model based on the average signal strength value; calculating the average of N signal delay values ​​to obtain the average signal delay value corresponding to the terminal device receiving N wireless signals; inputting the average signal delay value into a pre-trained second model to obtain a second relative position output by the second model, wherein the second relative position is the relative position between the terminal device and the target device predicted by the second model based on the average signal delay value; and determining the target relative position between the terminal device and the target device based on the first relative position and the second relative position.

[0008] Optionally, the alarm method for the safe may further include: if the first relative position and the second relative position are the same, determining the first relative position or the second relative position as the target relative position.

[0009] Optionally, the alarm method for the safe further includes: when the first relative position and the second relative position are not the same, calculating the variance of N signal strength values ​​and the variance of N signal delay values; when the variance of the N signal strength values ​​is greater than the variance of the N signal delay values, determining the second relative position as the target relative position; when the variance of the N signal strength values ​​is less than the variance of the N signal delay values, determining the first relative position as the target relative position; when the variance of the N signal strength values ​​is equal to the variance of the N signal delay values, randomly determining either the first relative position or the second relative position as the target relative position.

[0010] Optionally, the alarm method for the safe further includes: when the first relative position and the second relative position are different, obtaining the number of signal transmission paths between the terminal device and the target device, wherein the signal transmission path is the path through which the wireless signal sent by the target device is transmitted to the terminal device; when the number of signal transmission paths is greater than or equal to a preset number, determining the second relative position as the target relative position; when the number of signal transmission paths is less than the preset number, determining the first relative position as the target relative position.

[0011] Optionally, the alarm method for the safe further includes: when the first relative position and the second relative position are different, acquiring the signal strength attenuation value of each wireless signal transmitted from the terminal device to the target device, obtaining N signal strength attenuation values; calculating the average value of the N signal strength attenuation values, obtaining an average signal strength attenuation value; when the average signal strength attenuation value is greater than or equal to a preset threshold, determining the first relative position as the target relative position; when the average signal strength attenuation value is less than the preset threshold, determining the second relative position as the target relative position.

[0012] Optionally, the alarm method for the safe further includes: determining M test locations corresponding to the terminal device, wherein the M test locations include at least a first location, and the relative position between the terminal device and the target device when the terminal device is in the first location is the target relative position; obtaining M test signal strength values ​​and M test signal delay values ​​detected by the terminal device based on the M test locations, wherein each test signal strength value is the signal strength value of the wireless signal transmitted by the target device detected by the terminal device when it is located in a test location, and each test signal delay value is the signal delay value of the wireless signal transmitted by the target device detected by the terminal device when it is located in a test location; training a first model based on the M test signal strength values; and training a second model based on the M test signal delay values.

[0013] Optionally, the alarm method for the safe further includes: taking each test signal strength value as first sample information and setting a first label for the first sample information, wherein the first label represents the relative position between the test position corresponding to the first sample information and the target device; inputting the first sample information and the first label corresponding to the first sample information into a preset first deep learning network, and obtaining a first model after multiple iterations of training.

[0014] Optionally, the alarm method for the safe further includes: using each test signal delay value as second sample information and setting a second label for the second sample information, wherein the second label represents the relative position between the test position corresponding to the second sample information and the target device; inputting the second sample information and the second label corresponding to the second sample information into a preset second deep learning network, and obtaining a second model after multiple iterations of training.

[0015] Optionally, the alarm method for the safe also includes: after determining the target relative position between the terminal device and the target device based on N signal strength values ​​and N signal delay values, if the target relative position is the same as the preset relative position, determining that the safe is at the target position.

[0016] According to another aspect of this application, an alarm device for a safe is also provided, comprising: a transmitting unit for transmitting N wireless signals from a target device to a terminal device, wherein the N wireless signals are generated by the target device and are signals of the same frequency, the terminal device is mounted on the safe, and N is a positive integer; a receiving unit for receiving N signal strength values ​​and N signal delay values ​​returned by the terminal device, wherein each signal strength value is the signal strength value of a wireless signal detected by the terminal device, and each signal delay value is the signal delay value of a wireless signal detected by the terminal device; a determining unit for determining the target relative position between the terminal device and the target device based on the N signal strength values ​​and the N signal delay values; and an alarm unit for generating alarm information when the target relative position is different from a preset relative position, wherein the preset relative position is the relative position between the terminal device and the target device when the safe is in the target position, and the alarm information is used to indicate that the safe is not in the target position.

[0017] According to another aspect of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform any of the above-described alarm methods for a safe.

[0018] According to another aspect of this application, an electronic device is also provided, wherein the electronic device includes one or more processors and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the alarm method for a safe as described above.

[0019] In this application, a method is adopted to determine the target relative position between a terminal device and a target device based on N signal strength values ​​and N signal delay values. First, the target device sends N wireless signals to the terminal device. These N wireless signals are generated by the target device and are of the same frequency. The terminal device is mounted on a safe, and N is a positive integer. Then, the terminal device receives the N signal strength values ​​and N signal delay values ​​returned by the terminal device, and the target relative position between the terminal device and the target device is determined based on these values. Finally, if the target relative position differs from the preset relative position, an alarm message is generated. Each signal strength value and each signal delay value represent the signal strength and delay of a wireless signal detected by the terminal device. The preset relative position is the relative position between the terminal device and the target device when the safe is at the target position. The alarm message indicates that the safe is not at the target position.

[0020] As described above, this application utilizes wireless signal positioning. The target device sends a wireless signal to a terminal device installed on the safe. Based on the wireless signal strength and latency detected by the terminal device, the relative position between the terminal device and the target is determined, thereby confirming whether the safe containing the terminal device is located at the preset target position. This solution eliminates the need for security cameras, access control systems, and sensors, and eliminates the need for constant monitoring of the safe by management personnel. This not only saves on equipment costs but also improves the monitoring efficiency of the safe and enhances the timeliness of alarms for safes not in the preset position. Attached Figure Description

[0021] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0022] Figure 1 This is a flowchart of an optional alarm method for a safe according to an embodiment of this application;

[0023] Figure 2 This is a flowchart of an optional model training process according to an embodiment of this application;

[0024] Figure 3 This is a schematic diagram of an optional alarm device for a safe provided according to an embodiment of this application;

[0025] Figure 4 This is a schematic diagram of an electronic device provided according to an embodiment of this application. Detailed Implementation

[0026] 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 should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. 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 comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0028] It should also be noted that all relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties. For example, if there is an interface between this system and the relevant user or organization, before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information after receiving consent information from the aforementioned user or organization.

[0029] The present application will be further described below with reference to various embodiments.

[0030] Example 1

[0031] According to an embodiment of this application, an embodiment of an alarm method for a safe is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0032] Figure 1 This is a flowchart of an optional alarm method for a safe according to an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps:

[0033] Step S101: Send N wireless signals from the target device to the terminal device.

[0034] In step S101, N wireless signals are generated by the target device, and the N wireless signals are signals of the same frequency. The terminal device is set on the safe, and N is a positive integer.

[0035] Optionally, the target device can be a base station device or other device capable of generating and transmitting wireless signals, while the terminal device can be a wireless signal receiver or other device. Furthermore, the wireless signal can be any signal that can be transmitted wirelessly, such as WiFi, Bluetooth, ultrasonic, or RFID signals.

[0036] Alternatively, the size of the terminal device should be as small as possible. For example, the terminal device can be a chip set in a safe, so that wireless signal transmission and reception can be achieved without taking up too much space.

[0037] It should be noted that the N wireless signals are not transmitted simultaneously, but are transmitted once at preset intervals, for a total of N transmissions, so that the target device sends N wireless signals to the terminal device.

[0038] Step S102: Receive N signal strength values ​​and N signal delay values ​​returned by the terminal device.

[0039] In step S102, each signal strength value is the signal strength value of a wireless signal detected by the terminal device, and each signal delay value is the signal delay value of a wireless signal detected by the terminal device.

[0040] Optionally, after receiving a wireless signal, the terminal device will detect the signal strength and signal delay value. The signal strength value can be directly determined by the terminal device. The process for determining the signal delay value is as follows:

[0041] First, when the target device transmits a wireless signal, it sends the transmission time of the wireless signal as time information to the terminal device along with the wireless signal. Then, the terminal device receives the time information at the same time as receiving the wireless signal. Subsequently, the terminal device can determine the signal delay value of the wireless signal based on the reception time and the transmission time of the wireless signal.

[0042] Since the target device sent a total of N wireless signals to the terminal device, each wireless signal corresponding to a signal strength value and a signal delay value, the terminal device detected a total of N signal strength values ​​and N signal delay values. Finally, the terminal device returned N signal strength values ​​and N signal delay values ​​to the target device.

[0043] Step S103: Determine the target relative position between the terminal device and the target device based on N signal strength values ​​and N signal delay values.

[0044] Optionally, the target device can determine the target relative position between the terminal device and the target device based on the N signal strength values ​​and N signal delay values ​​returned by the terminal device. Specifically, the target device can determine a relative position between the terminal device and the target device (e.g., a first relative position) based on the N signal strength values ​​returned by the terminal device, and determine a relative position between the terminal device and the target device (e.g., a second relative position) based on the N signal delay values ​​returned by the terminal device. Then, the target device determines one of the relative positions from the first and second relative positions as the target relative position based on the specific scenario in which the target terminal and the terminal device are located.

[0045] Step S104: If the relative position of the target is different from the preset relative position, generate an alarm message.

[0046] In step S104, the preset relative position is the relative position between the terminal device and the target device when the safe is in the target position, and the alarm information is used to indicate that the safe is not in the target position.

[0047] For example, suppose the safe is at the target location, and the terminal device on the safe should be 10 meters directly in front of the target device (corresponding to the preset relative position mentioned above). However, if the target device determines, based on N signal strength values ​​and N signal delay values, that the terminal device is 5 meters directly to the left of the target device (corresponding to the target relative position mentioned above), then the safe is not actually at the target location. To promptly alert relevant personnel, the target device will generate an alarm message. This alarm message can be in various forms, such as voice, SMS, email, or light, to provide a timely reminder.

[0048] In addition, if the target relative position is the same as the preset relative position, the target device will determine that the safe is in the target position.

[0049] Based on the above steps S101 to S104, this application uses a method to determine the target relative position between the terminal device and the target device based on N signal strength values ​​and N signal delay values. First, the target device sends N wireless signals to the terminal device. These N wireless signals are generated by the target device and are of the same frequency. The terminal device is located on the safe, and N is a positive integer. Then, the terminal device receives the N signal strength values ​​and N signal delay values ​​returned by the terminal device, and determines the target relative position between the terminal device and the target device based on these values. Finally, if the target relative position differs from the preset relative position, an alarm message is generated. Each signal strength value is the signal strength value of a wireless signal detected by the terminal device, and each signal delay value is the signal delay value of a wireless signal detected by the terminal device. The preset relative position is the relative position between the terminal device and the target device when the safe is at the target position. The alarm message indicates that the safe is not at the target position.

[0050] As described above, this application utilizes wireless signal positioning. The target device sends a wireless signal to a terminal device installed on the safe. Based on the wireless signal strength and latency detected by the terminal device, the relative position between the terminal device and the target is determined, thereby confirming whether the safe containing the terminal device is located at the preset target position. This solution eliminates the need for security cameras, access control systems, and sensors, and eliminates the need for constant monitoring of the safe by management personnel. This not only saves on equipment costs but also improves the monitoring efficiency of the safe and enhances the timeliness of alarms for safes not in the preset position.

[0051] In one optional embodiment, in order to determine the target relative position between the terminal device and the target device based on N signal strength values ​​and N signal delay values, the target device calculates the average value of the N signal strength values ​​to obtain the average signal strength value corresponding to the terminal device receiving N wireless signals, and then inputs the average signal strength value into a pre-trained first model to obtain the first relative position output by the first model, wherein the first relative position is the relative position between the terminal device and the target device predicted by the first model based on the average signal strength value.

[0052] On the other hand, the target device also calculates the average of N signal delay values ​​to obtain the average signal delay value corresponding to the terminal device when receiving N wireless signals, and inputs the average signal delay value into the pre-trained second model to obtain the second relative position output by the second model. The second relative position is the relative position between the terminal device and the target device predicted by the second model based on the average signal delay value.

[0053] Finally, the target device determines the target relative position between the terminal device and the target device based on the first relative position and the second relative position.

[0054] Optionally, determining the relative position of the terminal device and the target device based solely on a single signal strength value or a single signal delay value may be highly unreliable, thus affecting the accuracy of the relative position determination. To avoid this problem, this application calculates the average signal strength value of N signal strength values ​​and determines the relative position of the terminal device and the target device based on this average signal strength value. Similarly, this application also calculates the average signal delay value of N signal delay values ​​and determines the relative position of the terminal device and the target device based on this average signal delay value.

[0055] In an optional embodiment, the first and second models described above are trained through the following steps, such as... Figure 2 As shown, it includes:

[0056] Step S201: Determine M test positions corresponding to the terminal device, wherein the M test positions include at least the first position, and the relative position between the terminal device and the target device when the terminal device is in the first position is the target relative position.

[0057] Optionally, the first position is the position of the terminal device when the safe is in the target position. In addition to the first position, the M test positions also include other positions.

[0058] Step S202: Obtain M test signal strength values ​​and M test signal delay values ​​detected by the terminal device based on M test locations. Each test signal strength value is the signal strength value of the wireless signal sent by the target device detected by the terminal device when it is located at a test location, and each test signal delay value is the signal delay value of the wireless signal sent by the target device detected by the terminal device when it is located at a test location.

[0059] Optionally, when the terminal device is in the first position, the test signal strength value and test signal delay value received by the terminal device are positive sample data. When the terminal device is not in the first position, the test signal strength value and test signal delay value received by the terminal device are negative sample data.

[0060] Step S203: Train the first model based on the M test signal strength values.

[0061] Step S204: Train the second model based on the delay values ​​of M test signals.

[0062] Optionally, in step S203 above, the target device uses each test signal strength value as first sample information and sets a first label for the first sample information, wherein the first label represents the relative position between the test position corresponding to the first sample information and the target device. Then, the target device inputs the first sample information and the first label corresponding to the first sample information into a preset first deep learning network, and obtains a first model after multiple iterations of training.

[0063] Optionally, in step S204 above, the target device uses each test signal delay value as second sample information and sets a second label for the second sample information, wherein the second label represents the relative position between the test position corresponding to the second sample information and the target device. Then, the target device inputs the second sample information and the second label corresponding to the second sample information into a preset second deep learning network, and obtains a second model after multiple iterations of training.

[0064] In one optional embodiment, in order to determine the target relative position between the terminal device and the target device based on the first relative position and the second relative position, the following describes how to determine the target relative position from the first relative position and the second relative position in four scenarios.

[0065] In the first scenario, when the first relative position and the second relative position are the same, the target device determines the first relative position or the second relative position as the target relative position.

[0066] Optionally, if the first relative position determined by the target device based on N signal strength values ​​and the second relative position determined based on N signal delay values ​​are the same, then the target device can use either the first relative position or the second relative position as the target relative position.

[0067] In the second scenario, when the first relative position and the second relative position are not the same, the target device calculates the variance of N signal strength values ​​and the variance of N signal delay values. Then, if the variance of the N signal strength values ​​is greater than the variance of the N signal delay values, the target device determines the second relative position as the target relative position; if the variance of the N signal strength values ​​is less than the variance of the N signal delay values, the target device determines the first relative position as the target relative position; if the variance of the N signal strength values ​​is equal to the variance of the N signal delay values, the target device randomly determines either the first relative position or the second relative position as the target relative position.

[0068] Optionally, this application provides a strategy for determining which of the first and second relative positions has higher reliability based on the volatility of N signal strength values ​​and the volatility of N signal delay values. Since variance characterizes volatility, and smaller volatility indicates less random data, a prediction result with smaller variance has higher reliability. Based on this, if the variance of the N signal strength values ​​is greater than the variance of the N signal delay values, the target device determines the second relative position as the target relative position; if the variance of the N signal strength values ​​is less than the variance of the N signal delay values, the target device determines the first relative position as the target relative position.

[0069] In the third scenario, when the first relative position and the second relative position are different, the target device obtains the number of signal transmission paths between the terminal device and the target device, where each signal transmission path is the path from the target device's wireless signal to the terminal device. Subsequently, if the number of signal transmission paths is greater than or equal to a preset number, the target device determines the second relative position as the target relative position; if the number of signal transmission paths is less than the preset number, the target device determines the first relative position as the target relative position.

[0070] Optionally, this application provides another strategy to determine which of the first and second relative positions is more reliable based on the presence of a significant multipath effect between the terminal device and the target device. The multipath effect refers to whether there are multiple signal transmission paths between the terminal device and the target device. When the number of signal transmission paths is greater than or equal to a preset number, it indicates a significant multipath effect between the terminal device and the target device. In this case, signal delay is usually more suitable for judging the appropriateness of the distance. This is because under the multipath effect, the wireless signal undergoes reflection, scattering, and diffraction along different paths during propagation, resulting in the wireless signal received by the terminal device having multiple propagation paths and different delays. That is, the signal delay variation under the multipath effect is more obvious. In this case, by measuring the signal delay, the signal propagation distance can be more accurately inferred.

[0071] In the third scenario, where the first relative position and the second relative position are different, the target device acquires the signal strength attenuation value of each wireless signal transmitted from the terminal device to the target device, obtaining N signal strength attenuation values. Then, it calculates the average of these N signal strength attenuation values ​​to obtain the average signal strength attenuation value. Finally, if the average signal strength attenuation value is greater than or equal to a preset threshold, the target device determines the first relative position as the target relative position; if the average signal strength attenuation value is less than the preset threshold, the target device determines the second relative position as the target relative position.

[0072] Optionally, this application provides another strategy to determine which of the first and second relative positions is more reliable based on whether there is a significant signal attenuation effect between the terminal device and the target device. Specifically, when the average signal strength attenuation value is greater than or equal to a preset threshold, it indicates a relatively significant signal attenuation effect between the terminal device and the target device. In this case, signal strength is generally more suitable for judging the appropriateness of the distance. This is because under a strong attenuation effect, the strength of the wireless signal will decrease with increasing distance; that is, the change in the wireless signal strength will be more significant. By measuring the signal strength, the distance the signal has propagated can be inferred.

[0073] As described above, this application utilizes wireless signal positioning. The target device sends a wireless signal to a terminal device installed on the safe. Based on the wireless signal strength and latency detected by the terminal device, the relative position between the terminal device and the target is determined, thereby confirming whether the safe containing the terminal device is located at the preset target position. This solution eliminates the need for security cameras, access control systems, and sensors, and eliminates the need for constant monitoring of the safe by management personnel. This not only saves on equipment costs but also improves the monitoring efficiency of the safe and enhances the timeliness of alarms for safes not in the preset position.

[0074] Example 2

[0075] This embodiment provides an optional alarm device for a safe, wherein each implementation unit in the alarm device for a safe corresponds to each implementation step in Embodiment 1.

[0076] Figure 3 This is a schematic diagram of an optional alarm device for a safe according to an embodiment of this application, such as... Figure 3 As shown, it includes: a sending unit 301, a receiving unit 302, a determining unit 303, and an alarm unit 304.

[0077] Specifically, the transmitting unit 301 is used to transmit N wireless signals from the target device to the terminal device, wherein the N wireless signals are generated by the target device and are signals of the same frequency, the terminal device is set on the safe, and N is a positive integer; the receiving unit 302 is used to receive N signal strength values ​​and N signal delay values ​​returned by the terminal device, wherein each signal strength value is the signal strength value of a wireless signal detected by the terminal device, and each signal delay value is the signal delay value of a wireless signal detected by the terminal device; the determining unit 303 is used to determine the target relative position between the terminal device and the target device based on the N signal strength values ​​and the N signal delay values; the alarm unit 304 is used to generate alarm information when the target relative position is different from the preset relative position, wherein the preset relative position is the relative position between the terminal device and the target device when the safe is in the target position, and the alarm information is used to indicate that the safe is not in the target position.

[0078] Optionally, the determining unit includes: a first calculation subunit, a first input subunit, a second calculation subunit, a second input subunit, and a first determining subunit. The first calculation subunit is used to calculate the average of N signal strength values ​​to obtain the average signal strength value corresponding to the terminal device receiving N wireless signals; the first input subunit is used to input the average signal strength value into a pre-trained first model to obtain a first relative position output by the first model, wherein the first relative position is the relative position between the terminal device and the target device predicted by the first model based on the average signal strength value; the second calculation subunit is used to calculate the average of N signal delay values ​​to obtain the average signal delay value corresponding to the terminal device receiving N wireless signals; the second input subunit is used to input the average signal delay value into a pre-trained second model to obtain a second relative position output by the second model, wherein the second relative position is the relative position between the terminal device and the target device predicted by the second model based on the average signal delay value; the first determining subunit is used to determine the target relative position between the terminal device and the target device based on the first relative position and the second relative position.

[0079] Optionally, the first determining subunit includes: a first determining module, used to determine the first relative position or the second relative position as the target relative position when the first relative position and the second relative position are the same.

[0080] Optionally, the first determining subunit includes: a first calculation module, a second determining module, a third determining module, and a fourth determining module. The first calculation module is used to calculate the variances of N signal strength values ​​and N signal delay values ​​when the first relative position and the second relative position are not the same. The second determining module is used to determine the second relative position as the target relative position when the variance of the N signal strength values ​​is greater than the variance of the N signal delay values. The third determining module is used to determine the first relative position as the target relative position when the variance of the N signal strength values ​​is less than the variance of the N signal delay values. The fourth determining module is used to randomly determine either the first relative position or the second relative position as the target relative position when the variance of the N signal strength values ​​equals the variance of the N signal delay values.

[0081] Optionally, the first determining subunit includes: a first acquiring module, a fifth determining module, and a sixth determining module. The first acquiring module is used to acquire the number of signal transmission paths between the terminal device and the target device when the first relative position and the second relative position are not the same, wherein the signal transmission path is the path through which a wireless signal sent by the target device is transmitted to the terminal device; the fifth determining module is used to determine the second relative position as the target relative position when the number of signal transmission paths is greater than or equal to a preset number; and the sixth determining module is used to determine the first relative position as the target relative position when the number of signal transmission paths is less than the preset number.

[0082] Optionally, the first determining subunit includes: a second acquisition module, a second calculation module, a seventh determining module, and an eighth determining module. The second acquisition module is used to acquire the signal strength attenuation value of each wireless signal transmitted from the terminal device to the target device, obtaining N signal strength attenuation values, when the first relative position and the second relative position are not the same. The second calculation module is used to calculate the average of the N signal strength attenuation values, obtaining an average signal strength attenuation value. The seventh determining module is used to determine the first relative position as the target relative position when the average signal strength attenuation value is greater than or equal to a preset threshold. The eighth determining module is used to determine the second relative position as the target relative position when the average signal strength attenuation value is less than the preset threshold.

[0083] Optionally, the alarm device for the safe further includes: a first determining unit, a first acquiring unit, a first training unit, and a second training unit. The first determining unit is used to determine M test locations corresponding to the terminal device, wherein the M test locations include at least a first location, and the relative position between the terminal device and the target device when the terminal device is in the first location is the target relative position; the first acquiring unit is used to acquire M test signal strength values ​​and M test signal delay values ​​detected by the terminal device based on the M test locations, wherein each test signal strength value is the signal strength value of the wireless signal transmitted by the target device detected by the terminal device when it is located in a test location, and each test signal delay value is the signal delay value of the wireless signal transmitted by the target device detected by the terminal device when it is located in a test location; the first training unit is used to train a first model based on the M test signal strength values; and the second training unit is used to train a second model based on the M test signal delay values.

[0084] Optionally, the first training unit includes a first label setting subunit and a first training subunit. The first label setting subunit is used to take each test signal intensity value as first sample information and set a first label for the first sample information, wherein the first label represents the relative position between the test position corresponding to the first sample information and the target device. The first training subunit is used to input the first sample information and the first label corresponding to the first sample information into a preset first deep learning network, and obtain a first model through multiple iterations of training.

[0085] Optionally, the second training unit includes a second label setting subunit and a second training subunit. The second label setting subunit is used to take each test signal delay value as second sample information and set a second label for the second sample information, wherein the second label represents the relative position between the test position corresponding to the second sample information and the target device. The second training subunit is used to input the second sample information and the corresponding second label into a preset second deep learning network, and obtain a second model through multiple iterations of training.

[0086] Optionally, the alarm device for the safe further includes: a third determining unit, used to determine that the safe is at the target location when the target relative position is the same as the preset relative position.

[0087] Example 3

[0088] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the alarm method for the safe described in Embodiment 1 above.

[0089] Example 4

[0090] According to another aspect of the embodiments of this application, an electronic device is also provided, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the alarm method for a safe in Embodiment 1 above by executing the executable instructions.

[0091] Figure 4 This is a schematic diagram of an electronic device provided according to an embodiment of this application, such as... Figure 4 As shown, this application provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it implements the alarm method for the safe described in Embodiment 1 above.

[0092] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

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

[0094] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

[0095] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0096] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0097] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0098] The above are merely preferred embodiments of this application. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method of alarming against a safe, characterized in that, The method comprises: sending N wireless signals to a terminal device by a target device, wherein the N wireless signals are generated by the target device, the N wireless signals are signals of the same frequency, the terminal device is arranged on a safe, and N is a positive integer; receiving N signal strength values and N signal delay values returned by the terminal device, wherein each signal strength value is a signal strength value of a wireless signal detected by the terminal device, and each signal delay value is a signal delay value of a wireless signal detected by the terminal device; determining a target relative position of the terminal device and the target device according to the N signal strength values and the N signal delay values; generating an alarm information in a case where the target relative position is not the same as a preset relative position, wherein the preset relative position is a relative position of the terminal device and the target device in a case where the safe is in a target position, and the alarm information is used to prompt that the safe is not in the target position; wherein the determining of the target relative position of the terminal device and the target device according to the N signal strength values and the N signal delay values comprises: calculating an average value of the N signal strength values to obtain an average signal strength value corresponding to the terminal device when the N wireless signals are received; inputting the average signal strength value into a first model trained in advance to obtain a first relative position output by the first model, wherein the first relative position is a relative position of the terminal device and the target device predicted by the first model according to the average signal strength value; calculating an average value of the N signal delay values to obtain an average signal delay value corresponding to the terminal device when the N wireless signals are received; inputting the average signal delay value into a second model trained in advance to obtain a second relative position output by the second model, wherein the second relative position is a relative position of the terminal device and the target device predicted by the second model according to the average signal delay value; determining the target relative position of the terminal device and the target device according to the first relative position and the second relative position; wherein the method further comprises comparing the credibility of the first relative position and the second relative position according to whether there is an obvious signal attenuation effect between the terminal device and the target device.

2. The method of claim 1, wherein, The determining of the target relative position of the terminal device and the target device according to the first relative position and the second relative position comprises: in a case where the first relative position and the second relative position are the same, determining that the first relative position or the second relative position is the target relative position.

3. The method of claim 1, wherein, The determining of the target relative position of the terminal device and the target device according to the first relative position and the second relative position comprises: in a case where the first relative position and the second relative position are not the same, calculating a variance of the N signal strength values and a variance of the N signal delay values; determining the second relative position as the target relative position in a case where the variance of the N signal strength values is greater than the variance of the N signal time delay values; determining the first relative position as the target relative position in a case where the variance of the N signal strength values is less than the variance of the N signal time delay values; determining the first relative position or the second relative position as the target relative position randomly in a case where the variance of the N signal strength values is equal to the variance of the N signal time delay values.

4. The method of claim 1, wherein, determining the target relative position of the terminal device and the target device according to the first relative position and the second relative position, comprising: acquiring the number of signal transmission paths between the terminal device and the target device in a case where the first relative position and the second relative position are different, wherein the signal transmission path is a path of wireless signal transmission from the target device to the terminal device; determining the second relative position as the target relative position in a case where the number of signal transmission paths is greater than or equal to a preset number; determining the first relative position as the target relative position in a case where the number of signal transmission paths is less than the preset number.

5. The method of claim 1, wherein, determining the target relative position of the terminal device and the target device according to the first relative position and the second relative position, comprising: acquiring a signal strength attenuation value of each wireless signal transmitted from the terminal device to the target device to obtain N signal strength attenuation values in a case where the first relative position and the second relative position are different; calculating an average value of the N signal strength attenuation values to obtain an average signal strength attenuation value; determining the first relative position as the target relative position in a case where the average signal strength attenuation value is greater than or equal to a preset threshold value; determining the second relative position as the target relative position in a case where the average signal strength attenuation value is less than the preset threshold value.

6. The method of claim 1, wherein, The first model and the second model are trained by the following steps, comprising: determining M test positions corresponding to the terminal device, wherein the M test positions at least include a first position, and the relative position between the terminal device and the target device when the terminal device is at the first position is the target relative position; acquiring M test signal strength values and M test signal time delay values detected by the terminal device according to the M test positions, wherein each test signal strength value is a signal strength value of the wireless signal transmitted by the target device detected by the terminal device when the terminal device is at one test position, and each test signal time delay value is a signal time delay value of the wireless signal transmitted by the target device detected by the terminal device when the terminal device is at one test position; training the first model according to the M test signal strength values; training the second model according to the M test signal time delay values.

7. The method of claim 6, wherein, training the first model according to the M test signal strength values, comprising: The test signal strength value is taken as first sample information, and a first label is set for the first sample information, where the first label represents a relative position between a test position corresponding to the first sample information and the target device; The first sample information and the first label corresponding to the first sample information are input into a preset first deep learning network, and the first model is obtained through multiple iterations.

8. The method of claim 6, wherein, The second model is trained according to the M test signal delay values, including: The test signal delay value is taken as second sample information, and a second label is set for the second sample information, where the second label represents a relative position between a test position corresponding to the second sample information and the target device; The second sample information and the second label corresponding to the second sample information are input into a preset second deep learning network, and the second model is obtained through multiple iterations.

9. The method of claim 1, wherein, After the target relative position between the terminal device and the target device is determined according to the N signal strength values and the N signal delay values, the method further includes: In a case where the target relative position is the same as the preset relative position, it is determined that the safe box is in the target position.

10. An alarm device for a safe, characterized in that The method includes: A sending unit is configured to send N wireless signals to a terminal device through a target device, where the N wireless signals are generated by the target device, the N wireless signals are signals of the same frequency, the terminal device is arranged on a safe box, and N is a positive integer; A receiving unit is configured to receive N signal strength values and N signal delay values returned by the terminal device, where each signal strength value is a signal strength value of one wireless signal detected by the terminal device, and each signal delay value is a signal delay value of one wireless signal detected by the terminal device; A determining unit is configured to determine a target relative position between the terminal device and the target device according to the N signal strength values and the N signal delay values; An alarm unit is configured to generate alarm information in a case where the target relative position is not the same as a preset relative position, where the preset relative position is a relative position between the terminal device and the target device in a case where the safe box is in a target position, and the alarm information is used to prompt that the safe box is not in the target position. The determining unit comprises a first calculating sub-unit, a first inputting sub-unit, a second calculating sub-unit, a second inputting sub-unit, and a first determining sub-unit. The first calculating sub-unit is configured to calculate an average value of the N signal strength values to obtain an average signal strength value corresponding to the terminal device when receiving the N wireless signals. The first inputting sub-unit is configured to input the average signal strength value into a pre-trained first model to obtain a first relative position output by the first model, wherein the first relative position is a relative position of the terminal device and the target device predicted by the first model according to the average signal strength value. The second calculating sub-unit is configured to calculate an average value of the N signal delay values to obtain an average signal delay value corresponding to the terminal device when receiving the N wireless signals. The second inputting sub-unit is configured to input the average signal delay value into a pre-trained second model to obtain a second relative position output by the second model, wherein the second relative position is a relative position of the terminal device and the target device predicted by the second model according to the average signal delay value. The first determining sub-unit is configured to determine a target relative position of the terminal device and the target device according to the first relative position and the second relative position. The device further comprises a unit configured to compare the credibility of the first relative position and the second relative position according to whether there is an obvious signal attenuation effect between the terminal device and the target device.

11. A computer readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and when the computer program runs, controls a device where the computer readable storage medium is located to execute the alarm method for the safe according to any one of claims 1 to 9.

12. An electronic device, comprising: The device comprises one or more processors and a memory configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the alarm method for the safe according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Self-adaptation vertical handover method based on RSS (Really Simple Syndication) variation trend

    CN102111838A

  • Safety box monitoring method and device, computer equipment and storage medium

    CN114233142A

  • Anti-theft safe box

    CN202706776U