CN115835135B - CELL fence matching method and electronic equipment - Google Patents

CELL fence matching method and electronic equipment Download PDF

Info

Publication number
CN115835135B
CN115835135B CN202310106625.5A CN202310106625A CN115835135B CN 115835135 B CN115835135 B CN 115835135B CN 202310106625 A CN202310106625 A CN 202310106625A CN 115835135 B CN115835135 B CN 115835135B
Authority
CN
China
Prior art keywords
processor
cell
information
fence
cell information
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
CN202310106625.5A
Other languages
Chinese (zh)
Other versions
CN115835135A (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 CN202310106625.5A priority Critical patent/CN115835135B/en
Publication of CN115835135A publication Critical patent/CN115835135A/en
Application granted granted Critical
Publication of CN115835135B publication Critical patent/CN115835135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a CELL rail matching method and electronic equipment, which relate to the technical field of electronics and can enable the electronic equipment to have a complete and continuous CELL rail matching scheme, wherein the method comprises the following steps: the first processor periodically acquires second CELL information; the second CELL information includes LAC and CID of a CELL base station; if the first processor determines that the electronic equipment enters the first CELL fence according to the second CELL information, the first processor reports a first event to the second processor; wherein the electronic device entering a first CELL fence comprises: the second CELL information is identical to any one group of first CELL information in the plurality of groups of first CELL information; the first event is used for indicating the electronic device to enter a first CELL fence, and comprises a process identifier of a first application process; in response to the first event, the second processor controls the first application process to execute the target function.

Description

CELL fence matching method and electronic equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method for matching a CELL fence and an electronic device.
Background
CELL (CELL) fences are established by an electronic device based on CELL information of one or more CELL base stations within a particular area. When the position of the electronic equipment is matched with the CELL fence, the electronic equipment can be judged to enter the CELL fence, namely enter a specific area.
Currently, electronic devices run on the application processor side (application processor, AP) based on a CELL fence matching scheme. However, when the AP enters the sleep state, the electronic device cannot continue the matching of the CELL fence, resulting in an incomplete and continuous matching scheme of the CELL fence.
Disclosure of Invention
The embodiment of the application provides a CELL rail matching method and electronic equipment, which can enable the electronic equipment to have a complete and continuous CELL rail matching scheme.
The embodiment of the application adopts the following technical scheme:
in a first aspect, a method for matching a CELL fence is provided, and the method is applied to electronic equipment, wherein the electronic equipment comprises a first processor and a second processor; the first processor stores related information of a first CELL rail provided by a first place, wherein the related information of the first CELL rail comprises a plurality of groups of first CELL information, and each group of first CELL information comprises a location area code LAC and a base station number CID of a CELL base station; the second processor comprises a first application process for realizing the target function; the method comprises the following steps: the first processor periodically acquires second CELL information; the second CELL information includes LAC and CID of a CELL base station; if the first processor determines that the electronic equipment enters the first CELL fence according to the second CELL information, the first processor reports a first event to the second processor; wherein the electronic device entering a first CELL fence comprises: the second CELL information is identical to any one group of first CELL information in the plurality of groups of first CELL information; the first event is used for indicating the electronic device to enter a first CELL fence, and comprises a process identifier of a first application process; in response to the first event, the second processor controls the first application process to execute the target function.
Based on the first aspect, in the embodiment of the present application, whether the electronic device enters the first CELL fence is determined through the second CELL information periodically acquired by the first processor; if the first processor determines that the electronic equipment enters the first CELL fence, the first processor reports a first event to the second processor so that the second processor controls the first application process to execute the target function. That is, the CELL matching scheme is deployed in the first processor, and when the first processor determines that the electronic device enters the first CELL fence, the first processor reports the fence entering event (i.e. reports the first event) to the second processor, so that the second processor controls the first application process to execute the target function, and the electronic device can have a complete and continuous CELL fence matching scheme.
In one possible design of the first aspect, the first application process is configured to implement an express delivery reminding function, and the first CELL fence is established by the electronic device based on CELL information corresponding to the express delivery receiving point; the second processor controls the first application process to execute the target function, including: the second processor controls the first application process to display first prompt information; the first prompt message is used for reminding the user of carrying out express delivery and taking the express delivery.
In the design mode, after the electronic equipment enters the first CELL fence, the first application process can display the first prompt information so as to remind a user of express pickup, and user experience is improved.
In one possible design of the first aspect, the first application process is for implementing a near field communication NFC function, the first application process including a first virtual card; the first CELL fence is established after the electronic equipment completes data interaction by using a first virtual card; the second processor controls the first application process to execute the target function, including: the second processor controls the first application process to be automatically switched into a first virtual card corresponding to the first CELL fence.
In the design mode, after the electronic equipment enters the first CELL fence, the first application process can activate the first virtual card so that the electronic equipment can realize the NFC function, for example, a user uses the first virtual card to finish payment of the riding expense, and user experience is improved.
In one possible design of the first aspect, the method further comprises: the first processor periodically acquires third CELL information; the third CELL information includes LAC and CID of a CELL base station; if the first processor determines that the electronic equipment leaves the first CELL fence according to the third CELL information, the first processor reports a second event to the second processor; wherein the electronic device exiting the first CELL fence comprises: the third CELL information is different from each set of first CELL information in the plurality of sets of first CELL information; the second event is used for indicating the electronic device to leave the first CELL fence, and the second event comprises a process identifier of the first application process; in response to the second event, the second processor controls the first application process to close the target function.
In the design manner, the first processor may also periodically acquire third CELL information, and determine whether the electronic device leaves the first CELL fence according to the third CELL information; if the electronic equipment leaves the first CELL fence, the first processor reports a second event to the second processor, namely reports a fence exit event, so that the second processor controls the first application process to close the target function, and the user experience can be improved while the power consumption is reduced.
In one possible design of the first aspect, the method further comprises: after the first application process executes the target function, the first processor caches the fourth CELL information acquired currently and updates the related information of the first CELL fence; wherein the fourth CELL information comprises LAC and CID of one CELL base station.
In the design mode, after the first application process executes the target function, the first processor can also cache the fourth CELL information acquired currently and update the related information of the first CELL rail, so that the accuracy of the CELL rail matching scheme can be improved.
In one possible design of the first aspect, the method further comprises: if the distance between the real-time position of the electronic device and the first place is greater than a first distance threshold, the first processor deletes the related information of the first CELL fence, and/or the first processor stops acquiring the second CELL information; or if the electronic device is in the static state and the time length of the electronic device in the static state is greater than or equal to the first time length, the first processor deletes the related information of the first CELL rail, and/or the first processor stops acquiring the second CELL information.
In the design mode, if the distance between the real-time position of the electronic equipment and the first place is greater than a first distance threshold, namely the electronic equipment leaves the first place, the first processor deletes the related information of the first CELL fence; or, if the electronic device is in a static state and the time length of the electronic device in the static state is greater than or equal to the first time length, that is, if the electronic device is in the static state for a long time, deleting the related information of the first CELL rail, so that the related information of the first CELL rail can be prevented from occupying the storage space of the first processor.
In one possible design of the first aspect, the electronic device further comprises a modem for collecting CELL information around the electronic device; the first processor periodically obtains second CELL information, including: the first processor sends a first request to the modem; the first request is used for requesting the modem to report CELL information around the electronic equipment; in response to the first request, the modem periodically collects CELL information around the electronic equipment; the modem reports CELL information around the electronic equipment to the first processor; the CELL information surrounding the electronic device includes second CELL information.
In one possible design of the first aspect, the first processor sends a first request to the modem, including: the first processor judges whether the related information of the CELL fence exists in the first processor; if the first processor has information about the CELL fence, the first processor sends a first request to the modem.
In one possible design of the first aspect, the method further comprises: if the first processor does not have the related information of the CELL fence, the first processor judges whether the first processor sends a first request to the modem or not; if the first processor sends a first request to the modem, the first processor sends a second request to the modem; wherein the second request is for requesting the modem to stop reporting CELL information surrounding the electronic device.
In one possible design of the first aspect, the first processor is a smart Sensor Hub; the first processor caches fourth CELL information acquired currently and updates relevant information of the first CELL fence, including: and the Sensor Hub calls a preset function encapsulated by the platform to cache fourth CELL information, and updates the related information of the first CELL fence.
In one possible design of the first aspect, the first processor is an intelligent Sensor Hub, and the second processor is an application processor AP; the first processor reports a first event to the second processor, including: and the Sensor Hub calls a public function of a high-information interface QMI provided by the platform, and reports a first event to the AP.
In a second aspect, an electronic device is provided, which has the functionality to implement the method described in the first aspect. The functions can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In a third aspect, an electronic device is provided that may include a first processor, a second processor, and a memory; the first processor stores related information of a first CELL rail provided by a first place, wherein the related information of the first CELL rail comprises a plurality of groups of first CELL information, and each group of first CELL information comprises a location area code LAC and a base station number CID of a CELL base station; the second processor includes a first application process for providing a target function; the memory has stored therein computer program code comprising computer instructions which, when executed by the first processor, cause the first processor to perform the steps of: the first processor periodically acquires second CELL information; the second CELL information includes LAC and CID of a CELL base station; if the first processor determines that the electronic equipment enters the first CELL fence according to the second CELL information, the first processor reports a first event to the second processor; wherein the electronic device entering a first CELL fence comprises: the second CELL information is identical to any one group of first CELL information in the plurality of groups of first CELL information; the first event is used for indicating the electronic device to enter a first CELL fence, and comprises a process identifier of a first application process; the second processor, when executing the computer instructions, causes the second processor to perform the steps of: in response to the first event, the second processor controls the first application process to execute the target function.
In one possible design of the third aspect, the first application process is configured to implement an express delivery reminding function, and the first CELL fence is established by the electronic device based on CELL information corresponding to the express delivery receiving point; when the second processor executes the computer instructions, the second processor is caused to specifically perform the steps of: the second processor controls the first application process to display first prompt information; the first prompt message is used for reminding the user of carrying out express delivery and taking the express delivery.
In one possible design of the third aspect, the first application process is for implementing a near field communication NFC function, the first application process including a first virtual card; the first CELL fence is established after the electronic equipment completes data interaction by using a first virtual card; when the second processor executes the computer instructions, the second processor is caused to specifically perform the steps of: the second processor controls the first application process to be automatically switched into a first virtual card corresponding to the first CELL fence.
In one possible design of the third aspect, the first processor, when executing the computer instructions, is caused to further perform the steps of: the first processor periodically acquires third CELL information; the third CELL information includes LAC and CID of a CELL base station; if the first processor determines that the electronic equipment leaves the first CELL fence according to the third CELL information, the first processor reports a second event to the second processor; wherein the electronic device exiting the first CELL fence comprises: the third CELL information is different from each set of first CELL information in the plurality of sets of first CELL information; the second event is used for indicating the electronic device to leave the first CELL fence, and the second event comprises a process identifier of the first application process; the second processor, when executing the computer instructions, causes the second processor to further perform the steps of: in response to the second event, the second processor controls the first application process to close the target function.
In one possible design of the third aspect, the first processor, when executing the computer instructions, is caused to further perform the steps of: after the first application process executes the target function, the first processor caches the fourth CELL information acquired currently and updates the related information of the first CELL fence; wherein the fourth CELL information comprises LAC and CID of one CELL base station.
In one possible design of the third aspect, the first processor, when executing the computer instructions, is caused to further perform the steps of: if the distance between the real-time position of the electronic device and the first place is greater than a first distance threshold, the first processor deletes the related information of the first CELL fence, and/or the first processor stops acquiring the second CELL information; or if the electronic device is in the static state and the time length of the electronic device in the static state is greater than or equal to the first time length, the first processor deletes the related information of the first CELL rail, and/or the first processor stops acquiring the second CELL information.
In one possible design of the third aspect, the electronic device further comprises a modem for collecting CELL information around the electronic device; when the first processor executes the computer instructions, the first processor is caused to specifically perform the following steps: the first processor sends a first request to the modem; the first request is used for requesting the modem to report CELL information around the electronic equipment; in response to the first request, the modem periodically collects CELL information around the electronic equipment; the modem reports CELL information around the electronic equipment to the first processor; the CELL information surrounding the electronic device includes second CELL information.
In one possible design of the third aspect, the first processor, when executing the computer instructions, is caused to further perform the steps of: the first processor judges whether the related information of the CELL fence exists in the first processor; if the first processor has information about the CELL fence, the first processor sends a first request to the modem.
In one possible design of the third aspect, the first processor, when executing the computer instructions, is caused to further perform the steps of: if the first processor does not have the related information of the CELL fence, the first processor judges whether the first processor sends a first request to the modem or not; if the first processor sends a first request to the modem, the first processor sends a second request to the modem; wherein the second request is for requesting the modem to stop reporting CELL information surrounding the electronic device.
In one possible design of the third aspect, the first processor is a smart Sensor Hub; when the first processor executes the computer instructions, the first processor is caused to specifically perform the following steps: and the Sensor Hub calls a preset function encapsulated by the platform to cache fourth CELL information, and updates the related information of the first CELL fence.
In one possible design of the third aspect, the first processor is a smart Sensor Hub; when the first processor executes the computer instructions, the first processor is caused to specifically perform the following steps: and the Sensor Hub calls a public function of a high-information interface QMI provided by the platform, and reports a first event to the AP.
In a fourth aspect, there is provided a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of any of the first aspects above.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of the first aspects above.
The technical effects of any one of the design manners of the second aspect to the fifth aspect may be referred to the technical effects of the different design manners of the first aspect, and will not be repeated here.
Drawings
Fig. 1 is a schematic diagram of an application scenario of a CELL fence matching scheme provided by an embodiment of the present application;
fig. 2 is a second application scenario diagram of a CELL fence matching scheme provided by an embodiment of the present application;
Fig. 3 is a third application scenario diagram of a CELL fence matching scheme provided by an embodiment of the present application;
fig. 4 is a schematic diagram of an application scenario of a CELL fence matching scheme provided by an embodiment of the present application;
fig. 5 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic diagram of a software framework of an electronic device according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an initialization method according to an embodiment of the present application;
fig. 8 is a flowchart illustrating a method for matching a CELL fence according to an embodiment of the present application;
fig. 9 is a second flow chart of a method for matching a CELL rail according to an embodiment of the present application;
fig. 10 is a flowchart of a method for matching a CELL fence according to an embodiment of the present application;
fig. 11 is a flowchart of a method for matching a CELL fence according to an embodiment of the present application;
fig. 12 is a flowchart fifth embodiment of a method for matching a CELL fence according to the present application;
fig. 13 is a flowchart sixth of a method for matching a CELL fence according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a chip system according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the solution of the present embodiment of the present application, the technical solution of the present embodiment of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiment of the present application, and it is apparent that the described embodiment is only a part of the embodiment of the present application, not all the embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, shall fall within the scope of the application.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
For clarity and conciseness of the description of the following embodiments, first, application scenarios related to the embodiments of the present application are given.
The scheme provided by the embodiment of the application can be applied to the electronic equipment supporting the near field communication (near field communication, NFC) function. For example, data exchange can be performed when the electronic device with NFC function and the NFC reader are close to each other, so as to implement various NFC functions, such as swiping a card, and transmitting data.
In general, an electronic device supporting NFC functionality may include an application process (or application program) for implementing near field communication. Such as NFC smart card applications, public transportation applications, bank card applications, access control applications, etc.
In some embodiments, the NFC smart card application may include a plurality of different types of virtual cards, such as a cell gate inhibition card, a public transportation card, a company gate inhibition card, and the like. On this basis, when the electronic device enters a CELL fence corresponding to a specific area or is active in the CELL fence of the area, the electronic device can activate a virtual card corresponding to the specific area.
Wherein the activation state of one of the plurality of different types of virtual cards is activated. However, the virtual card that is activated is often a pre-configured default card. Taking the electronic device as an example of a mobile phone, as shown in fig. 1 (a), an activated virtual card in the mobile phone is a cell access card, that is, a default card configured in advance is a cell access card. On the basis, when a user takes a bus, namely, the mobile phone enters a CELL rail corresponding to a bus station area. As shown in fig. 1 (b), the mobile phone may switch the activated cell access card to a public transportation card, i.e., the currently activated virtual card is a public transportation card. Furthermore, the user can approach the mobile phone to the card reader on the bus, so that the data interaction between the mobile phone and the card reader on the bus is realized, namely, the mobile phone finishes the payment of the fees for taking the bus.
Correspondingly, when the mobile phone enters a CELL fence corresponding to a company nearby area, the mobile phone can be switched from a public transportation card to a company access card, namely, a virtual card which is activated currently is switched to the company access card. Furthermore, the user can approach the mobile phone to the card reader on the company entrance guard, so that the mobile phone and the card reader on the company entrance guard can perform data interaction, namely, the mobile phone finishes card swiping and entering.
In other embodiments, the electronic device further includes an application process, such as a smart aware application, for implementing the smart alert service. The intelligent perception application belongs to a background application (not perceived by a user) of the electronic equipment, namely belongs to a service process inside the electronic equipment. In some embodiments, the electronic device further includes a foreground application (e.g., YOYO suggestion-express alert application) developed based on the smart aware application, which is capable of implementing an express arrival smart alert service after the smart aware application receives an event that the electronic device enters the CELL fence. For example, the YOYO suggestion-express reminder application may remind the user to pick up a piece after the electronic device enters CELL.
In some embodiments, the electronic device may prompt the user to make the courier by displaying the first prompt on the screen. The first prompt message may be pushed by one or more modes of ejecting the yoyoyo suggestion card in the notification bar message, the drop-down bar message, the lock screen interface, the main interface or the negative one-screen interface.
Taking the electronic device as an example of a mobile phone, for example, when the mobile phone enters the express receiving point area, the mobile phone can automatically pop up the YOYO suggestion card on the negative screen to remind the user to take a piece. For example, the YOYO suggestion card can include an express bill number, a receiver mobile phone tail number, an express receiving point name, the time of the express reaching the receiving point, and the like. As shown in fig. 2, for example, the yoyoyo suggestion card may include a pickup code, an express receiving point name, a scanning pickup, and the like.
As shown in fig. 3, when the mobile phone enters the express receiving point area, the mobile phone may automatically pop up the YOYO suggestion card on the lock screen interface to remind the user to take a piece. Or, as shown in fig. 4, when the mobile phone enters the express receiving point area, the mobile phone may display a YOYO suggestion message in the notification bar to remind the user to take a piece. Of course, the mobile phone may also remind the user to take the piece in other ways, which are not listed here.
It should be noted that, for the content of the YOYO suggestion card in fig. 3 and the content of the YOYO suggestion message in fig. 4, reference may be made to the above embodiments, and the details are not repeated here. In addition, the express delivery receiving point described in the above embodiment can be understood as a temporary intermediate point of the express delivery, and after the express delivery is temporarily stored in the express delivery receiving point, the user can take out the express delivery from the express delivery receiving point when convenient. For example, the express receiving points may include an express cabinet, a post, and the like, and the express receiving point name may include: express cabinet name, post name, etc.
In some embodiments, the CELL fence refers to one CELL fence established by the electronic device using CELL information of the first location. In the moving process of the electronic equipment, the electronic equipment periodically collects surrounding CELL information and matches the collected CELL information with the established CELL rail; if the acquired CELL information is matched with the established CELL fence, the electronic equipment is considered to enter the CELL fence. Then, the electronic device can control the NFC smart card application or the YOYO suggestion-express reminding application to execute corresponding functions. For example, the electronic device may control the NFC smart card application to automatically switch the corresponding virtual card; or the electronic equipment controls the YoyO suggestion-express reminding application to automatically pop up the YoyO suggestion card so as to remind a user to take a piece.
In some embodiments, when the electronic device includes an NFC smart card application for implementing an NFC function, the CELL fence established by the electronic device based on the first location is acquired after the electronic device completes data interaction using a virtual card corresponding to the first location for the first time. For example, assuming that the first location is a bus station area, the electronic device acquires CELL information around the bus station after first using the public transportation card to swipe the card for taking a bus, and establishes a CELL fence based on the acquired CELL information.
In other embodiments, when the electronic device includes a smart-aware application for implementing a smart courier alert service, the CELL fence established by the electronic device based on the first location is learned by the electronic device from the user representation. The user portrait comprises CELL information near the user's home, CELL information near the express receiving point, and the like. For example, when the electronic device receives the to-be-fetched message, the electronic device collects CELL information around the home of the user, CELL information around the express receiving point and CELL information between the home of the user and the express receiving point, and establishes a CELL fence based on the collected CELL information.
The technical scheme provided by the embodiment of the application is described in detail below with reference to the attached drawings.
The electronic device provided in the embodiment of the present application may be a mobile phone, a motion camera (go pro), a digital camera, a tablet computer, a desktop, a laptop, a handheld computer, a notebook, a vehicle-mounted device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, or the like, and the embodiment of the present application is not limited in particular form to the electronic device.
Fig. 5 is a schematic structural diagram of the electronic device 100. Wherein the 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, modem (modem) 181, keys 190, motor 191, indicator 192, camera module 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include, among other things, a pressure sensor, a gyroscope sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), an intelligent Sensor Hub (Sensor Hub), and the like. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
In an embodiment of the present application, the smart Sensor Hub (Sensor Hub) may be referred to as a first processor, and the Application Processor (AP) may be referred to as a second processor. In some embodiments, the matching scheme for CELL fences may be deployed on the application processor side, i.e., the matching scheme for CELL fences runs in a central processor (central processing unit, CPU). However, when the system is dormant (such as mobile phone screen-off), the application processor enters a dormant state, and at this time, the application processor cannot execute the matching scheme of the CELL fence, that is, cannot realize the scheme of the application. This is because when the system is dormant, the application processor cannot collect CELL information due to dormancy, and thus cannot match with the CELL fence based on the collected CELL information. If the application processor is awakened and CELL information is acquired by force, the periodic frequent acquisition is required for CELL information acquisition, so that the action of awakening the application processor and acquiring CELL information by force can bring extremely high power consumption to the electronic equipment, and the extremely high power consumption is unacceptable to the electronic equipment and can cause the problems of excessively high power consumption, excessively high temperature and the like of the electronic equipment.
Based on the method, the matching scheme of the CELL rail can be deployed on the Sensor Hub side, namely the matching scheme of the CELL rail runs in a micro control unit (microcontroller unit, MCU), CELL information is acquired by the Sensor Hub, and the CELL rail is matched based on the acquired CELL information. Because Sensor Hub is a chip integrated in a micro control unit (microcontroller unit, MCU) and has certain processing capacity and smaller power consumption, the Sensor Hub can be used for processing data from various sensors, and therefore the matching scheme of the CELL rail is deployed on the Sensor Hub side, so that the matching capacity of the CELL rail of the electronic equipment with all-weather low power consumption can be realized.
Illustratively, sensor Hub may be coupled to modem 181 and collect CELL information from modem 181; and then, the Sensor Hub matches the collected CELL information with the CELL rail, and judges whether the electronic equipment enters the CELL rail. In this way, when the application processor is in the sleep state, the Sensor Hub can realize real-time control on the modem 181, so as to control the modem 181 to periodically collect the CELL information, thereby realizing the matching monitoring capability of the all-weather low-power consumption CELL fence of the electronic equipment. That is, the matching scheme of the CELL rail is deployed on the Sensor Hub side, so that continuous and complete matching capability of the CELL rail can be provided, and the function of reducing power consumption is achieved.
The controller may be a neural hub and command center of the electronic device 100. 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 can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, 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.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only illustrative, and does not limit the structure of the electronic device. In other embodiments, the electronic device may also use different interfacing manners in the foregoing embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and 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 module 193, the wireless communication module 160, and the like.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like.
The electronic device 100 may implement photographing functions through an ISP, a camera module 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, audio, video, etc. files are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121. For example, in an embodiment of the present application, the processor 110 may include a storage program area and a storage data area by executing instructions stored in the internal memory 121.
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 (e.g., audio data, phonebook, etc.), and so forth. 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.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of hardware and software.
In order to make the technical solution of the present application clearer and easy to understand, the method of the embodiment of the present application is described below by way of example with reference to a software architecture of an electronic device.
Fig. 6 is a software structure block diagram of an electronic device according to an embodiment of the present application.
The software system of the electronic device 100 may adopt a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the application, an Android system with a layered architecture is taken as an example, and the software structure of the electronic device 100 is illustrated in an exemplary manner.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, android systems are divided from top to bottom into an application layer (APP), an application framework layer (FWK), a hardware abstraction layer (hardware abstraction layer, HAL), and a driver layer. It should be understood that: the Android system is used for illustration, and in other operating systems (such as iOS system, etc.), the scheme of the application can be implemented as long as the functions implemented by the functional modules are similar to those implemented by the embodiments of the application.
In some embodiments, the application layer may include a series of application packages (Android application package, APK). As shown in fig. 6, various applications, such as a call, a memo, a browser, a contact, a gallery, a calendar, a map, bluetooth, music, video, a short message, etc., may be installed in the application layer. In the embodiment of the application, the application program layer also comprises an application process for realizing near field communication, such as NFC intelligent flash card application; or, the intelligent express reminding system further comprises an application process for realizing intelligent express reminding service, such as intelligent perception application. The following embodiments are described with respect to application layers including smart sensor applications.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for the application layer. The application framework layer includes a number of predefined functions. For example, the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, etc., to which embodiments of the present application are not limited in any way.
Illustratively, the window manager is configured to manage a window program. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc. The view system described above may be used to build a display interface for an application. Each display interface may be composed of one or more controls. In general, controls may include interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, micro (Widget) items, and the like. The resource manager provides various resources, such as localization strings, icons, pictures, layout files, video files, and the like, to the application program. The notification manager can display notification information in a status bar by using an application program, can be used for conveying a notification type message, can automatically disappear after a short stay, and does not need user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is presented in a status bar, a prompt tone is emitted, vibration is generated, and an indicator light blinks.
In the embodiment of the application, the application program framework layer further comprises a fence management service (LBSS service), the fence management service can interact with the hardware abstraction layer after being started, and related information (such as a plurality of groups of first CELL information) of the CELL fence can be issued to the driving layer through the hardware abstraction layer.
The hardware abstraction layer is an interface layer between the kernel layer and the hardware, and may be used to abstract the hardware. In some embodiments, the hardware abstraction layer includes a hardware abstraction layer interface definition language (hardware abstraction layer interface definition language, HIDL) interface. The hardware abstraction layer may include: camera HAL, audio HAL, wi-Fi HAL, CELL HAL, etc.
The driving layer at least comprises display driving, camera driving, audio driving, sensor driving, modem driving and the like. In the embodiment of the application, the driving layer further comprises a CELL driving, and the CELL driving comprises a CELL matching module. Wherein the CELL drive buffers information related to the CELL fence (e.g., sets of first CELL information); the CELL matching module is used for executing a CELL fence matching scheme to judge whether the electronic equipment enters/exits the CELL fence (such as a first CELL fence).
In the embodiment of the application, an application program layer, an application program framework layer, a hardware abstraction layer and a driving layer can be deployed on an application processor side, and the driving layer can be deployed on an intelligent Sensor Hub (Sensor Hub) side. In this way, the Sensor Hub can execute the CELL rail matching scheme, and the CELL rail matching monitoring capability of the electronic equipment with all-weather low power consumption can be realized.
The electronic equipment of the embodiment of the application relies on a high-pass chip platform. Because of the different architecture of different chip platforms, in order to implement the solution of the present application, each module in the software framework layer in the high-pass chip platform needs to be initialized first.
It should be noted that the high-pass chip platform may initialize each module in the software framework layer when the electronic device is turned on. The electronic device may be powered on for the first time, or each time.
Illustratively, as shown in FIG. 7, initializing the various modules in the software framework layer includes: the intelligent awareness application is initialized, the fence management service is initialized, the HAL layer is initialized, and the driver layer is initialized. Wherein initializing the smart aware application and initializing the fence management service comprises: the variables and functions of the codes in the intelligent perception application and the fence management service are initialized. Initializing the HAL layer includes: giving initial values to the variables and functions of codes in the HAL layer; create thread a, create a log, and create a reliability design (design for reliability, DFR) mechanism. The initialization driving layer includes: creating CELL drive, creating thread B and acquiring interface parameters of relevant information of receiving CELL rail by a user.
Wherein, the variable and the function initialization value of the code in the HAL layer can be realized by calling the cellfect function. Thread a is used to receive events that the driver layer reports to the HAL layer (e.g., events that the electronic device enters/exits CELL rail). The log is used for recording relevant information of the CELL fence so as to facilitate quick positioning of subsequent developers when problem maintenance is carried out. A reliability Design (DFR) mechanism is used to monitor the state of the driver layer, such as whether the Sensor Hub is restarted, abnormal, etc.
Accordingly, the CELL driver is configured to buffer information related to the CELL fence (e.g., sets of first CELL information). Thread B is used to collect CELL information (e.g., sets of second CELL information) acquired by the modem. Illustratively, the CELL driver can be created by a preset function (sns_malloc, sns_free, etc.) of the high-pass chip platform package.
The method provided by the embodiment of the application is exemplified below.
As shown in fig. 8, when the smart sensor application in the application layer is started, the smart sensor application may connect/disconnect the fence management service through the software development kit (software development kit, SDK). After the intelligent perception application and the fence management service are successfully connected, the intelligent perception application can start the fence management service by calling a preset API. The fence management service may interact with a hardware abstraction layer during operation.
Accordingly, the hardware abstraction layer may establish a connection with the driver layer through a common function of the high-traffic interfaces (qualcom message interface, QMI) provided by the high-pass chip platform. After the hardware abstraction layer is successfully connected with the driving layer, the hardware abstraction layer can interact with the driving layer.
Illustratively, the smart sensor application may collect, during operation, multiple sets of first CELL information provided by the first location via a wireless communication module (e.g., a modem chip) and establish information about the first CELL fence. The smart aware application may initiate a fence management service by invoking a preset API to cause the fence management service to issue information about the first CELL fence to the hardware abstraction layer. And then, the hardware abstraction layer can issue the related information of the first CELL rail to the drive layer through interaction with the drive layer, so that the drive layer caches the related information of the first CELL rail.
In some embodiments, as also shown in fig. 8, the smart aware application issues information about the first CELL fence to the CELL HAL in the hardware abstraction layer through the fence management service; when the intelligent perception application issues the related information of the first CELL fence to the CELL HAL in the hardware abstraction layer through the fence management service, the process identifier (such as a callback function) of the intelligent perception application is carried. Then, the CELL HAL firstly caches the process identification of the intelligent perception application, then issues the related information of the first CELL rail to the CELL drive in the drive layer, and caches the related information of the first CELL rail by the CELL drive.
Illustratively, in one aspect, the CELL driver returns the cache result of the CELL fence to the smart aware application. For example, CELL drive returns the result of CELL fence cache success to the smart aware application through CELL HAL in the hardware abstraction layer, and the fence management service. The successful CELL fence cache returned by the CELL drive also carries the identification of the CELL fence (such as the ID of the first CELL fence). On the other hand, the CELL driver informs the modem driver, and the modem driver drives a hardware device such as a modem chip to collect CELL information (such as second CELL information) around the electronic device.
For example, in combination with the above embodiment, when the modem driver drives the modem chip to collect the second CELL information, the thread B created by the driver layer collects the second CELL information, and reports the collected second CELL information to the CELL matching module in the CELL driver, and the CELL matching module matches the second CELL information according to the related information (such as multiple sets of first CELL information) in the first CELL fence, and generates a matching result. Illustratively, the matching result includes that the second CELL information is matched with the plurality of sets of first CELL information; alternatively, the second CELL information does not match the sets of first CELL information. Subsequently, the CELL matching module generates a fence entry/exit event based on the matching result. If the matching result is that the second CELL information is matched with the plurality of groups of first CELL information, the CELL matching module generates a first event according to the matching result, namely, generates an event that the electronic equipment enters a first CELL rail; if the matching result is that the second CELL information is not matched with the plurality of groups of first CELL information, the CELL matching module generates a second event according to the matching result, namely, generates an event that the electronic equipment exits from the first CELL fence.
Further, the CELL matching module reports the fence entry/exit event to the CELL HAL in the hardware abstraction layer, and the CELL HAL can report the fence entry/exit event to the intelligent perception application of the application program layer through an API provided by the fence management service. After the intelligent perception application receives the fence entering/exiting event, the intelligent perception application executes the target function provided by the intelligent perception application. Taking a fence event as an entry event, namely the electronic equipment enters a first CELL fence example, the intelligent perception application triggers the YOYO suggestion-express reminding application to automatically pop up the YOYO suggestion card, and wakes up the screen of the electronic equipment to remind a user to take a piece.
For example, because the process identifier of the smart sensor application after the CELL HAL caches (i.e. the callback function of the smart sensor application is cached), the CELL HAL may use the callback function to report the fence entry/exit event to the fence management service, and then the fence management service reports the fence entry/exit event to the application process corresponding to the callback function through the callback function, i.e. to the smart sensor application.
In the embodiment of the present application, since the electronic device is equipped with the high-pass chip platform, the communication mode between the hardware abstraction layer and the driver layer is a communication mode based on CS architecture, that is, the communication mode between the AP and the Sensor Hub adopts CS architecture. The communication mode of the CS architecture refers to that a hardware abstraction layer is used as a client (client), a driving layer is used as a server (server) to establish a bi-directional communication link, and a heartbeat mechanism is used for communication.
The method includes the steps that when CELL HAL in a hardware abstraction layer transmits related information of a first CELL rail to CELL drive in a drive layer, the CELL HAL transmits a request message for transmitting the related information of the first CELL rail to the CELL drive, and after receiving the request message for transmitting the related information of the first CELL rail transmitted by the CELL HAL, the CELL drive returns a response message corresponding to the request message to the CELL HAL; the CELL HAL then issues information about the first CELL fence to the CELL drive.
Correspondingly, when the CELL driver in the driving layer reports the fence entering/exiting event to the CELL HAL in the hardware abstraction layer, the CELL driver sends a request message for reporting the fence entering/exiting event to the CELL HAL, and after receiving the request message for reporting the fence entering/exiting event sent by the CELL driver, the CELL HAL returns a response message corresponding to the request message to the CELL driver. The CELL driver then reports the fence enter/exit event to the CELL HAL.
In some embodiments, the smart aware application may further identify a state of the electronic device, and send the state of the electronic device layer by layer to the driving layer through the fence management service and the hardware abstraction layer, so that the driving layer performs a corresponding function according to the state of the electronic device. For example, the state of the electronic device may include a stationary state, a moving state, and a distance between the real-time location of the electronic device and the first location.
For example, when the smart sensor application identifies that the electronic device is in a static state and the time length of the electronic device in the static state is greater than or equal to the first time length, the smart sensor application issues the state of the electronic device to the driving layer by layer through the fence management service and the hardware abstraction layer. After the driving layer intelligently perceives the state of the electronic equipment issued by the application, the CELL driving notification modem in the driving layer drives the modem chip to stop collecting CELL information around the electronic equipment; and/or deleting the first CELL fence by CELL drive in the drive layer.
Or when the intelligent perception application recognizes that the distance between the real-time position of the electronic equipment and the first place is larger than the first distance threshold value, the intelligent perception application issues the state of the electronic equipment to the driving layer by layer through the fence management service and the hardware abstraction layer. After the driving layer intelligently perceives the state of the electronic equipment issued by the application, the CELL driving notification modem in the driving layer drives the modem chip to stop collecting CELL information around the electronic equipment; and/or deleting the first CELL fence by CELL drive in the drive layer.
In some embodiments, the CELL drive is also used to determine whether there is information about the CELL fence. For example, if there is information about the CELL fence in the CELL driver, the CELL driver notifies the modem driver to drive the modem chip to collect CELL information around the electronic device. If the related information of the CELL fence does not exist in the CELL driving, the CELL driving informs the modem driving to drive the modem chip to stop collecting the CELL information around the electronic equipment.
As shown in fig. 9, the hardware abstraction layer further includes a state detection module. The state detection module is used for monitoring the state of the CELL driving, such as monitoring whether the CELL driving is restarted. Illustratively, a reliability Design (DFR) mechanism, including hardware abstraction layer creation, in the state detection module may be used to monitor whether the CELL driver is restarted.
In some embodiments, the state detection module periodically sends a request message for obtaining the state of the CELL drive to the CELL drive, and after the CELL drive receives the request message sent by the state detection module, the state detection module returns a response message to return to the state of the CELL drive (e.g. whether to restart). On the basis, if the CELL driving state returned to the state detection module is a restarting state, the state detection module generates an abnormal event according to the restarting state, and reports the abnormal event to the intelligent perception application through the fence management service. Illustratively, the state detection module uses the cached process identification (e.g., the callback function) to report the exception event to the smart aware application through the fence management service.
After the smart sensing application receives the abnormal event reported by the state detection module, the smart sensing application re-collects multiple groups of first CELL information provided by the first place through a wireless communication module (such as a modem chip) and re-establishes the related information of the first CELL fence. Correspondingly, the intelligent perception application transmits the related information of the reestablished first CELL fence to the CELL drive through the fence management service.
The embodiments of the present application are introduced above in connection with a software architecture and a hardware architecture, and the technical solutions of the embodiments of the present application are described in detail below in connection with the specification.
It can be understood that the technical scheme provided by the embodiment of the application is applied to the electronic equipment, and the electronic equipment comprises a first processor and a second processor; the first processor may be an intelligent Sensor Hub (Sensor Hub), and the second processor may be an Application Processor (AP). For example, the AP may collect CELL information around the first location through a smart Sensor application included in the application layer to obtain information about the first CELL fence, and add the information about the first CELL fence to the Sensor Hub.
Taking the first place as an express receiving point as an example, the intelligent sensing application can collect CELL information near the user's home to obtain the related information of the first CELL fence. For example, the smart sensing application may collect CELL information of the location of the electronic device when the electronic device is in a stationary state within a preset time period (e.g., 1:00-3:00 am); then, when the electronic equipment is changed from a static state to a motion state, the intelligent sensing application collects CELL information of the position of the electronic equipment within a period of time (such as 10 minutes). Based on the acquired CELL information, the intelligent sensing application establishes a first CELL fence.
Illustratively, the first CELL fence related information includes a plurality of sets of first CELL information, each set of first CELL information including a location area code (location area code, LAC) and a CELL Identity (CID) of one CELL base station. On this basis, the smart Sensor application adds the relevant information of the first CELL fence to the Sensor Hub in a collective form, so that the Sensor Hub stores the relevant information of the first CELL fence. The information about the first CELL fence as saved in Sensor Hub may be: CELL ID 1= { LAC1+CID1, LAC2+CID2, … …, LACn+CIDn }. Wherein CELL ID1 refers to the identity of the first CELL fence, i.e., the ID of the first CELL fence.
It can be understood that the electronic device executes the CELL matching algorithm function in the CELL driving of the driving layer on the Sensor Hub side, so that the AP saves the related information of the first CELL fence to the Sensor Hub refers to: the intelligent sensing application issues the related information of the first CELL fence to the CELL driver of the driver layer.
In some embodiments, the smart sensor application may send the information about the first CELL fence layer by layer to the CELL driver of the driver layer through the fence management service, so that the CELL driver caches the information about the first CELL fence. Further, the CELL driver may generate an ID of the first CELL fence according to the related information of the first CELL fence, and return an addition result to the smart sensing application. Illustratively, the addition is used to indicate that the first CELL geofence was successfully saved, and the addition also carries the ID of the first CELL geofence.
Illustratively, as shown in FIG. 10, first, the smart aware application invokes the SDK interface connection fence management service. After the smart sensor application is successfully connected with the fence management service, the smart sensor application can call the LBSS service interface to issue the related information of the first CELL fence to the fence management service. After the rail management service receives the related information of the first CELL rail, the rail management service calls an interface corresponding to the CELL HAL, and the related information of the first CELL rail is issued to the CELL HAL. After the CELL HAL receives the related information of the first CELL fence, the CELL HAL calls an interface corresponding to the driving CELL, and the related information of the first CELL fence is issued to the driving CELL.
Further, after the driving CELL receives the related information of the first CELL fence, the driving CELL first caches the related information of the first CELL fence. For example, the CELL is driven to buffer information about the first CELL using a predetermined function (e.g., sns_malloc, sns_free, etc.) provided by the high-pass chip platform. And then, driving the CELL to generate the ID of the first CELL fence according to the related information of the first CELL fence, and returning an adding result to the intelligent perception application. Illustratively, the CELL is driven to call an interface corresponding to the CELL HAL, and the addition result is reported to the CELL HAL. After the CELL HAL receives the addition result, the CELL HAL uses the cached process identifier (such as a callback function) to report the addition result to the fence management service. After receiving the addition result, the fence management service uses a process identifier (such as a callback function) to report the addition result to the intelligent perception application corresponding to the callback function.
Based on the above manner, after the CELL drive buffers the relevant information of the first CELL fence, the CELL drive executes a CELL matching algorithm based on the relevant information of the first CELL fence, and judges whether the electronic equipment enters/exits the first CELL fence. Fig. 11 is a schematic flow chart of a method for matching a CELL fence according to an embodiment of the present application, and as shown in fig. 11, the method may be implemented by the following steps.
S201, the first processor periodically acquires second CELL information.
Wherein the second CELL information includes LAC and CID of one CELL base station.
In some embodiments, the first processor may drive the modem chip to periodically collect CELL information around the electronic device to obtain the second CELL information. For example, a modem driver disposed on the first processor side may drive a hardware device such as a modem chip to collect CELL information around the electronic device.
Referring to fig. 10, as shown in fig. 12, after the CELL driver at the first processor side receives the related information of the first CELL fence, the CELL driver notifies the modem driver to drive hardware devices such as a modem chip to collect CELL information around the electronic device. Illustratively, the CELL driver sends a first request to the modem driver requesting the modem driver to report CELL information surrounding the electronic device. After receiving a first request sent by the CELL driver, the modem driver responds to the first request to drive the modem chip to periodically acquire CELL information around the electronic equipment; and then, the modem driver collects CELL information around the electronic equipment acquired by the modem chip, and returns the acquired CELL information around the electronic equipment to the CELL driver so as to enable the CELL driver to acquire second CELL information.
In some embodiments, before the CELL driver sends the first request to the modem driver, the method further comprises: judging whether the related information of the CELL fence exists in CELL driving; if the related information of the CELL fence exists in the CELL drive, the CELL drive sends a first request to the modem drive. If the related information of the CELL fence does not exist in the CELL drive, judging whether the CELL drive sends a first request to the modem drive or not; if the CELL driver sends the first request to the modem driver, the CELL driver sends a second request to the modem driver, wherein the second request is used for requesting the modem driver to stop reporting CELL information around the electronic equipment. If the CELL driver does not send the first request to the modem driver, the CELL driver does not do any processing.
That is, when there is information about the CELL fence in the CELL driving, the CELL driving may acquire CELL information (such as multiple sets of second CELL information) around the electronic device, so that the CELL matching module included in the CELL driving executes the CELL matching algorithm. In this way, the reliability of the first processor executing the CELL matching algorithm can be ensured.
S202, the first processor judges whether the electronic equipment enters a first CELL fence.
In some embodiments, the first processor matches the second CELL information based on information related to the first CELL fence (i.e., multiple sets of first CELL information), and determines whether the electronic device enters the first CELL fence according to the matching result.
For example, as shown in fig. 12, a CELL matching algorithm may be performed by a CELL matching module included in the CELL driver on the first processor side to determine whether the electronic device enters the first CELL fence. For example, the CELL matching module matches a plurality of sets of first CELL information with the second CELL information, and if the plurality of sets of first CELL information are matched with the second CELL information, the CELL matching module determines that the electronic device enters the first CELL fence. Correspondingly, if the plurality of groups of first CELL information are not matched with the second CELL information, the CELL matching module determines that the electronic equipment does not enter the first CELL fence.
Wherein the matching of the plurality of sets of first CELL information with the second CELL information includes: the second CELL information is identical to any one of the plurality of sets of first CELL information. The plurality of sets of first CELL information and second CELL information mismatch comprising: the second CELL information is different from each of the plurality of sets of first CELL information.
In other words, based on the above-mentioned matching algorithm, if the second CELL information is the same as any one of the plurality of sets of first CELL information, the CELL matching module confirms that the electronic device enters the first CELL fence. Correspondingly, if the second CELL information is different from each set of first CELL information in the plurality of sets of first CELL information, the CELL matching module confirms that the electronic equipment does not enter the first CELL fence.
Further, in step S202, after the first processor executes the CELL matching algorithm, the matching result output by the algorithm is converted into a fence entry/exit event, and the fence entry/exit event is reported to the first processor. For example, if the matching result output by the CELL matching algorithm is that the second CELL information is the same as any one set of first CELL information in the plurality of sets of first CELL information, the first processor converts the matching result into a fence-in event (or called a first event).
In order to further achieve the purpose of reducing power consumption, in some embodiments, if the matching result output by the CELL matching algorithm is that the sets of first CELL information and the second CELL information are not matched, the first processor does not convert the matching result into a fence non-entering event. Thus, the first processor does not need to report the fence non-entry event to the second processor, so that the power consumption can be further reduced.
S203, the first processor reports the first event to the second processor.
It will be appreciated that if the first processor determines that the electronic device is entering a first CELL fence, the first processor reports a first event, i.e., a fence-entry event, to the second processor. Wherein the first event includes a process identification of the first application process, such as a process identification (e.g., a callback function) including the smart aware application.
Illustratively, as shown in FIG. 12, the CELL driver invokes the interface corresponding to the CELL HAL to report the first event (i.e., report the fence-in event) to the CELL HAL. After the first event is received by the CELL HAL, the first event is reported to the fence management service using a process identification (e.g., a callback function) of the smart aware application. After the fence management service receives the first event, the first event is reported to the intelligent perception application through a process identifier (such as a callback function) of the intelligent perception application.
S204, responding to the first event, and controlling the first application process to execute the target function by the second processor.
Taking the first application process as an example of the smart aware application, the second processor may control the first application process to activate a first virtual card (e.g., the public transport card); or the second processor can control the first application process to display first prompt information, such as automatically ejecting the YOYO express card, so as to remind a user to take a piece.
In some embodiments, as shown in fig. 13, after the first processor determines that the electronic device enters the first CELL fence, the method further comprises:
s205, the first processor periodically acquires third CELL information.
Wherein the third CELL information comprises LAC and CID of one CELL base station.
A specific implementation method of the first processor periodically acquiring the third CELL information may be shown with reference to fig. 13 and the above embodiment, and a specific implementation process of the method is similar to that of the first processor periodically acquiring the second CELL information, which is not described herein.
S206, the first processor judges whether the electronic equipment leaves the first CELL fence.
In some embodiments, the first processor matches the third CELL information based on information related to the first CELL fence (i.e., multiple sets of first CELL information), and determines whether the electronic device leaves the first CELL fence according to the matching result.
For example, as shown in fig. 12, a CELL matching algorithm may be performed by a CELL matching module included in the CELL driver on the first processor side to determine whether the electronic device is out of (or is exiting) the first CELL fence. For example, the CELL matching module matches a plurality of sets of first CELL information with the third CELL information, and if the plurality of sets of first CELL information and the third CELL information are not matched, the CELL matching module determines that the electronic device leaves the first CELL fence. Correspondingly, if the plurality of sets of first CELL information are matched with the third CELL information, the CELL matching module determines that the electronic equipment does not leave the first CELL enclosure.
Wherein the unmatching of the plurality of groups of first CELL information and the third CELL information comprises: the third CELL information is different from each of the plurality of sets of first CELL information. The matching of the plurality of sets of first CELL information with the second CELL information includes: the third CELL information is identical to any one of the plurality of sets of first CELL information.
In other words, based on the above-mentioned matching algorithm, if the third CELL information is different from each set of first CELL information in the plurality of sets of first CELL information, the CELL matching module confirms that the electronic device leaves the first CELL fence. Correspondingly, if the third CELL information is the same as any one of the plurality of sets of first CELL information, the CELL matching module confirms that the electronic equipment does not leave the first CELL enclosure.
Further, in step S206, after the first processor executes the CELL matching algorithm, the matching result outputted by the algorithm is converted into a fence entry/exit event, and the fence entry/exit event is reported to the first processor. For example, if the matching result output by the CELL matching algorithm is that the third CELL information is different from each set of first CELL information in the plurality of sets of first CELL information, the first processor converts the matching result into a fence exit (or second event).
In order to further achieve the purpose of reducing power consumption, in some embodiments, if the matching result output by the CELL matching algorithm is that the third CELL information is the same as any one of the sets of first CELL information, the first processor does not convert the matching result into a fence non-leaving event. In this way, the first processor does not need to report a fence-not-leave event to the second processor, so that power consumption can be further reduced.
S207, the first processor reports the second event to the second processor.
It will be appreciated that if the first processor determines that the electronic device is leaving the first CELL fence, the first processor reports a second event, i.e., a fence exit event, to the second processor. Wherein the second event includes a process identification of the first application process, such as a process identification (e.g., a callback function) including the smart aware application.
It should be noted that, similar to the specific implementation manner in which the first processor reports the second event to the second processor, reference may be made to the above embodiment, and details are not repeated here.
S208, responding to the second event, and controlling the first application process to close the target function by the second processor.
Taking the first application process as an example of a smart aware application, the second processor may illustratively control the first application process to exit the activated first virtual card (e.g., the public transportation card described above). For example, the second processor may control the first application process to switch the activated first virtual card to a default virtual card (e.g., a cell access card as described above).
Alternatively, the second processor may control the first application process to exit the displayed first prompt. For example, the second processor may control the first application process to exit the yoyoyo express card.
In summary, in the embodiment of the present application, the first processor (i.e. Sensor Hub) may periodically obtain the second CELL information, and determine whether the electronic device enters the first CELL fence based on matching the obtained second CELL information with the related information (such as multiple sets of first CELL information) of the first CELL fence. That is, the present application deploys the matching scheme of the CELL fence on the Sensor Hub side, and if the Sensor Hub determines that the electronic device enters the first CELL fence, the Sensor Hub reports a fence entry event to the second processor (i.e., the AP), thereby waking up the AP, so that the AP controls the first application process to execute the target function. That is, the present application deploys the matching scheme of the CELL rail on the Sensor Hub side, thereby being able to provide continuous, complete matching capability of the low power consumption CELL rail.
Based on the fact that the CELL information in different places is different and the CELL information in the same place may have real-time change, in the embodiment of the application, after the first application process executes the target function, the first application process can acquire the current CELL information to obtain fourth CELL information. And then, the first application process transmits the acquired fourth CELL to the first processor, so that the first processor uses the fourth CELL information to update the related information of the first CELL fence. Wherein the fourth CELL information includes LAC and CID of one CELL base station.
Illustratively, the first application process (e.g., a smart aware application) may send the fourth CELL information to the CELL driver in the driver layer through the fence management service and the CELL HAL in the hardware abstraction layer, so that the CELL driver caches the fourth CELL information and updates the related information of the first CELL fence. For example, the CELL driver may invoke a predetermined function (e.g., sns_malloc, sns_free, etc.) of the high-pass chip platform package to buffer the fourth CELL information.
The content described in each embodiment of the present application can explain and describe the technical solutions in other embodiments of the present application, and the technical features described in each embodiment can also be applied in other embodiments, and form new solutions in combination with the technical features in other embodiments, and the present application is only described by way of example and not by way of limitation.
The embodiment of the application also provides electronic equipment, which can comprise a first processor, a second processor and a memory; the first processor stores related information of a first CELL rail provided by a first place, wherein the related information of the first CELL rail comprises a plurality of groups of first CELL information, and each group of first CELL information comprises a location area code LAC and a base station number CID of a CELL base station; the second processor includes a first application process for providing a target function; the memory has stored therein computer program code comprising computer instructions which, when executed by the first processor, cause the first processor to perform the steps of: the first processor periodically acquires second CELL information; the second CELL information includes LAC and CID of a CELL base station; if the first processor determines that the electronic equipment enters the first CELL fence according to the second CELL information, the first processor reports a first event to the second processor; wherein the electronic device entering a first CELL fence comprises: the second CELL information is identical to any one group of first CELL information in the plurality of groups of first CELL information; the first event is used for indicating the electronic device to enter a first CELL fence, and comprises a process identifier of a first application process; the second processor, when executing the computer instructions, causes the second processor to perform the steps of: in response to the first event, the second processor controls the first application process to execute the target function.
In some embodiments, the first application process is configured to implement an express delivery reminding function, and the first CELL fence is established by the electronic device based on CELL information corresponding to the express delivery receiving point; when the second processor executes the computer instructions, the second processor is caused to specifically perform the steps of: the second processor controls the first application process to display first prompt information; the first prompt message is used for reminding the user of carrying out express delivery and taking the express delivery.
In some embodiments, a first application process is used to implement a near field communication NFC functionality, the first application process including a first virtual card; the first CELL fence is established after the electronic equipment completes data interaction by using a first virtual card; when the second processor executes the computer instructions, the second processor is caused to specifically perform the steps of: the second processor controls the first application process to be automatically switched into a first virtual card corresponding to the first CELL fence.
In some embodiments, the first processor, when executing the computer instructions, causes the first processor to further perform the steps of: the first processor periodically acquires third CELL information; the third CELL information includes LAC and CID of a CELL base station; if the first processor determines that the electronic equipment leaves the first CELL fence according to the third CELL information, the first processor reports a second event to the second processor; wherein the electronic device exiting the first CELL fence comprises: the third CELL information is different from each set of first CELL information in the plurality of sets of first CELL information; the second event is used for indicating the electronic device to leave the first CELL fence, and the second event comprises a process identifier of the first application process; the second processor, when executing the computer instructions, causes the second processor to further perform the steps of: in response to the second event, the second processor controls the first application process to close the target function.
In some embodiments, the first processor, when executing the computer instructions, causes the first processor to further perform the steps of: after the first application process executes the target function, the first processor caches the fourth CELL information acquired currently and updates the related information of the first CELL fence; wherein the fourth CELL information comprises LAC and CID of one CELL base station.
In some embodiments, the first processor, when executing the computer instructions, causes the first processor to further perform the steps of: if the distance between the real-time position of the electronic device and the first place is greater than a first distance threshold, the first processor deletes the related information of the first CELL fence, and/or the first processor stops acquiring the second CELL information; or if the electronic device is in the static state and the time length of the electronic device in the static state is greater than or equal to the first time length, the first processor deletes the related information of the first CELL rail, and/or the first processor stops acquiring the second CELL information.
In some embodiments, the electronic device further comprises a modem for acquiring CELL information surrounding the electronic device; when the first processor executes the computer instructions, the first processor is caused to specifically perform the following steps: the first processor sends a first request to the modem; the first request is used for requesting the modem to report CELL information around the electronic equipment; in response to the first request, the modem periodically collects CELL information around the electronic equipment; the modem reports CELL information around the electronic equipment to the first processor; the CELL information surrounding the electronic device includes second CELL information.
In some embodiments, the first processor, when executing the computer instructions, causes the first processor to further perform the steps of: the first processor judges whether the related information of the CELL fence exists in the first processor; if the first processor has information about the CELL fence, the first processor sends a first request to the modem.
In some embodiments, the first processor, when executing the computer instructions, causes the first processor to further perform the steps of: if the first processor does not have the related information of the CELL fence, the first processor judges whether the first processor sends a first request to the modem or not; if the first processor sends a first request to the modem, the first processor sends a second request to the modem; wherein the second request is for requesting the modem to stop reporting CELL information surrounding the electronic device.
In some embodiments, the first processor is a smart Sensor Hub; when the first processor executes the computer instructions, the first processor is caused to specifically perform the following steps: and the Sensor Hub calls a preset function encapsulated by the platform to cache fourth CELL information, and updates the related information of the first CELL fence.
In some embodiments, the first processor is a smart Sensor Hub; when the first processor executes the computer instructions, the first processor is caused to specifically perform the following steps: and the Sensor Hub calls a public function of a high-information interface QMI provided by the platform, and reports the first event to the AP.
The present application also provides a chip system, as shown in fig. 14, the chip system 1100 includes at least one processor 1101 and at least one interface circuit 1102. The processor 1101 may be the processor 110 shown in fig. 1 in the above embodiment. The interface circuit 1102 may be, for example, an interface circuit between the processor 110 and an external memory; or as interface circuitry between the processor and the internal memory 121.
The processor 1101 and interface circuit 1102 may be interconnected by wires. For example, interface circuit 1102 may be used to receive signals from other devices (e.g., a memory of electronic apparatus 100). For another example, the interface circuit 1102 may be used to send signals to other devices (e.g., the processor 1101). The interface circuit 1102 may, for example, read instructions stored in a memory and send the instructions to the processor 1101. The instructions, when executed by the processor 1101, may cause the electronic device to perform the steps performed by the first processor and the second processor in the above embodiments. Of course, the system-on-chip may also include other discrete devices, which are not particularly limited in accordance with embodiments of the present application.
Embodiments of the present application also provide a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the functions or steps performed by the first processor and the second processor in the above-described method embodiments.
Embodiments of the present application also provide a computer program product which, when run on a computer, causes the computer to perform the functions or steps performed by the first processor and the second processor in the above-described method embodiments.
It will be apparent to those skilled in the art from this description 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 by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional 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 units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. The matching method of the CELL fence is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a first processor and a second processor; the first processor is an intelligent sensing Hub, and the second processor is an application processor AP; the second processor comprises a first application process for realizing a target function; the method comprises the following steps:
when the first application process in the second processor runs, acquiring a plurality of groups of first CELL information provided by a first place, and establishing related information of a first CELL rail; wherein, each group of first CELL information comprises a location area code LAC and a base station number CID of a CELL base station;
the second processor issues the related information of the first CELL rail to a driving layer of the first processor through an application program framework layer and a hardware abstraction layer, and caches a process identifier of the first application process in the hardware abstraction layer;
After a drive layer of the first processor caches the related information of the first CELL fence, the first processor periodically acquires second CELL information through the drive layer; the second CELL information includes LAC and CID of a CELL base station;
if the first processor determines that the electronic equipment enters the first CELL fence according to the second CELL information through the driving layer, the first processor reports a first event to a hardware abstraction layer of the second processor through the driving layer; wherein the electronic device entering the first CELL fence comprises: the second CELL information is identical to any one group of first CELL information in the plurality of groups of first CELL information; the first event is for instructing the electronic device to enter the first CELL fence;
the hardware abstraction layer of the second processor acquires the cached process identification of the first application process, and reports the first event to the application program layer through the application program framework layer;
the second processor responds to the first event through the application program layer and controls the first application process to execute the target function;
wherein the method further comprises:
The second processor registers monitoring to the driving layer of the first processor through the hardware abstraction layer, and is used for monitoring whether the driving layer of the first processor is restarted;
if the second processor monitors restarting of the driving layer of the first processor through the hardware abstraction layer, the second processor reports a restarting event to the application program layer through the hardware abstraction layer and the application program framework layer;
and responding to the restarting event, controlling the first application process to reestablish the related information of the first CELL fence by the second processor through the application program layer, and resending the related information of the first CELL fence to the driving layer of the second processor.
2. The method of claim 1, wherein the first application process is configured to implement an express delivery reminder function, and the first CELL fence is established by the electronic device based on CELL information corresponding to an express delivery receiving point; the second processor controls the first application process to execute the target function, including:
the second processor controls the first application process to display first prompt information; the first prompt message is used for reminding the user of carrying out express delivery and taking.
3. The method of claim 1, wherein the first application process is configured to implement a near field communication NFC functionality, the first application process comprising a first virtual card; the first CELL fence is established after the electronic equipment completes data interaction by using the first virtual card; the second processor controls the first application process to execute the target function, including:
the second processor controls the first application process to automatically switch to the first virtual card corresponding to the first CELL fence.
4. A method according to any one of claims 1-3, characterized in that the method further comprises:
the first processor periodically acquires third CELL information; the third CELL information includes LAC and CID of a CELL base station;
if the first processor determines that the electronic equipment leaves the first CELL fence according to the third CELL information, the first processor reports a second event to the second processor; wherein the electronic device exiting the first CELL fence comprises: the third CELL information is different from each set of first CELL information in the plurality of sets of first CELL information; the second event is used for indicating the electronic equipment to leave the first CELL fence, and the second event comprises a process identifier of the first application process;
In response to the second event, the second processor controls the first application process to close the target function.
5. A method according to any one of claims 1-3, characterized in that the method further comprises:
after the first application process executes the target function, the first processor caches fourth CELL information acquired currently and updates relevant information of the first CELL rail;
wherein the fourth CELL information comprises LAC and CID of one CELL base station.
6. A method according to any one of claims 1-3, characterized in that the method further comprises:
if the distance between the real-time position of the electronic device and the first place is greater than a first distance threshold, the first processor deletes the related information of the first CELL rail, and/or the first processor stops acquiring the second CELL information; or,
if the electronic equipment is in a static state and the time length of the electronic equipment in the static state is greater than or equal to a first time length, the first processor deletes the related information of the first CELL fence, and/or the first processor stops acquiring the second CELL information.
7. The method of any of claims 1-3, wherein the electronic device further comprises a modem for acquiring CELL information surrounding the electronic device; the first processor periodically obtains second CELL information, including:
the first processor sending a first request to the modem; the first request is used for requesting the modem to report CELL information around the electronic equipment;
in response to the first request, the modem periodically collects CELL information around the electronic device;
the modem reports CELL information around the electronic equipment to the first processor; the CELL information surrounding the electronic device includes the second CELL information.
8. The method of claim 7, wherein the first processor sending a first request to the modem comprises:
the first processor judges whether the first processor has the relevant information of CELL fences or not;
if the first processor has information about CELL fence, the first processor sends the first request to the modem.
9. The method of claim 8, wherein the method further comprises:
if the first processor does not have the information related to the CELL fence, the first processor judges whether the first processor sends the first request to the modem;
if the first processor sends the first request to the modem, the first processor sends a second request to the modem;
the second request is used for requesting the modem to stop reporting CELL information around the electronic equipment.
10. The method of claim 5, wherein the first processor caching fourth CELL information currently acquired and updating information related to the first CELL fence comprises:
and the Sensor Hub calls a preset function encapsulated by a platform to cache the fourth CELL information and update the related information of the first CELL fence.
11. The method of any of claims 1-3, 8-10, wherein the first processor reporting a first event to the second processor comprises:
and the Sensor Hub calls a public function of a high-information interface QMI provided by a platform, and reports the first event to the AP.
12. An electronic device comprising a first processor, a second processor, and a memory; the first processor is an intelligent sensing Hub, and the second processor is an application processor AP; the second processor includes a first application process for providing a target function;
the memory has stored therein computer program code comprising computer instructions;
the computer instructions, when executed by the first processor and the second processor, cause the first processor and the second processor to perform the steps of:
when the first application process in the second processor runs, acquiring a plurality of groups of first CELL information provided by a first place, and establishing related information of a first CELL rail; wherein, each group of first CELL information comprises a location area code LAC and a base station number CID of a CELL base station;
the second processor issues the related information of the first CELL rail to a driving layer of the first processor through an application program framework layer and a hardware abstraction layer, and caches a process identifier of the first application process in the hardware abstraction layer;
after a drive layer of the first processor caches the related information of the first CELL fence, the first processor periodically acquires second CELL information through the drive layer; the second CELL information includes LAC and CID of a CELL base station;
If the first processor determines that the electronic equipment enters the first CELL fence according to the second CELL information through the driving layer, the first processor reports a first event to a hardware abstraction layer of the second processor through the driving layer; wherein the electronic device entering the first CELL fence comprises: the second CELL information is identical to any one group of first CELL information in the plurality of groups of first CELL information; the first event is for instructing the electronic device to enter the first CELL fence;
the hardware abstraction layer of the second processor acquires the cached process identification of the first application process, and reports the first event to the application program layer through the application program framework layer;
the second processor responds to the first event through the application program layer and controls the first application process to execute the target function;
wherein the second processor further performs the steps of:
the second processor registers monitoring to the driving layer of the first processor through the hardware abstraction layer, and is used for monitoring whether the driving layer of the first processor is restarted;
if the second processor monitors restarting of the driving layer of the first processor through the hardware abstraction layer, the second processor reports a restarting event to the application program layer through the hardware abstraction layer and the application program framework layer;
And responding to the restarting event, controlling the first application process to reestablish the related information of the first CELL fence by the second processor through the application program layer, and resending the related information of the first CELL fence to the driving layer of the second processor.
13. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-11.
CN202310106625.5A 2023-02-13 2023-02-13 CELL fence matching method and electronic equipment Active CN115835135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310106625.5A CN115835135B (en) 2023-02-13 2023-02-13 CELL fence matching method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310106625.5A CN115835135B (en) 2023-02-13 2023-02-13 CELL fence matching method and electronic equipment

