Mobile terminal with dual systems, positioning method, mobile terminal and medium
When receiving GPS positioning requests on the private network system of the mobile terminal, the public network system obtains the latest GPS ephemeris and updates the GPS positioning chip, which solves the problem of low positioning efficiency caused by the expiration of the GPS ephemeris, and realizes the blocking of signals or networks Fast positioning in poor environments.
Patent Information
- Application Number
- CN202310652593.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-12-03
AI Technical Summary
In the prior art, when the GPS ephemeris data of the private network system expires, the positioning efficiency of the mobile terminal is low. Especially when the satellite signal is blocked or the network environment is poor, it takes a long time to obtain the effective GPS ephemeris.
When the private network system receives the GPS positioning request, the public network system uses the public network system to access the ephemeris server to obtain the latest GPS ephemeris, and directly update the GPS positioning chip for positioning.
The positioning efficiency is improved, and the GPS ephemeris acquisition time is extended due to satellite signal occlusion or poor network environment is avoided, ensuring the rapid positioning of mobile terminals.
Smart Images

Figure CN119071719A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to mobile terminal technology, and in particular to a mobile terminal with dual systems, a positioning method, a mobile terminal and a medium. Background Art
[0002] At present, a mobile terminal with dual systems installed can support the dual systems working simultaneously, wherein the dual systems include: a private network system and a public network system, and the two systems are isolated from each other. In addition, in order to realize GPS service, the mobile terminal with dual systems also includes a set of GPS hardware resources, and the GPS hardware resources mainly include: GPS HAL module and GPS positioning chip, etc. Specifically, the upper layer application operates the GPS positioning chip through the GPS HAL module to realize GPS positioning of the mobile terminal.
[0003] In the prior art, a dual-system mobile terminal is generally positioned through a private network system, and the positioning method is as follows: the private network system will realize positioning according to the stored GPS ephemeris, but when the stored GPS ephemeris has expired, the GPS HAL module will instruct the built-in antenna of the GPS positioning chip to randomly search for stars, obtain satellite navigation messages, and parse them to obtain new GPS ephemeris, so that the GPS positioning chip can determine the location information of the mobile terminal according to the new GPS ephemeris.
[0004] However, in the process of random satellite search through the built-in antenna of the GPS positioning chip, a satellite with a strong enough signal needs to be found to obtain the satellite navigation message, and then obtain valid GPS ephemeris based on the satellite navigation message. In the case of obstruction of satellite signals or poor network environment of the mobile terminal, it takes a certain amount of time to find a satellite with sufficient signal strength, so it takes a certain amount of time to obtain valid GPS ephemeris, which further reduces the positioning efficiency. Summary of the invention
[0005] The present application provides a mobile terminal with dual systems, a positioning method, a mobile terminal and a medium, which are used to solve the technical problem in the prior art that the positioning efficiency of the mobile terminal is low when the GPS ephemeris data of the private network system expires.
[0006] In a first aspect, the present application provides a mobile terminal with dual systems, including:
[0007] The mobile terminal includes a private network system, a public network system, a root domain, and a GPS positioning chip;
[0008] The private network system is used to send the GPS positioning request to the public network system through the root domain when receiving the GPS positioning request, so that the public network system can query whether there is a valid GPS ephemeris in the shared ephemeris storage path; wherein the valid GPS ephemeris is a GPS ephemeris that can be used to locate the mobile terminal at the current moment;
[0009] The public network system is used to respond to the GPS positioning request, and when the public network system queries the shared ephemeris storage path and finds that there is no valid GPS ephemeris, access the ephemeris server, obtain the latest GPS ephemeris from the ephemeris server, send it to the GPS positioning chip, and store it in the shared ephemeris storage path;
[0010] The GPS positioning chip is used to locate the mobile terminal based on the latest GPS ephemeris to obtain the location information of the mobile terminal.
[0011] In one embodiment, the GPS positioning chip is also used to locate the mobile terminal based on the valid GPS ephemeris when the private network system or the public network system queries the shared ephemeris storage path to obtain the location information of the mobile terminal.
[0012] In one embodiment, the public network system includes a positioning module, and the root domain includes a GPS HAL module;
[0013] The private network system is specifically used to send the GPS positioning request to the positioning module through the preset first shared socket file node in the GPS HAL module;
[0014] When the public network system determines that there is no valid GPS ephemeris, it is also used to send an indication message to the gps hal module through a preset second shared socket file node; wherein the indication message is used to indicate that there is currently no valid GPS ephemeris in the shared ephemeris storage path.
[0015] In one embodiment, the GPS positioning chip is specifically used for:
[0016] Based on the positions of multiple satellites in the latest GPS ephemeris, the built-in antenna of the GPS positioning chip is used to scan and obtain signal strength information of multiple satellites;
[0017] Based on the signal strength information of each of the satellites, four target satellites are determined from the satellites, and navigation messages of the target satellites are obtained; wherein the target satellites are satellites whose signal strength is greater than a preset threshold;
[0018] The location information of the mobile terminal is determined according to the navigation message and ranging code of each target satellite.
[0019] In one embodiment, the GPS positioning chip is further used to return the location information of the mobile terminal to the upper layer application of the private network system through the root domain.
[0020] In a second aspect, the present application provides a positioning method, which is applied to the dual-system mobile terminal in the above embodiments, wherein the mobile terminal includes a private network system, a public network system, a root domain, and a GPS positioning chip; the method includes:
[0021] The public network system obtains the GPS positioning request sent by the private network system through the root domain;
[0022] In response to the GPS positioning request, the public network system queries whether there is a valid GPS ephemeris in the shared ephemeris storage path;
[0023] If the public network system determines that it does not have the valid GPS ephemeris, it accesses the ephemeris server, obtains the latest GPS ephemeris from the ephemeris server and sends it to the GPS positioning chip, so that the GPS positioning chip locates the mobile terminal based on the latest GPS ephemeris and obtains the location information of the mobile terminal;
[0024] The shared ephemeris storage path is a path that is accessible to both the public network system and the private network system and stores GPS ephemeris; the valid GPS ephemeris is a GPS ephemeris that can be used to locate the mobile terminal at the current moment.
[0025] In one embodiment, the method further comprises:
[0026] If the public network system determines that it has the valid GPS ephemeris, it sends the valid GPS ephemeris to the GPS positioning chip, so that the GPS positioning chip locates the mobile terminal based on the valid GPS ephemeris and obtains the location information of the mobile terminal.
[0027] In a third aspect, the present application provides a dual-system mobile terminal, comprising: a processor, and a memory communicatively connected to the processor;
[0028] The memory stores computer-executable instructions;
[0029] The processor executes the computer-executable instructions stored in the memory to implement the method according to the first aspect.
[0030] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.
[0031] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.
[0032] The present application provides a mobile terminal with dual systems, a positioning method, a mobile terminal and a medium, wherein the mobile terminal includes a private network system, a public network system, a root domain, and a GPS positioning chip; the private network system is used to send the GPS positioning request to the public network system through the root domain when receiving a GPS positioning request, so that the public network system can query whether there is a valid GPS ephemeris in the shared ephemeris storage path; wherein the valid GPS ephemeris is a GPS ephemeris that can be used to locate the mobile terminal at the current moment; the public network system is used to respond to the GPS positioning request, and when the public network system queries the shared ephemeris storage path and finds that there is no valid GPS ephemeris, access an ephemeris server, obtain the latest GPS ephemeris from the ephemeris server, send it to the GPS positioning chip, and store it in the shared ephemeris storage path; the GPS positioning chip is used to locate the mobile terminal based on the latest GPS ephemeris to obtain the location information of the mobile terminal. In this patent, when the private network system receives a GPS positioning request, it can query whether there is a valid GPS ephemeris in the shared ephemeris storage path through the private network system or the public network system. When it is determined that there is no valid GPS ephemeris, that is, when the GPS ephemeris has expired, it can use the performance of the public network system to access the ephemeris server, access the ephemeris server through the public network system, and indirectly obtain the latest GPS ephemeris from the ephemeris server. Since the latest GPS ephemeris must be the GPS ephemeris that can be used to locate the mobile terminal at the current moment. Therefore, the private network system can locate the mobile terminal based on the latest GPS ephemeris through the GPS positioning chip, thereby obtaining the location information of the mobile terminal. Compared with the prior art, in the case that the GPS ephemeris stored in the private network system has expired, the private network system can indirectly and quickly obtain the latest GPS ephemeris by accessing the ephemeris server through the public network system, without randomly searching for stars through the GPS positioning chip to obtain a valid GPS ephemeris, and will not be affected by factors such as satellite signal obstruction or the network environment where the mobile terminal is located, which will cause the acquisition of valid GPS ephemeris to be more time-consuming, thereby improving the positioning efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0034] Figure 1 An architecture diagram of a mobile terminal with dual systems for implementing an embodiment of the present application;
[0035] Figure 2 A schematic diagram of a private network system and a public network system after the Linux kernel of a mobile terminal is started before the modification process startup file of an embodiment of the present application is implemented;
[0036] Figure 3 A schematic diagram of a private network system and a public network system after the Linux kernel of a mobile terminal is started after the process startup file is modified in an embodiment of the present application;
[0037] Figure 4 A flowchart of a positioning method according to an embodiment of the present application is shown;
[0038] Figure 5 The figure is a schematic diagram of the structure of a mobile terminal with dual systems used to implement a positioning method for a mobile terminal.
[0039] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0040] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0041] First, the terms involved in this application are explained:
[0042] Private network system: It is one of the operating systems of a mobile terminal with dual systems, also known as a working domain. This system can only connect to a dedicated private network.
[0043] Public network system: It is another operating system of a mobile terminal with dual systems, also called life domain, which can connect to the public network.
[0044] Root domain: It is the underlying domain of a mobile terminal with dual systems, also known as the super management authority domain; the root domain is the basis of the private network system and the public network system, and its kernel and driver can be used to process several instruction calls of the private network system and the public network system.
[0045] Linux kernel: It is the core of the operating system and can support multiple chip platforms, such as HiSilicon platform, MTK platform and Qualcomm platform.
[0046] In order to clearly understand the technical solution of the present application, the solution of the prior art is first introduced in detail.
[0047] In the traditional way, the dual-system mobile terminal is generally positioned through a private network system, and the positioning method is: the private network system will realize positioning according to the stored GPS ephemeris, but when the stored GPS ephemeris has expired, the GPS hal module will instruct the built-in antenna of the GPS positioning chip to search for stars randomly, obtain satellite navigation messages, and parse them to obtain new GPS ephemeris, so that the GPS positioning chip can determine the location information of the mobile terminal according to the new GPS ephemeris.
[0048] However, in the process of random satellite search through the built-in antenna of the GPS positioning chip, a satellite with a strong enough signal needs to be found to obtain the satellite navigation message, and then obtain valid GPS ephemeris based on the satellite navigation message. In the case of obstruction of satellite signals or poor network environment of the mobile terminal, it takes a certain amount of time to find a satellite with sufficient signal strength, so it takes a certain amount of time to obtain valid GPS ephemeris, which further reduces the positioning efficiency.
[0049] Therefore, in the face of the technical problems of the prior art, the inventor found through creative research that in order to shorten the time to obtain valid GPS ephemeris and improve the positioning efficiency, the public network system can access the performance of the ephemeris server. When the private network system receives the GPS positioning request, it first determines whether the GPS ephemeris stored in the shared ephemeris storage path is valid. When there is no valid GPS ephemeris, that is, when the GPS ephemeris has expired, the public network system can access the performance of the ephemeris server. The ephemeris server is accessed through the public network system, and the latest GPS ephemeris is indirectly obtained from the ephemeris server. The private network system then locates the mobile terminal based on the latest GPS ephemeris through the GPS positioning chip, thereby obtaining the location information of the mobile terminal. Since the latest GPS ephemeris obtained from the ephemeris server must be a valid GPS ephemeris, it can be directly used to locate the mobile terminal. This patent does not need to obtain a valid GPS ephemeris through the GPS positioning chip randomly searching for stars like the prior art, so it can reduce the time-consuming problem of obtaining a valid GPS ephemeris to a certain extent, thereby effectively improving the positioning efficiency of the mobile terminal.
[0050] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0051] like Figure 1 As shown, the mobile terminal 1 with dual systems provided in the embodiment of the present application includes a private network system 10, a root domain 20, a public network system 30, and a GPS positioning chip 40; the private network system 10 is used to send the GPS positioning request to the public network system 30 through the root domain 20 when receiving the GPS positioning request, so that the public network system 30 can query whether there is a valid GPS ephemeris in the shared ephemeris storage path; wherein the valid GPS ephemeris is the GPS ephemeris that can be used to locate the mobile terminal 1 at the current moment;
[0052] The public network system 30 is used to respond to the GPS positioning request, and when the public network system 30 queries the shared ephemeris storage path and does not have a valid GPS ephemeris, access the ephemeris server 2, obtain the latest GPS ephemeris from the ephemeris server 2, send it to the GPS positioning chip 40, and store it in the shared ephemeris storage path;
[0053] The GPS positioning chip 40 is used to locate the mobile terminal 1 based on the latest GPS ephemeris to obtain the location information of the mobile terminal 1 .
[0054] Among them, the GPS positioning request is initiated by the upper-layer application (Application) of the private network system when positioning is required. The upper-layer application can be any software. When the software is started by the user, the software will actively initiate a GPS positioning request to request the current location information of the mobile terminal. The location information of the mobile terminal includes the latitude, longitude and altitude of the mobile terminal.
[0055] Valid GPS ephemeris is the GPS ephemeris that can be used to locate the mobile terminal at the current moment. The GPS ephemeris includes the ephemeris data of all satellites, and the ephemeris data includes the position and speed of the satellite. The positioning of the mobile terminal is generally achieved through the GPS positioning chip. Specifically, the GPS positioning chip analyzes and calculates the GPS ephemeris and the existing four-star time difference positioning algorithm to determine the location information of the mobile terminal. Moreover, the GPS positioning chip can accurately obtain the current location information of the mobile terminal only when it is positioned based on the valid GPS ephemeris.
[0056] Optionally, determining a valid GPS ephemeris may specifically be as follows: the public network system determines whether the GPS ephemeris in the shared ephemeris storage path satisfies corresponding conditions in time and space. If both conditions are satisfied, it is determined to be a valid GPS ephemeris. If either the time or space conditions do not meet the corresponding conditions, it is determined to be an invalid GPS ephemeris. A valid GPS ephemeris satisfies that the time of obtaining the GPS ephemeris does not exceed a preset duration from the current moment in time, and that the position of the mobile terminal does not exceed a preset change distance from the position at the current moment in space. The reason why the conditions must also be met in space is that if the position of the mobile terminal changes greatly, using the GPS ephemeris obtained at the previous position and still within the validity period for positioning will result in inaccurate positioning. In order to improve the accuracy of the GPS positioning chip in positioning the mobile terminal, two factors are set to comprehensively determine the valid GPS ephemeris.
[0057] In the traditional way, the private network system and the public network system are isolated from each other, and each has a set of directory files for storing data in the root domain, and they are only used by this system. For example, the original ephemeris storage path of the private network system is mounted under the A directory file of the root domain, and the ephemeris storage path of the public network system is mounted under the B directory file of the root domain. The private network system can only access the ephemeris storage path under the A directory file, and the public network system can only access the ephemeris storage path under the B directory file. The shared ephemeris storage path of this patent is to create a new C directory file in the root domain before the mobile terminal leaves the factory, and mount the ephemeris storage path under the C directory file, so as to obtain a shared ephemeris storage path. When the private network system and the public network system access the ephemeris storage path, they will access the shared ephemeris storage path under the C directory file.
[0058] The shared ephemeris storage path is a path that can be accessed by the public network system and the private network system and is used to store the GPS ephemeris. Since it is a path that can share the GPS ephemeris, it can be understood that when the GPS ephemeris data of either system expires, as long as the other system can obtain the valid GPS ephemeris and store it in the shared ephemeris storage path, the either system can obtain the valid GPS ephemeris from the shared ephemeris storage path. The other system can be a public network system. The case of the public network system corresponds to this embodiment, and the other system can also be a private network system. If the other system is a private network system, one of the corresponding scenarios is: when the public network system responds to the GPS positioning request of the upper layer application of the public network system and locates the mobile terminal, it is found that the GPS ephemeris in the shared ephemeris storage path has expired, and the public network system itself fails, or there is a network problem. At this time, the public network system cannot obtain the latest GPS ephemeris from the ephemeris server, so the private network system needs to randomly search the stars through the GPS positioning chip to obtain the valid GPS ephemeris and store it in the shared ephemeris storage path. The second scenario may be: when the public network system responds to the GPS positioning request of the upper-layer application of the public network system and locates the mobile terminal, when it is determined that there is a valid GPS ephemeris in the shared ephemeris storage path, positioning is performed based on the valid GPS ephemeris through the GPS positioning chip. Here, the valid GPS ephemeris in the shared ephemeris storage path may be acquired and stored by the private network system, or may be originally acquired and stored by the public network system, without specific limitation.
[0059] Since private network systems usually involve confidential information, in order to avoid public network attacks and the risk of leaking important confidential information, it is generally not possible to access the ephemeris server or other servers or terminals through the private network. The public network system is only used for daily Internet access, so the ephemeris server or other servers or terminals can be accessed through the public network. In order for the private network system to utilize the feature of the public network system that can access the ephemeris server through the public network, the process startup files of the positioning module and the auxiliary positioning module of the private network system are annotated in advance by modifying the process startup file (rc), and the process startup files of the positioning module and the auxiliary positioning module of the public network system are retained. Therefore, after the Linux kernel is started, only the positioning module and the auxiliary positioning module of the public network system are enabled. Figure 2 As shown, before the process startup file is modified, the private network system and the public network system in the mobile terminal each have a set of positioning modules and auxiliary positioning modules, and the two are in an isolated state in terms of positioning the mobile terminal. Figure 3 It is shown that after the process startup file is modified, only the public network system in the mobile terminal is started after the Linux kernel, and the positioning module and the auxiliary positioning module are enabled.
[0060] When the private network system receives the GPS positioning request from the upper-layer application, it first sends the GPS positioning request to the root domain through HIDL (HALinterface definition language), and then forwards the GPS positioning request to the public network system through the root domain, and uses the public network system to determine whether the stored GPS ephemeris is valid.
[0061] When the public network system receives the GPS positioning request forwarded by the root domain, it can respond to the GPS positioning request and query the shared ephemeris storage path to find out whether there is a valid GPS ephemeris. If it is determined that there is no valid GPS ephemeris, it will access the ephemeris server to obtain the latest GPS ephemeris, where the valid GPS ephemeris is not necessarily the latest GPS ephemeris, but the latest GPS ephemeris must be a valid GPS ephemeris. The specific process of the public network system accessing the ephemeris server to obtain the latest GPS ephemeris is as follows: the public network system sends an ephemeris acquisition instruction to the root domain, and the root domain forwards the ephemeris acquisition instruction through the Linux kernel and baseband chip, and finally sends it to the ephemeris server. The ephemeris server responds to the ephemeris acquisition instruction and returns the latest GPS ephemeris to the shared ephemeris storage path of the root domain along the original path.
[0062] Afterwards, the public network system sends the latest GPS ephemeris to the GPS positioning chip, and the GPS positioning chip locates the mobile terminal based on the latest GPS ephemeris to obtain the location information of the mobile terminal. Specifically: the public network system obtains the latest GPS ephemeris from the shared ephemeris path, and performs data analysis to obtain the first parsed ephemeris data that can be recognized and used by the GPS positioning chip. When the first parsed ephemeris data is obtained, the public network system sends the first parsed ephemeris data to the GPS positioning chip, so that the GPS positioning chip locates the mobile terminal based on the first parsed ephemeris data to obtain the location information of the mobile terminal.
[0063] Optionally, after the GPS positioning chip determines the location information of the mobile terminal, it transmits it to the root domain through the Linux kernel, and transmits the location information of the mobile terminal to the private network system through the root domain, so that the upper-layer application of the private network system can obtain the location information of the mobile terminal.
[0064] In the present application, the mobile terminal includes a private network system, a public network system, a root domain, and a GPS positioning chip; the private network system is used to send the GPS positioning request to the public network system through the root domain when receiving a GPS positioning request, so that the public network system can query whether there is a valid GPS ephemeris in the shared ephemeris storage path; wherein the valid GPS ephemeris is the GPS ephemeris that can be used to locate the mobile terminal at the current moment; the public network system is used to respond to the GPS positioning request, and when the public network system queries the shared ephemeris storage path and does not have a valid GPS ephemeris, access the ephemeris server, obtain the latest GPS ephemeris from the ephemeris server and send it to the GPS positioning chip, and store it in the shared ephemeris storage path; the GPS positioning chip is used to locate the mobile terminal based on the latest GPS ephemeris to obtain the location information of the mobile terminal. In this patent, when the private network system receives a GPS positioning request, it can query whether there is a valid GPS ephemeris in the shared ephemeris storage path through the private network system or the public network system. When it is determined that there is no valid GPS ephemeris, that is, when the GPS ephemeris has expired, it can use the performance of the public network system to access the ephemeris server, access the ephemeris server through the public network system, and indirectly obtain the latest GPS ephemeris from the ephemeris server. Since the latest GPS ephemeris must be the GPS ephemeris that can be used to locate the mobile terminal at the current moment. Therefore, the private network system can locate the mobile terminal based on the latest GPS ephemeris through the GPS positioning chip, thereby obtaining the location information of the mobile terminal. Compared with the prior art, in the case that the GPS ephemeris stored in the private network system has expired, the private network system can indirectly and quickly obtain the latest GPS ephemeris by accessing the ephemeris server through the public network system, without randomly searching for stars through the GPS positioning chip to obtain a valid GPS ephemeris, and will not be affected by factors such as satellite signal obstruction or the network environment where the mobile terminal is located, which will cause the acquisition of valid GPS ephemeris to be more time-consuming, thereby improving the positioning efficiency.
[0065] In one embodiment, the GPS positioning chip is further used to: when the public network system queries the shared ephemeris storage path for valid GPS ephemeris, locate the mobile terminal based on the valid GPS ephemeris to obtain the location information of the mobile terminal.
[0066] When the public network system inquires that there is a valid GPS ephemeris in the shared ephemeris storage path, the GPS positioning chip can directly locate the mobile terminal based on the valid GPS ephemeris to obtain the location information of the mobile terminal.
[0067] Specifically, the public network system obtains valid GPS ephemeris from the shared ephemeris path, and performs data analysis on it to obtain second analyzed ephemeris data that can be recognized and used by the GPS positioning chip. When the second analyzed ephemeris data is obtained, the public network system sends the second analyzed ephemeris data to the GPS positioning chip, so that the GPS positioning chip locates the mobile terminal based on the second analyzed ephemeris data and obtains the location information of the mobile terminal.
[0068] It can be understood that, in the case where there is a valid GPS ephemeris in the shared ephemeris storage path, the valid GPS ephemeris is obtained from the shared ephemeris storage path to locate the mobile terminal. The advantage of the private network system giving priority to positioning through the existing valid GPS ephemeris is that first, the public network system accesses the ephemeris server through the network to obtain the latest GPS ephemeris, which will be affected by the network environment in which the mobile terminal is located. When the signal of the network environment is relatively good, the delay in obtaining the latest GPS ephemeris can be ignored, but when the signal of the network environment is relatively poor, it will take a certain amount of time to obtain the latest GPS ephemeris. In the case where the valid GPS ephemeris can be used to locate the mobile terminal, compared with the method of obtaining the valid GPS ephemeris from the shared ephemeris storage path for positioning, the method of obtaining the latest GPS ephemeris from the ephemeris server for positioning will be relatively time-consuming.
[0069] In this embodiment, the GPS positioning chip is also used to locate the mobile terminal based on the valid GPS ephemeris when the public network system queries the shared ephemeris storage path for valid GPS ephemeris, and obtain the location information of the mobile terminal. Since the GPS positioning chip preferentially locates the mobile terminal based on the valid GPS ephemeris when there is a valid GPS ephemeris, compared with the way that the public network system accesses the ephemeris server through the network to obtain the latest GPS ephemeris, it will not be affected by the signal of the network environment, so the efficiency of the GPS positioning chip in locating the mobile terminal can be relatively improved.
[0070] In one embodiment, the public network system includes a positioning module, and the root domain includes a gps hal module;
[0071] The private network system is specifically used to send the GPS positioning request to the positioning module through the preset first shared socket file node in the GPS hal module;
[0072] The public network system, when determining that there is no valid GPS ephemeris, is also used to send an indication message to the GPS HAL module through a preset second shared socket file node; wherein the indication message is used to indicate that there is currently no valid GPS ephemeris in the shared ephemeris storage path.
[0073] The public network system queries whether there is a valid GPS ephemeris in the shared ephemeris storage path, specifically: the public network system receives the GPS positioning request forwarded by the root domain through the positioning module of the public network system, queries and obtains the GPS ephemeris information in the shared ephemeris storage path through the positioning module of the public network system, and forwards the obtained GPS ephemeris information to the auxiliary positioning module of the public network system, so as to determine whether the GPS ephemeris is valid through the auxiliary positioning module of the public network system. When the auxiliary positioning module of the public network system determines that the GPS ephemeris has not expired and the change distance does not exceed the preset change distance, the GPS ephemeris is determined as a valid GPS ephemeris; otherwise, the GPS ephemeris is determined as an invalid GPS ephemeris.
[0074] Before the public network system receives the GPS positioning request forwarded by the root domain through the positioning module of the public network system, from the private network system side, the private network system forwards the GPS positioning request to the positioning module of the public network system through the preset first shared socket file node in the gps hal module of the root domain. The first shared socket file node, i.e., the socket, is the endpoint in the communication connection between the root domain and the public network system.
[0075] When the public network system determines that there is no valid GPS ephemeris, it sends an indication message to the gps hal module of the root domain through the preset second shared socket file node, and the indication message is used to indicate that there is currently no valid GPS ephemeris in the shared ephemeris storage path. The second shared socket file node is the socket, which is the endpoint in the communication connection between the root domain and the public network system.
[0076] In this embodiment, the public network system includes a positioning module, and the root domain includes a gps hal module; the private network system is specifically used to send a GPS positioning request to the positioning module through a preset first shared socket file node in the gps hal module; when the public network system determines that there is no valid GPS ephemeris, it is also used to send an indication message to the gps hal module through a preset second shared socket file node; wherein the indication message is used to indicate that there is currently no valid GPS ephemeris in the shared ephemeris storage path. Since the gps hal and the public network system communicate with each other through the socket file node, such as the first shared socket file node and the second shared socket file node, the GPS ephemeris downloaded from the public network system can be shared.
[0077] In one embodiment, the Linux kernel of the dual-system mobile terminal can be equipped with a HiSilicon platform, an MTK (MediaTek) platform or a Qualcomm platform; in order to enable the sockets to communicate with each other between cross-domain modules and share the ephemeris file downloaded from the public network system, the source code of each platform is burned into the mobile terminal before the mobile terminal is shipped out of the factory, that is, the following processing is performed:
[0078] The HiSilicon platform uses the fusion positioning module fusion_daemon to communicate with the positioning module hignss in the public network system through the socket file node ctrl2adapter_soc. The modification plan is to share the ctrl2adapter_soc node in the root domain, the public network system, and the private network system.
[0079] The MTK platform uses the GPS hal to communicate with the mnld and ril modules through abstract sockets. Since abstract sockets cannot cross domains, the two abstract sockets mtk_hal2mnl and mtk_mnl2hal are changed to file socket nodes, and the directories where they are located are shared by the root domain, public network system, and private network system.
[0080] On the Qualcomm platform, the GPS hal and xtra-daemon modules communicate through the two socket file nodes socket_hal and socket_xtra. Since they are in the dev directory and the paths under dev cannot be shared between domains in the container, a shared directory is created, and two corresponding socket nodes are built. In addition, an xtra-proxy module is created in the public network system to implement socket instruction inter-domain transfer communication.
[0081] In addition, when creating sockets, shared paths, and adapter modules on each platform, it is necessary to define the selinux labels they should have so that they have the necessary permissions and prevent external modules from accessing them at will, thus maintaining the security of the system.
[0082] In one embodiment, a GPS positioning chip is specifically used to: based on the positions of multiple satellites in the latest GPS ephemeris, scan through the built-in antenna of the GPS positioning chip to obtain signal strength information of multiple satellites; based on the signal strength information of each satellite, determine four target satellites from each satellite, and obtain navigation messages of each of the target satellites; wherein the target satellite is a satellite with a signal strength greater than a preset threshold; and determine the location information of the mobile terminal according to the navigation messages and ranging codes of each target satellite.
[0083] Among them, the latest GPS ephemeris includes the latest GPS ephemeris data, which can determine the latest position and speed of all satellites. After obtaining the position of each satellite through the latest GPS ephemeris, the built-in antenna of the GPS positioning chip can be used to scan according to the position of each satellite to determine the signal strength information of multiple satellites. The signal strength information of the satellite can characterize the signal strength of the satellite. The strong signal of the satellite indicates that the satellite is relatively less affected by atmospheric attenuation, which is conducive to the GPS positioning chip to quickly locate and search for satellites based on the GPS ephemeris.
[0084] Based on the signal strength information of each satellite, four satellites with signal strength greater than a preset threshold are selected and determined as target satellites. Afterwards, the spatial coordinates, clock information and ranging code (PRN code) of each target satellite are parsed through the satellite messages of these four target satellites. According to the ranging code and pseudo-range algorithm, the distance between each target satellite and the mobile terminal can be determined to form four distance equations, which can be used to solve the location information of the mobile terminal and the time difference between the satellite clock and the mobile terminal. Among them, the location information of the mobile terminal includes the latitude, longitude and altitude of the mobile terminal.
[0085] Optionally, if only the longitude and latitude of the mobile terminal need to be determined, three target satellites may be selected based on the signal strength information of each satellite to parse their navigation messages.
[0086] In this embodiment, the GPS positioning chip is specifically used to: based on the positions of multiple satellites in the latest GPS ephemeris, scan through the built-in antenna of the GPS positioning chip to obtain signal strength information of multiple satellites; based on the signal strength information of each satellite, determine four target satellites from each satellite, and obtain the navigation message of each target satellite; wherein the target satellite is a satellite with a signal strength greater than a preset threshold; determine the position information of the mobile terminal according to the navigation message and ranging code of each target satellite. Since the position information of the mobile terminal is determined based on the signal strength information of each satellite in the latest GPS ephemeris and the navigation message and ranging code of each target satellite, the accuracy of the positioning of the mobile terminal can be guaranteed.
[0087] The following limitations on the positioning method can refer to the above limitations on the mobile terminal with dual systems and will not be elaborated on.
[0088] Figure 4 This is a positioning method provided by an embodiment of the present application, such as Figure 4 As shown, the execution subject of the positioning method provided in this embodiment is a mobile terminal with dual systems. The mobile terminal includes a private network system, a public network system, a root domain, and a GPS positioning chip; the positioning method provided in this embodiment includes the following steps:
[0089] Step 101: The public network system obtains the GPS positioning request sent by the private network system through the root domain.
[0090] Step 102: In response to the GPS positioning request, the public network system queries whether there is a valid GPS ephemeris in the shared ephemeris storage path.
[0091] Step 103: If the public network system determines that it does not have a valid GPS ephemeris, it accesses the ephemeris server, obtains the latest GPS ephemeris from the ephemeris server and sends it to the GPS positioning chip, so that the GPS positioning chip locates the mobile terminal based on the latest GPS ephemeris and obtains the location information of the mobile terminal.
[0092] The shared ephemeris storage path is a path that is accessible to both the public network system and the private network system and stores the GPS ephemeris; the valid GPS ephemeris is the GPS ephemeris that can be used to locate the mobile terminal at the current moment.
[0093] In this application, the public network system obtains the GPS positioning request sent by the private network system through the root domain; the public network system responds to the GPS positioning request and queries whether there is a valid GPS ephemeris in the shared ephemeris storage path; if the public network system determines that there is no valid GPS ephemeris, it accesses the ephemeris server, obtains the latest GPS ephemeris from the ephemeris server and sends it to the GPS positioning chip, so that the GPS positioning chip locates the mobile terminal based on the latest GPS ephemeris and obtains the location information of the mobile terminal; wherein, the shared ephemeris storage path is a path that can be accessed by both the public network system and the private network system and stores GPS ephemeris; a valid GPS ephemeris is a GPS ephemeris that can be used to locate the mobile terminal at the current moment. In this patent, when the private network system receives the GPS positioning request, it can query whether there is a valid GPS ephemeris in the shared ephemeris storage path through the private network system or the public network system. When it is determined that there is no valid GPS ephemeris, that is, when the GPS ephemeris has expired, it can use the performance of the public network system to access the ephemeris server, access the ephemeris server through the public network system, and indirectly obtain the latest GPS ephemeris from the ephemeris server. Since the latest GPS ephemeris must be the GPS ephemeris that can be used to locate the mobile terminal at the current moment. Therefore, the private network system can locate the mobile terminal based on the latest GPS ephemeris through the GPS positioning chip, thereby obtaining the location information of the mobile terminal. Compared with the prior art, in the case where the GPS ephemeris stored in the private network system of this patent has expired and is invalid, the private network system can indirectly and quickly obtain the latest GPS ephemeris by accessing the ephemeris server through the public network system, without the need to randomly search for satellites through the GPS positioning chip to obtain valid GPS ephemeris, and will not be affected by factors such as satellite signal obstruction or the network environment in which the mobile terminal is located, which will cause the acquisition of valid GPS ephemeris to be more time-consuming, thereby improving the positioning efficiency.
[0094] As an optional implementation, in this embodiment, the positioning method also includes the following steps: if the public network system determines that it has a valid GPS ephemeris, it sends the valid GPS ephemeris to the GPS positioning chip, so that the GPS positioning chip locates the mobile terminal based on the valid GPS ephemeris and obtains the location information of the mobile terminal.
[0095] In this embodiment, if the public network system determines that it has valid GPS ephemeris, it sends the valid GPS ephemeris to the GPS positioning chip, so that the GPS positioning chip locates the mobile terminal based on the valid GPS ephemeris and obtains the location information of the mobile terminal. Since the GPS positioning chip preferentially locates the mobile terminal based on the valid GPS ephemeris when it has valid GPS ephemeris, compared with the way that the public network system accesses the ephemeris server through the network to obtain the latest GPS ephemeris, it will not be affected by the signal of the network environment, so the efficiency of the GPS positioning chip in locating the mobile terminal can be relatively improved.
[0096] It should be noted that the acquisition of the location information of the mobile terminal may be performed after confirmation by the user operating the mobile terminal. It can also be considered that these softwares acquire the location of the mobile terminal legally and legitimately in accordance with relevant laws and regulations.
[0097] Figure 5 is a block diagram of a mobile terminal with a dual system according to an exemplary embodiment. The device may be as follows Figure 5 As shown, the mobile terminal with dual systems includes: a memory 51 and a processor 52; the memory 51 is a memory for storing processor executable instructions; the processor 52 is used to run computer programs or instructions to implement the positioning method of the mobile terminal provided in any of the above embodiments.
[0098] The memory 51 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer operation instructions. The memory 51 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0099] The processor 52 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present disclosure.
[0100] Optionally, in a specific implementation, if the memory 51 and the processor 52 are implemented independently, the memory 51 and the processor 52 can be connected to each other through a bus 53 and communicate with each other. The bus 53 can be an Industry Standard Architecture (ISA) bus 53, a Peripheral Component (PCI) bus 53, or an Extended Industry Standard Architecture (EISA) bus 53. The bus 53 can be divided into an address bus 53, a data bus 53, a control bus 53, etc. For ease of representation, Figure 5 Only one thick line is used in the figure, but it does not mean that there is only one bus 53 or only one type of bus 53.
[0101] Optionally, in a specific implementation, if the memory 51 and the processor 52 are integrated on a chip, the memory 51 and the processor 52 can communicate with each other through an internal interface.
[0102] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal with dual systems, enables the mobile terminal with dual systems to execute the above positioning method.
[0103] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0104] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A mobile terminal with dual systems, characterized in that: The mobile terminal includes a private network system, a public network system, a root domain, and a GPS positioning chip; The private network system is used to send the GPS positioning request to the public network system through the root domain when receiving the GPS positioning request, so that the public network system can query whether there is a valid GPS ephemeris in the shared ephemeris storage path; wherein the valid GPS ephemeris is a GPS ephemeris that can be used to locate the mobile terminal at the current moment; The public network system is used to respond to the GPS positioning request, and when the public network system queries the shared ephemeris storage path and finds that there is no valid GPS ephemeris, access the ephemeris server, obtain the latest GPS ephemeris from the ephemeris server, send it to the GPS positioning chip, and store it in the shared ephemeris storage path; The GPS positioning chip is used to locate the mobile terminal based on the latest GPS ephemeris to obtain the location information of the mobile terminal.
2. The mobile terminal according to claim 1, characterized in that: The GPS positioning chip is also used to locate the mobile terminal based on the valid GPS ephemeris to obtain the location information of the mobile terminal when the private network system or the public network system queries the shared ephemeris storage path for a valid GPS ephemeris.
3. The mobile terminal according to any one of claims 1 to 2, characterized in that: The public network system includes a positioning module, and the root domain includes a GPS HAL module; The private network system is specifically used to send the GPS positioning request to the positioning module through the preset first shared socket file node in the GPS HAL module; When determining that there is no valid GPS ephemeris, the public network system is further used to: send an indication message to the GPS HAL module through a preset second shared socket file node; wherein the indication message is used to indicate that there is currently no valid GPS ephemeris in the shared ephemeris storage path.
4. The mobile terminal according to claim 3, characterized in that: The GPS positioning chip is specifically used for: Based on the positions of multiple satellites in the latest GPS ephemeris, the built-in antenna of the GPS positioning chip is used to scan and obtain signal strength information of multiple satellites; Based on the signal strength information of each of the satellites, four target satellites are determined from the satellites, and navigation messages of the target satellites are obtained; wherein the target satellites are satellites whose signal strength is greater than a preset threshold; The location information of the mobile terminal is determined according to the navigation message and ranging code of each target satellite.
5. The mobile terminal according to claim 4, characterized in that: The GPS positioning chip is also used to return the location information of the mobile terminal to the upper layer application of the private network system through the root domain.
6. A positioning method, characterized in that: Applied to the mobile terminal with dual systems as described in any one of claims 1 to 5, the mobile terminal includes a private network system, a public network system, a root domain, and a GPS positioning chip; the method includes: The public network system obtains the GPS positioning request sent by the private network system through the root domain; In response to the GPS positioning request, the public network system queries whether there is a valid GPS ephemeris in the shared ephemeris storage path; If the public network system determines that it does not have the valid GPS ephemeris, it accesses the ephemeris server, obtains the latest GPS ephemeris from the ephemeris server and sends it to the GPS positioning chip, so that the GPS positioning chip locates the mobile terminal based on the latest GPS ephemeris and obtains the location information of the mobile terminal; The shared ephemeris storage path is a path that is accessible to both the public network system and the private network system and stores GPS ephemeris; the valid GPS ephemeris is a GPS ephemeris that can be used to locate the mobile terminal at the current moment.
7. The method according to claim 6, characterized in that Also includes: If the public network system determines that it has the valid GPS ephemeris, it sends the valid GPS ephemeris to the GPS positioning chip, so that the GPS positioning chip locates the mobile terminal based on the valid GPS ephemeris and obtains the location information of the mobile terminal.
8. A mobile terminal with dual systems, characterized in that: A processor and a memory, wherein the memory contains computer executable instructions, and when the computer executable instructions are executed by the processor, they are used to implement the method according to any one of claims 6 to 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 6 to 7 when executed by a processor.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 6 to 7 is implemented.
