CN116709180B - Geofence generation method and server - Google Patents

Geofence generation method and server Download PDF

Info

Publication number
CN116709180B
CN116709180B CN202211100891.9A CN202211100891A CN116709180B CN 116709180 B CN116709180 B CN 116709180B CN 202211100891 A CN202211100891 A CN 202211100891A CN 116709180 B CN116709180 B CN 116709180B
Authority
CN
China
Prior art keywords
cell
cell set
geofence
electronic device
express
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
CN202211100891.9A
Other languages
Chinese (zh)
Other versions
CN116709180A (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 CN202211100891.9A priority Critical patent/CN116709180B/en
Publication of CN116709180A publication Critical patent/CN116709180A/en
Application granted granted Critical
Publication of CN116709180B publication Critical patent/CN116709180B/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
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • 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

Abstract

The embodiment of the application provides a geofence generation method and a server. In the method, when the server evaluates and verifies the cell set corresponding to the initial geofence, abnormal cells in the cell set are removed, and the rest cells in the cell set are evaluated and verified according to the cell sequence acquired by the electronic equipment based on the user route after the initial geofence is triggered, so that the accuracy of the cell set for generating the target geofence is ensured, and the problem that the electronic equipment receives notification or warning by mistake is avoided.

Description

Geofence generation method and server
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and a server for generating a geofence.
Background
Geofencing (Geo-fencing) is a new application of LBS (Location Based Services ) in which a virtual fence is used to enclose a virtual geographic boundary. The handset may automatically receive notifications and alerts when it enters, leaves, or is active within a particular geographic area.
Therefore, how to improve the accuracy of the geofence and avoid the phenomenon that the mobile phone receives the notification or the warning by mistake is a problem to be solved.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present application provide a method and a server for generating a geofence. In the method, when the server evaluates and verifies the cell set corresponding to the initial geofence, abnormal cells in the cell set are removed, and the rest cells in the cell set are evaluated and verified in the forward direction based on the cell sequence acquired by the user route by triggering the initial geofence by the user, so that the accuracy of the cell set for generating the target geofence is ensured, and the problem of false receiving notification or warning of the electronic equipment is avoided.
In a first aspect, an embodiment of the present application provides a method for generating a geofence. The method comprises the following steps: the method comprises the steps that a server obtains an initial geofence corresponding to a target area, wherein the initial geofence corresponds to a first base station cell set; the method comprises the steps that a server obtains a first feedback cell set corresponding to a target area; the cells in the first feedback cell set are abnormal cells determined according to dotting data sent by the electronic equipment; the server filters the first cell set according to the first feedback cell set to obtain a second cell set; the method comprises the steps that a server obtains a cell sequence of the electronic equipment for route acquisition based on a user after triggering an initial geofence, and a cell verification set is generated according to cells included in the cell sequence; the server verifies the second cell set according to the cell verification set to obtain a third cell set serving as a target cell set corresponding to the target area; the target cell set is used for generating a target geofence corresponding to the target area.
By way of example, the target area may be a residential cell or the like.
The initial geofence is a geofence to be evaluated and verified, and can be issued to the electronic device as a silent geofence. The target geofence is the geographic position after evaluation and verification, and can be issued to the electronic equipment as an online fence.
The abnormal cells in the first feedback cell set are used as negative feedback cells and used for eliminating the abnormal cells in the cell set. And taking the cells in the cell sequence acquired based on the route of the user as positive feedback cells for verifying the accuracy of non-abnormal cells in the cells.
In this way, when the server evaluates and verifies the cell set corresponding to the initial geofence, abnormal cells in the cell set are removed, and the remaining cells in the cell set are evaluated and verified in the forward direction based on the cell sequence acquired by the user route by triggering the initial geofence by the user, so that the accuracy of the cell set for generating the target geofence is ensured, and the problem of false receiving notification or warning of the electronic equipment is avoided.
According to a first aspect, the method further comprises: the server acquires a second feedback cell set corresponding to the target area; the cells in the second feedback cell set are normal cells determined according to dotting data sent by the electronic equipment; the server adds the normal cells in the second feedback cell set to the cell verification set.
In this way, adding the normal cells in the second feedback cell set to the cell verification set may be an effective supplement to the cell verification set.
According to the first aspect, or any implementation manner of the first aspect, the method further includes: and obtaining the cell in the dotting data reported by the electronic equipment when the user finishes the preset operation, and adding the cell into the cell verification set.
Therefore, the cell in the dotting data reported by the electronic equipment when the user completes the preset operation is added to the cell verification set, and the cell verification set can be effectively supplemented.
According to the first aspect, or any implementation manner of the first aspect, the target area includes an express receiving point, and the preset operation includes a pickup operation.
According to the first aspect, or any implementation manner of the first aspect, after obtaining the third cell set, the method further includes: the server calculates the fence triggering accuracy of the electronic equipment according to the first feedback cell set and the second feedback cell set; the server calculates the coverage rate of the third cell set relative to the second cell set according to the cell numbers of the third cell set and the second cell set; and if the fence triggering accuracy is greater than the first threshold and/or the coverage rate is greater than the second threshold, the server takes the third cell set as a target cell set corresponding to the target area.
Therefore, after the server finishes the evaluation and verification on the cell set based on the positive and negative feedback cells and the cell verification set, the obtained target cell set can be issued to the electronic device as an online geofence only when the fence triggering accuracy of the electronic device and/or the coverage rate of the cell set obtained after the evaluation and verification meet the requirements, so that the accuracy of the target geofence is further ensured.
According to the first aspect, or any implementation manner of the first aspect, the calculating, by the server, the fence trigger accuracy of the electronic device according to the first feedback cell set and the second feedback cell set may include:
the server counts the total number of dotting points a corresponding to each cell in the first feedback cell set and the total number of dotting points b corresponding to each cell in the second feedback cell set; the server takes the value of b/(a+b) as the fence trigger accuracy of the electronic device.
According to the first aspect, or any implementation manner of the first aspect, the method further includes:
the server counts the dotting data received in a preset time window, and counts the triggering times of the fences corresponding to each cell according to the dotting data; if the fence triggering times of the target cell are larger than a third threshold, the server counts the first times and the second times corresponding to the target cell; the first time is the time when the target cell is judged to be a normal cell, and the second time is the time when the target cell is judged to be an abnormal cell; if the ratio of the first times to the total times is smaller than the fourth threshold value, the server adds the target cell to the first feedback cell set, otherwise, the server adds the target cell to the second feedback cell set.
According to the first aspect, or any implementation manner of the first aspect, the filtering, by the server, the first cell set according to the first feedback cell set to obtain a second cell set may include: the server takes the difference set between the first cell set and the first feedback cell set as a second cell set.
According to the first aspect, or any implementation manner of the first aspect, the verifying, by the server, the second cell set according to the cell verification set to obtain a third cell set may include: the server uses the intersection of the second cell set and the cell verification set as a third cell set.
According to the first aspect, or any implementation manner of the first aspect, after the server verifies the second cell set according to the cell verification set to obtain a third cell set, the method further includes: the server acquires an initial increment cell set corresponding to a target area; the server performs evaluation and verification on the initial increment cell set to obtain a target increment cell set; and the server takes the union of the target cell set and the target increment cell set as an updated target cell set corresponding to the target area.
Therefore, the server only needs to evaluate and check the increment cell set, and the efficiency of evaluating and checking the cell set can be effectively improved.
According to the first aspect, or any implementation manner of the first aspect, the server performs an evaluation check on the initial incremental cell set to obtain a target incremental cell set, which may include: the server filters the initial increment cell set according to the first feedback cell set to obtain a first increment cell set; the method comprises the steps that a server obtains a cell sequence of route acquisition based on a user after triggering a geofence corresponding to an initial increment cell set, and a cell verification set is generated according to cells included in the cell sequence; the server adds normal cells in the second feedback cell set and cells in dotting data reported by the electronic equipment when a user completes preset operation into a cell verification set; and the server verifies the first incremental cell set according to the cell verification set to obtain a target incremental cell set.
Similar to the first cell set corresponding to the initial geofence, abnormal cells in the cell set are removed, and other cells are subjected to forward evaluation verification based on the cell sequence acquired by the user route on the basis of triggering the initial geofence by the user, so that the accuracy of the cell set for generating the target geofence is ensured, and the problem that the electronic equipment receives notification or warning by mistake is avoided.
According to the first aspect, or any implementation manner of the first aspect, the method further includes: deleting the aged cells in the target cell set by the server; the aging cell is a cell which is not reported by the electronic equipment through dotting data in a preset time period.
In this way, the server deletes cells in the cell set that have not been fed back by the user for a period of time, thereby reducing redundant cell information in the target geofence.
In a second aspect, embodiments of the present application provide a server. The server includes: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored on the memory, which when executed by the one or more processors, cause the server to perform the first aspect and the method of generating a geofence of any of the first aspect.
Any implementation manner of the second aspect and the second aspect corresponds to any implementation manner of the first aspect and the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation manner of the second aspect may be referred to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which are not described herein.
In a third aspect, embodiments of the present application provide a computer-readable storage medium. The computer readable storage medium comprises a computer program which, when run on an electronic device, causes the electronic device to perform the first aspect and the method of generating a geofence of any one of the first aspects.
Any implementation manner of the third aspect and any implementation manner of the third aspect corresponds to any implementation manner of the first aspect and any implementation manner of the first aspect, respectively. The technical effects corresponding to the third aspect and any implementation manner of the third aspect may be referred to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which are not described herein.
In a fourth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed, causes a computer to perform the method of generating a geofence as in the first aspect or any one of the first aspects.
Any implementation manner of the fourth aspect and any implementation manner of the fourth aspect corresponds to any implementation manner of the first aspect and any implementation manner of the first aspect, respectively. Technical effects corresponding to any implementation manner of the fourth aspect may be referred to the technical effects corresponding to any implementation manner of the first aspect, and are not described herein.
In a fifth aspect, the present application provides a chip comprising processing circuitry, a transceiver pin. Wherein the transceiver pin and the processing circuit communicate with each other via an internal connection path, the processing circuit performing the geofence generation method of the first aspect or any one of the first aspects to control the receive pin to receive signals and to control the transmit pin to transmit signals.
Any implementation manner of the fifth aspect and any implementation manner of the fifth aspect corresponds to any implementation manner of the first aspect and any implementation manner of the first aspect, respectively. Technical effects corresponding to any implementation manner of the fifth aspect may be referred to the technical effects corresponding to any implementation manner of the first aspect, and are not described herein.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an electronic device exemplarily shown;
FIG. 2 is a schematic diagram of a software architecture of an exemplary electronic device;
FIG. 3 is a schematic diagram of a cell corresponding to an exemplary user residence;
fig. 4 is a schematic diagram of a cell corresponding to an express receiving point shown in an exemplary manner;
fig. 5 is a schematic diagram of a cell corresponding to the periphery of an exemplary residential cell;
FIG. 6 is a flow diagram of an exemplary illustrated residential cell fingerprint library generation;
FIG. 7 is a flow chart illustrating an exemplary terminal server evaluating and revising a cell geofence;
fig. 8 is a schematic diagram illustrating a generation flow of the first feedback cell set and the second feedback cell set;
fig. 9 is a schematic diagram illustrating deletion of abnormal cells based on a first feedback cell set;
FIG. 10 is a schematic diagram of an exemplary illustrated generation of a cell verification set;
FIG. 11 is a schematic diagram of an exemplary illustration of verifying cell accuracy based on a set of cell verifications;
fig. 12 is a flow chart illustrating an exemplary target cell set update;
FIG. 13 is a schematic diagram of a cell geofence of an exemplary express hint;
fig. 14 is a schematic view of a scenario of an express delivery prompt shown in an exemplary manner;
FIG. 15a is a schematic diagram of an electronic device interface exemplarily shown for the scenario shown in FIG. 14;
FIG. 15b is a schematic diagram of an electronic device interface exemplarily shown for the scenario shown in FIG. 14;
FIG. 16 is a schematic view of another exemplary illustration of a scenario of an express delivery prompt;
FIG. 17 is an interface schematic diagram of an exemplary presentation prompt;
FIG. 18 is an interface schematic diagram of an exemplary presentation prompt;
FIG. 19 is an interface schematic diagram of an exemplary presentation prompt;
Fig. 20 is a schematic diagram of an exemplary express delivery prompt flow;
fig. 21 is a block diagram of an apparatus shown by way of example.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms first and second and the like in the description and in the claims of embodiments of the present application are used for distinguishing between different objects and not necessarily for describing a particular sequential order of objects. For example, the first target object and the second target object, etc., are used to distinguish between different target objects, and are not used to describe a particular order of target objects.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more. For example, the plurality of processing units refers to two or more processing units; the plurality of systems means two or more systems.
Before describing embodiments of the present application, some concepts related to the embodiments of the present application will be described first.
For example, the electronic device in the embodiments of the present application may also be referred to as a terminal device, or a terminal (terminal), a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), or the like.
By way of example, in some implementations, the electronic device may be a mobile phone (mobile phone), a wearable device, a tablet (Pad), a computer with wireless transceiving functionality, a Virtual Reality (VR) electronic device, an augmented reality (augmented reality, AR) electronic device, a wireless terminal in an industrial control (industrial control), a wireless terminal in a self-driving (self-driving), etc., which are not further listed herein.
In addition, in the embodiment of the application, the electronic device may also be an electronic device in an internet of things (internet of things, ioT) system, and the IoT is an important component of future information technology development, and the main technical characteristic of the IoT is that the article is connected with a network through a communication technology, so that man-machine interconnection and an intelligent network for internet of things are realized. The embodiment of the application does not limit the specific technology and the specific equipment form adopted by the electronic equipment.
In an embodiment of the present application, an electronic device may include a hardware layer, an operating system layer running above the hardware layer, and an application layer running above the operating system layer. The hardware layer includes hardware such as a central processing unit (central processing unit, CPU), a memory management unit (memory management unit, MMU), and a memory (also referred to as a main memory). The operating system may be any one or more computer operating systems that implement business processes through processes (processes), such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. The application layer comprises applications such as a browser, an address book, word processing software, instant messaging software and the like.
In order to better understand the technical solution provided by the embodiments of the present application, the structure of the electronic device of the embodiments of the present application is first described below.
Fig. 1 schematically shows a hardware configuration of an electronic device 100. Referring to fig. 1, an electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc.
By way of example, in some implementations, the sensor module 180 may include a pressure sensor, a gyroscope sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc., which are not further illustrated herein.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present 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 processingunit, GPU), an image signal processor (image signal processor, ISP), a controller, 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 controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it may be called from memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
For example, in some implementations, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
With continued reference to fig. 1, the exemplary charge management module 140 is operable to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging implementations, the charge management module 140 may receive a charging input of the wired charger through the USB interface 130. In some wireless charging implementations, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
With continued reference to fig. 1, an exemplary power management module 141 is used to connect the battery 142, the charge management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other implementations, the power management module 141 may also be provided in the processor 110. In other implementations, the power management module 141 and the charge management module 140 may also be disposed in the same device.
With continued reference to fig. 1, exemplary wireless communication functions of the electronic device 100 may be implemented by an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used to transmit and receive 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 implementations, the antenna may be used in conjunction with a tuning switch.
With continued reference to fig. 1, the exemplary mobile communication module 150 may provide a solution for wireless communications, including 2G/3G/4G/5G, as 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 implementations, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some implementations, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
In addition, the modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some implementations, the modem processor may be a stand-alone device. In other implementations, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
With continued reference to fig. 1, exemplary wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), 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., as applied to 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 particular, in the technical solution provided in the embodiment of the present application, the electronic device 100 may communicate with a server corresponding to the express service through the mobile communication module 150 or the wireless communication module 160. For example, the electronic device 100 may receive, through the mobile communication module 150, the express information of the to-be-fetched piece and the like issued by the express server.
In addition, it should be noted that the electronic device 100 implements the display function through the GPU, the display screen 194, the 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.
With continued reference to FIG. 1, exemplary display 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 implementations, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
In addition, it should be noted that the electronic device 100 may implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display 194, an application processor, and the like.
In addition, the ISP is used to process data fed back from 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 implementations, the ISP may be provided in the camera 193.
In addition, it is also noted that the camera 193 is used for capturing still images or videos. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some implementations, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
In addition, the digital signal processor is used to process digital signals, and may process other digital signals in addition to 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.
Furthermore, it should be noted that video codecs are used for compressing or decompressing digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
With continued reference to FIG. 1, an exemplary external memory interface 120 may be used to interface with an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
With continued reference to fig. 1, by way of example, internal memory 121 may be used to store computer-executable program code that includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
In addition, it should be further noted that the electronic device 100 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playing, recording, etc.
In addition, it should be noted that the audio module 170 is configured to convert digital audio information into an analog audio signal output, and also configured 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 implementations, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
With continued reference to FIG. 1, exemplary keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
With continued reference to FIG. 1, exemplary, motor 191 may generate a vibration alert. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
With continued reference to fig. 1, the indicator 192 may be, for example, an indicator light, may be used to indicate a state of charge, a change in charge, may be used to indicate a message, missed call, notification, or the like.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is illustrative, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
As to the hardware architecture of the electronic device 100, it should be understood that the electronic device 100 shown in fig. 1 is merely an example, and in particular implementations, the electronic device 100 may have more or fewer components than shown, may combine two or more components, or may have different component configurations. The various components shown in fig. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
In order to better understand the software structure of the electronic device 100 shown in fig. 1, the software structure of the electronic device 100 is described below. Before explaining the software structure of the electronic device 100, an architecture that can be adopted by a software system of the electronic device 100 will be first described.
Specifically, in practical applications, 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.
Furthermore, it is understood that software systems currently in use in mainstream electronic devices include, but are not limited to, windows systems, android systems, and iOS systems. For convenience of explanation, the embodiment of the present application takes an Android system with a layered architecture as an example, and illustrates a software structure of the electronic device 100.
Referring to fig. 2, a software architecture block diagram of an electronic device 100 according to an embodiment of the present application is shown.
As shown in fig. 2, the layered architecture of the electronic device 100 divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through a software interface. In some implementations, 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, among other things. As shown in fig. 2, the application package may include applications such as a camera, a calendar, a phone, a map, a phone, a setting, a context awareness module, a business logic processing module, a business presentation module, and a service center, which are not further illustrated herein, but are not limited thereto.
The context awareness module, the business logic processing module, the business presentation module and the service center are main functional modules for realizing the embodiment of the application.
Illustratively, the context awareness module operates resident or in a low power form, with the ability to perceive an external fact or environment. For example, when the express prompt service is in an on state, the context awareness module monitors the registered capability (or matters such as a specific time, a specific place, or a specific event) according to the service logic processing module, and if a user triggers one of the cases, the context awareness module can send a notification to the service logic processing module. In addition, the context awareness module may also detect related events and acquire status of events from other applications at the application layer or application framework layer or system layer or kernel layer through an application programming interface (application programming interface, API), such as detecting bluetooth connections, network connections, monitoring user messages, customizing timers, etc. In some embodiments of the present application, the context awareness module is primarily operative to perceive whether the user is in a geofence of an express reminder, etc.
The business logic processing module has business logic processing capability and can be used for realizing various express prompt display and disappearing (namely canceling display) logic. For example, the business logic processing module receives the notification sent by the context awareness module and used for indicating that something is detected (such as that the geofence of the express prompt is triggered), and can send a command to the business presentation module according to logic to display the corresponding card.
In addition, it should be noted that this card can carry the link, and follow-up when this card is clicked to the user, can jump to some three party APP or applet that this link corresponds according to the link, need not this APP or applet of user's own search like this, and a key operation just can start, and is quick, convenient.
In addition, the service logic processing module may also display or disappear the card on the electronic device 100 by receiving the notification sent by the context awareness module for indicating that the two-dimensional code is used by the user, for example, the two-dimensional code of the piece taking information corresponding to the piece to be taken.
It will be appreciated that, in particular to practical applications, the service logic processing module may be, for example, a computing engine in an electronic device.
And the business presentation module is used for displaying the determined card on the screen of the electronic equipment or canceling the displayed card from the screen of the electronic equipment. For example, the service presentation module may receive a command transmitted by the service logic processing module to display a reminder card, and present the reminder card to the user, and when the user clicks on the card, may link to a certain page of a certain APP. For example, in some embodiments of the present application, a user clicks a displayed express card, and the electronic device may pull up a scanning interface for implementing scanning of the express cabinet, so that the user may directly scan a two-dimensional code on the express cabinet, or when the user clicks a displayed two-dimensional code control corresponding to a to-be-fetched piece, the electronic device may pull up an interface for displaying the two-dimensional code, so that a camera on the express cabinet may scan the two-dimensional code to obtain a corresponding to-be-fetched piece, thereby enabling the express cabinet to automatically open a corresponding cabinet door, and facilitating use of the user.
It will be appreciated that in some implementations, the business presentation module may be, for example, a specific area (intelligent service recommendation area) displayed in the screen of the electronic device, i.e., in which the display of the corresponding card is made. In particular, in the present embodiment, it will be referred to as YOYO proposal hereinafter.
The service center is used for providing service for the change of the data in the service, and the service center can be corresponding to a service center Database (DB). For example, taking the service center serving the express service as an example, the service center can receive the express data change information pushed by the cloud side, cache the express data in the service center DB, and notify the service presentation module to change the express information.
Correspondingly, if the command of disappearing the card transmitted by the service logic processing module is received, the service presentation module can disappear the card.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. Wherein the application framework layer comprises a number of predefined functions.
As shown in FIG. 2, the application framework layer may include a window manager, a content provider, a resource manager, a view system, a notification manager, an activity manager, etc., which are not explicitly recited herein, and are not limiting.
The window manager is used for managing window programs. The window manager may obtain the display screen size, determine if there is a status bar, lock the screen, touch the screen, drag the screen, intercept the screen, etc.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
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 information is used to inform that the download is complete, a message alert, etc. The notification information may also be a notification in the form of a chart or scroll bar text appearing in the system top status bar, such as a notification of a background running application, or a notification appearing on a screen in the form of a dialog window. The notification information is also, for example, a text message presented in a status bar, a notification sound emitted, an electronic device vibrated, a flashing indicator light, or the like.
The activity manager is used for managing activity-related transactions such as start, state, life cycle of an application. Wherein activity is an application component that can provide an interface through which a user can interact with an electronic device to perform a task.
Android Runtime (Android run) includes a core library and virtual machines. Android run 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 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.
It will be appreciated that the 2D graphics engine described above is a drawing engine for 2D drawing.
Furthermore, it can be appreciated that the kernel layer in the Android system is a layer between hardware and software. The inner core layer at least comprises display drive, camera drive, audio drive, sensor drive and the like.
As to the software structure of the electronic device 100, it is to be understood that the layers and the components included in the layers in the software structure shown in fig. 2 do not constitute a specific limitation of the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer layers than shown, and more or fewer components may be included in each layer, as the present application is not limited.
In order to better understand the technical scheme provided by the application, a possible use scenario is described.
In one possible implementation manner, when a user of the electronic device has an express to be fetched, the express server may push a message to be fetched to the electronic device, where the message to be fetched may include an express receiving point name and express information. The express delivery receiving point name can be the three-party logistics identifier of the cell in which the express delivery cabinet is located and the express delivery receiving point, for example, the express delivery receiving point name can include: cell a north door F express cabinet, etc. The express information includes, for example, a pick-up code, an express status, and the like, and the express status includes, for example: waiting for a piece, in transit, or in dispatch, etc.
When the electronic equipment receives the message to be fetched, the express information prompt can be carried out. For example, when the prompt of the express information is performed, the electronic device may perform the push of the express information through one or more of a notification message, a pull-down notification bar message, a card in the main interface, an express card in the minus one screen, and the like.
However, in the above way of prompting the express information, when the electronic device receives the message to be fetched, and when the electronic device receives the message to be fetched, the user may be at a position far from the express receiving point, so when the user reaches the express receiving point, the user may have long time from receiving the message to be fetched, so that the user may forget to fetch the message, and more invariants are caused to the user.
In one possible implementation, the electronic device may establish a global positioning system (global positioning system, GPS) geofence centered at the express receiving point, and trigger the GPS geofence to prompt the user to take the piece in time when determining that the electronic device is less than a certain distance from the express receiving point based on the GPS positioning information of the electronic device. For example, when the electronic device triggers the GPS geofence, the electronic device may push the express information through one or more of a notification message, a drop-down notification bar message, a card in the main interface, an express card in the minus screen, or a yoyoyo suggestion, etc.
However, when the electronic device utilizes the GPS geofence to push the express information, the electronic device needs to continuously start GPS positioning, which results in higher power consumption of the electronic device.
In view of this, the embodiments of the present application may obtain a cell geofence corresponding to an express hint determined based on a base station cell (cell). When the electronic equipment enters the area corresponding to the cell geofence, the electronic equipment triggers the cell geofence and timely prompts a user to get a piece, and the power consumption of the electronic equipment is small based on express prompt realized by the cell geofence.
For example, the cell geofence corresponding to the express delivery hint may be a cell geofence corresponding to an area (e.g., residential cell) where the express delivery receiving point is located. Wherein the cell geofence includes a plurality of cells, corresponding to a set of cells, which may be referred to as a fingerprint library or a feature library. Taking a residential cell as an example, a cell set corresponding to a cell geofence of the residential cell may be referred to as a cell fingerprint library or a cell feature library. The cell fingerprint library may include cells corresponding to the user's home (or address, residence, etc.), cells around the residence cell, etc. It should be noted that the cell set corresponding to the user's home is included in the cell set around the residential cell.
For ease of understanding, several types of cells are described below in connection with fig. 3-5. It will be appreciated that the embodiments herein are illustrated with circles representing the scope of cells, and this example is not meant to limit the specific type of cell area.
Fig. 3 is a schematic diagram of a home cell according to an embodiment of the present application.
In the embodiment of the present application, the number of cells at home may be one or more. For example, the application layer of the electronic device may set up a user portrayal module that may obtain a home location based on a user behavior trace. For example, if the user trajectory indicates that the user is often at a location at 12-5 pm, the user portraiting module may determine the location as location information for home. It will be appreciated that the user portrayal module may also be based on a similar approach to obtain the location of the company, etc.
In one possible implementation manner, the number of the families in the user portrait module may be multiple, for example, the user portrait module obtains the location information of the family a of the user in the city a, and subsequently, the user portrait module obtains the location information of the family B of the user in the city B because of long-term business trip and other reasons, so that the user portrait module can store both the family a and the family B as the families of the user. Illustratively, the user is in city B for more than 3 days, and the user portrayal module may obtain location information of user's home B in city B.
In another possible implementation manner, the electronic device may also obtain the home location information marked by the user in an application program such as a map, a taxi taking, etc., and the embodiment of the present application does not limit the manner of obtaining the home location information.
Thus, after obtaining the location information of the home based on any one or several of the above methods, the corresponding cell of the home, such as cell_11 and cell_12 in fig. 3, can be obtained according to the location information of the home.
Fig. 4 is a cell schematic diagram of an express receiving point according to an embodiment of the present application.
In this embodiment of the present application, the cells corresponding to the express receiving points (express cabinet a and express cabinet B) are exemplified, and it can be understood that each express receiving point may correspond to a cell. The number of cells corresponding to the express receiving points may be one or more.
In a possible implementation manner, the electronic device may identify a key location name based on the name of the express receiving point, and call a map software development kit (software development kit, SDK) to query latitude and longitude information of the express receiving point according to the key location name, so as to obtain a cell where the express receiving point is located based on the latitude and longitude information of the express receiving point, such as a cell_21 corresponding to the express cabinet a and a cell_22 corresponding to the express cabinet B in fig. 4.
In another possible implementation manner, the terminal server may generate an express receiving point fingerprint library. The express receiving point fingerprint library can be understood as a database storing position information of a plurality of express receiving points, wherein the position information can comprise longitude and latitude information, cell information and the like. The electronic device may obtain a cell corresponding to the express receiving point from the terminal server, such as cell_21 corresponding to the express cabinet a and cell_22 corresponding to the express cabinet B in fig. 4.
In some implementations, the terminal server may receive a plurality of sets of dotting data reported by a certain electronic device, and the terminal server may also receive a plurality of sets of dotting data reported by a plurality of electronic devices. Furthermore, the terminal server can generate an express point fingerprint library (or a called express point feature library) based on the dotting data reported by the electronic equipment. The dotting data may include dotting data reported by the electronic device when receiving the pickup notification, or dotting data reported by the electronic device when the user finishes pickup. In particular, in practical applications, the dotting data may include: the data such as the express bill number, the express receiving point name, the address information (or called positioning information) of the device, the base station cell (cell) information where the device is located, and the time information when the dotting data is reported are not listed here, and the embodiment is not limited to this.
Similarly, the terminal server may also generate a cell fingerprint library based on multiple sets of dotting data reported by multiple electronic devices. The dotting data can comprise dotting data reported by the electronic equipment when the electronic equipment triggers the home fence and the home fence is triggered. In particular, in practical applications, the dotting data may include: the data such as the name of the residential area where the device is located, address information (or called positioning information) of the device, base station cell (cell) information where the device is located, and time information when the dotting data is reported are not listed here, and the embodiment is not limited thereto.
Fig. 5 is a schematic diagram of cells around a residential cell according to an embodiment of the present application.
In this embodiment of the present application, cells around the residential cell may further include N-hop cells around the location of the home in the user portrait, where N is a natural number, in addition to cells corresponding to the home in the user portrait. Illustratively, as shown in FIG. 5, the cells numbered 1-5 may be 5-hop cells around the residential cell.
It will be appreciated that in one possible implementation, the cells around the residential cell may be N-tier cells centered around the home, so that the cells around the residential cell are more readily available.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
By way of example, fig. 6 shows a schematic flow diagram of residential cell fingerprint library generation. As shown in fig. 6, the method flow includes:
s101, the electronic equipment opens an express service switch based on the service presentation module.
In this embodiment of the present application, the electronic device may display a switch control for opening the express service based on the service presentation module, and when receiving that the user triggers the switch control to open the express service, the service presentation module may push information (not shown in the figure) that the express service switch is opened to the context awareness module, and the service logic processing module may instruct the context awareness module to collect cell information near a home (or called a residential community).
It can be understood that the electronic device may default the express service to be in an on state, and S101 may be omitted.
In addition, in some implementations, a switch control for opening the express service may be integrated in the setting application, so that the user may implement opening the express service or closing the express service by operating the switch control for opening the express service in the setting application.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
S102, the business logic processing module instructs the context awareness module to register a home fence and a away fence.
In the embodiment of the application, the home fence is understood to be a fence that is triggered when the electronic device enters the home geofence from an area outside the home geofence. An out-of-home fence may be understood as a fence that is triggered when an electronic device leaves from a home's geofence. Wherein the home's geofence may be derived by the electronic device from the user's home location information in the user representation of the application layer.
For example, the business logic processing module may send instructions to the context awareness module indicating to register a home fence and a away fence, and the context awareness module may register a home fence and a away fence.
S103, registering a home fence and a away fence by the context awareness module.
For example, after receiving the instruction sent by the business logic processing module to register the home fence and the away fence, the context awareness module registers the home fence and the away fence based on the position information of the user's home in the user portrait.
S104, when the context awareness module monitors that the electronic equipment triggers the away-home fence, the context awareness module prompts the business logic processing module to trigger the away-home fence.
S105, the business logic processing module instructs the situation awareness module to collect N-hop cells, wherein N is a natural number.
In the embodiment of the present application, the specific value of N is not limited, for example, N may be 5.
S106, stopping acquisition after the situation awareness module acquires the N-hop cell; or stopping acquisition after the preset duration by the context awareness module; or the context awareness module stops collecting when the electronic equipment is monitored to trigger the home fence.
It will be appreciated that the area moved by the user after leaving the home is typically the range around the residential area, so after the electronic device triggers the leaving fence, the N-hop cell is typically the cell around the residential area, and after N hops are exceeded, the user may be far away from the residential area, and the acquisition may be stopped to obtain the information of the N-hop cell.
Or after the user leaves home, the user may stop at a certain position and not move, and then N-hop cell may not be obtained, so if the context awareness module continuously collects cell information, the computing resource waste is caused and larger power consumption is brought, and therefore, the context awareness module can stop collecting cell information after a preset duration. The preset duration may be 10 minutes, etc., which is not specifically limited in the embodiments of the present application.
Or after the user leaves home, the user can return home faster to trigger the home fence, so that the situation awareness module can stop acquiring cell information.
And S107, the electronic equipment reports dotting data to the terminal server according to the cell information acquired by the context awareness module.
Wherein, the dotting data may include: the data such as the name of the residential area where the device is located, address information (or called positioning information) of the device, base station cell (cell) information where the device is located, and time information when the dotting data is reported are not listed here, and the embodiment is not limited thereto.
S108, the terminal server generates a cell fingerprint library based on the dotting data reported by the electronic equipment.
It can be understood that the terminal server may receive the dotting data reported multiple times by a certain electronic device, and the terminal server may also receive the dotting data reported multiple times by multiple electronic devices.
The terminal server can cluster the cells in the dotting data based on home images of users to obtain cell information corresponding to a certain residential cell, and can cluster the cells in the dotting data based on the name of the residential cell and a cell acquisition task to obtain cell information around the residential cell corresponding to the certain residential cell.
Thus, the cell information corresponding to the residential cell and the cell information around the cell corresponding to a certain residential cell can be combined to obtain the cell fingerprint library corresponding to the residential cell, namely, the cell geofence corresponding to the residential cell.
The residential community of the embodiment of the application can also be replaced by any place, such as an office building, a park, any landmark, etc. Similarly, based on the method for obtaining the cell fingerprint library, the cell fingerprint library corresponding to a certain place can be obtained, and further the departure fence and the entry fence corresponding to the place can be registered, and related details are not repeated here.
However, there may be a delay in reporting the dotting data and locating by the electronic device, and the user's home portraits are not necessarily accurate, which can have an effect on the accuracy of the cell geofence corresponding to the cell fingerprint library. When the accuracy of the cell geofence is reduced, the problem of the electronic device receiving the notification or warning by mistake can definitely occur, so that the user experience is poor.
In order to solve the above problems, the embodiment of the present application provides a method for generating a geofence. In the method, for the cell geofence obtained based on the crowdsourcing idea, a terminal server evaluates all cells in the cell geofence to ensure the accuracy of each cell in the cell geofence, so that the accuracy of the cell geofence is improved, and the phenomenon that electronic equipment receives notification or warning by mistake is avoided.
Fig. 7 is a flow chart illustrating the evaluation and modification of a cell geofence of a residential cell by a terminal server. As shown in fig. 7, the process of evaluating and modifying the cell geofence of a residential cell by the terminal server specifically includes:
s201, the terminal server obtains an initial geofence corresponding to the residential cell, the initial geofence corresponding to the first set of cells, and transmits the initial geofence as a silent geofence to the electronic device.
The first cell set is obtained by clustering a plurality of cells based on a crowdsourcing idea, and is a cell set which needs to be evaluated and corrected.
The user of the electronic equipment does not feel the silent geofence, but when the silent geofence is triggered, the electronic equipment reports dotting data to the terminal server. The dotting data reported by the electronic device includes, but is not limited to, cell information and GPS information.
S202, a terminal server acquires dotting data reported by the electronic equipment due to triggering of the silent geofence, and obtains a first feedback cell set (also called as a negative feedback cell set) and a second feedback cell set (also called as a positive feedback cell set) based on the dotting data.
The cells included in the first feedback cell set are abnormal cells, and the cells included in the second feedback cell set are normal cells.
After the user holds the electronic device into the first geofence (i.e., silence geofence), the electronic device is triggered to send dotting data to the terminal server. The terminal server may determine whether the cell included in the dotting data is an abnormal cell according to the positioning information included in the dotting data and the address information of the user portrait.
For example, if the distance between the location information included in the dotting data and the address information of the user portrait is greater than or equal to a preset distance threshold, the terminal server may determine that the cell included in the dotting data is an abnormal cell. If the distance between the positioning information included in the dotting data and the address information of the user portrait is smaller than a preset distance threshold value, the terminal server can judge that the cell included in the dotting data is a normal cell.
As an alternative implementation manner, the terminal server determines the first feedback cell set and the second feedback cell set based on dotting data in a period of time. By way of example, the period of time may be 14 days before the current time.
As shown in fig. 8, the step of determining, by the terminal server, the first feedback cell set and the second feedback cell set based on the dotting data over a period of time may include:
and S2021, the terminal server counts dotting data reported by each electronic device for the residential district in a period of time, and determines the triggering times of the fence corresponding to each cell.
For example, if the dotting data sent by a certain electronic device to the terminal server includes cell_a, the number of times of triggering the fence corresponding to cell_a is increased by 1.
And S2022, the terminal server sequentially takes each cell as a current processing cell, judges whether the triggering times of the fence corresponding to the current processing cell are larger than a preset time threshold, if yes, S2023 is executed, if not, S2022 is executed to continuously judge the next cell until all the cells related to dotting data are judged.
S2023, the terminal server counts the first times corresponding to the current processing cell and the second times corresponding to the current processing cell.
The first time is used for indicating the number of times that the current processing cell is judged to be a normal cell, and the second time is used for indicating the number of times that the current processing cell is judged to be an abnormal cell. For the determination methods of the normal cell and the abnormal cell, reference may be made to the foregoing, and details are not repeated here.
S2024, the terminal server calculates the ratio of the first times to the total times. Wherein the total number of times is the sum of the first number of times and the second number of times.
S2025, the terminal server judges whether the ratio is larger than a preset threshold, if yes, S2026 is executed, and if not, S2027 is executed.
S2026, the terminal server adds the current processing cell as a normal cell to the second feedback cell set, and S2022 is executed.
S2027, the terminal server adds the current processing cell as an abnormal cell to the first feedback cell set, and S2022 is executed.
Therefore, the terminal server can determine the positive feedback cell set and the negative feedback cell set according to dotting data reported by the electronic equipment. The cells in the negative feedback cell set are used for eliminating the cells in the first cell set; and the cells in the positive feedback cell set are used for verifying the cells in the first cell set.
It should be noted that the cells in the first and second feedback cell sets are updated over time with a time statistics window. For example, when the time statistics window is 1 month, 1 day and 1 month, 14, the first feedback cell set and the second feedback cell set are determined by the terminal server based on the dotting data reported by the electronic device in the time statistics window, and the terminal server updates the first feedback cell set and the second feedback cell set based on the time statistics window after the pushing as the time statistics window is shifted to 1 month, 2 days and 1 month, 15 days.
S203, the terminal server filters the first cell set according to the abnormal cells in the first feedback cell set to obtain a second cell set.
If the first cell set includes abnormal cells in the first feedback cell set, rejecting the abnormal cells in the first cell set, and the cell set after rejecting the abnormal cells is called a second cell set. Only abnormal cells are removed from the second cell set, and the remaining cells still cannot be ensured to be normal cells, and verification still needs to be continued.
For example, as shown in fig. 9, the first cell set is { cell1, cell2, cell3, cell4, cell5, cell6, cell7, cell8, cell9, cell10, cell11}, the first feedback cell set is { cell1, cell2, cell3, cell4, cell9}, and the difference between the first cell set and the first feedback cell set is obtained, so that the second cell set is { cell5, cell6, cell7, cell8, cell10, cell11}.
With continued reference to fig. 9, in the first set, the set of cells is { cell1, cell2, cell3, cell4, cell5, cell6}, and the set of cells surrounding the cell is { cell1, cell2, cell3, cell4, cell5, cell6, cell7, cell8, cell9, cell10, cell11}. In the second cell set, the cell set after abnormal cells are removed is { cell5, cell6}, and the cell set around the cell after abnormal cells are removed is { cell5, cell6, cell7, cell8, cell10, cell11}.
S204, the terminal server acquires a cell sequence acquired by the electronic device based on the user route after triggering the silent geofence, and generates a cell verification set based on cells included in the cell sequence.
After triggering the silent geofence corresponding to the residential community, the electronic equipment can acquire the cells according to a preset time interval to obtain a cell sequence corresponding to the travelling route of the user. Wherein the time interval is configurable.
The electronic device may trigger a silent geofence for the electronic device when the electronic device collects a cell sequence corresponding to the user travel route, and may connect to a Wi-Fi signal in the user's home when the electronic device terminates.
In this way, each cell included in the cell sequence corresponding to the user travel route has higher accuracy, and can be used for verifying the cells in the second cell set.
In an alternative embodiment, the terminal server may further add the normal cell in the cell verification set according to the second feedback cell set as a complement to the cell verification set.
As shown in fig. 10, the cell sequence corresponding to the user travel route and the second feedback cell set are subjected to a union operation, so as to obtain a cell verification set.
In another optional implementation manner, the terminal server may further add the cell reported by the electronic device when the user completes the pick-up operation to the second feedback cell set, or directly add the cell to the cell verification set, as a supplement to the cell verification set.
In this way, the accuracy of each cell in the cell verification set is high.
S205, the terminal server verifies the cells in the second cell set according to the cell verification set, obtains a third cell set as a target cell set corresponding to the residential community, and sends a target geofence corresponding to the target cell set to the electronic equipment to serve as an online geofence.
The terminal server determines whether each cell in the second cell set is correct based on the cells included in the cell verification set. If any cell included in the second cell set is not included in the cell verification set, the accuracy of the cell is low, and the cell needs to be rejected in the second cell set.
The terminal server can obtain a third cell set by intersecting the second cell set and the cell verification set. For example, as shown in fig. 11, the second cell set is { cell5, cell6, cell7, cell8, cell10, cell11}, and the cell verification set is { cell5, cell6, cell8, cell10, cell11}, and then the second cell set is intersected with the cell verification set to obtain the second cell set as { cell5, cell6, cell8, cell10, cell11}.
At this time, the terminal server may use the third cell set as a target cell set corresponding to the residential cell, and send a target geofence corresponding to the target cell set to the electronic device as an online geofence.
Wherein the online geofence is a user-perceivable geofence. The electronic device can automatically receive notifications and alerts when the electronic device enters, leaves, or is active within a certain online geofence. In this embodiment, the online geofence is generated after reasonable evaluation, so that the use experience of the user can be ensured, and the electronic device pops up a notification or warning in a proper geographic area.
Before the terminal server takes the third cell set as a target cell set corresponding to the residential community and sends a target geofence corresponding to the target cell set to the electronic equipment as an online geofence, the triggering accuracy of the electronic equipment and/or the coverage rate of the third cell set for the second cell set can be judged. If the triggering accuracy of the electronic equipment is greater than the accuracy threshold and/or the coverage rate of the third cell set for the second cell set is greater than the coverage rate threshold, the terminal server sends the third cell set to the electronic equipment as an online geofence as a target cell set corresponding to the residential district.
The triggering accuracy (or fence triggering accuracy) of the electronic device can be understood as the accuracy of the electronic device for sending dotting data based on the cell. The terminal server counts the total number of dotting points a corresponding to each cell in the first feedback cell set, the total number of dotting points b corresponding to each cell in the second feedback cell set, and the value of b/(a+b) is used as the triggering accuracy of the electronic device.
The coverage rate of the third cell set for the second cell set is a ratio of the number of cells in the third cell set to the number of cells in the second cell set.
In practical applications, for each residential cell, the terminal server may periodically generate a target geofence corresponding to each residential cell and send the target geofence corresponding to the set of target cells to the electronic device as an online geofence. That is, the terminal server may periodically update the target geofence corresponding to each residential cell and re-issue to the electronic device.
Illustratively, the terminal server updates the target geofence for each residential cell daily and re-issues to the electronic device. The following explanation will be made taking the update cycle as a daily example.
Because a large number of electronic devices report a large amount of dotting data to a terminal server every day, the large amount of dotting data iterates so that the cell aggregate data to be verified is more and more. In some possible implementations, a big data lake may be set in the terminal server, where more dotting data may be stored. The terminal server generates a set of cells to be evaluated (i.e., the first set of cells described above) corresponding to each residential cell based on the data in the big data lake. Based on the method described above, the terminal server may generate a target cell set corresponding to each residential cell daily, and send a target geofence corresponding to the target cell set to the electronic device as an online geofence.
It will be appreciated that in practical applications, there may be invalid data generated by false triggering of the user in more dotting data. For example, after the user mistakenly triggers the code scanning and part taking entrance control, the user exits the code scanning and part taking function, and part taking is not achieved, the position where the user is located is likely not the position where the express receiving point is located, and the data reported by the electronic equipment due to the mistaken triggering can be invalid data. Thus, the terminal server can filter out invalid data based on the filtering condition.
Illustratively, in some implementations, the screening conditions may include: for a certain express, the interval between the first time information of the first time of reporting the corresponding dotting data of the express and the second time information of the second time of reporting the corresponding dotting data of the express is smaller than a preset duration, the preset duration can be shorter time, for example, M minutes, and M can be a smaller value, and the embodiment of the application is not particularly limited.
When the interval between the first time information and the second time information corresponding to the express is smaller than the preset duration, the fact that effective picking of the express is completed for the express user can be reflected, and the position of the user in picking is the position of the receiving point of the express with high probability, so that dotting data corresponding to the express can be used as effective data.
In order to improve the generation efficiency of the target cell set corresponding to each residential cell, for each residential cell, the terminal server may obtain the current day target cell set based on the difference set between the current day first cell set and the previous day target cell set. The terminal server may perform the evaluation and verification only for the difference set (referred to as the first cell difference set for the moment) between the first cell set on the current day and the target cell set on the previous day.
It should be noted that the cells included in the first cell difference set are cells that exist in the cell set to be evaluated on the current day and that do not exist in the target cell set on the previous day. It is understood that the first cell difference set is a first incremental cell set of the current day versus the previous day target cell set.
The process of performing the evaluation and verification on the first cell difference set (i.e., the first incremental cell set) by the terminal server may include:
the terminal server sends the geofence corresponding to the first cell difference set to the electronic equipment as a silent geofence;
the terminal server filters the first cell difference set according to the abnormal cells in the first feedback cell set to obtain a second cell difference set;
the terminal server acquires a cell sequence acquired by the electronic device based on a user route after triggering the silent geofence, and generates a cell verification set based on cells included in the cell sequence, normal cells in the second feedback cell set and cells reported by the electronic device when the user completes a piece taking operation;
the terminal server verifies the cells in the second cell difference set according to the cell verification set to obtain a third cell difference set;
and if the triggering accuracy of the electronic equipment is greater than an accuracy threshold and/or the coverage rate of the third cell difference set for the second cell difference set is greater than a coverage rate threshold, the terminal server takes the third cell difference set as a target cell difference set corresponding to the residential cell.
The present process is not explained in detail, and reference is made to the foregoing, and will not be repeated here.
Thus, as shown in fig. 12, when the terminal server completes the evaluation and verification on the difference set between the first cell set on the day and the target cell set on the previous day to obtain the target cell difference set on the day, the target cell difference set on the day can be added on the basis of the target cell set on the previous day to obtain the target cell set on the day. Further, the terminal server may send the target geofence corresponding to the target cell set on the current day to the electronic device as an online geofence on the current day.
Considering that the possibility of base station detachment exists, and the electronic equipment side may have requirements on the number of the cell registrations of the fence due to the limited chip protocol, the terminal server may perform aging processing on the cell set corresponding to the geofence at regular intervals, that is, delete the aged cells in the cell set. The aged cell may refer to a cell in which the electronic device does not report the dotting data in a period of time (e.g., approximately 3 months).
The terminal server judges whether the current time meets the cell aging condition or not, if yes, deletes the aged cells in the third cell set, and then sends the cell set after deleting the aged cells to the electronic equipment as an online geofence as a target cell set corresponding to the residential district.
The cell aging condition may be, for example, that a time difference between the current time and the initial generation time of the target cell set is greater than a preset duration.
If the terminal server judges that the current time does not meet the cell aging condition, the third cell set is directly used as a target cell set corresponding to the residential community and is sent to the electronic equipment to serve as an online geofence.
In this way, the terminal server further improves the accuracy of the cell set issued to the electronic device through the aging treatment of the cells in the cell fingerprint library, so that the electronic device can accurately pop up notifications or warnings and the like according to the accurate cell set.
The following still takes an application scenario of taking an express delivery by a user as an example, and explains the express delivery prompt of the user by the electronic equipment based on the cell geofence with the express delivery prompt in detail.
The cell geofence registered by the electronic device and corresponding to the express prompt, that is, the online cell geofence corresponding to the express prompt may include: the home portrait corresponds to the cell, the peripheral cells of the residential district and the cells of the express receiving points.
By way of example, FIG. 13 shows a schematic diagram of a cell geofence for an express hint. Taking the example of establishing a cell geofence of an express delivery prompt when the electronic device receives a message to be fetched of the express delivery cabinet a, as shown in fig. 13, the cell geofence may include a cell_11 and a cell_12 corresponding to a home portrait, a cell around a residential district (a cell with reference numerals 1-13), and a cell_21 corresponding to the express delivery cabinet a.
Further, when the electronic device enters the area of the cell geofence shown in fig. 13, the electronic device can trigger the cell geofence, so as to make an express prompt, and the user can conveniently learn the related information of the to-be-fetched piece.
Regarding when to register a cell geofence, when to trigger an express hint, described below in connection with FIG. 14.
For example, fig. 14 illustrates a user driving a vehicle to move to a cell, and the cell geofence of the express delivery prompt is similar to that illustrated in fig. 13, and still take a cell geofence may include a cell_11 and a cell_12 corresponding to a home portrait, a cell around a residential cell (a cell numbered 1-13), and a cell_21 corresponding to an express delivery cabinet a as an example.
Referring to fig. 14, the cell geofence of the express delivery prompt is specifically registered after receiving the message to be fetched of the express delivery cabinet a, for example, the user receives the message to be fetched of the express delivery cabinet a on the road where the user drives the vehicle home, and at this time, the electronic device can execute the operation of registering the cell geofence of the express delivery prompt.
With continued reference to fig. 14, exemplary, after the electronic device has registered a cell geofence, when it is detected that the electronic device has not yet entered the registered cell geofence range, the express delivery prompting procedure may not be triggered, thereby reducing long-term occupation of resource occupation of the electronic device.
For example, in other implementations, after the electronic device registers a cell geofence, an express alert may also be made when it is detected that the electronic device has not currently entered the registered cell geofence range. For example, the express prompt made in the range of the non-registered cell geofence is, for example, to display express information of the to-be-fetched piece on the interface of the electronic device, and to control the vibration and/or ringing of the electronic device.
Regarding an interface for displaying express information of a to-be-fetched item, for example, fig. 15a shows. Illustratively, the interface shown in FIG. 15a is a negative one-screen interface of an electronic device.
As shown in fig. 15a, the negative one-screen interface may include a resident card, i.e., a card that is always displayed. The resident express card 10a may be set at the resident card, and when the electronic device receives the message to be fetched, the electronic device displays an express prompt message for each express in the resident express card 10a, where the express message in the express prompt message may include an express bill number, an express receiver phone tail number, an express receiving point name, a time when the express reaches the express receiving point, and the like, which is not listed one by one herein.
Optionally, the resident express card 10a may also include express prompt information of express in transportation, express prompt information of express in delivery, and the like.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
Therefore, when a user waits for a traffic light during parking, the mobile phone is checked to obtain express information of the to-be-fetched part so as to directly go to a corresponding express receiving point when entering a cell.
With continued reference to fig. 14, the exemplary user-driven vehicle continues to advance and, upon entering a registered cell geofence range, such as the cell labeled 9 in fig. 14, the electronic device may, in one possible implementation, display an interface as shown in fig. 15b while controlling the electronic device to vibrate and/or ring.
As shown in fig. 15b, the electronic device may display the identifier of the YOYO suggestion in the other area of the negative one-screen interface except for the resident card, and display the active card in the area corresponding to the yoyoyo suggestion.
Note that, the identifier of the YOYO suggestion is synchronized with the number of active cards displayed in the corresponding area, and as shown in fig. 15b, the corresponding area only displays the express prompt information 10b, and the identifier of the YOYO suggestion is "1".
As shown in fig. 15b, the YOYO suggestion activity card may display an express delivery prompt message in the express delivery cabinet a, where the express delivery prompt message in the express delivery cabinet a may include: the express delivery cabinet A is provided with all express delivery pick-up codes and names of the express delivery cabinets A. Thus, the user can conveniently obtain all express delivery pickup codes of one express delivery receiving point based on one card. Optionally, when the express prompt information is displayed on the negative one-screen interface through the YOYO suggestion active card, the message to be fetched may also be displayed on the negative one-screen interface through the resident express card 10a, such as express information to be fetched in the a cell where the express cabinet a shown in fig. 15B is located, and express information of express in transportation, such as express information of the B cell shown in fig. 15B, where the express cabinet a is located.
Optionally, the yoyoyo suggestion activity card may further include a scan code access control 10b-1 for pulling up the scan express cabinet, so that when the electronic device receives a trigger to scan the scan code access control 10b-1, the electronic device may quickly pull up a scan function, and the user may scan the two-dimensional code (or any code such as a bar code) of the express cabinet a by using the scan function, so as to implement quick access.
With continued reference to fig. 14, when the electronic device enters the registered cell geofence range, such as the cell labeled 9 in fig. 14, in another possible implementation, the electronic device may determine whether the cell to which the electronic device is connected belongs to the cell of the express delivery cabinet a or whether the cell to which the electronic device is connected is a cell within the Q layer of the fence from home, where Q is less than N, for example, Q may be 2.
Accordingly, if the cell to which the electronic device is connected belongs to the cell of the express cabinet a or the cell to which the electronic device is connected is a cell within the Q layer of the fence away from home, the electronic device may display an interface as shown in fig. 15 b.
If the cell connected with the electronic device does not belong to the cell of the express cabinet A, and the cell connected with the electronic device is not a cell within the Q layer of the fence away from home, the electronic device can acquire the current motion state of the electronic device, and the motion state can comprise static state and dynamic state. Further, the dynamics can be further divided into a fast motion state and a slow motion state. The fast motion state is, for example, speed information generated when the vehicle moves, and the slow motion state is, for example, speed information generated when the user walks and runs with the electronic equipment.
Based on the above classification, in some implementations, a fast motion state, such as the motion speed of the electronic device, is greater than or equal to a speed threshold, and a slow motion state, such as the motion speed of the electronic device, is less than the speed threshold. The fast motion state may also be referred to as a riding state, that is, the state of motion by means of a vehicle, and the slow motion state may also be referred to as a walking/running gait, and the specific value of the speed threshold is not limited in the embodiments of the present application.
Based on the above state classification, when the electronic device determines that the current motion state is a fast motion state, the electronic device may display an interface as shown in fig. 15 b; when the electronic device determines that the current motion state is a slow motion state, the specific implementation may refer to the description of the corresponding embodiment of fig. 16.
For example, fig. 16 illustrates a user walking to a cell, and the cell geofence for the express delivery prompt is similar to that illustrated in fig. 13 and 14, and still includes cells_11 and cells_12 corresponding to the family portrait, cells around the residential cell (the cells numbered 1-13), and cells_21 corresponding to the express delivery cabinet a.
Referring to fig. 16, the cell geofence of the express delivery prompt is specifically registered after receiving a message to be fetched of the express delivery cabinet a, for example, when the user receives the message to be fetched of the express delivery cabinet a on the way to walk home, the operation of registering the cell geofence of the express delivery prompt can be performed.
With continued reference to fig. 16, exemplary, after the electronic device has registered a cell geofence, when it is detected that the electronic device has not yet entered the registered cell geofence range, the express delivery prompting procedure may not be triggered, thereby reducing long-term occupation of resource occupation of the electronic device.
For example, in other implementations, after the electronic device registers a cell geofence, when it is detected that the electronic device does not enter the registered cell geofence, an express prompt may be made, for example, the content shown in fig. 15a is displayed on the negative one-screen interface of the electronic device, and the electronic device is controlled to vibrate and/or ring. For details of the implementation of the express delivery prompt in the walking state, reference may be made to the above, and details are not repeated here.
With continued reference to fig. 16, the exemplary user continues to walk, and upon entering a registered cell geofence range, such as the cell labeled 9 in fig. 16, in one possible implementation, the electronic device may obtain current motion state information to determine a corresponding motion state.
Accordingly, if in a fast motion state, the interface shown in fig. 15b is directly displayed while controlling the electronic device to vibrate and/or ring. If the state is in the slow motion state, whether the cell connected at present belongs to the cell of the express cabinet A or whether the cell connected with the electronic equipment is a cell within the Q layer of the fence away from the home is further judged. If the cell connected to the electronic device does not belong to the cell of the express cabinet and the cell connected to the electronic device is not a cell within the Q layer of the enclosure from home, the electronic device may register a geofence including only the Q layer cell range, and when the electronic device enters the geofence of the Q layer cell range, display an interface as shown in fig. 15b, and control the electronic device to vibrate and/or ring. Reference may be made to the above description regarding the interface shown in fig. 15b, which is not repeated here.
It can be understood that fig. 14 to 16 show interfaces for prompting express information by the electronic device on the active card of the negative one-screen interface, and the electronic device may also prompt express information by pulling down one or more of the notification bar, the card in the main interface, the resident express card in the negative one-screen interface, and the like.
Fig. 17 is an interface schematic diagram of an electronic device for performing express prompt in a notification window in a lock screen interface according to an embodiment of the present application.
In an alternative embodiment, if the electronic device determines that the preset express prompt condition is met, the electronic device is in a screen locking state, as shown in fig. 17, and the electronic device may display the express prompt information in a notification window 10c in the screen locking interface.
For example, in one possible implementation, the express delivery prompt information may include a pick-up code, a type of express delivery cabinet, and the like.
For example, in another possible implementation, if the electronic device cannot obtain the picking code, the express delivery prompt information may include a type of the express delivery cabinet, a name of the express delivery cabinet, and so on.
Further, in order to facilitate the user to fetch the part, a code scanning and fetching entry control 10c-1 corresponding to the express prompt information may be displayed in the notification window 10 c. Thus, when the electronic device receives the trigger of the code scanning access control 10c-1, the electronic device can quickly pull up the code scanning function, and a user can scan the two-dimensional code (or any code such as a bar code) of the express cabinet A by using the code scanning function to realize quick access.
For example, in a practical application, one or more notification windows may be included in the lock screen interface. Correspondingly, the express prompt information to be displayed can be displayed in any one or a designated notification window.
The method and the device have the advantages that the express prompt information is displayed in one notification window, so that the situation that a plurality of express prompt information occupy different notification windows, so that a plurality of notification windows are caused and a user is omitted can be avoided. Therefore, the screen locking interface can be guaranteed to be clean and tidy, the possibility that a user forgets to take an express delivery can be reduced, and the user experience is improved.
The express prompt information is displayed in the appointed notification window, so that a user can conveniently check the notification window each time, and all express information required to be fetched can be obtained. Therefore, the screen locking interface can be guaranteed to be clean and tidy, the possibility that a user forgets to take an express delivery can be reduced, and the user experience is improved.
In addition, it should be noted that, in practical application, the prompt may be performed by using the express receiving points as dimensions, that is, the express prompt information corresponding to each express receiving point corresponds to a notification window.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
Fig. 18 is an interface schematic diagram of performing an express prompt in a manner of pulling down a notification bar in an application interface currently started by an electronic device according to an embodiment of the present application.
In an alternative embodiment, if the electronic device determines that the preset express prompt condition is met, the electronic device displays an application interface, as shown in fig. 18, and the electronic device may display the express prompt information in a drop-down notification bar 10d of the application interface.
For example, in one possible implementation, the express delivery prompt information may include a pick-up code, a type of express delivery cabinet, and the like.
For example, in another possible implementation, if the electronic device cannot obtain the picking code, the express delivery prompt information may include a type of the express delivery cabinet, a name of the express delivery cabinet, and so on.
Further, in order to facilitate the user to fetch the part, the code scanning and fetching entry control 10d-1 corresponding to the express prompt information may also be displayed in the pull-down notification bar 10 d. Thus, when the electronic device receives the trigger of the code scanning access control 10d-1, the electronic device can quickly pull up the code scanning function, and a user can scan the two-dimensional code (or any code such as a bar code) of the express cabinet A by using the code scanning function to realize quick access.
It can be understood that in the express delivery prompt information of the drop-down notification bar in the embodiment of the present application, the dimensions of the express delivery receiving points are used for prompting, and each express delivery receiving point can correspond to the express delivery prompt information of one drop-down notification bar. If a plurality of express receiving points need to be subjected to express information prompt, the express prompt information corresponding to each express receiving point can be popped up in turn at the drop-down notification bar of the application interface.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
Fig. 13 is an interface schematic diagram of an electronic device for performing express prompt on a main interface according to an embodiment of the present application.
As shown in fig. 13, an intelligent service recommendation area in which the resident card 10e can be set may be set in the main interface of the electronic device. When the electronic device determines that the preset express prompt condition is met, as shown in fig. 13, express prompt information may be displayed in the resident card 10e, and the content of the express prompt information in the main interface may be similar to or the same as the content of the express prompt information in the YOYO suggestion activity card in the negative one-screen interface, which is not described herein.
Further, in order to facilitate the user to take a piece, a code scanning access control 10e-1 corresponding to the express prompt information may also be displayed in the resident card 10 e. Thus, when the electronic device receives the trigger of the code scanning access control 10d-1, the electronic device can quickly pull up the code scanning function, and a user can scan the two-dimensional code (or any code such as a bar code) of the express cabinet A by using the code scanning function to realize quick access.
For example, in some implementations, information such as weather may be displayed in the host interface resident card 10e when the courier in the host interface resident card 10e is all removed.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
In combination with the description of the above scenario, implementation details of the express delivery prompting method provided in the present application are described below, and the following details are provided only for convenience of understanding, but are not necessary to implement the present embodiment.
Referring to fig. 20, the method for the electronic device to prompt the express delivery specifically includes:
s301, the business logic processing module instructs the context awareness module to register a fast-forwarding notification fence.
In this embodiment, the fast-forwarding notification fence may be used for the context awareness module to perceive whether the service center has an express change. The change of the express delivery comprises the existing express delivery taking out, or a new to-be-taken part, or an express delivery in transportation, or an express delivery coming to a station, and the like.
For example, after the context awareness module registers the rapid-change notification fence (not shown in the figure) according to the instruction of the service processing module, the context awareness module may instruct the service center to monitor the rapid-change.
S302, the context awareness module instructs the service center to monitor express changes.
S303, when the service center has the express change, the service center indicates the express change of the context awareness module.
For example, the service center may send instructions to the context awareness module indicating the change in the express.
S304, the context awareness module sends a rapid-progression change notification to the business logic processing module.
S305, the business logic processing module judges the current express state and determines whether express in the state of to-be-fetched is available.
That is, in this embodiment, the express delivery prompt is only for the express delivery of the state of the to-be-fetched.
S306, when the fact that the express of the to-be-fetched state exists is determined, the business logic processing module acquires express information of the to-be-fetched state from the service center.
It can be understood that in practical application, the implementation of S206 is specifically divided into that the service logic processing module initiates a query request for querying the express information of the to-be-fetched state to the service center, and then the service center searches the corresponding express information according to the query request and sends the searched express information to the service logic processing module.
For example, the express information may include location information, name, pickup code, express company, arrival time, etc. of the express receiving point, which are not listed here, but the embodiment is not limited thereto.
S307, after the service logic processing module obtains the express information of the to-be-fetched state from the service center, the service logic processing module instructs the context awareness module to register the express hint cell geofence.
S308, the context awareness module registers the express hint cell geofence according to the instruction of the business logic processing module.
It can be understood that if the location information of the express receiving point in the express information is closer to the residence of the user, such as a home, the registered express prompt cell geofence not only includes the cell corresponding to the express receiving point, but also includes the cell corresponding to the home image of the user and the cell around the residential district where the home is located.
The home picture is corresponding to the cell and the peripheral cells of the residential district where the home is located, and the terminal server is used as a target geofence corresponding to the residential district to be issued to the electronic equipment. Regarding the target geofence issue corresponding to the residential cell, reference may be made to the flow illustrated in fig. 7, which is not described in detail herein.
It should be understood that, in the embodiment of the present application, the user home portrait location cell is taken as an example, and in a possible implementation, in the foregoing embodiment, the user home portrait location may be replaced by a user company portrait location or a location set by user customization, which is not specifically limited.
S309, when the context awareness module perceives that the express hint cell geofence is triggered, the context awareness module indicates to the business logic processing module to trigger the express hint cell geofence.
For example, based on the characteristics of the location service and the geofence, when a user carrying the electronic device enters an area where the express hint cell geofence is located, the context awareness module can perceive that the express hint cell geofence is triggered, and at this time, the triggering of the express hint cell geofence is indicated to the business logic processing module.
S310, the business logic processing module triggers the business presentation module to carry out express prompt.
It can be understood that when the service logic processing module triggers the service presentation module to perform the express delivery prompt, for example, the service logic processing module can send the express delivery prompt indication to the service presentation module, and simultaneously transmit the express delivery information of the to-be-fetched part to the service presentation module, so that the service presentation module selects a proper display mode according to the express delivery information of the to-be-fetched part and displays the express delivery information according to the current interface. The manner of displaying the express prompt information on the screen of the electronic device may be referred to above, and will not be described herein.
S311, the service presentation module controls the mobile phone to vibrate and/or ring according to the indication of the service logic processing module, and displays express prompt information on the screen of the mobile phone.
In one example, fig. 21 shows a schematic block diagram of an apparatus 800 of an embodiment of the present application, the apparatus 800 may include: the processor 801 and transceiver/transceiving pins 802, optionally, also include a memory 803.
The various components of the apparatus 800 are coupled together by a bus 804, where the bus 804 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are referred to in the figures as bus 804.
Optionally, the memory 803 may be used to store instructions of the terminal server in the above-described geofence generation method embodiment. The processor 801 is operable to execute instructions in the memory 803 and control the receive pin to receive signals and the transmit pin to transmit signals.
The apparatus 800 may be a terminal server, such as a cloud device, in the above-described embodiment of the geofence generation method.
The present embodiment also provides a computer storage medium having stored therein computer instructions that, when executed on an electronic device, cause the electronic device to perform the above-described related method steps to implement the geofence generation method in the above-described embodiments.
The present embodiment also provides a computer program product which, when run on a computer, causes the computer to perform the above-described related steps to implement the geofence generation method in the above-described embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component, or a module, and may include a processor and a memory connected to each other; the memory is configured to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory, so that the chip performs the method for generating the geofence in the above method embodiments.
The electronic device (such as a terminal server, etc.), the computer storage medium, the computer program product, or the chip provided in this embodiment are used to execute the corresponding method provided above, so that the beneficial effects that can be achieved by the electronic device can refer to the beneficial effects in the corresponding method provided above, and are not repeated herein.
It will be appreciated by those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (14)

