CN116056003B - Geofence triggering method and related electronic equipment - Google Patents

Geofence triggering method and related electronic equipment Download PDF

Info

Publication number
CN116056003B
CN116056003B CN202211058828.3A CN202211058828A CN116056003B CN 116056003 B CN116056003 B CN 116056003B CN 202211058828 A CN202211058828 A CN 202211058828A CN 116056003 B CN116056003 B CN 116056003B
Authority
CN
China
Prior art keywords
geofence
information
service
triggering
cell
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211058828.3A
Other languages
Chinese (zh)
Other versions
CN116056003A (en
Inventor
田舒
刘成科
陈志辉
刘兴宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211058828.3A priority Critical patent/CN116056003B/en
Publication of CN116056003A publication Critical patent/CN116056003A/en
Application granted granted Critical
Publication of CN116056003B publication Critical patent/CN116056003B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a geofence triggering method and related electronic equipment, wherein the method comprises the following steps: if the cell switching is detected, the electronic equipment acquires cell information of the switched cell; determining a geofence service corresponding to the cell information in a first characteristic information list; the first characteristic information list comprises a plurality of pieces of cell information, in the first characteristic information list, each piece of target cell information corresponds to at least one piece of geofence service, and a cell indicated by the target cell information has a geofence; triggering a geofence corresponding to the target geofence service; and the target geofence service is a service meeting a triggering condition in the geofence service corresponding to the cell information.

Description

Geofence triggering method and related electronic equipment
Technical Field
The present application relates to the field of location services, and in particular, to a method for triggering a geofence and related electronic devices.
Background
Geofencing (Geo-fencing) is a new application of location based services (Location Based Service, LBS) that is to enclose a virtual geographic boundary with a virtual fence. The handset may receive automatic notifications and alerts when it enters, leaves, or is active within a particular geographic area. With geofencing technology, a location social networking site can help users automatically register when they enter a certain area.
With the development of 5G technology, the method based on network positioning such as base stations is more and more accurate, and different geofences can be formed based on different service requirements. In this way, when the electronic equipment determines that the range of the area where the user is located is matched with the fence data through positioning, the user is considered to enter the fence, the service is triggered, and various service recommendations are performed.
Disclosure of Invention
The embodiment of the application provides a geofence triggering method and related electronic equipment, which solve the problems that the electronic equipment uses a plurality of modules (or a plurality of threads) to trigger and detect geofences of different geofence service types, so that excessive computing resources of the electronic equipment are caused, and the working performance of the electronic equipment is influenced.
In a first aspect, an embodiment of the present application provides a method for triggering a geofence, which is applied to an electronic device, where the method includes: if the cell is detected to be switched, the electronic equipment acquires cell information of the switched cell; determining a geofence service corresponding to the cell information in a first characteristic information list; the first characteristic information list comprises a plurality of pieces of cell information, in the first characteristic information list, each piece of target cell information corresponds to at least one piece of geofence service, and a cell indicated by the target cell information has a geofence; triggering a geofence corresponding to the target geofence service; the target geofence service is a service meeting a triggering condition in the geofence service corresponding to the cell information.
In the above embodiment, the electronic device may trigger the geofence after determining the geofence that meets the triggering condition through the cell information of the cell after the handover in the first feature information list. For traditional geofence triggering methods, the electronic device needs to trigger detection of geofences of different types of geofence services with multiple modules (or multiple threads), namely: each module (or each thread) determines, based on the cell information, whether the geofence service corresponding to the module (or thread) satisfies the trigger condition. In the method for triggering the geofence provided by the embodiment of the application, the electronic equipment only needs to use one module (or one thread) to determine the target geofence service corresponding to the cell information in the first characteristic information list according to the switched cell information. Since each cell information corresponds to at least one geofence service in the first list of characteristic information. Therefore, under the condition that a plurality of geofence services exist in the target geofence service, the electronic equipment can use one module (or one thread) to detect the geofence services of a plurality of types, so that the number of the modules (or threads) used by the electronic equipment is greatly reduced, a large amount of computing resources of the electronic equipment are saved, and the working performance of the electronic equipment is improved.
With reference to the first aspect, in one possible implementation manner, triggering a geofence corresponding to a target geofence service specifically includes: if a first service exists in the geofence service corresponding to the cell information, the electronic equipment triggers a first geofence, wherein the first geofence is the geofence corresponding to the first service, and the first service is the geofence service with the triggering precision being the first triggering precision in a geofence white list; if a second service exists in the geofence service corresponding to the cell information, acquiring current geographic position information; the second service is a geofence service which is in the geofence white list and has a triggering precision of second triggering precision or third triggering precision, wherein the first triggering precision is smaller than the second triggering precision, and the second triggering precision is smaller than the third triggering precision; calculating first grid identification information according to the current geographic position information; judging whether the second geofence meets the triggering condition or not based on the first grid identification information and the second characteristic information list; the second geofence is a geofence corresponding to the first grid identification information; and if the triggering condition is met, triggering the second geofence.
In the above-described embodiments, for a geofence service of low trigger accuracy (first trigger accuracy), the electronic device performs trigger detection based on only cell information. For the middle-high-precision (first trigger precision and second trigger precision) geofence service, the electronic equipment also performs trigger detection by combining with the grid information of the current position of the electronic equipment on the basis that the cell information meets the trigger condition, and the corresponding geofence can be triggered after the detection is met. Because the electronic device obtains the current geographic location increases power consumption, and for a low trigger precision geofence service, the corresponding geofence can be triggered as long as it is detected within the cell. Therefore, the power consumption of the electronic equipment can be saved by adopting different standard trigger detection standards for the geofence services with different trigger precision.
With reference to the first aspect, in a possible implementation manner, in the first feature information list, each geofence service corresponds to identification information of one or more geofences; wherein the second characteristic information list comprises identification information of a plurality of geofences, and the identification information of each geofence corresponds to at least one grid identification information.
In the above embodiment, the cell information is associated with the identification information of the geofence, and the identification information of the geofence is associated with the identification information of the grid. In this way, when the geofence corresponding to the grid identification information calculated by the electronic equipment meets the triggering condition, and the grid identification information calculated by the electronic equipment corresponds to the geofence with multiple services, the electronic equipment can trigger multiple types of geofences simultaneously by checking the grid identification information once, so that the efficiency of triggering and detecting the geofence by the electronic equipment is greatly improved.
With reference to the first aspect, in one possible implementation manner, in the second feature information list, identification information of each first target geofence corresponds to at least one piece of wifi information, a triggering precision of a service corresponding to the first target geofence is a third triggering precision, and whether the second geofence meets a triggering condition or not is judged based on the first grid identification information and the second feature information list, which specifically includes: acquiring identification information of a second geofence from the first characteristic information list; determining a grid identification set of each second geofence in the second characteristic information list according to the identification information of the second geofence; each grid identification set includes at least one grid identification information; if the target grid identification set exists and the triggering precision of the geofence service corresponding to the target grid identification set is the second triggering precision, determining that the second geofence meets the triggering condition; the target grid identification set is a set with the same grid identification information as the first grid identification information; if the target grid identification set exists and the triggering precision of the geofence service corresponding to the target grid identification set is the third triggering precision, matching is carried out according to the scanned wifi information and the wifi information of the second geofence in the second characteristic information list; if the matching is successful, determining that the second geofence meets the triggering condition.
With reference to the first aspect, in one possible implementation manner, acquiring current geographic location information includes: and acquiring the longitude and latitude of the current position through network positioning or GPS positioning, wherein the longitude and latitude are the current geographic position information.
With reference to the first aspect, in one possible implementation manner, acquiring current geographic location information includes: scanning neighbor cell base stations of the switched cells; receiving data information acquired by a neighbor cell base station; and calculating the longitude and latitude of the current position according to the data information, wherein the longitude and latitude are the current geographic position information.
With reference to the first aspect, in one possible implementation manner, if the triggering condition is not satisfied, calculating a positioning duration; after the positioning time period, a process of acquiring current geographic position information is performed.
With reference to the first aspect, in one possible implementation manner, calculating a positioning duration includes: in the case that a plurality of second geofences exist, calculating the distance between the center point of each second geofence and the current geographic position; determining the minimum distance as a first distance; and calculating the positioning time length based on the first distance and the current moving speed of the electronic equipment.
With reference to the first aspect, in a possible implementation manner, the electronic device includes a geofence identification application, a service recommendation application, and a base station module, and the method includes: if the base station module detects that the cell is switched, sending cell information of the switched cell to the geofence recognition application; the geofence recognition application determines a geofence service corresponding to the cell information in the first characteristic information list; the geofence recognition application sending a fence trigger message to the service recommendation application, the fence trigger message including a service tag of the target geofence service; the service recommendation application triggers a geofence corresponding to the target geofence service.
In the above embodiment, the electronic device may trigger the geofence after determining the geofence that meets the triggering condition through the cell information of the cell after the handover in the first feature information list. For traditional geofence triggering methods, the electronic device needs to trigger detection of geofences of different types of geofence services with multiple modules (or multiple threads), namely: each module (or each thread) determines whether a trigger condition is met based on the cell information. In the method for triggering the geofence provided by the embodiment of the application, the electronic equipment only needs to use one module (or one thread) to determine the target geofence service corresponding to the cell information in the first characteristic information list according to the switched cell information. Since each cell information corresponds to at least one geofence service in the first list of characteristic information. Therefore, under the condition that a plurality of geofence services exist in the target geofence service, the electronic equipment can use one module (or one thread) to detect the geofence services of a plurality of types, so that the number of the modules (or threads) used by the electronic equipment is greatly reduced, a large amount of computing resources of the electronic equipment are saved, and the working performance of the electronic equipment is improved.
With reference to the first aspect, in a possible implementation manner, the fence trigger message is a first fence trigger message or a second fence trigger message, the electronic device further includes a positioning module, and before the geofence recognition application sends the fence trigger message to the service recommendation application, the method further includes: if a first service exists in the geofence services corresponding to the cell information, the geofence identification application sends a first fence trigger message to the service recommendation application; the first fence trigger message is used to instruct the service recommendation application to trigger the first geofence; if a second service exists in the geofence services corresponding to the cell information, the geofence identification application sends a positioning request to the positioning module; the positioning module acquires current geographic position information; the positioning module sends the current geographic position information to a geofence recognition application; the geofence recognition application calculates first grid identification information according to the current geographic position information; the geofence identification application determining whether the second geofence satisfies a trigger condition based on the first grid identification information and the second list of characteristic information; if the triggering condition is met, the geofence recognition application sends a second fence triggering message to the service recommendation application, wherein the second fence triggering message is used for indicating the service recommendation application to trigger the second geofence.
In the above-described embodiments, for a geofence service of low trigger accuracy (first trigger accuracy), the electronic device performs trigger detection based on only cell information. For the middle-high-precision (first trigger precision and second trigger precision) geofence service, the electronic equipment also performs trigger detection by combining with the grid information of the current position of the electronic equipment on the basis that the cell information meets the trigger condition, and the corresponding geofence can be triggered after the detection is met. Because the electronic device obtains the current geographic location increases power consumption, and for a low trigger precision geofence service, the corresponding geofence can be triggered as long as it is detected within the cell. Therefore, the power consumption of the electronic equipment can be saved by adopting different standard trigger detection standards for the geofence services with different trigger precision.
With reference to the first aspect, in a possible implementation manner, the determining, by the geofence identifying application, whether the second geofence meets the triggering condition based on the first grid identification information and the second feature information list specifically includes: the geofence identification application obtains identification information of a second geofence from the first characteristic information list; the geofence identification application determining a grid identification set of each second geofence in the second feature information list according to the identification information of the second geofence; if the target grid identification set exists and the triggering precision of the geofence service corresponding to the target grid identification set is the second triggering precision, the geofence identification application determines that the second geofence meets the triggering condition; if the target grid identification set exists and the triggering precision of the geofence service corresponding to the target grid identification set is the third triggering precision, the geofence identification application matches the wifi information of the second geofence in the second characteristic information list according to the scanned wifi information; if the matching is successful, the geofence identification application determines that the second geofence satisfies the trigger condition.
In the above embodiment, the cell information is associated with the identification information of the geofence, and the identification information of the geofence is associated with the identification information of the grid. In this way, when the geofence corresponding to the grid identification information calculated by the electronic equipment meets the triggering condition, and the grid identification information calculated by the electronic equipment corresponds to the geofence with multiple services, the electronic equipment can trigger multiple types of geofences simultaneously by checking the grid identification information once, so that the efficiency of triggering and detecting the geofence by the electronic equipment is greatly improved.
With reference to the first aspect, in one possible implementation manner, the obtaining, by the positioning module, current geographic location information specifically includes: and acquiring the longitude and latitude of the current position through network positioning or GPS positioning, wherein the longitude and latitude are the current geographic position information.
With reference to the first aspect, in one possible implementation manner, the obtaining, by the positioning module, current geographic location information specifically includes: scanning neighboring cell base stations of the switched cells through a base station module; receiving data information acquired by a neighbor cell base station sent by a base station module; and calculating the longitude and latitude of the current position according to the data information, wherein the longitude and latitude are the current geographic position information.
With reference to the first aspect, in one possible implementation manner, if the triggering condition is not satisfied, the geofence recognition application calculates a positioning duration; after the positioning duration, a process is performed in which the geofence recognition application sends a positioning request to the positioning module.
With reference to the first aspect, in a possible implementation manner, the geofence identifying application calculates a positioning duration, specifically includes: in the case that a plurality of second geofences exist, calculating the distance between the center point of each second geofence and the current geographic position; determining the minimum distance as a first distance; and calculating the positioning time length based on the first distance and the current moving speed of the electronic equipment.
In a second aspect, an embodiment of the present application provides an electronic device, including: one or more processors and memory; the memory is coupled to the one or more processors, the memory for storing computer program code, the computer program code comprising computer instructions that the one or more processors call to cause the electronic device to perform: if the cell is detected to be switched, obtaining cell information of the switched cell; determining a geofence service corresponding to the cell information in a first characteristic information list; the first characteristic information list comprises a plurality of pieces of cell information, in the first characteristic information list, each piece of target cell information corresponds to at least one piece of geofence service, and a cell indicated by the target cell information has a geofence; triggering a geofence corresponding to the target geofence service; the target geofence service is a service meeting a triggering condition in the geofence service corresponding to the cell information.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: triggering the geofence corresponding to the target geofence service specifically comprises the following steps: if a first service exists in the geofence service corresponding to the cell information, the electronic equipment triggers a first geofence, wherein the first geofence is the geofence corresponding to the first service, and the first service is the geofence service with the triggering precision being the first triggering precision in a geofence white list; if a second service exists in the geofence service corresponding to the cell information, acquiring current geographic position information; the second service is a geofence service which is in the geofence white list and has a triggering precision of second triggering precision or third triggering precision, wherein the first triggering precision is smaller than the second triggering precision, and the second triggering precision is smaller than the third triggering precision; calculating first grid identification information according to the current geographic position information; judging whether the second geofence meets the triggering condition or not based on the first grid identification information and the second characteristic information list; the second geofence is a geofence corresponding to the first grid identification information; and if the triggering condition is met, triggering the second geofence.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: judging whether the second geofence meets the triggering condition or not based on the first grid identification information and the second characteristic information list specifically comprises the following steps: acquiring identification information of a second geofence from the first characteristic information list; determining a grid identification set of each second geofence in the second characteristic information list according to the identification information of the second geofence; each grid identification set includes at least one grid identification information; if the target grid identification set exists and the triggering precision of the geofence service corresponding to the target grid identification set is the second triggering precision, determining that the second geofence meets the triggering condition; the target grid identification set is a set with the same grid identification information as the first grid identification information; if the target grid identification set exists and the triggering precision of the geofence service corresponding to the target grid identification set is the third triggering precision, matching is carried out according to the scanned wifi information and the wifi information of the second geofence in the second characteristic information list; if the matching is successful, determining that the second geofence meets the triggering condition.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: obtaining current geographic location information, including: and acquiring the longitude and latitude of the current position through network positioning or GPS positioning, wherein the longitude and latitude are the current geographic position information.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: obtaining current geographic location information, including: scanning neighbor cell base stations of the switched cells; receiving data information acquired by a neighbor cell base station; and calculating the longitude and latitude of the current position according to the data information, wherein the longitude and latitude are the current geographic position information.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: if the triggering condition is not met, calculating the positioning time length; after the positioning time period, a process of acquiring current geographic position information is performed.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: calculating a positioning time length, including: in the case that a plurality of second geofences exist, calculating the distance between the center point of each second geofence and the current geographic position; determining the minimum distance as a first distance; and calculating the positioning time length based on the first distance and the current moving speed of the electronic equipment.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: if the base station module detects that the cell is switched, the base station module sends cell information of the switched cell to the geofence recognition application; determining geofence services corresponding to the cell information in the first feature information list through a geofence identification application; sending a fence trigger message to the service recommendation application through the geofence identification application, the fence trigger message including a service tag of the target geofence service; triggering the geofence corresponding to the target geofence service through a service recommendation application.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: before sending the fence trigger message to the service recommendation application by the geofence identification application, further comprising: if a first service exists in the geofence service corresponding to the cell information, sending a first fence trigger message to a service recommending application through a geofence identifying application; the first fence trigger message is used to instruct the service recommendation application to trigger the first geofence; if a second service exists in the geofence service corresponding to the cell information, sending a positioning request to a positioning module through a geofence identification application; acquiring current geographic position information through a positioning module; transmitting the current geographic position information to a geofence recognition application through a positioning module; calculating first grid identification information according to the current geographic position information through a geofence identification application; judging whether the second geofence meets the triggering condition or not based on the first grid identification information and the second characteristic information list through the geofence identification application; if the triggering condition is met, sending a second fence triggering message to the service recommending application through the geofence identifying application, the second fence triggering message being used for indicating the service recommending application to trigger the second geofence,
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: judging whether the second geofence meets the triggering condition or not based on the first grid identification information and the second characteristic information list through the geofence identification application specifically comprises the following steps: acquiring identification information of a second geofence from the first characteristic information list through a geofence identification application; determining, by the geofence identification application, a set of grid identifications for each second geofence in the second list of characteristic information based on the identification information of the second geofence; if the target grid identification set exists and the triggering precision of the geofence service corresponding to the target grid identification set is the second triggering precision, determining that the second geofence meets the triggering condition through the geofence identification application; if the target grid identification set exists and the triggering precision of the geofence service corresponding to the target grid identification set is the third triggering precision, matching is carried out by the geofence identification application according to the scanned wifi information and the wifi information of the second geofence in the second characteristic information list; if the matching is successful, determining that the second geofence meets the triggering condition through the geofence identification application.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: the method for acquiring the current geographic position information through the positioning module specifically comprises the following steps: and acquiring the longitude and latitude of the current position through network positioning or GPS positioning, wherein the longitude and latitude are the current geographic position information.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: the method for acquiring the current geographic position information through the positioning module specifically comprises the following steps: scanning neighboring cell base stations of the switched cells through a base station module; receiving data information acquired by a neighbor cell base station sent by a base station module; and calculating the longitude and latitude of the current position according to the data information, wherein the longitude and latitude are the current geographic position information.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: if the triggering condition is not met, calculating the positioning time length through the geofence recognition application; after the positioning duration, a process is performed in which the geofence recognition application sends a positioning request to the positioning module.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: calculating a positioning time length through a geofence identification application, specifically comprising: in the case that a plurality of second geofences exist, calculating the distance between the center point of each second geofence and the current geographic position; determining the minimum distance as a first distance; and calculating the positioning time length based on the first distance and the current moving speed of the electronic equipment.
In a third aspect, an embodiment of the present application provides an electronic device, including: the touch screen, the camera, one or more processors and one or more memories; the one or more processors are coupled with the touch screen, the camera, the one or more memories for storing computer program code comprising computer instructions which, when executed by the one or more processors, cause the electronic device to perform the method as described in the first aspect or any of the possible implementations of the first aspect.
In a fourth aspect, embodiments of the present application provide a chip system for application to an electronic device, the chip system comprising one or more processors configured to invoke computer instructions to cause the electronic device to perform a method as described in the first aspect or any of the possible implementations of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform a method as described in the first aspect or any one of the possible implementations of the first aspect.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform a method as described in the first aspect or any one of the possible implementations of the first aspect.
Drawings
FIGS. 1A-1E are diagrams illustrating an application scenario of a set of geofence triggering methods provided by embodiments of the present application;
FIG. 2 is a flow chart of a method for triggering a geofence provided by an embodiment of the present application;
3A-3D are diagrams of a set of user interface examples provided by embodiments of the present application;
FIG. 4 is a diagram illustrating a grid division according to an embodiment of the present application;
FIGS. 5A-5B are diagrams of another set of user interface examples provided by embodiments of the present application;
FIG. 6 is a block interaction flow diagram of a geofence triggering method provided by an embodiment of the present application;
FIG. 7 is a block diagram of the software architecture of an electronic device 100 according to an embodiment of the application;
Fig. 8 is a block diagram of the hardware configuration of the electronic device 100 according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application for the embodiment. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second, third and the like in the description and in the claims and in the drawings are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprising," "including," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion. For example, a series of steps or elements may be included, or alternatively, steps or elements not listed or, alternatively, other steps or elements inherent to such process, method, article, or apparatus may be included.
Only some, but not all, of the details relating to the application are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
As used in this specification, the terms "component," "module," "system," "unit," and the like are intended to refer to a computer-related entity, either hardware, firmware, a combination of hardware and software, or software in execution. For example, a unit may be, but is not limited to being, a process running on a processor, an object, an executable, a thread of execution, a program, and/or being distributed between two or more computers. Furthermore, these units may be implemented from a variety of computer-readable media having various data structures stored thereon. The units may communicate by way of local and/or remote processes such as in accordance with a signal having one or more data packets (e.g., second unit data from another unit interacting with a local system, distributed system, and/or across a network).
An application scenario of a geofence triggering method according to an embodiment of the present application is described below in an exemplary manner with reference to fig. 1A to 1E.
Referring to fig. 1A, fig. 1A includes a user interface 10 of an electronic device 100 at time T1, and an exemplary diagram of a location of the electronic device 100 at time T1. The user interface 10 is the main interface of the electronic device 100, in which an application card 101, gallery icons 102, and other application icons are included. One or more application pendants are included in the application card 101. As shown in fig. 1A, a schedule hanger 1011 and a weather hanger 1012 are included in the application card 101. When the electronic device 100 detects a clicking operation for any one icon on the main interface, the electronic device may start an application corresponding to the icon and display an interface corresponding to the application in response to the clicking operation.
As shown in FIG. 1A, the area where the user is currently located includes two geofences, with the service corresponding to geofence 1 being the venue code service and the service corresponding to geofence 2 being the ride code service. Geofence 1 is centered on point a, and a range of radius 50m is the fence area, geofence 1 comprises office building 1. Geofence 2 is centered on point B, a radius of 30m is the range of radii as the fence area, and geofence 2 includes subway station 1. Where the electronic device 100 triggers the geofence 1 (the electronic device detects that the current location is within the range of the geofence 1), the electronic device 100 may launch a venue-code-scanning application and may display a control of the venue-code-scanning application within the application card 101. Similarly, when electronic device 100 triggers geofence 2 (the electronic device detects that the current location is within range of geofence 2), electronic device 100 may launch a ride code application and may display controls of the ride code application within application card 101. At time T1, the geographic location of electronic device 100 is outside of the range of geofence 1 and geofence 2.
As shown in fig. 1B, at time T2, the user location is within geofence 2. The electronic device 100 detects that the location is within the area of the geofence 2, and the electronic device 100 triggers the services of the geofence 2, starting the ride code application. The electronic device 100 then displays the ride code application control 1013 within the application card 101. After the electronic device 100 detects a click operation for the ride code application control 1013, in response to the operation, the electronic device 100 displays the user interface 11 as in fig. 1C.
As shown in fig. 1C, the user interface 11 is a ride code interface. The ride code interface includes a ride code 111. At time T21, the user is ready to walk from subway station 1 to office building 1. As shown in fig. 1D, at time T3, when the user arrives within range of geofence 1, electronic device 100 detects that the current location is within the area of geofence 1. The electronic device 100 triggers the service of the place-code and starts the place-code scanning application in the background. The electronic device 100 then displays the venue code scan control 1014 within the application card 101. After the electronic device 100 detects a single click operation on the place-code-bar control 1014, the electronic device displays the user interface 12 as shown in fig. 1E in response to the operation.
As shown in fig. 1E, the user interface 12 is a venue code scan interface, which includes a scan code box 121 therein.
Fig. 1A to fig. 1E illustrate an application scenario of a method for triggering a geofence according to an embodiment of the present application. The following describes a procedure of a method for triggering a geofence according to an embodiment of the present application with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a flowchart of a method for triggering a geofence according to an embodiment of the present application, and the specific flow is as follows:
step 201: the electronic device detects whether a cell handover occurs.
Specifically, the cell in the embodiment of the present application is a cellular cell, that is: in a cellular mobile communication system, one of the base stations or a region covered by a part of the base station (sector antenna) in which an electronic device can reliably communicate with the base station through a wireless channel.
As users move continuously, the electronic device may move from one cell to another, i.e.: the electronic device enters the area covered by another base station from the area covered by the current base station. The above procedure may be referred to as the electronic device having a cell handover. While the electronic device is performing a cell switch, a channel switch is required in order to keep the mobile user uninterrupted in communication. After entering the new cell, the electronic device may periodically/regularly communicate with the base station. In the process of communicating with the base station, the base station can send cell information to the electronic equipment, and the electronic equipment can determine whether the cell in which the electronic equipment is currently located is switched or not based on the cell information. If the electronic equipment detects that the cell information received at this time is inconsistent with the cell information received last time, the electronic equipment judges that the cell switching occurs. Otherwise, the electronic equipment judges that the cell is not switched.
Alternatively, the cell information may be identification information of a cell, and the cell information may also be identification information CellID of a base station. The embodiment of the application takes the cell information as the identification information of the base station as an example for explanation.
Optionally, the electronic device may not perform any processing under the condition that the electronic device does not detect that the cell is switched, and normally communicates with the base station corresponding to the cell where the electronic device is located.
The electronic device performs step 202 in case it detects that a cell switch has occurred.
Step 202: under the condition that the occurrence of cell switching is detected, the electronic equipment inquires geofence services (services for short in the embodiment of the application) included in the switched cells in a first characteristic information list according to the cell information of the switched cells, wherein the geofence services are services in a geofence white list.
For example, assume that the cell in which the electronic device is located is cell a at time T1, and that the cell in which it is detected to be cell B at time T2. Then it can be understood that the electronic device has handed over from cell a to cell B. The cell B is the cell after the electronic equipment is switched.
The geofence white list is a white list of geofence services for which the electronic device starts a trigger detection function. The electronic device only triggers detection of the geofence for the service type within the whitelist.
For example, the electronic device may turn on the function of detecting the triggering geofence before detecting whether the geofence satisfies the triggering condition, and may place the service tag of the corresponding geofence in the geofence whitelist. The electronic device only triggers detection of the geofence of the service tag within the geofence whitelist.
The electronic device can inquire the geofence service included in the switched cell in the first characteristic information list under the condition that the electronic device detects that the cell switch occurs. For example, the geofence service (hereinafter referred to as the service) may be the ride code service and the venue code service described above in fig. 1A-1D.
The first feature information list includes cell information (in the embodiment of the present application, the identification information CellID of the cell information is taken as an example of the base station, and description is given) and a service tag list (TagList). The service tag of the geofence is included in the TagList, and may also include the identification information fenchid of the geofence. If the TagList corresponding to a certain CellID is empty in the first feature information list, it is indicated that there is no geofence or geofence service in the cell corresponding to the CellID. The first feature information list may be in the form of table 1, and table 1 is as follows:
TABLE 1
Illustratively, as shown in table 1 above, the first characteristic information list includes Cell information (CellID), which are respectively Cell1 to Cell4. The base station indicated by Cell1 is base station 1, and the indicated Cell is Cell 1. The base station indicated by Cell2 is base station 2, and the indicated Cell is Cell 2. The base station indicated by Cell3 is base station 3, and the indicated Cell is Cell 3. The base station indicated by Cell4 is base station 4, and the indicated Cell is Cell4. The service tag list of cells 1-3 includes service tags TagID for identifying the service type of the geofence present in cells 1-3. The list of service tags at Cell4 is empty and therefore geofence services are not included within Cell4, cell4 being a non-target Cell. And the cells 1 to 3 are target cells.
Assuming that the service type of Tag1 identifying the geofence is a ride service, the service type of Tag2 identifying the geofence is a venue-code service, the service type of Tag3 identifying the geofence is a payment service, and the service type of Tag4 identifying the geofence is a ticket purchase service. Then, four types of service geofences are included in cell1, and the geofence services in cell1 include: ride service, location code service, payment service, and ticket purchase service. The geofences of 2 service types are included in cell2, and the geofence services in cell2 include a ride service, a venue code service. The geofences of 2 service types are included in cell3, and the geofence services in cell3 include a place code service and a ticket purchase service. For ease of understanding, embodiments of the present application will be described using the service tags listed in table 1 as geofence whitelist service tags.
The electronic device may determine, in the first feature information list, a service tag corresponding to the cell information according to the cell information (for example, cell id) of the cell after the handover acquired by the electronic device. For example, assuming that the Cell information of the Cell after handover is Cell1, the geofence service that can determine Cell1 (Cell after handover) in the above table 1 includes: ride service, location code service, payment service, and ticket purchase service.
Step 203: in the event that a first service is included in the geofence services, the electronic device triggers a first geofence; the first service is a service with the triggering precision being a first triggering precision in the geofence service, and the first geofence is a geofence corresponding to the first service.
Specifically, the first service is a geofence service included in the cell after handover, a service tag of the first service is in a geofence white list, and a trigger precision of the first service is a first trigger precision.
Optionally, after acquiring the geofence service included in the switched cell in the first feature information list according to the cell information of the switched cell, the electronic device may compare the service tag TagID of the geofence service with the service tag in the geofence whitelist. And determining a label consistent with the service label in the geofence white list as a target service label, and determining the geofence indicated by the target service label as the geofence to be triggered.
Optionally, the electronic device may query the triggering precision of the geofence service of the switched cell acquired in the first feature information list according to the triggering precision list, and determine the triggering mode of the geofence according to the triggering precision. The trigger precision list comprises the service tag TagID of the geofence and trigger precision information corresponding to the service tag. The triggering accuracy of the geofence can be classified into three classes, namely: the first trigger precision, the second trigger precision and the third trigger precision. Wherein the first trigger precision < the second trigger precision < the third trigger precision. For the geofence with the first triggering precision, after the electronic equipment finds the service tag of the first service of the cell in the first characteristic information list according to the cell information of the cell after switching, the electronic equipment can directly trigger the geofence of the service tag, and the geofence is the first geofence. By way of example, the trigger precision list may be as shown in Table 2:
TABLE 2
For example, as shown in table 2, after the electronic device queries the service tags Tag1 to Tag4 in table 1 according to Ce111 (the cell information of the new cell after handover), the electronic device may determine, according to table 2, that the trigger precision of the geofence corresponding to Tag1 is the second trigger precision, the trigger precision of the geofence corresponding to Tag2 is the third trigger precision, the trigger precision of the geofence corresponding to Tag3 is the first trigger precision, and the trigger precision of the geofence corresponding to Tag4 is the first trigger precision. Thus, the electronic device may determine that the services indicated by Tag3 and Tag4 are the first services.
The Cell information of the Cell after handover is assumed to be Cell1 (Cell 1). Then in table 1 above (assuming that the first list of characteristic information is table 1 above), cell1 includes four service tags TagID, namely: cell1 includes 4 types of geofence services, there are four types of geofences. Two service tags, tag1 (indicating riding service) and Tag2 (indicating venue code service), include the identification information feneid of 4 geofences (the embodiment of the application takes the identification information of a geofence as a feneid as an example). Wherein Tag1 includes identification information Fence1 of geofence 1 and identification information Fence2 of geofence 2.Tag2 includes identification information Fence3 of geofence 3 and identification information Fence4 of geofence 4. The geofence service corresponding to Tag1 and Tag2 is a second service (the trigger precision is a second trigger precision or a third trigger precision service). The geofence service corresponding to Tag3 and Tag4 is the first service. Thus, the first geofence of cell1 is geofence 11 (fence 11) and geofence 12 (fence 12). Wherein the service type of the geofence 11 is a payment service, and the service type of the geofence 12 is a ticket purchase service.
Thus, the electronic device follows the geofence services queried in table 1 above according to Cell1 of Cell1, including payment services and ticketing services. The electronic device can trigger geofence 11 and geofence 12 within cell 1.
It should be appreciated that triggering a geofence may recommend a service to the user that corresponds to the geofence for the electronic device, or may perform the service that corresponds to the geofence. The embodiment of the application is described by taking the example of triggering the geofence as a service for recommending the geofence to a user by electronic equipment. For example, in the above embodiment, if the electronic device triggers a geofence for payment service (geofence 11) and a geofence for ticket purchase service (geofence 12) within cell 1. The electronic device can display the payment code control and the ticket purchasing application icon on the user interface, so that a user can click the payment code control, and the electronic device can display the payment code scanning interface on the user interface after responding to the clicking operation only aiming at the payment code control. Thus, the user can scan the payment code of the merchant through the payment code scanning interface to make payment. After the user clicks the ticket buying application icon, the electronic device responds to the clicking operation aiming at the ticket buying application icon, and the electronic device starts the ticket buying application, so that the user can buy the ticket on the ticket buying application.
Illustratively, as shown in FIG. 3A, the electronic device 100 displays a payment code control 3011 and a ticketing application icon 3012 in the application card 401 of the user interface 30 after triggering the geofencing of the payment service and the ticketing service. Upon detecting a single click operation for the pay code control 3011, the electronic device 100 responds to the operation by displaying a pay code swipe interface as shown in fig. 3B. As shown in fig. 3B, a code scanning frame 311 is included in the payment code scanning interface, and the code scanning frame 311 is used for scanning the payment code. As shown in fig. 3C, in the user interface 30, if the electronic device 100 detects a click operation on the ticket purchase application icon 3012, the electronic device 100 displays the ticket purchase interface as shown in fig. 3D in response to the operation. The user may make a subscription to the network of tickets on the ticket purchasing interface.
It should be appreciated that the electronic device determines whether to trigger the geofence based on the fence characteristic information of the geofence it obtains. The electronic device can match the acquired fence characteristic information with the characteristic information list of the geofence, and if the matching is successful, the geofence is triggered. Optionally, the fence characteristic information acquired by the electronic device may include cell information (for example, cellID), the fence characteristic information acquired by the electronic device may further include latitude and longitude information of the geographic location, and the fence characteristic information acquired by the electronic device may further include wifi information scanned by the electronic device. The list of characteristic information for the geofence may include a first list of characteristic information, such as table 1 above.
Illustratively, in the above embodiment, the fence characteristic information acquired by the electronic device is Cell1. In the case where Tag information matched to the correspondence of Cell1 in table 1 above includes Tag3 and Tag4, the electronic device triggers a geofence of the payment service (geofence 11) and a geofence of the ticket purchase service (geofence 12).
In this way, the cell information and the feature information of the geofence are associated. After each time the electronic device detects that cell switching occurs, the electronic device determines whether to trigger a geofence, namely: the electronic device may obtain the geofence service included in the new cell after the handover from the first feature information list based on the cell information after the handover obtained by the electronic device. In the case that the first service exists, the electronic equipment directly triggers the geofence of the service type indicated by the service label corresponding to the first service, and recommends or executes the service corresponding to the geofence to the user. By means of associating the cell information with the feature information of the geofence, under the condition that the cell information corresponds to the first service of the plurality of service types (the plurality of tagids), the electronic device can trigger the geofence of the plurality of service types simultaneously only by inquiring once in the first feature information list according to the cell information. So that the services of these geofences can be recommended or performed simultaneously to the user. In contrast to the conventional approach, it is necessary to trigger detection of geofences for each service type (different tagids), which in turn trigger the manner in which the geofences are passed through. The triggering mode of the geofence provided by the embodiment of the application can effectively reduce the triggering detection times of the electronic equipment on the geofence, and improves the triggering detection efficiency of the geofence.
Step 204: in the case that the second service is included in the geofence service, the electronic device determines a grid identification information set of each second geofence in a second feature information list; the second service is a service with a second trigger precision or a third trigger precision in the geofence service, and the second geofence is a geofence indicated by a service tag of the second service.
Specifically, the second service is a geofence service included in the cell after handover, a service tag of the second service is in a geofence white list, and the triggering precision of the second service is the second triggering precision or the third triggering precision. For example, the electronic device may turn on detecting the geofence function that triggered the service type before detecting whether the geofence is triggered, and may place the service tag of the corresponding geofence in the geofence whitelist. The electronic device only triggers detection of the geofence of the service tag within the geofence whitelist.
For example, assuming the electronic device turned on the geofence trigger detection service of four service types of Tag1, tag2, tag3, tag4 in Table 1, the electronic device may put Tag1, tag2, tag3, tag4 into the geofence white list. And under the condition that the cell switching is detected, triggering detection can be carried out on the geofences of the four service types, and if the detection passes, the corresponding geofence is triggered.
After the electronic equipment inquires the geofence service included in the switched cell in the first characteristic information list according to the switched cell information, the electronic equipment can determine the accuracy of the geofence service inquired by the electronic equipment in the trigger accuracy list according to the service tag TagID of the geofence service inquired. And determining a geofence service having a trigger precision of the second trigger precision and the third trigger precision as the second service.
For example, after determining the service tags Tag1 to Tag4 of the cell (cell 1) after the handover in the above table 1, the electronic device may determine, according to the above table 2, that the trigger precision of the Tag1 indication service is the second trigger precision, that the trigger precision of the Tag2 indication service is the third trigger precision, that is, that the service types indicated by Tag1 (location code service) and Tag2 (riding service) are the second service.
For example, it is assumed that the Cell information of the Cell after handover is Cell1, the first feature information list is table 1, and the trigger precision list is table 2. Then, the electronic device may determine, according to table 1 and table 2 above, that the second service is a service indicated by Tag1 and a service indicated by Tag2, and that the second geofence is a geofence indicated by Tag1 and Tag2, that is: geofence 1 (fence 1), geofence 2 (fence 2), geofence 3 (fence 3), geofence 4 (fence 4).
The set of grid identifications for each second geofence includes one or more of the grid identification information included by the geofence. Multiple grids may be included in the geofence, each grid corresponding to one of the grid identification information. Dotting data for different locations, different service types (different taids) is collected prior to establishing the geofence. The dotting data may include service tags (tagids) of the data, time information of the dotting, and geographic location information of the dotting. For example, the dotting data for the ride service may include a time of the swipe code of the ride code, the swipe code geographic location information of the ride code, and a service tag of the ride code. The dotting data of the place code service can comprise the code scanning time of the place code, the code scanning geographic position information of the place code and the service label of the place code. The dotting data of the payment service can comprise the code scanning time of the payment code, the code scanning geographic position information of the payment code and the service label of the payment code.
The dotting geographic position information can comprise longitude and latitude information, cell information and wifi information. An area (e.g., a city) may be divided into a plurality of geographical grids (grids for short in the embodiment of the present application), and each grid may be configured with identification information. Within this area, the grid identification information of each grid has uniqueness. The geographical location range of each grid is converted to a latitude and longitude range. Then, according to the longitude and latitude of the collected dotting data, the dotting data with the longitude and latitude in the longitude and latitude range of the grid can be corresponding to the grid, so that the mapping relation between the longitude and latitude information of the dotting data and the grid identification information is obtained.
Thus, after associating the dotting data with the grid, the geofence may be trained by merely traversing portions of the dotting data of the grid when the geofence is established, thereby resulting in a geofence of a preset service type. Without traversing the service tag and the geographic location information of each piece of dotting data, thereby screening out the dotting data meeting the conditions as training samples of the geofence. This greatly saves the manpower and material resources of training to generate the geofence.
As shown in fig. 4, an exemplary diagram of grid division for a street of city M. The number of grids divided by the street is 36, each grid is correspondingly numbered (1-36 respectively), and each grid comprises one or more pieces of dotting data. For example, the mapping relationship between the latitude and longitude information of the dotting data and the grid identification information may be as shown in formula (1):
D=H(x,y) (1)
wherein x is longitude of the dotting data, y is latitude of the dotting data, H is a mapping function of longitude and latitude and grid identification information, and D is the grid identification information.
After the dotting data are collected and longitude and latitude information of the dotting data are corresponding to grid identification information, geofences of different service types can be established. The geofence establishment process can be divided into two cases:
First case: there are points of interest (Point Of Interest, POIs) in the geofenced area to be established. The regional scope of the geofence can be determined from the points of interest and the scope information of the geofence to be established. Wherein the range information of the geofence relates to the shape of the geofence to be established. Illustratively, if the shape of the geofence to be established is a circular area, the range information is the radius R of the geofence; if the shape of the geofence to be established is a rectangular area, the range information is the length d and width m of the geofence. Geofences of different service types are then trained based on the dotting data within the area.
Optionally, after the geofence is constructed, the identification information of the grid included in the geofence, the identification information of the geofence, wifi information of the grid included in the geofence, and the cell information (e.g., cellID) described by the geofence may be extracted. And based on the information, a first characteristic information list and a second characteristic information list are established. The first and second lists of characteristic information for a region (e.g., a city) may then be packaged to generate packaged data for download by the electronic device.
It should be appreciated that the geofence may include a grid that has a region of overlap with the geofence that exceeds a first threshold in proportion to the area of the grid. The first threshold may be obtained from a historical value, an empirical value, or experimental data, which is not limited in the embodiment of the present application.
Second case: in the case where no explicit POI exists, a region (for example, a city) may be first partitioned to obtain multiple partitioned regions. For example, a city may be divided into a plurality of block areas of 3km by 3 km. And then generating the geofence of the corresponding service through a clustering algorithm according to the dotting data distribution in the block area.
For example, a region of the block-shaped region having an area within S and the number of dotting data is greater than or equal to the second threshold may be determined as a region for generating a geofence. Then, in the area, the dotting data can be classified according to the service labels of the dotting data, so as to obtain a set of the dotting data with different service types. And training geofences of corresponding services from the dotting data sets of different service types through a clustering algorithm. The S and the second threshold may be obtained from a historical value, an empirical value, or experimental data, which is not limited in the embodiment of the present application.
Optionally, after the geofence is constructed, the identification information of the grid included in the geofence, the identification information of the geofence, the wifi information of the geofence including the grid, and the cell information (e.g., cellID) described by the geofence may be extracted. And based on the information, a first characteristic information list and a second characteristic information list are established. The first and second lists of characteristic information for a region (e.g., a city) may then be packaged to generate packaged data for download by the electronic device.
It should be appreciated that the geofence may include a grid that has a region of overlap with the geofence that exceeds a first threshold in proportion to the area of the grid. The first threshold may be obtained from a historical value, an empirical value, or experimental data, which is not limited in the embodiment of the present application.
Alternatively, the electronic device may download the package data of a certain area in advance. For example, after the electronic device detects that the communication base station is the base station of city a, the electronic device may download the packaged data of city a through internet connection. After the electronic device detects that the communication base station is not the base station of the city a, the electronic device can delete the stored package data of the city a, thereby saving the storage space of the electronic device.
The above description describes the geofence generation process, and when the electronic device queries that the geofence service in the new cell after switching includes the second service according to the first characteristic information list and the trigger precision list, the electronic device may acquire the fence identification information of the second geofence from the first characteristic information list. The electronic device can then obtain a set of grid identifications for each second geofence in a second feature information list based on the fence identification information for the second geofence.
Wherein the set of grid identifications includes grid identification information for one or more grids, the grid identification information being used to indicate the grids included by the second geofence. The second feature information list may include identification information of the geofences, may further include service tags corresponding to each geofence, and may further include grid identification information gID included in each geofence. The second feature information list may be exemplarily shown in table 3:
TABLE 3 Table 3
For example, after determining the second geofences (geofences 1 to 4) according to table 1 (the first characteristic information list) above, the electronic device may determine a grid identification set of each second geofence in the second characteristic information list according to the identification information (fence 1 to fence 4) of the second geofence. Since cell 1 (new cell after handover) includes 4 second geofences. Thus, the electronic device may obtain 4 sets of grid identifications in table 3. The 4 grid identification sets are respectively a grid identification set { g1, g2, g3, g4} of the geofence 1, a grid identification set { g5, g6} of the geofence 2, a grid identification set { g4, g7} of the geofence 3, and a grid identification set { g9, g10} of the geofence 4.
Step 205: the electronic device locates current geographic location information and calculates first grid identification information based on the geographic location information.
Specifically, the electronic device may acquire current geographic location information through network positioning or GPS positioning, where the geographic location information may be the longitude and latitude of the location where the electronic device is located. After the longitude and latitude of the position are obtained, the electronic device can use the longitude and latitude of the current position as the input of the mapping function through the mapping function in the formula (1), so that grid identification information is obtained. The grid identification is the first grid identification information.
Step 206: the electronic device determines whether there is grid identification information in the grid identification set that is the same as the first grid identification information.
Step 207: and if the grid identification information which is the same as the first grid identification information exists in the grid identification set, and the triggering precision of the geofence service corresponding to the first grid identification information is the second triggering precision, triggering the second geofence corresponding to the first grid identification information by the electronic equipment.
Specifically, triggering, by the electronic device, the second geofence corresponding to the first grid identification information may include: the electronic device initiates an application associated with the geofence, or the electronic device displays functionality controls associated with executing the geofence-corresponding service on a main interface.
Illustratively, assume that the first grid identification information calculated by the electronic device is g4. The electronic device can know by querying the second characteristic information list: in the grid identification set { g1, g2, g3, g4} of the geofence 1, there is grid identification information identical to the target grid identification information. Because the service labels corresponding to g4 are Tag1 and Tag2, and the triggering precision of the service indicated by Tag1 is the second triggering precision. Thus, the electronic device can trigger the geofence 1.
For example, as shown in fig. 5A, after triggering the geofence 1, the electronic device 100 can display the passcode control 5011 on the application card 501 of the user interface 50. Upon detecting a single click operation for the ride control 5011, the electronic device 100 may display the user interface 51 as shown in fig. 5B, the user interface 51 being a ride interface.
By associating the identification information of the grid with the cell information and the identification information of the geofence, if in the cell after handover there are multiple geofences associated with the same grid. The electronic device can determine whether the plurality of geofences can be triggered by simply determining whether the identification of the one grid meets the triggering condition. The complex process of judging the triggering conditions of each type of geofence in the switched cell is solved, and the prediction efficiency of the triggering of the geofences in the switched cell is greatly improved.
Step 208: if the grid identification information which is the same as the first grid identification information does not exist in the grid identification set, the electronic equipment calculates a positioning duration t based on the distance from the center point of the second geofence and the moving speed of the electronic equipment.
Specifically, the electronic device may predict a time period t1 for the electronic device to reach each of the second geofence center points according to the current moving speed v and the distance between the second geofence center points. The electronic device may then select the smallest t1 as the positioning duration.
So that after the positioning time period t elapses, the electronic device may obtain the geographic location information through network positioning or GPS positioning, and perform the operation of calculating the first grid identification information based on the geographic location information in step 205. The distance between the electronic device and the second geofence center point can be obtained based on the longitude and latitude of the second geofence center point and the longitude and latitude of the geographic position where the electronic device is located.
In one possible implementation, the electronic device can calculate a distance from a center point of each second geofence based on its geographic location information, resulting in a distance value from each second geofence. Then, the electronic device selects the smallest distance value as the target distance value. Then, the electronic device calculates a positioning time period t according to the target distance value and the current moving speed v of the electronic device. The distance between the electronic device and the second geofence center point can be obtained based on the longitude and latitude of the second geofence center point and the longitude and latitude of the geographic position where the electronic device is located.
Step 209: after the positioning duration, the electronic device performs step 205.
Step 210: if the grid identification information which is the same as the first grid identification information exists in the grid identification set, and the triggering precision of the geofence service corresponding to the first grid identification information is the third triggering precision, the electronic equipment acquires wifi information of the geofence corresponding to the first grid identification information from a second characteristic information list.
Illustratively, as in the above embodiments, the newly handed over cell is cell 1. From the first feature information list and the trigger precision list, the second service included in the cell 1 includes geofence services indicated by Tag1 and Tag2 (the geofence service is simply referred to as a service in the embodiment of the present application). And the trigger precision of the Tag1 indicating service is the second trigger precision, and the trigger precision of the Tag2 indicating service is the third trigger precision. If the first grid identification information calculated by the electronic device is g4 (grid 4), the corresponding service Tag includes Tag1 and Tag2. Because the trigger precision of the Tag2 corresponding service is the third trigger precision, the electronic device needs to scan wifi information of the current position and compare with wifi information in the geofence 3.
Specifically, the second feature information list may further include wifi list information corresponding to each grid identification information. For the second service with the triggering precision being the second triggering precision, the corresponding geofence identification information is in the second characteristic information list, and the corresponding wifi list information can be null. For example, as shown in table 2 above, the services of geofence 1 and geofence 2 are geofence services (service Tag is Tag 1) with trigger precision of the second trigger precision, and therefore, the wifi list information of fe 1 and fe 2 is null.
The second feature information list may be, for example, as shown in table 3 above. In the above table 3, the wifi information in the wifi list information is the wifi information collected in the corresponding geofence. Each piece of wifi information includes a basic service set identifier (Basic Service Set Identifier, BSSID) of the wifi, a frequency frcq of the wifi information, a wifi intensity r, and a matching value Threshold of the wifi list information.
The BSSID is a unique identifier of the wifi information wifi. For example, the BSSID may be a physical address (MAC address) of wifi. frcq may be the frequency at which the piece of wifi information appears. For example, 4 pieces of wifi information of the geofence 3 are listed in the above table 3, and BSSIDs of the 4 pieces of wifi information are BSSID11, BSSID12, BSSID13, and BSSID14, respectively. The frequencies of the 4 pieces of wifi information are respectively 0.1, 0.15, 0.12 and 0.2, and the intensities of the 4 pieces of wifi information are respectively r11, r12, r13 and r14. The wifi information matching threshold of the geofence 3 is Q11. Taking BSSID11 as an example, assume that 10 pieces of dotting data are collected in grid 4 in geofence 3 during the process of creating the second list of characteristic information. When gathering every dotting data, can scan the wifi information around, every wifi information all has the BSSID, and acquires the intensity value of every wifi. Assume that the wifi information of each dotting data scan is acquired by 10 pieces. Then, 10 pieces of dotting data would scan 100 pieces of wifi information. Of these 100 pieces of wifi information, there may be a plurality of pieces of wifi information whose BSSID is BSSID 11. The number K of wifi information of the scanned BSSID11 in the 100 pieces of wifi information (assuming k=10) may be calculated, and the number value of wifi information of the raster scan is divided by 10 (100), thereby obtaining the frequency frcq of the BSSID11 as 0.1. And the wifi intensities of the wifi information of the 10 BSSIDs 11 can be subjected to average value calculation, and an intensity value r11 of the wifi information of the BSSIDs 11 in the second characteristic information list can be obtained. In addition, wifi information can be acquired from the geofence 3, and a matching value Q11 of the wifi information of the geofence 3 can be calculated.
Alternatively, when the grid collects wifi information, there may be a case where a large amount of wifi information exists in one grid. For example, 5000 pieces of wifi information with different BSSIDs are collected in one grid. Thus, for the above case, wifi information that only ranks the intensity values within a third threshold (e.g., the intensity values are within the top 100) may be stored in the second feature list. Alternatively, wifi information with frequencies ranked within a third threshold (e.g., frequencies ranked within the top 100) is stored in the second feature list. The third threshold may be obtained based on an experimental value, may be obtained based on an empirical value, may be obtained based on a historical value, and is not limited in the embodiment of the present application.
Step 211: the electronic equipment scans wifi information of the current geographic position.
Step 212: and the electronic equipment matches the scanned wifi information with the wifi information of the geofence corresponding to the first grid identification information.
Specifically, the electronic device scans wifi information, and may scan L pieces of wifi information. Wherein. L is a positive integer greater than or equal to 1. And the electronic equipment compares the scanned L pieces of wifi information with the wifi information of the geofence corresponding to the grid in the second characteristic information list. And extracting Y pieces of wifi information under the condition that the Y pieces of wifi information which are identical to the BSSID of the wifi information scanned by the electronic equipment exist. The extracted wifi information is first target wifi information. Then, the electronic device calculates a first matching value Q1 according to the intensity r and the frequency of the scanned Y pieces of wifi information. And the electronic equipment compares the wifi information matching value Q2 of the corresponding geofence of the grid in the Q1 and the second characteristic information list. If Q1 is greater than or equal to Q2, the matching is successful. If Q1 is less than Q2, then the match fails.
For example, assume that in grid 4, the electronic device scans out 5 pieces of wifi information, and the BSSIDs of these 5 pieces of wifi information are BSSID11, BSSID12, BSSID300, BSSID400, and BSSID500, respectively. The intensity values of the 5 pieces of wifi information are r31, r32, r33, r34 and r35 respectively. It is assumed that in the above table 3, only wifi information with BSSID11 and BSSID12 in the wifi information list of the geofence 3 is the same as 5 pieces of wifi information scanned by the electronic device. Then, in the above table 3, the wifi information with BSSID being BSSID11 and BSSID12 is the first target wifi information, the frequencies frcq11 and frcq12 are respectively 0.1 and 0.15, and the intensity values r are respectively r11 and r12. The wifi information of the BSSID11 and the BSSID12 obtained by the electronic equipment through scanning is second target wifi information, and the intensity values of the wifi information are r41 and r42 respectively. The electronic device may calculate the frequencies frcq21 and frcq22 of the second target wifi information, mainly in the following two ways:
the first way is: the frequency of the second target wifi information may be calculated according to the formula frcq=1/H. And H is the quantity of wifi information scanned by the electronic equipment. For example, the electronic device scans only 5 pieces of wifi information, and then the frequencies of the wifi information of the BSSID11 and the BSSID12 are both 0.2.
The second way is: the frequency of the second target wifi information may be calculated according to the formula frcq=1/P. Wherein P is the quantity of the second target wifi information. For example, there are 2 pieces of second target wifi information, and then the frequencies of the wifi information of the BSSID11 and the BSSID12 are both 0.5.
The electronic device may then calculate the first matching value Q1 according to equation (2), equation (2) as follows:
Q1=frcq11*frcq21*a+frcq12*frcq22*b (2)
wherein a is obtained based on the modulus values of frcq11 and frcq21, and the smaller the modulus value, the larger the a, the larger the modulus value; the smaller a (the maximum value of a is 1 and the minimum value of a is 0). b is derived based on the modulus values of frcq12 and frcq22, the smaller the modulus value, the greater b; the larger the modulus, the smaller b (maximum value of b is 1 and minimum value is 0). Then, Q1 and Q11 are compared. If Q1 is greater than or equal to Q11, the matching is successful. If Q1 is smaller than Q11, the match fails.
Step 213: and under the condition that the matching is successful, the electronic equipment triggers a second geofence corresponding to the first grid identification information.
Alternatively, in the case that the mismatch is successful, the electronic device may execute step 205 after a second period of time.
In some embodiments, the electronic device may calculate the target grid identity based on the location information of the cell center point of the new cell after the handover before the electronic device locates the current geographical location information and calculates the first grid identity based on the geographical location information (step 205 is performed). The center point of the new cell after the handover can be the location point of the base station of the cell, the geographic location information can be the longitude and latitude of the location point of the base station of the cell, and the electronic equipment can acquire the longitude and latitude of the center point of the cell in the process of communicating with the base station of the cell. The electronic device can use the longitude and latitude of the center point of the new cell after switching as the input of the mapping function through the mapping function in the formula (1), so as to obtain grid identification information. The grid identification information is the target grid identification information. The electronic device determines whether there is grid identification information in the grid identification set of the second geofence that is the same as the target grid identification information.
If the grid identification information which is the same as the target grid identification information exists in the grid identification set of the second geofence, and the triggering precision of the geofence service corresponding to the target grid information is the second triggering precision, the electronic equipment triggers the second geofence corresponding to the target grid identification information. Triggering the geofence by the electronic device may include: the electronic device starts an application program related to the geofence, or the electronic device displays a function control related to executing the service corresponding to the geofence on a main interface.
Illustratively, assume that the target grid identification information calculated by the electronic device is g4. The electronic device can know by querying the second characteristic information list: in the grid identification set { g1, g2, g3, g4} of the geofence 1, there is grid identification information identical to the target grid identification information. Thus, the electronic device can trigger the geofence 1. For example, as shown in fig. 5A, after triggering the geofence 1, the electronic device 100 can display the passcode control 5011 on the application card 501 of the user interface 50. Upon detecting a single click operation for the ride control 5011, the electronic device 100 may display the ride interface 51 as shown in fig. 5B.
If grid identification information identical to the target grid identification information exists in the grid identification set of the second geofence, and the triggering precision of the geofence service corresponding to the target grid information is the third triggering precision, the electronic equipment scans wifi information of the current geographic position and matches the scanned wifi information with the wifi information of the geofence corresponding to the target grid identification information. And if the matching is successful, triggering a second geofence corresponding to the target grid identification information by the electronic equipment. The steps 211 and 212 may be referred to for the electronic device to scan wifi information and perform a matching process of wifi information, which will not be described herein.
By associating the identification information of the grid with the identification information of the base station and the identification information of the geofence, in the cell after handover, if there are multiple geofences associated with the same grid. The electronic device can determine whether the plurality of geofences can be triggered by simply determining whether the identification of the one grid meets the trigger requirement. The complicated process of judging whether to trigger the geofence of each second service in the switched cell is solved, and the detection efficiency of triggering the geofences in the switched cell is greatly improved.
When the electronic device determines that the grid identifier identical to the target grid identifier does not exist in the grid identifier set of the second geofence, the electronic device locates current geographic location information, and calculates first grid identifier information based on the geographic location information, that is, step 205 is performed.
In one possible implementation, after performing step 204, the electronic device may calculate the first grid identification information by scanning for neighboring base stations. The electronic device may scan the neighboring cell base stations, i.e.: the electronic device communicates with a plurality of neighbor base stations. The longitude and latitude of the current position of the electronic equipment can be predicted and calculated according to the time difference of the message sent by the base station and the longitude and latitude of the base station in the adjacent cell. Then, the electronic device may use the latitude and longitude calculated by the prediction as the input of the mapping function in the above formula (1), thereby obtaining a grid identification information. The grid identification is the first grid identification information. Then, the electronic device determines whether there is grid identification information in the grid identification set of the second geofence that is the same as the first grid identification information. If the first grid identification information exists, the electronic equipment triggers a second geofence corresponding to the first grid identification information. If not, the electronic device performs the step of scanning the neighboring cell base station to calculate the first grid identification information after the first time period. The first duration may be obtained from an empirical value, may be obtained from historical data, or may be obtained from experimental data, which is not limited by the embodiment of the present application. Therefore, the electronic equipment can be positioned without calling the positioning module of the bottom layer, and compared with a mode of calling the positioning module of the bottom layer to position, the electronic equipment consumes less power in a mode of scanning the position calculated by the base station of the adjacent area.
In the above embodiment, the electronic device may trigger the geofence after determining the geofence that meets the triggering condition through the cell information of the cell after the handover in the first feature information list. For traditional geofence triggering methods, the electronic device needs to trigger detection of geofences of different types of geofence services with multiple modules (or multiple threads), namely: each module (or each thread) determines, based on the cell information, whether the geofence service corresponding to the module (or thread) satisfies the trigger condition. In the method for triggering the geofence provided by the embodiment of the application, the electronic equipment only needs to use one module (or one thread) to determine the target geofence service corresponding to the cell information in the first characteristic information list according to the switched cell information. Since each cell information corresponds to at least one geofence service in the first list of characteristic information. Therefore, under the condition that a plurality of geofence services exist in the target geofence service, the electronic equipment can use one module (or one thread) to detect the geofence services of a plurality of types, so that the number of the modules (or threads) used by the electronic equipment is greatly reduced, a large amount of computing resources of the electronic equipment are saved, and the working performance of the electronic equipment is improved.
Further, for geofence services of low trigger accuracy (first trigger accuracy), the electronic device performs trigger detection based only on cell information. For the middle-high-precision (first trigger precision and second trigger precision) geofence service, the electronic equipment also performs trigger detection by combining with the grid information of the current position of the electronic equipment on the basis that the cell information meets the trigger condition, and the corresponding geofence can be triggered after the detection is met. Because the electronic device obtains the current geographic location increases power consumption, and for a low trigger precision geofence service, the corresponding geofence can be triggered as long as it is detected within the cell. Therefore, the power consumption of the electronic equipment can be saved by adopting different standard trigger detection standards for the geofence services with different trigger precision.
The above-described FIG. 2 embodiment describes in detail the flow of a geofence triggering method. The following describes the interaction flow between each module in the process of triggering the geofence by the electronic device in detail with reference to the accompanying drawings. Referring to fig. 6, fig. 6 is a module interaction flow chart of a geofence triggering method according to an embodiment of the present application. The electronic equipment comprises a geofence identification application, a service recommendation application, a positioning module, a base station module and a Wifi module. Wherein the geofence identification application and the service recommendation application are located at an application layer in the android architecture. The positioning module, the base station module and the Wifi module are positioned on an application program framework layer in the android system architecture. The specific flow is as follows:
Step 601: the service recommendation application sends a first request message to the geofence identification module.
Specifically, the first request message is for requesting the geofence service module to initiate a function that detects triggering of the geofence service. Wherein a service tag is included in the first request message that recommends a type of geofence service for the service that the application wants to trigger detection. The service type for triggering detection of the geofence can be determined by default by the service recommendation module or can be selected by a user, and the embodiment of the application is not limited.
Step 602: the geofence identification application initiates trigger detection of a geofence corresponding to a service tag in the first request message.
Specifically, the geofence identification application, upon receiving the first request message, stores the service tag in the first request message in a geofence whitelist. The geofence identification application only triggers detection of geofences for geofence services in the geofence whitelist. The geofence identification application, upon receiving the first request message, can begin triggering detection of a geofence corresponding to a geofence service in a geofence whitelist.
Step 603: the geofence recognition application registers a cell handover event with the base station module.
Specifically, before triggering detection of the geofence service, the geofence identification application registers a cell switching event with the base station module, so that when the electronic equipment performs cell switching, the base station module can send cell information of the switched cell to the geofence identification application. So that the geofence identification application can trigger detection of the geofence corresponding to the geofence service within the geofence whitelist based on the cell information it receives.
Step 604: the base station module detects that the cell is switched.
Specifically, when the base station module detects that the received cell information (for example, the identification information of the cell base station) is inconsistent with the cell received last time, the base station module detects that the cell is switched.
Step 605: the base station module sends a first notification message to the geofence recognition application.
Specifically, a cell handover event is previously registered with the base station module due to the geofence identification module. Thus, the base station module, upon detecting a cell switch, may send a first notification message to the geofence recognition application. The first notification message includes cell information of the cell after the handover. The cell information may be the identification information of the cell base station or the identification information of the cell, and the embodiment of the application uses the cell information as the identification information of the cell base station as an example for explanation.
Step 606: the geofence identification application determines a geofence service included in the cell in the first feature information list based on the cell information of the cell after the handover.
Specifically, after receiving the cell information of the cell after the handover, the geofence identification application may determine a geofence service corresponding to the cell information in the first feature information list. The related description of the first feature information list may be referred to the related description of the first feature information list in the embodiment of fig. 2, which is not repeated herein.
Step 607: in the case where the first service is included in the geofence service, the geofence identification application sends a first fence trigger message to the service recommendation application.
Specifically, the first service is a geofence service that is included in the cell after handover determined in the first feature information list and applied for geofence identification, and the first service is a service in a geofence white list and the first service is a geofence service with a trigger precision of a first trigger precision. The first fence trigger message is used for indicating the service recommendation application to trigger the geofence corresponding to the first service, and the first fence trigger message comprises a service tag of the geofence to be triggered. Optionally, the first fence trigger message may further include POI information in the geofence to be triggered.
Step 608: the service recommendation application triggers the first geofence.
Specifically, the service recommendation application triggers the first geofence after receiving a first fence trigger message sent by the geofence identification application. The first geofence is a geofence corresponding to the first service. The relevant description of the triggering of the first geofence by the service recommendation application may be referred to the relevant description of the triggering of the first geofence by the electronic device in the embodiment of fig. 2, which is not described herein.
Step 609: in the case where the second service is included in the geofence services, the geofence identification application determines a set of grid identifications for each second geofence in the second list of characteristic information.
Specifically, the second service is a geofence service which is determined in the first characteristic information list by the geofence identification application and is included in the switched cell, the second service is a service in a geofence white list, and the second service is a geofence service with the triggering precision being the second triggering precision or the third triggering precision. The second geofence is a geofence corresponding to the second service.
The geofence identification application may obtain geofence identification information corresponding to a second service included in the cell from the first feature information list after determining the second service. The geofence indicated by the geofence identification information is a second geofence. The geofence identification module can determine a set of grid identifications for each second geofence in the second list of characteristic information based on the geofence identification information. The grid identification set and the second feature information list may be referred to in the above description of the embodiment of fig. 2, and are not repeated herein.
Step 610: the geofence recognition application sends a location request message to the location module.
Step 611: the positioning module positions the current position and sends the geographic position information to the geofence recognition application.
Specifically, after receiving the positioning request message sent by the geofence recognition module, the positioning module can position the current position by using a network positioning or GPS positioning method to obtain the geographic position information. The positioning module then sends the geo-location information to a geo-fence identification application. The geographic location information may include the longitude and latitude of the current geographic location.
Step 612: the geofence identification application calculates first grid identification information from the geographic location information.
Specifically, after receiving the longitude and latitude of the geographic location sent by the positioning module, the geofence identifying module may calculate the first grid identification information according to the above formula (1).
Step 613: the geofence identification application determines whether there is grid identification information in the set of grid identifications that is the same as the first grid identification information.
Specifically, the set of grid identifications is a set of grid identifications of a second geofence.
Step 614: and if the grid identification information which is the same as the first grid identification information exists in the grid identification set, and the triggering precision of the geofence service corresponding to the first grid identification information is the second triggering precision, the geofence identification application sends a second fence triggering message to the service recommendation application.
Specifically, the second fence trigger message is used for indicating the service recommendation application to trigger the second geofence corresponding to the first grid identifier, and the second fence trigger message comprises a service tag of the geofence to be triggered.
Optionally, the second fence trigger message may also include POI information in the geofence to be triggered.
In some embodiments, if there is no grid identification information in the set of grid identifications that is the same as the first grid identification information, the geofence identification application may calculate a positioning duration t based on a distance of the current geographic location from a center point of the second geofence and a movement speed of the electronic device, the positioning duration being used to instruct the electronic device to acquire the geographic location information next time and perform the operation of step 612. The relevant description of the geofence recognition application for calculating the positioning time period can be referred to the relevant description of the positioning time period in the embodiment of fig. 2, and will not be described herein.
Step 615: the service recommendation application triggers a second geofence corresponding to the first grid identification information.
Specifically, the service recommendation application triggers a second geofence after receiving a second fence trigger message sent by the geofence identification application. The relevant description of the triggering of the second geofence by the service recommendation application may be referred to above in the embodiment of fig. 2, and will not be described herein.
Step 616: if the grid identification information which is the same as the first grid identification information exists in the grid identification set, and the triggering precision of the geofence service corresponding to the first grid identification information is the third triggering precision, the geofence identification application acquires wifi information of the geofence corresponding to the first grid identification information from a second characteristic information list.
Step 617: the geofence recognition application sends a wifi scanning request message to the wifi module.
Step 618: the wifi module scans wifi information of the current position and sends the wifi information to the geofence recognition application.
Step 619: the geofence identification application matches the scanned wifi information with the wifi information of the geofence corresponding to the first grid identification information.
Step 616 may be performed before step 617, after step 617, or simultaneously with step 617, and embodiments of the present application are not limited.
Steps 616 to 619 can be referred to above in steps 210 to 212, and are not described here again.
Step 620: if the matching is successful, the geofence recognition application sends a third fence trigger message to the service recommendation application.
Specifically, the third fence trigger message is used for indicating the service recommendation application to trigger the second geofence corresponding to the first grid identifier, and the third fence trigger message comprises a service tag of the geofence to be triggered. Optionally, the third rail trigger message may also include POI information in the geofence to be triggered.
Step 621: the service recommendation application triggers a second geofence corresponding to the first grid identification information.
In some embodiments, the geofence recognition application may calculate the target grid identification based on the location information of the cell center point of the cell after the handover before the positioning module locates the current location and sends the geographic location information to the geofence recognition application (performing step 610). The center point of the cell after the handover can be the position point of the base station of the cell, and the geographic position information can be the longitude and latitude of the position point of the base station of the cell. Geofence identification is applied in communicating with the base station of the cell, and can obtain the longitude and latitude of the cell center point. The geofence recognition application can use the longitude and latitude of the center point of the new cell after switching as the input of the mapping function through the mapping function in the formula (1), so as to obtain grid identification information. The grid identification information is the target grid identification information. The geofence identification application determines whether there is grid identification information in the set of grid identifications of the second geofence that is the same as the target grid identification information.
If the grid identification information which is the same as the target grid identification information exists in the grid identification set of the second geofence, and the triggering precision of the geofence service corresponding to the target grid information is the second triggering precision, the geofence identification application pushes the application to the service to send a fence triggering message for triggering the second geofence corresponding to the target grid identification information. Triggering the geofence by the service recommendation module may include: the service recommendation module starts an application program related to the geofence, or the service recommendation module displays operations such as a function control related to executing the corresponding service of the geofence on a main interface.
If grid identification information identical to the target grid identification information exists in the grid identification set of the second geofence, and the triggering precision of the geofence service corresponding to the target grid information is the third triggering precision, the geofence identification module can scan wifi information of the current geographic position through the wifi module and match the scanned wifi information with the wifi information of the geofence corresponding to the target grid identification information. If the matching is successful, the geofence identification application can trigger a second geofence corresponding to the target grid identification information through the service recommendation application.
By associating the identification information of the grid with the identification information of the base station and the identification information of the geofence, in the cell after handover, if there are multiple geofences associated with the same grid. The geofence identification application need only determine whether the identity of the one grid meets the trigger requirement to determine whether the plurality of geofences can be triggered. The complicated process of judging whether the geofence of each second service in the switched cell is triggered or not is solved, and the detection efficiency of the geofence triggering in the switched cell is greatly improved.
When the geofence identification application determines that the same grid identification as the target grid identification does not exist in the grid identification set of the second geofence, the geofence identification application can locate current geographic location information through the locating module and calculate first grid identification information based on the geographic location information.
In one possible implementation, after step 609 is performed, the geofence recognition application may calculate the first grid identification information by the base station module scanning for neighbor base stations. The base station module can scan neighboring base stations and send data communicated with the base stations to the geofence recognition module, so that the geofence recognition application can predict and calculate the longitude and latitude of the current position through the data. The geofence recognition application can then use its predicted computed longitude and latitude as inputs to the mapping function in equation (1) above, thereby obtaining a grid identification. The grid identification is the first grid identification information. The geofence identification application then determines whether there is grid identification information in the grid identification set of the second geofence that is the same as the first grid identification information. If so, the geofence identification application triggers a second geofence corresponding to the first grid identification information through the service recommendation application. If not, the geofence identification application performs a "calculate first grid identification information by the base station module scanning for neighbor base stations" step after a first time period. The first duration may be obtained from an empirical value, may be obtained from historical data, or may be obtained from experimental data, which is not limited by the embodiment of the present application. In this way, the geofence recognition application can locate without invoking the underlying location module, and the electronic device consumes less power by scanning the neighboring cell base station to calculate the location than if the underlying location module were invoked to locate the location.
In the above embodiment, the electronic device may trigger the geofence after determining the geofence that meets the triggering condition through the cell information of the cell after the handover in the first feature information list. For the traditional geofence triggering method, the electronic equipment needs to use a plurality of threads in the geofence identification application to trigger and detect the geofences of different types of geofence services, namely each thread needs to judge whether the geofence service corresponding to the thread meets the triggering condition or not based on the cell information. In the method for triggering the geofence provided by the embodiment of the application, the electronic equipment only needs to use one thread in the geofence identification module, and the thread determines the target geofence service corresponding to the cell information in the first characteristic information list according to the switched cell information. Since each cell information corresponds to at least one geofence service in the first list of characteristic information. Therefore, under the condition that a plurality of geofence services exist in the target geofence service, the electronic equipment can detect the geofence services of a plurality of types by using one thread, so that the number of threads used by the electronic equipment is greatly reduced, a large amount of computing resources of the electronic equipment are saved, and the working performance of the electronic equipment is improved.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated. Fig. 7 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 7, the application packages may include applications for cameras, gallery, calendar, talk, map, navigation, music, geofence identification applications, service recommendation applications, and the like.
The geofence identification application is used for judging whether to trigger the geofence, and the service recommendation application is used for triggering the geofence of the corresponding service type according to the instruction sent by the geofence identification application.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 7, the application framework layer may include a base station module, a location module, a wifi module, a phone manager, a resource manager, a notification manager, and the like.
The base station module is used for detecting whether the cell is switched or not, and sending the switched cell information to the geofence identification module under the condition of the cell switching.
The positioning module is used for acquiring geographic position information (such as longitude and latitude) of the current position.
The Wifi module is used for scanning Wifi information of the current position.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The structure of the electronic device 100 is described below. Referring to fig. 8, fig. 8 is a schematic hardware structure of an electronic device 100 according to an embodiment of the application.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 151, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wi-Fi network), blueTooth (BT), BLE broadcast, global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied on the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2. In an embodiment of the present application, the wireless communication module 160 may receive information of the base station so that the electronic device may establish a geofence based on the obtained base station information.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
In an embodiment of the present application, the camera 193 may be turned on after the electronic device turns on the code scanning function, and obtain the preview image in real time, and display the preview image on the display screen 194.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk), etc.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by computer programs, which may be stored on a computer-readable storage medium, and which, when executed, may include the steps of the above-described method embodiments. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.
In summary, the foregoing description is only an embodiment of the technical solution of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention should be included in the protection scope of the present invention.

