Auxiliary positioning method and electronic equipmentTechnical Field
The present invention relates to information processing technologies, and in particular, to an auxiliary positioning method and an electronic device.
Background
Electronic devices have become indispensable articles in life; in the using process of the electronic equipment, the following application scenes can appear, and a user uses the electronic equipment, such as a mobile phone, a tablet personal computer and the like, for positioning or navigation; specifically, a user uses a GPS module in the electronic device to perform positioning or navigation; however, when the signal receiving function of the positioning module of the electronic device of the user, such as the GPS module, fails, the GPS module cannot acquire the position information, and at this time, the user cannot perform positioning or navigation through the GPS module, which reduces the user experience; therefore, a new positioning method is needed to solve the above problems.
Disclosure of Invention
In order to solve the existing technical problem, the embodiment of the invention provides an auxiliary positioning method and electronic equipment.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides an auxiliary positioning method, which is applied to first electronic equipment and comprises the following steps:
sending a first request message to a second electronic device, wherein the first request message is used for requesting to acquire auxiliary positioning data;
receiving auxiliary positioning data sent by the second electronic equipment;
and obtaining the geographical position information by utilizing the auxiliary positioning data.
An embodiment of the present invention further provides a first electronic device, including:
a sending unit, configured to send a first request message to a second electronic device, where the first request message is used to request to acquire assistance location data;
the first receiving unit is used for receiving the auxiliary positioning data sent by the second electronic equipment;
and the processing unit is used for obtaining the geographical position information by utilizing the auxiliary positioning data.
An embodiment of the present invention further provides a second electronic device, including:
a second receiving unit, configured to receive a first request message sent by a first electronic device, where the first request message is used to request to acquire assistance location data;
and the response unit is used for responding to the request information and sending the auxiliary positioning data.
According to the auxiliary positioning method and the electronic device provided by the embodiment of the invention, the first electronic device obtains auxiliary positioning data from other electronic devices, for example, from the second electronic device, and obtains the geographical position information corresponding to the first electronic device by using the auxiliary positioning data, so that the positioning purpose of the first electronic device is further realized; therefore, the auxiliary positioning method provided by the embodiment of the invention changes the current situation that the conventional electronic equipment can only position the electronic equipment according to self-positioning data, expands the positioning mode of the electronic equipment, enriches the user experience, and simultaneously improves the user experience. In addition, the auxiliary positioning method of the embodiment of the invention also reduces the positioning cost of the first electronic device.
Drawings
Fig. 1 is a first schematic flow chart illustrating an implementation of an auxiliary positioning method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation of an auxiliary positioning method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating a third implementation of the auxiliary positioning method according to the embodiment of the present invention;
fig. 4 is a first schematic structural diagram of a first electronic device according to an embodiment of the invention;
fig. 5 is a second schematic structural diagram of the first electronic device according to the embodiment of the invention;
fig. 6 is a third schematic structural diagram of the first electronic device according to the embodiment of the invention;
fig. 7 is a first schematic structural diagram of a second electronic device according to an embodiment of the invention;
fig. 8 is a second schematic structural diagram of a second electronic device according to an embodiment of the invention.
Detailed Description
So that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
Example one
Fig. 1 is a first schematic flow chart illustrating an implementation of an auxiliary positioning method according to an embodiment of the present invention; the method is applied to a first electronic device, and as shown in fig. 1, the method comprises the following steps:
step 101: sending a first request message to a second electronic device, wherein the first request message is used for requesting to acquire auxiliary positioning data;
step 102: receiving auxiliary positioning data sent by the second electronic equipment;
step 103: and obtaining the geographical position information by utilizing the auxiliary positioning data.
In this embodiment, the first electronic device may be a mobile phone or a tablet computer.
In this embodiment, the auxiliary positioning data is determined by the second electronic device positioning its position by using its own positioning device; specifically, the auxiliary positioning data may be at least one of the following data: ephemeris, time, GPS data packet corresponding to the location of the second electronic device. Further, the GPS data packet includes at least one of the following data: positioning universal standard time (UTC), latitude, north latitude or south latitude, longitude, east longitude or west longitude, quality factors, usable satellite numbers, horizontal precision factors, antenna elevation, height of a geoid ellipsoid relative to a sea level, differential GPS data age, differential reference station numbers and the like. Those skilled in the art should understand that the above-mentioned assisted positioning data and the specific content of the GPS data packet are only exemplary and not used to limit the embodiment of the present invention, and in practical applications, the above-mentioned assisted positioning data and the specific content of the GPS data packet can be arbitrarily set according to practical requirements.
Further, in order to improve the accuracy of positioning by the first electronic device using the auxiliary positioning data, in an embodiment of the present invention, the sending the first request message to the second electronic device specifically includes:
searching for a second electronic device within a preset distance range;
judging whether the distance between the second electronic equipment and the first electronic equipment is within a distance threshold range;
and when the distance between the second electronic equipment and the first electronic equipment is within the distance threshold range, sending a first request message to the second electronic equipment.
Therefore, as the distance between the first electronic device and the second electronic device is within the range of the distance threshold, the auxiliary positioning data sent by the second electronic device to the first electronic device can be used as the positioning data of the first electronic device, and the deviation is not large, so that the positioning accuracy is improved and the user experience is further improved on the basis of positioning by using the auxiliary positioning data of other electronic devices, such as the second electronic device.
Specific application scenarios are given below to further explain the embodiments of the present invention in detail:
scene one
The first electronic equipment is an intelligent terminal such as a mobile phone or a tablet computer; the second electronic equipment is vehicle-mounted navigation; at this time, the map system of the vehicle navigation is relatively slow to upgrade, and each upgrade requires a charge, so that inconvenience is brought to users; however, the receiving antenna of the vehicle-mounted navigation has better performance and high positioning accuracy, and has great advantages compared with the current mobile phone navigation and tablet personal computer navigation, under the condition, the embodiment of the invention not only can utilize the accurate positioning data of the vehicle-mounted navigation, but also can avoid the inconvenience caused by the update of the map of the vehicle-mounted navigation to the user, specifically, the vehicle-mounted navigation transmits the acquired positioning data to the mobile phone or the tablet personal computer, and the mobile phone or the tablet personal computer utilizes the received positioning data and acquires the latest map data through a network connected with the mobile phone or the tablet personal computer to realize the positioning and navigation functions; the method comprises the following specific steps:
the mobile phone or the tablet computer sends a first request message to the vehicle navigation; the first request message is used for requesting to acquire auxiliary positioning data;
the vehicle-mounted navigation receives the first request message, positions the first request message by using a positioning device of the vehicle-mounted navigation, determines auxiliary positioning data, and sends the auxiliary positioning data to a mobile phone or a tablet computer; here, the auxiliary positioning data is a GPS data packet corresponding to the position of the vehicle-mounted navigation;
after the mobile phone or the tablet computer receives the auxiliary positioning data, the geographical position information is obtained by using the auxiliary positioning data, and then the navigation function is realized.
Therefore, the first electronic device, namely a mobile phone or a tablet computer and the like can acquire accurate positioning data, a foundation is laid for completing accurate navigation, and then multiple requirements of a user on high pursuit accuracy, timely updating and low cost are met. Here, the user of the mobile phone or the tablet computer is in the vehicle where the vehicle-mounted navigation is located, so when the mobile phone or the tablet computer utilizes the auxiliary positioning data of the vehicle-mounted navigation, the problem of deviation caused by a long distance between the mobile phone and the tablet computer does not exist.
Scene two
The first electronic equipment is a mobile phone or a tablet computer and the like; the second electronic equipment is also a mobile phone or a tablet personal computer and the like; at this time, when the positioning function of the first electronic device is poor, or a GPS chip in the first electronic device fails to perform positioning, at this time, if the first electronic device needs to perform a navigation function, positioning can be performed only by using WiFi signals in the existing manner, but positioning can be performed only by receiving some WiFi signals at known positions, so the positioning manner is not ideal, and user experience is reduced; under the condition, the auxiliary positioning method provided by the embodiment of the invention can solve the problem of poor user experience. Specifically, the first electronic device may acquire positioning data of other electronic devices in a bluetooth or WiFi sharing manner, for example, acquire positioning data of the second electronic device, and then perform positioning and navigation by using the positioning data of the second electronic device, thereby avoiding a problem that positioning or navigation cannot be performed due to no accessible WiFi signal for positioning, and improving user experience; the method comprises the following specific steps:
searching a second electronic device in a preset distance range by the first electronic device;
the first electronic equipment judges whether the distance between the second electronic equipment and the first electronic equipment is within a distance threshold range;
when the judgment result represents that the distance is within the range of the threshold value, sending a first request message to the second electronic equipment; the first request message is used for requesting to acquire auxiliary positioning data;
after receiving the first request message, the second electronic device determines auxiliary positioning data by using a positioning device of the second electronic device, and sends the auxiliary positioning data to the first electronic device; the auxiliary positioning data is a GPS data packet corresponding to the position of the second electronic equipment;
the first electronic device receives the auxiliary positioning data, and obtains geographical position information by using the auxiliary positioning data, for example, positioning by using the auxiliary positioning data, thereby realizing a navigation function and the like.
Therefore, the process of positioning by the first electronic device is omitted, so that the first electronic device can acquire positioning data quickly, namely assist in positioning data, and complete positioning or navigation tasks.
Here, when the positioning function of the first electronic device is only poor, which results in a long positioning time, the auxiliary positioning method according to the embodiment of the present invention can achieve the purpose of shortening the positioning time of the first electronic device; in particular, the amount of the solvent to be used,
when the judgment result shows that the distance between the second electronic equipment and the first electronic equipment is not within the range of the distance threshold value but does not exceed the maximum threshold value distance, sending a first request message to the second electronic equipment; the first request message is used for requesting to acquire auxiliary positioning data;
after receiving the first request message, the second electronic device determines auxiliary positioning data by using a positioning device of the second electronic device, and sends the auxiliary positioning data to the first electronic device; at this time, the auxiliary positioning data is GPS data such as ephemeris and time corresponding to the position of the second electronic device;
the first electronic equipment receives the auxiliary positioning data and obtains geographical position information by using the auxiliary positioning data, namely positioning information corresponding to the first electronic equipment;
therefore, the first electronic device directly utilizes the acquired GPS data such as ephemeris and time sent by the second electronic device during positioning, and the satellite searching time of the first electronic device is saved, so that the positioning time of the first electronic device can be shortened, and the user experience is further improved.
According to the auxiliary positioning method provided by the embodiment of the invention, the first electronic device obtains auxiliary positioning data from other electronic devices, for example, from the second electronic device, and obtains geographical position information corresponding to the first electronic device by using the auxiliary positioning data, so that the positioning purpose of the first electronic device is further realized; therefore, the auxiliary positioning method provided by the embodiment of the invention changes the current situation that the conventional electronic equipment can only position the electronic equipment according to self-positioning data, expands the positioning mode of the electronic equipment, enriches the user experience, and simultaneously improves the user experience. In addition, the auxiliary positioning method of the embodiment of the invention also reduces the positioning cost of the first electronic device.
Example two
Fig. 2 is a schematic flow chart illustrating an implementation of an auxiliary positioning method according to an embodiment of the present invention; the method is applied to a first electronic device, and as shown in fig. 2, the method comprises the following steps:
step 201: sending a second request message, wherein the second request message is used for requesting to establish communication connection;
step 202: receiving a response message sent by the second electronic equipment;
step 203: judging whether the distance between the second electronic equipment and the first electronic equipment is within a distance threshold range;
step 204: when the distance between the second electronic equipment and the first electronic equipment is within the distance threshold range, controlling the first electronic equipment to establish connection with the second electronic equipment;
step 205: sending a first request message to a second electronic device, wherein the first request message is used for requesting to acquire auxiliary positioning data;
step 206: receiving auxiliary positioning data sent by the second electronic equipment;
step 207: and obtaining the geographical position information by utilizing the auxiliary positioning data.
In this embodiment, the first electronic device may be a mobile phone or a tablet computer.
In this embodiment, the auxiliary positioning data is determined by the second electronic device positioning its position by using its own positioning device; specifically, the auxiliary positioning data may be at least one of the following data: ephemeris, time, GPS data packet corresponding to the location of the second electronic device. Further, the GPS data packet includes at least one of the following data: positioning universal standard time (UTC), latitude, north latitude or south latitude, longitude, east longitude or west longitude, quality factors, usable satellite numbers, horizontal precision factors, antenna elevation, height of a geoid ellipsoid relative to a sea level, differential GPS data age, differential reference station numbers and the like. Those skilled in the art should understand that the above-mentioned assisted positioning data and the specific content of the GPS data packet are only exemplary and not used to limit the embodiment of the present invention, and in practical applications, the above-mentioned assisted positioning data and the specific content of the GPS data packet can be arbitrarily set according to practical requirements.
In an embodiment, to improve the accuracy of positioning by using the auxiliary positioning data by the first electronic device, the sending the first request message to the second electronic device specifically includes:
searching for a second electronic device within a preset distance range;
judging whether the distance between the second electronic equipment and the first electronic equipment is within a distance threshold range;
and when the distance between the second electronic equipment and the first electronic equipment is within the distance threshold range, sending a first request message to the second electronic equipment.
Therefore, as the distance between the first electronic device and the second electronic device is within the range of the distance threshold, the auxiliary positioning data sent by the second electronic device to the first electronic device can be used as the positioning data of the first electronic device, and the deviation is not large, so that the positioning accuracy is improved and the user experience is further improved on the basis of positioning by using the auxiliary positioning data of other electronic devices, such as the second electronic device.
In another specific embodiment, in order to ensure that the first electronic device can receive the auxiliary positioning data sent by the second electronic device, the first electronic device further needs to establish a connection with the second electronic device; the method comprises the following specific steps:
sending a second request message, wherein the second request message is used for requesting to establish communication connection;
receiving a response message sent by the second electronic equipment;
judging whether the distance between the second electronic equipment and the first electronic equipment is within a distance threshold range;
and when the distance between the second electronic equipment and the first electronic equipment is within the distance threshold range, controlling the first electronic equipment to establish connection with the second electronic equipment.
Therefore, the first electronic device can be connected with the second electronic device, and a foundation is laid for the first electronic device to acquire the auxiliary positioning data.
Moreover, in the process of establishing connection with the second electronic device, the first electronic device adds a step of determining whether the distance between the second electronic device and the first electronic device is within a distance threshold range, so that the auxiliary positioning data sent by the second electronic device to the first electronic device can be used as the positioning data of the first electronic device, and the deviation is not large.
Specific application scenarios are given below to further explain the embodiments of the present invention in detail:
scene one
The first electronic equipment is an intelligent terminal such as a mobile phone or a tablet computer; the second electronic equipment is vehicle-mounted navigation; at this time, the map system of the vehicle navigation is relatively slow to upgrade, and each upgrade requires a charge, so that inconvenience is brought to users; however, the receiving antenna of the vehicle-mounted navigation has better performance and high positioning accuracy, and has great advantages compared with the current mobile phone navigation and tablet personal computer navigation, under the condition, the embodiment of the invention not only can utilize the accurate positioning data of the vehicle-mounted navigation, but also can avoid the inconvenience caused by the update of the map of the vehicle-mounted navigation to the user, specifically, the vehicle-mounted navigation transmits the acquired positioning data to the mobile phone or the tablet personal computer, and the mobile phone or the tablet personal computer utilizes the received positioning data and acquires the latest map data through a network connected with the mobile phone or the tablet personal computer to realize the positioning and navigation functions; the method comprises the following specific steps:
the mobile phone or the tablet computer sends a first request message to the vehicle navigation; the first request message is used for requesting to acquire auxiliary positioning data;
the vehicle-mounted navigation receives the first request message, positions the first request message by using a positioning device of the vehicle-mounted navigation, determines auxiliary positioning data, and sends the auxiliary positioning data to a mobile phone or a tablet computer; here, the auxiliary positioning data is a GPS data packet corresponding to the position of the vehicle-mounted navigation;
after the mobile phone or the tablet computer receives the auxiliary positioning data, the geographical position information is obtained by using the auxiliary positioning data, and then the navigation function is realized.
Therefore, the first electronic device, namely a mobile phone or a tablet computer and the like can acquire accurate positioning data, a foundation is laid for completing accurate navigation, and then multiple requirements of a user on high pursuit accuracy, timely updating and low cost are met. Here, the user of the mobile phone or the tablet computer is in the vehicle where the vehicle-mounted navigation is located, so when the mobile phone or the tablet computer utilizes the auxiliary positioning data of the vehicle-mounted navigation, the problem of deviation caused by a long distance between the mobile phone and the tablet computer does not exist.
Scene two
The first electronic equipment is a mobile phone or a tablet computer and the like; the second electronic equipment is also a mobile phone or a tablet personal computer and the like; at this time, when the positioning function of the first electronic device is poor, or a GPS chip in the first electronic device fails to perform positioning, at this time, if the first electronic device needs to perform a navigation function, positioning can be performed only by using WiFi signals in the existing manner, but positioning can be performed only by receiving some WiFi signals at known positions, so the positioning manner is not ideal, and user experience is reduced; under the condition, the auxiliary positioning method provided by the embodiment of the invention can solve the problem of poor user experience. Specifically, the first electronic device may acquire positioning data of other electronic devices in a bluetooth or WiFi sharing manner, for example, acquire positioning data of the second electronic device, and then perform positioning and navigation by using the positioning data of the second electronic device, thereby avoiding a problem that positioning or navigation cannot be performed due to no accessible WiFi signal for positioning, and improving user experience; the method comprises the following specific steps:
searching a second electronic device in a preset distance range by the first electronic device;
the first electronic equipment judges whether the distance between the second electronic equipment and the first electronic equipment is within a distance threshold range;
when the judgment result represents that the distance is within the range of the threshold value, sending a first request message to the second electronic equipment; the first request message is used for requesting to acquire auxiliary positioning data;
after receiving the first request message, the second electronic device determines auxiliary positioning data by using a positioning device of the second electronic device, and sends the auxiliary positioning data to the first electronic device; the auxiliary positioning data is a GPS data packet corresponding to the position of the second electronic equipment;
the first electronic device receives the auxiliary positioning data, and obtains geographical position information by using the auxiliary positioning data, for example, positioning by using the auxiliary positioning data, thereby realizing a navigation function and the like.
Therefore, the process of positioning by the first electronic device is omitted, so that the first electronic device can acquire positioning data quickly, namely assist in positioning data, and complete positioning or navigation tasks.
Here, when the positioning function of the first electronic device is only poor, which results in a long positioning time, the auxiliary positioning method according to the embodiment of the present invention can achieve the purpose of shortening the positioning time of the first electronic device; in particular, the amount of the solvent to be used,
when the judgment result shows that the distance between the second electronic equipment and the first electronic equipment is not within the range of the distance threshold value but does not exceed the maximum threshold value distance, sending a first request message to the second electronic equipment; the first request message is used for requesting to acquire auxiliary positioning data;
after receiving the first request message, the second electronic device determines auxiliary positioning data by using a positioning device of the second electronic device, and sends the auxiliary positioning data to the first electronic device; at this time, the auxiliary positioning data is GPS data such as ephemeris and time corresponding to the position of the second electronic device;
the first electronic equipment receives the auxiliary positioning data and obtains geographical position information by using the auxiliary positioning data, namely positioning information corresponding to the first electronic equipment;
therefore, the first electronic device directly utilizes the acquired GPS data such as ephemeris and time sent by the second electronic device during positioning, and the satellite searching time of the first electronic device is saved, so that the positioning time of the first electronic device can be shortened, and the user experience is further improved.
According to the auxiliary positioning method provided by the embodiment of the invention, the first electronic device obtains auxiliary positioning data from other electronic devices, for example, from the second electronic device, and obtains geographical position information corresponding to the first electronic device by using the auxiliary positioning data, so that the positioning purpose of the first electronic device is further realized; therefore, the auxiliary positioning method provided by the embodiment of the invention changes the current situation that the conventional electronic equipment can only position the electronic equipment according to self-positioning data, expands the positioning mode of the electronic equipment, enriches the user experience, and simultaneously improves the user experience. In addition, the auxiliary positioning method of the embodiment of the invention also reduces the positioning cost of the first electronic device.
EXAMPLE III
Fig. 3 is a schematic flow chart illustrating a third implementation of the auxiliary positioning method according to the embodiment of the present invention; the method is applied to a second electronic device, and as shown in fig. 3, the method comprises the following steps:
step 301: receiving a first request message sent by first electronic equipment, wherein the first request message is used for requesting to acquire auxiliary positioning data;
step 302: and responding to the request information, and sending the auxiliary positioning data.
In order to determine how to determine the assistance-localization data according to the first request message and send the assistance-localization data, in this embodiment, the method further includes:
analyzing the first request message to acquire decryption data of the first request message; the decrypted data corresponds to encrypted data in the first request message;
correspondingly, the sending the assistance location data in response to the request message includes:
acquiring auxiliary positioning data according to the decrypted data;
and sending the auxiliary positioning data.
In this embodiment, the second electronic device may specifically be a mobile phone, a tablet computer, or a vehicle navigation device.
In this embodiment, the auxiliary positioning data is determined by the second electronic device positioning its position by using its own positioning device; specifically, the auxiliary positioning data may be at least one of the following data: ephemeris, time, GPS data packet corresponding to the location of the second electronic device. Further, the GPS data packet includes at least one of the following data: positioning universal standard time (UTC), latitude, north latitude or south latitude, longitude, east longitude or west longitude, quality factors, usable satellite numbers, horizontal precision factors, antenna elevation, height of a geoid ellipsoid relative to a sea level, differential GPS data age, differential reference station numbers and the like. Those skilled in the art should understand that the above-mentioned assisted positioning data and the specific content of the GPS data packet are only exemplary and not used to limit the embodiment of the present invention, and in practical applications, the above-mentioned assisted positioning data and the specific content of the GPS data packet can be arbitrarily set according to practical requirements.
Specific application scenarios are given below to further explain the embodiments of the present invention in detail:
scene one
The first electronic equipment is an intelligent terminal such as a mobile phone or a tablet computer; the second electronic equipment is vehicle-mounted navigation; at this time, the map system of the vehicle navigation is relatively slow to upgrade, and each upgrade requires a charge, so that inconvenience is brought to users; however, the receiving antenna of the vehicle-mounted navigation has better performance and high positioning accuracy, and has great advantages compared with the current mobile phone navigation and tablet personal computer navigation, under the condition, the embodiment of the invention not only can utilize the accurate positioning data of the vehicle-mounted navigation, but also can avoid the inconvenience caused by the update of the map of the vehicle-mounted navigation to the user, specifically, the vehicle-mounted navigation transmits the acquired positioning data to the mobile phone or the tablet personal computer, and the mobile phone or the tablet personal computer utilizes the received positioning data and acquires the latest map data through a network connected with the mobile phone or the tablet personal computer to realize the positioning and navigation functions; the method comprises the following specific steps:
the mobile phone or the tablet computer sends a first request message to the vehicle navigation; the first request message is used for requesting to acquire auxiliary positioning data;
the vehicle-mounted navigation receives the first request message, and analyzes the first request message to acquire decryption data of the first request message; the decrypted data corresponds to encrypted data in the first request message;
the vehicle-mounted navigation utilizes a positioning device of the vehicle-mounted navigation system to position according to the decrypted data, determines auxiliary positioning data and sends the auxiliary positioning data to a mobile phone or a tablet computer; here, the auxiliary positioning data is a GPS data packet corresponding to the position of the vehicle-mounted navigation;
after the mobile phone or the tablet computer receives the auxiliary positioning data, the geographical position information is obtained by using the auxiliary positioning data, and then the navigation function is realized.
Therefore, the first electronic device, namely a mobile phone or a tablet computer and the like can acquire accurate positioning data, a foundation is laid for completing accurate navigation, and then multiple requirements of a user on high pursuit accuracy, timely updating and low cost are met. Here, the user of the mobile phone or the tablet computer is in the vehicle where the vehicle-mounted navigation is located, so when the mobile phone or the tablet computer utilizes the auxiliary positioning data of the vehicle-mounted navigation, the problem of deviation caused by a long distance between the mobile phone and the tablet computer does not exist.
Scene two
The first electronic equipment is a mobile phone or a tablet computer and the like; the second electronic equipment is also a mobile phone or a tablet personal computer and the like; at this time, when the positioning function of the first electronic device is poor, or a GPS chip in the first electronic device fails to perform positioning, at this time, if the first electronic device needs to perform a navigation function, positioning can be performed only by using WiFi signals in the existing manner, but positioning can be performed only by receiving some WiFi signals at known positions, so the positioning manner is not ideal, and user experience is reduced; under the condition, the auxiliary positioning method provided by the embodiment of the invention can solve the problem of poor user experience. Specifically, the first electronic device may acquire positioning data of other electronic devices in a bluetooth or WiFi sharing manner, for example, acquire positioning data of the second electronic device, and then perform positioning and navigation by using the positioning data of the second electronic device, thereby avoiding a problem that positioning or navigation cannot be performed due to no accessible WiFi signal for positioning, and improving user experience; the method comprises the following specific steps:
searching a second electronic device in a preset distance range by the first electronic device;
the first electronic equipment judges whether the distance between the second electronic equipment and the first electronic equipment is within a distance threshold range;
when the judgment result represents that the distance is within the range of the threshold value, sending a first request message to the second electronic equipment; the first request message is used for requesting to acquire auxiliary positioning data;
after receiving the first request message, the second electronic device analyzes the first request message to acquire decryption data of the first request message; the decrypted data corresponds to encrypted data in the first request message;
the second electronic equipment uses a positioning device of the second electronic equipment to position according to the decrypted data, determines auxiliary positioning data and sends the auxiliary positioning data to the first electronic equipment; the auxiliary positioning data is a GPS data packet corresponding to the position of the second electronic equipment;
the first electronic device receives the auxiliary positioning data, and obtains geographical position information by using the auxiliary positioning data, for example, positioning by using the auxiliary positioning data, thereby realizing a navigation function and the like.
Therefore, the process of positioning by the first electronic device is omitted, so that the first electronic device can acquire positioning data quickly, namely assist in positioning data, and complete positioning or navigation tasks.
Here, when the positioning function of the first electronic device is only poor, which results in a long positioning time, the auxiliary positioning method according to the embodiment of the present invention can achieve the purpose of shortening the positioning time of the first electronic device; in particular, the amount of the solvent to be used,
when the judgment result shows that the distance between the second electronic equipment and the first electronic equipment is not within the range of the distance threshold value but does not exceed the maximum threshold value distance, sending a first request message to the second electronic equipment; the first request message is used for requesting to acquire auxiliary positioning data;
after receiving the first request message, the second electronic device analyzes the first request message to acquire decryption data of the first request message; the decrypted data corresponds to encrypted data in the first request message;
the vehicle-mounted navigation utilizes a positioning device of the vehicle-mounted navigation system to position according to the decrypted data, determines auxiliary positioning data and sends the auxiliary positioning data to the first electronic equipment; at this time, the auxiliary positioning data is GPS data such as ephemeris and time corresponding to the position of the second electronic device;
the first electronic equipment receives the auxiliary positioning data and obtains geographical position information by using the auxiliary positioning data, namely positioning information corresponding to the first electronic equipment;
therefore, the first electronic device directly utilizes the acquired GPS data such as ephemeris and time sent by the second electronic device during positioning, and the satellite searching time of the first electronic device is saved, so that the positioning time of the first electronic device can be shortened, and the user experience is further improved.
According to the auxiliary positioning method provided by the embodiment of the invention, the first electronic device obtains auxiliary positioning data from other electronic devices, for example, from the second electronic device, and obtains geographical position information corresponding to the first electronic device by using the auxiliary positioning data, so that the positioning purpose of the first electronic device is further realized; therefore, the auxiliary positioning method provided by the embodiment of the invention changes the current situation that the conventional electronic equipment can only position the electronic equipment according to self-positioning data, expands the positioning mode of the electronic equipment, enriches the user experience, and simultaneously improves the user experience. In addition, the auxiliary positioning method of the embodiment of the invention also reduces the positioning cost of the first electronic device.
Example four
Fig. 4 is a first schematic structural diagram of a first electronic device according to an embodiment of the invention; as shown in fig. 4, the first electronic device includes:
a sending unit 41, configured to send a first request message to a second electronic device, where the first request message is used to request to acquire assistance location data;
a first receiving unit 42, configured to receive the auxiliary positioning data sent by the second electronic device;
a processing unit 43 for obtaining the geographical position information using the assisted positioning data.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing auxiliary positioning method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
EXAMPLE five
Fig. 5 is a second schematic structural diagram of the first electronic device according to the embodiment of the invention; as shown in fig. 5, the first electronic device includes:
a sending unit 41, configured to send a first request message to a second electronic device, where the first request message is used to request to acquire assistance location data;
a first receiving unit 42, configured to receive the auxiliary positioning data sent by the second electronic device;
a processing unit 43 for obtaining the geographical position information using the assisted positioning data.
In this embodiment, the first electronic device further includes: a determination unit 44 and a control unit 45; wherein,
the sending unit 41 is further configured to send a second request message, where the second request message is used to request to establish a communication connection;
the first receiving unit 42 is further configured to receive a response message sent by the second electronic device;
the judging unit 44 is configured to judge whether a distance between the second electronic device and the first electronic device is within a distance threshold range;
the control unit 45 is configured to control the first electronic device to establish a connection with the second electronic device when the distance between the second electronic device and the first electronic device is within the distance threshold range.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing auxiliary positioning method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
EXAMPLE six
Fig. 6 is a third schematic structural diagram of the first electronic device according to the embodiment of the invention; as shown in fig. 6, the first electronic device includes:
a sending unit 41, configured to send a first request message to a second electronic device, where the first request message is used to request to acquire assistance location data;
a first receiving unit 42, configured to receive the auxiliary positioning data sent by the second electronic device;
a processing unit 43 for obtaining the geographical position information using the assisted positioning data.
In this embodiment, the first electronic device further includes: a determination unit 44 and a control unit 45; wherein,
the sending unit 41 is further configured to send a second request message, where the second request message is used to request to establish a communication connection;
the first receiving unit 42 is further configured to receive a response message sent by the second electronic device;
the judging unit 44 is configured to judge whether a distance between the second electronic device and the first electronic device is within a distance threshold range;
the control unit 45 is configured to control the first electronic device to establish a connection with the second electronic device when the distance between the second electronic device and the first electronic device is within the distance threshold range.
In this embodiment, the sending unit 41 includes:
a search subunit 411 configured to search for a second electronic device within a preset distance range;
a determining subunit 412, configured to determine whether a distance between the second electronic device and the first electronic device is within a distance threshold range;
a sending subunit 413, configured to send a first request message to the second electronic device when the distance between the second electronic device and the first electronic device is within the distance threshold range.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing auxiliary positioning method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
EXAMPLE seven
Fig. 7 is a first schematic structural diagram of a second electronic device according to an embodiment of the invention; as shown in fig. 7, the second electronic device includes:
a second receiving unit 71, configured to receive a first request message sent by a first electronic device, where the first request message is used to request to acquire assistance-localization data;
a responding unit 72, configured to send the assistance location data in response to the request information.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing auxiliary positioning method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
Example eight
Fig. 8 is a second schematic structural diagram of a second electronic device according to an embodiment of the invention; as shown in fig. 8, the second electronic device includes:
a second receiving unit 71, configured to receive a first request message sent by a first electronic device, where the first request message is used to request to acquire assistance-localization data;
a responding unit 72, configured to send the assistance location data in response to the request information.
In this embodiment, the second electronic device further includes:
a parsing unit 73, configured to parse the first request message to obtain decryption data associated with the first request message; the decrypted data corresponds to encrypted data in the first request message;
correspondingly, the response unit 72 is further configured to obtain the auxiliary positioning data according to the decrypted data; and is further configured to transmit the assistance-localization data.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing auxiliary positioning method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.