Electronic fence warning method and device, electronic device, and computer program
The method predicts fence state changes using sensor data to optimize electronic fence detection in low-power devices, enhancing sensitivity and reducing power consumption.
Patent Information
- Application Number
- JP2024565324
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-05-25
- Filing Date
- 2023-02-28
- Publication Date
- 2025-07-16
- Estimated Expiration
- 2043-02-28
AI Technical Summary
Conventional electronic fence warning methods in low-power consumption devices face issues of high power consumption or insensitive fence state detection due to inappropriate time intervals for positioning and Wi-Fi scanning, leading to potential state leakage and poor user experience.
An electronic fence warning method that predicts the device's entry or exit from an electronic fence using movement data from sensors, determining when to perform positioning or Wi-Fi scanning based on prediction results to enhance sensitivity without increasing power consumption.
Improves the sensitivity of fence warnings by reducing unnecessary calculations and maintaining low power consumption, ensuring timely notifications without state leakage.
Smart Images

Figure 2025522644000001_ABST
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 in particular, to an electronic fence warning method and device, electronic equipment, and 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 characteristics such as wide network coverage, low power consumption, a 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 periodic positioning and sends fence warning information when the state changes. On the other hand, there are usually two ways for Wi - Fi electronic fences. The first 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 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 periodically scanning the set Wi - Fi by the device.
[0004] In the processing of a geographical electronic fence, if the set time interval is too short, it will have a great impact on the power consumption of the device. On the other hand, if the set time interval is too long, the judgment of entering and leaving the fence will become insensitive, and status leakage is likely to occur. In the processing of a Wi-Fi electronic fence, the first method mentioned above is relatively sensitive, but since the Wi-Fi module must always be in an operating state, the power consumption increases. In the second method, if the time interval of periodic scanning is too short, it will affect the power consumption of the device. Also, if the time interval of periodic scanning is too long, the device's response to entering and leaving the Wi-Fi electronic fence is not sufficiently sensitive, which will damage the user experience.
[0005] That is, whether it is a geographical electronic fence or a Wi-Fi electronic fence, when the device periodically performs positioning or Wi-Fi scanning to determine the entry and exit status of the electronic fence and issues a warning when detecting entry and exit from the fence, there are the following defects. That is, if the set time interval is too short, it will increase the power consumption per unit time of the device, and in the state where the battery has the same power, it will shorten the usage time of the device. Also, if the set time interval is too long, it will affect the judgment of the device's entry and exit from the fence, and status leakage is likely to occur. As a result, the user cannot receive the electronic fence warning, which will damage the user experience.
Summary of the Invention
Problems to be Solved by the Invention
[0006] Embodiments of the present disclosure provide an electronic fence warning method, an apparatus, an electronic device, and a storage medium to solve at least the problems of electronic fence warning leakage occurring or high power consumption.
Means for Solving the Problems
[0007] The technical aspects of the embodiments of the present disclosure are realized as follows. In an embodiment of the present disclosure, there is provided an electronic fence warning method including: a step of reading movement data of a device; a step of predicting a state in which the device enters or exits an electronic fence based on the movement data and obtaining a prediction result; and a step of turning on detection of the state in which the device enters or exits the electronic fence according to the prediction result.
[0008] In an embodiment of the present disclosure, there is further provided an electronic fence warning device including: an acquisition module that reads movement data of a device; a prediction module that predicts a state in which the device enters or exits an electronic fence based on the movement data and obtains a prediction result; and an on module that turns on detection of the state in which the device enters or exits the electronic fence according to the prediction result.
[0009] In an embodiment of the present disclosure, there is further provided an electronic device including a processor and a memory for storing a computer program executable on the processor. When the processor executes the computer program, the processor executes the steps of any of the above-described methods.
[0010] In an embodiment of the present disclosure, there is further provided a storage medium storing a computer program, where when the computer program is executed by a processor, the steps of any of the above-described methods are realized.
Brief Description of the Drawings
[0011]
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Embodiments for Carrying Out the Invention
[0012] Hereinafter, the present disclosure will be described in more detail with reference to the drawings and embodiments. In an embodiment of the present disclosure, an electronic fence warning method is provided. As shown in FIG. 1, this method may include the following operations, but is not limited thereto.
[0013] Step 101: Obtain movement data of the device. Step 102: Based on the movement data, predict the state of the device entering and exiting the electronic fence, and obtain a prediction result.
[0014] Step 103: According to the prediction result, turn on the detection of the state of the device entering and exiting the electronic fence.
[0015] In one exemplary embodiment, the method of this embodiment is applicable to the electronic fence warning function of a low-power consumption 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 leaving 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 leaving 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 leaving the fence by positioning, and the Wi-Fi electronic fence detects the state of the device entering or leaving 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 leaving 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 check the state of the fence. Therefore, without shortening the time intervals of positioning and Wi-Fi scanning, the state of the fence can be promptly notified to the user.
[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; determining whether the position information of the device is within a preset position range; 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 may be set to the range of the electronic fence and the range close to the periphery of the electronic fence. In actual application, when the device is within the range of the electronic fence or when the device is in a range close to the periphery of the electronic fence, unnecessary calculations by the device can be reduced by obtaining the motion data collected by the acceleration sensor and the direction sensor of the device and making a prediction.
[0020] Furthermore, in this embodiment, two methods for predicting the state of the device entering and leaving the fence can be provided.
[0021] The first method is as follows. Referring to FIG. 2, in one embodiment, based on the motion data, the step of predicting the state of the device entering and leaving the electronic fence and obtaining a prediction result includes: step 201 of calculating the number of steps and direction that the device has walked based on the motion data; step 202 of predicting the state of the device entering and leaving the electronic fence based on the number of steps and direction that the device has walked and obtaining a prediction result.
[0022] In this embodiment, the number of steps and direction walked are calculated based on the data collected by the acceleration sensor and the direction sensor, and according to the calculation result, it is necessary to determine whether to perform positioning or Wi-Fi scanning to detect the state of entering and leaving the fence.
[0023] The second method is as follows. In one embodiment, based on the motion data, the step of predicting the state of the device entering and leaving the electronic fence and obtaining a prediction result includes: inputting the motion data into a trained prediction model and obtaining a prediction result of the state of the device entering and leaving the electronic fence.
[0024] In this embodiment, the data of the acceleration sensor and the direction sensor are used as the input layer of the convolutional neural network, and whether to leave the coverage range of the electronic fence or enter the coverage range of the electronic fence is used as the output layer to perform deep learning training. After training, the model is converted into a model suitable for a microcontroller and incorporated into the corresponding tracking device. When the low-power consumption tracking device is inside the electronic fence or approaching the electronic fence, the data collected by the acceleration sensor and the direction sensor are inferred by the model, and according to the inference result, it is necessary to determine whether to perform positioning or Wi-Fi scanning to detect the entry and exit state of the fence.
[0025] Furthermore, in one embodiment, the step of determining whether to detect the state of the device entering and leaving the electronic fence according to the prediction result is When the prediction result is that the device enters the electronic fence or the device leaves the electronic fence, the step includes turning on the detection of the state of the device entering and leaving the electronic fence.
[0026] In one exemplary embodiment, when the prediction result is that the device leaves the electronic fence, the detection of the state of the device entering and leaving the electronic fence is turned on, or when the prediction result is that the device enters the electronic fence, the detection of the state of the device entering and leaving the electronic fence is turned on.
[0027] Also, when the prediction result is that the state of the device entering and leaving the electronic fence does not change, that is, when the device continues to exist inside the electronic fence, the detection of the state of the device entering and leaving the electronic fence is performed as originally set. For example, by performing periodic positioning or periodic scanning at a preset time interval, the state of the device entering and leaving the electronic fence is detected. Alternatively, the detection of the state of the device entering and leaving the electronic fence is not performed. Alternatively, when the device continues to exist outside the electronic fence, refer to the following embodiments for the execution process.
[0028] Also, since the electronic fence includes a geographical electronic fence and a Wi-Fi electronic fence, when actually detecting, for different types of electronic fences, in the present disclosure, the device can detect the state of entering and leaving the electronic fence in different ways.
[0029] Furthermore, referring to FIG. 3, in one embodiment, when the prediction result is that the device leaves the electronic fence and the electronic fence is a geographical electronic fence, the steps of turning on the detection of the state of the device entering and leaving the electronic fence are as follows: Performing positioning detection of the device to obtain the position information of the device, step 301; Based on the position information, determining whether the device has left the electronic fence, step 302; Based on the position information, when it is determined that the device has left the electronic fence, including step 303 of sending a warning indicating that the device has left the electronic fence.
[0030] During actual use, when the low-power consumption tracking device is within the geographical electronic fence, predicting the data collected by the acceleration sensor and the direction sensor, and when it is predicted that the device will leave the geographical electronic fence, performing positioning once to confirm whether the device has left the electronic fence, and if it has left the range of the electronic fence, sending a warning notification to the user.
[0031] In one embodiment, based on the position information, when it is determined that the device has left the electronic fence, the method includes: Based on the position information, obtaining the distance and relative direction between the device and the center of the electronic fence; Determining whether the distance is greater than the radius of the electronic fence and less than a first preset threshold; When it is determined that the distance is greater than the radius of the electronic fence and less than a first preset threshold, obtain the movement data of the device, predict the state of the device entering and leaving the electronic fence based on the movement data, and obtain a prediction result. When the prediction result is that the device enters the electronic fence, perform positioning detection of the device to obtain the position information of the device. Based on the position information, determine whether the device has entered the electronic fence. And, when it is determined based on the position information that the device has entered the electronic fence, send a warning that the device has entered the electronic fence. Also, when it is determined based on the position information that the device has not entered the electronic fence, continue to obtain the movement data of the device and perform an operation of predicting the state of the device entering and leaving the electronic fence based on the movement data.
[0032] In this embodiment, when the low-power tracking device is outside the geographical electronic fence, calculate the distance and relative direction from the center of the fence for each periodic positioning. When the distance is greater than the radius of the fence and less than a first preset threshold, perform a prediction based on the data collected by the acceleration sensor and the direction sensor. When the prediction result is that it enters the range of the fence, perform a positioning once. When it enters the range of the fence, send a warning notification that it has entered the fence. When it has not entered the fence, continue to perform the next prediction and positioning by the above method.
[0033] Furthermore, referring to FIG. 4, in one embodiment, when the prediction result is that the device leaves the electronic fence and the electronic fence is a Wi-Fi electronic fence, the step of turning on the detection of the state of the device entering and leaving the electronic fence is: Perform a Wi-Fi scan and detect whether the device has left the electronic fence in step 401. When it is detected that the device has left the electronic fence, step 402 of sending a warning that the device has left the electronic fence is included.
[0034] During actual use, when the low-power tracking device is within the Wi-Fi electronic fence, when it enters the fence for the first time, positioning is performed once, data is recorded, and predictions are made based on the data collected by the acceleration sensor and the direction sensor. If the prediction result is that the device will leave the Wi-Fi electronic fence, a Wi-Fi scan is performed to detect whether the device has left the fence. If it has left the range of the fence, a warning notification that the device has left the Wi-Fi electronic fence is sent to the user. If it has not left the fence, the above method is continued to perform the next prediction and Wi-Fi scan.
[0035] In one embodiment, when it is detected that the device has left the electronic fence, the method includes the step of obtaining positioning data when the device first enters the electronic fence; the step of calculating the distance and direction between the device and the positioning data; when the distance is greater than the coverage range of the electronic fence and less than a second preset threshold, obtaining movement data of the device, predicting the state of the device entering and leaving the electronic fence based on the movement data, and obtaining a prediction result; when 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 when it is detected that the device has entered the electronic fence, sending a warning that the device has entered the electronic fence, and when it is detected that the device has not entered the electronic fence, continuing to obtain the movement data of the device and performing the operation of predicting the state of the device entering and leaving the electronic fence based on the movement data.
[0036] In this embodiment, when the low-power consumption tracking device is outside the Wi-Fi electronic fence, if there is positioning data within the fence, the distance and relative direction are calculated from the positioning data within the fence for each periodic positioning. When the distance is greater than the coverage range of the fence and less than a second preset threshold, prediction is performed based on the data collected by the acceleration sensor and the direction sensor. If the prediction result is that the device will enter the range of the fence, a Wi-Fi scan is performed once. If the device enters the range of the fence, a warning notification indicating entry into the fence is sent. If the device has not entered the fence, the above method is continued for the next inference and Wi-Fi scan.
[0037] In the electronic fence warning method provided by the embodiments of the present disclosure, the movement data of the device is read, and based on the movement data, the state of the device entering and leaving the electronic fence is predicted to obtain a prediction result. Then, according to the prediction result, the detection of the state of the device entering and leaving the electronic fence is turned on. By adopting the aspect provided by the present disclosure, the sensitivity of the fence warning can be improved without affecting the power consumption of the device.
[0038] Hereinafter, the present disclosure will be described in more detail with reference to the application embodiments. In this application embodiment, in the process of processing the electronic fence of the low-power consumption tracking device, an electronic fence warning method for the low-power consumption tracking device is provided to solve the problem that warnings are not given in a timely manner, and as a result, the state of the fence leaks. The fence warning method provided by this embodiment can improve the sensitivity of the fence warning without affecting the power consumption of the device.
[0039] In one exemplary embodiment, referring to FIG. 5, the low-power consumption tracking device may include, but is not limited to, an acceleration sensor 501, a direction sensor 502, an MCU control module 503, a GPS module 504, and a Wi-Fi module 505. Here, the acceleration sensor is used to collect acceleration information, and the direction sensor is used to collect the running direction information of the device. Of course, in this embodiment, other components having similar functions may also be adopted.
[0040] The configuration shown in FIG. 5 is only schematic and does not limit the configuration of the above low-power consumption tracking device. For example, the low-power consumption tracking device may further include more or fewer components than those shown in FIG. 5, or may have a configuration different from that shown in FIG. 5.
[0041] Furthermore, referring to FIG. 6, the model training process of the low-power consumption tracking device may include the following operations.
[0042] Step 601: Using the low-power consumption tracking device, move to collect data on whether the acceleration sensor and the direction sensor enter or leave the range of the electronic fence.
[0043] Step 602: Use the collected data as the input layer of the convolutional neural network, and use whether to leave the coverage range of the electronic fence or enter the coverage range of the electronic fence as the output layer of the convolutional neural network to perform deep learning training.
[0044] Step 603: Convert the trained model into a model suitable for the microcontroller and incorporate it into the tracking device.
[0045] Also, referring to FIG. 7, when the electronic fence of the low-power consumption tracking device is a geographical electronic fence, the warning flow is as follows.
[0046] Step 701: After the low-power consumption tracking device completes positioning, determine whether the state of the device with respect to the geographical electronic fence matches the state of the previous fence.
[0047] Step 702: If the state of the device with respect to the geographical electronic fence does not match the state of the previous fence, send a fence status warning notification to the user.
[0048] Step 703: Determine whether the low-power consumption tracking device is within the geographical electronic fence.
[0049] Step 704: If the device is within the geographical electronic fence, predict the data collected by the acceleration sensor and the direction sensor.
[0050] Step 705: Determine whether the prediction result is to leave the fence. Step 706: If the prediction result is to leave the fence, perform positioning, check the status of the fence, and if it exits 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 at the previously regularly measured position 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, the distance from the center of the fence is greater than the radius of the fence, and it does not exceed the preset threshold, predict the data collected by the acceleration sensor and the direction sensor.
[0053] Step 709: Judge the prediction result. Step 710: If the prediction result is to enter the fence, perform positioning, check the status of the fence, and if entering the fence, send an electronic fence warning; otherwise, repeat steps 708 and 709.
[0054] Also, referring to FIG. 8, when the electronic fence of the low-power consumption tracking device is a Wi-Fi electronic fence, the warning flow is as follows.
[0055] Step 801: After the low-power consumption tracking device completes a Wi-Fi scan, determine whether the status of the device with respect to the Wi-Fi electronic fence matches the status of the previous fence.
[0056] Step 802: If the status of the device with respect to the Wi-Fi electronic fence does not match the status of the previous fence, send a fence status warning notification to the user.
[0057] Step 803: Determine whether the device is within the Wi-Fi electronic fence. Step 804: Determine whether the device has fence position information.
[0058] Step 805: If the device is within the Wi-Fi electronic fence and there is no fence position information, perform positioning once and record the fence position information.
[0059] Step 806: Predict the data collected by the acceleration sensor and the direction sensor. Step 807: Predict whether the device will leave the fence.
[0060] Step 808: If the prediction result is to leave the fence, perform a Wi-Fi scan, check the status of the fence, and if leaving 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 the fence location information is saved.
[0062] Step 810: Determine whether the distance of the device from the fence location exceeds a preset threshold.
[0063] Step 811: If the distance of the device from the fence does not exceed the preset distance threshold, predict the data collected by the acceleration sensor and the direction sensor.
[0064] Step 812: If the prediction result is that the device will enter the fence, perform a Wi-Fi scan, check the status of the fence, and if the device 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 embodiment of the present disclosure, in the embodiment of the present disclosure, an electronic fence warning device is further provided. As shown in FIG. 9, the electronic fence warning device 900 includes an acquisition module 901, a prediction module 902, and a turn-on module 903.
[0067] The acquisition module 901 reads the movement data of the device. The prediction module 902 predicts the state of the device entering and leaving the electronic fence based on the movement data and obtains a prediction result.
[0068] The turn-on module 903 turns on the detection of the state of the device entering and leaving the electronic fence according to the prediction result.
[0069] In actual application, the acquisition module 901, the prediction module 902, and the turn-on module 903 may be implemented by the processor of the electronic fence warning device.
[0070] In addition, the device provided by the above embodiment is only described by taking the division of the above program modules as an example during execution. However, during actual application, if necessary, the above processing can be completed by different program modules, that is, the internal configuration of the terminal can be divided into different program modules to complete all or part of the above-described processing. Also, the device provided by the above embodiment belongs to the same concept as the embodiment of the above method. For details of its specific implementation process, please refer to the embodiment of the method, and the description will not be repeated here.
[0071] In order to implement the method according to the embodiment of the present disclosure, in the embodiment of the present disclosure, a computer program product including computer instructions stored in a computer-readable storage medium is further provided. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and by executing the computer instructions, the processor causes the computer device to execute the steps of the above method.
[0072] Based on the hardware implementation of the above program module and to implement the method according to the embodiments of the present disclosure, in the embodiments of the present disclosure, an electronic device (computer device) is further provided. In one exemplary embodiment, by way of example, this computer device may be a terminal, and its internal configuration diagram may be as shown in FIG. 10. This computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05, and a memory (not shown) connected via a system bus. The processor A01 of this computer device is used to provide computing and control capabilities. The memory of this computer device includes an internal memory A03 and a non-volatile storage medium A06. The operating system B01 and the computer program B02 are stored in this non-volatile storage medium A06. 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 of the above-described embodiments 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, or a key, a trackball, or a touch pad provided on the housing of the computer device, or further, an external keyboard, a touch pad, or a mouse, etc.
[0073] The configuration shown in FIG. 10 is only a block diagram showing a part of the configuration according to the aspect of the present disclosure, and does not limit the computer device to which the aspect of the present disclosure is applied. Those skilled in the art can understand that a specific computer device may have more or fewer components than those shown, or combine some components, or have different arrangements of components.
[0074] The device provided by the embodiments of the present disclosure includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the method according to any one of the above-described embodiments is realized.
[0075] Those skilled in the art will understand that the embodiments of the present disclosure can be provided as a method, a system, or a computer program product. Therefore, the present disclosure can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.
[0076] The present disclosure is described with reference to the flowcharts and / or block diagrams of the method, device (system), and computer program product according to the embodiments of the present disclosure. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be realized by computer program instructions. These computer program instructions are provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, thereby generating an apparatus for realizing the functions specified by one or more flows of the flowchart and / or one or more blocks of the block diagram from the instructions executed by the processor of the computer or other programmable data processing device.
[0077] These computer program instructions may be stored in a computer-readable memory capable of causing a computer or other programmable data processing apparatus to operate in a particular manner, such that an article of manufacture is created having an instruction device for realizing the functions specified by 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 onto a computer or other programmable data processing apparatus, thereby causing a series of operational steps to be executed on the computer or other programmable apparatus to generate a process implemented on the computer, and the instructions executed on the computer or other programmable apparatus provide steps for realizing the functions specified by 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), an input / output interface, a network interface, and a memory.
[0080] The memory may include forms such as volatile memory, random access memory (RAM), and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM) among computer-readable media. The memory is an example of a computer-readable medium.
[0081] A computer-readable medium includes volatile and non-volatile, removable and non-removable media that can implement information storage by any method or technology. 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 disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, compact cassette, magnetic tape, magnetic disk storage or other magnetic storage devices or other non-transitory media that can be used to store information accessible by a computing device. As defined herein, a computer-readable medium does not include transitory media such as modulated data signals and carrier waves.
[0082] The memory of the embodiments of the present disclosure may be a volatile memory or a non-volatile memory, and it will be understood that it may include both a volatile memory and a non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM (registered trademark)), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM). The magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be a random access memory (RAM) that functions as an external cache.While not limiting, by way of example, various forms of RAM can be used, such as 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), Direct Rambus Random Access Memory (DRRAM). The memory described in the embodiments of the present disclosure is intended to include these and any other suitable types of memory, but not be limited thereto.
[0083] Also, the term "comprising", "having" or any other variation is intended to cover non-exclusively what is included, so a process, method, article or device that comprises a series of elements includes not only those elements but also other elements not expressly listed or elements specific to such a process, method, article or device. Absent further limitation, an element limited by the phrase "comprising one..." does not preclude the presence of further identical elements in the process, method, article or device that comprises the element.
[0084] The above are merely embodiments of the present disclosure and are not intended to limit the present disclosure. Those skilled in the art can make various changes and modifications to the present disclosure. Any modifications, equivalent replacements, improvements, etc. within the spirit and principles of the present disclosure should be included within the protection scope of the present disclosure.
Claims
1. A step of reading movement data of a device; A step of predicting, based on the movement data, a state in which the device enters or exits an electronic fence and obtaining a prediction result; A step of turning on detection of a state in which the device enters or exits the electronic fence according to the prediction result; An electronic fence warning method including the above.
2. Before obtaining movement data of a device, the electronic fence warning method includes: Performing positioning detection of the device to obtain position information of the device; Determining whether the position information of the device is within a preset position range; When the position information of the device is within a preset position range, further including a step of reading movement data of the device. The electronic fence warning method according to claim 1.
3. The step of predicting, based on the movement data, a state in which the device enters or exits the electronic fence and obtaining a prediction result includes: Calculating the number of steps and direction walked by the device based on the movement data; Predicting, based on the number of steps and direction walked by the device, a state in which the device enters or exits the electronic fence and obtaining a prediction result. The electronic fence warning method according to claim 1.
4. The step of predicting, based on the movement data, a state in which the device enters or exits the electronic fence and obtaining a prediction result includes: Inputting the movement data into a trained prediction model to obtain a prediction result of a state in which the device enters or exits the electronic fence. The electronic fence warning method according to claim 1.
5. The step of turning on detection of a state in which the device enters or exits the electronic fence according to the prediction result includes: When the prediction result is that the device enters the electronic fence or the device leaves the electronic fence, turning on detection of a state in which the device enters or exits the electronic fence. The electronic fence warning method according to claim 1.
6. When the prediction result is that the device leaves the electronic fence and the electronic fence is a geographical electronic fence, the step of turning on detection of a state in which the device enters or exits the electronic fence includes: Performing positioning detection of the device to obtain position information of the device; Determining whether the device has left the electronic fence based on the position information; The electronic fence warning method according to claim 5, further comprising: when it is determined based on the position information that the device has left the electronic fence, sending a warning indicating that the device has left the electronic fence.
7. When it is determined based on the position information that the device has left the electronic fence, the electronic fence warning method further comprises: Obtaining the distance and relative direction between the device and the center of the electronic fence based on the position information; Determining whether the distance is greater than the radius of the electronic fence and less than a first preset threshold; When it is determined that the distance is greater than the radius of the electronic fence and less than a first preset threshold, obtaining the movement data of the device, predicting the state of the device entering and leaving the electronic fence based on the movement data, and obtaining a prediction result; When the prediction result is that the device will enter the electronic fence, performing positioning detection of the device to obtain the position information of the device, determining whether the device has entered the electronic fence based on the position information, and when it is determined based on the position information that the device has entered the electronic fence, sending a warning indicating that the device has entered the electronic fence, or when it is determined based on the position information that the device has not entered the electronic fence, continuously obtaining the movement data of the device and performing an operation of predicting the state of the device entering and leaving the electronic fence based on the movement data. The electronic fence warning method according to claim 6 further comprises the above steps.
8. When 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 the detection of the state of the device entering and leaving the electronic fence comprises: Performing a Wi-Fi scan to detect whether the device has left the electronic fence; When it is detected that the device has left the electronic fence, sending a warning indicating that the device has left the electronic fence. The electronic fence warning method according to claim 5 further comprises the above steps.
9. When it is detected that the device has left the electronic fence, the electronic fence warning method obtains positioning data when the device first enters the electronic fence; calculates the distance and direction between the device and the positioning data; when the distance is greater than the coverage range of the electronic fence and less than a second preset threshold, obtains movement data of the device, predicts a state in which the device enters and exits the electronic fence based on the movement data, and obtains a prediction result; when the prediction result is that the device will enter the electronic fence, performs a Wi-Fi scan, detects whether the device has entered the electronic fence, and when it is detected that the device has entered the electronic fence, sends a warning indicating that the device has entered the electronic fence, and when it is detected that the device has not entered the electronic fence, continues to obtain movement data of the device and performs an operation of predicting a state in which the device enters and exits the electronic fence based on the movement data. The electronic fence warning method according to claim 8, further comprising.
10. An electronic device comprising a processor and a memory for storing a computer program executable on the processor, wherein the processor, when executing the computer program, executes the steps of the electronic fence warning method according to any one of claims 1 to 9.
11. A storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the electronic fence warning method according to any one of claims 1 to 9 are realized.
Citation Information
Patent Citations
Adaptive geofence detection methods, devices, electronic equipment, and management methods
CN108318902B
Low-power position determination for detecting geofence
JP2016531277A