1. A method of generating a geofence, comprising:
obtaining an initial geofence corresponding to a target area, the initial geofence corresponding to a first set of base station cell cells;
acquiring a first feedback cell set corresponding to the target area; the cells in the first feedback cell set are abnormal cells determined according to dotting data sent by the electronic equipment; the dotting data are data reported to a server by the electronic equipment under a preset condition, and the dotting data comprise service information and cell information where the electronic equipment is located;
filtering the first cell set according to the first feedback cell set to obtain a second cell set;
acquiring a cell sequence of the electronic equipment for route acquisition based on a user after triggering the initial geofence, and generating a cell verification set according to cells included in the cell sequence;
verifying the second cell set according to the cell verification set to obtain a third cell set serving as a target cell set corresponding to the target area; the target cell set is used for generating a target geofence corresponding to the target area.
2. The method as recited in claim 1, further comprising:
acquiring a second feedback cell set corresponding to the target area; the cells in the second feedback cell set are normal cells determined according to dotting data sent by the electronic equipment;
and adding the normal cells in the second feedback cell set to the cell verification set.
3. The method as recited in claim 1, further comprising:
and obtaining the cell in the dotting data reported by the electronic equipment when the user finishes the preset operation, and adding the cell into the cell verification set.
4. The method of claim 3, wherein the target area includes an express delivery receiving point, and the preset operation includes a pick-up operation.
5. The method of claim 2, further comprising, after the obtaining the third set of cells:
according to the first feedback cell set and the second feedback cell set, calculating the fence triggering accuracy of the electronic equipment;
calculating the coverage rate of the third cell set relative to the second cell set according to the cell numbers of the third cell set and the second cell set;
And if the fence triggering accuracy is greater than a first threshold and/or the coverage rate is greater than a second threshold, taking the third cell set as a target cell set corresponding to the target area.
6. The method of claim 5, wherein calculating the fence trigger accuracy of the electronic device from the first and second feedback cell sets comprises:
counting the total number of dotting points a corresponding to each cell in the first feedback cell set and the total number of dotting points b corresponding to each cell in the second feedback cell set;
and b/(a+b) is used as the fence trigger accuracy of the electronic equipment.
7. The method as recited in claim 2, further comprising:
counting the received dotting data in a preset time window, and counting the triggering times of the fences corresponding to each cell according to the dotting data;
if the fence triggering times of the target cell are larger than a third threshold, counting the first times and the second times corresponding to the target cell; the first time is the time when the target cell is judged to be a normal cell, and the second time is the time when the target cell is judged to be an abnormal cell;
And if the ratio of the first times to the total times is smaller than a fourth threshold value, adding the target cell into the first feedback cell set, otherwise, adding the target cell into the second feedback cell set.
8. The method of claim 1, wherein filtering the first cell set to obtain a second cell set according to the first feedback cell set comprises:
and taking the difference set of the first cell set and the first feedback cell set as the second cell set.
9. The method of claim 1, wherein validating the second set of cells according to the set of cell validations to obtain a third set of cells comprises:
and taking the intersection of the second cell set and the cell verification set as the third cell set.
10. The method of claim 1, further comprising, after validating the second cell set according to the cell validation set to obtain a third cell set as a target cell set corresponding to the target area:
acquiring an initial increment cell set corresponding to the target area;
performing evaluation and verification on the initial increment cell set to obtain a target increment cell set;
And taking the union set of the target cell set and the target increment cell set as an updated target cell set corresponding to the target area.
11. The method of claim 10, wherein performing an evaluation check on the initial set of incremental cells to obtain a target set of incremental cells comprises:
according to the first feedback cell set, filtering the initial increment cell set to obtain a first increment cell set;
acquiring a cell sequence of the electronic equipment for route acquisition based on a user after triggering the geofence corresponding to the initial increment cell set, and generating a cell verification set according to cells included in the cell sequence;
adding normal cells in the second feedback cell set and cells in dotting data reported by the electronic equipment when a user completes preset operation into the cell verification set;
and verifying the first incremental cell set according to the cell verification set to obtain a target incremental cell set.
12. The method according to any one of claims 1-11, further comprising:
deleting the aged cells in the target cell set;
the aging cell is a cell which is not reported by the electronic equipment through dotting data in a preset time period.
13. A server, comprising:
one or more processors;
a memory;
and one or more computer programs, wherein the one or more computer programs are stored on the memory, which when executed by the one or more processors, cause the server to perform the method of geofence generation of any of claims 1-12.
14. A computer readable storage medium comprising a computer program, characterized in that the computer program, when run on an electronic device, causes the electronic device to perform the geofence generation method of any of claims 1-12.
CN202211100891.9A 2022-09-09 2022-09-09 Geofence generation method and server Active CN116709180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211100891.9A CN116709180B (en) 2022-09-09 2022-09-09 Geofence generation method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211100891.9A CN116709180B (en) 2022-09-09 2022-09-09 Geofence generation method and server