Publications (2)

Publication Number Publication Date
CN115835135A CN115835135A (en) 2023-03-21
CN115835135B true CN115835135B (en) 2023-11-07

Family

ID=85521123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310106625.5A Active CN115835135B (en) 2023-02-13 2023-02-13 CELL fence matching method and electronic equipment

Country Status (1)

Country Link
CN (1) CN115835135B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117273830A (en) * 2023-11-23 2023-12-22 荣耀终端有限公司 Method for displaying card, electronic device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020041952A1 (en) * 2018-08-27 2020-03-05 华为技术有限公司 Method and electronic apparatus for controlling express delivery cabinet on the basis of express delivery message
CN113794801A (en) * 2021-08-09 2021-12-14 荣耀终端有限公司 Method and device for processing geo-fence
CN114463898A (en) * 2021-07-30 2022-05-10 荣耀终端有限公司 Express delivery pickup reminding method and device
CN115016704A (en) * 2021-12-29 2022-09-06 荣耀终端有限公司 Express delivery prompting method and electronic equipment
CN115063138A (en) * 2022-06-01 2022-09-16 Oppo广东移动通信有限公司 Intelligent card cutting method and related device
CN115097993A (en) * 2021-12-29 2022-09-23 荣耀终端有限公司 Express delivery prompting method and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020041952A1 (en) * 2018-08-27 2020-03-05 华为技术有限公司 Method and electronic apparatus for controlling express delivery cabinet on the basis of express delivery message
CN111434129A (en) * 2018-08-27 2020-07-17 华为技术有限公司 Method for controlling express cabinet based on express message and electronic equipment
CN114463898A (en) * 2021-07-30 2022-05-10 荣耀终端有限公司 Express delivery pickup reminding method and device
CN113794801A (en) * 2021-08-09 2021-12-14 荣耀终端有限公司 Method and device for processing geo-fence
CN115016704A (en) * 2021-12-29 2022-09-06 荣耀终端有限公司 Express delivery prompting method and electronic equipment
CN115097993A (en) * 2021-12-29 2022-09-23 荣耀终端有限公司 Express delivery prompting method and electronic equipment
CN115063138A (en) * 2022-06-01 2022-09-16 Oppo广东移动通信有限公司 Intelligent card cutting method and related device

