CN116033333B - Method for determining position information, electronic device and readable storage medium - Google Patents

Method for determining position information, electronic device and readable storage medium Download PDF

Info

Publication number
CN116033333B
CN116033333B CN202211062466.5A CN202211062466A CN116033333B CN 116033333 B CN116033333 B CN 116033333B CN 202211062466 A CN202211062466 A CN 202211062466A CN 116033333 B CN116033333 B CN 116033333B
Authority
CN
China
Prior art keywords
time
position information
local area
area network
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211062466.5A
Other languages
Chinese (zh)
Other versions
CN116033333A (en
Inventor
徐传印
孙井川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211062466.5A priority Critical patent/CN116033333B/en
Publication of CN116033333A publication Critical patent/CN116033333A/en
Application granted granted Critical
Publication of CN116033333B publication Critical patent/CN116033333B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Abstract

The application discloses a method for determining position information, electronic equipment and a readable storage medium, and belongs to the technical field of terminals. The method comprises the following steps: if the position inquiry request is monitored, the number of position request times is determined. And under the condition that the number of times of the position requests is greater than or equal to a number threshold, determining the cell position information of the cell where the electronic equipment is currently located as the position information queried at the time. And under the condition that the number of the position requests is smaller than the number threshold, inquiring the position information of the electronic equipment according to the connection condition of the wireless local area network of the electronic equipment, and under the condition that the position information is not inquired, if the electronic equipment is in a static state in a period from the last time when the electronic equipment monitors the position inquiry request to the current time, determining the inquiry result of the last position inquiry request as the position information inquired at the time. The application does not carry out positioning operation through the positioning component every time, thereby reducing the running power consumption.

Description

Method for determining position information, electronic device and readable storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method for determining location information, an electronic device, and a readable storage medium.
Background
Currently, various types of applications can be installed in electronic devices. The application program can acquire the position information when executing some functions, and the application program can send out a position inquiry request. In response to a position inquiry request sent by the application program, the electronic equipment performs positioning operation through the positioning component to determine position information and feeds the position information back to the application program.
However, in the case where the position information inquiry demand of the application program in the electronic device is large, if the electronic device performs the positioning operation by the positioning means each time, the running power consumption of the electronic device is liable to be excessive.
Disclosure of Invention
The application provides a method for determining position information, electronic equipment and a readable storage medium, which can solve the problem of overlarge running power consumption of the electronic equipment caused by frequently executing positioning operation in the related technology. The technical scheme is as follows:
in a first aspect, there is provided a method of determining location information, the method comprising:
if the position inquiry request is monitored, determining the position request times, wherein the position request times are the times of monitoring the historical position inquiry request in the time from the appointed time to the current time;
Under the condition that the number of times of the position requests is larger than or equal to a number threshold, determining the cell position information of the cell where the electronic equipment is currently located as the position information queried at the time;
and inquiring the position information of the electronic equipment according to the wireless local area network connection condition of the electronic equipment when the position request times are smaller than the times threshold value, and determining the inquiring result of the last position inquiry request as the position information inquired at this time if the electronic equipment is in a static state in a period from the last time when the electronic equipment monitors the position inquiry request to the current time when the position information is not inquired according to the wireless local area network connection condition.
In this way, in the case where the location query request is monitored, the number of location requests of the history location query request monitored within a period from the specified time to the current time is determined. If the number of the position requests is relatively large, the position information to be queried is determined by acquiring the cell position information, and a positioning component is not required to be called for positioning operation, so that a certain amount of electric quantity can be saved, and the effect of reducing the power consumption is achieved. In addition, even if the number of the position requests is small, the positioning component is not directly called to perform the positioning operation, but the position information inquiry is performed according to the connection condition of the wireless local area network, and the state of the electronic equipment is judged under the condition that the inquiry is failed according to the connection condition of the wireless local area network.
As an example of the present application, in the case where the number of location requests is smaller than the number threshold, querying location information of the electronic device according to a wireless lan connection condition of the electronic device includes:
if the number of the position requests is smaller than the number threshold, determining that the position information is not queried according to the connection condition of the wireless local area network if the electronic equipment is not connected with the wireless local area network; or alternatively, the process may be performed,
and if the number of the position requests is smaller than the number threshold, if the electronic equipment is connected with the wireless local area network and the position information with the mapping relation with the first wireless local area network identifier does not exist in a target mapping table, determining that the position information is not queried according to the connection condition of the wireless local area network, wherein the target mapping table is used for recording the mapping relation between the wireless local area network identifier and the position information, and the first wireless local area network identifier is the network identifier of the wireless local area network.
Therefore, if the electronic equipment is active in a small range and is connected with the wireless local area network, the position information can be determined through the wireless local area network, and the need of positioning operation through a positioning component is avoided.
As an example of the present application, the method further comprises:
and if the number of the position requests is smaller than the number threshold, determining the position information with the mapping relation with the first wireless local area network identifier in the target mapping table as the position information queried this time if the electronic equipment is connected with the wireless local area network and the position information with the mapping relation with the first wireless local area network identifier exists in the target mapping table.
Therefore, if the position information can be inquired according to the connection condition of the wireless local area network, the inquired position information can be used as the inquiring result of the time, positioning operation through a positioning component is avoided, and the running power consumption of the electronic equipment can be reduced.
As an example of the present application, the determining the number of location requests if the location query request is monitored includes:
and under the condition that the position inquiry request is monitored, if the time difference between the time when the position inquiry request is monitored last time and the current time is greater than or equal to a time threshold value, determining the position request times.
In this way, by determining the time difference value of the two times of monitoring the position query request before and after, the position request times are determined under the condition that the time difference value is large, otherwise, the position request times can be not determined, the query result of the last position query request can be directly multiplexed, the operation steps are reduced, the speed of determining the position information is improved, and the running power consumption of the electronic equipment is reduced.
As an example of the present application, the method further comprises:
and under the condition that the position inquiry request is monitored, if the time difference between the time when the position inquiry request is monitored last time and the current time is smaller than the time threshold value, determining the inquiry result of the position inquiry request last time as the position information inquired this time.
Therefore, under the condition that the time difference between the front and back monitoring of the position inquiry request is smaller, the inquiry result of the last position inquiry request can be directly multiplexed, the operation steps are reduced, the speed of determining the position information is improved, and the running power consumption of the electronic equipment is reduced.
As an example of the present application, the electronic device includes a sensing module and a location information management module; and determining the cell location information of the cell where the electronic device is currently located as the location information queried at the time when the number of the location requests is greater than or equal to the number threshold, including:
when the number of the position requests is greater than or equal to the number threshold, the sensing module sends a first positioning instruction to the position information management module;
the location information management module acquires the cell location information in response to the first positioning instruction;
The location management module sends the cell location information to the sensing module;
and the perception module determines the cell position information as the position information queried at the time.
Thus, when the number of the position requests is greater than or equal to the number threshold, the sensing module instructs the position information management module to acquire the cell position information so as to determine the current query result. Since the positioning part is not required to be called, the excessive running power consumption of the electronic equipment can be avoided.
As an example of the present application, when the number of location requests is less than the number threshold, after querying the location information of the electronic device according to the connection condition of the wireless lan of the electronic device, the method further includes:
under the condition that the position information is not queried according to the connection condition of the wireless local area network, if the electronic equipment is not in a static state in the time period, positioning operation is carried out through a positioning component;
and determining the positioning result as the position information queried at the time.
Therefore, if the position information is not queried according to the wireless local area network identifier and the electronic equipment is not always in a static state in the period from the last time of monitoring the position query request to the current time under the condition that the number of times of the position request is smaller than the number threshold, the electronic equipment can perform positioning operation through the positioning component so as to ensure that the position information can be successfully queried.
As an example of the present application, after determining the positioning result as the currently queried location information, the method further includes:
when the electronic equipment is accessed to the wireless local area network, a second wireless local area network identifier of the wireless local area network accessed to the electronic equipment and the positioning result are correspondingly stored in a target mapping table, and the target mapping table is used for recording the mapping relation between the wireless local area network identifier and the position information.
Therefore, the second wireless local area network identifier and the positioning result are correspondingly stored in the target mapping table to update the target mapping table, so that the next time the electronic equipment accesses the wireless local area network, the position information can be queried according to the connection condition of the wireless local area network, and the need of calling the positioning component to perform positioning operation is avoided.
As an example of the present application, the electronic device includes a sensing module and a location information management module; and if the electronic device is not in a static state in the time period under the condition that the position information is not queried according to the connection condition of the wireless local area network, performing positioning operation through a positioning component, including:
under the condition that the position information is not queried according to the connection condition of the wireless local area network, if the electronic equipment is not in a static state in the time period, the sensing module sends a second positioning instruction to the position information management module;
In response to the second positioning instruction, the position information management module determines the positioning result through the positioning component;
the position information management module sends the positioning result to the sensing module;
the determining the positioning result as the position information queried this time includes:
and the perception module determines the positioning result as the position information queried at the time.
In this way, if the number of times of the position request is greater than or equal to the number threshold, the sensing module instructs the position information management module to perform the positioning operation if the position information is not queried according to the connection condition of the wireless local area network and the electronic device is not in a static state within the time period, so as to ensure that the position information can be successfully determined.
In a second aspect, there is provided an apparatus for determining location information, the apparatus for determining location information having a function of implementing the method behavior for determining location information in the first aspect. The means for determining location information comprises at least one module comprising a perception module for:
if the position inquiry request is monitored, determining the position request times, wherein the position request times are the times of monitoring the historical position inquiry request in the time from the appointed time to the current time;
Under the condition that the number of times of the position requests is larger than or equal to a number threshold, determining the cell position information of the cell where the electronic equipment is currently located as the position information queried at the time;
and inquiring the position information of the electronic equipment according to the wireless local area network connection condition of the electronic equipment when the position request times are smaller than the times threshold value, and determining the inquiring result of the last position inquiry request as the position information inquired at this time if the electronic equipment is in a static state in a period from the last time when the electronic equipment monitors the position inquiry request to the current time when the position information is not inquired according to the wireless local area network connection condition.
As an example of the present application, the sensing module is configured to:
if the number of the position requests is smaller than the number threshold, determining that the position information is not queried according to the connection condition of the wireless local area network if the electronic equipment is not connected with the wireless local area network; or alternatively, the process may be performed,
and if the number of the position requests is smaller than the number threshold, if the electronic equipment is connected with the wireless local area network and the position information with the mapping relation with the first wireless local area network identifier does not exist in a target mapping table, determining that the position information is not queried according to the connection condition of the wireless local area network, wherein the target mapping table is used for recording the mapping relation between the wireless local area network identifier and the position information, and the first wireless local area network identifier is the network identifier of the wireless local area network.
As an example of the present application, the sensing module is further configured to:
and if the number of the position requests is smaller than the number threshold, determining the position information with the mapping relation with the first wireless local area network identifier in the target mapping table as the position information queried this time if the electronic equipment is connected with the wireless local area network and the position information with the mapping relation with the first wireless local area network identifier exists in the target mapping table.
As an example of the present application, the sensing module is configured to:
and under the condition that the position inquiry request is monitored, if the time difference between the time when the position inquiry request is monitored last time and the current time is greater than or equal to a time threshold value, determining the position request times.
As an example of the present application, the sensing module is further configured to:
and under the condition that the position inquiry request is monitored, if the time difference between the time when the position inquiry request is monitored last time and the current time is smaller than the time threshold value, determining the inquiry result of the position inquiry request last time as the position information inquired this time.
As an example of the present application, the electronic device further includes a location information management module;
When the number of the position requests is greater than or equal to the number threshold, the sensing module sends a first positioning instruction to the position information management module;
the location information management module acquires the cell location information in response to the first positioning instruction;
the location management module sends the cell location information to the sensing module;
and the perception module determines the cell position information as the position information queried at the time.
As an example of the present application, the sensing module is further configured to:
under the condition that the position information is not queried according to the connection condition of the wireless local area network, if the electronic equipment is not in a static state in the time period, positioning operation is carried out through a positioning component;
and determining the positioning result as the position information queried at the time.
As an example of the present application, the sensing module is further configured to:
when the fact that the electronic equipment is accessed to the wireless local area network is detected, a second wireless local area network identifier of the wireless local area network accessed to the electronic equipment and the positioning result are correspondingly stored in a target mapping table, and the target mapping table is used for recording the mapping relation between the wireless local area network identifier and the position information.
As an example of the present application, if the electronic device is not in a stationary state in the period of time under the condition that the location information is not queried according to the connection condition of the wireless local area network, the sensing module sends a second positioning instruction to the location information management module;
in response to the second positioning instruction, the position information management module determines the positioning result through the positioning component;
the position information management module sends the positioning result to the sensing module;
the determining the positioning result as the position information queried this time includes:
and the perception module determines the positioning result as the position information queried at the time.
In a third aspect, an electronic device is provided, where the electronic device includes a processor and a memory, where the memory is configured to store a program for supporting the electronic device to execute the method for determining location information provided in the first aspect, and store data related to the method for implementing the location information described in the first aspect. The processor is configured to execute a program stored in the memory. The electronic device may further comprise a communication bus for establishing a connection between the processor and the memory.
In a fourth aspect, a computer readable storage medium is provided, in which instructions are stored which, when run on a computer, cause the computer to perform the method of determining location information according to the first aspect described above.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of determining location information as described in the first aspect above.
The technical effects obtained by the second, third, fourth and fifth aspects are similar to the technical effects obtained by the corresponding technical means in the first aspect, and are not described in detail herein.
Drawings
FIG. 1 is a schematic diagram of an application scenario shown in accordance with an exemplary embodiment;
FIG. 2 is a schematic diagram of an application scenario illustrated in accordance with another exemplary embodiment;
FIG. 3 is a schematic diagram of an application scenario illustrated in accordance with another exemplary embodiment;
FIG. 4 is a schematic diagram of a software architecture of an electronic device, according to an example embodiment;
FIG. 5 is a flowchart illustrating a method of determining location information, according to an example embodiment;
FIG. 6 is a flowchart illustrating a method of determining location information according to another exemplary embodiment;
FIG. 7 is a flowchart illustrating a method of determining location information according to another exemplary embodiment;
FIG. 8 is a flowchart illustrating a method of determining location information according to another exemplary embodiment;
FIG. 9 is a flowchart illustrating a method of determining location information according to another exemplary embodiment;
FIG. 10 is a schematic diagram of an apparatus for determining location information, according to an example embodiment;
fig. 11 is a schematic diagram showing a structure of an electronic device according to an exemplary embodiment.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that references to "a plurality" in this disclosure refer to two or more. In the description of the present application, "/" means or, unless otherwise indicated, for example, A/B may represent A or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and function. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
With the rapid development of terminal technology, electronic devices such as mobile phones, tablet computers, smart watches, and the like are widely used. Currently, various types of applications may be installed or configured in electronic devices to meet different business needs of users, such asFor example, the electronic device is a mobile phone, and the mobile phone may be provided with an application program for implementing functions such as navigation, taxi taking, weather inquiry, card punching, health code presentation, and the like. Typically, the electronic device requests the electronic device to query the current location information of the electronic device when the application is opened or performs a function. For example, an application program A (such as a nail) for realizing the card punching function is installed in the mobile phone TM Application program) when the user clicks the application program a in the mobile phone, the application program a requests the electronic device to query the current location information so as to determine whether the electronic device is currently in the card punching range according to the location information. For example, an application program B (such as WeChat) for realizing the function of presenting health codes is installed in the mobile phone TM Application program), if the user scans a code through the application program B to show the health code, the event triggers the electronic device to query the current position information so as to record the position of the code scanning. In addition, when the user lights up the screen or lights out the screen, the on-screen or off-screen event also triggers the electronic device to query the current position information.
Currently, whenever an event triggers the electronic device to query for location information, the electronic device typically performs a positioning operation by a positioning component, such as, but not limited to, a global satellite positioning system (global positioning system, GPS). However, in the case where the user uses the electronic device more frequently, the number of times of requesting the query for the location information is larger, and if the electronic device performs the location operation through the location means each time, the power consumption of the electronic device may be easily excessive due to the need to load the location means. Therefore, the embodiment of the application provides a method for determining the position information, which can determine the position information not through a positioning component but through other low-power consumption modes under the scene that the positioning operation is not needed to be repeated according to the use situation of the electronic equipment, thereby achieving the purpose of reducing the operation power consumption of the electronic equipment.
For example, in an example, please refer to fig. 1, fig. 1 is a schematic diagram of an application scenario provided in accordance with an embodiment of the present application. Assuming that the user goes to work on the company, when he walks to the place under the companyWhen the mobile phone is placed at the position 1 (in the card punching range of the company), the user takes out the mobile phone to prepare card punching, therefore, the user can firstly touch the starting key of the mobile phone, the functional module used for lighting the screen in the mobile phone lights the screen in response to the touch operation of the starting key by the user, and the functional module sends out a position inquiry request. In one possible case, the mobile phone performs a positioning operation through the positioning component, and determines the position information to be loc1. After the screen is lighted, the user clicks the nail in the cell phone TM Application program punching card, responding to user nailing TM Opening operation of application program, nailing TM The application issues a location query request. As an example of the application, because the time interval from the last position information inquiry is shorter, the mobile phone can feed back the last determined position information loc1 as the current inquiry result to the nail without positioning operation by the positioning component TM An application program.
With continued reference to FIG. 1, the user is stapling TM After punching the card on the application, moving from position 1 to position 2, the distance between position 2 and position 1 is less than 5 meters, and the user takes about 15 seconds to move from position 1 to position 2. The license plate with a code is erected at the position 2, that is, the user is required to enter the office building to show the health code, so as shown in fig. 1, the operations performed by the user at the position 2 include: weChat in long-press mobile phone TM The application icon of the application program responds to the long-press operation of the user, the mobile phone displays a floating window, and the floating window comprises a sweeping option; then, the user clicks the 'one-sweep' option, and responds to the triggering operation of the user on the 'one-sweep' option, the mobile phone displays a scanning window, so that the user can scan the scanning window aiming at the trademark with a code on the gate of the office building, and at the moment, weChat TM The application issues a location query request. As an example of the application, because the time interval from the last position inquiry is shorter, the position change of the mobile phone can be ignored, so the mobile phone can also feed back the last determined position information loc1 as the inquiry result of this time to the WeChat without positioning operation by a positioning component TM An application program.
In another example, referring to fig. 2, a user fixes a mobile phone on a mobile phone support, and then clicks a punching application program in the mobile phone to punch a card, and the punching application program sends a position query request in response to a triggering operation of the punching application program by the user. In one possible case, assuming that the last determined location information of the mobile phone is loc2 and the time interval between the last time of determining the location information and the current time is within one minute, the mobile phone feeds back the last determined location information loc2 to the card punching application. After a period of time (for example, 5 minutes), the user wants to drive through the driving application program on the mobile phone, and for this purpose, the user clicks the driving application program, and in response to the clicking operation of the driving application program by the user, the driving application program sends a position query request. In one possible implementation manner, the mobile phone determines that the mobile phone is still until the current time from the last time of the position information query, which indicates that the position of the mobile phone is not changed, so that the mobile phone may not perform the positioning operation through the positioning component in this case, but rather, feed back the position information loc2 determined during the last time of the position information query to the taxi taking application as the current query result.
In another example, the user may be active in a small area at all times, in which case if the user's handset is connected to a wlan for covering the small area, the handset may also perform location information query according to wlan connection conditions when there is a need for location information query. As an example of the present application, taking the example that the wireless lan is a wireless fidelity (wireless fidelity, wiFi) network, for example, referring to fig. 3, assume that a user watches television at home and places a mobile phone on a desk, the mobile phone is connected to the WiFi network at home, and the mobile phone includes a mapping relationship between a network identifier of the WiFi network and address information of home. After a period of time (e.g., 15 minutes), when the user turns on the phone to turn on the screen, the on-screen event triggers the electronic device to query for location information. In one possible implementation manner, the mobile phone determines corresponding address information according to the network identifier of the connected WiFi network, and feeds back the address information as the location information queried this time to the function module requesting for querying the location information. Therefore, under the condition that the mobile phone is connected to the WiFi network, if a user only moves within the coverage range of the WiFi network, the mobile phone can determine the position information according to the WiFi network without positioning operation through a positioning component under the condition that the position inquiry request is monitored, so that certain running power consumption can be reduced.
As an example of the present application, the example shown in fig. 2 or fig. 3 is executed when the number of times that the mobile phone monitors the location query request does not exceed the number threshold, and in a possible implementation manner, if the number of times that the mobile phone monitors the location query request exceeds the number threshold due to multiple times of use of the mobile phone before that, the mobile phone may further determine the current query result directly by acquiring the cell location information of the cell in which the mobile phone is located, so as to reduce the operation power consumption of the mobile phone. The frequency threshold may be set according to actual requirements, for example, 400 times.
It should be noted that the above several possible application scenarios are only exemplary, and other possible similar application scenarios may be also included in the application, for example, an application scenario including shopping, booking, etc., and the location information may be determined by using the method provided by the embodiment of the present application, and a specific implementation flow of the method may be referred to in the following embodiments.
Before describing the method flow for determining location information provided in the embodiment of the present application in detail, a software architecture of an electronic device according to the embodiment of the present application is first described briefly, and fig. 4 is a schematic diagram of a software architecture of an electronic device according to an exemplary embodiment. The software system of the electronic device may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, an Android (Android) system with a layered architecture is taken as an example, and a software system of electronic equipment is exemplified. Referring to fig. 4, the layered architecture divides the software into several layers, each with a clear role and division of work. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run time) and system layer, and a kernel layer, respectively.
In addition, hardware layers associated with the software system are shown in fig. 4, including but not limited to positioning components, acceleration sensors, gyroscopic sensors, display screens. Wherein the positioning means is for performing a positioning function, the positioning means may be a GPS positioning means by way of example and not limitation. Acceleration sensors and gyroscopic sensors may be used to determine the state of an electronic device, i.e. whether the electronic device is in motion or in a stationary state.
As shown in fig. 4, the application layer may include, but is not limited to, a awareness module, a WiFi management module, an intermediary processing unit, some functional modules (only one shown in fig. 4).
Different functional modules can implement different services, and illustratively, the functional modules can include application packages, which can be, but are not limited to, maps, WLANs, short messages, taxi, punch cards, navigation, bluetooth, weather, and the like. In one example, the function module, when turned on or performing some function, may issue a location query request to request the electronic device to query for location information.
As an example, the functional module may be activitymanagex, or may also be LocationManager.
By way of example and not limitation, the functional modules for implementing on and off screens may be located in an application framework layer, such as a power management module located in the application framework layer.
The sensing module is used for monitoring a position inquiry request sent by the function and determining position information by adopting a corresponding inquiry mode according to the current use situation of the electronic equipment. The specific implementation thereof can be seen in the various embodiments shown in fig. 5 to 9 below. In one example, the awareness module is a resident process that may be activated during the power-on of the electronic device.
The WiFi management module is used for managing the connection condition of the WiFi network. As one example of the application, the WiFi management module may sense whether the electronic device is connected into a WiFi network and determine a network identification of the currently connected WiFi network if the WiFi network is connected.
The intermediate processing unit may be used for listening to the status of the electronic device in real time (i.e. the listening time interval is very short), i.e. determining whether the electronic device is in a moving state or in a stationary state. In a stationary state, the data collected by the acceleration sensor and the gyro sensor does not change.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 4, the application framework layer may include a location information management module, a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
As an example of the present application, the location information management module is configured to perform a corresponding operation according to the indication of the sensing module. In one example, when the sensing module indicates that cell location information is determined, the location information management module may read the cell location information from the memory and feed back to the sensing module. In another example, when the sensing module indicates to perform the positioning operation, the location information management module performs the positioning operation through the positioning component of the hardware layer, and feeds back the positioning result to the sensing module.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data, which may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc., and make such data accessible to the application. The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to construct a display interface for an application, which may be comprised of one or more views, such as a view that includes displaying a text notification icon, a view that includes displaying text, and a view that includes displaying a picture. The telephony manager is used to provide communication functions of the electronic device 100, such as management of call status (including on, off, etc.). The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like. The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. For example, a notification manager is used to inform that the download is complete, a message alert, etc. The notification manager may also be a notification that appears in the system top status bar in the form of a chart or a scroll bar text, such as a notification of a background running application. The notification manager may also be a notification that appears on the screen in the form of a dialog window, such as a text message being prompted in a status bar, a notification sound being emitted, the electronic device vibrating, a flashing indicator light, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system. The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android. The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules, such as: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc. The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like. The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver. Wherein the sensor drive includes, but is not limited to, an acceleration sensor drive, a gyroscopic sensor drive.
The workflow of the electronic device 100 software and hardware is illustrated below in connection with capturing a photo scene.
When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the original input event. Taking the touch operation as a click operation, the control corresponding to the click operation is a control of a camera application icon as an example, the camera application calls an interface of an application program framework layer, starts the camera application, calls a kernel layer to start a camera driver, and captures a still image or video through a camera 193.
Based on the embodiment shown in fig. 4, a specific implementation of the method for determining location information provided by the embodiment of the present application will be described. Referring to fig. 5, fig. 5 is a flowchart illustrating a method for determining location information according to an exemplary embodiment, which may be implemented by the above-described electronic device through interaction of a plurality of modules as shown in fig. 4. The method may include some or all of the following:
Step 501: the first functional module receives a specified triggering operation, and the specified triggering operation is used for triggering the first functional module to generate a position inquiry triggering event.
As an example of the present application, the first functional module may be any application program with a location information query requirement in the electronic device, or may be a functional module for on-screen and off-screen.
The specified triggering operation may be performed by a user. In one example, where the first functional module is an application, the specified triggering operation may be an application launch operation. For example, the first functional module is a driving application program installed in the electronic device, and when a user wants to drive, the user clicks an application icon of the driving application program, and accordingly, the driving application program receives a specified triggering operation.
It should be noted that, the above only uses the specified triggering operation as the application program starting operation, and in another example, the specified triggering operation may also be a triggering operation for triggering the first functional module to execute a certain function, for example, the first functional module is a navigation application program, and the specified triggering operation may also be a positioning triggering operation, which is not limited in this embodiment of the present application.
Step 502: the first functional module issues a location query request.
The location query request is for requesting a location information query. That is, when the first functional module has a position query triggering event, it is indicated that the first functional module has a requirement for acquiring position information, and a position query request can be sent out at this time.
Step 503: the sensing module monitors the location query request.
In one example, the first functional module may send the location query request directly to the awareness module.
In another example, the first functional module may also perform monitoring registration in the sensing module in advance, so that the sensing module actively monitors the first functional module, and thus, when the first functional module sends a location query request, the first functional module can monitor.
Step 504: the sensing module queries first time information when the position query request is monitored last time.
It will be appreciated that the last monitored location query request may be issued by the first functional module or by the second functional module, which may be, by way of example and not limitation, another application in the electronic device than the first functional module.
As an example of the present application, each time the sensing module monitors a location query request, time information at that time may be recorded, and illustratively, each recorded time information may be stored in the information buffer space of the sensing module in the form of a time stamp. Therefore, after the sensing module monitors the position query request this time, the time information recorded last time can be obtained from the information cache space, and for convenience of understanding and description, the time information is hereinafter referred to as first time information.
Typically, in order to save information cache space, the sensing module may store only the last recorded time information in the information cache space. For example, after the position inquiry request is monitored and the first time information is inquired, the sensing module stores the current time information into the information cache space, and deletes the original first time information in the information cache space.
Further, the information cache space also stores the location information determined by the historical location information query. For example, the method can also be used for storing the position information determined when the position information inquiry is performed last time, and the position information determined when the position information inquiry is performed last time is recorded as recontloc for the convenience of understanding and description.
Step 505: and the sensing module determines the time difference value between the last time the position inquiry request is monitored and the current time according to the first time information.
As an example of the present application, the sensing module queries the time management application of the electronic device (such as an alarm clock application in a mobile phone) for time information of the current time, for example, a time information acquisition request may be sent to the time management application, and accordingly, the time management application returns the time information of the current time (which may be referred to as the second time information). Therefore, the sensing module can determine the time difference value according to the first time information and the second time information.
Step 506: and under the condition that the time difference value is greater than or equal to the time threshold value, the sensing module determines the number of position request times, wherein the number of position request times is the number of times that the historical position inquiry request is monitored in a time period from the appointed time to the current time.
The time threshold may be set according to actual requirements, and in one example, the time threshold may be 1 minute.
The specified time may be set according to actual demands, and is exemplified by 0 point per day.
The historical location query request may be sent by at least one functional module.
Taking the example that the designated time is 0 point of each day, when the time difference is greater than or equal to the time threshold, the time interval between the current time and the time when the position inquiry request is monitored last time is long, at this time, the electronic device may be moved to another position with the user, in this case, the sensing module may count how many position inquiry requests are monitored in total until the current time of the day expires, so as to obtain the number of position request times, so as to determine what mode to determine the position information according to the number of position request times.
Step 507: and under the condition that the number of the position requests is smaller than the number threshold, the sensing module sends a network query request to the WiFi management module.
The frequency threshold can be set according to actual requirements. In one example, the number of times threshold may be 400 times.
The network query request is used for requesting to query the current WiFi network connection condition of the electronic equipment. That is, under the condition that the number of the position requests is small, the sensing module can query the connection condition of the WiFi network so as to determine whether the position information query can be performed according to the connection condition of the WiFi network.
It should be noted that, in the embodiment of the present application, the wireless lan is exemplified by a WiFi network, and in another embodiment, the wireless lan may also be another network, which is not limited by the embodiment of the present application.
In the present embodiment, a case where the number of position requests is smaller than the number threshold is described as an example. In another embodiment, in the case where the number of location requests is greater than or equal to the number threshold, the specific implementation procedure may be referred to as the embodiment shown in fig. 6 below.
It should be noted that, since the electronic device generally has a maximum of about 400 times of screen lighting and application program opening, setting the time duration threshold to 1 minute and the time number threshold to 400 times can generally cover most of the location information query requirements. The 1 minute interval approximately meets the requirement of 400 location information queries, and can cover approximately 6 hours of on-screen use and off-screen operation.
Step 508: the WiFi management module sends a network query response to the sensing module.
As described above, since the WiFi management module is capable of sensing whether the electronic device is connected to the WiFi network, and determining the network identifier of the connected WiFi network when the electronic device is connected to the WiFi network, the WiFi management module responds to the network query request sent by the sensing module, and feeds back the connection condition of the WiFi network of the electronic device to the sensing module. By way of example and not limitation, the WiFi management module may feed back to the awareness module through a web query response.
In one possible case, the electronic device is not currently connected to the WiFi network, and at this time, the indication information for indicating that the WiFi network is not currently connected may be carried in the network query response.
In another possible case, the electronic device is currently connected to the WiFi network, and at this time, the network query response may carry a network identifier of the WiFi network, which indicates that the electronic device is currently connected to the WiFi network indicated by the network identifier. The awareness module may store the network identification of the WiFi network in an information cache space.
Further, the network query response may further carry network type indication information, where the network type indication information is used to indicate a network type of a WiFi network currently connected, where the network type includes a retinue WiFi network or a non-retinue WiFi network, and the retinue WiFi network refers to a hotspot whose coverage area can be changed along with movement of the electronic device, for example, a mobile phone is turned on.
As an example of the present application, if the network query response carries indication information for indicating that the WiFi network is not currently connected, the following step 509 is entered. Otherwise, if the network query response carries the WiFi network identifier, the implementation flow refers to the embodiment shown in fig. 7.
Step 509: under the condition that the current unconnected WiFi network is determined according to the network query response, the sensing module determines the state of the electronic equipment in the time period from the last time of monitoring the position query request to the current time according to the periodically queried state information from the intermediate processing unit.
The state of the electronic device includes a stationary state or a non-stationary state.
As described above, the intermediate processing unit of the application layer may sense the state of the electronic device in real time, and as an example of the present application, the sensing module may periodically query the state information of the electronic device from the intermediate processing unit after running, and store the state information queried each time in correspondence with the query time. Thus, when the state of the electronic device needs to be determined, the sensing module can query according to the stored data, that is, the sensing module can query the state of the electronic device in a period from the last time when the position query request is monitored to the current time.
The period duration can be set according to actual requirements. By way of example and not limitation, the period duration may be 5 seconds.
The above description is given taking the state of querying the electronic device by the intermediate processing unit as an example. In another embodiment, the sensing module may further determine the state of the electronic device by periodically acquiring the acquired data of the acceleration sensor and the gyro sensor from the kernel layer, which is not limited by the embodiment of the present application.
In one possible scenario, the status query result may be that the electronic device is in a stationary state for the period of time, in which case the following step 510 is entered.
In another possible case, the status query result may also be that the electronic device is not always in a stationary state for the period of time. In this case, the implementation flow may be referred to as an embodiment shown in fig. 8.
Step 510: if the electronic equipment is in a static state in the period from the last time of monitoring the position inquiry request to the current time, the sensing module determines the inquiry result of the last position inquiry request as the position information inquired at this time.
If the status query results indicate that the electronic device is in a static status within the time period, it can be generally considered that the position of the electronic device has not changed, for example, the application scenario shown in fig. 2 is that the position of the electronic device has not changed all the time, so in this case, the sensing module can determine the query result of the last position query request as the position information queried this time.
Step 511: the sensing module sends the queried position information to the first functional module.
It should be noted that, the above steps 506 to 511 are described by taking the time difference value greater than or equal to the time threshold value as an example. In another embodiment, the time difference may be smaller than the time threshold, where the time interval between the current time and the last time the location query request is monitored is shorter, and the location of the electronic device may be considered unchanged or may be ignored even if the change occurs. For example, as shown in fig. 1, the electronic device simply moves from the position 1 to the position 2, and as for the driving application program, when the position is changed, a position inquiry request is sent, and the time interval between two position information inquiries is shorter. In this case, the sensing module may feed back the location information determined when the location information query was performed last time to the first functional module, for example, the sensing module may obtain the recentloc from the information cache space, and then send the recentloc to the first functional module.
It should be noted that if the location query request is monitored, the time interval between the monitoring and the last monitoring of the location query request is firstly determined, if the time interval is shorter, the location information determined during the last location information query can be reused, the repeated positioning operation is avoided, and a certain running power consumption can be saved. If the time interval between the monitoring and the last monitoring of the position inquiry request is longer, the position request times are determined. Under the condition that the number of times of position requests is smaller than the number of times threshold, the positioning operation is not directly performed through the positioning component, but the position information is queried according to the connection condition of the WiFi network, if the WiFi network is not connected, the electronic equipment is queried whether the electronic equipment is always in a static state or not in a period from the last time of monitoring the position query request to the current time, and if the electronic equipment is always in the static state, the position of the electronic equipment is not changed, so that the position information determined during the last time of position information query can be directly reused, repeated positioning operation is avoided, and the running power consumption of the electronic equipment is saved.
Referring to fig. 6, fig. 6 is a flowchart illustrating a method for determining location information according to another exemplary embodiment. The method mainly comprises the following steps:
step 601 to step 606 please refer to step 501 to step 506 in the embodiment shown in fig. 5.
Step 607: and under the condition that the number of times of the position request is greater than or equal to a number threshold value, the sensing module sends a first positioning instruction to the position information management module, wherein the first positioning instruction is used for indicating the cell position information of the cell where the feedback electronic equipment is currently located.
As an example of the present application, the cell location information is cellid.
When the number of the position requests is greater than or equal to the number threshold, it is indicated that the electronic device has monitored the position query request for multiple times, and at this time, in order to avoid excessive power consumption of operation of the electronic device, the sensing module may request the position information management module to obtain the cell position information, so as to determine the query result of this time.
Step 608: the location information management module obtains cell location information.
As an example and not by way of limitation, cell location information may be stored in memory such that when the location information management module receives the first positioning instruction, the cell location information may be retrieved from memory.
Step 609: the location information management module sends the cell location information to the sensing module.
Step 610: the sensing module determines the cell position information as the position information queried at the time.
As an example of the present application, after the sensing module determines the cell location information as the location information queried this time, the cell location information may be updated to the information buffer space, that is, the recentloc is updated to the cell location information, so that if the location information needs to be multiplexed when the location query request is monitored next time, the location information determined last time may be directly read from the information buffer space.
As an example of the present application, the sensing module may store the cell location information in the information buffer space after receiving the cell location information.
Step 611: the sensing module sends the queried position information to the first functional module.
The above description is given taking, as an example, a case where the number of times of the position request is equal to or greater than the number threshold, the current query result is determined by acquiring the cell position information. In another embodiment, if the number of location requests is greater than or equal to the number threshold, the electronic device may further continue to query the state in a period from the time when the electronic device last monitored the location query request to the current time. If the electronic equipment is always in a static state in the time period, determining the query result of the last position query request as the position information queried at this time, otherwise, if the electronic equipment is not always in the static state in the time period, determining the query result at this time by acquiring the cell position information according to the flow.
It should be noted that, since the cell location information is determined in advance by the base station according to the cell accessed by the electronic device, the positioning component is not required to be invoked, so the power consumption is lower. Therefore, when the number of times of the location request is greater than or equal to the number threshold, the operation power consumption of the electronic device can be reduced by determining the cell location information to perform the location information query.
Referring to fig. 7, fig. 7 is a flowchart illustrating a method for determining location information according to another exemplary embodiment. The method mainly comprises the following steps:
steps 701 to 708 may be referred to as steps 501 to 508 in the embodiment shown in fig. 5.
Step 709: under the condition that the currently connected WiFi network is determined according to the network inquiry response, if the sensing module inquires that the position information with the mapping relation with the first wireless local area network identifier exists in the target mapping table, the position information with the mapping relation with the first wireless local area network identifier is determined to be the inquired position information of this time, the target mapping table is used for recording the mapping relation between the wireless local area network identifier and the position information, and the first wireless local area network identifier is the network identifier of the currently connected WiFi network.
That is, if the network query response carries the network identifier of the WiFi network, it may be determined that the electronic device is currently connected to the WiFi network, and in this case, the sensing module may query whether the stored target mapping table has location information having a mapping relationship with the network identifier (i.e. the first wireless local area network identifier). If the position information exists, the position information with the mapping relation with the network identification can be determined as the position information queried at the time. For example, as shown in fig. 3, in the case that the user accesses the WiFi network at home, the current location information may be determined as the address information of the home.
Further, under the condition that the network query response carries network type indication information, if the network type indication information indicates that the currently accessed WiFi network is not a follow-up WiFi network, the target mapping table is queried; otherwise, if the network type indication information indicates that the WiFi network currently accessed is a satellite WiFi network, the sensing module determines that the location information is not queried according to the wlan connection condition, then the sensing module determines the state of the electronic device in a period from the last time the location query request was monitored to the current time, and then may perform subsequent operations according to the flow from step 510 to step 511 in fig. 5.
Step 710: the sensing module sends the queried position information to the first functional module.
Step 711: the perception module updates the recontloc to the position information with the mapping relation with the first wireless local area network identifier.
It should be noted that the foregoing description is given by taking, as an example, that there is location information having a mapping relationship with the first wireless lan identifier in the target mapping table. In another possible case, if the location information having the mapping relation with the first wireless lan identifier does not exist in the target mapping table, that is, if the location information having the mapping relation with the first wireless lan identifier does not exist in the target mapping table, it indicates that the location information cannot be queried according to the connection condition of the wireless lan, in this case, the sensing module may determine the state of the electronic device in a period from the time when the location query request was last monitored to the current time, and then perform the subsequent operations according to the flow from step 510 to step 511 in fig. 5.
It is worth mentioning that, under the condition that the position information can not be queried according to the connection condition of the wireless local area network, whether the electronic equipment is in a static state in the time period can be further judged, and under the condition that the electronic equipment is in the static state, the query result of the last position query request is determined to be the queried position information, so that the need of calling a positioning component can be avoided, and the purpose of saving the running power consumption of the electronic equipment is achieved. In addition, when the position information can be inquired according to the connection condition of the wireless local area network, the inquired position information can be directly determined as the inquiring result, the need of calling a positioning component is avoided, and the running power consumption of the electronic equipment is reduced.
Referring to fig. 8, fig. 8 is a flowchart illustrating a method for determining location information according to another exemplary embodiment. The method mainly comprises the following steps:
steps 801 to 809 can be seen from steps 501 to 509 in the embodiment shown in fig. 5.
Step 810: and if the electronic equipment is not in the static state all the time in the period from the last time of monitoring the position inquiry request to the current time, the sensing module sends a second positioning instruction to the position information management module.
The second positioning instruction is used for indicating the position information management module to perform positioning operation through the positioning component.
Step 811: in response to the second positioning instruction, the location information management module invokes the positioning component.
In one example, the location information management module invokes a GPS positioning component.
Step 812: and the positioning component performs positioning operation to obtain a positioning result.
As an example of the present application, the positioning result includes latitude and longitude information, that is, lat information and long information.
Step 813: the positioning component sends the positioning result to the position information management module.
Step 814: the position information management module feeds back the positioning result to the sensing module.
Step 815: and the sensing module determines the position information queried at the time according to the positioning result.
Step 816: the sensing module sends the queried position information to the first functional module.
As one example, the perception module may store the positioning result in the information cache space after it is received.
As an example of the present application, after the sensing module sends the second positioning instruction to the location information management module, a WiFi connection monitoring request may also be sent to the WiFi management module, so as to request the WiFi management module to feed back, to the sensing module, a network identifier (referred to as a second wireless local area network identifier) of the reconnected WiFi network when the sensing module senses that the electronic device is reconnected to the WiFi network. Thus, after the sensing module receives the positioning result fed back by the position information management module, if the WiFi management module feeds back the second wireless local area network identifier, the sensing module correspondingly stores the positioning result and the second wireless local area network identifier in the target mapping table for next judgment.
It should be noted that, under the condition that the number of times of the position request is smaller than the number of times threshold, if the position information is not queried according to the wireless local area network identifier, and the electronic device is not always in a static state in a period from the last time the electronic device monitors the position query request to the current time, the electronic device performs positioning operation through the positioning component, so as to ensure that the position information can be successfully queried.
In order to facilitate understanding, the implementation process of the method for determining location information provided by the embodiment of the present application will be described with reference to the flowchart shown in fig. 9, using the electronic device as an execution body. Referring to fig. 9, the method mainly includes the following part or all of:
step 901: the first functional module issues a location query request.
Step 902: if the position inquiry request is monitored, determining a time difference value between the last time the position inquiry request is monitored and the current time.
Step 903: and judging whether the time difference value is smaller than a time threshold value.
If the time difference is less than the time threshold, then step 904 is entered, otherwise, if the time difference is greater than or equal to the time threshold, then step 905 is entered.
Step 904: and feeding back the query result of the last position query request to the first functional module.
It is worth mentioning that when the position inquiry request is monitored, the time difference between the time when the position inquiry request is monitored last time and the current time is determined, so that the last inquiry result is reused under the condition that the time difference is smaller, that is, the positioning operation through the positioning component is avoided each time, and therefore the running power consumption of the electronic equipment can be reduced.
It should be noted that, steps 902 to 904 are optional operations. In another example, if a location query request is heard, the following step 905 may be entered directly.
Step 905: the number of location requests is determined, which is the number of times that a historical location query request is monitored from a specified time to a current time.
Step 906: and judging whether the number of the position requests is larger than or equal to a number threshold.
If the number of location requests is greater than or equal to the number of times threshold, steps 907 to 909 are performed as follows, otherwise, if the number of location requests is less than the number of times threshold, step 910 is entered as follows.
Step 907: and acquiring the current cell position information.
Step 908: and determining the cell position information as the position information queried at the time and feeding back the position information to the first functional module.
The specific implementation of steps 907 to 908 can be seen in the embodiment shown in fig. 6.
It is worth mentioning that, under the condition that the number of times of the position request is greater than or equal to the number threshold, the electronic device determines the position information of the query by acquiring the cell position information, and the positioning component is not required to be called, so that the power consumption is saved to a certain extent, and the purpose of low power consumption is achieved.
Step 909: and updating the cell position information into a recentloc, wherein the recentloc is used for recording the position information determined when the position information inquiry is carried out last time.
Step 910: and inquiring whether the electronic device is connected to the WiFi network.
If the electronic device is currently accessing the WiFi network, step 911 is entered as follows, otherwise, if the electronic device is not currently accessing the WiFi network, step 914 is entered as follows.
Step 911: and inquiring whether the position information corresponding to the first wireless local area network identifier of the WiFi network exists in the target mapping table.
The target mapping table is used for recording the mapping relation between the wireless local area network identification and the position information.
If there is location information corresponding to the first wlan identity in the target mapping table, the following steps 912 to 913 are performed, otherwise, if there is no location information corresponding to the first wlan identity in the target mapping table, the following step 914 is performed.
Step 912: and determining the position information corresponding to the first wireless local area network identifier as the position information queried at the time, and feeding back the position information to the first functional module.
Step 913: and updating the position information corresponding to the first wireless local area network identifier into the recentloc.
Step 914: and judging whether the electronic equipment is in a static state or not in a period from the last time of monitoring the position inquiry request to the current time.
The determination may be made in step 509 in the embodiment shown in fig. 5 described above.
If the electronic device is in a stationary state for the period of time, then step 915 is performed, otherwise, if the electronic device is not in a stationary state for the period of time, then step 916 is performed.
Step 915: and feeding back the query result of the last position query request to the first functional module.
Step 916: and positioning operation is carried out through the positioning component, so that a positioning result is obtained.
Step 917: and determining the positioning result as the position information queried at the time and feeding back the position information to the first functional module.
Step 918: and updating the positioning result to the recontloc.
Step 919: and if the electronic equipment is detected to be accessed to the WiFi network, storing the second wireless local area network identification of the accessed WiFi network and the positioning result in a target mapping table correspondingly.
It should be noted that, step 918 and step 919 are not strictly performed sequentially.
In the embodiment of the application, if the position inquiry request is monitored, the position request times are determined, wherein the position request times are the times of historical position inquiry requests monitored in a time period from the appointed time to the current time. If the number of the position requests is relatively large, the electronic equipment is indicated to have frequently monitored the position inquiry requests, and the position information to be inquired at this time can be determined by acquiring the cell position information. If the number of the position requests is small, the position information of the electronic device can be preferentially inquired according to the wireless local area network connection condition of the electronic device, and if the position information is not inquired according to the wireless local area network connection condition, whether the electronic device is in a static state or not is judged in a period from the last time when the electronic device monitors the position inquiry request to the current time, if the electronic device is in the static state all the time in the period, the electronic device is not moved in a high probability, namely the position is not changed, so that the inquiring result of the last position inquiry request can be determined to be the position information inquired at this time. That is, since the electronic device does not need to repeat the positioning operation when moving in a small range or being stationary, even if the number of position requests is small, the positioning component is not directly called to perform the positioning operation, but the position information is firstly queried according to the connection condition of the wireless local area network, and the state of the electronic device is judged when the query according to the connection condition of the wireless local area network fails.
In addition, it should be noted that, because there is almost no time delay in the connection process of the wireless local area network, the wireless local area network can be used for inquiring the position information after connection, and the coverage area (the range of about 10 meters to 40 meters) of the wireless local area network is smaller, when the electronic equipment moves in a small range, the position information is almost unchanged, and the state of the electronic equipment is judged to have a certain time delay error (about 5 seconds), and the state judgment result has a certain accuracy error.
Fig. 10 is a schematic structural diagram of an apparatus for determining location information according to an embodiment of the present application, where the apparatus may be implemented by software, hardware, or a combination of both, as part or all of an electronic device, and the electronic device may implement the methods of the foregoing embodiments. Referring to fig. 10, the apparatus includes at least a sensing module 1010 for:
If the position inquiry request is monitored, determining the position request times, wherein the position request times are the times of monitoring the historical position inquiry request in the time from the appointed time to the current time;
under the condition that the number of times of the position requests is larger than or equal to a number threshold, determining the cell position information of the cell where the electronic equipment is currently located as the position information queried at the time;
and inquiring the position information of the electronic equipment according to the wireless local area network connection condition of the electronic equipment when the position request times are smaller than the times threshold value, and determining the inquiring result of the last position inquiry request as the position information inquired at this time if the electronic equipment is in a static state in a period from the last time when the electronic equipment monitors the position inquiry request to the current time when the position information is not inquired according to the wireless local area network connection condition.
As an example of the present application, the sensing module 1010 is configured to:
if the number of the position requests is smaller than the number threshold, determining that the position information is not queried according to the connection condition of the wireless local area network if the electronic equipment is not connected with the wireless local area network; or alternatively, the process may be performed,
And if the number of the position requests is smaller than the number threshold, if the electronic equipment is connected with the wireless local area network and the position information with the mapping relation with the first wireless local area network identifier does not exist in a target mapping table, determining that the position information is not queried according to the connection condition of the wireless local area network, wherein the target mapping table is used for recording the mapping relation between the wireless local area network identifier and the position information, and the first wireless local area network identifier is the network identifier of the wireless local area network.
As an example of the present application, the sensing module 1010 is further configured to:
and if the number of the position requests is smaller than the number threshold, determining the position information with the mapping relation with the first wireless local area network identifier in the target mapping table as the position information queried this time if the electronic equipment is connected with the wireless local area network and the position information with the mapping relation with the first wireless local area network identifier exists in the target mapping table.
As an example of the present application, the sensing module 1010 is configured to:
and under the condition that the position inquiry request is monitored, if the time difference between the time when the position inquiry request is monitored last time and the current time is greater than or equal to a time threshold value, determining the position request times.
As an example of the present application, the sensing module 1010 is further configured to:
and under the condition that the position inquiry request is monitored, if the time difference between the time when the position inquiry request is monitored last time and the current time is smaller than the time threshold value, determining the inquiry result of the position inquiry request last time as the position information inquired this time.
As an example of the present application, the electronic device further includes a location information management module 1020;
in the case that the number of location requests is greater than or equal to the number threshold, the awareness module 1010 sends a first location instruction to the location information management module 1020;
in response to the first positioning instruction, the location information management module 1020 obtains the cell location information;
the location management module 1020 sends the cell location information to the awareness module 1010;
the sensing module 1010 determines the cell location information as the location information queried this time.
As an example of the present application, the sensing module 1010 is further configured to:
under the condition that the position information is not queried according to the connection condition of the wireless local area network, if the electronic equipment is not in a static state in the time period, positioning operation is carried out through a positioning component;
And determining the positioning result as the position information queried at the time.
As an example of the present application, the sensing module 1010 is further configured to:
when the fact that the electronic equipment is accessed to the wireless local area network is detected, a second wireless local area network identifier of the wireless local area network accessed to the electronic equipment and the positioning result are correspondingly stored in a target mapping table, and the target mapping table is used for recording the mapping relation between the wireless local area network identifier and the position information.
As an example of the present application, if the electronic device is not in a stationary state within the period of time in the case that the location information is not queried according to the wlan connection situation, the sensing module 1010 sends a second positioning instruction to the location information management module 1020;
in response to the second positioning instruction, the location information management module 1020 determines the positioning result through the positioning component;
the location information management module 1020 sends the positioning result to the sensing module 1010;
the sensing module 1010 determines the positioning result as the currently queried position information.
In the embodiment of the application, if the position inquiry request is monitored, the position request times are determined, wherein the position request times are the times of historical position inquiry requests monitored in a time period from the appointed time to the current time. If the number of the position requests is relatively large, the electronic equipment is indicated to have frequently monitored the position inquiry requests, and the position information to be inquired at this time can be determined by acquiring the cell position information. If the number of the position requests is small, the position information of the electronic device can be preferentially inquired according to the wireless local area network connection condition of the electronic device, and if the position information is not inquired according to the wireless local area network connection condition, whether the electronic device is in a static state or not is judged in a period from the last time when the electronic device monitors the position inquiry request to the current time, if the electronic device is in the static state all the time in the period, the electronic device is not moved in a high probability, namely the position is not changed, so that the inquiring result of the last position inquiry request can be determined to be the position information inquired at this time. That is, since the electronic device does not need to repeat the positioning operation when moving in a small range or being stationary, even if the number of position requests is small, the positioning component is not directly called to perform the positioning operation, but the position information is firstly queried according to the connection condition of the wireless local area network, and the state of the electronic device is judged when the query according to the connection condition of the wireless local area network fails.
It should be noted that: the device for determining location information provided in the above embodiment is only exemplified by the division of the above functional modules when determining location information, and in practical application, the above functional allocation may be performed by different functional modules according to needs, i.e., the internal structure of the device is divided into different functional modules to perform all or part of the functions described above.
The functional units and modules in the above embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiments of the present application.
The device for determining the location information provided in the foregoing embodiment and the method embodiment for determining the location information belong to the same concept, and specific working processes and technical effects brought by the units and the modules in the foregoing embodiment may be referred to a method embodiment part, which is not repeated herein.
As an example of the present application, the electronic device can access a base station while also having the capability of accessing a wireless local area network, such as a cell phone, tablet, smart watch, portable notebook, etc. Referring to fig. 11, fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces, such as may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (WiFi network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. Wireless communication techniques may include global system for mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being an integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. Such as storing files of music, video, etc. in an external memory card.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (e.g., audio data, phonebook, etc.) created by the electronic device 100 during use, and so forth. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes. It will be appreciated that the values acquired by the gyroscopic sensor 180B do not change when the electronic device is in a stationary state.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The acceleration sensor 180E may also be used to identify the gesture of the electronic device 100, and may be used in applications such as landscape switching, pedometers, and the like. It will be appreciated that the value acquired by the acceleration sensor 180E does not change in the case where the electronic apparatus is in a stationary state.
It follows that the gyro sensor 180B and the acceleration sensor 180E can be used to detect the state of the electronic apparatus, that is, determine whether the electronic apparatus is in a moving state or a stationary state.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor 180K may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys or touch keys. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being an integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, data subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium such as a floppy Disk, a hard Disk, a magnetic tape, an optical medium such as a digital versatile Disk (Digital Versatile Disc, DVD), or a semiconductor medium such as a Solid State Disk (SSD), etc.
The above embodiments are not intended to limit the present application, and any modifications, equivalent substitutions, improvements, etc. within the technical scope of the present application should be included in the scope of the present application.

Claims (11)

1. A method of determining location information, characterized by being applied to an electronic device, the method comprising:
if the position inquiry request is monitored, determining the position request times, wherein the position request times are the times of monitoring the historical position inquiry request in the time from the appointed time to the current time;
under the condition that the number of times of the position requests is larger than or equal to a number threshold, determining the cell position information of the cell where the electronic equipment is currently located as the position information queried at the time;
and inquiring the position information of the electronic equipment according to the wireless local area network connection condition of the electronic equipment when the position request times are smaller than the times threshold value, and determining the inquiring result of the last position inquiry request as the position information inquired at this time if the electronic equipment is in a static state in a period from the last time when the electronic equipment monitors the position inquiry request to the current time when the position information is not inquired according to the wireless local area network connection condition.
2. The method of claim 1, wherein the querying the location information of the electronic device according to the wireless lan connection condition of the electronic device if the number of location requests is less than a number threshold comprises:
if the number of the position requests is smaller than the number threshold, determining that the position information is not queried according to the connection condition of the wireless local area network if the electronic equipment is not connected with the wireless local area network; or alternatively, the process may be performed,
and if the number of the position requests is smaller than the number threshold, if the electronic equipment is connected with the wireless local area network and the position information with the mapping relation with the first wireless local area network identifier does not exist in a target mapping table, determining that the position information is not queried according to the connection condition of the wireless local area network, wherein the target mapping table is used for recording the mapping relation between the wireless local area network identifier and the position information, and the first wireless local area network identifier is the network identifier of the wireless local area network.
3. The method of claim 2, wherein the method further comprises:
and if the number of the position requests is smaller than the number threshold, determining the position information with the mapping relation with the first wireless local area network identifier in the target mapping table as the position information queried this time if the electronic equipment is connected with the wireless local area network and the position information with the mapping relation with the first wireless local area network identifier exists in the target mapping table.
4. A method according to any one of claims 1-3, wherein said determining the number of location requests if a location query request is heard comprises:
and under the condition that the position inquiry request is monitored, if the time difference between the time when the position inquiry request is monitored last time and the current time is greater than or equal to a time threshold value, determining the position request times.
5. The method of claim 4, wherein the method further comprises:
and under the condition that the position inquiry request is monitored, if the time difference between the time when the position inquiry request is monitored last time and the current time is smaller than the time threshold value, determining the inquiry result of the position inquiry request last time as the position information inquired this time.
6. The method of any of claims 1-5, wherein the electronic device includes a perception module and a location information management module therein; and determining the cell location information of the cell where the electronic device is currently located as the location information queried at the time when the number of the location requests is greater than or equal to the number threshold, including:
when the number of the position requests is greater than or equal to the number threshold, the sensing module sends a first positioning instruction to the position information management module;
The location information management module acquires the cell location information in response to the first positioning instruction;
the location management module sends the cell location information to the sensing module;
and the perception module determines the cell position information as the position information queried at the time.
7. The method according to any one of claims 1-6, wherein, when the number of location requests is smaller than a number threshold, after querying the location information of the electronic device according to a wireless lan connection situation of the electronic device, further comprising:
under the condition that the position information is not queried according to the connection condition of the wireless local area network, if the electronic equipment is not in a static state in the time period, positioning operation is carried out through a positioning component;
and determining the positioning result as the position information queried at the time.
8. The method of claim 7, wherein after determining the positioning result as the currently queried position information, further comprising:
when the fact that the electronic equipment is accessed to the wireless local area network is detected, a second wireless local area network identifier of the wireless local area network accessed to the electronic equipment and the positioning result are correspondingly stored in a target mapping table, and the target mapping table is used for recording the mapping relation between the wireless local area network identifier and the position information.
9. The method of claim 7 or 8, wherein the electronic device includes a sensing module and a location information management module therein; and if the electronic device is not in a static state in the time period under the condition that the position information is not queried according to the connection condition of the wireless local area network, performing positioning operation through a positioning component, including:
under the condition that the position information is not queried according to the connection condition of the wireless local area network, if the electronic equipment is not in a static state in the time period, the sensing module sends a second positioning instruction to the position information management module;
in response to the second positioning instruction, the position information management module determines the positioning result through the positioning component;
the position information management module sends the positioning result to the sensing module;
the determining the positioning result as the position information queried this time includes:
and the perception module determines the positioning result as the position information queried at the time.
10. An electronic device, the electronic device comprising: a processor and a memory;
the memory is used for storing a program for the electronic device to execute the method according to any one of claims 1-9 and storing data related to the implementation of the method according to any one of claims 1-9;
The processor is configured to execute a program stored in the memory.
11. A computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of any of claims 1-9.
CN202211062466.5A 2022-08-31 2022-08-31 Method for determining position information, electronic device and readable storage medium Active CN116033333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211062466.5A CN116033333B (en) 2022-08-31 2022-08-31 Method for determining position information, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211062466.5A CN116033333B (en) 2022-08-31 2022-08-31 Method for determining position information, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN116033333A CN116033333A (en) 2023-04-28
CN116033333B true CN116033333B (en) 2023-10-17

Family

ID=86072907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211062466.5A Active CN116033333B (en) 2022-08-31 2022-08-31 Method for determining position information, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN116033333B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010041461A (en) * 2008-08-06 2010-02-18 Fujitsu Ltd Radio base station device and method for controlling suppression for location registration
CN103916868A (en) * 2012-12-31 2014-07-09 中国移动通信集团浙江有限公司 Location area optimization method and system
CN107864450A (en) * 2017-06-26 2018-03-30 平安普惠企业管理有限公司 Positional information dissemination method, device and computer-readable recording medium
CN111328078A (en) * 2018-12-17 2020-06-23 中国移动通信集团北京有限公司 Method and device for positioning pseudo base station
WO2020132878A1 (en) * 2018-12-25 2020-07-02 华为技术有限公司 Bluetooth service query method and electronic device
CN111918386A (en) * 2020-07-03 2020-11-10 Oppo广东移动通信有限公司 Positioning method, positioning device, storage medium and electronic equipment
CN112533246A (en) * 2020-12-08 2021-03-19 广东小天才科技有限公司 Monitoring system and method for frequent network requests of intelligent equipment
CN114116610A (en) * 2020-08-28 2022-03-01 华为技术有限公司 Method, device, electronic equipment and medium for acquiring storage information

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8036677B2 (en) * 2006-01-31 2011-10-11 Kyocera Corporation System and method for locating a phone user
US20080062913A1 (en) * 2006-08-21 2008-03-13 Nokia Corporation Method and apparatus for providing enhancement to periodical reporting criteria for user equipment (UE) positioning
WO2020064094A1 (en) * 2018-09-26 2020-04-02 Telefonaktiebolaget Lm Ericsson (Publ) Method and system for predicting a state of a cell in a radio access network
CN112100418A (en) * 2020-09-11 2020-12-18 北京百度网讯科技有限公司 Method and device for inquiring historical street view, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010041461A (en) * 2008-08-06 2010-02-18 Fujitsu Ltd Radio base station device and method for controlling suppression for location registration
CN103916868A (en) * 2012-12-31 2014-07-09 中国移动通信集团浙江有限公司 Location area optimization method and system
CN107864450A (en) * 2017-06-26 2018-03-30 平安普惠企业管理有限公司 Positional information dissemination method, device and computer-readable recording medium
CN111328078A (en) * 2018-12-17 2020-06-23 中国移动通信集团北京有限公司 Method and device for positioning pseudo base station
WO2020132878A1 (en) * 2018-12-25 2020-07-02 华为技术有限公司 Bluetooth service query method and electronic device
CN111918386A (en) * 2020-07-03 2020-11-10 Oppo广东移动通信有限公司 Positioning method, positioning device, storage medium and electronic equipment
CN114116610A (en) * 2020-08-28 2022-03-01 华为技术有限公司 Method, device, electronic equipment and medium for acquiring storage information
CN112533246A (en) * 2020-12-08 2021-03-19 广东小天才科技有限公司 Monitoring system and method for frequent network requests of intelligent equipment

Also Published As

Publication number Publication date
CN116033333A (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN113434288B (en) Memory management method and electronic equipment
WO2022089207A1 (en) Cross-device application interaction method, electronic device, and server
WO2022089208A1 (en) File dragging method, and electronic device
WO2020211705A1 (en) Contact person recommendation method and electronic device
CN114466102B (en) Method for displaying application interface, related device and traffic information display system
CN114461239B (en) Software upgrading system and software upgrading method
CN110764825B (en) Starting method and terminal equipment
CN112988213B (en) Program data updating method, electronic equipment and computer storage medium
WO2022121445A1 (en) Widget adding method, apparatus, and computer-readable storage medium
CN116431044A (en) Method and device for starting application program and terminal equipment
CN112612539B (en) Data model unloading method and device, electronic equipment and storage medium
CN114741039A (en) Device control method and terminal device
CN115655310B (en) Data calibration method, electronic device and readable storage medium
CN116033333B (en) Method for determining position information, electronic device and readable storage medium
CN112597417B (en) Page updating method and device, electronic equipment and storage medium
CN117009023B (en) Method for displaying notification information and related device
WO2023236791A1 (en) Method for calibrating satellite short message communication charging, and device
CN112014866B (en) Motion trail recording method and related equipment
CN115794272B (en) Display method and electronic equipment
WO2023051098A1 (en) Device search method, electronic device, and system
CN117729561A (en) System upgrading method, terminal and storage medium
CN116700813A (en) Method for loading widget, electronic device and readable storage medium
CN117707718A (en) Process management method, electronic device and readable storage medium
CN116009742A (en) Cross-equipment file display method, equipment and system
CN116662150A (en) Application starting time-consuming detection method and related device

Legal Events

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