Publications (2)

Publication Number Publication Date
CN116709180A CN116709180A (en) 2023-09-05
CN116709180B true CN116709180B (en) 2024-03-22

Family

ID=87824526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211100891.9A Active CN116709180B (en) 2022-09-09 2022-09-09 Geofence generation method and server

Country Status (1)

Country Link
CN (1) CN116709180B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109247071A (en) * 2016-04-04 2019-01-18 斯纳普公司 Variable geo-fencing system
CN110858347A (en) * 2018-08-23 2020-03-03 北京京东尚科信息技术有限公司 Method and device for logistics distribution and order distribution
CN113615217A (en) * 2019-03-25 2021-11-05 华为技术有限公司 Method for determining that terminal equipment is located inside geo-fence and terminal equipment
CN114463898A (en) * 2021-07-30 2022-05-10 荣耀终端有限公司 Express delivery pickup reminding method and device
CN115022943A (en) * 2021-12-24 2022-09-06 荣耀终端有限公司 Method for positioning geographic position and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10715380B2 (en) * 2011-05-23 2020-07-14 Apple Inc. Setting a reminder that is triggered by a target user device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109247071A (en) * 2016-04-04 2019-01-18 斯纳普公司 Variable geo-fencing system
CN110858347A (en) * 2018-08-23 2020-03-03 北京京东尚科信息技术有限公司 Method and device for logistics distribution and order distribution
CN113615217A (en) * 2019-03-25 2021-11-05 华为技术有限公司 Method for determining that terminal equipment is located inside geo-fence and terminal equipment
CN114463898A (en) * 2021-07-30 2022-05-10 荣耀终端有限公司 Express delivery pickup reminding method and device
CN115022943A (en) * 2021-12-24 2022-09-06 荣耀终端有限公司 Method for positioning geographic position and electronic equipment