Also Published As

Publication number Publication date
CN115835135A (en) 2023-03-21

Similar Documents

Publication Publication Date Title
US11368192B2 (en) Electronic device and method for short range wireless communication in the electronic device
CN110235086B (en) Electronic equipment and fingerprint identification method thereof
KR102148948B1 (en) Multi tasking method of electronic apparatus and electronic apparatus thereof
EP3101509A1 (en) Electronic device and method for controlling execution of application in electronic device
US20220350602A1 (en) Multi-Thread Synchronization Method and Electronic Device
US10235945B2 (en) Apparatus and method for controlling display in electronic device having processors
EP3113121A1 (en) Method for performing authentication and electronic device thereof
US10228779B2 (en) Apparatus and method for providing memo function
US20170070080A1 (en) Electronic device and operating method thereof
US11231763B2 (en) Electronic device and method for controlling heat generated on surface of electronic device
CN115835135B (en) CELL fence matching method and electronic equipment
US20150066424A1 (en) Electronic device and method for measuring position change
CN112732434A (en) Application management method and device
WO2023202429A1 (en) Garbage recycling method and electronic device
KR102388981B1 (en) Display and electronic device including the same
CN111381996B (en) Memory exception handling method and device
CN115794361A (en) Method for managing memory and electronic equipment
WO2019128545A1 (en) Process handling method, and electronic device and computer-readable storage medium
CN116089109B (en) Step counting data transmission method and related device
CN117130766B (en) Thread processing method and electronic equipment
US20170244644A1 (en) Electronic device and method for processing data in electronic device
CN116700463B (en) Activity recognition method and related equipment
CN116088970B (en) Method for controlling application call and related device
CN116662150B (en) Application starting time-consuming detection method and related device
CN116736999B (en) Control method of electronic equipment 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