WO2020191598A1 - 一种确定终端设备位于地理围栏内部的方法和终端设备 - Google Patents

一种确定终端设备位于地理围栏内部的方法和终端设备 Download PDF

Info

Publication number
WO2020191598A1
WO2020191598A1 PCT/CN2019/079590 CN2019079590W WO2020191598A1 WO 2020191598 A1 WO2020191598 A1 WO 2020191598A1 CN 2019079590 W CN2019079590 W CN 2019079590W WO 2020191598 A1 WO2020191598 A1 WO 2020191598A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
geographic location
geofence
positioning
cell
Prior art date
Application number
PCT/CN2019/079590
Other languages
English (en)
French (fr)
Inventor
侯伟波
杨自成
任革林
史海谋
闵祥
王帅
周振国
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US17/442,945 priority Critical patent/US20220191641A1/en
Priority to PCT/CN2019/079590 priority patent/WO2020191598A1/zh
Priority to CN201980094491.1A priority patent/CN113615217B/zh
Priority to EP19921583.1A priority patent/EP3920558A4/en
Publication of WO2020191598A1 publication Critical patent/WO2020191598A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • G01S19/51Relative positioning
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/0205Details
    • G01S5/0236Assistance data, e.g. base station almanac
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • This application relates to the field of terminal technology, and in particular to a method and terminal device for determining that a terminal device is located inside a geofence.
  • the terminal device has the function of a push service based on geographic location.
  • the main technology that the terminal device relies on to realize the function of the geographic location-based push service is the geofence (geofence, GF) sensing technology.
  • the so-called geo-fence sensing technology that is, the terminal device can detect whether to enter or move out of the geo-fence.
  • the terminal device detects that it enters the geo-fence, it can provide corresponding services, such as pushing the business information in the geo-fence.
  • GPS global positioning system
  • the embodiment of the present application provides a method and terminal device for determining that a terminal device is located inside a geo-fence.
  • the method can realize pushing related services based on geographic location and save power consumption.
  • an embodiment of the present application provides a method for determining that a terminal device is located inside a geofence.
  • the method can be executed by a terminal device.
  • the terminal device stores a positioning library, and the positioning library includes communication access information and its Corresponding geographic location information; the method includes: obtaining a first geographic location corresponding to the communication access information of the terminal device according to the positioning library; if the location relationship between the first geographic location and the geographic fence conforms to The first preset condition is to activate the positioning module to obtain the second geographic location of the terminal device; and determine that the terminal device is located inside the geofence according to the second geographic location.
  • the terminal device does not need to activate the positioning module all the time, but can determine the first geographic location based on the communication access information of the positioning library and the terminal device. When the first geographic location meets the condition, the positioning module is then activated to obtain the second geographic location. , And then determine that the phone is located inside the geofence according to the second geographic location, which helps to save power consumption.
  • the first preset condition includes: the closest distance between the first geographic location and the geofence is less than or less than or equal to a first preset threshold.
  • the terminal device does not need to activate the positioning module all the time. When it detects that it is close to the geofence, it will activate the positioning module, which helps to save power consumption.
  • the first preset condition further includes: the first geographic location is outside the geofence.
  • the terminal device does not need to activate the positioning module all the time.
  • the positioning module is activated again, which helps to save power consumption.
  • the communication access information includes cell access information.
  • the communication access information includes wifi access information.
  • the positioning module includes a GPS module.
  • GPS module is only an example and not a limitation.
  • the activating the positioning module to obtain the second geographic location of the terminal device includes: activating the positioning module to obtain the second geographic location of the terminal device according to a trigger period; the method further includes: The terminal device is in a motion state, and the trigger period is set according to the closest distance between the second geographic location and the geofence and the moving speed of the terminal device.
  • the positioning module does not need to be turned on all the time, it may be turned on periodically.
  • the period can be set. For example, when the terminal device is in motion, it can be set according to the closest distance between the current geographic location and the geofence and the moving speed of the terminal device. cycle.
  • the activating the positioning module to obtain the second geographic location of the terminal device includes: activating the positioning module to obtain the second geographic location of the terminal device according to a trigger period; the method further includes: The terminal device is in a static state, and the trigger period is increased.
  • the positioning module does not need to be in the on state all the time, and it may be turned on periodically, where the period can be set, for example, when the terminal device is in a static state, the period is increased according to the period.
  • obtaining the first geographic location corresponding to the communication access information of the terminal device according to the positioning library includes: if obtaining the first communication access of the terminal device according to the positioning library When the first geographic location corresponding to the input information fails, the first geographic location corresponding to the second communication access information of the terminal device is obtained according to the positioning library
  • the positioning database may include the first communication access information and the second communication access information.
  • the terminal device When the terminal device cannot achieve positioning according to the first communication access information, it may achieve positioning according to the second communication access information.
  • the first communication access information is cell access information
  • the second communication access information is wifi access information
  • the terminal device when the terminal device fails to locate based on the cell access information, it can perform positioning based on the wifi access information.
  • the positioning module is turned off.
  • the positioning module can be turned off when the current geographic location of the terminal device is far away from the geographic fence.
  • the second preset threshold may be equal to the first preset threshold.
  • the terminal device before acquiring the first geographic location corresponding to the communication access information of the terminal device according to the positioning library, the terminal device also reports location reference information to the server, where the location The reference information is used to indicate the area range where the terminal device is currently located; receiving the positioning library sent by the server, where the positioning library corresponds to the area range.
  • the terminal device can download the positioning library from the server, and now the positioning library corresponds to the area where the terminal device is currently located.
  • the positioning module does not need to be turned on all the time when the terminal device is positioned, and the positioning library can be used for positioning, which helps save power consumption.
  • the terminal device may also output first information of a first service, and the first service is related to an event entering the geofence.
  • the terminal device determines that it is located inside the geofence, it can output services associated with the geofence, such as information about points of interest (stores, scenic spots, etc.) inside the geofence.
  • services associated with the geofence such as information about points of interest (stores, scenic spots, etc.) inside the geofence.
  • the terminal device may also output the second information of the second service; the second service and moving out of the geofence Related events.
  • the terminal device when it determines to move out of the geofence, it can output services related to moving out of the geofence. For example, when the terminal device determines to move out of a scenic spot, it can output a home route or a point of interest outside the scenic spot ( Stores, other scenic spots, etc.), or remind users to modify subscription services (such as modifying SIM card subscription packages, etc.).
  • the terminal device establishes communication with another terminal device; when it is determined that the another terminal device satisfies the condition, the positioning library is sent to the another terminal device.
  • the positioning library can be shared between different terminal devices, and before sharing, it can be judged whether the other party meets the conditions to avoid privacy leakage.
  • determining that the another terminal device satisfies the condition includes: determining that the distance between the another terminal device and the terminal device is less than a preset distance; or receiving the other terminal device An instruction sent to request the positioning library.
  • positioning library sharing may be realized, or one terminal device may request the sharing of the positioning library from another terminal device.
  • an embodiment of the present application also provides a method for making a positioning library, which can be executed by a server, and the method includes: the server receives communication access information and first geographic location information reported by at least one terminal device; The server constructs a positioning library, the positioning library includes the correspondence between communication access information and a second geographic location; the second geographic location is determined according to the first geographic location; the server downloads the positioning library To the at least one terminal device.
  • the server may construct a positioning library by collecting the communication access points and geographic locations reported by the terminal equipment, and then deliver the positioning library to the terminal equipment.
  • the terminal device can realize the positioning through the positioning library, without always starting the positioning module.
  • the server before the server delivers the positioning library to the at least one terminal device, the server receives the location reference information sent by the at least one terminal device, and the location reference information is used for Indicate the area range where the at least one terminal device is currently located; the server determines the positioning library corresponding to the area range.
  • the server may issue a suitable positioning library to the terminal device according to the area range where the terminal device is currently located.
  • an embodiment of the present application provides a method for determining that a terminal device is located inside a geofence, which is applied to a terminal device, and is characterized in that the terminal device includes a coprocessor, an application processor, a modem processor, and a positioning Module and output device, wherein the coprocessor is connected to the positioning module, the application processor, and the modem processor, respectively, and the application processor is connected to the output device; the terminal device At least one geo-fence and at least one cell within a preset distance range outside each geo-fence are stored in it; the method includes: the coprocessor determines through the modem that the terminal device resides in the first cell; The coprocessor determines that the first cell is a cell within a preset distance range outside the first geographic fence; the coprocessor triggers the activation of the positioning module, and obtains the current position of the terminal device through the positioning module Geographic location information; if the coprocessor determines that the terminal device enters the first geo-fence based on the current geographic
  • the terminal device may not need to activate the positioning module all the time.
  • the positioning module will be activated again, which helps to save power consumption.
  • the determination by the coprocessor that the first cell is a cell within a preset distance outside the first geofence includes: the coprocessor determines that the first geofence outside the It is assumed that the cell ID of the first cell exists in the cell IDs of all cells within the distance range.
  • the terminal device judges whether it is close to the geofence, it can look for the cell ID of the camping cell among all the cell IDs within the preset distance outside the geofence. If so, it will approach the geofence and start the positioning module. Help save power consumption.
  • a cell location library is stored in the terminal device, and the cell location library includes at least one cell and geographic location information corresponding to each cell.
  • the coprocessor triggers the start of the Before the positioning module, the coprocessor also determines that the first geographic location corresponding to the first cell is determined in the cell positioning library; the coprocessor determines that the first geographic location corresponds to the first geographic location.
  • the shortest distance between geofences; the coprocessor triggering the activation of the positioning module includes: triggering the activation of the positioning module when the shortest distance is less than a preset distance.
  • the positioning module is a wifi module
  • obtaining the current geographic location information of the terminal device through the positioning module includes: searching for at least one AP through the wifi module to obtain the at least one AP The first set formed by the wifi identities; the coprocessor determines that the terminal device enters the first geofence based on the current geographic location information, including: the coprocessor determines that the first set is equal to the first Two sets; or the coprocessor judges that the intersection of the first set and the second set is not empty; or the coprocessor judges that the number of the same wifi identifiers in the first set and the second set is greater than a preset Quantity; wherein, the second set is a set formed by the wifi identities of all APs in the first geofence.
  • the embodiments of the present application also provide a terminal device, including a display screen; one or more processors; a memory; one or more application programs; one or more programs, wherein the one or more programs are Stored in the memory, the one or more programs include instructions, and when the instructions are executed by the terminal device, the terminal device executes the first aspect or any one of the possible designs of the first aspect ⁇ ; or when the instruction is executed by the electronic device, the terminal device is caused to execute the third aspect or any one of the possible design methods of the third aspect
  • embodiments of the present application also provide a server, a memory, a processor, and a transceiver, the processor is coupled to the memory and the transceiver; wherein the memory is used to store computer executable program code;
  • the program code includes instructions, and when the processor executes the instructions, the instructions cause the server to execute the foregoing second aspect and any possible design technical solution of the second aspect.
  • an embodiment of the present application also provides a terminal device, the terminal device includes a module/unit that executes the first aspect or any one of the possible design methods of the first aspect; or the electronic device includes The modules/units of the third aspect or any one of the possible design methods of the third aspect; these modules/units can be implemented by hardware, or can be implemented by hardware executing corresponding software.
  • an embodiment of the present application also provides a server.
  • the server includes modules/units that execute the second aspect or any one of the possible design methods of the second aspect; these modules/units can be implemented by hardware, It can also be implemented by hardware executing corresponding software.
  • an embodiment of the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium includes a program.
  • the terminal device executes the first aspect or the above-mentioned first aspect. Any one of the possible design methods in the above aspects; or when the program is running on a terminal device, the terminal device executes the third aspect or any one of the above-mentioned third aspects; or when the program is on the server
  • the server is caused to execute the second aspect or any one of the possible design methods of the second aspect described above.
  • a method that includes a program product, which when the program product runs on a terminal device, causes the terminal device to execute the first aspect or any one of the possible designs of the first aspect; or When the program product is running on a terminal device, the terminal device is caused to execute the third aspect or any one of the possible design methods of the third aspect; or when the program product is running on a server, the The server executes the second aspect or any one of the possible design methods of the foregoing second aspect.
  • a chip system in a tenth aspect, includes a processor and may also include a memory for implementing the method of the first aspect, the second aspect, or the third aspect, or any one of these aspects. Design method.
  • the chip system can be composed of chips, or can include chips and other discrete devices.
  • Figure 1 is a schematic diagram of a geo-fence provided by an embodiment of the application.
  • Figure 2 is a schematic diagram of a cell positioning library provided by an embodiment of the application.
  • FIG. 3 is a schematic diagram of multiple cells provided by an embodiment of this application.
  • FIG. 4 is a schematic diagram of a wifi access point positioning library provided by an embodiment of the application.
  • FIG. 5 is a schematic structural diagram of a mobile phone 100 provided by an embodiment of the application.
  • FIG. 6 is a schematic structural diagram of a mobile phone 100 according to an embodiment of the application.
  • FIG. 7 is a schematic flowchart of a method for determining that a terminal device is located inside a geofence according to an embodiment of the application
  • FIG. 8 is a schematic diagram of the minimum envelope circle provided by an embodiment of the application.
  • FIG. 9 is a schematic diagram of a user graphical interface of the mobile phone 100 according to an embodiment of the application.
  • FIG. 10 is a schematic flowchart of a method for determining that a terminal device is located inside a geofence according to an embodiment of the application;
  • FIG. 11 is a schematic diagram of another wifi access point positioning library provided by an embodiment of this application.
  • Figure 12 is a schematic diagram of a wireless access point in a geofence provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a user graphical interface of the mobile phone 100 according to an embodiment of the application.
  • FIG. 14 is a schematic flowchart of a method for determining that a terminal device is located inside a geofence according to an embodiment of the application;
  • 15 is a schematic diagram of a preset cell outside the geofence provided by an embodiment of the application.
  • FIG. 16 is a schematic diagram of the software architecture of the mobile phone 100 according to an embodiment of the application.
  • FIG. 1 is a schematic diagram of a geofence provided by an embodiment of this application.
  • the terminal device determines whether the latitude and longitude are within the range of the GF, and if so, enter the geofence.
  • a straight line connection between two vertices on a geofence is taken as an example.
  • the two vertices may also be connected by a curve.
  • the terminal device may perform curve connection according to a preset rule, where the preset rule may include the curvature of the curve between two adjacent vertices, etc., which is not limited in the embodiment of the present application.
  • the terminal device may determine whether the terminal device is within the range of the GF according to a preset rule during curve connection.
  • the cell involved in the embodiments of this application refers to a type of communication access information, not a physical cell, such as a cell built by a real estate company, but a type of wireless coverage that uses a base station identification code or global cell identification to identify Area, in the global system for mobile communications (GSM), a cell refers to an area covered by a sector antenna of a base transceiver station (BTS).
  • GSM global system for mobile communications
  • BTS base transceiver station
  • a cell In the broadband code division In multiple access technology (wideband code division multiple access, WCDMA), a cell refers to the coverage of a single carrier in a sector, and multiple carriers and multiple cells may appear in a sector.
  • WCDMA wideband code division multiple access
  • the cell positioning library involved in the embodiment of the present application refers to the correspondence between cell information and geographic location information of the cell.
  • the cell information may include a cell ID and so on.
  • FIG. 2 is a schematic diagram of a cell positioning library provided in an embodiment of this application.
  • the cell location database includes the correspondence between the cell ID and the geographic location; the geographic location may be the location information of the base station corresponding to the cell.
  • the geographic location corresponding to cell ID1 that is, the latitude and longitude is (vlon 1 , vlat 1 ), which is the location information of the base station corresponding to cell 1.
  • cell location database shown in FIG. 2 may be a database structure, etc., which is not limited in the embodiment of the present application.
  • the cell location library provided in the embodiments of the present application may be preset and stored in the terminal device before the terminal device leaves the factory; or, it may also be downloaded from the cloud server during the use of the terminal device.
  • the first implementation is that the terminal device can download the cell location database of the city where the terminal device is currently located from the cloud server.
  • the terminal device may request the cloud server to obtain a cell location database of a city.
  • the terminal device may report the current city information to the cloud server, and the cloud server sends the cell location database of the city to the terminal device.
  • the terminal device can download the cell location library of the current city from the cloud server when it is idle (for example, when the terminal device currently runs fewer applications and the user has not operated the mobile phone for a long time), or when the terminal device is used for the first time after leaving the factory, Download the cell location library of the current city from the cloud server.
  • the cloud server can also actively send the cell location database of a certain city to the terminal device. For example, when the cell location database is updated, the server actively sends the updated cell location database to the terminal device.
  • the server can obtain the cell location database.
  • the terminal device can periodically report the geographic location and cell information of the cell where it resides.
  • the geographic location of the base station corresponding to the cell can be determined based on the geographic location. , And then construct a cell positioning library according to the geographic location of the cell reported by the terminal equipment and the corresponding base station, and then deliver the constructed cell positioning library to the terminal equipment.
  • the terminal device when the terminal device downloads the cell positioning library, it can download the geographic location information of multiple cells (such as 8 cells) around the cell where it currently resides. Refer to Figure 4, assuming that the terminal device currently resides in cell 5, the terminal device can download the geographic location information of the eight cells around cell 5 from the server. Get the cell location library.
  • the cell location database can be updated. For example, please continue to refer to Figure 4.
  • the terminal device moves from cell 5 to cell 6, the terminal device downloads the geographic locations of the eight cells around cell 6, but there are already five of the eight geographic locations around cell 6.
  • the geographic location of the cell (cell 2, 3, 5, 6, 9) does not need to be downloaded. The process of using the cell positioning library will be introduced later.
  • FIG. 4 takes 8 cells around each cell as an example. In practical applications, when the terminal device downloads the cell positioning library, it can also download more cells around each cell, which is not limited in this embodiment of the application. .
  • the terminal device can also obtain the cell location library from other terminal devices.
  • the mobile phone 1 sends the cell location library to the mobile phone 2.
  • the mobile phone 100 may actively send the cell location library to the cell phone 2 after detecting the establishment of a short-distance connection with the cell phone 2, or may send the cell location library to the cell phone 2 when triggered by the user to avoid causing user privacy The leak.
  • the terminal device constructs the cell positioning library by itself.
  • the terminal device can record geographic location information after staying in a cell, and then construct the corresponding relationship between the cell and geographic location information. Get the cell location library.
  • the terminal device can use a preset strategy to select which of the above-mentioned methods to download the cell location database. For example, if the terminal device has a large number of traffic, or when accessing a wireless network, the terminal device can download the geographic location information of surrounding cells in real time, that is, the second method described above is adopted. For another example, if the memory of the terminal device is large, the first method described above can be used. Of course, the user can also specify which method to use to download the cell location database, which is not limited in this embodiment of the application.
  • the wifi access point positioning library involved in the embodiment of the present application may be the correspondence between the identification information of the wifi access point and the geographic location.
  • Figure 4 shows a schematic diagram of a wifi access point positioning library. As shown in FIG. 4, when the terminal device detects that the wifi identifier that accesses the wifi is TDIP, it can determine the current geographic location as (vlon 1 , vlat 1 ) according to the positioning library shown in FIG. 4.
  • the geographic location corresponding to each wifi identifier may be the geographic location where the wifi access point is located.
  • the terminal device can download from the server the wifi access point location library corresponding to the area where the terminal device is currently located.
  • the area range where the terminal device is currently located may be the cell or city where it is currently located.
  • the terminal device may send a request to the server, the request carries cell information or city information, the server determines the wifi node location library based on the request, and sends the wifi node location library to the terminal device.
  • the terminal device may send the request periodically, or send the request when triggered by the user (for example, when the service push function is triggered), or when the terminal device detects that the current city information has changed , Report the city information to the server, and then receive the wifi access point positioning library corresponding to the city information sent by the server, or, when the terminal device detects that the camping cell has changed, report the information of the camping cell after handover to the server , And then receive the wifi positioning library corresponding to the camping cell sent by the server.
  • the server can actively send to the terminal device. For example, after the server determines that the wifi location library downloaded last time by the terminal device is updated, it can actively send the updated wifi location library to the terminal device.
  • the server may collect the WiFi information and geographic location reported by each terminal device, and then determine the location information of the WiFi access point according to the reported geographic location information, and then form the WiFi access point positioning library and send it to the terminal device .
  • the wifi access point positioning library can also be counted by the terminal device itself.
  • the terminal device can record geographic location information after each access to a wifi access point, and then construct the corresponding relationship between the wifi access point and the geographic location information to obtain the wifi access point positioning library.
  • the WiFi access point (access point, AP) involved in the embodiment of the present application may be a wireless router, a mobile phone hotspot, etc., which is not limited in the embodiment of the present application.
  • Each AP has a wifi identifier, and the wifi identifier can be a basic service set identifier (bssid) or a wifi name.
  • bssid may include the MAC address of the AP
  • the wifi name may be the name of the AP set by the user.
  • the application program (application, app for short) involved in the embodiments of the present application is a software program that can implement one or more specific functions.
  • multiple applications can be installed in a terminal device.
  • camera applications For example, camera applications, SMS applications, MMS applications, various email applications, WeChat (WeChat), Tencent chat software (QQ), WhatsApp Messenger, Line, photo sharing (instagram), Kakao Talk, DingTalk, etc.
  • the application program mentioned in the following may be an application program that is installed when the terminal device leaves the factory, or an application program that a user downloads from the network or obtains from other terminal devices during the process of using the terminal device.
  • this part of the application can be the application specified by the user, such as the application set by the user to turn on the positioning function, such as the map application, the Meituan application, etc.; or, this part of the application can be a fixed application set by the terminal device at the factory.
  • the embodiments of this application are not limited.
  • the terminal device may be a portable terminal device, such as a mobile phone, a tablet computer, a wearable device with wireless communication function (such as a smart watch), and so on.
  • the portable terminal equipment includes a device capable of detecting a geographic location (such as a GPS positioning module, a wifi module, etc.), and has a function of providing corresponding services based on the geographic location.
  • Exemplary embodiments of portable terminal equipment include but are not limited to carrying Or portable terminal equipment with other operating systems.
  • the above-mentioned portable terminal equipment may also be other portable terminal equipment, as long as it can detect the geographic location and provide corresponding services based on the geographic location. It should also be understood that in some other embodiments of the present application, the aforementioned terminal device may not be a portable terminal device, but a desktop computer capable of detecting a geographic location and providing corresponding services based on the geographic location.
  • the terminal device may not need to have the ability to provide corresponding services based on geographic location.
  • the terminal device can send the detected geographic location to the cloud server.
  • the cloud server determines whether the terminal device has entered the geo-fence based on the geographic location sent by the terminal device, and if so, determines the corresponding service and sends related information about the service to the terminal device.
  • the terminal device pushes service-related information to the user.
  • the terminal device detects the geographic location by itself and provides corresponding services based on the geographic location as an example.
  • FIG. 5 shows a schematic structural diagram of the mobile phone 100.
  • the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, an antenna 1, an antenna 2, a mobile communication module 151, a wireless communication module 152, a sensor module 180, buttons 190, a display screen 194, and a GPS module 191.
  • the sensor module 180 may include a pressure sensor 180A, a fingerprint sensor 180H, a touch sensor 180K, etc. (the mobile phone 100 may also include other sensors such as a temperature sensor, an ambient light sensor, a gyroscope sensor, etc., not shown in the figure).
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the mobile phone 100.
  • the mobile phone 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor (modem), a graphics processing unit (GPU), and an image processing unit.
  • Signal processor image signal processor, ISP
  • controller memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit , NPU) etc.
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the mobile phone 100. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 can run the software code of the method for determining that the terminal device is located inside the geofence provided in the embodiment of the present application to realize the function of service push.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the mobile phone 100 by running instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, an application program required by at least one function, and the like.
  • the data storage area can store data (such as pictures and videos) created during the use of the mobile phone 100.
  • the internal memory 121 may also be used to store the software code of the method for determining that the terminal device is located inside the geofence provided by the embodiment of the present application. When the processor 110 accesses and runs the software code, the function of the geographic location-based service push service is realized.
  • the internal memory 121 can also store the three types of geofence and cell positioning libraries shown in FIG. 1, such as the cell positioning library shown in FIG. 2, and the wifi positioning library shown in FIG. 4. The specific content will be introduced later.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • the functions of the sensor module 180 are described below.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the mobile phone 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor 180K may transmit the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the mobile phone 100, which is different from the position of the display screen 194.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the mobile phone 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the display screen 194 may be used to display information about the pushed service, and the specific content will be introduced later.
  • the wireless communication module 152 can be used to search for APs to detect the wifi identification, and the processor 110 can determine whether the mobile phone 100 enters the geofence based on the wifi identification.
  • the GPS module 191 can be used to detect the latitude and longitude information of the current geographic location information, and the processor 110 can determine whether the mobile phone 100 enters the geofence based on the latitude and longitude information. The specific content will be introduced later.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function.
  • the software code of the method for determining that the terminal device is located inside the geofence provided by the embodiment of the present application can be stored in an external memory, and the processor 110 can access and run the software code stored in the external memory through the external memory interface 120 to realize Service push function for geographic location.
  • the cell positioning library such as the cell positioning library shown in FIG. 2, the wifi positioning library shown in FIG. 4, and the geofencing library shown in FIG. 1, can also be stored in an external memory, and the processor 110 can obtain and store in the external memory interface 120 Cell location library, geofence, etc. in external memory.
  • the wireless communication function of the mobile phone 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 151, the wireless communication module 152, and so on.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 151 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the mobile phone 100.
  • the mobile communication module 151 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 151 can receive electromagnetic waves by the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 151 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 151 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 151 and at least part of the modules of the processor 110 may be provided in the same device.
  • the wireless communication module 152 can provide applications on the mobile phone 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 152 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 152 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 152 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation through
  • the antenna 1 of the mobile phone 100 is coupled with the mobile communication module 151, and the antenna 2 is coupled with the wireless communication module 152, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the mobile phone 100 may send the detected geographic location to the cloud server through the wireless communication module 151 or the mobile communication module 152.
  • the cloud server determines whether the mobile phone 100 has entered the geo-fence, and if so, determines the corresponding service, and sends related information about the service to the mobile phone 100.
  • the mobile phone 100 can receive the key 190 input, and generate key signal input related to the user settings and function control of the mobile phone 100.
  • the mobile phone 100 may also include an audio module, a SIM card interface, and a camera; it may also include a motor to generate vibration notifications (such as incoming call vibration notifications); and it may also include indicators such as indicator lights to indicate Charging status, power change, can also be used to indicate information, missed calls, notifications, etc.
  • the components related to the method for determining that the terminal device is located inside the geofence are extracted from all the components in the mobile phone 100 shown in FIG. 5 In the following, these components will be used to introduce the method of determining that a terminal device is located inside a geofence in an embodiment of the present application.
  • FIG. 6 the processor 110 integrates the application processor 110-1, the modem processor 110-2, and the coprocessor 110-3 as an example.
  • the modem processor 110-2 is used for network search and registration, and after searching for a suitable cell, it camps on the cell.
  • the search registration process has been introduced before, so I won’t repeat it here. Therefore, the adjustment and demodulation processor 110-2 can obtain the cell information of the cell currently camped on.
  • the cell information is the cell ID as an example.
  • the coprocessor 110-3 is used to determine whether the mobile phone 100 enters the geofence. When the coprocessor 110-3 determines that the mobile phone 100 has entered the geofence range, the application processor 110-1 can be awakened. The application processor 110-1 recommends related services based on the geofence entry event.
  • the application processor 110-1 does not need to be always on, that is, the task of determining whether the mobile phone 100 enters the geofence is performed by the coprocessor 110-3, and the coprocessor 110-3 consumes The power consumption is less than the power consumption of the application processor 110-1, which helps to save power consumption.
  • the cell location library can be stored in the memory storage 121.
  • the modem processor 110-2 After the modem processor 110-2 obtains the cell ID of the cell currently camped on, it can send the cell ID to the coprocessor 110-3.
  • the coprocessor 110-3 may match the geographic location information corresponding to the cell ID in the stored cell location database. Assuming that the modem processor 110-2 acquires the cell ID of the cell currently camped on as ID1, based on the cell positioning library shown in FIG. 2, it can be determined that the geographic location corresponding to ID1 is (vlon 1 , vlat 1 ).
  • the coprocessor 110-3 can determine the geographic location information corresponding to the cell ID in the cell positioning database (that is, the current camping cell) according to the cell ID detected by the modem processor 110-2. Latitude and longitude). After the coprocessor 110-1 knows the latitude and longitude, it compares the latitude and longitude with the geofence, such as the geofence shown in FIG. 2, to determine whether the mobile phone 100 enters the geofence range (the specific process has been described above and will not be repeated). When the coprocessor 110-3 determines that the mobile phone 100 enters the geo-fence, it triggers to wake up the application processor 110-1. The application processor 110-1 pushes the service based on the current geofence.
  • the geofence such as the geofence shown in FIG. 2
  • the mobile phone 100 can also obtain the current geographic location information without turning on the GPS module, and the application processor does not need to be turned on all the time, only when the coprocessor determines the mobile phone The application processor wakes up when 100 enters the geofence, which helps to save power.
  • the mobile phone 100 stores the corresponding relationship between the wifi identifier and geographic location (such as latitude and longitude).
  • the corresponding relationship can be downloaded from the server, or the mobile phone 100 can make statistics by itself of.
  • the coprocessor 110 may determine the first geographic location corresponding to the first identifier in the corresponding relationship. After the coprocessor 110 determines the first geographic location, it can determine whether the mobile phone 100 enters the geofence based on the first geographic location.
  • the mobile phone 100 does not need to activate the GPS module to determine whether to enter the geofence, and the application processor does not need to be turned on all the time. Only when the coprocessor determines that the mobile phone 100 has entered the geofence, the application is woken up The processor helps to save power consumption.
  • the coprocessor 110-3 may be communicatively connected with the GPS module 191.
  • the GPS module 191 When the GPS module 191 is in the on state, it can detect the current geographic location information, such as latitude and longitude information, and then send it to the coprocessor 110-3.
  • the coprocessor 110-3 can determine whether the mobile phone 100 enters the geofence based on the current latitude and longitude information.
  • the coprocessor 110-3 determines that the mobile phone 100 enters the geo-fence, it triggers to wake up the application processor 110-1.
  • the application processor 110-1 pushes the service based on the current geofence.
  • the mobile phone 100 realizes positioning through the GPS module. Since the positioning accuracy of the GPS positioning technology is high, the fifth implementation way has high accuracy.
  • the mobile phone 100 can be used in combination with at least two of the above-mentioned three methods, which will be described below with examples.
  • Example 1 Combination of mode one (cell positioning library) and mode three (GPS positioning).
  • FIG. 7 is a flowchart of a method for determining that a terminal device is located inside a geofence according to an embodiment of this application. As shown in Figure 7, the process of the method includes:
  • the modem processor 110-2 detects first cell information of the accessed first cell.
  • the modem processor 110-2 sends the first cell information to the coprocessor 110-3.
  • the coprocessor 110-3 determines the first geographic location information corresponding to the first cell information in the cell positioning database, where the cell positioning database includes the correspondence between the cell information and the geographic location information.
  • S704 The coprocessor 110-3 determines whether the mobile phone 100 is close to the geofence based on the first geographic location information; if so, execute S705, and if not, execute S701.
  • the coprocessor 110-3 may determine whether the geographic location is outside the geofence, and the distance from the boundary of the geofence is less than or equal to the first preset Threshold, if it is, it means that the current location is close to the boundary of the geofence, and the GPS module can be turned on; if not, it means that the current location is farther away from the geofence, and the GPS module is not needed.
  • S705 The coprocessor 110-3 triggers to start the GPS module.
  • the coprocessor has determined that the mobile phone 100 is close to the geographic fence.
  • the coprocessor 110-3 triggers the activation of the GPS positioning module, and the GPS positioning module detects geographic location information, such as latitude and longitude information.
  • the GPS module when the GPS module detects geographic location information, it may periodically detect it.
  • the detection period may be set at the factory, or may be determined by the mobile phone 100 itself.
  • the coprocessor 110-3 in the mobile phone 100 may determine the detection period according to the closest distance between the current geographic location information and the geofence.
  • the coprocessor 110-3 can calculate the detection period (represented by Dur) based on the following formula:
  • Vavg is the moving speed of the mobile phone 100
  • Dur is the detection period.
  • the coprocessor 110-3 can also identify whether the mobile phone 100 is in an absolutely stationary state. If it is in an absolutely stationary state, the coprocessor 110-1 can set a larger detection period.
  • the method for the coprocessor 110-1 to determine whether the mobile phone 100 is in an absolute static state may be that the coprocessor 110-1 determines whether the sensor data has changed since the last positioning, such as determining the sensor data detected by the angular velocity sensor or the gyroscope Whether there is a change, if there is no change, it means that the mobile phone 100 is in an absolutely static state. For example, if the mobile phone 100 is always placed on the desktop, the sensor data detected by the mobile phone 100 will not change, so the mobile phone 100 can set a larger detection period.
  • the coprocessor can identify whether the mobile phone 100 is in a relatively static state, and if it is in a relatively static state, the coprocessor 1101 can set a larger detection period.
  • the relatively static state can be understood as the mobile phone 100 is in a moving state, but the moving range is small, that is, the mobile phone 100 moves in a small range.
  • the way for the coprocessor 110-3 to determine that the mobile phone 100 is in a relatively static state may be: the coprocessor 110-1 determines that the sensor data has changed since the last positioning, but the current residential cell of the mobile phone 100 has not changed, or scanning The received wifi identifier has not changed, indicating that the mobile phone 100 is in a relatively static state.
  • Another way for the coprocessor 110-3 to determine whether the mobile phone 100 is in a relatively static state may be N pieces of historical position information that the coprocessor 110-3 can cache, and replace the historical position information one by one after acquiring new position information. After the new replacement position reaches N/2, calculate the minimum envelope circle of the N position information. If the radius of the minimum envelope circle is less than a certain threshold, it is considered that the device has a small moving range and is in a relatively static state.
  • FIG. 8 is a schematic diagram of the minimum envelope circle provided in the embodiment of this application. The smallest envelope formed by N pieces of historical location information is the dotted line in FIG. 8.
  • the smallest envelope formed by the N location information is the solid line in FIG. 8. If the radius of the solid line is less than the threshold, the mobile phone 100 Moving in a small area, in a relatively static state. When in a relatively static state, the coprocessor 110-1 can set a larger detection period.
  • the detection period when in a relatively static state may be smaller than the detection period when in an absolute static state.
  • S706 The GPS module acquires the second geographic location.
  • the GPS positioning module can also periodically detect the latitude and longitude information. The method for determining the detection period has been introduced in the previous section, and will not be repeated here.
  • the GPS module sends the second geographic location to the coprocessor 110-3.
  • S708 The coprocessor 110-3 determines whether the mobile phone 100 has entered the geofence based on the second geographic location, if so, execute S709, and if not, execute S706.
  • the application processor 110-1 determines the corresponding service based on the event entering the geofence.
  • S711 The mobile phone 100 displays related information of the service.
  • the GPS module in order to save power consumption, can be turned off when the closest distance between the geographic location detected by the GPS module and the geofence is greater than the second preset threshold.
  • the second preset threshold may be the same or different from the first preset threshold.
  • the determined service may be different. For example, when the mobile phone 100 enters the geofence, it can determine services related to the geofence, such as recommending points of interest (such as shops, attractions, etc.) inside the geofence. When the mobile phone 100 moves out of the geofence, other services can be determined, such as a service for recommending points of interest outside the geofence, or other services related to moving out of the geofence.
  • services related to the geofence such as recommending points of interest (such as shops, attractions, etc.) inside the geofence.
  • other services can be determined, such as a service for recommending points of interest outside the geofence, or other services related to moving out of the geofence.
  • the application processor 110-1 may light up the display screen 194 after determining the service based on the event of entering the geofence, and the display screen 194 displays the Information about the service.
  • the mobile phone 100 can display related service information in the status bar, as shown in Figure 9(a); or, the mobile phone 100 can also A prompt box pops up, and the service information is displayed in the prompt box, as shown in Figure 9(b).
  • the coprocessor 110-3 determines the cell information through the modem processor 110-2, and determines whether the mobile phone 100 is closer to the geofence based on the cell information and the cell location database. , Start the GPS module to prevent the mobile phone 100 from being far away from the geofence, start the GPS module for long-distance meaningless positioning, which helps to save power consumption.
  • Example 2 Combination of mode two (wifi positioning library) and mode three (GPS positioning).
  • the wireless communication module 152 detects that the mobile phone 100 is connected to the first wifi access point.
  • the coprocessor 110-3 determines the first geographic location corresponding to the first wifi access point in the wifi positioning library.
  • S1003 The coprocessor 110-3 determines whether the mobile phone 100 is close to the geofence according to the first geographic location; if so, execute S1004, and if not, execute S1001.
  • the coprocessor 110-3 determines that the first geographic location is outside the geographic fence, and the closest distance between the first geographic location and the geographic fence is less than or equal to the first preset threshold, it determines that the mobile phone 100 is close to the geographic fence.
  • S1004 The coprocessor 110-3 starts the GPS module.
  • the GPS module obtains the second geographic location.
  • S1006 The coprocessor 110-3 determines whether the mobile phone 100 is located inside the geofence according to the second geographic location, if so, execute S1007, and if not, execute S1005.
  • the application processor 110-1 determines related services based on the event of entering the geofence.
  • S1009 The mobile phone 100 displays service information.
  • the cell positioning library and the wifi positioning library used in Examples 1 and 2 may be located in the same positioning library, and the positioning library includes not only the correspondence between the cell identification and the geographic location, but also the WiFi identification and the geographic location.
  • the mobile phone 100 can traverse the positioning database to obtain the first communication access information (such as cell information, wifi information) of the mobile phone 100 and the corresponding first geographic location.
  • the cell location library and the wifi location library can also be located in different location libraries.
  • the mobile phone 100 can select an appropriate location library according to the first communication access point. For example, when the first communication access point is wifi, select the wifi location library. When the first communication access node is a cell, the cell positioning library is selected.
  • the cell positioning library or the wifi positioning library may also be other forms of positioning libraries, which are not limited in the embodiment of the present application.
  • Example 3 Combination of mode one (cell positioning library) and mode two (wifi offline positioning library).
  • the mobile phone 100 may first detect the geographic location through the wifi access point positioning library (please refer to the third method above), if the detection fails; for example, the wifi access point cannot be detected, or there is no detected wifi in the positioning library For access points, etc., the mobile phone 100 can use the cell positioning library (see the second method above) to detect the geographic location.
  • the coverage of wifi access points is smaller than the coverage of the cell, so the accuracy of the wifi access point positioning library is relatively high, and the universality of the cell is better, for example, some cells may not have wifi access in the coverage point. Therefore, the mobile phone 100 may preferentially use the wifi access point positioning library, and when the wifi access point positioning library cannot achieve positioning, then use the cell positioning library to ensure that the positioning can be achieved.
  • the mobile phone 100 can choose which method to use according to the accuracy of the geographic location required by the application. Different applications require different accuracy. Some applications have higher accuracy for geographic location. For this type of application, you can use the third method or a combination of other methods and the third method; The location accuracy is low. For this type of application, you can use mode 1 and/or mode 2.
  • the mobile phone 100 can use the third method; or, how many applications in the mobile phone 100 start the positioning function
  • the currently running application that starts the positioning function has low accuracy requirements, so the mobile phone 100 can use a combination of mode 1 and mode 2 or any one of them.
  • the wifi positioning library is the correspondence between the wifi access point accessed by the mobile phone 100 and the geographic location.
  • the following introduces another wifi positioning library, in which the wifi positioning library includes the correspondence between the wifi identification set and the geographic location.
  • the wifi positioning library includes the corresponding relationship between the wifi identifier set and the geographic location, where the wifi access point set is a set of all wifi access points in the geofence.
  • the geofence includes AP1 (bssid 1), AP2 (bssid 2), AP3 (bssid 3)), corresponding to (bssid 1, bssid 2, bssid 3) in Figure 11 ( vlon 1 ,vlat 1 ).
  • the second set of the wifi identifiers of the searched APs is (bssid1, bssid2), that is, the wifi identifier of AP3 is not searched.
  • the mobile phone 100 determines in the wifi access point location library shown in FIG. 11 that the intersection between the second set and the first set (bssid1, bssid2, bssid3) is not empty, and the mobile phone 100 determines to enter the first geographic location corresponding to the first set Fence.
  • intersection is not empty includes that two intersections are equal, or two intersections are not equal but the intersection is not empty.
  • the mobile phone 100 when the number of the same wifi identifiers in the first set and the second set is greater than the preset number, it is determined that the mobile phone 100 enters the first geofence corresponding to the first set.
  • the preset number may be half of the total number of APs in the geofence.
  • the second set of the wifi identities of the searched APs is (bssid1), that is, the wifi identities of AP2 and AP3 are not searched. Since there is only one wifi identifier in the second set (bssid1) and the first set (bssid1, bssid2, bssid3), namely bssid1, which is less than 1.5 (the total number of APs in the geofence is 3, so the preset number is 1.5) It is determined that the mobile phone 100 has not entered the first geo-fence corresponding to the first set.
  • FIG. 13 is a schematic diagram of the display interface of the wifi identifier searched by the mobile phone provided in this embodiment of the application.
  • the mobile phone displays a main interface 1301, and the main interface 1301 includes an icon 1302 of the setting application.
  • the interface 1303 As shown in FIG. 13(b) is displayed.
  • the interface 1303 includes an option 1304 of wireless local area network.
  • an interface 1305 as shown in FIG.
  • the interface 1305 includes three wifi names, that is, the wifi identification of each of the three APs searched for by the mobile phone in a geographic location. Therefore, the wifi identities of the three APs searched by the mobile phone can be used as the second set.
  • the mobile phone 100 may use the wifi access point positioning library shown in FIG. 11 or the wifi positioning library shown in FIG. 4 for positioning.
  • the geographic location can be determined according to the searched wifi and the wifi access point positioning library shown in FIG. 11.
  • the geographic location can be determined according to the wifi and the wifi positioning library shown in FIG. 4.
  • the mobile phone 100 when the mobile phone 100 is currently connected to a certain wifi, when the geographic location cannot be determined according to the wifi and the wifi positioning library shown in Figure 4 (such as each wifi in the wifi positioning library shown in Figure 4), you can search The arrived wifi and the wifi access point positioning library shown in Figure 11 determine the geographic location.
  • FIG. 14 is a schematic flowchart of a method for determining that a terminal device is located inside a geofence according to an embodiment of this application. As shown in Figure 14, the process of the method includes:
  • the modem processor 110-2 detects cell information of the current camping cell.
  • S1402 The modem processor 110-2 sends the cell information to the coprocessor 110-3.
  • S1403 The coprocessor 110-3 determines whether the mobile phone 100 is close to the geofence based on the cell information; if so, execute S1404, if not, execute S1401.
  • the process for the coprocessor 110-3 to determine whether the mobile phone 100 is close to the geofence may include:
  • the coprocessor 110-3 judges whether the cell is in the stored preset cell based on the cell information. If so, the coprocessor 110-3 determines that the mobile phone 100 is close to the geofence, where the preset cell is from outside the geofence to the preset cell The cell within the boundary.
  • the preset cell includes 7 cells as an example.
  • the modem processor 110-2 in the mobile phone 100 detects that the current camping cell is a certain cell in the preset cell, that is, the mobile phone 100 enters the preset boundary, that is, the mobile phone 100 is close to the geographic fence.
  • the mobile phone 100 detects cell 2 of the cell where it currently resides, and the mobile phone 100 is close to the geofence.
  • the distance between the preset boundary and the geofence may be preset, and the preset cell may also be detected and stored in the mobile phone 100 before the mobile phone 100 leaves the factory.
  • the preset cell may also be downloaded from the server when the user uses the mobile phone 100, which is not limited in the embodiment of the present application.
  • the following describes the process of the mobile phone 100 obtaining a preset cell.
  • the mobile phone 100 determines a geofence (indicated by GF), and determines the preset boundary (indicated by CF) at a preset distance outside the geofence, then the coverage of CF is greater than that of GF, and the range of CF-GF is The aforementioned preset boundary and the range between the geofence.
  • the mobile phone 100 screens the cells according to the CF-GF range. For example, the cell phone 100 collects the cells as CF1, CF2, CF3...CFn, calculates the overlap ratio Sk between the range covered by CFk and the range covered by CF-GF.
  • the cell is reserved Set the cell, otherwise discard the cell, and obtain a group of cells CF1, CF2, CF3...CFm, (m is less than or equal to n) after screening, and this group of cells is the preset cell corresponding to the geofence.
  • the GPS module detects the current geographic location information of the mobile phone 100.
  • S1406 The GPS module sends the current geographic location information to the coprocessor 110-3.
  • the geographic location information detected by the GPS module is latitude and longitude.
  • the GPS module sends the detected longitude and latitude information to the coprocessor 110-3.
  • S1407 The coprocessor 110-3 judges whether the mobile phone 100 is within the geofence range based on the current geographic location, if yes, execute S1408; if not, execute S1405.
  • the coprocessor determines whether the mobile phone 100 has entered the geofence. For example, when the detected longitude and latitude information is in the geofence shown in Figure 2, it is determined The mobile phone 100 enters the geofence, otherwise, it is determined that the mobile phone 100 does not enter the geofence.
  • the application processor 110-1 determines related services based on the event of entering the geofence.
  • the related services determined by the Ctrip application based on the event entering the geofence include recommending points of interest in the geofence to users, such as Food information, scenic spot information, etc.
  • S1410 The mobile phone 100 displays related information of the service.
  • the coprocessor 110-3 determines the cell information through the modem processor 110-2. Based on the cell information, the GPS module is activated when the cell phone 100 is close to the geofence, so as to prevent the cell phone 100 from being geographically distant. When the fence is far away, start the GPS module for long-distance meaningless positioning, which helps to save power consumption.
  • the coprocessor 110-3 when the coprocessor 110-3 determines that the mobile phone 100 enters the geofence, it can wake up the application processor 110-1 immediately, or can delay the preset time and then wake up the application processor 110-1.
  • the co-processor 110-1 may determine whether to wake up the application processor immediately or delay wake-up according to the accuracy requirements of the application program.
  • the accuracy requirement of the application program may be the number of services that the application program can recommend within a preset distance. For example, if the first application determines the information of all businesses within 500 meters each time, and the second application determines the information of scenic spots within 20 kilometers each time, the accuracy requirement of the first application is greater than the accuracy requirement of the second application.
  • the time required for the mobile phone 100 to move out of a certain 500-meter range is relatively short. If the application processor 110-1 is not triggered to wake up immediately, the user cannot promptly recommend the service within the certain 500-meter transmission range, but It takes a long time for the mobile phone 100 to move out of the range of 20 kilometers.
  • the coprocessor 100 can wake up the application processor with a slight delay, and can also recommend services within the range of 20 kilometers to the user.
  • the coprocessor 110-1 can delay for a period of time before waking up the application processor 110-1.
  • the coprocessor 110-3 can immediately wake up the applications.
  • the coprocessor 110-3 can immediately wake up the application processor 110-1.
  • the application processor 110-1 can understand to run an application program that requires a higher accuracy, and run the application program that requires a lower accuracy with a slight delay.
  • the software architecture of the mobile phone 100 is the software architecture of the mobile phone 100
  • FIG. 16 is a software architecture diagram provided by an embodiment of this application.
  • the software architecture shown in FIG. 16 is based on the mobile phone 100 as an example, and the Android architecture is used as an example. It should be immediately shown in FIG. 5 or FIG. 6 that the hardware architecture of the mobile phone 100 is shown, and FIG. 16 shows the software architecture of the mobile phone 100.
  • the software module and/or code of the software architecture shown can be stored in the internal memory 121.
  • the processor 110 runs the software module or code, the method for determining that the terminal device is located inside the geofence provided in the embodiment of the present application is executed.
  • the software architecture from bottom to top includes the kernel layer, system layer, framework layer, and application layer in turn.
  • the functions of each layer are introduced below.
  • the kernel layer can be used to obtain WiFi identification, cell information, GPS information, etc. This is because, from the perspective of hardware, the sensorhub can be connected to the wireless communication module 152, the modem processor 110-2, and the GPS positioning module 191.
  • the wireless communication module 152 detects the wifi identifier
  • the sensorbuh driver reports the wifi identifier to the system layer.
  • the modem processor 110-2 detects the cell information
  • it sends the cell information to the sensorbuh
  • the sensorbuh drives the cell information to report the cell information to the system layer.
  • the GPS positioning module 191 detects the GPS information, it sends the GPS information to sensorbuh, and the sensorbuh drives the GPS information to report the GPS information to the system layer.
  • the kernel layer also includes a display driver for driving the display screen 194 to display information.
  • the system layer including the Fusion Daemon, is used to report the information reported by the kernel layer to the upper layer via the location-based service (LBS) channel, that is, the framework layer.
  • LBS location-based service
  • the framework layer includes a cell matching module and a cell positioning module; the cell matching module is used to match the cell information reported by the bottom layer with the stored cell information. Taking the cell ID as an example, the cell matching module can determine whether there is a reported cell ID among the stored cell IDs of multiple preset cells (Example 5). The cell positioning module is used to implement positioning based on the cell information reported by the bottom layer and the cell positioning library (example 1).
  • the management module is used to trigger the start of the GPS matching module when it is determined that the condition is met (for example, the mobile phone 100 is close to the geofence).
  • the GPS matching module is used to determine whether the mobile phone 100 enters the geofence based on the reported GPS information.
  • the wifi matching module is used to realize positioning based on the reported wifi identification and wifi access point positioning library.
  • the application layer includes various applications, such as application 1, application 2, application 3, and so on. Among them, some applications enable positioning functions, such as application 2.
  • application 1 application 2, application 3, and so on.
  • some applications enable positioning functions, such as application 2.
  • the framework layer detects that the mobile phone 100 enters the geofence, it can send an event of entering the geofence to the application 2, and the application 2 can provide corresponding services.
  • the following describes several examples of the coprocessor 110-3 determining whether the mobile phone 100 enters the geofence through the software architecture shown in FIG. 16 and the hardware architecture shown in FIG. 6.
  • the coprocessor 110-3 runs the software module or code stored in the internal memory 121 to execute the following process:
  • the Sensorhub driver of the kernel layer After the Sensorhub driver of the kernel layer obtains the cell information of the cell currently camped on, it can report the cell information to the Fusion Daemon of the system layer. Fusion Daemon is used to report the cell information reported by the kernel layer to the cell positioning module in the framework layer through the LBS channel.
  • the cell positioning module can match the geographic location corresponding to the cell information in the cell positioning library. The content of the cell positioning library has been introduced in the previous section, and will not be repeated here.
  • the coprocessor determines that the mobile phone 100 enters the geofence, it triggers the start of the application processor, and the software module or code of the application processor running in the internal memory 121 executes the following process:
  • the cell positioning module reports the geo-fence event to Application 2 in the application layer through the management module.
  • Application 2 generates corresponding services based on the geo-fence event, and sends relevant information about the service to the window manager service (WMS),
  • WMS window manager service
  • the WMS sends the service-related information to the display driver through Surflinger, so as to drive the display screen 194 to display the service-related information.
  • the coprocessor 110-3 runs the software module or code stored in the internal memory 121 to execute the following process:
  • the Sensorhub driver of the kernel layer After the Sensorhub driver of the kernel layer obtains the WiFi ID of the AP, it can report the WiFi ID to the Fusion Daemon of the system layer, which is used to report the information reported by the kernel layer to the WiFi matching module in the framework layer through the LBS channel.
  • the wifi matching module can be located according to the reported wifi identification and the wifi access point location library (the location library shown in Figure 4 or Figure 11). This part of the content has been introduced in the previous article, so I won't repeat it here.
  • the coprocessor determines that the mobile phone 100 enters the geofence, it triggers the start of the application processor, and the software module or code of the application processor running in the internal memory 121 executes the following process:
  • the wifi matching module reports the geofence entry event to Application 2 in the application layer through the management module.
  • Application 2 generates corresponding services based on the geofence events and sends them to WMS.
  • WMS sends relevant service information to the display driver through Surflinger.
  • the display screen 194 is driven to display information about the service.
  • the coprocessor 110-3 runs the software module or code stored in the internal memory 121 to execute the following process:
  • the Sensorhub driver at the kernel layer obtains GPS information, that is, the latitude and longitude, it can report the latitude, longitude and accuracy to the Fusion Daemon of the system layer, which is used to report the information reported by the kernel layer to the GPS matching module in the framework layer through the LBS channel.
  • the GPS matching module can judge whether to enter the geofence according to the latitude and longitude. This part of the content has been introduced in the previous article, so I will not repeat it here.
  • the coprocessor determines that the mobile phone 100 enters the geofence, it triggers the startup of the application processor 110-1, and the software module or code of the application processor 110-1 running in the internal memory 121 performs the following process:
  • the GPS matching module reports the geofence event to Application 2 in the application layer through the management module.
  • Application 2 generates a corresponding service based on the geofence event and sends it to the WMS.
  • the WMS sends the service-related information to the display driver through Surflinger.
  • the display screen 194 is driven to display information about the service.
  • the coprocessor 110-3 runs the software module or code stored in the internal memory 121 to execute the following process:
  • the Sensorhub driver of the kernel layer After the Sensorhub driver of the kernel layer obtains the cell information of the cell currently camped on, it can report the cell information to the Fusion Daemon of the system layer. Fusion Daemon is used to report the cell information reported by the kernel layer to the cell matching module in the framework layer through the LBS channel. The cell matching module can search for the current camping cell in the preset cells outside the stored cell geofence. It was introduced in the previous article, so I won't repeat it here.
  • the coprocessor determines that the mobile phone 100 enters the geofence, it triggers the start of the application processor, and the software module or code of the application processor running in the internal memory 121 executes the following process:
  • the cell matching module reports incoming geofence events to application 2 in the application layer through the management module.
  • Application 2 generates corresponding services based on the geofence events, and sends relevant information about the services to the window manager service (WMS),
  • WMS window manager service
  • the WMS sends the service-related information to the display driver through Surflinger, so as to drive the display screen 194 to display the service-related information.
  • the kernel layer can report the accuracy to the upper layer.
  • the GPS matching module determines that the accuracy reported by the bottom layer does not meet the accuracy requirements of application 1, it may not send the geofence entry event to application 1. For example, if the accuracy of application 1 is less than 200m, but the accuracy reported by the bottom layer is 1 km, it does not meet the accuracy requirements of application 1.
  • the method provided in the embodiments of the present application is introduced from the perspective of the terminal device (mobile phone 100) as the execution subject.
  • the terminal device may include a hardware structure and/or software module, and realize the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above-mentioned functions is executed in a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraint conditions of the technical solution.
  • This embodiment also provides a computer storage medium.
  • the computer storage medium stores computer instructions.
  • the electronic device executes the embodiment shown in FIG. 7, FIG. 10, or FIG. One or more steps to implement the graphics rendering method in the foregoing embodiment.
  • This embodiment also provides a program product.
  • the program product runs on a computer
  • the computer executes one or more steps in the embodiment shown in FIG. 7, FIG. 10, or FIG. 14, so as to realize the foregoing embodiment.
  • the graphics rendering method in.
  • the embodiments of the present application also provide a device.
  • the device may specifically be a chip, component or module.
  • the device may include a processor and a memory connected to each other.
  • the memory is used to store computer execution instructions.
  • the processor can execute computer-executable instructions stored in the memory, so that the chip executes one or more steps in the embodiment shown in FIG. 5 or FIG. 9 to implement the graphics rendering method in the foregoing embodiment.
  • the electronic device, computer storage medium, program product, or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding method provided above The beneficial effects in the process will not be repeated here.
  • the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种确定终端设备位于地理围栏内部的方法和终端设备。所述方法包括:根据定位库,获取所述终端设备的通信接入信息对应的第一地理位置;若所述第一地理位置和所述地理围栏的位置关系符合第一预设条件,启动定位模块获取所述终端设备的第二地理位置;根据所述第二地理位置确定所述终端设备位于所述地理围栏内部。这种方式中,终端设备无需一直启动定位模块,而是根据定位库和通信接入信息可以确定第一地理位置,当第一地理位置满足条件时,再启动定位模块以获取第二地理位置,然后根据第二地理位置确定手机位于地理围栏内部,有助于节省功耗。

