Positioning mode control method, terminal device and related device
By implementing the control method of positioning mode in the terminal device, the problem of low GNSS positioning efficiency in a satellite signal-free environment is solved. By saving identification information and switching to the LBS positioning mode, the positioning efficiency and battery life are improved.
Patent Information
- Application Number
- PCT/CN2024/093703
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-14
- Filing Date
- 2024-05-16
- Publication Date
- 2025-02-20
AI Technical Summary
In an environment without satellite signals, GNSS positioning will search for stars for a long time but cannot obtain signals, resulting in location failure, affecting efficiency and increasing power consumption.
By implementing a control method of positioning mode in the terminal device, the positioning state is obtained and whether it is the first positioning state is determined. When the positioning signal is not obtained, the identification information and signal strength information of the target service area are saved, marked as the second positioning state, and switched to the LBS positioning mode.
Improves the positioning efficiency of terminal devices, reduces power consumption, and extends battery life.
Smart Images

Figure CN2024093703_20022025_PF_FP_ABST
Abstract
Description
A positioning mode control method, terminal device and related equipment
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on August 14, 2023, with application number 202311023069.1 and application name “A positioning mode control method, terminal device and related equipment”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of positioning technology, and in particular to a positioning mode control method, terminal equipment and related equipment. Background Art
[0003] With the rapid development of computer science, PC (Personal Computer) IoT (Internet of Things) modules can support both GNSS (Global Navigation Satellite System) positioning and LBS (Location Based Services) positioning.
[0004] Traditionally, when a module uses GNSS positioning, it can normally locate the device in an environment with satellite signals. However, when the module is in an environment without satellite signals for a long time, each positioning cycle will require a long search for satellites, but the module will not be able to obtain satellite signals, resulting in positioning failure. This not only affects positioning efficiency, but also increases module power consumption and reduces PC battery life. Therefore, improving positioning efficiency has become a pressing technical issue.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a positioning mode control method, a terminal device, and related devices, which improve the positioning efficiency of the terminal device, reduce the power consumption of the terminal device, and increase the battery life of the terminal device.
[0007] In the first aspect, an embodiment of the present application provides a method for controlling a positioning mode, which is applicable to a terminal device. The method includes: obtaining a positioning state corresponding to a first positioning mode of the terminal device, and determining whether the positioning state is a first positioning state, wherein the positioning state is used to indicate whether the terminal device searched for a positioning signal when the first positioning mode was used for positioning last time. When the positioning state is the first positioning state, positioning is performed and a positioning signal is obtained through the first positioning mode. When the positioning signal is not obtained, the target identification information and target signal strength information corresponding to the current target service area of the terminal device are saved to a preset signal identification library, wherein the signal identification library is used to store the identification information and signal strength information of the service area corresponding to when the terminal device cannot search for a positioning signal. And, marking the positioning state as a second positioning state, and performing positioning through the second positioning mode.
[0008] In conjunction with the first aspect, in one feasible implementation, the method further includes: when the positioning state is not the first positioning state, determining whether identification information matching the target identification information is stored in the signal identification library, and whether the difference between the signal strength information corresponding to the identification information and the target signal strength information is less than a preset threshold. If the determination is yes, positioning is performed using the second positioning mode. If the determination is no, positioning is performed using the first positioning mode.
[0009] In combination with the first aspect, in a feasible implementation manner, the method further includes: when the positioning signal is acquired, marking the positioning state as the first positioning state, and waiting for the positioning period corresponding to the first positioning state to expire.
[0010] In conjunction with the first aspect, in one feasible implementation, before obtaining the positioning status corresponding to the first positioning mode of the terminal device, the method further includes: determining whether the positioning period corresponding to the first positioning mode has expired. If the period has expired, obtaining target identification information and target signal strength information corresponding to the current target service area of the terminal device, as well as the positioning status corresponding to the first positioning mode of the terminal device.
[0011] In combination with the first aspect, in a feasible implementation, the first positioning mode is positioning based on the global navigation satellite system GNSS, and the second positioning mode is location-based service LBS positioning.
[0012] In combination with the first aspect, in a feasible implementation method, the identification information of the service area includes a physical cell identifier PCI or a cell identification code Cell ID, and the signal strength information includes one or more of the received signal strength indication RSSI, the reference signal received power RSRP or the reference signal received quality RSRQ.
[0013] In a second aspect, an embodiment of the present application provides a terminal device, comprising: an acquisition unit for acquiring a positioning state corresponding to a first positioning mode of the terminal device, wherein the positioning state is used to indicate whether the terminal device searched for a positioning signal when the first positioning mode was used for positioning last time. A processing unit is used to determine whether the positioning state is the first positioning state. The processing unit is also used to, when the positioning state is the first positioning state, perform positioning and obtain a positioning signal using the first positioning mode. The processing unit is also used to, when the positioning signal is not obtained, save the target identification information and target signal strength information corresponding to the current target service area of the terminal device to a preset signal identification library, wherein the signal identification library is used to store the identification information and information strength information of the service area corresponding to when the terminal device cannot search for a positioning signal. The processing unit is also used to mark the positioning state as a second positioning state and perform positioning using the second positioning mode.
[0014] In conjunction with the second aspect, in a feasible implementation, the processing unit is further configured to, when it is determined that the positioning state is not the first positioning state, determine whether identification information matching the target identification information is stored in the signal identification library, and whether the difference between the signal strength information corresponding to the identification information and the target signal strength information is less than a preset threshold. The processing unit is further configured to, when the determination is yes, perform positioning using the second positioning mode. The processing unit is further configured to, when the determination is no, perform positioning using the first positioning mode.
[0015] In combination with the second aspect, in a feasible implementation, the processing unit is further configured to mark the positioning state as the first positioning state when the positioning signal is acquired, and wait for the positioning period corresponding to the first positioning state to expire.
[0016] In conjunction with the second aspect, in one feasible implementation, the processing unit is further configured to determine whether the positioning period corresponding to the first positioning mode has expired. When the period expires, the processing unit is further configured to obtain target identification information and target signal strength information corresponding to the current target service area of the terminal device, as well as the positioning status corresponding to the first positioning mode of the terminal device.
[0017] In combination with the second aspect, in a feasible implementation, the first positioning mode is positioning based on the global satellite navigation system GNSS, and the second positioning mode is location-based service LBS positioning.
[0018] In combination with the second aspect, in a feasible implementation method, the identification information of the service area includes a physical cell identifier PCI or a cell identification code Cell ID, and the signal strength information includes one or more of the received signal strength indication RSSI, the reference signal received power RSRP or the reference signal received quality RSRQ.
[0019] In a third aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program. When the computer program runs on a computer, the computer executes the positioning mode control method provided by any possible implementation method in the first aspect above, and can also achieve the beneficial effects of the positioning mode control method provided by the first aspect.
[0020] In a fourth aspect, embodiments of the present application provide an electronic device, which may include a processor and a memory, the processor and memory being interconnected. The memory is configured to store a computer program, and the processor is configured to execute the computer program to implement the positioning mode control method provided in the first aspect, thereby achieving the beneficial effects of the positioning mode control method provided in the first aspect.
[0021] The details of one or more embodiments of the present application are set forth in the following drawings and description. Other features, objects, and advantages of the invention will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] FIG1 is a schematic flow chart of a method for controlling a positioning mode according to an embodiment of the present application;
[0024] FIG2 is a flow chart of another positioning mode control method provided in an embodiment of the present application;
[0025] FIG3 is a flow chart of another positioning mode control method provided in an embodiment of the present application;
[0026] FIG4 is a flow chart of another positioning mode control method provided in an embodiment of the present application;
[0027] FIG5 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
[0028] FIG6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0030] In the prior art, when a terminal device uses GNSS (Global Navigation Satellite System) positioning, it can normally locate the device in an environment with satellite signals. However, when the device is in an environment without satellite signals for a long time, each positioning cycle will end, and GNSS positioning will search for satellite signals for a long time, but will not be able to obtain satellite signals, resulting in positioning failure. This not only affects positioning efficiency, but also increases module power consumption and reduces the battery life of the terminal device. Therefore, the technical problem to be solved by this application is: how to improve the positioning efficiency of terminal devices.
[0031] In the embodiments of the present application, the terminal device can be any electronic device that supports GNSS positioning and LBS positioning, such as a smartphone, a portable laptop, a desktop computer, a wearable device, a head-mounted device, a vehicle-mounted terminal, etc. The present application does not impose any specific restrictions on the implementation form of the terminal device.
[0032] Please refer to Figure 1, which is a flow chart of a method for controlling a positioning mode provided in an embodiment of the present application. The method can be applied to a terminal device. As shown in Figure 1, the method may include the following steps:
[0033] S101, obtaining a positioning state corresponding to a first positioning mode of a terminal device, and determining whether the positioning state is the first positioning state.
[0034] In some feasible implementations, the terminal device may obtain the positioning state corresponding to its first positioning mode, and determine whether the positioning state is the first positioning state.
[0035] Among them, the positioning status corresponding to the first positioning mode can be used to indicate whether the terminal device searched for a positioning signal when it was last positioned using the first positioning mode.
[0036] Optionally, the positioning state corresponding to the first positioning mode may include a first positioning state and a second positioning state. The first positioning state may be used to indicate that the terminal device was able to search for a positioning signal the last time it was positioned using the first positioning mode. The second positioning state may be used to indicate that the terminal device failed to search for a satellite signal the last time it was positioned using the first positioning mode. Exemplarily, the first positioning state may be represented by a first preset value, and the second positioning state may be represented by a second preset value, e.g., the first preset value may be 0, and the second preset value may be 1.
[0037] Optionally, the first positioning mode may be positioning based on GNSS (Global Navigation Satellite System).
[0038] S102: When the positioning state is the first positioning state, positioning is performed through the first positioning mode and a positioning signal is acquired.
[0039] In some feasible implementations, when the terminal device determines that the positioning state corresponding to its first positioning mode is the first positioning state, it can perform positioning through the first positioning mode and obtain a positioning signal.
[0040] Optionally, in the case where the first positioning mode is GNSS-based positioning, after the terminal device determines that its positioning state is the first positioning state, positioning can be achieved through the GNSS positioning module in the terminal device, and further determine whether the positioning signal can be obtained. Specifically, when the terminal device determines that the GNSS positioning module therein outputs an indication message, it can be determined that the terminal device can obtain the positioning signal through the GNSS positioning module. When the terminal device determines that the GNSS positioning module therein does not output an indication message, it can be determined that the terminal device has failed to obtain the positioning signal through the GNSS positioning module. Among them, the indication message can be used to indicate whether the terminal device can obtain the positioning signal through the GNSS positioning module.
[0041] It's important to understand that satellite signals are difficult to receive indoors or in tunnels, where coverage is weak. Urban areas, tall buildings, or obstructions may also affect satellite signal reception. Alternatively, nearby electromagnetic interference can mask satellite signals, making it impossible to lock onto a satellite.
[0042] S103: When no positioning signal is obtained, the target identification information and target signal strength information corresponding to the current target service area of the terminal device are saved in a preset signal identification library.
[0043] In some feasible implementations, when the terminal device determines that no positioning signal is obtained, the target identification information and target signal strength information corresponding to the current target service area of the terminal device may be saved in a preset signal identification library.
[0044] The signal identification library can be used to store identification information and signal strength information for service areas corresponding to when a terminal device is unable to search for a positioning signal. It should be noted that the signal identification library can store multiple sets of identification information and signal strength information for service areas, each set of identification information and signal strength information corresponding to the terminal device's current service area when the terminal device fails to obtain a positioning signal.
[0045] The target identification information refers to the ID of the cellular cell that the terminal device is currently located in. The target signal strength information refers to the indication information of the quality of the wireless signal currently received by the terminal device from the base station.
[0046] Optionally, the identification information of the service area may include a PCI (Physical Cell Identifier) or a Cell ID (Cell Identity). The signal strength information may include one or more of a received signal strength indication (RSSI), a reference signal received power (RSRP), or a reference signal received quality (RSRQ).
[0047] For example, if the service area identification information is a Cell ID and the signal strength information is RSSI, assume that the satellite-free identification library may store three sets of Cell IDs and RSSIs. The first set of Cell IDs and RSSIs are 3F and -85dBm, respectively. The second set of Cell IDs and RSSIs are 80 and -60dBm, respectively. The third set of Cell IDs and RSSIs are 0A and -75dBm, respectively.
[0048] It should be understood that when the terminal device determines that the positioning signal is not obtained, it indicates that the terminal device cannot determine the current location of the terminal device through the first positioning mode.
[0049] S104: Mark the positioning state as a second positioning state, and perform positioning using a second positioning mode.
[0050] In some feasible implementations, after determining that no positioning signal is acquired, the terminal device may mark the positioning state of the first positioning mode of the terminal device as a second positioning state, and may perform positioning using the second positioning mode.
[0051] Optionally, the second positioning mode may be LBS (Location Based Services) positioning. The embodiment of the present application does not specifically limit the type of the second positioning mode.
[0052] It should be noted that LBS positioning can determine the current location of a terminal device by using the distance measured by the base station to the terminal device. Specifically, the terminal device can calculate the distance to its surrounding base stations (at least three base stations) by measuring and calculating the distance. Then, a circle is drawn with each base station as the center and the measured distance as the radius. The intersection of the obtained circle is the current location of the terminal device.
[0053] Optionally, when the second positioning mode is LBS positioning, after the terminal device starts LBS positioning, it can send an instruction message to the cloud platform LBS positioning system. After receiving the instruction message, the cloud platform LBS positioning system can use LBS positioning to determine the current location of the terminal device and save the terminal location of the terminal device to the cloud platform LBS positioning system so that the terminal device can obtain and use its current location information when it needs to use it.
[0054] In an optional implementation, when the second positioning mode is LBS positioning, when the terminal device is positioned through LBS positioning, the terminal device may also be combined with wireless communication technology WiFi positioning to determine the current location of the terminal device.
[0055] It's important to note that every wireless router has a globally unique MAC address (Media Access Control Address, or LAN address), and wireless routers generally don't move for a certain period of time. With Wi-Fi enabled, a terminal device scans and collects signals from surrounding routers. Regardless of whether the router is encrypted, connected, or even if the signal strength isn't strong enough to appear in the wireless signal list, the device can obtain the MAC address broadcast by the AP (Access Point). The terminal device then sends this AP-identifying data to a location server, which retrieves the geographic location of each AP and, based on the strength of each signal, calculates the terminal device's current location.
[0056] In the above implementation, after the terminal device is positioned by LBS, it can be combined with WiFi positioning to determine the current location of the terminal device, which can improve the positioning accuracy of the terminal device and enhance the user experience.
[0057] In an embodiment of the present application, when the terminal device is positioned through the first positioning mode, when it is determined that the area where the positioning signal is not obtained, the positioning mode can be switched and the second positioning mode can be started to obtain the location information of the terminal device, thereby improving the positioning efficiency of the terminal device, reducing the power consumption of the terminal device, increasing the battery life of the terminal device, and improving the user experience.
[0058] In some feasible implementations, please refer to Figure 2, which is a flow chart of another positioning mode control method provided by an embodiment of the present application. As shown in Figure 2, the method may further include the following steps:
[0059] S105, when the positioning state is not the first positioning state, it is determined whether identification information matching the target identification information is stored in the signal identification library, and whether the difference between the signal strength information corresponding to the identification information and the target signal strength information is less than a preset threshold.
[0060] In some feasible implementations, when the positioning state of the terminal device is not the first positioning state, it can determine whether the signal identification library stores identification information that matches the target identification information, and whether the difference between the signal strength information corresponding to the identification information and the target signal strength information is less than a preset threshold.
[0061] The preset threshold value may be pre-configured, or may be set according to user needs and input by a management personnel. For example, the preset threshold value may be 5 (dBm).
[0062] In an optional embodiment, when the identification information of the service area is a Cell ID and the signal strength information is an RSSI, after the terminal device determines that the positioning state of the first positioning mode is not the first positioning state, when the terminal device determines that there is a Cell ID in the signal identification library that is equal to the target Cell ID, and the difference between the RSSI in the signal identification library and the target RSSI is less than a preset threshold, it can be determined that the signal identification library stores identification information that matches the target Cell ID, and the difference between the RSSI corresponding to the Cell ID and the target RSSI is less than the preset threshold. When the terminal device determines that there is no Cell ID in the signal identification library that is equal to the target Cell ID, and / or there is no RSSI in the signal identification library that is less than a preset threshold and the difference between the RSSI and the target RSSI is less than a preset threshold, it can be determined that there is no identification information that matches the target Cell ID stored in the signal identification library, and / or the difference between the RSSI corresponding to the Cell ID and the target RSSI is not less than the preset threshold.
[0063] For example, assume that the Cell IDs (hexadecimal) stored in the no-satellite identification library are 3F, 80, and 0A, and the RSSIs stored are -85dBm, -60dBm, and -75dBm. Assume that the preset threshold is 5dBm. Assume that the target Cell ID is 80, and assume that the target RSSI is -72dBm. Since the Cell ID 80 exists in the no-satellite signal identification library, the terminal device can determine that the Cell ID in the no-satellite signal identification library matches the target Cell ID 80. Furthermore, since the RSSI with a value of -75dBm in the no-satellite signal identification library and the target RSSI with a value of -72dBm have a difference of 3dBm, that is, the difference between the RSSI in the no-satellite signal identification library and the target RSSI is less than the preset threshold of 5dBm. Further, the terminal device can determine that the signal identification library contains identification information matching the target Cell ID, and the difference between the RSSI corresponding to the Cell ID and the target RSSI is less than the preset threshold.
[0064] In another optional embodiment, when the identification information of the service area is a Cell ID and the signal strength information is a reference signal received power RSRP, after the terminal device determines that the positioning state of the first positioning mode is not the first positioning state, when the terminal device determines that there is a Cell ID in the signal identification library that is equal to the target Cell ID, and the difference between the RSRP in the signal identification library and the target RSRP is less than a preset threshold, it can be determined that the signal identification library stores identification information that matches the target Cell ID, and the difference between the RSRP corresponding to the Cell ID and the target RSRP is less than the preset threshold. When the terminal device determines that there is no Cell ID in the signal identification library that is equal to the target Cell ID, and / or there is no RSRP in the signal identification library that is less than a preset threshold and the difference between the RSRP and the target RSRP is less than a preset threshold, it can be determined that there is no identification information that matches the target Cell ID stored in the signal identification library, and / or the difference between the RSRP corresponding to the Cell ID and the target RSRP is not less than the preset threshold.
[0065] In another optional embodiment, when the identification information of the service area is a Cell ID and the signal strength information is a reference signal reception quality RSRQ, after the terminal device determines that the positioning state of the first positioning mode is not the first positioning state, when the terminal device determines that there is a Cell ID in the signal identification library that is equal to the target Cell ID, and the difference between the RSRQ in the signal identification library and the target RSRQ is less than a preset threshold, it can be determined that the signal identification library stores identification information that matches the target Cell ID, and the difference between the RSRQ corresponding to the Cell ID and the target RSRQ is less than the preset threshold. When the terminal device determines that there is no Cell ID in the signal identification library that is equal to the target Cell ID, and / or there is no RSRQ in the signal identification library that is less than the preset threshold and the difference between the RSRQ and the target RSRQ is less than the preset threshold, it can be determined that there is no identification information that matches the target Cell ID stored in the signal identification library, and / or the difference between the RSRQ corresponding to the Cell ID and the target RSRQ is not less than the preset threshold.
[0066] S106: When the determination is yes, positioning is performed using the second positioning mode.
[0067] In some feasible implementations, when the terminal device determines that there is no identification information matching the target identification information stored in the satellite signal identification library, and the difference between the signal strength information corresponding to the identification information and the target signal strength information is less than a preset threshold, positioning can be performed through the second positioning mode to obtain the current location information of the terminal device.
[0068] S107: When the determination is no, positioning is performed using the first positioning mode.
[0069] In some feasible implementations, when the terminal device determines that no identification information matching the target identification information is stored in the satellite signal identification library, and / or the difference between the signal strength information corresponding to the identification information and the target signal strength information is not less than a preset threshold, positioning can be performed through the first positioning mode to obtain the current location information of the terminal device.
[0070] In the above implementation, when the terminal device fails to locate for the first time in an area where the positioning signal cannot be searched, the first positioning mode will no longer be used for positioning, but the second positioning mode will be used directly for positioning, thereby effectively improving the positioning efficiency of the terminal device, reducing the power consumption of the terminal device, and increasing the battery life of the terminal device.
[0071] In some feasible implementations, please refer to FIG3, which is a flow chart of another positioning mode control method provided by an embodiment of the present application. As shown in FIG3, the method may further include the following steps:
[0072] S108: When the positioning signal is acquired, the positioning state is marked as the first positioning state, and the positioning period corresponding to the first positioning mode is waited for to expire.
[0073] In some feasible implementations, when the terminal device acquires the positioning signal, it may mark the positioning state of its first positioning mode as the first positioning state, and wait for the positioning period corresponding to the first positioning mode to expire.
[0074] The positioning period may be pre-configured, or may be set according to user requirements and input by a management staff.
[0075] It should be understood that when the terminal device can obtain the positioning signal, it indicates that the terminal device can determine its current position through the first positioning mode, and mark the positioning state of its first positioning mode as the first positioning state.
[0076] In the above implementation, after determining that the terminal device can obtain the positioning signal, its positioning status is marked and the positioning cycle is waited for to expire, which can improve the subsequent positioning efficiency of the terminal device and reduce its power consumption.
[0077] In some feasible implementations, please refer to FIG4 , which is a flow chart of another positioning mode control method provided by an embodiment of the present application. It should be understood that step S109 should be performed before step S101. As shown in FIG4 , the method may further include the following steps:
[0078] S109: Determine whether the positioning period corresponding to the first positioning mode has expired.
[0079] In some feasible implementations, before the terminal device obtains the positioning status corresponding to its first positioning mode, the terminal device may determine whether the positioning period corresponding to its first positioning mode has expired.
[0080] S110: When the time expires, the target identification information and target signal strength information corresponding to the current target service area of the terminal device, and the positioning state corresponding to the first positioning mode of the terminal device are obtained.
[0081] In some feasible implementations, when the terminal device determines that the positioning period corresponding to its first positioning mode has expired, it can obtain the target identification information and target strength information corresponding to the current target service area of the terminal device, as well as the positioning status corresponding to the first positioning mode of the terminal device, so as to determine the positioning status of the terminal device corresponding to its first mode, and, when the terminal device fails to obtain the positioning signal, save the target identification information and target strength information to a preset signal identification library.
[0082] It should be understood that although the steps in the flowcharts of Figures 1 to 4 are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0083] Please refer to Figure 5, which is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. As shown in Figure 5, the terminal device may include an acquisition unit 51 and a processing unit 52.
[0084] In a specific implementation, the acquisition unit 51 is used to obtain the positioning status corresponding to the first positioning mode of the terminal device, wherein the positioning status is used to indicate whether the terminal device searched for a positioning signal when the first positioning mode was used for positioning last time. The processing unit 52 is used to determine whether the positioning status is the first positioning status. The processing unit 52 is also used to, when the positioning status is the first positioning status, perform positioning and obtain a positioning signal through the first positioning mode. The processing unit 52 is also used to, when the positioning status is the first positioning status, save the target identification information and target signal strength information corresponding to the current target service area of the terminal device to a preset signal identification library when the positioning signal is not obtained, wherein the signal identification library is used to store the identification information and information strength information of the service area corresponding to when the terminal device cannot search for a positioning signal. The processing unit 52 is also used to mark the positioning status as the second positioning status and perform positioning through the second positioning mode.
[0085] In an optional embodiment, the processing unit 52 is further configured to, when determining that the positioning state is not the first positioning state, determine whether identification information matching the target identification information is stored in the signal identification library, and whether the difference between the signal strength information corresponding to the identification information and the target signal strength information is less than a preset threshold. The processing unit 52 is further configured to, when the determination is yes, perform positioning using the second positioning mode. The processing unit is further configured to, when the determination is no, perform positioning using the first positioning mode.
[0086] In an optional implementation, the processing unit 52 is further configured to mark the positioning state as the first positioning state when a positioning signal is acquired, and wait for the positioning period corresponding to the first positioning state to expire.
[0087] In an optional embodiment, the processing unit 52 is further configured to determine whether the positioning period corresponding to the first positioning mode has expired. When the period has expired, the processing unit 52 is further configured to obtain target identification information and target signal strength information corresponding to the current target service area of the terminal device, as well as the positioning status corresponding to the first positioning mode of the terminal device.
[0088] In an optional implementation, the first positioning mode is positioning based on the global satellite navigation system GNSS, and the second positioning mode is location-based service LBS positioning.
[0089] In an optional implementation, the identification information of the service area includes a physical cell identifier PCI or a cell identification code Cell ID, and the signal strength information includes one or more of a received signal strength indication RSSI, a reference signal received power RSRP, or a reference signal received quality RSRQ.
[0090] Please refer to Figure 6, which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. This electronic device may be the terminal device described in the above embodiment and may be used to implement the steps of the positioning mode control method performed by the terminal device described in the above embodiment. The electronic device may include: a processor 61, a memory 62, and a bus system 63.
[0091] The memory 62 includes, but is not limited to, RAM, ROM, EPROM, or CD-ROM, and is used to store relevant instructions and data. The memory 62 stores the following elements, executable modules, or data structures, or subsets thereof, or extended sets thereof:
[0092] Operation instructions: include various operation instructions, used to implement various operations.
[0093] Operating system: includes various system programs used to implement various basic services and process hardware-based tasks.
[0094] FIG6 shows only one memory. Of course, the number of memories may also be multiple as needed.
[0095] As shown in Figure 6, the electronic device may further include an input / output device 64, which may be a communication module or a transceiver circuit. In the embodiments of the present application, the input / output device 64 is used to perform the transmission and reception of data or signaling such as the Cell ID and RSSI involved in the embodiments.
[0096] The processor 61 may be a controller, a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA, or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments disclosed herein. The processor 61 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0097] In specific applications, the various components of the electronic device are coupled together via a bus system 63. In addition to a data bus, bus system 63 may also include a power bus, a control bus, and a status signal bus. However, for clarity, FIG6 depicts each bus system as a bus system 63. For ease of illustration, FIG6 illustrates the bus system only schematically.
[0098] It should be noted that in practical applications, the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the above method embodiments can be completed by hardware integrated logic circuits in the processor or instructions in the form of software. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed.
[0099] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory described in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memory.
[0100] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a computer, the method or steps executed by the terminal device in the above embodiment are implemented.
[0101] An embodiment of the present application further provides a computer program product, which, when executed by a computer, implements the method or steps executed by the terminal device in the above embodiment.
[0102] It should be noted that for the embodiments of the control method of any of the above-mentioned positioning modes, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited to the order of the actions described, because according to this application, some of its steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by this application.
[0103] The terms "first," "second," and so on, in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a specific order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps is not limited to the listed steps but may optionally include steps not listed, or may optionally include other steps inherent to the process, method, product, or apparatus.
[0104] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0105] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the present application to be protected, those skilled in the art may understand and implement other variations of the disclosed embodiments by reviewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple components or steps. The fact that certain measures are recorded in different dependent claims does not mean that these measures cannot be combined to produce good results.
[0106] Those skilled in the art will understand that all or part of the steps in the various methods of the method embodiments of any of the above-mentioned positioning mode control methods can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0107] The above is a detailed introduction to the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of a positioning mode control method, terminal device, and related equipment of the present application. The description of the above embodiments is used to help understand the method and core idea of the present application. At the same time, for those skilled in the art, based on the idea of a positioning mode control method, terminal device, and related equipment of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
[0108] Those skilled in the art will appreciate that, in one or more of the examples above, the functions described herein may be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transmission of a computer program from one location to another. The storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0109] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of this application. It should be understood that the above description is only the specific implementation methods of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of this application should be included in the scope of protection of this application.
Claims
1. A method for controlling a positioning mode, characterized in that: The method is applicable to a terminal device, and the method comprises: Obtaining a positioning state corresponding to a first positioning mode of the terminal device, and determining whether the positioning state is the first positioning state, wherein the positioning state is used to indicate whether the terminal device searched for a positioning signal when the first positioning mode was used for positioning last time; When the positioning state is the first positioning state, positioning is performed through the first positioning mode and a positioning signal is acquired; When the positioning signal is not obtained, the target identification information and the target signal strength information corresponding to the current target service area of the terminal device are saved in a preset signal identification library, wherein the signal identification library is used to store the identification information and signal strength information of the service area corresponding to when the terminal device cannot search for the positioning signal; And, marking the positioning state as a second positioning state, and performing positioning through a second positioning mode.
2. The method according to claim 1, characterized in that The method further comprises: When the positioning state is not the first positioning state, determining whether the signal identification library stores identification information matching the target identification information, and whether a difference between the signal strength information corresponding to the identification information and the target signal strength information is less than a preset threshold; When the determination is yes, positioning is performed using the second positioning mode; When the determination is no, positioning is performed using the first positioning mode.
3. The method according to claim 1, characterized in that The method further comprises: When the positioning signal is acquired, the positioning state is marked as the first positioning state, and the positioning period corresponding to the first positioning mode is waited to expire.
4. The method according to any one of claims 1 to 3, characterized in that: Before acquiring the positioning state corresponding to the first positioning mode of the terminal device, the method includes: Determining whether the positioning period corresponding to the first positioning mode has expired; When the time expires, the target identification information and target signal strength information corresponding to the current target service area of the terminal device, and the positioning state corresponding to the first positioning mode of the terminal device are obtained.
5. The method according to any one of claims 1 to 4, characterized in that: The first positioning mode is positioning based on the Global Navigation Satellite System (GNSS), and the second positioning mode is location-based service (LBS) positioning.
6. The method according to claim 1, characterized in that The identification information of the service area includes a physical cell identifier PCI or a cell identity code Cell ID, and the signal strength information includes one or more of a received signal strength indication RSSI, a reference signal received power RSRP or a reference signal received quality RSRQ.
7. A terminal device, characterized in that: The terminal device comprises: An acquiring unit, configured to acquire a positioning state corresponding to a first positioning mode of the terminal device, wherein the positioning state is used to indicate whether the terminal device has searched for a positioning signal when the first positioning mode is used for positioning last time; A processing unit, used for determining whether the positioning state is a first positioning state; The processing unit is further configured to, if the positioning state is the first positioning state, perform positioning through the first positioning mode and obtain a positioning signal; The processing unit is further configured to save the target identification information and the target signal strength information corresponding to the current target service area of the terminal device to a preset signal identification library if the positioning signal is not acquired, wherein the signal identification library is used to store the identification information and the information strength information of the service area corresponding to the terminal device when the positioning signal cannot be searched; The processing unit is further configured to mark the positioning state as a second positioning state and perform positioning through the second positioning mode.
8. The terminal device according to claim 7, characterized in that: The terminal device further includes: The processing unit is further configured to, when it is determined that the positioning state is not the first positioning state, determine whether identification information matching the target identification information is stored in the signal identification library, and whether a difference between the signal strength information corresponding to the identification information and the target signal strength information is less than a preset threshold; The processing unit is further configured to, when the determination is yes, perform positioning by using the second positioning mode; The processing unit is further configured to, when the determination result is no, perform positioning through the first positioning mode.
9. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 6.
10. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method according to any one of claims 1 to 6 when executing the computer program.
Citation Information
Patent Citations
Locating methods, locating system and relevant equipment
CN103037506A
Hybrid positioning method, positioning terminal, and hybrid positioning system
CN105929432A
Network location method and terminal equipment
CN106714103A
Positioning control method and apparatus, storage medium and terminal device
CN108093373A
Power saving method for terminal device and terminal device
CN108271238A