Claims (17)

1. A method of triggering a geofence, applied to an electronic device, the method comprising:
if the cell switching is detected, the electronic equipment acquires cell information of the switched cell;
determining a geofence service corresponding to the cell information in a first characteristic information list; the first characteristic information list comprises a plurality of pieces of cell information, in the first characteristic information list, each piece of target cell information corresponds to at least one piece of geofence service, and a cell indicated by the target cell information has a geofence;
Triggering a geofence corresponding to the target geofence service; and the target geofence service is a service meeting a triggering condition in the geofence service corresponding to the cell information.
2. The method of claim 1, wherein the triggering the corresponding geofence of the target geofence service specifically comprises:
if a first service exists in the geofence services corresponding to the cell information, triggering a first geofence by the electronic equipment, wherein the first geofence is the geofence corresponding to the first service, and the first service is the geofence service with the triggering precision being the first triggering precision in a geofence white list;
if a second service exists in the geofence service corresponding to the cell information, acquiring current geographic position information; the second service is a geofence service with a triggering precision of a second triggering precision or a third triggering precision in the geofence white list, wherein the first triggering precision is smaller than the second triggering precision, and the second triggering precision is smaller than the third triggering precision;
calculating first grid identification information according to the current geographic position information;
Judging whether the second geofence meets a triggering condition or not based on the first grid identification information and the second characteristic information list; the second geofence is a geofence corresponding to the first grid identification information;
and triggering the second geofence if the triggering condition is met.
3. The method of claim 2, wherein in the first list of characteristic information, each geofence service corresponds to identification information of one or more geofences;
wherein the second characteristic information list comprises identification information of a plurality of geofences, and the identification information of each geofence corresponds to at least one grid identification information.
4. The method of claim 3, wherein in the second characteristic information list, the identification information of each first target geofence corresponds to at least one piece of wifi information, the triggering precision of the service corresponding to the first target geofence is a third triggering precision, and the determining whether the second geofence meets the triggering condition based on the first grid identification information and the second characteristic information list specifically includes:
acquiring identification information of the second geofence from the first characteristic information list;
Determining a grid identification set of each second geofence in the second characteristic information list according to the identification information of the second geofence; the grid identification set comprises at least one grid identification information;
if a target grid identification set exists and the triggering precision of the geofence service corresponding to the target grid identification set is the second triggering precision, determining that the second geofence meets the triggering condition; the target grid identification set is a set with the same grid identification information as the first grid identification information;
if a target grid identification set exists and the triggering precision of the geofence service corresponding to the target grid identification set is the third triggering precision, matching the scanned wifi information with the wifi information of the second geofence in the second characteristic information list;
and if the matching is successful, determining that the second geofence meets a triggering condition.
5. The method according to any one of claims 2-4, wherein the obtaining current geographic location information comprises:
and acquiring the longitude and latitude of the current position through network positioning or GPS positioning, wherein the longitude and latitude are the current geographic position information.
6. The method according to any one of claims 2-4, wherein the obtaining current geographic location information comprises:
scanning neighbor cell base stations of the switched cells;
receiving data information acquired by the neighbor cell base station;
and calculating the longitude and latitude of the current position according to the data information, wherein the longitude and latitude are the current geographic position information.
7. The method as claimed in claim 2, comprising:
if the triggering condition is not met, calculating the positioning time length;
and after the positioning time length, executing the flow of acquiring the current geographic position information.
8. The method of claim 7, wherein the calculating a positioning duration comprises:
in the case where there are a plurality of second geofences, calculating a distance of each second geofence center point from the current geographic location;
determining the minimum distance as a first distance;
and calculating the positioning duration based on the first distance and the current moving speed of the electronic equipment.
9. The method of any of claims 1-4, 7-8, wherein the electronic device comprises a geofence identification application, a service recommendation application, a base station module, the method comprising:
If the base station module detects that the cell is switched, sending cell information of the switched cell to the geofence recognition application;
the geofence identification application determines a geofence service corresponding to the cell information in the first characteristic information list;
the geofence recognition application sending a fence trigger message to the service recommendation application, the fence trigger message including a service tag of the target geofence service;
the service recommendation application triggers a geofence corresponding to the target geofence service.
10. The method of claim 9, wherein the fence trigger message is a first fence trigger message or a second fence trigger message, the electronic device further comprising a positioning module, the geofence identification application further comprising, prior to sending the fence trigger message to the service recommendation application:
if a first service exists in the geofence services corresponding to the cell information, the geofence identification application sends a first fence trigger message to the service recommendation application; the first fence trigger message is to instruct the service recommendation application to trigger a first geofence;
If a second service exists in the geofence services corresponding to the cell information, the geofence identification application sends a positioning request to the positioning module;
the positioning module acquires current geographic position information;
the positioning module sends the current geographic position information to the geofence identification application;
the geofence identification application calculates first grid identification information according to the current geographic position information;
the geofence identification application determining whether a second geofence meets a trigger condition based on the first grid identification information and a second list of characteristic information;
and if the triggering condition is met, the geofence recognition application sends a second fence triggering message to the service recommendation application, wherein the second fence triggering message is used for indicating the service recommendation application to trigger the second geofence.
11. The method of claim 10, wherein the geofence identification application determining whether the second geofence satisfies a trigger condition based on the first grid identification information and a second list of characteristic information, in particular comprising:
the geofence identification application obtains identification information of the second geofence from the first characteristic information list;
The geofence identification application determining a grid identification set for each second geofence in the second feature information list according to the identification information of the second geofence;
if a target grid identification set exists and the triggering precision of the geofence service corresponding to the target grid identification set is the second triggering precision, the geofence identification application determines that the second geofence meets the triggering condition;
if a target grid identification set exists and the triggering precision of the geofence service corresponding to the target grid identification set is the third triggering precision, the geofence identification application matches the wifi information of the second geofence in the second characteristic information list according to the scanned wifi information;
if the matching is successful, the geofence identification application determines that the second geofence satisfies a trigger condition.
12. The method according to any one of claims 10-11, wherein the positioning module obtains current geographical location information, specifically comprising:
and acquiring the longitude and latitude of the current position through network positioning or GPS positioning, wherein the longitude and latitude are the current geographic position information.
13. The method according to any one of claims 10-11, wherein the positioning module obtains current geographical location information, specifically comprising:
Scanning neighboring cell base stations of the switched cell through the base station module;
receiving data information acquired by a neighbor cell base station sent by the base station module;
and calculating the longitude and latitude of the current position according to the data information, wherein the longitude and latitude are the current geographic position information.
14. The method according to any one of claims 10-11, comprising:
if the triggering condition is not met, the geofence recognition application calculates a positioning time length;
after the positioning duration, executing a flow of sending a positioning request to the positioning module by the geofence recognition application.
15. The method of claim 14, wherein the geofence recognition application calculates a positioning duration, comprising:
in the case where there are a plurality of second geofences, calculating a distance of each second geofence center point from the current geographic location;
determining the minimum distance as a first distance;
and calculating the positioning duration based on the first distance and the current moving speed of the electronic equipment.
16. An electronic device, comprising: the device comprises a memory, a processor and a touch screen; wherein:
the touch screen is used for displaying content;
The memory is used for storing a computer program, and the computer program comprises program instructions;
the processor is configured to invoke the program instructions to cause the electronic device to perform the method of any of claims 1-15.
17. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method according to any of claims 1-15.
CN202211058828.3A 2022-08-31 2022-08-31 Geofence triggering method and related electronic equipment Active CN116056003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211058828.3A CN116056003B (en) 2022-08-31 2022-08-31 Geofence triggering method and related electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211058828.3A CN116056003B (en) 2022-08-31 2022-08-31 Geofence triggering method and related electronic equipment