Description

一种确定终端设备位于地理围栏内部的方法和终端设备 技术领域
本申请涉及终端技术领域,尤其涉及一种确定终端设备位于地理围栏内部的方法和终端设备。
背景技术
随着通信技术的发展,终端设备中的各种功能不断完善。目前,终端设备已经成为用户获取信息的重要工具。比如,终端设备具有基于地理位置的推送服务的功能。其中,终端设备实现基于地理位置推送服务的功能所依赖的主要技术是地理围栏(geofence,GF)感知技术。所谓地理围栏感知技术,即终端设备可以检测是否进入或者移出地理围栏。当终端设备检测到进入地理围栏时,可以提供相应的服务,比如推送地理围栏内的商户信息等。
目前常用的地理围栏感知技术是全球定位技术(global positioning system,GPS),但GPS定位消耗的功耗较大。
发明内容
本申请实施例提供一种确定终端设备位于地理围栏内部的方法和终端设备,该方法能够实现基于地理位置推送相关的服务,更加节省功耗。
第一方面,本申请实施例提供一种确定终端设备位于地理围栏内部的方法,该方法可以由终端设备执行,所述终端设备存储有定位库,所述定位库中包括通信接入信息及其对应的地理位置信息;所述方法包括:根据所述定位库,获取所述终端设备的通信接入信息对应的第一地理位置;若所述第一地理位置和所述地理围栏的位置关系符合第一预设条件,启动定位模块获取所述终端设备的第二地理位置;根据所述第二地理位置确定所述终端设备位于所述地理围栏内部。
应理解,终端设备无需一直启动定位模块,而是根据定位库和终端设备的通信接入信息可以确定第一地理位置,当第一地理位置满足条件时,再启动定位模块以获取第二地理位置,然后根据第二地理位置确定手机位于地理围栏内部,有助于节省功耗。
在一种可能的设计中,第一预设条件包括:所述第一地理位置与地理围栏的最近距离小于或小于等于第一预设阈值。
应理解,终端设备无需一直启动定位模块,当检测到靠近地理围栏时,再启动定位模块,有助于节省功耗。
在一种可能的设计中,第一预设条件还包括:所述第一地理位置在所述地理围栏之外。
应理解,终端设备无需一直启动定位模块,当检测在地理围栏之外,且靠近地理围栏时,再启动定位模块,有助于节省功耗。
在一种可能的设计中,所述通信接入信息包括小区接入信息。
在一种可能的设计中,所述通信接入信息包括wifi接入信息。
应理解,小区接入信息和wifi接入信息仅是举例,不是限定。
在一种可能的设计中,所述定位模块包括GPS模块。
应理解,GPS模块仅是举例不是限定。
在一种可能的设计中,所述启动定位模块获取所述终端设备的第二地理位置,包括,启动定位模块按照触发周期获取所述终端设备的第二地理位置;所述方法还包括:若所述终端设备为运动状态,根据所述第二地理位置与地理围栏的最近距离和所述终端设备的移动速度,设置所述触发周期。
应理解,定位模块无需一直处于开启状态,周期性开启即可,其中,周期可以设置,比如,终端设备处于运动状态时,根据当前地理位置与地理围栏的最近距离和终端设备的移动速度,设置周期。
在一种可能的设计中,所述启动定位模块获取所述终端设备的第二地理位置,包括,启动定位模块按照触发周期获取所述终端设备的第二地理位置;所述方法还包括:若所述终端设备为静止状态,增大所述触发周期。
应理解,定位模块无需一直处于开启状态,周期性开启即可,其中,周期可以设置,比如,终端设备处于静止状态时,根据增大周期。
在一种可能的设计中,根据所述定位库,获取所述终端设备的通信接入信息对应的第一地理位置,包括:若根据所述定位库,获取所述终端设备的第一通信接入信息对应的第一地理位置失败时,根据所述定位库,获取所述终端设备的第二通信接入信息对应的第一地理位置
应理解,定位库中可以包括第一通信接入信息和第二通信接入信息,当终端设备根据第一通信接入信息无法实现定位时,可以根据第二通信接入信息实现定位。
在一种可能的设计中,所述第一通信接入信息为小区接入信息,所述第二通信接入信息为wifi接入信息。
应理解,当终端设备根据小区接入信息定位失败时,可以根据wifi接入信息进行定位。
在一种可能的设计中,若所述第二地理位置与所述地理围栏的最近距离大于第二预设阈值后,关闭所述定位模块。
应理解,为了节省功耗,终端设备当前地理位置与地理围栏的最近距离较远时,可以关闭定位模块。其中,第二预设阈值可以等于第一预设阈值。
在一种可能的设计中,在根据所述定位库,获取所述终端设备的通信接入信息对应的第一地理位置之前,所述终端设备还向服务器上报位置参考信息,其中,所述位置参考信息用于指示所述终端设备当前处于的区域范围;接收服务器发送的所述定位库,其中,所述定位库与所述区域范围对应。
应理解,终端设备可以从服务器下载定位库,而且现在与终端设备当前所处的区域范围对应的定位库。这样的话,终端设备定位时无需一直开启定位模块,可以使用定位库进行定位,有助于节省功耗。
在一种可能的设计中,终端设备还可以输出第一服务的第一信息,所述第一服务与进入所述地理围栏内部的事件相关。
应理解,终端设备确定位于地理围栏内部时,可以输出与地理围栏内部相关联的服务,比如地理围栏内部的兴趣点(商店、景点等)的信息。
在一种可能的设计中,若所述第二地理位置确定所述终端设备移出所述地理围栏内部,终端设备还可以输出第二服务的第二信息;所述第二服务与移出地理围栏内部的事件相关。
应理解,终端设备确定移出地理围栏内部时,可以输出与移出地理围栏内部相关的服务,比如当终端设备确定移出一个景点范围时,可以输出回家路线、或者该景点范围之外的兴趣点(商店、其它景点等)、或者提醒用户修改订阅业务(比如修改SIM卡订购套餐等)等的服务。
在一种可能的设计中,所述终端设备与另一终端设备建立通信;在判断所述另一终端设备满足条件时,向所述另一终端设备发送所述定位库。
应理解,不同终端设备之间可以实现定位库的共享,而且,在共享之前,可以判断对方是否满足条件,以避免隐私泄露。
在一种可能的设计中,判断所述另一终端设备满足条件,包括:判断所述另一个终端设备与所述终端设备之间的距离小于预设距离;或接收到所述另一个终端设备发送的用于请求所述定位库的指令。
应理解,当两个终端设备的距离较近时,可以实现定位库共享,或者一个终端设备可以向另一个终端设备请求共享定位库。
第二方面,本申请实施例还提供一种定位库的制作方法,该方法可以由服务器执行,所述方法包括:服务器接收至少一个终端设备上报的通信接入信息以及第一地理位置信息;所述服务器构建定位库,所述定位库包括通信接入信息和第二地理位置之间的对应关系;所述第二地理位置根据所述第一地理位置确定;所述服务器将所述定位库下发给所述至少一个终端设备。
应理解,服务器可以通过搜集终端设备上报的通信接入点和地理位置,构建定位库,然后将定位库下发终端设备。这样的话,终端设备可以通过定位库实现定位,无需一直启动定位模块。
在一种可能的设计中,所述服务器将所述定位库下发给所述至少一个终端设备之前,所述服务器接收所述至少一个终端设备发送的位置参考信息,所述位置参考信息用于指示所述至少一个终端设备当前所处的区域范围;所述服务器确定与所述区域范围对应的定位库。
应理解,服务器可以根据终端设备当前所处的区域范围,向终端设备下发合适的定位库。
第三方面,本申请实施例提供一种确定终端设备位于地理围栏内部的方法,应用于终端设备,其特征在于,所述终端设备包括协处理器、应用处理器、调制解调处理器、定位模块和输出设备,其中,所述协处理器与所述定位模块、所述应用处理器、所述调制解调处理器分别连接,所述应用处理器和所述输出设备连接;所述终端设备中存储有至少一个地理围栏,以及每个地理围栏外预设距离范围内的至少一个小区;所述方法包括:所述协处理器通过所述调制解调器确定所述终端设备驻留第一小区;所述协处理器确定所述第一小区是第一地理围栏外预设距离范围内的一个小区;所述协处理器触发启动所述定位模块,并通过所述定位模块获取所述终端设备当前的地理位置信息;若所述协处理器基于所述当前的地理位置信息确定所述终端设备进入第一地理围栏,触发启动应用处理器,所述应用处理器基于所述第一地理围栏确定服务,所述应用处理器通过所述输出设备输出所述服务的信息。
应理解,终端设备可以无需一直启动定位模块,当根据当前驻留小区判断靠近地理围栏时,再启动定位模块,有助于节省功耗。
在一种可能的设计中,所述协处理器确定所述第一小区是第一地理围栏外预设距离范围内的一个小区,包括:所述协处理器确定所述第一地理围栏外预设距离范围内的所有小区的小区ID中存在所述第一小区的小区ID。
应理解,终端设备判断是否靠近地理围栏时,可以在地理围栏外的预设距离范围内所有小区ID中寻找是否存在驻留小区的小区ID,若存在,则靠近地理围栏,再启动定位模块,有助于节省功耗。
在一种可能的设计中,所述终端设备中存储有小区定位库,所述小区定位库中包括至少一个小区,以及每个小区对应的地理位置信息,在所述协处理器触发启动所述定位模块之前,所述协处理器还确定在所述小区定位库中,确定与所述第一小区对应的第一地理位置;所述协处理器确定所述第一地理位置与所述第一地理围栏之间的最近距离;所述协处理器触发启动所述定位模块,包括:在所述最近距离小于预设距离时,触发启动所述定位模块。
在一种可能的设计中,所述定位模块为wifi模块,通过所述定位模块获取所述终端设备当前的地理位置信息,包括:通过所述wifi模块搜索至少一个AP,得到所述至少一个AP的wifi标识构成的第一集合;所述协处理器基于所述当前的地理位置信息确定所述终端设备进入第一地理围栏,包括:所述协处理器判断所述第一集合等于所述第二集合;或者所述协处理器判断所述第一集合和第二集合交集不为空;或者所述协处理器判断所述第一集合和第二集合中相同的wifi标识的数量大于预设数量;其中,所述第二集合为所述第一地理围栏内所有AP的wifi标识构成的集合。
第四方面,本申请实施例还提供一种终端设备,包括显示屏;一个或多个处理器;存储器;一个或多个应用程序;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述终端设备执行时,使得所述终端设备执行上述第一方面或者第一方面的任意一种可能的设计的方法;或者当所述指令被所述电子设备执行时,使得所述终端设备执行上述第三方面或者第三方面的任意一种可能的设计的方法
第五方面,本申请实施例还提供一种服务器,存储器、处理器和收发器,处理器与所述存储器、所述收发器耦合;其中,存储器用于存储计算机可执行程序代码;其中,所述程序代码包括指令,当所述处理器执行所述指令时,所述指令使所述服务器执行上述第二方面及其第二方面任一可能设计的技术方案。
第六方面,本申请实施例还提供了一种终端设备,所述终端设备包括执行第一方面或者第一方面的任意一种可能的设计的方法的模块/单元;或者所述电子设备包括执行第三方面或者第三方面的任意一种可能的设计的方法的模块/单元;这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。
第七方面,本申请实施例还提供了一种服务器,所述服务器包括执行第二方面或者第二方面的任意一种可能的设计的方法的模块/单元;这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。
第八方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质包括程序,当程序在终端设备上运行时,使得所述终端设备执行第一方面或上述第一方面的任意一种可能的设计的方法;或者当程序在终端设备上运行时,使得所述终端设备执行第三方面或上述第三方面的任意一种可能的设计的方法;或者当程序在 服务器上运行时,使得所述服务器执行第二方面或上述第二方面的任意一种可能的设计的方法。
第九方面,还提供一种包含程序产品,当所述程序产品在终端设备上运行时,使得所述终端设备执行第一方面或上述第一方面的任意一种可能的设计的方法;或者当所述程序产品在终端设备上运行时,使得所述终端设备执行第三方面或上述第三方面的任意一种可能的设计的方法;或者当所述程序产品在服务器上运行时,使得所述服务器执行第二方面或上述第二方面的任意一种可能的设计的方法。
第十方面,还提供了一种芯片系统,该芯片系统包括处理器,还可以包括存储器,用于实现第一方面、第二方面或第三方面的方法,或者这些方面的任意一种可能的设计方法。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。
附图说明
图1为本申请一实施例提供的一种地理围栏的示意图;
图2为本申请一实施例提供的小区定位库的示意图;
图3为本申请一实施例提供的多个小区的示意图;
图4为本申请一实施例提供的wifi接入点定位库的示意图;
图5为本申请一实施例提供的手机100的结构示意图;
图6为本申请一实施例提供的手机100的结构示意图;
图7为本申请一实施例提供的确定终端设备位于地理围栏内部的方法的流程示意图;
图8为本申请一实施例提供的最小包络圆的示意图;
图9为本申请一实施例提供的手机100的用户图形界面的示意图;
图10为本申请一实施例提供的确定终端设备位于地理围栏内部的方法的流程示意图;
图11为本申请一实施例提供的另一种wifi接入点定位库的示意图;
图12位本申请一实施例提供的地理围栏内无线接入点的示意图;
图13为本申请一实施例提供的手机100的用户图形界面的示意图;
图14为本申请一实施例提供的确定终端设备位于地理围栏内部的方法的流程示意图;
图15为本申请一实施例提供的地理围栏外预设小区的的示意图;
图16为本申请一实施例提供的手机100的软件架构的示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。
本申请实施例涉及的地理围栏,是多个地理位置所围成的区域。请参见图1所示,为本申请实施例提供的一种地理围栏的示意图。如图1所示,地理围栏是多个顶点连接而成的直线所围成的区域,每个顶点包括经度和纬度;其中,第i个顶点的经度以vlon i表示,纬度以vlat i表示。因此,图1所示的地理围栏可以以 GF=[vlon 1,vlat 1,vlon 2,vlat 2…vlon n,vlat n]来表示。当终端设备在某个地点检测到经纬度是(vlon m,vlat m),则终端设备判断该经纬度是否处于GF的范围内,若在,则进入地理围栏。
需要说明的是,在图1中,以地理围栏上的两个顶点之间使用直线连接为例,在实际应用中,两个顶点之间还可以是曲线连接。比如,终端设备可以按照预设规律进行曲线连接,其中预设规则可以包括相邻的两个顶点之间的曲线的弧度等,本申请实施例不作限定。示例性的,终端设备可以根据曲线连接时的预设规律来判断终端设备是否处于GF的范围内。
本申请实施例涉及的小区,是指一种通信接入信息,并非物理含义上的小区,比如房地产商盖建的小区,而是一种,采用基站识别码或全球小区识别进行标识的无线覆盖区域,在全球移动通信系统(global system for mobile communications,GSM)中,小区(cell)是指由一个基站收发信台(base transceiver station,BTS)的一个扇型天线覆盖的区域,在宽带码分多址技术(wideband code division multiple access,WCDMA)中,小区指一个扇区中的单个载波的覆盖范围,一个扇区中可能会出现多个载波多个小区。
本申请实施例涉及的小区定位库,即小区信息和小区的地理位置信息之间的对应关系。其中,小区信息可以包括小区ID等。请参见图2所示,为本申请实施例提供的小区定位库的示意图。如图2所示,小区定位库中包括小区ID和地理位置的对应关系;其中的地理位置可以是小区对应的基站的位置信息。比如小区ID1对应的地理位置即经纬度是(vlon 1,vlat 1)是小区1对应的基站的位置信息。
应理解,图2所示的小区定位库可以是数据库结构等,本申请实施例对此不作限定。
需要说明的是,本申请实施例提供的小区定位库可以是终端设备出厂之前,预先设置好存储在终端设备中的;或者,也可以是终端设备在使用的过程中,从云端服务器下载的。
下面介绍终端设备下载小区定位库的几种实现方式。
第一种实现方式为,终端设备可以从云端服务器下载该终端设备当前所处的城市的小区定位库。
举例来说,终端设备可以向云端服务器请求获取一个城市的小区定位库。示例性的,终端设备可以向云端服务器上报当前所处的城市信息,云端服务器将该城市的小区定位库发送给终端设备。终端设备可以在空闲时(比如终端设备当前运行的应用程序较少,用户较长时间未操作手机),从云端服务器下载当前所在城市的小区定位库,或者终端设备在出厂之后,首次使用时,从云端服务器下载当前所在城市的小区定位库。
再比如,云端服务器也可以主动将某个城市的小区定位库发送给终端设备,比如服务器在小区定位库发生更新时,主动向终端设备发送更新后的小区定位库。
具体而言,服务器获取小区定位库的方式有多种。比如,终端设备可以定期上报地理位置和驻留小区的小区信息,对于服务器而言,搜集到大量的终端设备上报的驻留小区和地理位置后,可以根据地理位置确定小区对应的基站的地理位置,然后根据终端设备上报的小区和对应的基站的地理位置,构建小区定位库,然后将构建的小区定位库下发终端设备。
第二种实现方式,终端设备下载小区定位库时,可以下载当前驻留小区周围的多个小区(比如8小区)的地理位置信息。请参见图4所示,假设终端设备当前驻留小区5内,终端设备可以从服务器下载小区5周围的8个小区的地理位置信息。得到小区定位库。
因此,小区定位库可以更新。比如,请继续参见图4所示,当终端设备从小区5移动到小区6时,终端设备下载小区6周围的8个小区的地理位置,但是小区6周围的8个地理位置中已经有5个小区(小区2、3、5、6、9)的地理位置无需再下载。关于小区定位库的使用过程,将在后文介绍。
应理解,图4中是以每个小区周围8个小区为例的,在实际应用中,终端设备下载小区定位库时,还可以下载每个小区周围更多的小区,本申请实施例不限定。
第三种实现方式,终端设备还可以从其它终端设备获取小区定位库。
举例来说,若手机1与手机2建立短距离连接(蓝牙、wifi直连等),手机1向手机2发送小区定位库。示例性的,手机100可以在检测到与手机2建立短距离连接之后,主动向手机2发送小区定位库,也可以在用户触发的情况下再向手机2发送小区定位库,以避免造成用户隐私的泄露。
第四种实现方式,终端设备自己构建得到小区定位库,示例性的,终端设备可以在每驻留到一个小区后,可以记录地理位置信息,然后构建小区和地理位置信息之间的对应关系,得到小区定位库。
需要说明的是,终端设备可以采用预设策略选择上述几种方式中哪一种方式来下载小区定位库。比如,若终端设备的数量流量较多,或者接入无线网络时,终端设备可以实时的下载周围的小区的地理位置信息,即采用上述第二种方式。再比如,若终端设备的内存较大时,可以采用上述第一种方式。当然,用户也可以指定采用哪一种方式来下载小区定位库,本申请实施例不限定。
本申请实施例涉及的wifi接入点定位库,即wifi接入点和地理位置之间的对应关系,具体而言,可以是wifi接入点的标识信息与地理位置之间的对应关系。请参见图4所示,示出了一种wifi接入点定位库的示意图。如图4所示,当终端设备检测到接入wifi的wifi标识为TDIP时,可以根据图4所示的定位库确定当前的地理位置为(vlon 1,vlat 1)。
图4所示的wifi接入点定位库中,每个wifi标识对应的地理位置可以是wifi接入点所在的地理位置。
终端设备获取wifi接入点定位库的方式可以有多种。
第一种实现方式,终端设备可以从服务器下载该终端设备当前所处的区域范围对应的wifi接入点定位库。其中,终端设备当前所处的区域范围可以是当前所的处小区或者城市等。
举例来说,终端设备可以向服务器发送请求,请求中携带小区信息或城市信息,服务器基于该请求确定wifi节点定位库,向终端设备发送该wifi节点定位库。
示例性的,终端设备可以周期性发送请求,或者,在用户触发的情况下发送请求(比如,触发启动服务推送功能的情况下),或者,终端设备检测到当前所处的城市信息发生变化时,向服务器上报城市信息,然后接收服务器发送的与所述城市信息对应的wifi接入点定位库,或者,终端设备检测到驻留小区发生变化时,向服务器上报 切换后的驻留小区的信息,然后接收服务器发送的与该驻留小区对应的wifi定位库。
第二种实现方式,服务器可以主动发送给终端设备。比如,服务器确定终端设备上一次下载过的wifi定位库更新后,可以主动将更新后的wifi定位库发送给终端设备。
示例性的,服务器可以搜集每个终端设备上报的wifi信息和地理位置,然后根据上报的地理位置信息,确定wifi接入点的位置信息,然后形成wifi接入点定位库,下发到终端设备。
第三种实现方式,wifi接入点定位库还可以是终端设备自己统计的。比如,终端设备可以在每接入到一个wifi接入点后,可以记录地理位置信息,然后构建wifi接入点和地理位置信息之间的对应关系,得到wifi接入点定位库。
本申请实施例涉及的wifi接入点(access point,AP),可以是无线路由、手机热点等,本申请实施例不作限定。每个AP具有一个wifi标识,wifi标识可以是基础服务集群标识(basic service set identifier,bssid),或者wifi名称。其中,bssid可以包括AP的MAC地址,wifi名称可以是用户设置的AP的名称。
本申请实施例涉及的应用程序(application,简称app),为能够实现某项或多项特定功能的软件程序。通常,终端设备中可以安装多个应用程序。比如,相机应用、短信应用、彩信应用、各种邮箱应用、微信(WeChat;)、腾讯聊天软件(QQ)、WhatsApp Messenger、连我(Line)、照片分享(instagram)、Kakao Talk、钉钉等。下文中提到的应用程序,可以是终端设备出厂时已安装的应用程序,也可以是用户在使用终端设备的过程中从网络下载或其他终端设备获取的应用程序。
本申请实施例中,部分应用具有基于地理位置提供相关的服务。其中,这部分应用可以是用户指定的应用,比如用户设置的开启定位功能的应用,比如地图应用,美团应用等;或者,这部分应用可以是终端设备出厂时设置好的的固定的应用,本申请实施例不限定。
本申请实施例涉及的多个,是指大于或等于两个。
需要说明的是,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,如无特殊说明,一般表示前后关联对象是一种“或”的关系。且在本申请实施例的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。
以下介绍终端设备、用于这样的终端设备的图形用户界面(graphical user interface,GUI)、和用于使用这样的终端设备的实施例。在本申请一些实施例中,终端设备可以是便携式终端设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(如智能手表)等。该便携式终端设备包含具有能够检测地理位置的器件(比如GPS定位模块、wifi模块等),并具有能够基于地理位置提供相应的服务的功能。便携式终端设备的示例性实施例包括但不限于搭载
Figure PCTCN2019079590-appb-000001
或者其它操作系统的便携式终端设备。上述便携式终端设备也可以是其它便携式终端设备,只要能够检测地理位置,并基于地理位置提供相应的服务即可。还应当理解的是,在本申请其他一些实施例中,上述终端设备也可以不是便携式终端设备,而是能够检测地理位置,并基于地理位置提供相应的服务的台式计算机。
当然,在本申请另一些实施例中,终端设备也可以无需具有基于地理位置提供相 应的服务的能力。比如,终端设备可以将检测的地理位置发生给云端服务器。云端服务器基于终端设备发送的地理位置,判断终端设备是否进入地理围栏,若是,则确定相应的服务,并将服务的相关信息发送给终端设备。终端设备将服务的相关信息推送给用户。在下文中,以终端设备自己检测地理位置,并基于地理位置提供相应的服务为例。
以终端设备是手机为例,图5示出了手机100的结构示意图。
手机100可以包括处理器110,外部存储器接口120,内部存储器121,天线1,天线2,移动通信模块151,无线通信模块152,传感器模块180,按键190,显示屏194,GPS模块191。其中传感器模块180可以包括压力传感器180A,指纹传感器180H,触摸传感器180K等(手机100还可包括其他传感器比如温度传感器、环境光传感器、陀螺仪传感器等,图中未示出)。
可以理解的是,本申请实施例示意的结构并不构成对手机100的具体限定。在本申请另一些实施例中,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
下面对图5示出的手机100中的部件进行介绍。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器(modem),图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是手机100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
其中,处理器110能够运行本申请实施例提供的确定终端设备位于地理围栏内部的方法的软件代码,实现服务推送的功能。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序等。存储数据区可存储手机100使用过程中所创建的数据(比如图片,视频)等。
内部存储器121还可以用于存储本申请实施例提供的确定终端设备位于地理围栏内部的方法的软件代码,当处理器110访问并运行该软件代码时,实现基于地理位置的服务推送服务的功能。内部存储器121中还可以存储图1所示的三种地理围栏、小区定位库比如图2所示的小区定位库,再比如图4所示的wifi定位库,具体内容将在后文介绍。
其中,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
下面介绍传感器模块180的功能。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。
指纹传感器180H用于采集指纹。手机100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器180K可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于手机100的表面,与显示屏194所处的位置不同。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机100可以包括1个或N个显示屏194,N为大于1的正整数。
处理器110运行本申请实施例提供的确定终端设备位于地理围栏内部的方法的软件代码之后,显示屏194可以用于显示推送的服务的相关信息,具体内容将在后文介绍。
其中,无线通信模块152,可以用于搜索AP,以检测wifi标识,处理器110可以基于该wifi标识判断手机100是否进入地理围栏,前述内容已经描述过程,在此不再重复赘述。
其中,GPS模块191,可以用于检测当前所处的地理位置信息的经纬度信息,处理器110可以基于该经纬度信息判断手机100是否进入地理围栏,具体内容将在后文介绍。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。比如,本申请实施例提供的确定终端设备位于地理围栏内部的方法的软件代码可以存储在外部存储器中,处理器110可以通过外部存储器接口120访问并运行存储在外部存储器中的软件代码,实现基于地理位置的服务推送功能。小区定位库比如图2所示的小区定位库、图4所示的wifi定位库、以及图1所示的地理围栏也可以存储在外部存储器中,处理器110可以通过外部存储器接口120获取存储在外部存储器中的小区定位库、地理围栏等。
手机100的无线通信功能可以通过天线1,天线2,移动通信模块151,无线通信模块152等实现。
天线1和天线2用于发射和接收电磁波信号。手机100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块151可以提供应用在手机100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块151可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块151可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块151还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块151的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块151的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块152可以提供应用在手机100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块152可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块152经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块152还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,手机100的天线1和移动通信模块151耦合,天线2和无线通信模块152耦合,使得手机100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
若手机100不具备基于地理位置提供相应的服务的能力时,手机100可以将检测的地理位置发生通过无线通信模块151或者移动通信模块152,将地理位置信息发送给云端服务器。云端服务器判断手机100是否进入地理围栏,若是,则确定相应的服务,并将服务的相关信息发送给手机100。
手机100可以接收按键190输入,产生与手机100的用户设置以及功能控制有关的键信号输入。
尽管图5未示出,手机100还可以包括音频模块、SIM卡接口、摄像头;还可以包括马达,用于产生振动提示(比如来电振动提示);还可以包括指示器比如指示灯,用于指示充电状态,电量变化,也可以用于指示信息,未接来电,通知等。
为了方便描述本申请实施例提供的确定终端设备位于地理围栏内部的方法,从图5中示出的手机100中的所有部件中提取出与所述确定终端设备位于地理围栏内部的方法相关的部件,下文将通过这些部件介绍本申请实施例的确定终端设备位于地理围栏内部的方法,具体请参见图6。需要说明的是,图6中以处理器110集成应用处理器110-1、调制解调处理器110-2和协处理器110-3为例。
其中,调制解调处理器110-2用于搜网注册,并在搜索到合适的小区后,驻留到该小区。搜索注册过程前面已经介绍过,在此不再重复赘述。因此,调整解调处理器110-2可以获得当前驻留小区的小区信息。下文以小区信息是小区ID为例。
协处理器110-3用于判断手机100是否进入地理围栏中。当协处理器110-3确定手机100已进入地理围栏范围内时,可以唤醒应用处理器110-1。应用处理器110-1基于该进入地理围栏事件,推荐相关的服务。
因此,在本申请实施例中,应用处理器110-1可以无需一直处于开启状态,即判断手机100是否进入地理围栏的任务由协处理器110-3执行,而协处理器110-3消耗的功耗小于应用处理器110-1所消耗的功耗,有助于节省功耗。
以下介绍通过图6所示的手机100判断处于地理围栏内部的几种可能的实现方式。方式一:
以图2为例,内存存储器121中可以存储小区定位库。调制解调处理器110-2获取当前驻留小区的小区ID之后,可以将该小区ID发送给协处理器110-3。协处理器110-3可以在存储的小区定位库中匹配与小区ID对应的地理位置信息。假设调制解调处理器110-2获取当前驻留小区的小区ID为ID1,则基于图2所示的小区定位库,可确定ID1对应的地理位置为(vlon 1,vlat 1)。
因此,在第一种方式中,协处理器110-3可以根据调制解调处理器110-2检测到的小区ID,在小区定位库中确定小区ID对应的地理位置信息(即当前驻留小区的经纬度)。协处理器110-1知晓经纬度之后,比较该经纬度和地理围栏比如图2所示的地理围栏,判断手机100是否进入该地理围栏范围内(具体过程已在前文介绍过,不再赘述)。当协处理器110-3确定手机100进入地理围栏内时,触发唤醒应用处理器110-1。应用处理器110-1基于当前的地理围栏,推送服务。
在第一种方式中,由于小区定位库可以是事先下载好的,无需开启GPS模块,手机100也可以获取当前的地理位置信息,而且应用处理器也无需一直开启,只有当协处理器确定手机100进入地理围栏时,才唤醒应用处理器,有助于节省功耗。
方式二:
以图4所示的wifi接入点定位库为例,手机100中存储有wifi标识和地理位置(比如经纬度)之间的对应关系,该对应关系可以从服务器下载得到,或者是手机100自己统计的。
协处理器110确定当前接入的wifi的wifi标识是第一标识时,可以在所述对应关系中,确定该第一标识对应的第一地理位置。协处理器110确定第一地理位置之后, 可以基于第一地理位置判断手机100是否进入地理围栏。
因此,在第二种方式中,手机100无需启动GPS模块,也能判断是否进入地理围栏,而且也无需一直开启应用处理器,只有当协处理器确定手机100已进入地理围栏之后,才唤醒应用处理器,有助于节省功耗。
方式三:
以图1为例,内部存储器121中存储图1所示的地理围栏。协处理器110-3可以与GPS模块191通信连接。GPS模块191处于开启状态时,可以检测当前所处的地理位置信息比如经纬度信息,然后发送给协处理器110-3。协处理器110-3可以基于当前的经纬度信息判断手机100是否进入地理围栏内。当协处理器110-3确定手机100进入地理围栏内时,触发唤醒应用处理器110-1。应用处理器110-1基于当前的地理围栏,推送服务。
在第三种方式中,手机100通过GPS模块实现定位,由于GPS定位技术的定位精度较高,所以第五种实现方式,准确性较高。
在实际应用中,手机100可以将上述三种方式中的至少两种方式组合搭配使用,下面通过示例进行说明。
示例1:方式一(小区定位库)和方式三(GPS定位)组合。
请参见图7所示,为本申请实施例提供的确定终端设备位于地理围栏内部的方法的流程图。如图7所示,该方法的流程包括:
S701:调制解调处理器110-2检测接入的第一小区的第一小区信息。
S702:调制解调处理器110-2将第一小区信息发送给协处理器110-3。
S703:协处理器110-3在小区定位库中确定与第一小区信息对应的第一地理位置信息,小区定位库中包括小区信息与地理位置信息之间的对应关系。
S704:协处理器110-3基于该第一地理位置信息判断手机100是否靠近地理围栏;若是,则执行S705,若否,则执行S701。
示例性的,以图1所示的地理围栏为例,协处理器110-3可以判断该地理位置是否在地理围栏之外,且距离地理围栏边界之间的距离小于或小于等于第一预设阈值,若是,说明当前位置距离地理围栏边界较近,可以开启GPS模块;若否,说明当前位置在地理围栏较远,无需开启GPS模块。
S705:协处理器110-3触发启动GPS模块。
在上述过程中,协处理器已经确定手机100靠近地理围栏,为了提高检测的地理位置的准确性,协处理器110-3触发启动GPS定位模块,GPS定位模块检测地理位置信息,比如经纬度信息。
示例性的,GPS模块检测地理位置信息时,可以周期性的检测。其中,检测周期可以是出厂时设置好的,也可以是手机100自己确定的。
作为一种示例,手机100中协处理器110-3可以根据当前地理位置信息与地理围栏之间的最近距离确定检测周期。
举例来说,假设当前地理位置信息与地理围栏之间的最近距离以K表示;若K大 于K0,则协处理器110-3可以基于如下公式计算检测周期(以Dur表示):
Dur=K/Vavg;
其中,Vavg为手机100的移动速度,Dur为检测周期。
再例如,若K小于等于K0,则设置周期Dur=Dur fix
其中,K0的取值和Dur fix的取值可以是手机100出厂之前设置好的,比如K0=600米,Dur fix=60秒。
作为另一种示例,协处理器110-3还可以识别手机100是否处于绝对静止状态,若处于绝对静止状态,则协处理器110-1可以设置较大的检测周期。
其中,协处理器110-1判断手机100是否处于绝对静止状态的方式可以是,协处理器110-1判断上一次定位后传感器数据是否发生变化,比如判断角速度传感器或者陀螺仪检测到的传感器数据是否发生变化,若未发生变化,则说明手机100处于绝对静止状态。比如手机100一直放在桌面上,则手机100检测到的传感器数据不会发生变化,那么手机100可以设置较大的检测周期。
作为又一种示例,协处理器可以识别手机100是否处于相对静止状态,若处于相对静止状态,则协处理器1101-可以设置较大的检测周期。
其中,相对静止状态,可以理解为手机100处于运动状态,但是移动范围较小,即手机100在小范围内移动。协处理器110-3判断手机100处于相对静止状态的方式可以是,协处理器110-1判断上一次定位后传感器数据发生变化,但手机100的当前的驻留小区未发生变化,或者,扫描到的wifi标识未发生变化,说明手机100处于相对静止状态。
协处理器110-3判断手机100是否处于相对静止状态的另一种方式可以是,协处理器110-3可以缓存的N个历史位置信息,在获取到新的位置信息后逐个替换历史位置信息,在新替换位置达到N/2个后,计算这N个位置信息的最小包络圆,若最小包络圆的半径小于某阈值,则认为设备移动范围较小,处于相对静止状态。请参见图8所示,为本申请实施例提供的最小包络圆的示意图。N个历史位置信息所构成的最小包络圆是图8中虚线。当N个历史位置信息中有一半的位置信息被新的位置信息替换之后,N个位置信息所构成的最小包络圆是图8中的实线,若实线的半径小于阈值,则手机100在小范围内移动,处于相对静止状态。处于相对静止状态时,协处理器110-1可以设置较大的检测周期。
应理解,处于相对静止状态时的检测周期可以小于处于绝对静止时的检测周期。
S706:GPS模块获取第二地理位置。
类似的,GPS定位模块也可以周期性的检测经纬度信息,检测周期的确定方式前文已介绍过程,在此不重复赘述。
S707:GPS模块将第二地理位置发送给协处理器110-3。
S708:协处理器110-3基于第二地理位置判断手机100是否进入地理围栏内,若是,则执行S709,若否,则执行S706。
S709:协处理器110-3触发启动应用处理器110-1。
S710:应用处理器110-1基于进入地理围栏内部的事件,确定相应的服务。
S711:手机100显示该服务的相关信息。
在本申请实施例中,为了节省功耗,当GPS模块检测到的地理位置与地理围栏的 最近距离大于第二预设阈值时,可以关闭GPS模块。其中,第二预设阈值可以与第一预设阈值相同或不同。
应理解,手机100进入地理围栏内部和移出地理围栏内部,确定的服务可以不同。比如,手机100进入地理围栏内部时,可以确定与地理围栏内部相关的服务,比如推荐地理围栏内部的兴趣点(比如商店、景点等)等。手机100移出地理围栏内部时,可以确定其它服务,比如推荐地理围栏之外的兴趣点的服务,或者其它的与移出地理围栏相关的服务。
作为一种示例,若在S711之前,手机100处于锁屏且黑屏状态时,应用处理器110-1在基于进入地理围栏的事件确定的服务之后,可以点亮显示屏194,显示屏194显示该服务的相关信息。
作为另一种示例,若在S711之前,手机100处于亮屏且解锁状态时,手机100可以在状态栏显示相关的服务的信息,请参见图9(a)所示;或者,手机100也可以弹出提示框,该提示框中显示服务的信息,请参见图9(b)所示。
在图7所示的实施例中,协处理器110-3通过调制解调处理器110-2确定小区信息,基于小区信息和小区定位库判断手机100是否距离地理围栏较近时,若较近,启动GPS模块,避免手机100距离地理围栏较远时,就启动GPS模块进行远距离无意义定位,有助于节省功耗。
示例2:方式二(wifi定位库)和方式三(GPS定位)的组合。
S1001:无线通信模块152检测到手机100接入第一wifi接入点。
S1002:协处理器110-3在wifi定位库中,确定与所述第一wifi接入点对应的第一地理位置。
S1003:协处理器110-3根据第一地理位置判断手机100是否靠近地理围栏;若是,则执行S1004,若否,则执行S1001。
举例来说,协处理器110-3确定第一地理位置在地理围栏之外,且第一地理位置与地理围栏的最近距离小于或小于等于第一预设阈值时,确定手机100靠近地理围栏。
S1004:协处理器110-3启动GPS模块。
S1005:GPS模块获取第二地理位置。
S1006:协处理器110-3根据第二地理位置,判断手机100是否位于地理围栏内部,若是,则执行S1007,若否,则执行S1005。
S1007:协处理器110-1触发启动应用处理器110-1。
S1008:应用处理器110-1基于进入地理围栏的事件,确定相关的服务。
S1009:手机100显示服务的信息。
应理解,在示例1和示例2中使用的小区定位库和wifi定位库可以位于同一个定位库,所述定位库中既包括小区标识与地理位置之间的对应关系,也包括wifi标识与地理位置之间的对应关系,手机100可以遍历所述定位库,获取手机100的第一通信接入信息(比如小区信息、wifi信息),对应的第一地理位置。当然,小区定位库和wifi定位库也可以位于不同的定位库,手机100可以根据第一通信接入点的选择合适的定位库,比如第一通信接入点时wifi时,选择wifi定位库,第一通信接入节点是小区时,选择小区定位库。当然,小区定位库或者wifi定位库还可以是其它形式的定位 库,本申请实施例不作限定。
示例3:方式一(小区定位库)、方式二(wifi离线定位库)的组合。
示例性的,手机100可以先通过wifi接入点定位库检测地理位置(请参见上述方式三),若检测失败;比如无法检测到wifi接入点,或者是定位库中不存在检测到的wifi接入点等,手机100可以使用小区定位库(请参见上述方式二)检测地理位置。
通常,wifi接入点的覆盖范围小于小区的覆盖范围,所以wifi接入点定位库的精度相对较高,而小区的普适性较好,比如有些小区的覆盖范围内可能并没有wifi接入点。因此,手机100可以优先使用wifi接入点定位库,当wifi接入点定位库无法实现定位时,再使用小区定位库,以便保证能够实现定位。
在本申请一些实施例中,手机100可以根据应用程序所要求的地理位置的精度来选择采用哪种方式。不同应用程序所要求的精度不同,有的应用程序对地理位置的精度较高,针对这类应用程序,可以使用第三种方式或者其他方式与第三种方式的组合;有的应用程序对地理位置的精度较低,针对这类应用程序,可以使用方式1和/或方式2。
举例来说,手机100当前启动定位功能的应用程序只有1个,而该应用程序对精度要求较高,那么手机100可以使用第三种方式;或者,手机100中启动定位功能的应用程序有多个,但是当前运行的启动定位功能的应用程序对精度的要求较低,那么手机100可以使用方式1-方式2的组合或者任意一种。
在上面的实施例中,wifi定位库是手机100接入的wifi接入点与地理位置之间的对应关系。下面介绍另一种wifi定位库,在该wifi定位库中包括wifi标识集合和地理位置之间的对应关系。
示例4:
请参见图11所示,wifi定位库中包括wifi标识集合和地理位置之间的对应关系,其中wifi接入点集合是地理围栏内的所有wifi接入点所构成的集合。比如,请参见图12所示,地理围栏内包括AP1(bssid 1)、AP2(bssid 2)、AP3(bssid 3)),对应的,图11中(bssid 1、bssid 2、bssid 3)对应(vlon 1,vlat 1)。
举例来说,请继续参见图12所示,假设手机100在地点A处时,搜索到的AP的wifi标识构成的第二集合为(bssid1,bssid2),即未搜索到AP3的wifi标识。手机100在图11所示的wifi接入点定位库中确定,第二集合与第一集合(bssid1,bssid2,bssid3)的交集不为空,手机100确定进入与第一集合对应的第一地理围栏。
其中,交集不为空包括两个交集相等,或者两个交集不相等但交集不为空。
在另一些实施例中,当第一集合和第二集合中相同的wifi标识的数量大于预设数量时,确定手机100进入第一集合对应的第一地理围栏。其中,预设数量可以是地理围栏内AP的总个数的一半。
举例来说,请继续参见图12所示,假设手机100在地点A处时,搜索到的AP的wifi标识构成的第二集合为(bssid1),即未搜索到AP2和AP3的wifi标识。由于第二集合(bssid1)和第一集合(bssid1,bssid2,bssid3)中相同的wifi标识只有一个,即bssid1,小于1.5(地理围栏内的AP的总数为3,所以预设数量为1.5),则确定手 机100未进入与第一集合对应的第一地理围栏。
以手机为例,手机在一个地理位置处,可以搜索到该位置附近的AP的wifi标识。比如,请参见图13所示,为本申请实施例提供的手机搜索到的wifi标识的显示界面的示意图。图13(a)中,手机显示主界面1301,主界面1301中包括设置应用的图标1302。当手机检测到用户触发图标1302的操作时,显示如图13(b)所示的界面1303。如图13(b)所述,界面1303中包括无线局域网的选项1304。当手机检测到用户触发选项1304的操作时,显示如图13(c)所示的界面1305。如图13(c)所示,界面1305中包括三个wifi名称,即手机在一个地理位置处,搜索到的三个AP各自的wifi标识。因此,手机搜索到的三个AP的wifi标识可以作为第二集合。
手机100可以使用图11所示的wifi接入点定位库或图4所示的wifi定位库来定位。
比如,手机100当前并未接入某个wifi时,可以根据搜索到的wifi和图11所示的wifi接入点定位库确定地理位置。
再比如,手机100当前接入某个wifi时,可以根据该wifi和图4所示的wifi定位库确定地理位置。
再比如,手机100当前接入某个wifi时,根据该wifi和图4所示的wifi定位库无法确定地理位置时(比如图4所示的wifi定位库中每个该wifi),可以根据搜索到的wifi和图11所示的wifi接入点定位库确定地理位置。
示例5:
请参见图14所示,为本申请实施例提供的确定终端设备位于地理围栏内部的方法的流程示意图。如图14所示,该方法的流程包括:
S1401:调制解调处理器110-2检测当前的驻留小区的小区信息。
S1402:调制解调处理器110-2将小区信息发送给协处理器110-3。
S1403:协处理器110-3基于小区信息判断手机100是否靠近地理围栏;若是,则执行S1404,若否,则执行S1401。
具体而言,协处理器110-3判断手机100是否靠近地理围栏的过程可以包括:
协处理器110-3基于小区信息判断该小区是否在存储的预设小区中,若是,则协处理器110-3确定手机100靠近地理围栏,其中,预设小区是距离地理围栏外到预设边界内的小区。
请参见图15所示,距离地理围栏(图15中实线)外的预设距离处存在预设边界(图15中虚线),在该预设边界到地理围栏的范围内的小区即预设小区,即图12中实线和虚线之间的区域内的小区即预设小区。图15中以预设小区包括7个小区为例。当手机100中的调制解调处理器110-2检测到当前驻留小区是预设小区中的某个小区,即手机100进入预设边界内,即手机100靠近地理围栏。比如图15中,手机100检测到当前驻留小区的小区2,则手机100靠近地理围栏。
应理解,预设边界和地理围栏之间的距离,可以是预设设置好的,预设小区也可以是手机100出厂之前检测好、存储在手机100中的。当然,预设小区也可以是用户在使用手机100的过程中从服务器下载的,本申请实施例不作限定。
下面介绍,手机100获取预设小区的过程。
手机100确定一个地理围栏(以GF表示),在该地理围栏外的预设距离处,确定预设边界(以CF表示),则CF的覆盖范围大于GF的覆盖范围,CF-GF的范围就是前述的预设边界和地理围栏之间的范围。手机100采集多个小区的小区信息后,根据CF-GF范围,对小区进行筛选。比如,手机100将采集到的小区分别为CF1、CF2、CF3…CFn,计算CFk所覆盖的范围与CF-GF所覆盖的范围的重叠率Sk,如果Sk大于等于阈值,则保留该小区为预设小区,否则舍弃该小区,经过筛选便得到了一组小区CF1、CF2、CF3…CFm,(m小于等于n),这组小区便是该地理围栏对应的预设小区。
S1404:协处理器110-3启动GPS模块。
S1405:GPS模块检测手机100当前的地理位置信息。
S1406:GPS模块将当前的地理位置信息发送给协处理器110-3。
通常,GPS模块检测到的地理位置信息是经纬度。GPS模块将检测到的经纬度信息发送给协处理器110-3。
S1407:协处理器110-3基于当前的地理位置判断手机100是否进入地理围栏范围内,若是,则执行S1408;若否,则执行S1405。
S1408:协处理器110-3启动应用处理器110-1。
协处理器基于GPS模块检测到的经纬度信息和地理围栏比如图2所示的地理围栏,判断手机100是否进入地理围栏内,比如检测到的经纬度信息在图2所示的地理围栏内时,确定手机100进入地理围栏,否则,确定手机100未进入地理围栏。
S1409:应用处理器110-1基于进入地理围栏的事件确定相关的服务。
需要说明的是,不同的应用基于进入地理围栏的事件确定的服务不同;以携程应用为例,携程应用基于进入地理围栏的事件确定的相关服务包括向用户推荐该地理围栏内的兴趣点,比如美食信息、景点信息等。
S1410:手机100显示该服务的相关信息。
在图14所示的实施例中,协处理器110-3通过调制解调处理器110-2确定小区信息,基于小区信息判断手机100靠近地理围栏时,才启动GPS模块,避免手机100距离地理围栏较远时,就启动GPS模块进行远距离无意义定位,有助于节省功耗。
在本申请实施例中,协处理器110-3确定手机100进入地理围栏内部时,可以立即唤醒应用处理器110-1,也可以延迟预设时间再唤醒应用处理器110-1。示例性的,协处理器110-1可以根据应用程序的精度要求,确定立即唤醒应用处理器还是延迟唤醒应用处理器。其中,应用程序的精度要求可以是应用程序在预设距离内能够推荐的服务的数量。比如,第一应用每次确定500米范围内所有商家的信息,而第二应用每次确定20公里范围内的景点的信息,则第一应用的精度要求大于第二应用的精度要求。这是因为,手机100从某个500米范围内移出所需要的时间较短,若不立即触发唤醒应用处理器110-1,无法及时向用户推荐所述某个500米发送内的服务,但是,手机100从20公里范围内的移出所需要的时间较长,协处理器100可以稍延迟唤醒应用处理器,也能向用户推荐20公里范围内的服务。
举例来说,手机100中启动定位功能的应用只有一个,而该应用的精度要求较低,所以协处理器110-1可以延迟一段时间再唤醒应用处理器110-1。
再比如,手机100中启动定位功能的应用有多个,当时当前运行的应用的精度要 求较高,所以协处理器110-3可以立即唤醒应用程序。
再比如,手机100中启动定位功能的应用有多个,其中,部分应用程序的精度要求较高,部分应用程序的精度要求较低,协处理器110-3可以立即唤醒应用处理器110-1,应用处理器110-1可以理解运行对精度要求较高的应用程序,稍延迟运行对精度要求较低的应用程序。
下面介绍手机100的软件架构
请参见图16所示,为本申请实施例提供的软件架构图。图16所示的软件架构是以手机100为例,且以安卓架构为例,应立即,图5或图6示出手机100的硬件架构,图16示出手机100的软件架构,所以图16所示的软件架构的软件模块和/或代码可以存储在内部存储器121中,当处理器110运行该软件模块或代码时,执行本申请实施例提供的确定终端设备位于地理围栏内部的方法。
如图16所示,软件架构自下而上,依次包括内核层、系统层、框架层、应用层,下面分别介绍各层的作用。
内核层,包括传感器集(sensorhub)驱动,可以用于获取wifi标识、小区信息、GPS信息等。这是因为,从硬件的角度来说,sensorhub可以与无线通信模块152、调制解调处理器110-2、GPS定位模块191连接。比如,无线通信模块152检测到wifi标识之后,将wifi标识之后发送给sensorbuh,sensorbuh驱动将wifi标识上报系统层。类似的,调制解调处理器110-2检测到小区信息之后,将小区信息发送给sensorbuh,sensorbuh驱动将小区信息上报系统层。类似的,GPS定位模块191检测到GPS信息之后,将GPS信息发送给sensorbuh,sensorbuh驱动将GPS信息上报系统层。
内核层中还包括显示驱动,用于驱动显示屏194显示信息。
系统层,包括Fusion Daemon,用于将内核层上报的信息通过基于位置服务(location based service,LBS)通道上报上层,即框架层。
框架层,包括cell匹配模块和cell定位模块;其中,cell匹配模块用于将底层上报的小区信息和存储的小区信息匹配。以cell信息是cell ID为例,cell匹配模块可以判断在存储的多个预设cell的cell ID中是否存在上报的cell ID(示例5)。cell定位模块用于基于底层上报的小区信息和小区定位库实现定位(示例1)。
管理模块,用于在确定满足条件(比如手机100靠近地理围栏)时,触发启动GPS匹配模块。GPS匹配模块用于基于上报的GPS信息,判断手机100是否进入地理围栏内。
wifi匹配模块,用于基于上报的wifi标识和wifi接入点定位库实现定位。
应用层,包括各种应用程序,比如应用1、应用2、应用3等等。其中,部分应用开启定位功能,比如应用2。当框架层检测到手机100进入地理围栏内时,可以向应用2发送进入地理围栏的事件,应用2可以提供相应的服务。
下面通过图16所示的软件架构和图6所示的硬件架构,介绍协处理器110-3判断手机100是否进入地理围栏的几种示例。
示例1:
协处理器110-3运行存储在内部存储器121中的软件模块或代码执行如下过程:
内核层的Sensorhub驱动获取当前驻留小区的小区信息之后,可以将该小区信息上报系统层的Fusion Daemon。Fusion Daemon用于将内核层上报的小区信息通过LBS通道上报框架层中cell定位模块。cell定位模块可以在小区定位库中匹配与小区信息对应的地理位置。关于小区定位库的内容在前文介绍过,在此不再重复赘述。
当协处理器判断手机100进入地理围栏之后,触发启动应用处理器,应用处理器运行在内部存储器121中的软件模块或代码执行如下过程:
cell定位模块通过管理模块向应用层中应用2上报进入地理围栏事件,应用2基于该地理围栏事件,产生相应的服务,将服务的相关信息下发到窗口管理服务(window manager service,WMS),WMS通过Surflinger将服务的相关信息发送给显示驱动,以驱动显示屏194显示该服务的相关信息。
应理解,图16所示的软件架构中,部分软件模块可以被协处理器110-3运行,部分软件模块可以被应用处理器110-1运行,以实现不同的效果。
示例2:
协处理器110-3运行存储在内部存储器121中的软件模块或代码执行如下过程:
内核层的Sensorhub驱动获取AP的wifi标识之后,可以将wifi标识上报系统层的Fusion Daemon,用于将内核层上报的信息通过LBS通道上报框架层中wifi匹配模块。wifi匹配模块可以根据上报wifi标识和wifi接入点定位库(图4或者图11所示的定位库)定位。关于这部分内容在前文已经介绍过,在此不再重复赘述。
当协处理器判断手机100进入地理围栏之后,触发启动应用处理器,应用处理器运行在内部存储器121中的软件模块或代码执行如下过程:
wifi匹配模块通过管理模块向应用层中应用2上报进入地理围栏事件,应用2基于该地理围栏事件,产生相应的服务,下发到WMS,WMS通过Surflinger将服务的相关信息发送给显示驱动,以驱动显示屏194显示该服务的相关信息。
示例3:
协处理器110-3运行存储在内部存储器121中的软件模块或代码执行如下过程:
内核层的Sensorhub驱动获取GPS信息即经纬度之后,可以将经纬度和精度上报系统层的Fusion Daemon,用于将内核层上报的信息通过LBS通道上报框架层中GPS匹配模块。GPS匹配模块可以根据该经纬度判断是否进入地理围栏。关于这部分内容已在前文介绍过,在此不再重复赘述。
当协处理器判断手机100进入地理围栏之后,触发启动应用处理器110-1,应用处理器110-1运行在内部存储器121中的软件模块或代码执行如下过程:
GPS匹配模块通过管理模块向应用层中应用2上报进入地理围栏事件,应用2基于该地理围栏事件,产生相应的服务,下发到WMS,WMS通过Surflinger将服务的相关信息发送给显示驱动,以驱动显示屏194显示该服务的相关信息。
示例4:
协处理器110-3运行存储在内部存储器121中的软件模块或代码执行如下过程:
内核层的Sensorhub驱动获取当前驻留小区的小区信息之后,可以将该小区信息上报系统层的Fusion Daemon。Fusion Daemon用于将内核层上报的小区信息通过LBS通道上报框架层中cell匹配模块。Cell匹配模块可以在存储的cell地理围栏外的预设小区中寻找是否存当前驻留小区。在前文介绍过,在此不再重复赘述。
当协处理器判断手机100进入地理围栏之后,触发启动应用处理器,应用处理器运行在内部存储器121中的软件模块或代码执行如下过程:
Cell匹配模块通过管理模块向应用层中应用2上报进入地理围栏事件,应用2基于该地理围栏事件,产生相应的服务,将服务的相关信息下发到窗口管理服务(window manager service,WMS),WMS通过Surflinger将服务的相关信息发送给显示驱动,以驱动显示屏194显示该服务的相关信息。
需要说明的是,由于GPS模块可以检测精度,所以内核层可以向上层上报精度。示例性的,假设应用1和应用2均开启定位服务,GPS匹配模块确定底层上报的精度不满足应用1的精度需求时,可以不将进入地理围栏事件发送给应用1。比如,应用1的精度为小于200m,但是底层上报的精度是1公里,则不满足应用1的精度需求。
本申请的各个实施方式可以任意进行组合,以实现不同的技术效果。
上述本申请提供的实施例中,从终端设备(手机100)作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,终端设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行图7、图10或图14所示的实施例中的一个或多个步骤,以实现上述实施例中的图形渲染方法。
本实施例还提供了一种程序产品,当该程序产品在计算机上运行时,使得计算机执行图7、图10或图14所示的实施例中的一个或多个步骤,以实现上述实施例中的图形渲染方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行图5或图9所示的实施例中的一个或多个步骤,以实现上述实施例中的图形渲染方法。
其中,本实施例提供的电子设备、计算机存储介质、程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
应理解本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序 代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明的部分实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括已列举实施例以及落入本发明范围的所有变更和修改。显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也包含这些改动和变型在内。

