A positioning mode control method, a terminal device, and related equipment
By switching to LBS positioning mode in the terminal device and saving the signal identification information, the problems of low GNSS positioning efficiency and high power consumption in environments without satellite signals are solved, achieving more efficient positioning and longer battery life.
Patent Information
- Application Number
- CN202311023069.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-14
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-08-14
AI Technical Summary
In existing technologies, when terminal devices use GNSS positioning in environments without satellite signals, the positioning efficiency is low and the power consumption is high, resulting in a shortened battery life.
When the terminal device does not receive a positioning signal, it switches to LBS positioning mode, uses base station to calculate distance and wireless communication technology to determine the location, and saves signal identification information to switch positioning modes, thereby reducing power consumption.
It improves the positioning efficiency of terminal devices, reduces power consumption, extends battery life, and enhances the user experience.
Smart Images

Figure CN117111127B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of positioning technology, and in particular to a control method, terminal device and related equipment for a positioning mode. Background Technology
[0002] 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.
[0003] In existing technologies, when a module uses GNSS positioning, it can achieve normal positioning in environments with satellite signals. However, when in environments without satellite signals for extended periods, after each positioning cycle, GNSS positioning requires a long period of satellite search but fails to acquire a signal, leading to positioning failure. This not only affects positioning efficiency but also increases the module's power consumption and reduces PC battery life. Therefore, improving positioning efficiency has become one of the urgent technical problems to be solved. Summary of the Invention
[0004] This application provides a positioning mode control method, a terminal device, and related equipment, which improves the positioning efficiency of the terminal device, reduces the power consumption of the terminal device, and increases the battery life of the terminal device.
[0005] Firstly, embodiments of this application provide a positioning mode control method, applicable to terminal devices. The method includes:
[0006] The system obtains the positioning status corresponding to the first positioning mode of the terminal device and determines whether the positioning status is the first positioning status, wherein the positioning status indicates whether the terminal device found a positioning signal when it last used the first positioning mode for positioning. If the positioning status is the first positioning status, positioning is performed using the first positioning mode and a positioning signal is obtained. If 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 database, wherein the signal identification database is used to store the identification information and signal strength information of the service area corresponding to when the terminal device cannot find a positioning signal. Furthermore, the positioning status is marked as a second positioning status, and positioning is performed using a second positioning mode.
[0007] In this embodiment of the application, when the terminal device is positioning through the first positioning mode, if it determines that there is no positioning signal in the area, it can switch the positioning mode and start the second positioning mode 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, and increasing the battery life of the terminal device.
[0008] In conjunction with the first aspect, in one feasible implementation, the method further includes: if the positioning state is not the first positioning state, then determining whether the signal identifier database contains identifier information matching the target identifier information, and whether the difference between the signal strength information corresponding to the identifier information and the target signal strength information is less than a preset threshold. If it is determined to be yes, then positioning is performed using the second positioning mode. If it is determined to be no, then positioning is performed using the first positioning mode.
[0009] In conjunction with the first aspect, in one feasible implementation, the method further includes: if the positioning signal is obtained, 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 includes: determining whether the positioning period corresponding to the first positioning mode has expired. If it has expired, then obtaining the 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 conjunction with the first aspect, in one feasible implementation, the first positioning mode is GNSS-based positioning, and the second positioning mode is LBS-based positioning.
[0012] In conjunction with the first aspect, in one feasible implementation, the identification information of the service area includes a Physical Cell Identifier (PCI) or a Cell Identifier (Cell ID), and the signal strength information includes one or more of the Received Signal Strength Indicator (RSSI), Reference Received Power (RSRP), or Reference Received Quality (RSRQ).
[0013] Secondly, embodiments of this application provide a terminal device, comprising: an acquisition unit, configured to acquire a positioning state corresponding to a first positioning mode of the terminal device, wherein the positioning state indicates whether the terminal device found a positioning signal when it last used the first positioning mode for positioning; a processing unit, configured to determine whether the positioning state is the first positioning state; the processing unit is further configured to, if the positioning state is the first positioning state, perform positioning using the first positioning mode and acquire a positioning signal; the processing unit is further configured to, if the positioning signal is not acquired, save target identification information and target signal strength information corresponding to the current target service area of the terminal device to a preset signal identification database, wherein the signal identification database stores identification information and signal strength information of the service area corresponding to when the terminal device cannot find a positioning signal; and the processing unit is further configured 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 one feasible implementation, the processing unit is further configured to, if it is determined that the positioning state is not the first positioning state, determine whether the signal identifier database contains identifier information matching the target identifier information, and whether the difference between the signal strength information corresponding to the identifier information and the target signal strength information is less than a preset threshold. The processing unit is further configured to, if determined to be yes, perform positioning using the second positioning mode. The processing unit is further configured to, if determined to be no, perform positioning using the first positioning mode.
[0015] In conjunction with the second aspect, in one feasible implementation, the processing unit is further configured to, if the positioning signal is acquired, mark the positioning state as the first positioning state 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. If expired, the processing unit is further configured to acquire 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 conjunction with the second aspect, in one feasible implementation, the first positioning mode is GNSS-based positioning, and the second positioning mode is location-based service (LBS) positioning.
[0018] In conjunction with the second aspect, in one feasible implementation, the identification information of the service area includes Physical Cell Identifier (PCI) or Cell ID, and the signal strength information includes one or more of Received Signal Strength Indicator (RSSI), Reference Received Power (RSRP), or Reference Received Quality (RSRQ).
[0019] Thirdly, embodiments of this application provide a computer-readable storage medium for storing a computer program. When the computer program is run on a computer, it causes the computer to execute the positioning control method provided by any possible implementation of the first aspect, thereby achieving the beneficial effects of the positioning mode control method provided in the first aspect.
[0020] Fourthly, embodiments of this application provide an electronic device that may include a processor and a memory, which are interconnected. The memory stores a computer program, and the processor is configured to execute the computer program to implement the positioning control method provided in the first aspect, thereby achieving the beneficial effects of the positioning mode control method provided in the first aspect.
[0021] By implementing the embodiments of this application, when a terminal device is positioned using the first positioning mode, if it determines that an area has not received a positioning signal, it can switch to the second positioning mode to obtain the location information of the terminal device. This can improve the positioning efficiency of the terminal device, reduce the power consumption of the terminal device, increase the battery life of the terminal device, and enhance the user experience. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart illustrating a positioning mode control method provided in an embodiment of this application;
[0024] Figure 2 This is a flowchart illustrating another positioning mode control method provided in the embodiments of this application;
[0025] Figure 3 This is a flowchart illustrating another positioning mode control method provided in the embodiments of this application;
[0026] Figure 4 This is a flowchart illustrating another positioning mode control method provided in the embodiments of this application;
[0027] Figure 5 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application;
[0028] Figure 6 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0029] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0030] In existing technologies, when a terminal device uses GNSS (Global Navigation Satellite System) for positioning, it can achieve normal positioning in environments with satellite signals. However, when in environments without satellite signals for extended periods, GNSS positioning spends a considerable amount of time searching for satellite signals after each positioning cycle, but fails to acquire any, leading to positioning failure. This not only affects positioning efficiency but also increases module power consumption and reduces the terminal device's battery life. Therefore, the technical problem this application aims to solve is: how to improve the positioning efficiency of terminal devices.
[0031] In the embodiments of this application, the terminal device can be any form of electronic device that supports GNSS positioning and LBS positioning, such as smartphones, laptops, desktop computers, wearable devices, head-mounted devices, vehicle terminals, etc. This application does not impose specific limitations on the implementation form of the terminal device.
[0032] Please see Figure 1 , Figure 1 This is a flowchart illustrating a positioning mode control method provided in an embodiment of this application. This method can be applied to terminal devices. Figure 1 As shown, the method may include the following steps:
[0033] S101, obtain the positioning status corresponding to the first positioning mode of the terminal device, and determine whether the positioning status is the first positioning status.
[0034] In some feasible implementations, the terminal device can obtain the positioning status corresponding to its first positioning mode and determine whether the positioning status is the first positioning status.
[0035] The positioning status corresponding to the first positioning mode can be used to indicate whether the terminal device found a positioning signal when it last used the first positioning mode for positioning.
[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 can be used to indicate that the terminal device was able to find a positioning signal when it last used the first positioning mode for positioning. The second positioning state can be used to indicate that the terminal device failed to find a satellite signal when it last used the first positioning mode for positioning. For example, the first positioning state can be represented by a first preset value, and the second positioning state can be represented by a second preset value, such as the first preset value being 0 and the second preset value being 1.
[0037] Optionally, the first positioning mode can be GNSS (Global Navigation Satellite System) based positioning.
[0038] S102, if the positioning state is the first positioning state, then positioning is performed and the positioning signal is obtained through the first positioning mode.
[0039] In some feasible implementations, if the terminal device determines that the positioning state corresponding to its first positioning mode is the first positioning state, it can perform positioning and obtain positioning signals through the first positioning mode.
[0040] Optionally, when the first positioning mode is GNSS-based positioning, after the terminal device determines its positioning state to be the first positioning state, it can achieve positioning through the GNSS positioning module in the terminal device and further determine whether a positioning signal can be obtained. Specifically, if the terminal device determines that its GNSS positioning module outputs an indication message, it can determine that the terminal device can obtain a positioning signal through the GNSS positioning module. If the terminal device determines that its GNSS positioning module does not output an indication message, it can determine that the terminal device has failed to obtain a positioning signal through the GNSS positioning module. The indication message can be used to indicate whether the terminal device can obtain a positioning signal through the GNSS positioning module.
[0041] It should be understood that satellite signals are difficult to receive in areas with weak signal coverage, such as indoors or tunnels. Similarly, in urban areas, being inside tall buildings or obstructions can also affect satellite signal reception. Furthermore, the presence of electromagnetic interference sources in the vicinity can cause satellite signals to be masked by other signals, making it impossible to lock onto the satellite.
[0042] S103, if 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 to the preset signal identification library.
[0043] In some feasible implementations, if the terminal device determines that it has not obtained a positioning signal, it can 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 database.
[0044] The signal identifier database stores the identifier and signal strength information of the service area when the terminal device cannot find a location signal. It should be noted that the signal identifier database can store multiple sets of service area identifier and signal strength information. Each set of identifier and signal strength information represents the identifier and signal strength information of the terminal device's current service area when it has not obtained a location signal.
[0045] The target identification information refers to the cell ID where the terminal device is currently located. 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 service area identification information may include PCI (Physical Cell Identifier) or Cell ID (Cell Identity). Signal strength information may include one or more of the following: Received Signal Strength Indication (RSSI), Reference Signal Receiving Power (RSRP), or Reference Signal Receiving Quality (RSRQ).
[0047] For example, when the service area identification information is Cell ID and the signal strength information is RSSI, assume that the satellite identification database can store three sets of Cell IDs and RSSIs. The first set of Cell IDs and RSSIs is 3F and -85dBm, respectively. The second set of Cell IDs and RSSIs is 80 and -60dBm, respectively. The third set of Cell IDs and RSSIs is 0A and -75dBm, respectively.
[0048] It should be understood that if the terminal device determines that it has not obtained a positioning signal, it means that the terminal device cannot determine its current location through the first positioning mode.
[0049] S104, mark the positioning status as the second positioning status, and perform positioning through the second positioning mode.
[0050] In some feasible implementations, after determining that a positioning signal has not been obtained, the terminal device can mark the positioning status of the first positioning mode of the terminal device as the second positioning status, and can perform positioning through the second positioning mode.
[0051] Optionally, the second positioning mode can be LBS (Location Based Services) positioning. This application does not specifically limit the type of the second positioning mode in its embodiments.
[0052] It should be noted that LBS positioning can determine the current location of a terminal device by measuring the distance between the terminal device and the base station. Specifically, the terminal device can measure and calculate its distance to the surrounding base stations (at least three base stations), then draw circles with each base station as the center and the measured distance as the radius. The intersection point is the current location of the terminal device.
[0053] Optionally, when the second positioning mode is LBS positioning, after the terminal device initiates LBS positioning, it can send indication information to the cloud platform LBS positioning system. After receiving the indication information, the cloud platform LBS positioning system can use LBS positioning to determine the current location of the terminal device and save the terminal device's location to the cloud platform LBS positioning system so that the terminal device can retrieve and use its current location information when needed.
[0054] In one alternative implementation, when the second positioning mode is LBS positioning, the terminal device can also combine WiFi positioning with wireless communication technology to determine its current location while the terminal device is positioning itself via LBS positioning.
[0055] It's important to note that every wireless router has a globally unique MAC address (Media Access Control Address, or LAN address), and generally, wireless routers don't move for a period of time. When a terminal device has Wi-Fi enabled, it can scan and collect the signals of surrounding routers, regardless of whether they are encrypted, connected, or even if the signal strength is insufficient to appear in the wireless signal list. The device can obtain the MAC address broadcast by the AP (Access Point). The terminal device sends this AP-identifying data to a location server. The server retrieves the geographical location of each AP and, combined with the signal strength of each, calculates the current geographical location of the terminal device.
[0056] In the above implementation, after the terminal device is located via LBS, it can combine it 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 this embodiment of the application, when the terminal device is positioning itself using the first positioning mode, if it determines that there is no positioning signal in the area, it can switch the positioning mode and start the second positioning mode to obtain the location information of the terminal device. This can improve the positioning efficiency of the terminal device, reduce the power consumption of the terminal device, increase the battery life of the terminal device, and improve the user experience.
[0058] For some feasible implementation methods, please refer to Figure 2 , Figure 2 This is a flowchart illustrating another positioning mode control method provided in an embodiment of this application. Figure 2 As shown, the method may further include the following steps:
[0059] S105, if the positioning state is not the first positioning state, then determine whether there is identification information in the signal identification library 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.
[0060] In some feasible implementations, if the terminal device is not in the first positioning state, it can determine whether there is identification information in the signal identification database 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 can be pre-configured, or it can be set according to user needs and input by administrators. For example, the preset threshold can be 5 (dBm).
[0062] In one optional implementation, when the service area identification information is Cell ID and the signal strength information is RSSI, after the terminal device determines that the positioning state of the first positioning mode is not the first positioning state, if the terminal device determines that there exists a Cell ID in the signal identification database that is equal to the target Cell ID, and that the difference between the RSSI in the signal identification database and the target RSSI is less than a preset threshold, then it can be determined that the signal identification database stores 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. If the terminal device determines that there is no Cell ID in the signal identification database that is equal to the target Cell ID, and / or that the difference between the RSSI in the signal identification database and the target RSSI is less than the preset threshold, then it can be determined that the signal identification database does not store identification information matching the target Cell ID, and / or that the difference between the RSSI corresponding to the Cell ID and the target RSSI is not less than the preset threshold.
[0063] For example, suppose the satellite-free identifier database contains Cell IDs (hexadecimal) of 3F, 80, and 0A, and RSSIs of -85dBm, -60dBm, and -75dBm. Assume a preset threshold of 5dBm. Assume the target Cell ID is 80, and the target RSSI is -72dBm. Since the satellite-free identifier database contains Cell ID 80, the terminal device can determine that a Cell ID in the database matches the target Cell ID 80. Furthermore, since the difference between the RSSI value of -75dBm in the satellite-free identifier database and the target RSSI value of -72dBm is 3dBm, meaning the difference between the RSSI in the database and the target RSSI is less than the preset threshold of 5dBm, the terminal device can further determine that the identifier database contains identifier 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 implementation, when the service area identification information is Cell ID and the signal strength information is 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, if the terminal device determines that there exists a Cell ID in the signal identification database that is equal to the target Cell ID, and that the difference between the RSRP in the signal identification database and the target RSRP is less than a preset threshold, then it can be determined that the signal identification database stores identification information matching 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. If the terminal device determines that there is no Cell ID in the signal identification database that is equal to the target Cell ID, and / or that the difference between the RSRP in the signal identification database and the target RSRP is less than the preset threshold, then it can be determined that the signal identification database does not store identification information matching the target Cell ID, and / or that 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 implementation, when the service area identification information is Cell ID and the signal strength information is Reference Signal Received Quality (RSRQ), after the terminal device determines that the positioning state of the first positioning mode is not the first positioning state, if the terminal device determines that there exists a Cell ID in the signal identification library that is equal to the target Cell ID, and that there exists an RSRQ in the signal identification library whose difference from the target RSRQ is less than a preset threshold, then it can be determined that the signal identification library stores identification information matching 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. If 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 that there is no RSRQ in the signal identification library whose difference from the target RSRQ is less than the preset threshold, then it can be determined that the signal identification library does not store identification information matching the target Cell ID, and / or that the difference between the RSRQ corresponding to the Cell ID and the target RSRQ is not less than the preset threshold.
[0066] S106, if it is determined to be yes, then positioning is performed through the second positioning mode.
[0067] In some feasible implementations, if the terminal device determines that there is no identification information in the satellite signal identification database that matches the target identification information, 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, it can perform positioning through the second positioning mode to obtain the current location information of the terminal device.
[0068] S107, if the result is not confirmed, then the positioning is performed using the first positioning mode.
[0069] In some feasible implementations, if the terminal device determines that there is no matching identification information in the satellite signal identification database, 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, then 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 in an area where a positioning signal cannot be found, it will not use the first positioning mode for subsequent positioning, but will directly use the second positioning mode. This can effectively 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.
[0071] For some feasible implementation methods, please refer to Figure 3 , Figure 3 This is a flowchart illustrating another positioning mode control method provided in an embodiment of this application. Figure 3 As shown, the method may further include the following steps:
[0072] S108, if a positioning signal is obtained, 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, if the terminal device obtains a positioning signal, it can mark the positioning status of its first positioning mode as the first positioning status and wait for the positioning period corresponding to the first positioning mode to expire.
[0074] The positioning cycle can be pre-configured, or it can be set according to user needs and entered by administrators.
[0075] It should be understood that if a terminal device can obtain a positioning signal, it indicates that the terminal device can determine its current location 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 period is waited for to expire, which can improve the subsequent positioning efficiency of the terminal device and reduce its power consumption.
[0077] For some feasible implementation methods, please refer to Figure 4 , Figure 4 This is a flowchart illustrating another positioning mode control method provided in an embodiment of this application. It should be understood that step S109 should be executed before step S101. Figure 4 As shown, 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 can determine whether the positioning period corresponding to its first positioning mode has expired.
[0080] S110, if the deadline has passed, obtain the 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.
[0081] In some feasible implementations, if 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. In addition, when the terminal device does not obtain a positioning signal, the target identification information and target strength information are saved to a preset signal identification library.
[0082] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. For example... Figure 5 As shown, the terminal device may include an acquisition unit 51 and a processing unit 52.
[0083] In specific implementation, the acquisition unit 51 is used to acquire the positioning status corresponding to the first positioning mode of the terminal device, wherein the positioning status indicates whether the terminal device found a positioning signal when it last used the first positioning mode for positioning. 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 perform positioning and acquire a positioning signal through the first positioning mode if the positioning status is the first positioning status. The processing unit 52 is also used to 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 if no positioning signal is acquired. 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 find 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.
[0084] In an optional implementation, the processing unit 52 is further configured to, if the positioning state is determined to be not the first positioning state, determine whether the signal identifier database contains identifier information that matches the target identifier information, and whether the difference between the signal strength information corresponding to the identifier information and the target signal strength information is less than a preset threshold. The processing unit 52 is further configured to, if the determination is yes, perform positioning using the second positioning mode. The processing unit is further configured to, if the determination is no, perform positioning using the first positioning mode.
[0085] In an optional implementation, the processing unit 52 is further configured to, if a positioning signal is acquired, mark the positioning state as a first positioning state and wait for the positioning period corresponding to the first positioning state to expire.
[0086] In an optional implementation, the processing unit 52 is further configured to determine whether the positioning period corresponding to the first positioning mode has expired. If 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.
[0087] In one alternative implementation, the first positioning mode is GNSS-based positioning, and the second positioning mode is location-based service (LBS) positioning.
[0088] In one optional implementation, the service area identification information includes Physical Cell Identifier (PCI) or Cell ID, and the signal strength information includes one or more of Received Signal Strength Indicator (RSSI), Reference Received Power (RSRP), or Reference Received Quality (RSRQ).
[0089] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device can be a terminal device as described in the above embodiments, and can be used to implement the steps of the positioning mode control method executed by the terminal device as described in the above embodiments. The electronic device may include: a processor 61, a memory 62, and a bus system 63.
[0090] The memory 62 includes, but is not limited to, RAM, ROM, EPROM, or CD-ROM, and is used to store related instructions and data. The memory 62 stores executable modules or data structures, or subsets thereof, or extended sets thereof:
[0091] Operation instructions: This includes various operation instructions used to perform various operations.
[0092] Operating system: includes various system programs used to implement various basic business functions and handle hardware-based tasks.
[0093] Figure 6 Only one memory is shown in the image; of course, multiple memory can be configured as needed.
[0094] like Figure 6 As shown, 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 this application, the input / output device 64 is used to perform the transmission and reception process of data or signaling such as Cell ID and RSSI involved in the embodiments.
[0095] Processor 61 may be a controller, CPU, general-purpose processor, DSP, ASIC, FPGA, or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in connection with the embodiments of this application. Processor 61 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of DSP and microprocessor, etc.
[0096] In practical applications, the various components of the electronic device are coupled together through a bus system 63. This bus system 63 may include, in addition to a data bus, a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 6 All buses are labeled as Bus System 63. For ease of representation, in... Figure 6 The image shown is only schematic.
[0097] It should be noted that in practical applications, the processor in the embodiments of this application can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above 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 devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application.
[0098] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but 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 linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable types of memory.
[0099] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a computer, implements the methods or steps executed by the terminal device in the above embodiments.
[0100] This application also provides a computer program product that, when executed by a computer, implements the methods or steps executed by the terminal device in the above embodiments.
[0101] It should be noted that, for the sake of simplicity, all embodiments of the control method for any of the above positioning modes are described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to this application.
[0102] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps is not limited to the steps listed, but may optionally include steps not listed, or may optionally include other steps inherent to these processes, methods, products, or apparatuses.
[0103] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0104] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, the disclosure, and the appended claims, will understand and implement other variations of the disclosed embodiments in carrying out this application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple instances. While different dependent claims may recite certain measures, this does not imply that these measures cannot be combined to produce a good effect.
[0105] Those skilled in the art will understand that all or part of the steps in the various method embodiments of the control method for any of the above positioning modes can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage device, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk, or an optical disk, etc.
[0106] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principle and implementation of a positioning mode control method, terminal device, and related devices of this application. The descriptions of the embodiments above are intended to help understand the method and core ideas of this application. At the same time, for those skilled in the art, based on the ideas of the positioning mode control method, terminal device, and related devices of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
[0107] Those skilled in the art will recognize that, in one or more of the examples above, the functions described in this application can be implemented using hardware, software, firmware, or any combination thereof. When implemented in software, these functions can 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 place to another. Storage media can be any available medium accessible to a general-purpose or special-purpose computer.
[0108] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of this application. It should be understood that the above description is only a specific embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of this application should be included within the scope of protection of this application.
Claims
1. A control method for a positioning mode, characterized in that, The method is applicable to terminal devices, and the method includes: The positioning status corresponding to the first positioning mode of the terminal device is obtained, and it is determined whether the positioning status is the first positioning status, wherein the positioning status is used to indicate whether the terminal device searched for a positioning signal when it last used the first positioning mode for positioning. If the positioning state is the first positioning state, then positioning is performed and a positioning signal is obtained through the first positioning mode; If 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. The signal identification library is used to store the identification information and signal strength information of the service area when the terminal device cannot find the positioning signal. In addition, the positioning state is marked as a second positioning state, and positioning is performed through a second positioning mode.
2. The method according to claim 1, characterized in that, The method further includes: If the positioning state is not the first positioning state, then determine whether there is identification information in the signal identification library 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. If the determination is yes, then the positioning is performed using the second positioning mode; If the result is negative, then the location will be determined using the first positioning mode.
3. The method according to claim 1, characterized in that, The method further includes: If the positioning signal is obtained, the positioning state is marked as the first positioning state, and the system waits for the positioning period corresponding to the first positioning mode to expire.
4. The method according to claim 1, characterized in that, Before obtaining the positioning status corresponding to the first positioning mode of the terminal device, the process includes: Determine whether the positioning period corresponding to the first positioning mode has expired; If the expiration date is reached, the 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, are obtained.
5. The method according to claim 1, characterized in that, The first positioning mode is GNSS-based positioning, and the second positioning mode is LBS-based positioning.
6. The method according to claim 1, characterized in that, The identification information of the service area includes Physical Cell Identifier (PCI) or Cell ID, and the signal strength information includes one or more of Received Signal Strength Indicator (RSSI), Reference Received Power (RSRP), or Reference Received Quality (RSRQ).
7. A terminal device, characterized in that, The terminal device includes: The acquisition unit is used to acquire 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 it last used the first positioning mode for positioning. The processing unit is used to determine whether the positioning state is the first positioning state; The processing unit is further configured to perform positioning and obtain a positioning signal through the first positioning mode if the positioning state is the first positioning state. The processing unit is further configured to, if 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 signal strength information of the service area corresponding to when the terminal device cannot find the positioning signal; 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 also includes: The processing unit is further configured to, if it is determined that the positioning state is not the first positioning state, determine whether the signal identifier library contains identifier information that matches the target identifier information, and whether the difference between the signal strength information corresponding to the identifier information and the target signal strength information is less than a preset threshold. The processing unit is further configured to perform positioning through the second positioning mode if the determination is yes; The processing unit is further configured to perform positioning using the first positioning mode if the determination is negative.
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 includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Positioning control method and apparatus, storage medium and terminal device
CN108093373A
Positioning method and device, storage medium and mobile terminal
CN108111971A
