Electronic fence warning method and apparatus, electronic equipment and computer program
The method enhances electronic fence warnings by predicting entry or exit using motion data, optimizing detection methods to maintain sensitivity and reduce power consumption in low-power devices.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2026-04-08
AI Technical Summary
Conventional electronic fence warning methods in low-power consumption devices face issues of high power consumption or reduced sensitivity due to inappropriate setting of time intervals for positioning or Wi-Fi scanning, leading to potential state leaks and impaired user experience.
An electronic fence warning method that utilizes device motion data from acceleration and direction sensors to predict entry or exit from an electronic fence, adjusting detection methods based on prediction results to minimize unnecessary power consumption while maintaining sensitivity.
Improves fence warning sensitivity without increasing power consumption, ensuring timely notifications and reducing state omissions.
Smart Images

Figure 0007842900000001 
Figure 0007842900000002 
Figure 0007842900000003
Abstract
Description
Technical Field
[0001] [Cross - reference to Related Applications] This disclosure claims priority based on Chinese Patent Application No. CN202210580562.2, titled "Electronic Fence Warning Method and Device, Electronic Equipment, and Storage Medium", filed on May 25, 2022, and incorporates all of its content into this disclosure by reference.
[0002] This disclosure relates to the technical field of fence warnings, and particularly to an electronic fence warning method and device, electronic equipment, and a storage medium.
Background Art
[0003] With the development of communication technology and the continuous improvement of the concept of the Internet of Things, narrow - band IoT (Internet of Things) devices have more and more products applying their functions due to their characteristics such as wide network coverage, low power consumption, large number of access devices, and low module cost. Among them, there are low - power consumption tracking devices. Conventional low - power consumption tracking device products all have an electronic fence function. The geographical electronic fence warning method usually judges the state of the electronic fence by regular positioning, and when the state changes, it sends fence warning information. On the other hand, Wi - Fi electronic fences usually have two methods. The first one is to set the SSID and password of the Wi - Fi electronic fence, and judge the entry and exit situation of the Wi - Fi electronic fence by whether the device automatically connects to or disconnects from the set Wi - Fi. The second one is to set the SSID of the Wi - Fi electronic fence, and judge the entry and exit situation of the Wi - Fi electronic fence by regularly scanning the set Wi - Fi by the device.
[0004] In handling geographical electronic fences, setting the time interval too short significantly impacts the device's power consumption, while setting it too long reduces the device's sensitivity to entering and exiting the fence, leading to frequent state leaks. In handling Wi-Fi electronic fences, the first method described above is relatively sensitive, but it increases power consumption because the Wi-Fi module needs to be constantly active. In the second method, setting the time interval for periodic scans too short impacts the device's power consumption, while setting the time interval for periodic scans too long results in insufficient sensitivity to the device's response to entering and exiting the Wi-Fi electronic fence, impairing the user experience.
[0005] In other words, whether it's a geographical electronic fence or a Wi-Fi electronic fence, if a device periodically performs positioning or Wi-Fi scanning to determine whether it's entering or leaving the fence and issues a warning when entry or exit is detected, the following flaws exist: If the set time interval is too short, it increases the device's power consumption per unit time, reducing the device's usage time when the battery has the same amount of power. If the set time interval is too long, it affects the device's ability to determine whether it's entering or leaving the fence, making it prone to status omissions, and as a result, the user may not receive electronic fence warnings, impairing the user experience. [Overview of the project] [Problems that the invention aims to solve]
[0006] Embodiments of this disclosure provide an electronic fence warning method and apparatus, electronic equipment, and a storage medium to solve the problems of at least electronic fence warning failures or high power consumption. [Means for solving the problem]
[0007] The technical aspects of the embodiments of this disclosure are implemented as follows. Embodiments of this disclosure provide an electronic fence warning method that includes the steps of: reading device motion data; predicting, based on the motion data, whether the device is entering or leaving an electronic fence and obtaining a prediction result; and, in accordance with the prediction result, turning on the detection of whether the device is entering or leaving an electronic fence.
[0008] Embodiments of this disclosure further provide an electronic fence warning device comprising: an acquisition module for reading device motion data; a prediction module for predicting the state in which the device enters or leaves an electronic fence based on the motion data and acquiring the prediction result; and an on module for turning on the detection of the state in which the device enters or leaves an electronic fence according to the prediction result.
[0009] Embodiments of the present disclosure further provide an electronic device comprising a processor and memory for storing a computer program executable on the processor, wherein the processor performs steps of any of the methods described above when executing a computer program.
[0010] Embodiments of the present disclosure further provide a storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of any of the methods described above are realized. [Brief explanation of the drawing]
[0011] [Figure 1] This is a schematic flowchart of the electronic fence warning method according to the embodiment of this disclosure. [Figure 2] This is another schematic flowchart of the electronic fence warning method according to the embodiment of this disclosure. [Figure 3] This is another schematic flowchart of the electronic fence warning method according to the embodiment of this disclosure. [Figure 4] This is another schematic flowchart of the electronic fence warning method according to the embodiment of this disclosure. [Figure 5] This is a schematic diagram of a low-power tracking device according to an application embodiment of this disclosure. [Figure 6] This is a schematic diagram of the training process according to an application embodiment of this disclosure. [Figure 7] This is a schematic diagram of the warning process for a geographical electronic fence according to an embodiment of the application of this disclosure. [Figure 8] This is a schematic diagram of the warning process of a Wi-Fi electronic fence according to an embodiment of the application of this disclosure. [Figure 9] This is a schematic diagram of an electronic fence warning device according to an embodiment of the present disclosure. [Figure 10] This is an internal configuration diagram of a computer device according to an embodiment of the present disclosure. [Modes for carrying out the invention]
[0012] The present disclosure will be described in more detail below with reference to the drawings and embodiments. Embodiments of this disclosure provide an electronic fence warning method, which may include, but is not limited to, the following operations, as shown in Figure 1.
[0013] Step 101: Obtain device motion data. Step 102: Based on the motion data, predict the state in which the device enters and exits the electronic fence, and obtain the prediction result.
[0014] Step 103: In accordance with the prediction result, turn on the detection of whether the device is entering or leaving the electronic fence.
[0015] In one exemplary embodiment, the method of this embodiment is applicable to an electronic fence warning function of a low-power tracking device.
[0016] Furthermore, in this embodiment, mainly based on the data from the acceleration sensor and the direction sensor, the state of the device entering or exiting the electronic fence is predicted. According to the inference prediction result, it is necessary to determine whether to perform positioning or Wi-Fi scanning to detect the state of the device entering or exiting the fence. The acceleration sensor and the direction sensor are used to detect the acceleration information and the movement direction information of the device. The geographical electronic fence detects the state of the device entering or exiting the fence by positioning, and the Wi-Fi electronic fence detects the state of the device entering or exiting the fence by Wi-Fi scanning.
[0017] In the prior art, regarding the processing of the electronic fence, if the interval of regular positioning or regular scanning is too short, it will have a great impact on the power consumption of the device. Also, if the set time interval is too long, the judgment of entering or exiting the fence will become insensitive and state leakage is likely to occur. In contrast, in this embodiment, by calculating and analyzing the data of regular positioning and the data collected by the acceleration sensor and the direction sensor, it is determined whether it is necessary to perform a fence status check. Therefore, the status of the fence can be promptly notified to the user without shortening the time intervals of positioning and Wi-Fi scanning.
[0018] Furthermore, in one embodiment, before obtaining the movement data collected by the acceleration sensor and the direction sensor of the device, the method may further include performing positioning detection of the device to obtain the position information of the device, and determining whether the position information of the device is within a preset position range, and when the position information of the device is within the preset position range, obtaining the movement data of the device.
[0019] In one exemplary embodiment, the preset position range may be set to the range of the electronic fence, or to the range of the electronic fence and the area close to the electronic fence. In actual applications, when the device is within the range of the electronic fence, or when the device is close to the area close to the electronic fence, unnecessary calculations by the device can be reduced by acquiring motion data collected by the device's accelerometer and orientation sensor and making predictions.
[0020] Furthermore, this embodiment provides two methods for predicting the entry and exit state of a device from a fence.
[0021] The first method is as follows: Referring to Figure 2, in one embodiment, the step of predicting the state in which the device enters and exits the electronic fence based on the motion data and obtaining the prediction result is as follows: Step 201 calculates the number of steps and direction walked by the device based on the aforementioned motion data, The method includes step 202, which predicts the state in which the device enters and exits the electronic fence based on the number of steps and direction the device has walked, and obtains a prediction result.
[0022] In this embodiment, the number of steps taken and the direction taken are calculated from the data collected by the acceleration sensor and the direction sensor, and based on the calculation results, it is determined whether or not it is necessary to perform positioning or Wi-Fi scanning to detect whether the user is entering or leaving the fence.
[0023] The second method is as follows: In one embodiment, the step of predicting the state in which the device enters and exits the electronic fence based on the motion data and obtaining the prediction result is: The process includes inputting the motion data into a trained predictive model to obtain a prediction of when the device enters or leaves the electronic fence.
[0024] In this embodiment, data from an acceleration sensor and a direction sensor are used as the input layer of a convolutional neural network, and whether or not the device is moving out of or entering the coverage area of the electronic fence is used as the output layer to train a deep learning model. The trained model is then converted to a model suitable for a microcontroller and incorporated into the tracking device to which it belongs. When a low-power tracking device is inside or approaching an electronic fence, the data collected by the acceleration sensor and direction sensor is inferred by the model, and based on the inference result, it is determined whether or not it is necessary to perform positioning or a Wi-Fi scan to detect whether the device is entering or leaving the fence.
[0025] Furthermore, in one embodiment, the step of determining whether or not to detect whether the device is entering or leaving the electronic fence, based on the prediction result, If the prediction result is that the device enters or leaves the electronic fence, the method includes the step of turning on detection of the device entering or leaving the electronic fence.
[0026] In one exemplary embodiment, if the prediction result is that the device will move away from the electronic fence, the detection of the device entering or leaving the electronic fence is turned on, or if the prediction result is that the device will enter the electronic fence, the detection of the device entering or leaving the electronic fence is turned on.
[0027] Furthermore, if the prediction result indicates that the state in which the device enters and exits the electronic fence remains unchanged, that is, if the device continues to be inside the electronic fence, the detection of the device's state of entering and exiting the electronic fence is performed according to the original settings. For example, the state in which the device enters and exits the electronic fence is detected by performing periodic positioning or periodic scanning at a predetermined time interval. Alternatively, the detection of the device's state of entering and exiting the electronic fence is not performed. Or, if the device continues to be outside the electronic fence, please refer to the following embodiment for the execution process.
[0028] Furthermore, since the electronic fence includes both geographical electronic fences and Wi-Fi electronic fences, when actually detecting, the detection of whether a device is entering or leaving an electronic fence can be performed in different ways for different types of electronic fences.
[0029] Furthermore, referring to Figure 3, in one embodiment, if the prediction result is that the device moves away from the electronic fence and the electronic fence is a geographical electronic fence, the step of turning on the detection of the device entering or leaving the electronic fence is: Step 301 involves detecting the position of the device and obtaining the location information of the device, Step 302 determines whether the device has moved away from the electronic fence based on the location information, The method includes step 303, if it is determined that the device has moved away from the electronic fence based on the location information, sending a warning that the device has moved away from the electronic fence.
[0030] During actual use, if the low-power tracking device is within a geographical electronic fence, the system predicts the data collected by the accelerometer and orientation sensor, and if it predicts that the device will move away from the geographical electronic fence, it performs a positioning test to check whether the device has moved away from the electronic fence, and if it has moved out of the electronic fence's range, it sends a warning notification to the user.
[0031] In one embodiment, if it is determined that the device has moved away from the electronic fence based on the location information, the method The steps include obtaining the distance and relative direction between the device and the center of the electronic fence based on the position information, The steps include determining whether the distance is greater than the radius of the electronic fence and less than a first preset threshold, If it is determined that the distance is greater than the radius of the electronic fence and less than a first preset threshold, the steps include: acquiring motion data of the device, predicting the state in which the device enters or leaves the electronic fence based on the motion data, and acquiring the prediction result; If the prediction result is that the device enters the electronic fence, the system further includes the steps of: detecting the position of the device, obtaining location information of the device, determining whether the device has entered the electronic fence based on the location information; if it is determined that the device has entered the electronic fence based on the location information, sending a warning that the device has entered the electronic fence; and if it is determined that the device has not entered the electronic fence based on the location information, subsequently obtaining motion data of the device and performing an operation to predict whether the device is entering or leaving the electronic fence based on the motion data.
[0032] In this embodiment, if the low-power tracking device is outside the geographical electronic fence, the distance from the center of the fence and the relative direction are calculated for each periodic positioning. If the distance is greater than the radius of the fence and less than a first preset threshold, a prediction is made using data collected by the acceleration sensor and direction sensor. If the prediction result indicates that the device will enter the fence's range, a positioning is performed once. If the device enters the fence's range, a warning notification indicating that the device has entered the fence is sent. If the device is not in the fence, the next prediction and positioning are performed using the method described above.
[0033] Furthermore, referring to Figure 4, in one embodiment, if the prediction result is that the device moves away from the electronic fence and the electronic fence is a Wi-Fi electronic fence, the step of turning on the detection of the device entering or leaving the electronic fence is: Step 401 involves performing a Wi-Fi scan to detect whether the device has moved away from the electronic fence, The method includes step 402, which, if it is detected that the device has moved away from the electronic fence, sends a warning that the device has moved away from the electronic fence.
[0034] During actual use, if the low-power tracking device is within a Wi-Fi electronic fence, upon entering the fence for the first time, it performs a positioning test, records data, and makes a prediction based on the data collected by the accelerometer and orientation sensor. If the prediction result indicates that the device should leave the Wi-Fi electronic fence, it performs a Wi-Fi scan to detect whether the device has left the fence. If the device has left the fence's range, it sends a warning notification to the user that it has left the Wi-Fi electronic fence; if it has not left the fence, it continues to perform the next prediction and Wi-Fi scan using the same method as described above.
[0035] In one embodiment, if it is detected that the device has moved away from the electronic fence, the method The steps include: acquiring positioning data when the device first enters the electronic fence; A step of calculating the distance and direction between the device and the positioning data, If the aforementioned distance is greater than the coverage range of the electronic fence and less than a second preset threshold, the steps include: acquiring motion data of the device; predicting the state in which the device enters or leaves the electronic fence based on the motion data; and acquiring the prediction result. If the prediction result is that the device enters the electronic fence, the further steps include performing a Wi-Fi scan to detect whether the device has entered the electronic fence, and if it is detected that the device has entered the electronic fence, sending a warning that the device has entered the electronic fence, and if it is detected that the device has not entered the electronic fence, subsequently acquiring motion data of the device and performing an operation to predict the state in which the device enters or leaves the electronic fence based on the motion data.
[0036] In this embodiment, if the low-power tracking device is outside the Wi-Fi electronic fence, and positioning data exists within the fence, the distance and relative direction from the positioning data within the fence are calculated for each periodic positioning. If the distance is greater than the coverage range of the fence and less than a second preset threshold, a prediction is made using the data collected by the acceleration sensor and direction sensor. If the prediction result indicates that the device will enter the fence's range, a Wi-Fi scan is performed once. If the device enters the fence's range, a warning notification is sent indicating that the device has entered the fence. If the device is not in the fence, the next inference and Wi-Fi scan are performed using the method described above.
[0037] The electronic fence warning method provided by embodiments of this disclosure reads device motion data, predicts the state in which the device enters or leaves the electronic fence based on the motion data, obtains the prediction result, and turns on the detection of the state in which the device enters or leaves the electronic fence according to the prediction result. By adopting the embodiments provided by this disclosure, the sensitivity of the fence warning can be improved without affecting the power consumption of the device.
[0038] The present disclosure will be described in more detail below with reference to applicable embodiments. This embodiment provides an electronic fence warning method for a low-power tracking device to solve the problem of not providing timely warnings in the processing of electronic fences in low-power tracking devices, which can lead to fence status leaks. The fence warning method provided by this embodiment can improve the sensitivity of fence warnings without affecting the power consumption of the device.
[0039] In one exemplary embodiment, with reference to Figure 5, the low-power tracking device may include, but is not limited to, an accelerometer 501, a direction sensor 502, an MCU control module 503, a GPS module 504, and a Wi-Fi module 505. Here, the accelerometer is used to collect acceleration information, and the direction sensor is used to collect information on the device's direction of travel. Of course, other components with similar functions could also be used in this embodiment.
[0040] The configuration shown in Figure 5 is only schematic and does not limit the configuration of the low-power tracking device described above. For example, the low-power tracking device may include more or fewer components than those shown in Figure 5, or it may have a configuration different from that shown in Figure 5.
[0041] Furthermore, referring to Figure 6, the model training process for the low-power tracking device may include the following operations.
[0042] Step 601: Using the low-power tracking device, collect data on when the accelerometer and direction sensor move into and out of the electronic fence range.
[0043] Step 602: The collected data is used as the input layer of a convolutional neural network, and whether the data is outside the coverage range of the electronic fence or inside the coverage range of the electronic fence is used as the output layer of the convolutional neural network to train the deep learning model.
[0044] Step 603: Convert the trained model into a model suitable for the microcontroller and integrate it into the tracking device.
[0045] Furthermore, referring to Figure 7, if the electronic fence of the low-power tracking device is a geographical electronic fence, the warning flow is as follows.
[0046] Step 701: After the low-power tracking device has completed positioning, determine whether the device's state relative to the geographical electronic fence matches the previous fence state.
[0047] Step 702: If the status of the device for the geographical electronic fence does not match the previous fence status, a fence status warning notification is sent to the user.
[0048] Step 703: Determine whether the low-power tracking device is within the geographical electronic fence.
[0049] Step 704: If the device is within a geographical electronic fence, predict the data collected by the accelerometer and orientation sensor.
[0050] Step 705: Determine whether the prediction result is to move away from the fence. Step 706: If the prediction is to move away from the fence, perform positioning, check the fence status, and if you have left the fence, send a geographical electronic fence warning; otherwise, repeat steps 704 and 705.
[0051] Step 707: If the device is outside the geographical electronic fence, determine whether the distance from the center of the fence to the previously periodically positioned location is greater than the radius of the fence and does not exceed a preset threshold.
[0052] Step 708: If the device is outside the fence, and its distance from the center of the fence is greater than the radius of the fence, and does not exceed a preset threshold, predict the data collected by the acceleration sensor and the orientation sensor.
[0053] Step 709: Evaluate the prediction results. Step 710: If the prediction result is to enter the fence, perform positioning, check the fence status, and if the fence is entered, send an electronic fence warning; otherwise, repeat steps 708 and 709.
[0054] Furthermore, referring to Figure 8, if the electronic fence of the low-power tracking device is a Wi-Fi electronic fence, the warning flow is as follows.
[0055] Step 801: After the low-power tracking device has completed the Wi-Fi scan, determine whether the device's state relative to the Wi-Fi electronic fence matches the previous fence state.
[0056] Step 802: If the device's status relative to the Wi-Fi electronic fence does not match the previous fence status, a fence status warning notification is sent to the user.
[0057] Step 803: Determine whether the device is inside a Wi-Fi electronic fence. Step 804: Determine whether the device has fence position information.
[0058] Step 805: If the device is within a Wi-Fi electronic fence and there is no fence location information, perform a positioning operation and record the fence location information.
[0059] Step 806: Predict the data collected by the accelerometer and orientation sensor. Step 807: Predict whether the device will move away from the fence.
[0060] Step 808: If the prediction is to move away from the fence, perform a Wi-Fi scan to check the fence status. If the user has moved away from the fence, send a Wi-Fi electronic fence warning. Otherwise, repeat steps 806 and 807.
[0061] Step 809: Determine that the device is outside the Wi-Fi electronic fence and that the fence location information is stored.
[0062] Step 810: Determine whether the distance of the device from the fence position exceeds a preset threshold.
[0063] Step 811: If the distance of the device from the fence does not exceed a preset distance threshold, predict the data collected by the acceleration sensor and the orientation sensor.
[0064] Step 812: If the prediction result is to enter the fence, perform a Wi-Fi scan to check the fence status. If the vehicle enters the fence, send an electronic fence warning. Otherwise, repeat steps 811 and 812.
[0065] In this embodiment, the sensitivity of the fence warning can be improved without affecting the power consumption of the device.
[0066] To implement the method according to the embodiments of this disclosure, an electronic fence warning device is further provided in the embodiments of this disclosure. As shown in Figure 9, the electronic fence warning device 900 comprises an acquisition module 901, a prediction module 902, and an on-module 903.
[0067] The acquisition module 901 reads the device's motion data. The prediction module 902 predicts, based on the motion data, the state in which the device enters and exits the electronic fence, and obtains the prediction result.
[0068] The on-module 903 turns on the detection of whether the device is entering or leaving the electronic fence, according to the prediction result.
[0069] In actual applications, the acquisition module 901, the prediction module 902, and the on-module 903 may be implemented by the processor of the electronic fence warning device.
[0070] Although the device provided by the above embodiment is described using only the division of each program module as an example during execution, in actual application, the above processing can be completed in different program modules as needed. That is, the internal configuration of the terminal can be divided into different program modules to complete all or part of the processing described above. Furthermore, the device provided by the above embodiment belongs to the same concept as the embodiment of the method described above, and for details of its specific implementation process, please refer to the embodiment of the method, but the explanation will not be repeated here.
[0071] To implement the method according to the embodiments of the present disclosure, embodiments of the present disclosure further provide a computer program product including computer instructions stored on a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor causes the computer device to perform the steps of the above method by executing the computer instructions.
[0072] Based on the hardware implementation of the program module described above, and in order to realize the method according to the embodiment of this disclosure, embodiments of this disclosure further provide an electronic device (computer device). In one exemplary embodiment, for example, this computer device may be a terminal, and its internal configuration diagram may be as shown in Figure 10. This computer device includes a processor A01 connected via a system bus, a network interface A02, a display screen A04, an input device A05, and memory (not shown). The processor A01 of this computer device is used to provide computing and control capabilities. The memory of this computer device includes internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operating system B01 and the computer program B02 in the non-volatile storage medium A06 to operate. The network interface A02 of this computer device is used to connect and communicate with an external terminal via a network. When this computer program is executed by the processor A01, the method according to any one embodiment described above is realized. The display screen A04 of this computer device may be a liquid crystal display or an electronic ink display, and the input device A05 of this computer device may be a touch layer covering the display screen, a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse.
[0073] The configuration shown in Figure 10 is merely a block diagram illustrating a part of the configuration relating to the aspects of this disclosure and does not limit the computer devices to which the aspects of this disclosure apply. A person skilled in the art will understand that a specific computer device may have more or fewer components than those shown, or may combine some of the components, or may have a different arrangement of components.
[0074] The device provided by the embodiments of this disclosure comprises a processor, memory, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of the embodiments described above is realized.
[0075] Those skilled in the art will understand that embodiments of the present disclosure may be provided as methods, systems, or computer program products. Accordingly, the present disclosure may take the form of complete hardware embodiments, complete software embodiments, or embodiments combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-readable storage media (including, but not limited to, disk memory, CD-ROM, optical memory, etc.) containing computer-readable program code.
[0076] This disclosure will be described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of this disclosure. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a dedicated computer, an embedded processor, or other programmable data processing device to generate a machine that, from instructions executed by the processor of the computer or other programmable data processing device, generates a device for realizing one or more flows in the flowchart and / or one or more blocks in the block diagram.
[0077] These computer program instructions may be stored in computer-readable memory that can operate a computer or other programmable data processing device in a particular manner, thereby generating a product equipped with an instruction unit that implements functions specified in one or more flows of a flowchart and / or one or more blocks of a block diagram from the instructions stored in this computer-readable memory.
[0078] These computer program instructions may be loaded into a computer or other programmable data processing device, thereby generating a process implemented by the computer by executing a series of operational steps on the computer or other programmable device, and the instructions executed on the computer or other programmable device provide steps to implement a function specified in one or more flows of a flowchart and / or one or more blocks of a block diagram.
[0079] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0080] Memory can include various forms of computer-readable media, such as volatile memory, random access memory (RAM), and / or non-volatile memory like read-only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
[0081] Computer-readable media include volatile and non-volatile, removable and non-removable media that can store information by any method or technique. The information may be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random-access memory (SRAM), dynamic random-access memory (DRAM), other types of random-access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disk read-only memory (CD-ROM), digital purpose discs (DVDs) or other optical storage, compact cassettes, magnetic tape / magnetic disk storage or other magnetic storage devices or other non-transmission media that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media such as modulated data signals and carrier waves.
[0082] It will be understood that the memory in the embodiments of this disclosure may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM®), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM). Magnetic surface memory may be disk memory or tape memory. Volatile memory may be random access memory (RAM) that functions as an external cache.While not limited to these, various forms of RAM can be used, for example, static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synclink dynamic random access memory (SLDRAM), and direct Rambus random access memory (DRRAM). The memories described in embodiments of this disclosure are intended to include, but are not limited to, these and any other suitable types of memory.
[0083] Furthermore, the terms “contains,” “has,” or any other variations thereof are intended to cover what is included without exclusivity, so that a process, method, product, or device containing a set of elements includes not only those elements but also other elements not expressly listed, or elements specific to such a process, method, product, or device. Unless otherwise specified, an element limited by the phrase “contains one…” does not preclude the presence of other identical elements in a process, method, product, or device containing that element.
[0084] The foregoing describes only embodiments of the Disclosure and is not intended to limit the Disclosure. Those skilled in the art can make various modifications and alterations to the Disclosure. Any modifications, substitutions, or improvements within the ideas and principles of the Disclosure should be included within the scope of the Disclosure.
Claims
1. Steps to read device motion data, The steps include predicting the state in which the device enters and exits the electronic fence based on the aforementioned motion data, and obtaining the prediction result, The steps include: turning on the detection of whether the device is entering or leaving the electronic fence, in accordance with the prediction result; Includes, If the prediction result is that the device will move away from the electronic fence and the electronic fence is a geographical electronic fence, the step of turning on the detection of the device entering or leaving the electronic fence includes the steps of: detecting the position of the device and obtaining the location information of the device; determining whether the device has moved away from the electronic fence based on the location information; and, if it is determined that the device has moved away from the electronic fence based on the location information, sending a warning that the device has moved away from the electronic fence. If, based on the location information, it is determined that the device has moved away from the electronic fence, the further steps include: obtaining the distance and relative direction between the device and the center of the electronic fence based on the location information; determining whether the distance is greater than the radius of the electronic fence and less than a first preset threshold; if the distance is determined to be greater than the radius of the electronic fence and less than a first preset threshold, obtaining motion data of the device, predicting the state in which the device enters or leaves the electronic fence based on the motion data, and obtaining the prediction result; if the prediction result is that the device enters the electronic fence, performing position detection of the device, obtaining location information of the device, determining whether the device has entered the electronic fence based on the location information, and, if it is determined that the device has entered the electronic fence based on the location information, sending a warning that the device has entered the electronic fence, or, if it is determined that the device has not entered the electronic fence based on the location information, continuing to obtain motion data of the device and performing an operation to predict the state in which the device enters or leaves the electronic fence based on the motion data, or, If the prediction result is that the device will leave the electronic fence and the electronic fence is a Wi-Fi electronic fence, the step of turning on detection of the device entering or leaving the electronic fence includes the steps of performing a Wi-Fi scan to detect whether the device has left the electronic fence, and if it is detected that the device has left the electronic fence, sending a warning that the device has left the electronic fence. An electronic fence warning method, which includes the steps of: detecting that the device has left the electronic fence; further, acquiring positioning data from when the device first entered the electronic fence; calculating the distance and direction between the device and the positioning data; if the distance is greater than the coverage range of the electronic fence and less than a second preset threshold, acquiring motion data of the device, predicting the state in which the device will enter or leave the electronic fence based on the motion data, and acquiring the prediction result; if the prediction result is that the device will enter the electronic fence, performing a Wi-Fi scan to detect whether the device has entered the electronic fence, and if it is detected that the device has entered the electronic fence, sending a warning that the device has entered the electronic fence; and if it is detected that the device has not entered the electronic fence, continuing to acquire motion data of the device and performing an operation to predict the state in which the device will enter or leave the electronic fence based on the motion data.
2. Before acquiring the device motion data, the electronic fence warning method The steps include: detecting the position of the device and obtaining the location information of the device; The step of determining whether the location information of the device is within a predetermined location range, The electronic fence warning method according to claim 1, further comprising the step of reading motion data of the device if the location information of the device is within a predetermined location range.
3. The step of predicting the state in which the device enters and exits the electronic fence based on the motion data and obtaining the prediction result is as follows: A step of calculating the number of steps and direction walked by the device based on the aforementioned motion data, The electronic fence warning method according to claim 1, comprising the steps of predicting whether the device enters or leaves the electronic fence based on the number of steps and direction the device has walked, and obtaining a prediction result.
4. The step of predicting the state in which the device enters and exits the electronic fence based on the motion data and obtaining the prediction result is as follows: The electronic fence warning method according to claim 1, further comprising the step of inputting the motion data into a trained predictive model to obtain a prediction result of when the device enters or leaves the electronic fence.
5. The step of turning on the detection of whether the device is entering or leaving the electronic fence, in accordance with the prediction result, The electronic fence warning method according to claim 1, further comprising the step of turning on detection of the device entering or leaving the electronic fence if the prediction result is that the device enters or leaves the electronic fence.
6. An electronic device comprising a processor and memory for storing computer programs that can be executed on the processor, The processor is an electronic device that, when executing the computer program, performs the steps of the electronic fence warning method according to any one of claims 1 to 5.
7. A computer program configured to cause a computer to execute the electronic fence warning method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Adaptive geofence detection methods, devices, electronic equipment, and management methods
CN108318902B
Low-power position determination for detecting geofence
JP2016531277A