Electronic fence alarm methods, devices, vehicles, media and program products
By obtaining the vehicle's current location and identifying the number and shape of fences, calculating the distance to the circumcircle, and selecting the nearest fence as the alarm fence, the alarm error caused by irregular electronic fence boundaries and multiple fence intersections is solved, thus improving the user experience.
Patent Information
- Application Number
- CN202410445835.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-12
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2044-04-12
AI Technical Summary
Irregular boundaries of vehicle geofences can lead to errors in alarm information, and multiple geofences can make it impossible to determine alarm boundaries, resulting in a poor user experience.
By obtaining the vehicle's current location, the number of geofences within the current location range is identified. Based on the number and shape of the geofences, an alarm geofence is determined. The distance between the current location and the circumcircle is calculated, the nearest geofence is selected as the alarm geofence, and the vehicle is controlled to issue an alarm action when it deviates from the preset range.
It improves the user experience, solves the problems of alarm information errors caused by irregular electronic fence boundaries and the inability to determine alarm boundaries for multiple fences, and improves the accuracy of alarms and user satisfaction.
Smart Images

Figure CN118230480B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and in particular to an alarm method, device, vehicle, medium, and program product for an electronic fence. Background Technology
[0002] A car geofence is a virtual object invisible to the naked eye. It's a monitoring system installed on vehicles, providing real-time tracking, alarms, location tracking, and vehicle locator functions, safeguarding vehicle anti-theft, security, and data monitoring. The geofence allows for customized driving zones, issuing a warning when a vehicle leaves that zone.
[0003] In related technologies, irregular boundaries of vehicle geofences can lead to errors in alarm information, or the inability to determine alarm boundaries between multiple geofences can result in a poor user experience. Summary of the Invention
[0004] This application provides an alarm method, device, vehicle, medium, and program product for electronic fences to solve problems in related technologies, such as the irregular boundaries of vehicle electronic fences leading to errors in alarm information, or the inability to determine alarm boundaries for multiple electronic fences resulting in a poor user experience.
[0005] The first aspect of this application provides an alarm method for an electronic fence, comprising the following steps: obtaining the current location of a vehicle; identifying the number of electronic fences within a first preset range of the current location, and determining an alarm electronic fence corresponding to the current location based on the number of current electronic fences; if the current location deviates from a second preset range of the alarm electronic fence, controlling the vehicle to issue an alarm action.
[0006] Optionally, determining the alarm electronic fence corresponding to the current location based on the current number of electronic fences includes: if there are multiple electronic fences within the first preset range, and the current location is located within the intersection range of multiple alarm electronic fences, then the electronic fence with the closest distance to the current location relative to the electronic fence boundary is selected as the alarm fence.
[0007] Optionally, selecting the electronic fence closest to the current location relative to the electronic fence boundary as the alarm fence includes: identifying the actual shape of the electronic fence; if the actual shape of the electronic fence is an irregular fence, obtaining the boundary points of multiple electronic fences; generating a corresponding circumcircle based on the boundary points of each electronic fence; when the current location is located within the intersection range of multiple alarm electronic fences, calculating the distance from the current location to the center of the circumcircle; and selecting the electronic fence corresponding to the shortest distance between the current location and the center of the circumcircle as the alarm fence.
[0008] Optionally, before obtaining the vehicle's current location, the process includes: identifying the driver's actual intention; and selecting a vehicle-assigned geofence and alarm method based on the actual intention.
[0009] A second aspect of this application provides an alarm device for an electronic fence, comprising: an acquisition module for acquiring the current location of a vehicle; a first identification module for identifying the number of electronic fences within a first preset range of the current location, and determining an alarm electronic fence corresponding to the current location based on the number of current electronic fences; and a control module for controlling the vehicle to issue an alarm action if the current location deviates from a second preset range of the alarm electronic fence.
[0010] Optionally, the first identification module is further configured to: if there are multiple electronic fences within the first preset range, and the current location is located within the intersection range of multiple alarm electronic fences, then select the electronic fence with the closest distance to the electronic fence boundary of the current location as the alarm fence.
[0011] Optionally, the first identification module is further configured to: identify the actual shape of the electronic fence; if the actual shape of the electronic fence is an irregular fence, obtain the boundary points of multiple electronic fences; generate a corresponding circumcircle based on the boundary points of each electronic fence; when the current location is located within the intersection range of multiple alarm electronic fences, calculate the distance between the current location and the center of the circumcircle; and select the electronic fence corresponding to the shortest distance between the current location and the center of the circumcircle as the alarm fence.
[0012] Optionally, it also includes: a second identification module for identifying the driver's actual intention; and selecting the vehicle ownership geofence and alarm method according to the actual intention.
[0013] A third aspect of this application provides a vehicle comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement an alarm method for an electronic fence as described in the above embodiments.
[0014] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the alarm method for an electronic fence as described in the above embodiments.
[0015] The fifth aspect of this application provides a computer program product, which, when executed, is used to implement the alarm method for an electronic fence as described in the above embodiments.
[0016] Therefore, this application has at least the following beneficial effects:
[0017] This application embodiment can determine the final alarm electronic fence based on the number of electronic fences, and determine the boundary of the alarm electronic fence based on the actual shape of the electronic fence. When the current location of the vehicle deviates from the preset range of the alarm electronic fence, the vehicle is controlled to alarm, thereby improving the user experience. This solves the problems in related technologies, such as the irregular boundary of the vehicle's electronic fence causing errors in alarm information, or the inability to determine the alarm boundary of multiple electronic fences leading to a poor user experience.
[0018] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0019] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0020] Figure 1 This is a flowchart of an alarm method for an electronic fence according to an embodiment of this application;
[0021] Figure 2 This is a schematic diagram of a vehicle electronic fence monitoring intelligent judgment and alarm method provided according to an embodiment of this application;
[0022] Figure 3 This is a schematic diagram of multiple fence boundaries provided according to an embodiment of this application;
[0023] Figure 4 This is a block diagram of an alarm device for an electronic fence according to an embodiment of this application;
[0024] Figure 5 This is a structural schematic diagram of a vehicle according to an embodiment of this application. Detailed Implementation
[0025] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0026] In the context of big data, the demand for setting up geofencing alerts for different vehicles entering different areas is becoming increasingly complex. Current geofencing systems have the following problems in judging vehicle geofencing:
[0027] 1. After setting the radius of the electronic fence, a distance judgment error will occur when using a fixed radius fence.
[0028] 2. When the same vehicle belongs to multiple fences, the fence selection may be incorrect.
[0029] 3. If vehicle data reporting is abnormal, it will cause fence judgment and alarm anomalies.
[0030] To address the above scenarios, a method is designed that uses the real-time geographic location reported by the TBox and then calculates and determines the electronic fence and triggers an alarm based on the preset electronic fence location.
[0031] This application can use preset fences and vehicle-reported location information to determine the status of the electronic fence through algorithms and send alarms according to the configured alarm methods.
[0032] The alarm method, apparatus, vehicle, storage medium, and program product of the electronic fence according to embodiments of this application are described below with reference to the accompanying drawings. Specifically, Figure 1 This is a flowchart illustrating an alarm method for an electronic fence provided in an embodiment of this application.
[0033] like Figure 1 As shown, the alarm method of this electronic fence includes the following steps:
[0034] In step S101, the current location of the vehicle is obtained.
[0035] It is understood that the embodiments of this application can obtain the current location of the vehicle based on global positioning information or other means, so as to facilitate the subsequent identification of the number of electronic fences within the first preset range of the current location.
[0036] In this embodiment of the application, before obtaining the current location of the vehicle, the process includes: identifying the driver's actual intention; and selecting the vehicle's geofence and alarm method based on the actual intention.
[0037] It is understood that the embodiments of this application can select the vehicle ownership geofence and alarm method according to the driver's actual intention, so as to meet the user's driving needs.
[0038] It should be noted that this application allows you to select the fence range where the vehicle belongs. Multiple fences can be selected for which the vehicle needs to be alerted. The alert method can be selected via API push, SMS, WeChat, etc., and multiple options are allowed without specific limitations.
[0039] In step S102, the number of electronic fences within the first preset range of the current location is identified, and the alarm electronic fence corresponding to the current location is determined based on the current number of electronic fences.
[0040] The first preset range can be 1km or 2km, and can be set according to the actual situation without specific limitations.
[0041] It is understood that the embodiments of this application can identify the number of electronic fences within the first preset range of the current location, and determine the alarm electronic fence corresponding to the current location based on the current number of electronic fences, so as to control the vehicle to issue an alarm action when the location deviates from the second preset range of the alarm electronic fence.
[0042] In this embodiment of the application, determining the alarm electronic fence corresponding to the current location based on the current number of electronic fences includes: if there are multiple electronic fences within a first preset range, and the current location is located within the intersection range of multiple alarm electronic fences, then the electronic fence with the closest distance to the current location relative to the electronic fence boundary is selected as the alarm fence.
[0043] It is understood that, in embodiments of this application, when there are multiple electronic fences and the current location is located within the intersection of multiple alarm electronic fences, the electronic fence with the closest distance to the boundary of the current location relative to the electronic fence can be selected as the alarm fence, thereby determining the alarm fence and improving the user experience.
[0044] In this embodiment of the application, selecting the electronic fence closest to the current location relative to the electronic fence boundary as the alarm fence includes: identifying the actual shape of the electronic fence; if the actual shape of the electronic fence is an irregular fence, then obtaining the boundary points of multiple electronic fences; generating a corresponding circumcircle based on the boundary points of each electronic fence; if the current location is located within the intersection range of multiple alarm electronic fences, then calculating the distance from the current location to the center of the circumcircle; selecting the electronic fence corresponding to the shortest distance from the current location to the center of the circumcircle as the alarm fence.
[0045] It is understood that the embodiments of this application can generate circumcircles based on the boundary points of electronic fences of different shapes. If the current location is within the intersection range of multiple alarm electronic fences, the distance from the current location to the center of the circumcircle is calculated, and the resistor fence corresponding to the shortest distance is selected as the alarm fence, which greatly reduces the difficulty of fence determination.
[0046] It should be noted that, with Figure 3 Taking the example of two overlapping irregular fences, if this is extended to more irregular fences, the boundaries of the overlapping parts will become more complex, making conventional fence determination difficult. Now, a circumscribed circle is used to handle the overlapping parts, which greatly reduces the difficulty of fence determination. Furthermore, from a practical application perspective, when a vehicle enters the overlapping area of multiple fences, it indicates that the vehicle has a tendency to enter the actual fence; therefore, this method of determining fence boundaries is chosen for fence alerts.
[0047] Specifically, the multi-fence calculation boundary rules are as follows: (1) Find the circumcircle of each fence and find the center of the circle, as shown in the figure above for fence 1 and fence 2; (2) Calculate the boundary of the intersection of the fences using the circumcircle as the boundary of the new fence to form a new fence 3 (shaded area); (3) Determine whether the current vehicle coordinates are within fence 3. If they are within the new fence 3, calculate the distance between the coordinates and the circumcircle of fence 1 and fence 2, and take the fence with the closest distance as the alarm fence.
[0048] In step S103, if the current location deviates from the second preset range of the alarm electronic fence, the vehicle is controlled to issue an alarm action.
[0049] The second preset range can be 0.5km or 1km, and can be set according to the actual situation without specific limitations.
[0050] It is understood that, according to the embodiments of this application, if the current location deviates from the second preset range of the alarm electronic fence, the vehicle can be controlled to issue an alarm action, thereby improving the user experience.
[0051] According to the electronic fence alarm method proposed in this application embodiment, the final alarm electronic fence is determined based on the number of electronic fences, and the boundary of the alarm electronic fence is determined based on the actual shape of the electronic fence. When the current location of the vehicle deviates from the preset range of the alarm electronic fence, the vehicle is controlled to alarm, thereby improving the user experience. This solves the problems in related technologies, such as the irregular boundary of the vehicle's electronic fence causing errors in alarm information, or the inability to determine the alarm boundary of multiple electronic fences leading to a poor user experience.
[0052] The following will combine Figure 2 and Figure 3 The alarm method of the electronic fence in this application is described in detail below:
[0053] Step 1, vehicle data acquisition: Each vehicle has a different data reporting device, such as a TBox, for near real-time reporting.
[0054] Step 2, Fence Preset: Configure the preset fence information through the configuration page.
[0055] Step 3, Select the fence range to which the vehicle belongs: Select the fence range to which the vehicle needs to be alerted; multiple selections are possible.
[0056] Step 4, select alarm method: Supports selection of API push, SMS, WeChat, etc., multiple selections are allowed.
[0057] Step 5, Select whether to issue an alarm when the vehicle is stationary: When the vehicle does not report data in real time via TBox, should the fence status be determined based on historical reported data?
[0058] Step 6, Start the electronic fence service: Start the alarm service and calculate multiple fence boundaries.
[0059] Specifically, the multi-fence calculation boundary rules are as follows: (1) Find the circumcircle of each fence and find the center of the circle, as shown in the figure above for fence 1 and fence 2; (2) Calculate the boundary of the intersection of the fences using the circumcircle as the boundary of the new fence to form a new fence 3 (shaded area); (3) Determine whether the current vehicle coordinates are within fence 3. If they are within the new fence 3, calculate the distance between the coordinates and the circumcircle of fence 1 and fence 2, and take the fence with the closest distance as the alarm fence.
[0060] It should be noted that, with Figure 3 Taking the example of two overlapping irregular fences, if this is extended to more irregular fences, the boundaries of the overlapping parts will become more complex, making conventional fence determination difficult. Now, a circumscribed circle is used to handle the overlapping parts, which greatly reduces the difficulty of fence determination. Furthermore, from a practical application perspective, when a vehicle enters the overlapping area of multiple fences, it indicates that the vehicle has a tendency to enter the actual fence; therefore, this method of determining fence boundaries is chosen for fence alerts.
[0061] Step 7: Determine the geofence status based on the vehicle's TBox information and whether to send an alert.
[0062] Next, with reference to the accompanying drawings, an alarm device for an electronic fence according to an embodiment of this application is described.
[0063] Figure 4 This is a block diagram of the alarm device for an electronic fence according to an embodiment of this application.
[0064] like Figure 4 As shown, the alarm device 10 of the electronic fence includes: an acquisition module 100, a first identification module 200, and a control module 300.
[0065] The acquisition module 100 is used to acquire the current location of the vehicle; the first identification module 200 is used to identify the number of electronic fences within a first preset range of the current location, and determine the alarm electronic fence corresponding to the current location based on the number of electronic fences; the control module 300 is used to control the vehicle to issue an alarm action if the current location deviates from a second preset range of the alarm electronic fence.
[0066] In this embodiment of the application, the first identification module 200 is further configured to: if there are multiple electronic fences within the first preset range, and the current location is located within the intersection range of multiple alarm electronic fences, then select the electronic fence with the closest distance to the electronic fence boundary of the current location as the alarm fence.
[0067] In this embodiment of the application, the first identification module 200 is further configured to: identify the actual shape of the electronic fence; if the actual shape of the electronic fence is an irregular fence, obtain the boundary points of multiple electronic fences; generate a corresponding circumcircle based on the boundary points of each electronic fence; if the current location is within the intersection range of multiple alarm electronic fences, calculate the distance between the current location and the center of the circumcircle; select the electronic fence corresponding to the shortest distance between the current location and the center of the circumcircle as the alarm fence.
[0068] In this embodiment of the application, it further includes: a second identification module, used to identify the driver's actual intention; and select the vehicle ownership electronic fence and alarm method according to the actual intention.
[0069] It should be noted that the foregoing explanation of the alarm method embodiment for electronic fences also applies to the alarm device of the electronic fence in this embodiment, and will not be repeated here.
[0070] The alarm device for electronic fences proposed in this application determines the final alarm electronic fence based on the number of electronic fences and determines the boundary of the alarm electronic fence based on the actual shape of the electronic fence. When the current location of the vehicle deviates from the preset range of the alarm electronic fence, the vehicle is controlled to alarm, thereby improving the user experience. This solves the problems in related technologies, such as the irregular boundary of the vehicle's electronic fence causing errors in alarm information, or the inability to determine the alarm boundary of multiple electronic fences leading to a poor user experience.
[0071] Figure 5 A schematic diagram of the structure of a vehicle provided in an embodiment of this application. The vehicle may include:
[0072] The memory 501, the processor 502, and the computer program stored on the memory 501 and capable of running on the processor 502.
[0073] When the processor 502 executes the program, it implements the alarm method for the electronic fence provided in the above embodiments.
[0074] Furthermore, the vehicle also includes:
[0075] Communication interface 503 is used for communication between memory 501 and processor 502.
[0076] The memory 501 is used to store computer programs that can run on the processor 502.
[0077] The memory 501 may include high-speed RAM (Random Access Memory) memory, and may also include non-volatile memory, such as at least one disk storage.
[0078] If the memory 501, processor 502, and communication interface 503 are implemented independently, then the communication interface 503, memory 501, and processor 502 can be interconnected via a bus to complete communication between them. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0079] Optionally, in a specific implementation, if the memory 501, processor 502, and communication interface 503 are integrated on a single chip, then the memory 501, processor 502, and communication interface 503 can communicate with each other through an internal interface.
[0080] Processor 502 may be a CPU (Central Processing Unit), an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of this application.
[0081] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described electronic fence alarm method.
[0082] This application also provides a computer program product, which, when executed, is used to implement the alarm method for an electronic fence as described in the above embodiments.
[0083] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0084] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0085] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0086] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or more of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (FPGAs), field-programmable gate arrays (FPGAs), etc.
[0087] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0088] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. An alerting method of an electronic fence, characterized by, The method comprises the following steps: acquiring a current position of a vehicle; identifying a number of electronic fences within a first preset range of the current position, and determining an alarm electronic fence corresponding to the current position based on the number of electronic fences, wherein the determination of the alarm electronic fence corresponding to the current position based on the number of electronic fences comprises: if the number of electronic fences within the first preset range is multiple and the current position is located within an intersection range of multiple alarm electronic fences, selecting an electronic fence closest to a boundary of the electronic fence relative to the current position as the alarm electronic fence, wherein the selection of the electronic fence closest to the boundary of the electronic fence relative to the current position as the alarm electronic fence comprises: identifying an actual shape of the electronic fence; if the actual shape of the electronic fence is an irregular fence, acquiring boundary points of multiple electronic fences; generating a circumscribed circle corresponding to each electronic fence according to the boundary points of the electronic fence; when the current position is located within the intersection range of multiple alarm electronic fences, calculating a distance between the current position and a center of the circumscribed circle; and selecting an electronic fence corresponding to a shortest distance between the current position and the center of the circumscribed circle as the alarm fence; if the current position deviates from a second preset range of the alarm electronic fence, controlling the vehicle to perform an alarm action.
2. The alerting method of an electronic fence according to claim 1, wherein, Before the acquisition of the current position of the vehicle, the method comprises: identifying an actual intention of a driver; selecting a vehicle belonging electronic fence and an alarm mode according to the actual intention.
3. An alarm device for an electric fence, characterised in that The method comprises: an acquisition module configured to acquire a current position of a vehicle; a first identification module configured to identify a number of electronic fences within a first preset range of the current position, and determine an alarm electronic fence corresponding to the current position based on the number of electronic fences, wherein the determination of the alarm electronic fence corresponding to the current position based on the number of electronic fences comprises: if the number of electronic fences within the first preset range is multiple and the current position is located within an intersection range of multiple alarm electronic fences, selecting an electronic fence closest to a boundary of the electronic fence relative to the current position as the alarm electronic fence; wherein the selection of the electronic fence closest to the boundary of the electronic fence relative to the current position as the alarm electronic fence comprises: identifying an actual shape of the electronic fence; if the actual shape of the electronic fence is an irregular fence, acquiring boundary points of multiple electronic fences; generating a circumscribed circle corresponding to each electronic fence according to the boundary points of the electronic fence; when the current position is located within the intersection range of multiple alarm electronic fences, calculating a distance between the current position and a center of the circumscribed circle; and selecting an electronic fence corresponding to a shortest distance between the current position and the center of the circumscribed circle as the alarm fence; a control module configured to, if the current position deviates from a second preset range of the alarm electronic fence, control the vehicle to perform an alarm action.
4. A vehicle characterized by comprising: The method comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the alarm method of the electronic fence according to any one of claims 1-2.
5. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by a processor for implementing the alert method of the electronic fence according to any one of claims 1-2.
6. A computer program product, characterised in that, The computer program is executed for implementing the alert method of the electronic fence according to any one of claims 1-2.
Citation Information
Patent Citations
City intelligent bus management and control method and system based on electronic fence
CN112907938A
Vehicle monitoring method and device based on vehicle-mounted T-BOX, vehicle and medium
CN113423063A