Claims (26)

  1. 一种确定终端设备位于地理围栏内部的方法,应用于所述终端设备,其特征在于,所述终端设备存储有定位库,所述定位库中包括通信接入信息及其对应的地理位置信息;所述方法包括:
    根据所述定位库,获取所述终端设备的通信接入信息对应的第一地理位置;
    若所述第一地理位置和所述地理围栏的位置关系符合第一预设条件,启动定位模块获取所述终端设备的第二地理位置;
    根据所述第二地理位置确定所述终端设备位于所述地理围栏内部。
  2. 如权利要求1所述的方法,其特征在于,所述第一预设条件包括:所述第一地理位置与地理围栏的最近距离小于或小于等于第一预设阈值。
  3. 如权利要求2所述的方法,其特征在于,所述第一预设条件还包括:所述第一地理位置在所述地理围栏之外。
  4. 如权利要求1-3任一项所述的方法,其特征在于,所述通信接入信息包括小区接入信息。
  5. 如权利要求1-3任一项所述的方法,其特征在于,所述通信接入信息包括wifi接入信息。
  6. 如权利要求1-5任一项所述的方法,其特征在于,所述定位模块包括GPS模块。
  7. 如权利要求1-6任一项所述的方法,其特征在于,所述启动定位模块获取所述终端设备的第二地理位置,包括,启动定位模块按照触发周期获取所述终端设备的第二地理位置;所述方法还包括:
    若所述终端设备为运动状态,根据所述第二地理位置与地理围栏的最近距离和所述终端设备的移动速度,设置所述触发周期。
  8. 如权利要求1-7任一项所述的方法,其特征在于,所述启动定位模块获取所述终端设备的第二地理位置,包括,启动定位模块按照触发周期获取所述终端设备的第二地理位置;所述方法还包括:
    若所述终端设备为静止状态,增大所述触发周期。
  9. 如权利要求1所述的方法,其特征在于,根据所述定位库,获取所述终端设备的通信接入信息对应的第一地理位置,包括:
    若根据所述定位库,获取所述终端设备的第一通信接入信息对应的第一地理位置失败时,根据所述定位库,获取所述终端设备的第二通信接入信息对应的第一地理位置。
  10. [根据细则91更正 23.10.2019] 
    如权利要求9所述的方法,其特征在于,所述第一通信接入信息为小区接入信息,所述第二通信接入信息为wifi接入信息。
  11. 如权利要求1-10任一所述的方法,其特征在于,所述方法还包括:
    若所述第二地理位置与所述地理围栏的最近距离大于第二预设阈值后,关闭所述定位模块。
  12. 如权利要求1-11任一所述的方法,其特征在于,在根据所述定位库,获取所述终端设备的通信接入信息对应的第一地理位置之前,所述方法还包括:
    向服务器上报位置参考信息,其中,所述位置参考信息用于指示所述终端设备当前处于的区域范围;
    接收服务器发送的所述定位库,其中,所述定位库与所述区域范围对应。
  13. 如权利要求1-12任一所述的方法,其特征在于,所述方法还包括:
    输出第一服务的第一信息,所述第一服务与进入所述地理围栏内部的事件相关。
  14. 如权利要求1-13任一所述的方法,其特征在于,所述方法还包括:
    若所述第二地理位置确定所述终端设备移出所述地理围栏内部,输出第二服务的第二信息;所述第二服务与移出地理围栏内部的事件相关。
  15. 如权利要求1-14任一所述的方法,其特征在于,所述方法还包括:
    所述终端设备与另一终端设备建立通信;
    在判断所述另一终端设备满足条件时,向所述另一终端设备发送所述定位库。
  16. 如权利要求15所述的方法,其特征在于,判断所述另一终端设备满足条件,包括:
    判断所述另一个终端设备与所述终端设备之间的距离小于预设距离;或
    接收到所述另一个终端设备发送的用于请求所述定位库的指令。
  17. 一种定位库的制作方法,其特征在于,所述方法包括:
    服务器接收至少一个终端设备上报的通信接入信息以及第一地理位置信息;
    所述服务器构建定位库,所述定位库包括通信接入信息和第二地理位置之间的对应关系;所述第二地理位置根据所述第一地理位置确定;
    所述服务器将所述定位库下发给所述至少一个终端设备。
  18. 如权利要求17所述的方法,其特征在于,所述服务器将所述定位库下发给所述至少一个终端设备之前,所述方法还包括:
    所述服务器接收所述至少一个终端设备发送的位置参考信息,所述位置参考信息用于指示所述至少一个终端设备当前所处的区域范围;
    所述服务器确定与所述区域范围对应的定位库。
  19. 一种终端设备,其特征在于,包括:一个或多个处理器;存储器;一个或多个应用程序;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述终端设备执行时,使得所述终端设备执行如权利要求1-16中任一所述的方法步骤。
  20. 一种服务器,其特征在于,包括:一个或多个处理器;存储器;一个或多个应用程序;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述服务器执行时,使得所述服务器执行如权利要求17-18中任一所述的方法步骤。
  21. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在终端设备上运行时,使得所述终端设备执行如权利要求1-16中任一项所述的方法。
  22. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在服务器上运行时,使得所述服务器执行如权利要求17-18中任一项所述的方法。
  23. 一种程序产品,其特征在于,当所述程序产品在终端设备上运行时,使得所述终端设备执行如权利要求1-16中任一项所述的方法。
  24. 一种程序产品,其特征在于,当所述程序产品在服务器上运行时,使得所述服务器执行如权利要求17-18中任一项所述的方法。
  25. 一种处理器,其特征在于,所述处理器与存储器耦合,用于执行所述存储器 中存储的计算机程序,以执行如权利要求1-18中任一所述的方法步骤。
  26. 如权利要求25所述的处理器,其特征在于,所述处理器为协处理器或应用处理器。