Also Published As

Publication number Publication date
CN116709180A (en) 2023-09-05

Similar Documents

Publication Publication Date Title
WO2020244622A1 (en) Notification prompt method, terminal and system
CN111724775B (en) Voice interaction method and electronic equipment
CN113645341B (en) Power key false touch detection method and electronic equipment
CN114466102B (en) Method for displaying application interface, related device and traffic information display system
CN115348350B (en) Information display method and electronic equipment
US20230360445A1 (en) Target service execution method and electronic device
CN115422480B (en) Method, apparatus and storage medium for determining region of event venue
CN115016704B (en) Express prompt method and electronic equipment
CN114666694A (en) Bluetooth headset loss prevention method and electronic equipment
US20230041690A1 (en) Intelligent reminding method and device
CN116048765B (en) Task processing method, sample data processing method and electronic equipment
CN116709180B (en) Geofence generation method and server
CN115097993B (en) Express prompt method and electronic equipment
CN116684525A (en) Event reminding method, electronic equipment and storage medium
CN113805771B (en) Notification reminding method, terminal equipment and computer readable storage medium
CN114911400A (en) Method for sharing pictures and electronic equipment
CN115297438B (en) Express delivery prompt method, equipment and storage medium
CN116033341B (en) Method and device for triggering fence event
CN116437293B (en) Geofence establishment method, server and communication system
CN116233749B (en) Message pushing method, mobile terminal and computer readable storage medium
CN116738073B (en) Method, equipment and storage medium for identifying residence
CN116033064B (en) Card display method, electronic device and readable storage medium
CN117271170B (en) Activity event processing method and related equipment
WO2023109636A1 (en) Application card display method and apparatus, terminal device, and readable storage medium
CN116431040A (en) Express prompt method and electronic equipment

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