Vibration prompting method, electronic device and computer program product
By using WiFi sensing technology to detect vibration information through gateway devices and terminal devices, the problem of earthquake early warning methods relying on additional hardware devices is solved, and timely earthquake early warning can be achieved without increasing costs.
Patent Information
- Application Number
- CN202411177797.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2026-03-03
AI Technical Summary
Existing earthquake early warning methods rely on additional vibration sensor equipment, which increases hardware costs, and cannot provide early warning when the terminal does not have the early warning function enabled or when communication fails.
By using WiFi sensing technology to detect vibration information through gateway devices and terminal devices, vibration information of multiple target devices can be obtained, and vibration alerts can be output based on this information to achieve earthquake early warning.
Vibration alerts can be provided without additional hardware, reducing hardware costs and enabling timely vibration alerts, thus improving the timeliness of earthquake early warning.
Smart Images

Figure CN121595015A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless communication, and more specifically, to a vibration alert method, electronic device, and computer program product. Background Technology
[0002] The working principle of earthquake early warning is based on the velocity differences of different seismic waves emitted from the fault rupture point during an earthquake, as well as the velocity differences between seismic waves and electromagnetic waves. Seismic waves originating from the earthquake source are mainly P-waves (P) and S-waves (S). These two types of waves have different propagation speeds and produce different amplitudes of vibration upon reaching the Earth's surface. P-waves propagate quickly but have small amplitudes, while S-waves propagate slowly but have large amplitudes. Utilizing the time difference caused by the propagation speeds of these two waves, strong-motion sensors at observation points near the earthquake source can transmit data to the earthquake data processing center when they detect P-waves. This allows for the prediction of factors such as the earthquake source, magnitude, and intensity before the arrival of the S-waves, thus providing an earthquake early warning.
[0003] Currently, one method of earthquake alerts is to enable the early warning function on the terminal, which then issues an alert upon receiving information from the early warning center. If the user has not enabled the early warning function, or if the terminal fails to receive the early warning information due to communication issues, the early warning function cannot be activated. Another method is to use the vibration sensor inside the terminal to detect vibrations. This method requires configuring the vibration sensor on the terminal, increasing additional hardware costs. Summary of the Invention
[0004] This application provides a vibration alert method, storage medium, electronic device, and computer program product to at least solve the technical problem that early warning methods in related technologies require additional vibration sensor equipment.
[0005] According to one embodiment of this application, a vibration alert method is provided, applied to a gateway device. The method includes: acquiring multiple vibration information detected by multiple target devices within a preset detection period, wherein the target devices are the gateway device or a terminal device connected to the gateway device; and outputting a vibration alert based on the multiple vibration information.
[0006] According to another embodiment of this application, a vibration alert method is also provided, applied to a terminal device. The method includes: performing vibration detection within a preset detection period to obtain vibration information of the terminal device; sending the vibration information of the terminal device to a gateway device so that the gateway device outputs a vibration alert based on the vibration information of multiple target devices, wherein the target devices are the gateway device or a terminal device connected to the gateway device.
[0007] According to yet another embodiment of this application, a computer-readable storage medium is also provided, which stores a computer program, wherein the computer program is executed by a processor to perform the steps in any of the above method embodiments.
[0008] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0009] According to yet another embodiment of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0010] Through the embodiments of this application, the gateway device can directly obtain vibration information from itself or multiple terminal devices connected to it, and provide vibration alerts based on the vibration information. This eliminates the need for additional hardware detection equipment or devices, thereby reducing hardware costs and solving the technical problem in related technologies where early warning methods rely on additional vibration sensor equipment. Furthermore, the gateway device in this application can be implemented inside a building, enabling timely vibration alerts through vibration information, thus improving the timeliness of earthquake early warning methods. Attached Figure Description
[0011] Figure 1 This is a schematic diagram of the hardware structure of the vibration alert method according to an embodiment of this application;
[0012] Figure 2 This is a flowchart illustrating a vibration alert method for a gateway device according to an embodiment of this application;
[0013] Figure 3 This is a schematic flowchart of a vibration alert method for a terminal device according to an embodiment of this application;
[0014] Figure 4 This is a schematic diagram of the connection between the gateway device and the smart terminal device in one embodiment of this application;
[0015] Figure 5 This is a schematic diagram of a perception model of a home network in one embodiment of this application;
[0016] Figure 6 This is a schematic diagram of the overall process of earthquake early warning implemented through WiFi sensing technology in one embodiment of this application;
[0017] Figure 7 This is a schematic diagram of an embodiment of the present application for earthquake early warning based on vibration notifications from multiple gateway devices;
[0018] Figure 8 This is a schematic diagram of the vibration amplitude of household items in one embodiment of this application. Detailed Implementation
[0019] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.
[0020] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0021] It should also be understood that in the embodiments of this application, "multiple" can refer to two or more, and "at least one" can refer to one, two or more.
[0022] The methods and embodiments provided in this application can be applied to WiFi networks, including but not limited to gateway devices, routers, terminal devices, etc., that support WiFi technology. Terminal devices include, but are not limited to, mobile terminals, computer terminals, smart terminal devices, etc. In an exemplary embodiment, in a smart home scenario, the terminal device can be a smart home device, including but not limited to smart lights, smart curtains, smart speakers, etc.
[0023] The methods and embodiments provided in this application can be executed in a gateway device, mobile terminal, computer terminal, or similar computing device. Taking running on a computer terminal as an example, Figure 1 This is a schematic diagram of the hardware structure of the vibration alert method according to an embodiment of this application, as shown below. Figure 1 As shown, a hardware board may include one or more ( Figure 1 Only one is shown in the diagram. A processor 12 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 14 for storing data are also shown. The computer terminal may further include a transmission device 16 for communication functions and an input / output device 18. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the computer terminal described above. For example, the computer terminal may also include components that are more complex than those described above. Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0024] The memory 14 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the vibration alert method in this embodiment. The processor 12 executes various functional applications and warning methods by running the computer programs stored in the memory 14, thus implementing the aforementioned methods. The memory 14 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some embodiments, the memory 14 may further include memory remotely located relative to the processor 12, and these remote memories can be connected to a computer terminal via a network. Embodiments of the aforementioned network include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0025] The transmission device 16 is used to receive or send data via a network. Specific network embodiments described above may include wireless networks provided by a communications provider. In one embodiment, the transmission device 16 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another embodiment, the transmission device 16 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0026] This embodiment provides a vibration alert method applied to a gateway device. Figure 2 This is a flowchart illustrating a vibration alert method for a gateway device according to an embodiment of this application, as shown below. Figure 2 As shown, the process may include the following steps:
[0027] Step S202: Obtain multiple vibration information detected by multiple target devices within a preset detection period;
[0028] Step S204: Output a vibration alert based on the multiple vibration information.
[0029] In this embodiment, the target device may be a gateway device or a terminal device connected to the gateway device.
[0030] In this embodiment, vibration information includes, but is not limited to, vibration time, vibration frequency, vibration energy, peak value of the vibration signal, and the distance (or amplitude) of movement generated during vibration. Based on the vibration information, the causes of vibration can be screened and judged, thereby determining the vibration scenario and outputting the corresponding vibration prompt.
[0031] This application's embodiments utilize a gateway device and a terminal device to acquire vibration information, thereby achieving vibration alerts without requiring additional hardware detection equipment. This reduces hardware costs and solves the technical problem in related technologies where early warning methods rely on additional vibration sensor equipment. Furthermore, the gateway device in this application can be implemented inside a building, enabling timely vibration alerts through vibration information, thus improving the timeliness of earthquake early warning methods.
[0032] In some embodiments, the scenarios that cause equipment vibration include, but are not limited to, seismic P-wave vibration, seismic S-wave vibration, vibration caused by human activity or daily walking, vibration caused by the movement of objects, vibration caused by the characteristics of objects (e.g., clock swinging), and vibration caused by specific environments (e.g., being near a railway or subway station).
[0033] In some embodiments, the preset detection cycle may include, but is not limited to, detection duration, detection interval, etc.
[0034] In some embodiments, multiple target devices may be located in the same unobstructed space, and walls or other obstacles may exist between the target devices; a terminal device connected to a gateway device may be located in the same unobstructed space as the gateway device, and walls or other obstacles may exist between the terminal device and the gateway device. The target devices and the gateway device may be located anywhere in the space, including but not limited to walls, desktops, and the ground. This application does not limit the location and positional relationship of the target devices and the gateway device.
[0035] In some embodiments, step S202, which acquires multiple vibration information detected by multiple target devices within a preset detection period, may include any of the following steps:
[0036] Step S202A: Obtain vibration information from at least two of the terminal devices.
[0037] Step S202B: Vibration detection is performed using WiFi sensing technology during the detection period to obtain vibration information of the gateway device; vibration information of at least two terminal devices is obtained from at least two terminal devices.
[0038] In this embodiment, the WIFI sensing technology uses WIFI signals to detect vibration. For example, vibration can be detected by the signal strength of the WIFI signal, the frequency offset of the WIFI signal, the arrival time of the WIFI signal, etc. This application does not limit this.
[0039] In this embodiment, the gateway device can detect the vibration state of multiple terminal devices that have established WiFi connections with it through WiFi sensing technology, and can also obtain vibration information obtained from vibration detection by each terminal device through WiFi communication. This application does not limit this. The gateway device can detect the vibration state of a specified object through WiFi sensing technology, and can also detect its own vibration state through WiFi sensing technology.
[0040] In this embodiment, the detection target (i.e., the designated object) of the gateway device includes, but is not limited to, the gateway device, terminal devices, furniture, etc. The terminal device is an electronic device with WiFi communication capabilities, while the furniture can be an electronic device without WiFi communication capabilities, or it can be traditional non-electronic furniture. Control of the detection target can be achieved by controlling the transmission direction of the WiFi signal, but this application is not limited to this.
[0041] In this embodiment, gateway devices or terminal devices that support WiFi communication can implement WiFi sensing technology. Currently, in smart home scenarios, most types of smart terminal devices can support WiFi communication. Therefore, this embodiment does not require additional hardware detection equipment and can be implemented directly in existing WiFi networks or smart home scenarios.
[0042] In some embodiments, step S202B, which involves vibration detection using WiFi sensing technology during the detection period to obtain vibration information of the gateway device, may include the following steps:
[0043] Step S202B-2: During the detection period, the gateway device sends and receives WiFi sensing signals according to a preset detection frequency, and determines the phase value and amplitude of the gateway device at multiple moments according to the Fresnel model.
[0044] Step S202B-4: Confirm the vibration state of the gateway device at the corresponding time based on the phase value and the amplitude, and record the vibration information of the gateway device based on the vibration state.
[0045] In this embodiment, the Fresnel model can achieve precise monitoring of human behavior, such as breathing and minute movements, by analyzing the diffraction changes of wireless signals, such as Wi-Fi signals, when they encounter obstacles (such as a human body). Based on the same principle, the Fresnel model can also be used to detect the vibration of a specified object or device. In this embodiment, by applying the Fresnel zone model, the relationship between the received signal pattern and wavelength when an object moves in different positions and orientations can be shown, thereby accurately sensing the phase value and movement distance of the device during vibration (or movement).
[0046] In some embodiments, the detection period is used to indicate the duration of a single round of vibration detection, and the detection frequency is used to indicate the transmission / reception frequency of the WiFi sensing signal, or may indicate the sampling frequency of the vibration information.
[0047] In some embodiments, the step S202B-4, which determines the vibration state of the gateway device at a corresponding moment based on the phase value and the amplitude, may include: step S202B-42, where if the phase values of the gateway device at two adjacent or close moments are opposite to each other and are the same as the two amplitudes corresponding to the two moments, the vibration state of the gateway device at the corresponding moment is determined to be vibration, wherein the amplitude is the distance the gateway device moves relative to the central axis.
[0048] In this embodiment, the characteristic of object vibration is that the object moves regularly left and right or up and down with a central axis as the origin. According to the Fresnel model, the object moves in two directions with the central axis as the starting point. WiFi sensing technology can detect the phase and amplitude of the vibration. If the phase φ is +φ and -φ, and the amplitude of the +φ and -φ movements relative to the central axis is the same, then the object movement that satisfies this characteristic can be determined as a vibration.
[0049] In some embodiments, furniture products installed on the roof or walls will vibrate at different amplitudes when the house vibrates. Similarly, furniture products placed on the floor or tabletop will vibrate at different heights. Therefore, when judging the vibration state, the criterion is whether the amplitude is symmetrical relative to the central axis, rather than the amplitude size. This allows the vibration of objects with different amplitudes to be perceived.
[0050] In some embodiments, recording the vibration information of the gateway device according to the vibration state in step S202B-4 may include: recording that the gateway device vibrates once at the corresponding time when the gateway device vibrates. Further, the vibration information includes, but is not limited to, any of the following: vibration time, number of vibrations, vibration frequency, vibration amplitude, etc.
[0051] In one exemplary embodiment, the gateway device can directly acquire the vibration frequency of each target device, or the gateway device can only receive the vibration count of each target device, and then the gateway device calculates the vibration frequency f based on the detection period and the vibration count: f = n / t, where n is the vibration count and t is the detection period.
[0052] In some embodiments, prior to step S202, the method may include:
[0053] Step S201: Upon obtaining preset information, instruct the plurality of target devices to perform vibration detection using WiFi sensing technology within the detection period.
[0054] In this embodiment, the preset information may come from a gateway device or a preset device. For example, the preset device may be one or more terminal devices at preset locations, a user-specified terminal device, or a terminal device that is sensitive to vibration detection.
[0055] In some embodiments, the preset information includes, but is not limited to, vibration alerts, vibration notifications, and vibration information, and the preset information can serve as a trigger indication to enable vibration detection of multiple target devices.
[0056] In an exemplary embodiment, the gateway device may first control one or some designated devices to perform periodic or continuous vibration detection, and after receiving preset information from these designated devices, control other devices to also perform vibration detection.
[0057] In some embodiments, step S204 may include the following steps:
[0058] Step S2042: When the multiple vibration information meets the preset conditions, output a vibration prompt corresponding to the preset conditions, wherein the preset conditions include multiple conditions corresponding to multiple prompt levels, and the vibration prompts corresponding to the multiple prompt levels are different.
[0059] In some embodiments, the alert level includes, but is not limited to, three levels: high, medium, and low. The alert level can also be set according to the vibration scenario, such as human activity scenario, traffic scenario, earthquake scenario, etc.
[0060] In some embodiments, vibration alerts can be implemented through terminal devices. Taking smart terminal devices as an example, the alert methods include, but are not limited to, at least one of the following: smart lamps that alert by flashing lights; smart speakers that alert by sound; smart devices with displays that provide text alerts via the display screen; and smart curtains that alert by swaying the curtains.
[0061] In some embodiments, vibration alerts can also serve as trigger information for further vibration detection. For example, if vibration detection is currently only performed on a subset of devices, the vibration alert can enable vibration detection on all devices. If vibration detection is currently performed on a single gateway area, the vibration alert can enable vibration detection on multiple gateway device areas.
[0062] In this embodiment, the relationship between the alert level and the vibration alert can be set in a one-to-one or one-to-many manner, and this application does not limit the correspondence between the two. Furthermore, the alert level, vibration alert, and corresponding preset conditions can all be set by the user through human-computer interaction, and this application does not limit this as well.
[0063] In some embodiments, the preset conditions in step S2042 include at least one of the following:
[0064] The preset device among the plurality of target devices vibrates;
[0065] All of the multiple target devices vibrate;
[0066] The vibration frequencies of the multiple target devices are the same;
[0067] The vibration amplitude of the multiple target devices is greater than or equal to a preset threshold.
[0068] In some embodiments, if the multiple target devices include multiple devices with different priorities, the preset device can be a device with a preset priority. Furthermore, the priority of the devices can be set according to the sensitivity of vibration detection. For example, devices that are not easily triggered by vibration (low detection sensitivity) can be set as high-priority devices, and devices that are easily triggered by vibration (high detection sensitivity) can be set as low-priority devices. However, this application is not limited to this.
[0069] In one exemplary embodiment, the priority can also be set according to the device location characteristics. For example, terminal devices installed on the roof or wall are set to high priority, while terminal devices placed on the ground or desktop are set to low priority.
[0070] In one exemplary embodiment, when a low-priority device detects vibration, it can send the vibration information to a smart home gateway, which then controls all smart home devices to perform vibration detection. If a high-priority device also detects vibration, an earthquake early warning determination can be made. In another exemplary embodiment, if a high-priority device detects vibration, it can directly issue an earthquake early warning determination even without receiving vibration information from other devices.
[0071] In other embodiments, if the multiple target devices include devices in multiple different locations, the preset device can be a device in a preset location. For example, the device location can include, but is not limited to, a roof, wall, ground, desktop, etc.
[0072] In some embodiments, the location of each target device can be precisely marked, or target devices with the same location characteristics can be classified and marked. For example, target devices installed on rooftops or high walls can be classified into one category, while target devices placed on the ground or lower tabletops can be classified into another. This application does not limit the criteria for marking the location of target devices or classifying them by location characteristics.
[0073] In an exemplary embodiment, the gateway device can compare the vibration frequencies of items / equipment in each house sensed by each target device. If the furniture and items in each house exhibit vibrations at the same frequency simultaneously, the current vibration scenario can be determined to be an earthquake scenario.
[0074] In some embodiments, the gateway device can also exclude the interference of vibrations from designated furniture items on earthquake early warning. For example, clocks also vibrate when they are working normally, and the gateway device can pre-mark furniture items so that vibration detection of clocks is avoided during vibration detection.
[0075] In some embodiments, the gateway device can also exclude the interference of vibrations in a specified scenario on earthquake early warning. For example, when a home is located near a subway or railway and can sense vibrations every day, the gateway device can identify the traffic scenario, mark the vibration time and vibration frequency, and subsequently determine that these vibrations are known vibrations when they occur, without performing earthquake early warning-related detection and judgment.
[0076] In some embodiments, after step S2042, the method may further include: step S2044, whereby, if the plurality of vibration information meets the preset conditions, a vibration notification is sent to an upper-level gateway device, so that the upper-level gateway device instructs a plurality of gateway devices within a preset range to perform vibration detection, and upon receiving the plurality of vibration notifications sent by the plurality of gateway devices, an earthquake alert is output.
[0077] In some embodiments, the frequency of seismic waves is typically within a fixed range, for example, between 1 Hz and 20 Hz. Combining the vibration frequency can more accurately determine whether a vibration scene is an earthquake scene.
[0078] In some embodiments, the preset range may be a fixed range defined by the upstream gateway device based on distance or region, or it may be a dynamic range defined by the upstream gateway device based on the number of gateway devices that can be indicated. This application does not impose any limitations on this.
[0079] In this embodiment, the gateway device can not only provide timely vibration alerts inside the house, but also achieve regional vibration detection by reporting vibration notifications, detect the vibration status of the entire area, and then more accurately judge the vibration scenario based on the vibration status of the entire area.
[0080] In some embodiments, the preset conditions in step S2042 can also be set according to different vibration scenarios. For example, in the scenario of human activity, since daily walking or activities of the human body are generally irregular movements in one direction, such as from the living room to the bedroom; or activities in the living room, also involve walking in one direction for a period of time. Based on the movement rate of people in family life, there will not be movements of moving in one direction and then moving in another direction for the same distance within one second. When multiple family members are moving, there will be no movement of multiple people in the same regularity and frequency. Therefore, the frequency of vibration generated by human activity is low.
[0081] In some embodiments, if the target of the gateway device is a human body, it will not be judged as vibration because the human body's daily movement direction is not completely symmetrical along the central axis.
[0082] In this embodiment, since earthquakes have a fixed frequency range, usually greater than 1Hz, it is possible to distinguish between earthquake scenarios and human activity scenarios. When the gateway device issues an earthquake warning, it can also determine the earthquake wave based on the phase and amplitude, without being disturbed by the movement of family members.
[0083] In this embodiment, the gateway device can directly detect vibration information of the gateway device or multiple terminal devices connected to it, solving the technical problem that earthquake early warning methods in related technologies require additional hardware. This application eliminates the need for additional hardware, thereby reducing hardware costs. By omitting the additional setup for hardware, operation and setup are simplified. Furthermore, the gateway device can promptly output vibration alerts based on vibration information, achieving the technical effect of improving the timeliness of earthquake early warning methods.
[0084] Another embodiment of this application also provides a vibration alert method, applied to a terminal device. Figure 3 This is a flowchart illustrating a vibration alert method for a terminal device according to an embodiment of this application, as shown below. Figure 3 As shown, the process includes the following steps:
[0085] Step S302: Vibration detection is performed within a preset detection cycle to obtain vibration information of the terminal device;
[0086] Step S304: The vibration information of the terminal device is sent to the gateway device so that the gateway device outputs a vibration alert based on the vibration information of multiple target devices.
[0087] In this embodiment, the target device is the gateway device or the terminal device connected to the gateway device. The terminal device may include, but is not limited to, smart devices capable of implementing WiFi sensing technology.
[0088] In this embodiment, the terminal device can start vibration detection when a preset condition is triggered, or it can perform vibration detection periodically. The detection cycle and detection interval can be set by the user.
[0089] In this embodiment, vibration information can be obtained using a terminal device, and vibration alerts can be provided by combining vibration information from multiple devices through a gateway device. This eliminates the need for additional hardware detection equipment, thereby reducing hardware costs and solving the technical problem in related technologies where earthquake early warning methods rely on additional hardware. Furthermore, both the terminal device and the gateway device in this application can be implemented inside a building, enabling timely vibration alerts and improving the timeliness of earthquake early warning methods.
[0090] In some embodiments, vibration information includes, but is not limited to, vibration time, vibration number, vibration frequency, vibration energy, and peak value of the vibration signal.
[0091] In some embodiments, multiple target devices may be located in the same unobstructed space, and walls or other obstacles may exist between the target devices; a terminal device connected to a gateway device may be located in the same unobstructed space as the gateway device, and walls or other obstacles may exist between the terminal device and the gateway device. This application does not limit the location of the target devices and the gateway device.
[0092] In some embodiments, step S302 may include the following steps:
[0093] Step S3022: Vibration detection is performed using WiFi sensing technology during the detection period to obtain vibration information of the terminal device.
[0094] In this embodiment, the WiFi sensing technology utilizes WiFi signals for vibration detection. For example, vibration detection can be performed using WiFi signal strength, WiFi signal frequency offset, and WiFi signal arrival time, but this application does not limit this. Since a WiFi signal is an electromagnetic wave, when it passes through an object, the object's vibration affects certain characteristic parameters of the signal, such as signal strength, phase, and frequency. Therefore, the vibration of the object can be analyzed based on the changes in the characteristic parameters of the WiFi signal.
[0095] In this embodiment, the terminal device can detect the vibration state of a specified object using WiFi sensing technology, or it can detect its own vibration state using WiFi sensing technology. Furthermore, the terminal device can detect the vibration state of other terminal devices or gateway devices with which it has established a WiFi connection using WiFi sensing technology, and it can also obtain vibration information obtained from vibration detection by various terminal devices or gateway devices via WiFi communication. This application does not impose any limitations on this.
[0096] In this embodiment, the detection targets of the terminal device include, but are not limited to, terminal devices, gateway devices, furniture, and other items.
[0097] In some embodiments, step S3022 may include the following steps:
[0098] Step S3022-2: During the detection period, the terminal device sends and receives WiFi sensing signals according to a preset detection frequency, and determines the phase value and amplitude of the terminal device at multiple moments according to the Fresnel model.
[0099] Step S3022-4: Confirm the vibration state of the terminal device at the corresponding time based on the phase value and the amplitude, and record the vibration information of the terminal device based on the vibration state.
[0100] In this embodiment, the Fresnel model can achieve precise monitoring of human behavior, such as breathing and minute movements, by analyzing the diffraction changes of wireless signals, such as WiFi signals, when they encounter obstacles (such as a human body). Based on the same principle, the Fresnel model can also be used to detect the vibration of a specified object or device. In this embodiment, by applying the Fresnel zone model, the relationship between the received signal pattern and wavelength when an object moves in different positions and orientations can be shown, thereby accurately sensing the phase value and movement distance of the device during vibration (or movement).
[0101] In some embodiments, the detection period is used to indicate the duration of a single round of vibration detection, and the detection frequency is used to indicate the transmission / reception frequency of the WiFi sensing signal, or may indicate the sampling frequency of the vibration information.
[0102] In some embodiments, confirming the vibration state of the terminal device at a corresponding moment based on the phase value and the amplitude in step S3022-4 may include: if the phase values of the terminal device at two adjacent or close moments are opposite numbers and are the same as the two amplitudes corresponding to the two moments, determining that the vibration state of the terminal device at the corresponding moment is that vibration has occurred, wherein the amplitude is the distance the terminal device moves relative to the central axis.
[0103] In this embodiment, the characteristic of object vibration is that the object moves regularly left and right or up and down around a central axis as the origin. According to the Fresnel model, the object moves in two directions around the central axis. WiFi sensing technology can detect the phase and amplitude of the vibration. If the phase φ is +φ and -φ, and the amplitude of the +φ and -φ movements relative to the central axis is the same, then the object movement that satisfies this characteristic can be determined as a vibration.
[0104] In some embodiments, recording the vibration information of the terminal device according to the vibration state in step S3022-4 may include: recording that the terminal device vibrated once at the corresponding time when the terminal device vibrates. Further, the vibration information includes, but is not limited to, any of the following: vibration time, number of vibrations, vibration frequency, vibration amplitude, etc.
[0105] In this embodiment, the terminal device supporting WiFi technology can directly utilize WiFi signals to detect vibration, eliminating the need for internal vibration sensors. This solves the technical problem in related technologies where earthquake early warning methods rely on additional hardware, thus reducing hardware costs. Furthermore, the technical solution in this application can be implemented directly within a home network, allowing the terminal device and gateway device to detect vibration information independently and promptly output vibration alerts, thereby improving the timeliness of earthquake early warning methods.
[0106] Figure 4 This is a schematic diagram of the connection between the gateway device and the smart terminal device in one embodiment of this application, as shown below. Figure 4 As shown, the gateway device and the smart terminal devices are connected via WiFi. The smart terminal devices include smart lights in the living room, smart curtains in the living room, smart lights in the master bedroom, and smart curtains in the master bedroom. However, this application is not limited to this.
[0107] In this embodiment, the gateway device can obtain vibration information from vibration detection of various smart terminal devices via WiFi connection, realize vibration detection within the home network, and thus realize earthquake early warning function.
[0108] Figure 5 This is a schematic diagram of a home network perception model in one embodiment of this application, as shown below. Figure 5 As shown, the home network includes a gateway device, smart terminal devices, and furniture. The smart terminal devices are electronic devices with WiFi communication capabilities, while the furniture can be electronic devices or non-electronic devices without WiFi communication capabilities.
[0109] In this embodiment, the smart terminal devices include smart lights and smart curtains. Based on the WiFi connection between the gateway device and the smart terminal devices, the gateway device can use WiFi sensing technology to sense the vibration states of the gateway device, smart curtains, smart lights, and furniture. Similarly, the smart lights can use WiFi sensing technology to sense the vibration states of the smart curtains and furniture, and the smart curtains can use WiFi sensing technology to sense the vibration states of the smart lights and furniture.
[0110] Figure 6 This is a schematic diagram of the overall process of earthquake early warning implemented through WiFi sensing technology in one embodiment of this application, as shown below. Figure 6As shown, the process includes the following steps:
[0111] Step S601: The gateway device establishes a WiFi connection with the terminal device;
[0112] Step S602: The gateway device and the terminal device sense the vibration of all the devices in the house through WiFi sensing technology;
[0113] Step S603: When some devices detect vibration, the gateway device controls each terminal device to perform simultaneous and periodic detection.
[0114] Step S604: The gateway device acquires vibration data from each terminal device;
[0115] In step S605, the gateway device calculates the vibration frequency of each device based on the vibration data, and combined with the location characteristics of the devices, determines that an earthquake has occurred and issues an early warning when it is determined that each building is resonating at the same frequency.
[0116] In this embodiment, the gateway device establishes WiFi connections with terminal devices in various rooms of the home or in different locations. Devices in each room can detect the vibration status of one or more objects in the room through WiFi sensing technology.
[0117] In some embodiments, the gateway device or terminal device can mark the locations of objects in the room and set priorities. For example, furniture installed on the ceiling and walls can be set to high priority, while furniture placed on the floor or tabletops can be set to low priority. The vibrations sensed by some devices in step S603 can be obtained by the gateway device or terminal device detecting vibrations of objects with specific priorities or at designated locations. After obtaining the detection results, the terminal device will report the detection results to the gateway device.
[0118] In some embodiments, the gateway device can obtain the vibration state of each house at the same time and period by controlling the terminal devices in each house to perform vibration detection at the same time and period, and then determine whether the rooms in the house are vibrating at the same frequency.
[0119] In this embodiment, the vibration data may include the number of vibrations and the detection period of vibration detection. The gateway device can determine the vibration frequency by the ratio of the number of vibrations to the detection period, thereby triggering the judgment of earthquake early warning conditions, that is, judging whether each building is vibrating at the same frequency. If each building is vibrating at the same frequency, then an earthquake early warning is issued.
[0120] In this embodiment, the detection target of the terminal device or gateway device can be a gateway device, a terminal device, or traditional furniture. Terminal devices or gateway devices with WiFi communication capabilities can detect vibration of designated items through WiFi sensing technology. This application does not limit the type of detection target.
[0121] In some embodiments, the gateway device may provide a human-machine interface for users to configure earthquake early warning notification methods. For example, earthquake early warning notification methods may include flashing smart lights, sounding an alarm from a smart speaker, etc., and this application does not impose any limitations on these methods.
[0122] In some embodiments, vibration data may also include vibration amplitude. The gateway device can further determine the earthquake level by comparing the vibration amplitude of a specific item with a preset amplitude threshold.
[0123] Figure 7 This is a schematic diagram of an embodiment of the present application illustrating an earthquake early warning process based on vibration notifications from multiple gateway devices. Figure 7 As shown, the process includes the following steps:
[0124] In step S702, the gateway device determines that the whole house is vibrating at the same frequency and sends a vibration notification to the upper-level gateway device;
[0125] Step S704: The upstream gateway device instructs multiple gateway devices within a preset range to perform vibration detection;
[0126] Step S706: The upstream gateway device receives multiple vibration notifications sent by multiple gateway devices;
[0127] Step S708: The upstream gateway device outputs an earthquake alert.
[0128] In this embodiment, before step S702, the gateway device can perform vibration detection of all items in the house according to the steps in any of the above method embodiments. For example, it can determine that the items in each room of the house are vibrating at the same frequency according to the above steps S601 to S605.
[0129] In this embodiment, the upper-level gateway device can be a central control gateway within a preset range, which can control multiple gateway devices. The preset range includes, but is not limited to, the entire office building, the entire unit building, the entire community, or the entire industrial park.
[0130] In this embodiment, the upper-level gateway device can control multiple gateway devices to perform simultaneous and periodic vibration detection, and each gateway device can control multiple terminal devices to perform simultaneous and periodic vibration detection within its respective management scope. The vibration detection methods and vibration judgment conditions of each gateway device and terminal device will not be described in detail here.
[0131] Through the embodiments of this application, not only can vibration detection and vibration alerts be achieved within a single house / family using WiFi sensing technology, but the warning range can also be expanded by reporting vibration notifications, and the accuracy of earthquake early warning can be further improved by utilizing the vibration judgment results of multiple gateway devices.
[0132] Figure 8 This is a schematic diagram of the vibration amplitude of household items in one embodiment of this application, as shown below. Figure 8 As shown, when vibration occurs, the vibration amplitude of household items placed in different locations (such as the ground or the roof) may vary.
[0133] In this embodiment, the detected movement distance of home appliances may vary depending on their placement height or the length of the object itself.
[0134] In this embodiment of the application, a gateway device or terminal device with WiFi signal transmission and reception capabilities can sense the vibration of a specified object through WiFi sensing technology.
[0135] In an exemplary embodiment, a gateway device or terminal device can send and receive WiFi sensing signals and determine the phase value and amplitude of a specified object at multiple moments according to the Fresnel model. Since the characteristic of object vibration is that the object moves regularly left and right or up and down around a central axis as its origin, according to the Fresnel model, the object moves in two directions starting from the central axis. WiFi sensing technology can detect the phase and amplitude of vibration. If the phase φ is +φ and -φ, and the amplitude of the +φ and -φ movements relative to the central axis is the same, then the movement of an object satisfying this characteristic can be determined as a vibration.
[0136] In this embodiment, the vibration state can be determined by the phase and amplitude symmetry, thereby eliminating interference caused by the different amplitudes of objects in different positions and more accurately determining the vibration state of the object.
[0137] In this embodiment, the gateway / terminal device supporting WiFi technology can directly utilize WiFi signals for vibration detection, eliminating the need for internal vibration sensors. This solves the technical problem in related technologies where early warning methods rely on additional vibration sensors, thus reducing hardware costs. Furthermore, the solution in this application can be implemented directly within a home network, allowing the terminal and gateway devices to detect vibration information independently and promptly output vibration alerts, thereby improving the timeliness of earthquake early warning methods.
[0138] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to perform the steps in any of the above method embodiments.
[0139] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0140] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0141] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0142] Embodiments of this application also provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the methods described in various embodiments of this application.
[0143] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0144] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0145] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A vibration alert method, characterized in that, The method includes: The system acquires multiple vibration information detected by multiple target devices within a preset detection period, wherein the target devices are gateway devices or terminal devices connected to the gateway devices. A vibration alert is output based on the aforementioned multiple vibration information.
2. The method according to claim 1, characterized in that, The acquisition of multiple vibration information detected by multiple target devices within a preset detection period includes: Vibration information of at least two of the terminal devices is obtained from at least two of the terminal devices.
3. The method according to claim 1, characterized in that, The acquisition of multiple vibration information detected by multiple target devices within a preset detection period includes: Vibration detection is performed using WiFi sensing technology during the detection period to obtain vibration information of the gateway device; Vibration information of at least two of the terminal devices is obtained from at least two of the terminal devices.
4. The method according to claim 3, characterized in that, The vibration detection performed using WiFi sensing technology during the detection period to obtain vibration information of the gateway device includes: During the detection period, the gateway device sends and receives WiFi sensing signals according to a preset detection frequency, and determines the phase value and amplitude of the gateway device at multiple moments according to the Fresnel model; The vibration state of the gateway device at the corresponding moment is determined based on the phase value and the amplitude, and the vibration information of the gateway device is recorded based on the vibration state.
5. The method according to claim 4, characterized in that, Determining the vibration state of the gateway device at a corresponding moment based on the phase value and the amplitude includes: If the phase values of the gateway device at two adjacent or close moments are opposite to each other and the two amplitudes corresponding to the two moments are the same, the vibration state of the gateway device at the corresponding moment is determined to be vibration, wherein the amplitude is the distance the gateway device moves relative to the central axis.
6. The method according to claim 1, characterized in that, Before acquiring multiple vibration information detected by multiple target devices within a preset detection period, the method further includes: Upon obtaining preset information, the multiple target devices are instructed to perform vibration detection using WiFi sensing technology within the detection period.
7. The method according to claim 1, characterized in that, The vibration alert output based on the multiple vibration information includes: When the multiple vibration information meets the preset conditions, a vibration prompt corresponding to the preset conditions is output. The preset conditions include multiple conditions corresponding to multiple prompt levels, and the vibration prompts corresponding to the multiple prompt levels are different.
8. The method according to claim 7, characterized in that, The preset conditions include at least one of the following: The preset device among the plurality of target devices vibrates; All of the multiple target devices vibrate; The vibration frequencies of the multiple target devices are the same; The vibration amplitude of the multiple target devices is greater than or equal to a preset threshold.
9. The method according to claim 8, characterized in that, The multiple target devices include multiple devices with different priorities, and the preset device is a device with a preset priority. Alternatively, the plurality of target devices may include devices in multiple different locations, and the preset device may be a device in a preset location.
10. The method according to claim 7, characterized in that, The method further includes: When the multiple vibration information meets the preset conditions, a vibration notification is sent to the upper-level gateway device, so that the upper-level gateway device instructs multiple gateway devices within a preset range to perform vibration detection, and when multiple vibration notifications are received from the multiple gateway devices, an earthquake alert is output.
11. A vibration alert method, characterized in that, The method includes: Vibration detection is performed within a preset detection cycle to obtain vibration information of the terminal equipment; The vibration information of the terminal device is sent to the gateway device, so that the gateway device outputs a vibration prompt based on the vibration information of multiple target devices, wherein the target devices are the gateway device or the terminal device connected to the gateway device.
12. The method according to claim 11, characterized in that, The step of performing vibration detection within a preset detection period to obtain vibration information of the terminal device includes: Vibration detection is performed using WiFi sensing technology during the detection period to obtain vibration information of the terminal device.
13. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the method as described in any one of claims 1 to 12.
14. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 12.