PCT/CN2019/079590 2019-03-25 2019-03-25 一种确定终端设备位于地理围栏内部的方法和终端设备 WO2020191598A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
US17/442,945 US20220191641A1 (en) 2019-03-25 2019-03-25 Method for Determining that Terminal Device is Located Inside Geofence and Terminal Device
PCT/CN2019/079590 WO2020191598A1 (zh) 2019-03-25 2019-03-25 一种确定终端设备位于地理围栏内部的方法和终端设备
CN201980094491.1A CN113615217B (zh) 2019-03-25 2019-03-25 一种确定终端设备位于地理围栏内部的方法和终端设备
EP19921583.1A EP3920558A4 (en) 2019-03-25 2019-03-25 METHOD FOR DETERMINING THAT A TERMINAL EQUIPMENT IS LOCATED WITHIN A GEO-BARRIER, AND TERMINAL EQUIPMENT

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/079590 WO2020191598A1 (zh) 2019-03-25 2019-03-25 一种确定终端设备位于地理围栏内部的方法和终端设备

Publications (1)

Publication Number Publication Date
WO2020191598A1 true WO2020191598A1 (zh) 2020-10-01

Family

ID=72610831

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/079590 WO2020191598A1 (zh) 2019-03-25 2019-03-25 一种确定终端设备位于地理围栏内部的方法和终端设备

