Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First, a mobile terminal based positioning method according to the present application will be described with reference to fig. 1, fig. 2, and fig. 3.
The positioning method based on the mobile terminal comprises the following steps: and determining whether the mobile terminal works in a second positioning system or the state of the mobile terminal working in cooperation with the first positioning system according to whether the mobile terminal is in a region of a specific type and the working positioning system thereof and/or whether a specific condition is met.
The mobile terminal is a mobile phone, a tablet computer and the like. For clarity of description, the following is a mobile phone as an example. The mobile terminal comprises a first positioning system and a second positioning system; wherein the second positioning system comprises a Beidou positioning system (BDS), and the first positioning system is other positioning system different from the second positioning system, such as a Global Positioning System (GPS).
In one embodiment, determining whether the mobile terminal is in a particular type of zone may be performed by:
and acquiring the position information of the mobile terminal through a positioning system in which the mobile terminal works, and judging whether the mobile terminal is in a region of a specific type according to the position information. Wherein the specific type of area includes an ocean, a mountain area, a desert, or the like. Further, the sea may be classified as offshore or open sea in a map, according to distance from a shoreline, and the like, and similarly, the mountain area may be classified as shallow or deep, and thus, the specific type of area may also include the case of open sea or deep mountain area.
In a specific implementation manner, the location information includes longitude and latitude coordinates of a location where the mobile terminal is located, the mobile terminal locally stores a corresponding relationship between a region of a specific type and a longitude and latitude range, and determines whether the current location of the mobile terminal is the region of the specific type according to the corresponding relationship between the region of the specific type and the longitude and latitude range locally stored by the mobile terminal and the longitude and latitude coordinates of the location where the mobile terminal is located. For example, it is determined whether the mobile terminal is currently in the sea, that is, whether the latitude and longitude coordinates of the location of the mobile terminal are within any latitude and longitude range of a plurality of latitude and longitude ranges corresponding to the sea area.
The cooperative working state of the second positioning system and the first positioning system comprises that the first positioning system is a main working system, and the second positioning system corrects the work of the first positioning system for an auxiliary working system; or the second positioning system is a main working system, and the first working system corrects the work of the second positioning system for the auxiliary working system. For example, the first positioning system is a GPS system, the second positioning system is a beidou positioning system, the GPS positioning system is used as a main working system, and the beidou positioning system is used as an auxiliary working system to correct the work of the GPS positioning system; or the Beidou positioning system is used as a main working system and is used as an auxiliary working system to correct the work of the GPS.
According to the embodiment of the application, determining that the mobile terminal works in the second positioning system or works in a state that the second positioning system and the first positioning system work cooperatively according to whether the mobile terminal is in a region of a specific type and a working positioning system thereof and/or whether a specific condition is met, specifically includes the following modes:
(1) and when the mobile terminal is in the area of the specific type and works in the second positioning system, the mobile terminal continues to work in the second positioning system.
Specifically, whether the mobile terminal is located in a region of a specific type is judged, if so, whether the mobile terminal works in the second positioning system is judged, and if the mobile terminal works in the second positioning system, the mobile terminal continues to work in the second positioning system. Wherein the specific type of area includes an ocean, a mountain area, a desert, or the like.
(2) And when the mobile terminal is in the area of the specific type and the mobile terminal works in the first positioning system, switching the first positioning system to the second positioning system.
Specifically, whether the mobile terminal is located in a specific type of area is determined, if so, whether the mobile terminal is operated in the first positioning system is determined, and if the mobile terminal is operated in the first positioning system (that is, the mobile terminal is not operated in the second positioning system), the positioning system in which the mobile terminal is operated is switched from the first positioning system to the second positioning system. Wherein the specific type of area includes an ocean, a mountain area, a desert, or the like.
Modes (1) and (2) are described in detail below with reference to fig. 1, and fig. 1 shows a flowchart of a mobile terminal-based positioning method according to an embodiment of the present application.
Step S110, determining whether the mobile terminal is in a specific type of area.
If the mobile terminal is in a region of a specific type, executing step S120; and if the mobile terminal is not in the area of the specific type, continuously detecting whether the mobile terminal is in the area of the specific type in real time, and continuously working the mobile terminal in the currently working positioning system.
For example, if the first positioning system is a GPS system, the second positioning system is a beidou positioning system, and the area of the specific type is a marine area, it is determined whether the mobile terminal is located in the marine area. If the mobile terminal is determined not to be in the ocean area, the mobile terminal continues to work in the currently working positioning system; if the mobile terminal is in the ocean area, step S120 is executed.
Step S120, if the mobile terminal is judged to be in the area with the specific type, whether the mobile terminal works in a second positioning system is judged.
If the mobile terminal is judged to work in the second positioning system, the mobile terminal continues to work in the second positioning system; if the mobile terminal is not operating in the second positioning system, that is, the mobile terminal is operating in the first positioning system, step S130 is executed.
In the above example, if the positioning system in which the mobile terminal is currently working is the Beidou positioning system, the mobile terminal continues to work in the Beidou positioning system without switching the positioning system; if the mobile terminal is not operating in the beidou positioning system, i.e. operating in the GPS positioning system, step S130 is executed.
Step S130, if the mobile terminal works in the first positioning system, switching the positioning system of the mobile terminal from the first positioning system to the second positioning system.
And if the mobile terminal does not work in the second positioning system, namely the mobile terminal works in the first positioning system, switching the positioning system which works in the mobile terminal from the first positioning system to the second positioning system. In the above example, the positioning system of the mobile terminal is switched from the GPS system to the beidou positioning system.
(3) And when the mobile terminal is in the area of the specific type, the mobile terminal works in the first positioning system and meets a first condition, the first positioning system is switched to the second positioning system.
The first condition includes that the first positioning system is not satisfactory for use. The first positioning system is not satisfactory for use including, but not limited to, one or more of the following: the signal-to-noise ratio of the satellite signal corresponding to the first positioning system is smaller than a first preset threshold value, and the position of the mobile terminal is in an open sea or a deep mountain area.
For the first situation, generally, a mobile terminal, such as a mobile phone, is required to receive downlink signals of 4 satellites at the same time, and then demodulate the downlink signals, and determine whether demodulation is possible in a mobile phone system, where a value of a signal-to-noise ratio C/N (signal/noise) is used as a threshold, and the signal is stronger if the value is larger, so that the signal-to-noise ratio can be used to determine the signal strength, and further, the signal strength can be used to determine whether the first positioning system is satisfactory. Specifically, the method comprises the following steps: and if the signal-to-noise ratio of the satellite signal corresponding to the first positioning system is smaller than a first preset threshold value, determining that the first positioning system cannot be used satisfactorily. For example, the first predetermined threshold is 10dB-Hz, i.e. when the value of the signal-to-noise ratio of the satellite signal corresponding to the first positioning system is less than 10dB-Hz, it is determined that the first positioning system is not satisfactory for use.
For the second scenario described above, if the mobile terminal is in a high sea or mountainous area, it is determined that the first positioning system is not satisfactory for use. An example is as follows: whether the first positioning system is satisfactory or not can be determined according to a specific type of area (such as a sea, a mountain area and other geographical positions) where the mobile terminal is located, and according to whether the geographical position (the sea, the mountain area) is particularly a high sea or a low sea, a mountain edge (or a shallow mountain) or a deep mountain, that is, whether the mobile terminal is located in the high sea or the deep mountain area, and if the mobile terminal is located in the high sea or the high mountain area, it is determined that the first positioning system cannot be satisfactory. The area of the specific type where the mobile terminal is located is determined according to the longitude and latitude coordinates of the location where the mobile terminal is located, and more specifically, whether the mobile terminal is located in an open sea or a deep mountain area can be determined according to the longitude and latitude coordinates of the mobile terminal or the location of the mobile terminal on a map.
Specific examples thereof include: latitude and longitude ranges of open sea and/or deep mountain areas can be configured in advance; or, the range of the open sea and/or the deep mountain area is configured on the map in advance, and the corresponding relation between the pre-configured open sea and/or the deep mountain area and the latitude and longitude range and/or the corresponding area range of the open sea and/or the deep mountain area on the map are locally stored in the mobile terminal; when determining whether the first positioning system is in use, whether the mobile terminal is in a corresponding area, such as a far sea area or a deep mountain area, or not, may be determined according to a correspondence relationship between the far sea area and/or the deep mountain area and a latitude and longitude area, and/or an area range, which is configured on a map, of the far sea area and/or the deep mountain area, and a latitude and longitude coordinate of a location where the mobile terminal is located, and/or a location of the mobile terminal on the map, which are locally stored by the mobile terminal, and if the location information of the mobile terminal matches the ranges of the areas, that is, if the determination result is yes, it is determined that the first positioning system is not in use.
Mode (3) is described in detail below with reference to fig. 2, and fig. 2 shows a flowchart of a mobile terminal-based positioning method according to another embodiment of the present application.
Step S210, determining whether the mobile terminal is in a specific type of area.
Specifically, under the condition that the mobile terminal works in the first positioning system, if the mobile terminal is not located in the area of the specific type, the mobile terminal continues to work in the first positioning system; if the mobile terminal is in a specific type of area, step S220 is performed. For example, the first positioning system is a GPS positioning system, the second positioning system is a beidou positioning system, the specific type of area includes a marine area, and the mobile terminal currently operates in the GPS positioning system, and then whether the mobile terminal is located in the marine area is determined; and if the mobile terminal is not in the ocean area, continuing to work in the GPS.
Step S220, if the mobile terminal is in the specific type of area, determine whether the first positioning system is satisfactory for use.
If the first positioning system is satisfied, the mobile terminal continues to operate in the first positioning system, and if the first positioning system is not satisfied, step S230 is executed. As mentioned above, whether the first positioning system is satisfactory may be determined according to whether the signal-to-noise ratio of the satellite signal corresponding to the first positioning system is less than a first predetermined threshold, or whether the mobile terminal is located in an open sea or a deep mountain area. For example, the situation that a GPS (global positioning system) is weak in satellite signals and cannot be accurately positioned in a high-sea area may occur, and the Beidou positioning system is more accurate in positioning at sea. Therefore, if the mobile terminal is in the open sea area, it is determined that the GPS positioning system cannot be satisfactorily used, and step S230 is performed. If the GPS positioning system is used satisfactorily, the working positioning system of the mobile terminal is not required to be switched.
Step S230, if the first positioning system cannot meet the requirement, switching the working positioning system of the mobile terminal from the first positioning system to the second positioning system.
Along with the above example, if the GPS positioning system cannot be used satisfactorily, the positioning system currently operating in the mobile terminal is switched from the GPS positioning system to the beidou positioning system.
(4) And when the mobile terminal is in the area of the specific type, the mobile terminal works in the first positioning system and meets a second condition, the mobile terminal works in a state that the second positioning system and the first positioning system work cooperatively.
The second condition includes the first positioning system being out of service and the mobile terminal operating in a daytime mode. The first positioning system being incapable of satisfying the use at least including one or more of the following: the signal-to-noise ratio of the satellite signal corresponding to the first positioning system is smaller than a first preset threshold value, and the position of the mobile terminal is in a high sea or a deep mountain area. Here, reference may be made to the example in the method (3), and details are not described again. The method comprises the steps of detecting whether external brightness reaches a preset brightness threshold value through a light sensor in the mobile terminal, and/or determining whether the mobile terminal works in a daytime mode according to system time of the mobile terminal. For example, if the light sensor detects that the current brightness reaches a predetermined brightness threshold and the system time of the mobile terminal is 13:00PM, it is determined that the mobile terminal is operating in the daytime mode.
(5) And when the mobile terminal is in the area of the specific type, the mobile terminal works in the first positioning system and meets a third condition, the first positioning system is switched to the second positioning system.
The third condition includes that the first positioning system is not satisfactory for use and the mobile terminal is operating in a dark day mode. The first positioning system being incapable of satisfying use at least one or more of the following conditions: the signal-to-noise ratio of the satellite signal corresponding to the first positioning system is smaller than the first predetermined threshold, and the position of the mobile terminal is in a far sea or a deep mountain area, which can be referred to as an example in the method (3), and is not described again. The method comprises the steps of detecting whether external brightness is lower than a preset brightness threshold value or not through a light sensor in the mobile terminal, and/or determining whether the mobile terminal works in a dark day mode or not according to system time of the mobile terminal. For example, if the light sensor detects that the current brightness is lower than the predetermined brightness threshold and the system time of the mobile terminal is 21:00PM, it is determined that the mobile terminal is operating in the black day mode.
Modes (4) and (5) are described in detail below in conjunction with fig. 3, and fig. 3 shows a flowchart of a mobile terminal-based positioning method according to still another embodiment of the present application. In the modes (4) and (5), the mobile terminal is started to operate in the first positioning system.
Step S310, determining whether the mobile terminal is in a specific type of area.
Under the condition that the mobile terminal works in the first positioning system, judging whether the mobile terminal is in a region of a specific type, if not, continuing to work in the first positioning system; if the mobile terminal is in the specific type of area, step S320 is executed. For example, the first positioning system is a GPS positioning system, the second positioning system is a beidou positioning system, the specific type of area includes a marine area, and the mobile terminal currently operates in the GPS positioning system, and then whether the mobile terminal is located in the marine area is determined; and if the mobile terminal is not in the ocean area, continuing to work in the GPS.
Step S320, if the mobile terminal is in the specific type of area, determine whether the first positioning system is satisfactory for use.
If the first positioning system is satisfied, the mobile terminal continues to operate in the first positioning system, and if the first positioning system is not satisfied, step S330 is executed. As mentioned above, whether the first positioning system is satisfactory may be determined according to whether the signal-to-noise ratio of the satellite signal corresponding to the first positioning system is less than a first predetermined threshold or whether the mobile terminal is in an open sea or a deep mountain area. For example, the situation that a GPS (global positioning system) is weak in satellite signals and cannot be accurately positioned in a high-sea area may occur, and the Beidou positioning system is more accurate in positioning at sea. Therefore, if the mobile terminal is in the open sea area, it is determined that the GPS positioning system cannot be satisfactorily used, and step S330 is performed. If the GPS positioning system is used satisfactorily, the working positioning system of the mobile terminal is not required to be switched.
Step S330, if the first positioning system can not meet the requirement of use, whether the mobile terminal works in the daytime mode is judged.
If the mobile terminal is operated in the daytime mode, step S340 is performed, and if the mobile terminal is not operated in the daytime mode, that is, the mobile terminal is operated in the dark day mode, step S350 is performed. The method comprises the steps of detecting whether external brightness reaches/is lower than a preset brightness threshold value or not through a light sensor in the mobile terminal, and/or determining that the mobile terminal works in a day mode/a dark day mode according to system time of the mobile terminal. For example, if the current brightness detected by the light sensor reaches a predetermined brightness threshold and the system time of the mobile terminal is 13:00PM, determining that the mobile terminal is in the daytime mode; and if the line sensor detects that the current brightness is lower than the preset brightness threshold value and the system time of the mobile terminal is 21:00PM, determining that the mobile terminal works in the black day mode.
Step S340, if the mobile terminal works in the daytime mode, the mobile terminal works in a state where the second positioning system and the first positioning system work cooperatively.
That is, the second positioning system corrects the operation of the first positioning system as an auxiliary operating system.
Step S350, if the mobile terminal is in the dark day mode, switching the positioning system of the mobile terminal from the first positioning system to the second positioning system.
And if the mobile terminal does not work in the daytime mode, namely the mobile terminal works in the dark day mode, switching the positioning system which works in the mobile terminal from the first positioning system to the second positioning system.
According to the embodiment of the application, whether the mobile terminal is located in the area of the specific type and the working positioning system thereof and/or whether the specific condition is met, the mobile terminal is determined to work in the second positioning system or work in the state that the second positioning system and the first positioning system work cooperatively.
Based on the above embodiment, no matter it is determined that the mobile terminal is switched from the first positioning system to the second positioning system, or it is determined that the mobile terminal is working in a state where the second positioning system and the first positioning system cooperate with each other, the second positioning system of the mobile terminal needs to be started, the method of the present application further includes the following steps (not shown in the figure):
displaying a selection interface on the terminal so that a user can select whether to start a second positioning system in the selection interface; and if the user selects to start the second positioning system in the selection interface, starting the second positioning system in the mobile terminal.
For example, the first positioning system is a GPS (global positioning system), the second positioning system is a Beidou positioning system, and a selection interface is displayed on the mobile terminal when the mobile terminal is determined to be switched from the GPS to the Beidou positioning system or the mobile terminal works in a state that the Beidou positioning system and the GPS work cooperatively, so that a user can select whether to start the Beidou positioning system in the selection interface; and if the user selects to start the Beidou positioning system in the selection interface, starting the Beidou navigation system in the terminal. Taking a mobile phone as an example, a selection interface is displayed in a display screen of the mobile phone, and the user is prompted in the selection page to determine whether to switch to the Beidou navigation system, so that the user can select 'yes' or 'no' on the selection page; if the user selects 'yes', starting a Beidou navigation system in the terminal; and if the user selects 'no', continuing to use the positioning system currently operated in the terminal.
And if no user instruction is received within a preset time after the selection interface is displayed, directly starting a second positioning system in the mobile terminal. For example, if no user instruction is received within 10S (seconds) after the selection interface is displayed, the beidou navigation system in the terminal is directly started.
According to the technical scheme of the application, whether the mobile terminal is located in the area of the specific type and the working positioning system thereof and/or whether the specific condition is met is determined, the mobile terminal works in the second positioning system or works in the state that the second positioning system and the first positioning system work cooperatively, and when the mobile terminal is located in the area of the specific type and/or meets the specific condition, the Beidou navigation system (the second positioning system) in the mobile terminal is used for positioning, so that the position information with higher accuracy can be obtained.
Based on any of the above embodiments, if it is determined that the mobile terminal is switched from the first positioning system to the second positioning system or the mobile terminal operates in a state where the second positioning system and the first positioning system cooperate, that is, when the second positioning system is used as one of the operating systems, the method of the present application further includes the following steps:
and sending a communication request to a ground center of a second positioning system to request to send the position information obtained by the mobile terminal according to the second positioning system to a target terminal.
For example, the first positioning system is a GPS positioning system, the second positioning system is a beidou positioning system, and the beidou positioning system is different from other satellite navigation systems in that the beidou positioning system has a two-way communication function, and can communicate using short messages in an area where mobile communication signals are weak or cannot be covered by the two-way communication function of the beidou positioning system. Therefore, when the user is judged to be in a weak area of mobile communication signals such as an ocean or a mountain area, the Beidou positioning system in the mobile terminal is used for positioning to obtain the position information of the current position, and the position information can be sent to the target terminal through the ground center of the Beidou positioning system, wherein the target terminal is also provided with the Beidou positioning system and can be a mobile phone, a tablet computer and other terminals. Specifically, the mobile terminal sends a communication request containing the device identifier of the target terminal and the position information to a ground center of the Beidou positioning system, and the ground center forwards the position information to the target terminal after receiving the communication request, wherein the target terminal can be a position information receiver terminal preset by a user of the mobile terminal. For example, when the user is at sea, no matter whether the mobile communication signal strength at sea can carry out normal communication, the position information of the mobile terminal can be sent to a receiver mobile phone preset by the user through the ground center of the Beidou positioning system so as to inform the receiver of the position of the user, so that the user can timely know the position of the user when the user encounters danger at sea, mountain areas and jungles, and rescue is carried out.
Based on any of the above embodiments, if it is determined that the mobile terminal is switched from the first positioning system to the second positioning system or the mobile terminal operates in a state where the second positioning system and the first positioning system cooperate, that is, when the second positioning system is used as one of the operating systems, the method of the present application further includes the following steps:
monitoring the signal-to-noise ratio of the communication signal of the mobile terminal in real time; and if the signal-to-noise ratio of the communication signal is smaller than a second preset threshold value and the second positioning system is used as one of the working systems, sending a communication request to a ground center of the second positioning system so as to request to send the position information obtained by the mobile terminal according to the second positioning system to a target terminal.
A mobile terminal (such as a mobile phone) with a mobile communication function may not normally communicate in a region with weak mobile communication signals at sea and in a mountain area, and in such a case, if a user encounters a danger, the user cannot transmit a message to the outside, so that the signal-to-noise ratio of the communication signal of the mobile terminal is monitored in real time; and if the signal-to-noise ratio of the communication signal is smaller than a second preset threshold value, sending a communication request to a ground center of the Beidou positioning system so as to request to send the position information of the mobile terminal to a target terminal. Through the two-way communication function of the Beidou positioning system, short messages can be used for communication in areas where mobile communication signals are weak or cannot be covered, therefore, if the signal to noise ratio of the communication signals monitored by the mobile terminal is smaller than a second preset threshold value, the position information of the current position, which is obtained through positioning by the Beidou positioning system in the mobile terminal, is sent to the target terminal through the ground center of the Beidou positioning system, the Beidou positioning system is also arranged in the target terminal, and the target terminal can be a mobile phone, a tablet computer and other terminals. Specifically, the mobile terminal sends a communication request containing the device identifier of the target terminal and the position information to a ground center of the beidou positioning system, and the ground center forwards the position information to the target terminal according to the device identifier of the target terminal after receiving the communication request, wherein the target terminal can be a position information receiver terminal preset for a user of the mobile terminal, such as mobile phones of other users. For example, when the user is at sea, no matter whether the mobile communication signal strength at sea can carry out normal communication, the position information of the mobile phone can be sent to the mobile phone of the receiver preset by the user through the ground center of the Beidou positioning system, and the position of the user at the receiver is informed, so that the user can be timely known when the user is in danger and the mobile communication signal is weak and normal communication cannot be carried out, and rescue is carried out.
Based on any of the above embodiments, no matter when it is determined that the mobile terminal is switched from the first positioning system to the second positioning system, or when it is determined that the mobile terminal is working in a state where the second positioning system and the first positioning system cooperate, the second positioning system is started, and after the Beidou second positioning system in the mobile terminal is started, the method further includes: and when the mobile terminal is determined not to be in the area with the specific type and/or the first positioning system can be used satisfactorily, the mobile terminal is switched to the first positioning system.
Specifically, if the originally working positioning system of the mobile terminal is the first positioning system, the second positioning system of the mobile terminal is started under the condition that the mobile terminal is determined to be switched from the first positioning system to the second positioning system, or under the condition that the mobile terminal is determined to work in a state that the second positioning system and the first positioning system work cooperatively, so that when the second positioning system is used as one of the working systems, whether the mobile terminal is still in a region of a specific type and/or whether the first positioning system can be used satisfactorily is judged, and if the mobile terminal is not in a region of a specific type and/or the first positioning system can be used satisfactorily, the originally working positioning system of the mobile terminal, namely the first positioning system, is switched back.
According to the technical scheme of this application, when mobile terminal is in the district of specific type, second positioning system among the mobile terminal is big dipper positioning system, no matter whether mobile communication signal intensity can maintain normal communication, can both utilize big dipper navigation system's two-way message communication function, ground center through big dipper navigation sends this mobile terminal's positional information to the target terminal that the user predetermines, thereby, when this end user runs into danger, and mobile communication signal weak can not carry out normal communication, can in time learn this user position, thereby rescue.
The following describes the positioning apparatus based on mobile terminal according to the present application with reference to fig. 4, 5, 6 and 7.
Fig. 4 is a block diagram illustrating a mobile terminal based positioning apparatus according to an embodiment of the present application. As shown in fig. 4, the mobile terminal based positioning apparatus 100 includes a determination unit 110. The mobile terminal comprises a first positioning system and a second positioning system.
The determining unit 110 is configured to determine whether the mobile terminal is in a specific type of area and a location system in which the mobile terminal operates, and/or whether a specific condition is met, that the mobile terminal operates in the second location system or operates in a state in which the second location system and the first location system cooperate with each other.
In one example, determining whether the mobile terminal is in a particular type of region may be performed as follows:
and acquiring the position information of the mobile terminal through a positioning system in which the mobile terminal works, and judging whether the mobile terminal is in a region of a specific type according to the position information. Wherein the specific type of area comprises an ocean, a mountain area or a desert area; or the specific type of region includes an open sea or a deep mountain region. Specifically, the location information includes longitude and latitude coordinates of the location of the mobile terminal, the mobile terminal locally stores a corresponding relationship between a specific type of area and a longitude and latitude range, and whether the current location of the mobile terminal is the specific type of area is determined according to the corresponding relationship between the specific type of area and the longitude and latitude range locally stored by the mobile terminal and the longitude and latitude coordinates of the location of the mobile terminal.
The second positioning system comprises a Beidou positioning system, and the first positioning system is other positioning systems different from the second positioning system.
The cooperative working state of the second positioning system and the first positioning system comprises that the first positioning system is a main working system, and the second positioning system corrects the work of the first positioning system for an auxiliary working system; or the second positioning system is a main working system, and the first working system corrects the work of the second positioning system for the auxiliary working system. For example, the first positioning system is a GPS system, the second positioning system is a beidou positioning system, the GPS positioning system is used as a main working system, and the beidou positioning system is used as an auxiliary working system to correct the work of the GPS positioning system; or the Beidou positioning system is used as a main working system and is used as an auxiliary working system to correct the work of the GPS.
The determining unit 110 determines, according to whether the mobile terminal is located in a specific type of area and a location system where the mobile terminal operates, and/or whether a specific condition is satisfied, that the mobile terminal operates in a second location system or operates in a state where the second location system and the first location system cooperate, specifically including the following manners:
(1) and when the mobile terminal is in the area of the specific type and works in the second positioning system, the mobile terminal continues to work in the second positioning system.
Specifically, whether the mobile terminal is located in a region of a specific type is judged, if so, whether the mobile terminal works in the second positioning system is judged, and if the mobile terminal works in the second positioning system, the mobile terminal continues to work in the second positioning system. Wherein the specific type of area comprises an ocean, a mountain area or a desert area; or the specific type of region includes an open sea or a deep mountain region.
(2) And when the mobile terminal is in the area of the specific type and the mobile terminal works in the first positioning system, switching the first positioning system to the second positioning system.
Specifically, whether the mobile terminal is located in a specific type of area is determined, if so, whether the mobile terminal is operated in the first positioning system is determined, and if the mobile terminal is operated in the first positioning system (that is, the mobile terminal is not operated in the second positioning system), the positioning system in which the mobile terminal is operated is switched from the first positioning system to the second positioning system. Wherein the specific type of area includes an ocean, a mountain area, a desert, or the like.
(3) And when the mobile terminal is in the area of the specific type, the mobile terminal works in the first positioning system and meets a first condition, the first positioning system is switched to the second positioning system.
The first condition comprises that the first positioning system is not satisfactory for use; the first positioning system is not satisfactory for use including, but not limited to, one or more of the following: the signal-to-noise ratio of the satellite signal corresponding to the first positioning system is smaller than a first preset threshold value, and the position of the mobile terminal is in a high sea or a deep mountain area.
For the first case, if the signal-to-noise ratio of the satellite signal corresponding to the first positioning system is smaller than the first predetermined threshold, it is determined that the first positioning system cannot be satisfied with the use.
For the second scenario described above, if the mobile terminal is in a high sea or mountainous area, it is determined that the first positioning system is not satisfactory for use. And determining whether the mobile terminal is in the open sea or the open mountain area according to the longitude and latitude coordinates of the mobile terminal or the position of the mobile terminal on a map. Pre-configuring latitude and longitude ranges of a open sea and/or a deep mountain area; or, the range of the open sea and/or the deep mountain area on the map is configured in advance, and the corresponding relation between the open sea and/or the deep mountain area and the latitude and longitude range configured in advance is stored locally in the mobile terminal, and/or the corresponding area range of the open sea and/or the deep mountain area on the map is stored locally; when determining whether the first positioning system is in use, determining whether the mobile terminal is in the open sea or the deep mountain area according to the correspondence between the open sea and/or the deep mountain area and the latitude and longitude range, and/or the area range corresponding to the open sea and/or the deep mountain area on the map, and the latitude and longitude coordinates of the position of the mobile terminal and/or the position of the mobile terminal on the map, which are locally stored by the mobile terminal.
Specifically, under the condition that the mobile terminal works in the first positioning system, if the mobile terminal is not located in the area of the specific type, the mobile terminal continues to work in the first positioning system; if the mobile terminal is in the area of the specific type, judging whether the first positioning system is satisfied to be used; if the first positioning system meets the use requirement, the mobile terminal continues to work in the first positioning system, and if the first positioning system cannot meet the use requirement, the positioning system which the mobile terminal works in is switched from the first positioning system to the second positioning system.
(4) And when the mobile terminal is in the area of the specific type, the mobile terminal works in the first positioning system and meets a second condition, the mobile terminal works in a state that the second positioning system and the first positioning system work cooperatively.
The second condition includes the first positioning system being out of service and the mobile terminal operating in a daytime mode. The first positioning system is not satisfactory for use in one or more of the following situations including, but not limited to: the signal-to-noise ratio of the satellite signal corresponding to the first positioning system is smaller than the first predetermined threshold, and the position of the mobile terminal is in a far sea or a deep mountain area, which can be referred to as an example in the method (3), and is not described again. The method comprises the steps of detecting whether external brightness reaches a preset brightness threshold value through a light sensor in the mobile terminal, and/or determining whether the mobile terminal works in a daytime mode according to system time of the mobile terminal. For example, if the light sensor detects that the current brightness reaches a predetermined brightness threshold and the system time of the mobile terminal is 13:00PM, it is determined that the mobile terminal is operating in the daytime mode.
Specifically, under the condition that the mobile terminal works in the first positioning system, whether the mobile terminal is in the area of the specific type is judged, and if the mobile terminal is not in the area of the specific type, the mobile terminal continues to work in the first positioning system; if the mobile terminal is in a specific type area, judging whether the first positioning system is satisfied to be used, wherein if the first positioning system is satisfied to be used, the mobile terminal continues to work in the first positioning system, if the first positioning system cannot be satisfied to be used, judging whether the mobile terminal works in a daytime mode, and if the mobile terminal works in the daytime mode, the mobile terminal works in a state that the second positioning system and the first positioning system work in a cooperative mode.
(5) When the mobile terminal is in a region of a specific type, the mobile terminal works in the first positioning system and meets a third condition, the first positioning system is switched to the second positioning system;
the third condition includes an inability of the first positioning system to meet the usage and the mobile terminal operating in a dark day mode. . The first positioning system being unable to meet the use includes: the signal-to-noise ratio of the satellite signal corresponding to the first positioning system is smaller than the first predetermined threshold, and the position of the mobile terminal is in a far sea or a deep mountain area, which can be referred to as an example in the method (3), and is not described again. The method comprises the steps of detecting whether external brightness is lower than a preset brightness threshold value or not through a light sensor in the mobile terminal, and/or determining whether the mobile terminal works in a dark day mode or not according to system time of the mobile terminal. For example, if the light sensor detects that the current brightness is lower than the predetermined brightness threshold and the system time of the mobile terminal is 21:00PM, it is determined that the mobile terminal is operating in the black day mode.
Specifically, under the condition that the mobile terminal works in the first positioning system, whether the mobile terminal is in the area of the specific type is judged, and if the mobile terminal is not in the area of the specific type, the mobile terminal continues to work in the first positioning system; if the mobile terminal is in the specific type area, whether the first positioning system meets the use requirement is judged, wherein if the first positioning system meets the use requirement, the mobile terminal continues to work in the first positioning system, if the first positioning system cannot meet the use requirement, whether the mobile terminal works in a dark day mode is judged, and if the mobile terminal works in the dark day mode, the mobile terminal is switched to the second positioning system from the first positioning system.
For the above detailed description of the specific manner of determining the state of the mobile terminal operating in the second positioning system or operating in cooperation with the second positioning system by the determining unit in the above embodiments, reference may also be made to the corresponding parts in the foregoing description of the method embodiments.
Fig. 5 shows a block diagram of a mobile terminal based positioning apparatus according to another embodiment of the present application. As shown in fig. 5, based on the embodiment described in fig. 4, the mobile terminal based positioning apparatus 100 further includes a display unit 120 and an activation unit 130.
The display unit 120 is configured to display a selection interface on the mobile terminal if it is determined that the mobile terminal is switched from the first positioning system to the second positioning system or the mobile terminal operates in a state where the second positioning system and the first positioning system cooperate with each other, so that a user selects whether to start the second positioning system in the selection interface; the starting unit 130 is configured to start the second positioning system in the mobile terminal if the user selects to start the second positioning system in the selection interface.
For example, if the first positioning system is a GPS positioning system and the second positioning system is a beidou positioning system, and it is determined that the mobile terminal is switched from the GPS positioning system to the beidou positioning system, or the mobile terminal operates in a state where the beidou positioning system and the GPS positioning system cooperate, the display unit 120 displays a selection interface on the terminal, so that the user selects whether to start the beidou positioning system in the selection interface; if the user selects to start the beidou positioning system in the selection interface displayed by the display unit 120, the starting unit 130 starts the beidou navigation system in the terminal. Taking a mobile phone as an example, a selection interface is displayed in a display screen of the mobile phone, and the user is prompted in the selection page to determine whether to switch to the Beidou navigation system, so that the user can select 'yes' or 'no' on the selection page; if the user selects 'yes', starting a Beidou navigation system in the terminal; and if the user selects 'no', continuing to use the positioning system currently operated in the terminal.
If no user instruction is received within a predetermined time after the display unit 120 displays the selection interface, the starting unit 130 directly starts the second positioning system in the mobile terminal. For example, if no user instruction is received within 10S (seconds) after the selection interface is displayed, the beidou navigation system in the terminal is directly started.
Based on any of the above embodiments, the positioning apparatus based on a mobile terminal further includes: a switching unit (not shown) for switching the mobile terminal to the first positioning system when it is determined that the mobile terminal is not in a region of a specific type and/or the first positioning system is capable of being satisfactorily used.
Specifically, if the originally operating positioning system of the mobile terminal is the first positioning system, when the determining unit 110 determines that the mobile terminal is switched from the first positioning system to the second positioning system, or determines that the mobile terminal is operating in a state where the second positioning system and the first positioning system cooperatively operate, the starting unit 130 starts the second positioning system of the mobile terminal, so that when the second positioning system is used as one of the operating systems, it is determined whether the mobile terminal is still in a specific type of area and/or whether the first positioning system can be satisfactorily used, and if the mobile terminal is not in a specific type of area and/or the first positioning system can be satisfactorily used, the switching unit switches the originally operating positioning system of the mobile terminal back to the originally operating positioning system of the mobile terminal, that is, the first positioning system.
Fig. 6 shows a block diagram of a mobile terminal based positioning apparatus according to yet another embodiment of the present application. As shown in fig. 6, based on the above-mentioned embodiments described in fig. 4 and fig. 5 (fig. 6 only shows the block diagram of the device structure of the present embodiment based on the embodiment described in fig. 5), the mobile terminal based positioning device 100 further includes a sending unit 140, configured to send a communication request to the ground center of the second positioning system to request to send the location information obtained by the mobile terminal according to the second positioning system to the target terminal when the second positioning system is used as one of the working systems.
For example, the first positioning system is a GPS positioning system, the second positioning system is a beidou positioning system, and the beidou positioning system is different from other satellite navigation systems in that the beidou positioning system has a two-way communication function, and can communicate using short messages in an area where mobile communication signals are weak or cannot be covered by the two-way communication function of the beidou positioning system. Therefore, when the user is judged to be in a weak area of mobile communication signals such as an ocean or a mountain area, the Beidou positioning system in the mobile terminal is used for positioning to obtain the position information of the current position, and the position information can be sent to the target terminal through the ground center of the Beidou positioning system, wherein the target terminal is also provided with the Beidou positioning system and can be a mobile phone, a tablet computer and other terminals. Specifically, the sending unit 140 sends a communication request including the device identifier of the target terminal and the location information to a ground center of the beidou positioning system, and the ground center forwards the location information to the target terminal after receiving the communication request, where the target terminal may be a location information receiver terminal preset by a user of the terminal. For example, when the user is at sea, no matter whether the mobile communication signal strength at sea can carry out normal communication, the position information of the terminal can be sent to a preset receiver mobile phone of the user through the ground center of the Beidou positioning system so as to inform the receiver of the position of the user, so that the user can timely know the position of the user when the user encounters danger at sea, mountain areas and jungles, and rescue is carried out.
Fig. 7 is a block diagram illustrating a mobile terminal based positioning apparatus according to still another embodiment of the present application. As shown in fig. 7, based on the embodiments described in fig. 4 and fig. 5 (fig. 7 only shows the block diagram of the device structure of the present embodiment based on the embodiment described in fig. 5), the positioning device 100 based on the mobile terminal further includes a detecting unit 150 and a transmitting unit 160.
The monitoring unit 150 is configured to monitor a signal-to-noise ratio of a communication signal of the mobile terminal in real time; the sending unit 160 is configured to send a communication request to a ground center of the second positioning system to request to send the location information obtained by the mobile terminal according to the second positioning system to the target terminal if the snr of the communication signal is smaller than the second predetermined threshold and the second positioning system is used as one of the working systems.
A mobile terminal (e.g., a mobile phone) having a mobile communication function may not normally communicate in a region where mobile communication signals are weak at sea or in a mountain area, and in this case, if a user is in danger, a message cannot be transmitted to the outside, so that the monitoring unit 150 monitors the signal-to-noise ratio of the communication signal of the terminal in real time. If the signal-to-noise ratio of the communication signal is smaller than a second predetermined threshold, the sending unit 140 sends a communication request to the ground center of the beidou positioning system to request to send the position information of the mobile terminal to a target terminal. Through the two-way communication function of the Beidou positioning system, short messages can be used for communication in an area where mobile communication signals are weak or cannot be covered, therefore, if the intensity of the communication signals monitored by the monitoring unit 150 is smaller than a preset threshold value, the sending unit 140 sends the position information of the current position, which is obtained by positioning through the Beidou positioning system in the mobile terminal, to the target terminal through the ground center of the Beidou positioning system, the Beidou positioning system is also arranged in the target terminal, and the target terminal can be a mobile phone, a tablet computer and other terminals. Specifically, the sending unit 140 sends a communication request including the device identifier of the target terminal and the location information to a ground center of the beidou positioning system, and the ground center forwards the location information to the target terminal according to the device identifier of the target terminal after receiving the communication request, where the target terminal may be a location information receiver terminal preset for a user of the mobile terminal, such as a mobile phone of another user. For example, when the user is at sea, no matter whether the mobile communication signal strength at sea can carry out normal communication, the position information of the mobile phone can be sent to the mobile phone of the receiver preset by the user through the ground center of the Beidou positioning system, and the position of the user at the receiver is informed, so that the user can be timely known when the user is in danger and the mobile communication signal is weak and normal communication cannot be carried out, and rescue is carried out.
The mobile terminal based method and apparatus of the present application are described above. According to the scheme of the application, whether the mobile terminal is located in the area of the specific type and the working positioning system thereof and/or whether the specific condition is met is determined, the mobile terminal works in the second positioning system or works in the state that the second positioning system and the first positioning system work cooperatively, and when the mobile terminal is located in the area of the specific type and/or meets the specific condition, a Beidou navigation system (second positioning system) in the mobile terminal is used for positioning, so that the position information with higher accuracy can be obtained; in addition, when different specific conditions are met, the working positioning system is converted into a positioning system with low resource occupancy rate, so that the resource allocation can be optimized; meanwhile, when the mobile terminal is in a region of a specific type, no matter whether the mobile communication signal strength can maintain normal communication or not, the two-way message communication function of the Beidou navigation system (second positioning system) can be utilized, and the position information of the mobile terminal is sent to a target terminal preset by a user through the ground center of the Beidou navigation system, so that when the mobile terminal user is in danger and the mobile communication signal is weak and normal communication cannot be carried out, the position of the user can be timely known, and rescue is carried out.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The foregoing is a preferred embodiment of the present application, which is not intended to be limiting in any way, and any simple modifications, equivalent variations and modifications made to the foregoing embodiment according to the technical spirit of the present application are within the scope of the present application.