CN112738726B - Positioning method, positioning device, terminal and storage medium - Google Patents

Positioning method, positioning device, terminal and storage medium Download PDF

Info

Publication number
CN112738726B
CN112738726B CN202011522019.4A CN202011522019A CN112738726B CN 112738726 B CN112738726 B CN 112738726B CN 202011522019 A CN202011522019 A CN 202011522019A CN 112738726 B CN112738726 B CN 112738726B
Authority
CN
China
Prior art keywords
network system
mode
current
positioning
positioning mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011522019.4A
Other languages
Chinese (zh)
Other versions
CN112738726A (en
Inventor
李柳
邵俊骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Coolpad Technology Co ltd
Original Assignee
Shenzhen Coolpad Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Coolpad Technology Co ltd filed Critical Shenzhen Coolpad Technology Co ltd
Priority to CN202011522019.4A priority Critical patent/CN112738726B/en
Publication of CN112738726A publication Critical patent/CN112738726A/en
Application granted granted Critical
Publication of CN112738726B publication Critical patent/CN112738726B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Abstract

The application belongs to the technical field of communication, and particularly relates to a positioning method, a positioning device, a terminal and a storage medium. A method of positioning, the method comprising: when a positioning instruction is acquired, acquiring a current network system; determining a target positioning mode corresponding to the current network system in mode mapping information based on the current network system; and determining current position information based on the target positioning mode. The application can improve the accuracy of position information determination.

Description

Positioning method, positioning device, terminal and storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a positioning method, a positioning device, a terminal and a storage medium.
Background
With the development of science and technology, the terminal can support more and more functions, and the use of the terminal can be continuously convenient for the life of a user. For example, the terminal may acquire location information of the terminal so that the user may know the current location. When the terminal acquires the location information of the terminal user, the terminal may acquire the location information of the user using, for example, a global positioning system (Global Positioning System, GPS).
Disclosure of Invention
The embodiment of the application provides a positioning method, a positioning device, a terminal and a storage medium, which can improve the accuracy of position information determination. The technical scheme comprises the following steps:
in a first aspect, an embodiment of the present application provides a positioning method, where the method includes:
when a positioning instruction is acquired, acquiring a current network system;
determining a target positioning mode corresponding to the current network system in mode mapping information based on the current network system;
and determining current position information based on the target positioning mode.
In a second aspect, an embodiment of the present application provides a positioning device, including:
the system acquisition unit is used for acquiring the current network system when acquiring the positioning instruction;
the mode determining unit is used for determining a target positioning mode corresponding to the current network system in the mode mapping information based on the current network system;
and the information determining unit is used for determining the current position information based on the target positioning mode.
In a third aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method according to any one of the first aspects when the processor executes the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which when executed by a processor performs a method according to any of the preceding claims.
In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
The technical scheme provided by the embodiments of the application has the beneficial effects that at least:
in one or more embodiments of the present application, when a positioning instruction is acquired, a current network system is acquired, and a target positioning mode corresponding to the current network system is determined in mode mapping information based on the current network system, so that current location information can be determined based on the target positioning mode. Therefore, the current position information can be determined based on the target positioning mode corresponding to the network system, the situation that the position information is inaccurate in determination caused by directly acquiring the position information based on the fixed positioning mode is reduced, the accuracy of the position information determination can be improved, and the use experience of a user can be improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 shows a system architecture diagram of a positioning method applied to an embodiment of the present application;
FIG. 2 is a flow chart of a positioning method according to an embodiment of the application;
FIG. 3 shows an exemplary schematic of a terminal interface according to an embodiment of the application;
FIG. 4 shows an exemplary schematic of a terminal interface according to an embodiment of the application;
FIG. 5 is a flow chart of a positioning method according to an embodiment of the application;
FIG. 6 shows an exemplary schematic of a terminal interface according to an embodiment of the application;
FIG. 7 is a flow chart of a positioning method according to an embodiment of the application;
FIG. 8 is a flow chart of a positioning method according to an embodiment of the application;
FIG. 9 shows an exemplary schematic of a terminal interface according to an embodiment of the application;
FIG. 10 is a schematic view of a positioning device according to an embodiment of the present application;
fig. 11 shows a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the present application better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
With the development of science and technology, more and more functions can be realized by the terminal. For example, when the user starts to work, the user can acquire the current position information of the user by using the positioning function of the terminal, so that the user can determine the information of the route to work based on the current position information. Therefore, the positioning function of the terminal can facilitate the life of the user.
According to some embodiments, when the terminal determines the current location information, the terminal uses the same location mode under different network systems when the terminal directly obtains the current location information based on the location system only, and the influence of the network system on location is not considered, so that the determined location information is inaccurate. For example, when the terminal is in a second generation mobile phone communication technology (2-Generation wireless telephone technology, 2G) network mode, the terminal acquires the current position information by adopting an A positioning mode corresponding to the 2G network mode because the throughput of network data in the 2G network mode is lower. When the terminal is in the second generation mobile phone communication technology (2-Generation wireless telephone technology, 2G) network mode, the terminal still adopts an A positioning mode to acquire the current position information. However, when the a positioning mode is not applicable to the third generation mobile communication technology (3rd Generation,3G), the determination of the position information in the 3G network system is inaccurate.
Fig. 1 shows a system architecture diagram of a positioning method applied to an embodiment of the present application. As shown in fig. 1, the execution body of the embodiment of the present application is a terminal, which is an electronic device with a display screen, and the terminal includes, but is not limited to: wearable devices, handheld devices, personal computers, tablet computers, vehicle-mounted devices, smart phones, computing devices, or other processing devices connected to a wireless modem, etc. Terminal devices in different networks may be called different names, for example: a user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent or user equipment, a cellular telephone, a cordless telephone, a personal digital assistant (personal digital assistant, PDA), a terminal device in a fifth generation mobile communication technology (5th generation mobile networks,5G) network or a future evolution network, and the like. The terminal system refers to an operating system capable of running on the terminal, is a program for managing and controlling terminal hardware and terminal applications, and is an indispensable system application for the terminal. The system comprises an Android system, an IOS system, a Windows Phone (WP) system, a Ubuntu mobile version operating system and the like, which are not limited to the Android system.
According to some embodiments, the terminal may be connected to the server through a network. The network is used to provide a communication link between the terminal and the server. The network may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others. It should be understood that the number of terminals, networks and servers in fig. 1 is merely illustrative. There may be any number of terminals, networks and servers as practical. For example, the server may be a server cluster formed by a plurality of servers. The user may interact with the server through the network using the terminal to obtain push messages, etc.
It is easy to understand that the server may be, for example, a background service device corresponding to a terminal application in the terminal. The server may generate location information for the terminal application and transmit the location information to the terminal. When the terminal receives the push message, the terminal can display the position information on a display screen of the terminal.
According to some embodiments, the terminal may determine the current location information based on the target location mode by acquiring the current network system when the location instruction is acquired, and determining the target location mode corresponding to the current network system in the mode mapping information based on the current network system. The application provides a positioning method which can improve the accuracy of position information determination.
The positioning method provided by the embodiment of the application will be described in detail with reference to fig. 2-9. The execution body of the embodiments shown in fig. 2-9 may be, for example, a terminal.
Referring to fig. 2, a flowchart of a positioning method is provided in an embodiment of the present application. As shown in fig. 2, the method according to the embodiment of the present application may include the following steps S101 to S103.
S101, when a positioning instruction is acquired, acquiring a current network system;
according to some embodiments, a positioning instruction refers to an instruction that may initiate location information acquisition. The positioning instructions include, but are not limited to, voice positioning instructions, click positioning instructions, timing positioning instructions, text positioning instructions, and the like.
Optionally, when the positioning instruction received by the terminal is a voice positioning instruction, a microphone may be disposed on the terminal, and the microphone may be used to collect a voice signal input by the user. When the terminal controls the microphone to collect the voice signal, the terminal can analyze the voice signal by adopting a voice recognition algorithm to obtain a voice positioning instruction input by a user.
Optionally, when the positioning instruction received by the terminal is a click positioning instruction, the terminal may be provided with a positioning control. When the terminal is provided with the positioning control and the terminal detects that the user clicks the positioning control, the terminal can receive a click positioning instruction. At this time, an exemplary schematic diagram of the terminal interface may be shown in fig. 3. The positioning controls include, but are not limited to, physical positioning controls, virtual positioning controls, and the like.
Optionally, before the positioning instruction received by the terminal is the timing positioning instruction, the terminal may set a position information determining time every fixed duration, or the fixed time of each day may be the position information determining time, or the next position information determining time set when the last position information determining is completed. When the preset position information determining time is reached, the terminal can receive the timing positioning instruction.
According to some embodiments, the network system refers to a network type of a terminal, and the network system includes, but is not limited to, a second generation mobile phone communication technology (2-Generation wireless telephone technology, 2G) network system, a third generation mobile communication technology (3rd Generation,3G) network system, a fourth generation mobile communication technology (the 4Generation mobile communication technology,4G) network system, a fourth generation mobile communication technology (5th generation mobile networks,5G) network system, and the like.
It is easy to understand that the current network system refers to the current network system of the terminal when the terminal acquires the positioning instruction. The current network system is not particularly limited to a fixed network system. For example, when the environment in which the terminal is located changes, the current network system will also change accordingly. When the network system supported by the terminal changes, the current network system also changes correspondingly.
According to some embodiments, when the terminal obtains the positioning instruction, the terminal may obtain the current network system of the terminal. For example, when the terminal receives a voice positioning instruction input by a user on a display screen of the terminal, the current network system acquired by the terminal may be, for example, a 3G network system. At this time, an exemplary schematic diagram of the terminal interface may be shown in fig. 4.
S102, determining a target positioning mode corresponding to the current network system in mode mapping information based on the current network system;
according to some embodiments, the mode mapping information refers to a set including network formats and positioning modes corresponding to the network formats. The pattern mapping information is not specific to a certain fixed mapping information. When the terminal receives a mapping information modification instruction input by a user for the mode mapping information, the terminal can modify the mode mapping information based on the mapping information modification instruction.
It is easy to understand that when the terminal acquires the current network system, the terminal may acquire the mode mapping information. When the terminal acquires the mode mapping information, the terminal acquires a target positioning mode corresponding to the current network system based on the mapping relation between the network system and the positioning mode in the mode mapping information.
Optionally, when the terminal obtains the voice positioning instruction, the current network system obtained by the terminal may be, for example, a 3G network system. When the terminal acquires the current network system 3G network system, the terminal can acquire the mode mapping information. When the terminal acquires the mode mapping information, the terminal acquires a target positioning mode corresponding to the current network system 3G network system based on the mapping relation between the network system and the positioning mode in the mode mapping information, wherein the target positioning mode can be, for example, MSB positioning mode. The positioning mode of the MSB positioning mode (Mobile Station Based positioning mode) is a positioning mode in which the terminal downloads ephemeris information from the network server and calculates current position information based on the downloaded ephemeris information, and is suitable for a position with a good satellite signal.
S103, determining current position information based on the target positioning mode.
According to some embodiments, the current location information refers to location information of the terminal when the terminal obtains the positioning instruction, where the current location information is not specific to a certain fixed location information. For example, when the location of the terminal changes, the current location information will also change accordingly.
It is easy to understand that when the terminal determines the target positioning mode corresponding to the current network system in the mode mapping information based on the current network system, the terminal may determine the current location information by using the target positioning mode. For example, when the terminal acquires the voice positioning instruction, the current network system acquired by the terminal may be, for example, a 3G network system. The terminal obtains the target positioning mode corresponding to the current network system 3G network system from the mode mapping information based on the 3G network system, for example, the target positioning mode can be an MSB positioning mode. The terminal may determine current location information of the terminal based on the MSB positioning mode. The current location information determined by the terminal may be, for example, C1 road C2 street C3 user.
In one or more embodiments of the present application, when a positioning instruction is acquired, a current network system is acquired, and a target positioning mode corresponding to the current network system is determined in mode mapping information based on the current network system, so that current location information can be determined based on the target positioning mode. Therefore, the current position information can be determined based on the target positioning mode corresponding to the network system, the situation that the position information is inaccurate in determination caused by directly acquiring the position information based on the fixed positioning mode is reduced, the accuracy of the position information determination can be improved, and the use experience of a user can be improved.
Referring to fig. 5, a flowchart of a positioning method is provided in an embodiment of the present application. As shown in fig. 5, the method according to the embodiment of the present application may include the following steps S201 to S208.
S201, acquiring a network system and a positioning mode corresponding to the network system;
according to some embodiments, the network system refers to a network type of a terminal, and the network system includes, but is not limited to, a second generation mobile phone communication technology (2-Generation wireless telephone technology, 2G) network system, a third generation mobile communication technology (3rd Generation,3G) network system, a fourth generation mobile communication technology (the 4Generation mobile communication technology,4G) network system, a fourth generation mobile communication technology (5th generation mobile networks,5G) network system, and the like.
It is easy to understand that the positioning mode refers to a mode for acquiring position information, and different positioning modes are used where satellite signals are different. Positioning modes include, but are not limited to, MSA positioning mode and MSB positioning mode. The MSA positioning mode (Mobile Station assisted positioning mode) refers to a positioning mode that a terminal directly obtains the current position information of the terminal from a mobile communication company server through base station assisted positioning, and is applicable to a position with poor satellite signals and can be used for single positioning. The positioning mode of the MSB positioning mode is a positioning mode in which the terminal downloads ephemeris information from the network server and calculates current position information based on the downloaded ephemeris information, and is suitable for a position with a good satellite signal.
According to some embodiments, before determining a positioning mode corresponding to a current network system, the terminal may acquire the network system and the positioning mode corresponding to the network system. The same network system can correspond to multiple positioning modes, and different network systems can correspond to the same positioning mode.
It is easy to understand that the positioning modes corresponding to the network system and the network system acquired by the terminal may be, for example, an MSA positioning mode corresponding to the 2G network system and the 2G network system, an MSB positioning mode corresponding to the 3G network system and the 3G network system, an MSA positioning mode corresponding to the 4G network system and the 4G network system, an MSA positioning mode corresponding to the 5G network system and the 5G network system, and an MSB positioning mode.
S202, storing a network system and a positioning mode mapping corresponding to the network system in mode mapping information;
according to some embodiments, when the terminal obtains the network system and the positioning mode corresponding to the network system, the terminal may store the positioning mode mapping corresponding to the network system and the network system in the mode mapping information. After the terminal stores the network system and the positioning mode mapping corresponding to the network system in the mode mapping information, the terminal can also modify the mode mapping information based on the mapping information modification instruction.
It is easy to understand that the positioning modes corresponding to the network system and the network system acquired by the terminal may be, for example, an MSA positioning mode corresponding to the 2G network system and the 2G network system, an MSB positioning mode corresponding to the 3G network system and the 3G network system, an MSA positioning mode corresponding to the 4G network system and the 4G network system, an MSA positioning mode corresponding to the 5G network system and the 5G network system, and an MSB positioning mode. The terminal can store the acquired network system and the positioning mode mapping corresponding to the network system in the mode mapping information. The pattern mapping information may be as shown in table 1, for example.
TABLE 1
S203, when a positioning instruction is acquired, acquiring a current network system once every acquisition time length;
According to some embodiments, after the terminal obtains the positioning instruction, the terminal may obtain the current network system once every obtaining time, so that when the terminal location information changes, the determining time of the current location information may be reduced, and accuracy of location information determination may be improved.
It is easy to understand that the acquired time length refers to the interval time length between the current network system acquired last time and the current network system acquired last time, and the acquired time length is not specific to a certain fixed time length. The terminal may modify the acquisition duration, for example, based on a duration modification instruction for the acquisition duration by the user. The acquiring duration of the embodiment of the application may be, for example, 15 seconds, and when the positioning instruction is acquired, the terminal may acquire the current network system every 15 seconds.
S204, determining the quantity information of the positioning modes corresponding to the current network system in the mode mapping information based on the current network system;
according to some embodiments, the same network system may correspond to a plurality of positioning modes, so when the terminal obtains the current network system, the terminal may determine the number information of the positioning modes corresponding to the current network system in the mode mapping information. The quantity information is at least one. When the current network system acquired by the terminal is a 2G network system, the terminal can directly determine that the positioning mode corresponding to the 2G network system is an MSA positioning mode. Because the network data throughput of the terminal is low when the terminal is in the 2G network mode, the requirement of acquiring the position information from the server in real time cannot be met, the 2G network mode is only suitable for the MSA positioning mode, the time length of the 2G network mode for determining the position information can be reduced, and the efficiency of determining the position information in the 2G network mode is improved. The 3G network system, the 4G network system, and the 5G network system may correspond to a plurality of positioning modes, respectively.
It is easy to understand that the current network system acquired by the terminal may be, for example, a 5G network system. The terminal determines, based on the current network system 5G network system, that the number of positioning modes corresponding to the current network system 5G network system in the mode mapping information may be 2, for example.
S205, when the quantity information indicates that the positioning modes corresponding to the current network system are multiple, acquiring a current signal strength value;
according to some embodiments, the current signal strength value refers to a current satellite signal strength value of the terminal. The current signal strength value is not specific to a certain fixed signal strength value. When the position of the terminal changes, the current signal strength value of the terminal also changes correspondingly. For example, when the terminal is located at the D1 position, the current signal strength value of the terminal may be, for example, the D1 signal strength value. For example, when the location of the terminal is the E1 location, the current signal strength value of the terminal may be, for example, the E1 signal strength value.
It is easy to understand that when the terminal determines the number information of the positioning modes corresponding to the current network system in the mode mapping information, the terminal may determine whether the number information indicates that the positioning modes corresponding to the current network system are plural. When the quantity information indicates that the positioning modes corresponding to the current network system are multiple, the terminal can acquire the current signal strength value. When the quantity information indicates that the positioning mode corresponding to the current network system is one, the terminal can directly acquire the positioning mode corresponding to the current network system.
It is easy to understand that the current network system acquired by the terminal may be, for example, a 5G network system. The terminal determines, based on the current network system 5G network system, that the number of positioning modes corresponding to the current network system 5G network system in the mode mapping information may be 2, for example. When the terminal determines that the number information 2 indicates that the positioning modes corresponding to the current network system 5G network system are multiple, the terminal can acquire the current signal strength value.
According to some embodiments, when the terminal determines that the number information indicates that the positioning mode corresponding to the current network system is multiple, the terminal may send out the reminding information. The reminding information is used for reminding the quantity information to indicate that the positioning modes corresponding to the current network system are multiple. When the terminal receives a determination instruction for a target positioning mode, the terminal may acquire the target positioning mode. Wherein the determining instruction includes, but is not limited to, a voice determining instruction, a click determining instruction, a text determining instruction, and the like. The determining instruction in this embodiment may be, for example, a click determining instruction, and in this case, an exemplary schematic diagram of the terminal interface may be shown in fig. 6.
S206, determining a target positioning mode when the current signal strength value meets a signal strength threshold value;
According to some embodiments, the signal strength threshold refers to a threshold corresponding to the current signal strength value. The signal strength threshold is not particularly specified as a fixed threshold. When the terminal receives a modification instruction of the user for the signal strength threshold, the terminal can modify the signal strength threshold. Wherein, different network systems correspond to the same signal strength threshold, and different network systems correspond to different signal strength thresholds.
It is easy to understand that when the terminal acquires the current signal strength value, the terminal may determine whether the current signal strength value satisfies the signal strength threshold. The terminal may determine a target positioning mode when the current signal strength value meets a signal strength threshold.
Referring to fig. 7, a flowchart of a positioning method is provided according to an embodiment of the present application. As shown in fig. 7, the method according to the embodiment of the present application may include the following steps S301 to S303, where the target positioning mode is acquired based on the current signal strength value. The plurality of positioning modes in the present embodiment include an MSA positioning mode and an MSB positioning mode. S301, acquiring a current signal strength value, and judging whether the current signal strength value is larger than a signal strength threshold value; s302, when the current signal strength value is smaller than a signal strength threshold value, determining that the MSA positioning mode is a target positioning mode; s303, when the current signal strength value is larger than the signal strength threshold value, determining the MSB positioning mode as the target positioning mode.
According to some embodiments, when the terminal obtains the current signal strength value, the magnitude relation between the current signal strength value and the signal strength threshold is determined, that is, whether the current signal strength value is greater than the signal strength threshold is determined. And when the current signal strength value is smaller than the signal strength threshold value, the terminal can determine that the MSA positioning mode is a target positioning mode. When the current signal strength value is greater than the signal strength threshold, the terminal may determine that the MSB positioning mode is the target positioning mode.
When easy to understand, the current signal strength value acquired by the terminal is the e1 signal strength value. The signal strength threshold may be, for example, an e2 signal strength threshold. Wherein the e1 signal strength value is less than the e2 signal strength threshold. When the current signal strength value e1 is smaller than the signal strength threshold e2, the terminal can determine that the MSA positioning mode is the target positioning mode. The current signal intensity value acquired by the terminal is an e3 signal intensity value. The signal strength threshold may be, for example, an e2 signal strength threshold. Wherein the e3 signal strength value is greater than the e2 signal strength threshold. The terminal may determine the MSB positioning mode as the target positioning mode when the signal strength value is greater than the signal strength threshold e2 at the current signal strength value e 3.
S207, determining current position information based on a target positioning mode;
the specific process is as described above, and will not be described here again.
Referring to fig. 8, a flowchart of a positioning method is provided according to an embodiment of the present application. As shown in fig. 8, the method according to the embodiment of the present application may further include the following steps S401 to S403 after determining the current location information based on the target location mode. S401, obtaining a signal strength change value; s402, when the signal intensity change value is larger than the signal intensity change threshold value, switching the target positioning mode to obtain a switched target positioning mode; s403, re-determining current position information based on the switched positioning mode;
according to some embodiments, the terminal determines that the current network system corresponds to a plurality of positioning modes, and after the terminal determines the current location information based on the target positioning mode, the terminal may acquire the signal strength variation value. After the terminal acquires the signal strength variation value, the terminal may detect whether the signal strength variation value is greater than a signal strength variation threshold. When the terminal determines that the signal strength change value is greater than the signal strength change threshold, the terminal can switch the target positioning mode to obtain a switched target positioning mode. The terminal can redetermine the current position information based on the switched positioning mode, and the accuracy of position information acquisition can be improved.
It is easy to understand that the current network system acquired by the terminal is a 5G network system, and the positioning modes corresponding to the 5G network system may be, for example, an MSA positioning mode and an MSB positioning mode. When the terminal determines the current location information based on the MSA positioning mode, the signal strength change value acquired by the terminal may be, for example, an e4 signal strength change value. The signal strength change threshold may be, for example, an e5 signal strength change threshold. When the e4 signal strength variation value is greater than the e5 signal strength variation threshold, the terminal may switch the target positioning mode from the MSA positioning mode to the MSB positioning mode and re-determine the current location information based on the MSB positioning mode.
S208, sending out prompt information, wherein the prompt information is information for determining current position information based on the target positioning mode.
According to some embodiments, after determining the current location information based on the target location mode, the terminal may send a hint information, which is information of the current location information determined by the terminal based on the target location mode. The prompt information can reduce the time for the user to acquire the position information and improve the convenience of the user.
It is easy to understand that, based on the 3G network system, the terminal obtains the target positioning mode corresponding to the current network system 3G network system from the mode mapping information, for example, the target positioning mode may be the MSB positioning mode. The terminal may determine current location information of the terminal based on the MSB positioning mode. The current location information determined by the terminal may be, for example, C1 road C2 street C3 user. The terminal may send out a prompt message, which may be, for example: and determining that the current position information of the terminal is C1-path C2-street C3 user based on the MSB positioning mode corresponding to the 3G network system. At this time, an exemplary schematic diagram of the terminal interface may be shown in fig. 9.
In one or more embodiments of the present application, by acquiring a network system and a positioning mode corresponding to the network system, and storing a positioning mode map corresponding to the network system and the network system in the mode map information, it is possible to reduce the acquisition time period of the target positioning mode directly based on the mode map information, to reduce the determination time period of the location information, and to improve the determination efficiency of the location information. And secondly, when the terminal acquires the positioning instruction, acquiring the current network system every other acquisition time length, determining the quantity information of the positioning modes corresponding to the current network system in the mode mapping information based on the current network system, acquiring the current signal strength value when the quantity information indicates that the positioning modes corresponding to the current network system are multiple, and determining the target positioning mode when the current signal strength value meets the signal strength threshold value, so that the accuracy of acquiring the target positioning mode can be improved when the current network system corresponds to the multiple positioning modes, the condition that the position information is inaccurately determined due to the fact that the position information is directly acquired based on the fixed positioning mode is reduced, and the accuracy of acquiring the position information is further improved. Finally, based on the target positioning mode, the current position information is determined, prompt information can be sent out, the time for a user to acquire the position information can be reduced, and the convenience for the user to use can be improved.
The following describes the positioning device provided by the embodiment of the present application in detail with reference to fig. 10. It should be noted that, the positioning device shown in fig. 10 is used to perform the method of the embodiment shown in fig. 2 to 9, and for convenience of explanation, only the portion relevant to the embodiment of the present application is shown, and specific technical details are not disclosed, please refer to the embodiment shown in fig. 2 to 9 of the present application.
Fig. 10 is a schematic structural diagram of a positioning device according to an embodiment of the application. The positioning device 1000 may be implemented as all or part of a user terminal by software, hardware or a combination of both. According to some embodiments, the positioning device 1000 includes a system acquisition unit 1001, a mode determination unit 1002, and an information determination unit 1003, specifically for:
a system acquisition unit 1001, configured to acquire a current network system when acquiring a positioning instruction;
a mode determining unit 1002, configured to determine, based on the current network format, a target positioning mode corresponding to the current network format in mode mapping information;
an information determining unit 1003 for determining current location information based on the target positioning mode.
According to some embodiments, the positioning device 1000 further includes an information storage unit 1004, configured to obtain, based on the current network format, the network format and a positioning mode corresponding to the network format before obtaining, in the mode mapping information, a target positioning mode corresponding to the current network format;
And storing the network system and the positioning mode mapping corresponding to the network system in the mode mapping information.
According to some embodiments, the mode determining unit 1002 is configured to, based on the current network system, determine, in the mode mapping information, a target positioning mode corresponding to the current network system, where the target positioning mode is specifically configured to:
determining the quantity information of the positioning modes corresponding to the current network system in the mode mapping information based on the current network system;
when the quantity information indicates that the positioning modes corresponding to the current network system are multiple, acquiring a current signal strength value;
and determining a target positioning mode when the current signal strength value meets the signal strength threshold value.
According to some embodiments, when the plurality of positioning modes includes an MSA positioning mode and an MSB positioning mode, the mode determining unit 1002 is configured to, when the current signal strength value satisfies the signal strength threshold, determine the target positioning mode, specifically configured to:
when the current signal strength value is smaller than the signal strength threshold value, determining that the MSA positioning mode is a target positioning mode;
and when the current signal strength value is greater than the signal strength threshold value, determining the MSB positioning mode as the target positioning mode.
According to some embodiments, the current network system corresponds to a plurality of positioning modes, and the information determining unit 1003 is further configured to obtain a signal strength variation value after determining the current location information based on the target positioning mode;
When the signal intensity change value is larger than the signal intensity change threshold value, switching the target positioning mode to obtain a switched target positioning mode;
and re-determining the current position information based on the switched positioning mode.
According to some embodiments, the system acquisition unit 1001 is configured to, when acquiring a positioning instruction, acquire a current network system, specifically be used for:
and when the positioning instruction is acquired, acquiring the current network system once every acquisition time length.
According to some embodiments, the positioning device 1000 further includes an information prompt unit 1005 for determining the current location information based on the target positioning mode, and further includes:
and sending out prompt information, wherein the prompt information is information for determining the current position information based on the target positioning mode.
In one or more embodiments of the present application, when a positioning instruction is acquired, a current network system is acquired, and a target positioning mode corresponding to the current network system is determined in mode mapping information based on the current network system, so that current location information can be determined based on the target positioning mode. Therefore, the current position information can be determined based on the target positioning mode corresponding to the network system, the situation that the position information is inaccurate in determination caused by directly acquiring the position information based on the fixed positioning mode is reduced, the accuracy of the position information determination can be improved, and the use experience of a user can be improved.
Fig. 11 is a schematic structural diagram of a terminal according to an embodiment of the present application. As shown in fig. 11, the terminal 1100 may include: at least one processor 1101, at least one network interface 1104, a user interface 1103, a memory 1105, at least one communication bus 1102.
Wherein communication bus 1102 is used to facilitate connection communications among the components.
The user interface 1103 may include a Display screen (Display) and a GPS, and the optional user interface 1103 may further include a standard wired interface, a wireless interface.
Network interface 1104 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 1101 may comprise one or more processing cores. The processor 1101 connects various parts within the overall terminal 1100 using various interfaces and lines, performs various functions of the terminal 1100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1105, and invoking data stored in the memory 1105. Alternatively, the processor 1101 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 1101 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 1101 and may be implemented by a single chip.
The Memory 1105 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1105 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 1105 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1105 may include a stored program area that may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, etc., and a stored data area; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 1105 may also optionally be at least one storage device located remotely from the processor 1101. As shown in fig. 11, an operating system, a network communication module, a user interface module, and an application program for positioning may be included in the memory 1105 as one type of computer storage medium.
In the terminal 1100 shown in fig. 11, the user interface 1103 is mainly used for providing an input interface for a user, and acquiring data input by the user; and the processor 1101 may be configured to invoke the located application program stored in the memory 1105 and specifically perform the following operations:
When a positioning instruction is acquired, acquiring a current network system;
determining a target positioning mode corresponding to the current network system in the mode mapping information based on the current network system;
based on the target positioning mode, current location information is determined.
According to some embodiments, the processor 1101 is configured to perform, based on the current network system, the following operations further specifically performed before the target positioning mode corresponding to the current network system is acquired in the mode mapping information:
acquiring a network system and a positioning mode corresponding to the network system;
and storing the network system and the positioning mode mapping corresponding to the network system in the mode mapping information.
According to some embodiments, the processor 1101 is configured to perform, when determining, based on the current network system, a target positioning mode corresponding to the current network system in the mode mapping information, the following operations:
determining the quantity information of the positioning modes corresponding to the current network system in the mode mapping information based on the current network system;
when the quantity information indicates that the positioning modes corresponding to the current network system are multiple, acquiring a current signal strength value;
and determining a target positioning mode when the current signal strength value meets the signal strength threshold value.
According to some embodiments, when the plurality of positioning modes includes an MSA positioning mode and an MSB positioning mode, the processor 1101 is configured to perform the following operations when the target positioning mode is determined when the current signal strength value satisfies the signal strength threshold:
when the current signal strength value is smaller than the signal strength threshold value, determining that the MSA positioning mode is a target positioning mode;
and when the current signal strength value is greater than the signal strength threshold value, determining the MSB positioning mode as the target positioning mode.
According to some embodiments, the current network system corresponds to a plurality of positioning modes, and the processor 1101 is configured to perform the following operations after determining the current location information based on the target positioning mode:
acquiring a signal strength variation value;
when the signal intensity change value is larger than the signal intensity change threshold value, switching the target positioning mode to obtain a switched target positioning mode;
and re-determining the current position information based on the switched positioning mode.
According to some embodiments, the processor 1101 is configured to, when acquiring the positioning instruction, acquire the current network system, specifically perform the following operations:
and when the positioning instruction is acquired, acquiring the current network system once every acquisition time length.
According to some embodiments, the processor 1101 is configured to perform the following operations, in particular, after determining the current location information based on the target positioning mode:
and sending out prompt information, wherein the prompt information is information for determining the current position information based on the target positioning mode.
In one or more embodiments of the present application, when a positioning instruction is acquired, a current network system is acquired, and a target positioning mode corresponding to the current network system is determined in mode mapping information based on the current network system, so that current location information can be determined based on the target positioning mode. Therefore, the current position information can be determined based on the target positioning mode corresponding to the network system, the situation that the position information is inaccurate in determination caused by directly acquiring the position information based on the fixed positioning mode is reduced, the accuracy of the position information determination can be improved, and the use experience of a user can be improved.
The present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above method. The computer readable storage medium may include, among other things, any type of disk including floppy disks, optical disks, DVDs, CD-ROMs, micro-drives, and magneto-optical disks, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps of any one of the positioning methods described in the method embodiments above.
It will be clear to a person skilled in the art that the solution according to the application can be implemented by means of software and/or hardware. "Unit" and "module" in this specification refer to software and/or hardware capable of performing a specific function, either alone or in combination with other components, such as Field programmable gate arrays (Field-ProgrammaBLE Gate Array, FPGAs), integrated circuits (Integrated Circuit, ICs), etc.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, such as the division of the units, merely a logical function division, and there may be additional manners of dividing the actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some service interface, device or unit indirect coupling or communication connection, electrical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on this understanding, the technical solution of the present application may be embodied essentially or partly in the form of a software product, or all or part of the technical solution, which is stored in a memory, and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be performed by hardware associated with a program that is stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing is merely exemplary embodiments of the present disclosure and is not intended to limit the scope of the present disclosure. That is, equivalent changes and modifications are contemplated by the teachings of this disclosure, which fall within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a scope and spirit of the disclosure being indicated by the claims.

Claims (8)

1. A method of positioning, the method comprising:
When a positioning instruction is acquired, acquiring a current network system once every acquisition time length;
determining a target positioning mode corresponding to the current network system in mode mapping information based on the current network system;
determining current location information based on the target positioning mode;
acquiring a signal strength variation value;
when the signal intensity change value is larger than a signal intensity change threshold value, switching the target positioning mode to obtain a switched target positioning mode;
and re-determining the current position information based on the switched target positioning mode.
2. The method of claim 1, wherein the obtaining, based on the current network format, the target positioning mode corresponding to the current network format in the mode mapping information further comprises:
acquiring a network system and a positioning mode corresponding to the network system;
and storing the network system and the positioning mode mapping corresponding to the network system in the mode mapping information.
3. The method of claim 1, wherein the determining, based on the current network format, the target positioning mode corresponding to the current network format in the mode mapping information includes:
Determining the quantity information of the positioning modes corresponding to the current network system in the mode mapping information based on the current network system;
when the quantity information indicates that the positioning modes corresponding to the current network system are multiple, acquiring a current signal strength value;
and determining the target positioning mode when the current signal strength value meets a signal strength threshold value.
4. The method of claim 3, wherein when the plurality of positioning modes includes an MSA positioning mode and an MSB positioning mode, the obtaining the target positioning mode based on the current signal strength value comprises:
when the current signal strength value is smaller than a signal strength threshold value, determining that the MSA positioning mode is the target positioning mode;
and when the current signal strength value is larger than a signal strength threshold value, determining the MSB positioning mode as the target positioning mode.
5. The method of claim 1, wherein after determining current location information based on the target positioning pattern, further comprising:
and sending out prompt information, wherein the prompt information is information for determining the current position information based on the target positioning mode.
6. A positioning device, the device comprising:
the system acquisition unit is used for acquiring the current network system once every acquisition time when the positioning instruction is acquired;
the mode determining unit is used for determining a target positioning mode corresponding to the current network system in the mode mapping information based on the current network system;
an information determining unit configured to determine current location information based on the target positioning mode;
the change value acquisition unit is used for acquiring a signal strength change value;
the mode switching unit is used for switching the target positioning mode when the signal intensity change value is larger than a signal intensity change threshold value to obtain a switched target positioning mode;
the information determining unit is further configured to redetermine the current location information based on the switched target positioning mode.
7. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1 to 5 when executing the computer program.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method of any of the preceding claims 1 to 5.
CN202011522019.4A 2020-12-21 2020-12-21 Positioning method, positioning device, terminal and storage medium Active CN112738726B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011522019.4A CN112738726B (en) 2020-12-21 2020-12-21 Positioning method, positioning device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011522019.4A CN112738726B (en) 2020-12-21 2020-12-21 Positioning method, positioning device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112738726A CN112738726A (en) 2021-04-30
CN112738726B true CN112738726B (en) 2023-09-15

Family

ID=75604515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011522019.4A Active CN112738726B (en) 2020-12-21 2020-12-21 Positioning method, positioning device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112738726B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117255403A (en) * 2022-06-10 2023-12-19 维沃移动通信有限公司 Positioning model selection method, terminal and network side equipment
CN117643078A (en) * 2022-06-23 2024-03-01 北京小米移动软件有限公司 Positioning model determining method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012154834A (en) * 2011-01-27 2012-08-16 Kyocera Corp Wireless terminal device and positioning method
WO2016086339A1 (en) * 2014-12-01 2016-06-09 华为技术有限公司 Positioning method for mobile terminal, and mobile terminal
CN107422358A (en) * 2017-05-19 2017-12-01 上海斐讯数据通信技术有限公司 A kind of whole scene localization method and system
CN107466007A (en) * 2016-06-03 2017-12-12 中国移动通信有限公司研究院 A kind of localization method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012154834A (en) * 2011-01-27 2012-08-16 Kyocera Corp Wireless terminal device and positioning method
WO2016086339A1 (en) * 2014-12-01 2016-06-09 华为技术有限公司 Positioning method for mobile terminal, and mobile terminal
CN107466007A (en) * 2016-06-03 2017-12-12 中国移动通信有限公司研究院 A kind of localization method and terminal
CN107422358A (en) * 2017-05-19 2017-12-01 上海斐讯数据通信技术有限公司 A kind of whole scene localization method and system

Also Published As

Publication number Publication date
CN112738726A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN112738726B (en) Positioning method, positioning device, terminal and storage medium
CN108228358B (en) Method, device, mobile terminal and storage medium for correcting vertical synchronization signal
US11205346B2 (en) Traffic information update method and apparatus
US11270690B2 (en) Method and apparatus for waking up device
CN104053126B (en) Show wireless communication terminal, the device and method of both call sides position
CN111654852B (en) Data card switching method and device, terminal and storage medium
CN108055635B (en) Position information acquisition method and device, storage medium and terminal
CN111432001A (en) Method, apparatus, electronic device, and computer-readable medium for jumping scenes
CN107864044B (en) Information processing method and device, terminal and readable storage medium
CN111782329A (en) Node dragging method, device, equipment and computer readable medium
US20120149397A1 (en) Determining Geographic Zone
CN110035399B (en) Message transmission method and related equipment
CN107743151B (en) Content pushing method and device, mobile terminal and server
CN111309406A (en) Event processing method and device of application program and electronic equipment
CN106330875B (en) Message display method and device
CN113691937B (en) Method for determining position information, cloud mobile phone and terminal equipment
CN113873003B (en) Data transmission control method and system between storage end and communication end in Internet of things
CN112530435B (en) Data transmission method, device and system, readable storage medium and electronic equipment
CN114077372A (en) Information display method, device and storage medium
CN111767074A (en) Configuration updating method, device, terminal and storage medium
CN105279271A (en) Message push method and apparatus
CN111091827A (en) Voice navigation method and device, terminal and computer readable storage medium
CN109831484B (en) Election method, device, medium and electronic equipment for APP (application) sharing pushing SDK (software development kit) service
CN112235333B (en) Function package management method, device, equipment and storage medium
CN116340930B (en) Method, device, equipment and medium for confirming system change

Legal Events

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