Country Status (4)

Country Link
US (1) US20220191641A1 (zh)
EP (1) EP3920558A4 (zh)
CN (1) CN113615217B (zh)
WO (1) WO2020191598A1 (zh)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114463898A (zh) * 2021-07-30 2022-05-10 荣耀终端有限公司 一种快递取件提醒方法和装置
CN115022807A (zh) * 2021-11-10 2022-09-06 荣耀终端有限公司 快递信息提醒方法和电子设备
CN115097993A (zh) * 2021-12-29 2022-09-23 荣耀终端有限公司 快递提示方法和电子设备
CN115526221A (zh) * 2022-04-19 2022-12-27 荣耀终端有限公司 一种定位异常检测和处理方法及相关设备
CN115550843A (zh) * 2022-04-19 2022-12-30 荣耀终端有限公司 一种定位方法及相关设备
CN116033342A (zh) * 2022-05-30 2023-04-28 荣耀终端有限公司 地理围栏的处理方法、设备及存储介质
CN116055630A (zh) * 2022-05-30 2023-05-02 荣耀终端有限公司 一种虚拟卡的弹出方法、电子设备及存储介质
WO2023165425A1 (zh) * 2022-03-03 2023-09-07 华为技术有限公司 一种通信方法、装置及设备

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114374929A (zh) * 2021-12-15 2022-04-19 深圳优美创新科技有限公司 一种可穿戴设备定位方法和装置、电子设备、存储介质
CN114257960B (zh) * 2022-02-25 2022-07-19 荣耀终端有限公司 蓝牙连接方法和设备
CN116033341B (zh) * 2022-05-30 2023-10-20 荣耀终端有限公司 触发围栏事件的方法和装置
CN114979949B (zh) * 2022-07-26 2022-12-27 荣耀终端有限公司 飞行状态识别方法和飞行状态识别装置
CN116738033B (zh) * 2022-09-05 2024-06-25 荣耀终端有限公司 用于推荐服务的方法和装置
CN116709180B (zh) * 2022-09-09 2024-03-22 荣耀终端有限公司 地理围栏的生成方法及服务器
CN117956401A (zh) * 2022-10-31 2024-04-30 华为技术有限公司 一种定位方法及相关装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140266883A1 (en) * 2013-03-15 2014-09-18 Qualcomm Incorporated Energy conservation apparatus for geofence applications
CN104101343A (zh) * 2013-04-08 2014-10-15 三星电子株式会社 用于以低功耗接收地理栅栏服务的电子装置和方法
WO2016095120A1 (zh) * 2014-12-17 2016-06-23 华为技术有限公司 实现地理围栏的方法和移动设备
CN106485522A (zh) * 2015-08-27 2017-03-08 华为终端(东莞)有限公司 一种推荐应用的方法、装置、客户端及系统
CN107592615A (zh) * 2017-09-22 2018-01-16 青岛海信移动通信技术股份有限公司 定位方法和装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8570993B2 (en) * 2010-05-20 2013-10-29 At&T Mobility Ii Llc Wi-Fi intelligent selection engine
US9215560B1 (en) * 2012-07-12 2015-12-15 two forty four a.m. LLC System and method for device-centric location detection and geofencing
US9094912B2 (en) * 2013-11-08 2015-07-28 Life360, Inc. Apparatus and method of providing connection source recommendations using a database of historic data on connectivity
CN106255062B (zh) * 2016-08-04 2019-11-19 京信通信系统(中国)有限公司 一种室内定位系统位置指纹库的构建方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140266883A1 (en) * 2013-03-15 2014-09-18 Qualcomm Incorporated Energy conservation apparatus for geofence applications
CN104101343A (zh) * 2013-04-08 2014-10-15 三星电子株式会社 用于以低功耗接收地理栅栏服务的电子装置和方法
WO2016095120A1 (zh) * 2014-12-17 2016-06-23 华为技术有限公司 实现地理围栏的方法和移动设备
CN106485522A (zh) * 2015-08-27 2017-03-08 华为终端(东莞)有限公司 一种推荐应用的方法、装置、客户端及系统
CN107592615A (zh) * 2017-09-22 2018-01-16 青岛海信移动通信技术股份有限公司 定位方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3920558A4 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114463898A (zh) * 2021-07-30 2022-05-10 荣耀终端有限公司 一种快递取件提醒方法和装置
CN114463898B (zh) * 2021-07-30 2023-08-22 荣耀终端有限公司 一种快递取件提醒方法和装置
CN115022807A (zh) * 2021-11-10 2022-09-06 荣耀终端有限公司 快递信息提醒方法和电子设备
CN115097993A (zh) * 2021-12-29 2022-09-23 荣耀终端有限公司 快递提示方法和电子设备
WO2023165425A1 (zh) * 2022-03-03 2023-09-07 华为技术有限公司 一种通信方法、装置及设备
CN115526221A (zh) * 2022-04-19 2022-12-27 荣耀终端有限公司 一种定位异常检测和处理方法及相关设备
CN115550843A (zh) * 2022-04-19 2022-12-30 荣耀终端有限公司 一种定位方法及相关设备
CN115550843B (zh) * 2022-04-19 2023-10-20 荣耀终端有限公司 一种定位方法及相关设备
CN115526221B (zh) * 2022-04-19 2023-10-24 荣耀终端有限公司 一种定位异常检测和处理方法及相关设备
CN116033342A (zh) * 2022-05-30 2023-04-28 荣耀终端有限公司 地理围栏的处理方法、设备及存储介质
CN116055630A (zh) * 2022-05-30 2023-05-02 荣耀终端有限公司 一种虚拟卡的弹出方法、电子设备及存储介质
CN116033342B (zh) * 2022-05-30 2023-11-24 荣耀终端有限公司 地理围栏的处理方法、设备及存储介质