Publications (2)

Publication Number Publication Date
CN116056003A CN116056003A (en) 2023-05-02
CN116056003B true CN116056003B (en) 2023-10-20

Family

ID=86122395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211058828.3A Active CN116056003B (en) 2022-08-31 2022-08-31 Geofence triggering method and related electronic equipment

Country Status (1)

Country Link
CN (1) CN116056003B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7706808B1 (en) * 2005-07-07 2010-04-27 Rearden Commerce, Inc. One-click service status tracking and updates
CN105528384A (en) * 2014-10-27 2016-04-27 阿里巴巴集团控股有限公司 An information push method and device
CN108419210A (en) * 2012-08-22 2018-08-17 电子湾有限公司 The passive Dynamic Geographic fence of mobile device
WO2019061362A1 (en) * 2017-09-29 2019-04-04 华为技术有限公司 Method and device for accessing device identifiers
CN111010666A (en) * 2019-12-30 2020-04-14 中科星图股份有限公司 GeoHash-based real-time monitoring method for geo-fence event
CN111427983A (en) * 2020-03-23 2020-07-17 携程旅游信息技术(上海)有限公司 Service method, system, device and storage medium based on geographic information retrieval

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8504061B2 (en) * 2010-04-07 2013-08-06 Apple Inc. Multi-tier geofence detection
KR101701972B1 (en) * 2013-02-22 2017-02-03 인텔 코포레이션 Geo-fence notification management
KR101997771B1 (en) * 2013-04-08 2019-07-08 삼성전자주식회사 Apparatas and method for offered a geofence service of low electric power in an electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7706808B1 (en) * 2005-07-07 2010-04-27 Rearden Commerce, Inc. One-click service status tracking and updates
CN108419210A (en) * 2012-08-22 2018-08-17 电子湾有限公司 The passive Dynamic Geographic fence of mobile device
CN105528384A (en) * 2014-10-27 2016-04-27 阿里巴巴集团控股有限公司 An information push method and device
WO2019061362A1 (en) * 2017-09-29 2019-04-04 华为技术有限公司 Method and device for accessing device identifiers
CN111010666A (en) * 2019-12-30 2020-04-14 中科星图股份有限公司 GeoHash-based real-time monitoring method for geo-fence event
CN111427983A (en) * 2020-03-23 2020-07-17 携程旅游信息技术(上海)有限公司 Service method, system, device and storage medium based on geographic information retrieval

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"一种地理围栏服务中的LBS 隐私保护方法";杨松涛,马春光,周长利,张宗利;《山东大学学报( 理学版)》;第49卷(第9期);全篇 *
"基于增强现实和地理围栏的社交网络***设计";岳远紊;王玥瑶;康雨豪;丁家祺;吴坤霖;《测绘地理信息》;第47卷(第3期);全篇 *
China Unicom, Huawei, ZTE, CATT, InterDigital, Futurewei, Verizon, Intel, Airbus, Vodafone. "KPIs for UAV services".3GPP tsg_sa\wg1_serv.2019,(tsgs1_88_reno),全篇. *
Yemao Man ; Edith C.-H. Ngai ; Yan Liu."A Glimpse of Energy-Efficient Location-Triggered Mobile Application Design and Implementation in Data Collection Scenarios".《2012 8th International Conference on Mobile Ad-hoc and Sensor Networks (MSN)》.2013,全篇. *