Also Published As

Publication number Publication date
CN113615217A (zh) 2021-11-05
EP3920558A1 (en) 2021-12-08
US20220191641A1 (en) 2022-06-16
EP3920558A4 (en) 2022-02-16
CN113615217B (zh) 2022-12-30

Similar Documents

Publication Publication Date Title
WO2020191598A1 (zh) 一种确定终端设备位于地理围栏内部的方法和终端设备
CN109891934B (zh) 一种定位方法及装置
US9712969B2 (en) Mobile communication devices and context-based geofence control methods thereof
US10091612B2 (en) Establishing geo-fences and related alarms
CN110505572B (zh) 一种室内定位方法及电子设备
US9998860B2 (en) Mobile network based geofencing
US10212545B2 (en) Method and apparatus for device positioning
US9473890B1 (en) Enhanced system and method for mobile device-based geo-fencing solutions
US20090098903A1 (en) Using wireless characteristic to trigger generation of position fix
CN110049445A (zh) 设备上报位置信息的方法及相关装置
KR20130131805A (ko) 이동 단말기 및 그의 gps엔진 제어방법
CN111629337B (zh) 一种控制搜网的方法及终端
CN103064980A (zh) 基于移动终端及gps查询景点信息的方法和系统
WO2021244458A1 (zh) 一种网络搜索方法及相关装置
WO2022257666A1 (zh) 设备跟踪检测方法和电子设备
US11483677B2 (en) Information pushing method and terminal device
CN109451809B (zh) 确定位置信息的方法、装置和系统
US20230292155A1 (en) Cell measurement processing method and device
US20200245232A1 (en) Method and electronic device for optimizing network search in out of service state
CN106454938B (zh) 一种信息共享方法、终端及路由器
CN116709501A (zh) 业务场景识别方法、电子设备及存储介质
Dhondge et al. ECOPS: Energy‐Efficient Collaborative Opportunistic Positioning for Heterogeneous Mobile Devices
CN117014803B (zh) 定位方法、推荐方法、可读介质和电子设备
WO2024026786A1 (zh) 信息处理方法及装置、通信设备及存储介质
US20240205874A1 (en) Method and apparatus for indicating location of satellite cell, user equipment, network device, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19921583

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 19 921 583.1

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2019921583

Country of ref document: EP

Effective date: 20210903

NENP Non-entry into the national phase

Ref country code: DE