Also Published As

Publication number Publication date
CN116056003A (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN110505572B (en) Indoor positioning method and electronic equipment
CN113840346B (en) Operator switching method and related equipment
CN112995409B (en) Display method of intelligent communication strategy effective scene, mobile terminal and computer readable storage medium
CN113691331B (en) Signal strength prediction method and mobile terminal
CN116056003B (en) Geofence triggering method and related electronic equipment
CN116668580B (en) Scene recognition method, electronic device and readable storage medium
CN116709501A (en) Service scene identification method, electronic equipment and storage medium
CN116709180B (en) Geofence generation method and server
CN114173286A (en) Method and device for determining test path, electronic equipment and readable storage medium
CN107548030A (en) The control of WiFi switches, data query method of servicing, equipment and medium
KR101469083B1 (en) A method and Apparatus for configuring machine to machine communication environment by local area network in a vehicle
CN116033344B (en) Geofence determination method, equipment and storage medium
CN116055631B (en) Code scanning prompt method and related electronic equipment
CN117128985B (en) Point cloud map updating method and equipment
CN116027941B (en) Service recommendation method and electronic equipment
CN117376830B (en) Geofence matching method, electronic device and computer readable storage medium
CN115550844B (en) Region dividing method, device, electronic equipment and readable storage medium
CN116233749B (en) Message pushing method, mobile terminal and computer readable storage medium
CN116095230B (en) Application program recommendation method, terminal device and readable storage medium
CN116437293B (en) Geofence establishment method, server and communication system
CN116033368B (en) Device discovery method, system, terminal device and chip system
CN115175164B (en) Communication control method and related device
CN116668576B (en) Method, device, cloud management platform, system and storage medium for acquiring data
CN116311311B (en) Electronic form generation method, electronic form generation device, electronic equipment and readable storage medium
CN115544350A (en) Information pushing method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant