Positioning information sharing method, sharing device, electronic device and medium

By establishing a positioning sharing group, obtaining the location information of multiple electronic devices and determining the target positioning results, the problem of low positioning accuracy is solved, the positioning accuracy of the equipment is improved and the dependence on environmental signals is reduced.

CN113068122BActive Publication Date: 2025-08-15GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110351876.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-31
Publication Date
2025-08-15
Estimated Expiration
2041-03-31

AI Technical Summary

Technical Problem

In some environments, the positioning accuracy of electronic devices is low, and the prior art has problems such as increasing costs or scenario limitations in improving positioning system capabilities or environmental interconnection methods.

Method used

By establishing a positioning sharing group, the location information of multiple electronic devices is obtained, and the target positioning results are determined according to a predetermined strategy, and sent to the device that needs positioning information.

Benefits of technology

It improves the location information accuracy of devices with weak positioning capabilities, reduces the dependence on environmental signals, and realizes flexible location information sharing and secure group management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113068122B_ABST
    Figure CN113068122B_ABST
Patent Text Reader

Abstract

The present application discloses a method for sharing positioning information, which is used for a first electronic device. The sharing method includes: establishing a positioning sharing group, the positioning sharing group includes a first electronic device and at least one second electronic device, and then obtaining shared location information, wherein the shared location information includes the current first location information of the first electronic device and the current second location information of the second electronic device, and determining the target positioning result from the shared location information according to a predetermined strategy, and determining the positioning information of the first electronic device according to the target positioning result, and sending the target positioning result to the second electronic device so that the second electronic device can determine the positioning information according to the target positioning result. The sharing method of the embodiment of the present application can enable multiple electronic devices to share location information with each other, and for electronic devices with weaker positioning capabilities, it can improve the accuracy of their acquisition of location information to a certain extent. The present application also discloses a sharing device, an electronic device and a storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, electronic device, and storage medium for sharing positioning information. Background Art

[0002] With the development of communication networks, the number of user-related electronic devices, such as mobile phones, vehicles, bracelets, and watches, has increased. Furthermore, the applications of these electronic devices often require relatively precise location information. However, certain devices have low positioning accuracy in specific environments, such as the outdoors, large enclosed shopping malls, mines, underground garages, and tunnels, where positioning signal quality is poor. Existing technologies sometimes improve the capabilities of their own positioning systems, such as by improving hardware, to obtain more accurate location information. However, such approaches increase costs. Others use environmental positioning technologies to improve the accuracy of location information, but this requires interconnection between the device and the environment, and is also limited by the application scenario. Summary of the Invention

[0003] In view of this, an embodiment of the present application provides a method for sharing positioning information, which is used for a first electronic device. The sharing method includes:

[0004] Establishing a location sharing group, wherein the location sharing group includes the first electronic device and at least one second electronic device;

[0005] Acquiring shared location information, wherein the shared location information includes current first location information of the first electronic device and current second location information of the second electronic device;

[0006] Determining a target positioning result from the shared location information according to a predetermined strategy;

[0007] The positioning information of the first electronic device is determined according to the target positioning result, and the target positioning result is sent to the second electronic device so that the second electronic device can determine the positioning information according to the target positioning result.

[0008] The present application also provides a method for sharing positioning information, for use with a second electronic device, where the second electronic device is located in a positioning sharing group established by a first electronic device. The method includes:

[0009] Sending the current second location information of the second electronic device to the location sharing group;

[0010] Receive the target positioning result returned by the positioning sharing group, and determine the positioning information of the second electronic device according to the target positioning result.

[0011] The present application also provides a device for sharing positioning information, which is used for a first electronic device and includes:

[0012] An establishing module, configured to establish a location sharing group, wherein the location sharing group includes the first electronic device and at least one second electronic device;

[0013] an acquisition module, configured to acquire shared location information, wherein the shared location information includes current first location information of the first electronic device and current second location information of the second electronic device;

[0014] a determination module, configured to determine a target positioning result from the shared location information according to a predetermined strategy;

[0015] The sending module is configured to determine the positioning information of the first electronic device according to the target positioning result, and send the target positioning result to the second electronic device so that the second electronic device can determine the positioning information according to the target positioning result.

[0016] The present application also provides an electronic device, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the sharing method described above is implemented.

[0017] The present application also provides a non-volatile computer-readable storage medium for a computer program, which implements the sharing method described above when the computer program is executed by one or more processors.

[0018] The embodiments of the present application establish a location sharing group, obtain shared location information, determine a target location result from the shared location information according to a predetermined strategy, determine the location information of a first electronic device based on the target location result, and send the target location result to a second electronic device so that the second electronic device can determine the location information based on the target location result. This has at least the following beneficial effects:

[0019] First, it enables multiple electronic devices to share location information with each other, and for electronic devices with weak positioning capabilities, it can improve the accuracy of their location information acquisition to a certain extent.

[0020] Second, different sharing purposes can be achieved according to predetermined strategies, such as selecting the location information of a certain device to cover the location information of all electronic devices.

[0021] 3. Establishing positioning sharing groups through various personal local area network methods can reduce dependence on the environment. For example, in places where the mobile communication network signal is weak, Bluetooth local area network can be used. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings.

[0023] Figure 1 is a schematic flow chart of a sharing method according to certain embodiments of the present application;

[0024] Figure 2 is a module diagram of a shared device in certain embodiments of the present application;

[0025] Figure 3 is a schematic flow chart of a sharing method according to certain embodiments of the present application;

[0026] Figure 4 is a module diagram of a shared device in certain embodiments of the present application;

[0027] Figure 5 is a schematic flow chart of a sharing method according to certain embodiments of the present application;

[0028] Figure 6 is a schematic flow chart of a sharing method according to certain embodiments of the present application;

[0029] Figure 7 is a schematic flow chart of a sharing method according to certain embodiments of the present application;

[0030] Figure 8 is a schematic flow chart of a sharing method according to certain embodiments of the present application;

[0031] Figure 9 It is a flow chart of the sharing method of certain embodiments of the present application. DETAILED DESCRIPTION

[0032] The following describes in detail embodiments of the present application, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0033] See also Figure 1 The present application provides a method for sharing positioning information, for a first electronic device, comprising:

[0034] S10: Establishing a location sharing group, where the location sharing group includes a first electronic device and at least one second electronic device;

[0035] S20: Acquire shared location information, where the shared location information includes current first location information of the first electronic device and current second location information of the second electronic device;

[0036] S30: Determine a target positioning result from the shared location information according to a predetermined strategy;

[0037] S40: Determine positioning information of the first electronic device according to the target positioning result, and send the target positioning result to the second electronic device so that the second electronic device can determine positioning information according to the target positioning result.

[0038] See also Figure 2 , the embodiment of the present application also provides a sharing device 100, and the sharing method of the embodiment of the present application can be implemented by the sharing device 100. The sharing device 100 includes an establishment module 110, an acquisition module 120, a determination module 130 and a sending module 140. S10 can be implemented by the establishment module 110, S20 can be implemented by the acquisition module 120, S30 can be implemented by the determination module 130, and S40 can be implemented by the sending module 140. In other words, the establishment module 110 is used to establish a positioning sharing group, and the positioning sharing group includes a first electronic device and at least one second electronic device. The acquisition module 120 is used to obtain shared location information, wherein the shared location information includes the current first location information of the first electronic device and the current second location information of the second electronic device. The determination module 130 is used to determine the target positioning result from the shared location information according to a predetermined strategy. The sending module 140 is used to determine the positioning information of the first electronic device based on the target positioning result, and send the target positioning result to the second electronic device so that the second electronic device can determine the positioning information based on the target positioning result.

[0039] The embodiment of the present application also provides a first electronic device. The first electronic device includes a memory and a processor. A computer program is stored in the memory, and the processor is used to establish a positioning sharing group, the positioning sharing group includes a first electronic device and at least one second electronic device, and then obtain shared location information, wherein the shared location information includes the current first location information of the first electronic device and the current second location information of the second electronic device, and determine a target positioning result from the shared location information according to a predetermined strategy, and determine the positioning information of the first electronic device according to the target positioning result, and send the target positioning result to the second electronic device so that the second electronic device can determine the positioning information according to the target positioning result.

[0040] Specifically, a location sharing group is established and a first electronic device and at least one second electronic device are added to the location sharing group. The location sharing group is a virtual group that can be grouped via a mobile communication network or a wireless local area network. An interconnection is established between the electronic devices in the location sharing group, and data can be transmitted between the electronic devices via this interconnection. The location sharing group can be established via a personal area network, including but not limited to a WLAN local area network or a Bluetooth local area network.

[0041] In addition, it should be noted that the terms "first" and "second" in this application do not limit the types of electronic devices or the order of execution. Rather, in the process of executing this application, electronic devices can be divided into two types under different conditions. When one condition is met, the electronic device can be determined as the first electronic device, and when another condition is met, the electronic device can be determined as the second electronic device.

[0042] Specifically, a first electronic device establishes a location sharing group, and a second electronic device becomes a member of the location sharing group. Determining whether an electronic device is the first or second electronic device can be done in a variety of ways, including manually selecting and confirming the first electronic device, or temporarily confirming the first electronic device in order of priority when establishing the network. Once the location sharing group is established, the first electronic device can be configured as a server for the location sharing group and can collect, process, and forward messages, while the second electronic device can act as a client for the location sharing group, sending and receiving messages, etc.

[0043] Furthermore, the shared location information includes the current first location information of the first electronic device and the current second location information of the second electronic device. The current first location information and the current second location information are the current location information collected by the first electronic device and the second electronic device through their own positioning modules according to the request. The shared location information may include multiple sets of current first location information and current second location information, such as periodically obtaining the current first location information and the current second location information.

[0044] In one specific embodiment, a first electronic device and two second electronic devices can establish a personal area network (PAN) via Bluetooth. When location sharing is required, the first electronic device initiates the method and sets a location sharing group ID. Simultaneously, the two second electronic devices initiate the method and select the same sharing group ID. Together, the three electronic devices form a location sharing group. Furthermore, the first electronic device sends a location acquisition request to each electronic device in the group. Upon receiving the request, each electronic device acquires its own location information and sends it to the first electronic device, allowing the first electronic device to obtain the group's shared location information, including its own current first location information and the current second location information of each second electronic device. The current first location information and the current second location information can be sent upon joining the location sharing group. After receiving the location information from the three electronic devices, a target location result is determined based on a predetermined strategy. The predetermined strategy includes, but is not limited to, filtering based on the model of each electronic device or the accuracy of the location information, or processing the location information of the three electronic devices. The final target location result is a single location information. Furthermore, the first electronic device replaces the current first position with this target positioning result to obtain the current positioning information of the first electronic device, and sends it to the second electronic device at the same time. The second electronic device uses this target positioning result as the current position information, i.e., positioning information, to replace the current second position information.

[0045] In another specific embodiment, three electronic devices share location information and are located within a personal area network (PAN). These electronic devices lack the ability to manually create a group. Upon initiating this method, the electronic device begins monitoring group messages within the PAN. If no group messages are available, it begins forming a location sharing group and encapsulates this group information within a group message for broadcast. This electronic device is the first electronic device. The other two electronic devices, upon monitoring, acquire this location sharing group and join it. Together, these three electronic devices form the location sharing group. Once the location sharing group is established, each electronic device in the group periodically transmits its current location information to the first electronic device. The first electronic device then obtains the shared location information. Upon receiving the location information from the three electronic devices, the first electronic device selects the device with the highest accuracy based on the accuracy of the location information transmitted by each electronic device. This device then determines the location information of this electronic device as the target location result. Furthermore, the first electronic device replaces its current first location with the target location result to obtain its current location information. This information is then transmitted to the second electronic device. The second electronic device uses the target location result as its current location information, replacing its current second location information.

[0046] In another specific embodiment, five electronic devices, including electronic devices 1-5, share location information. A predetermined policy is to default the location information of electronic device 3 as the target location result. For example, the location information of a mobile phone is defaulted as the target location result. Therefore, upon receiving the location information of the five electronic devices, the location information of electronic device 3 is selected as the target location result.

[0047] In this way, the implementation method of the present application establishes a positioning sharing group, then obtains shared location information, and determines the target positioning result from the shared location information according to a predetermined strategy, and determines the positioning information of the first electronic device according to the target positioning result, and sends the target positioning result to the second electronic device so that the second electronic device can determine the positioning information according to the target positioning result. It can enable multiple electronic devices to share location information with each other, and for electronic devices with weak positioning capabilities, the accuracy of obtaining location information can be improved to a certain extent. And different sharing purposes can be achieved according to predetermined strategies, such as selecting the positioning information of a certain device to cover the location information of each electronic device. In addition, by establishing a positioning sharing group through a variety of personal local area network methods, the dependence on the environment can be reduced. For example, in places where the mobile communication network signal is weak, a Bluetooth local area network can be used.

[0048] See also Figure 3 In some embodiments, before step S10, the method further includes:

[0049] S01: Periodically send a location sharing request and monitor the response to the location sharing request;

[0050] S02: If no response is received, the current electronic device is determined to be the first electronic device.

[0051] See also Figure 4 The sharing device 100 of the embodiment of the present application further includes a monitoring module 150. S01 and S02 can be implemented by the monitoring module 150. In other words, the monitoring module 150 is configured to periodically send a location sharing request and monitor a response to the location sharing request. If no response is received, the current electronic device is determined to be the first electronic device.

[0052] In some embodiments, the processor is configured to periodically send a location sharing request and monitor a response to the location sharing request. If no response is received, the current electronic device is determined to be the first electronic device.

[0053] In one example, four electronic devices, including electronic devices 1-4, share location information within a personal area network. Electronic device 2 periodically sends a location sharing request to a server, such as sending a location sharing request every 1 second, while monitoring the server's response. If no response is received from the server within a certain time threshold, electronic device 2 is identified as the first electronic device and begins to establish a location sharing group. The methods for establishing a location sharing group and determining the target location result are basically the same as those in the above embodiment. For details, please refer to the relevant explanations in the implementation method and will not be repeated here.

[0054] In this way, compared with other methods of establishing a positioning sharing group, by using the electronic device that first initiates sharing as a server to establish a positioning sharing group and process the subsequent determination of the target positioning results, a sharing group can be established quickly, and any electronic device can be used as the first electronic device without being specified, which reduces the dependence on electronic devices to a certain extent and makes the implementation method simpler.

[0055] See also Figure 5 In some embodiments, step S10 includes:

[0056] S11: Establishing a location sharing group in the local area network;

[0057] S12: monitoring and receiving a location sharing request sent by a second electronic device;

[0058] S13: Sending a location sharing response including the location sharing group to the second electronic device so that the second electronic device joins the location sharing group according to the location sharing response.

[0059] In some embodiments, S11-S13 may be implemented by the establishment module 110. In other words, the establishment module 110 is configured to establish a location sharing group in the local area network, monitor and receive a location sharing request sent by the second electronic device, and send a location sharing response containing the location sharing group to the second electronic device so that the second electronic device joins the location sharing group according to the location sharing response.

[0060] In some embodiments, the processor is used to establish a positioning sharing group in the local area network, monitor and receive a positioning sharing request sent by the second electronic device, and send a positioning sharing response containing the positioning sharing group to the second electronic device so that the second electronic device joins the positioning sharing group according to the positioning sharing response.

[0061] In one specific embodiment, three electronic devices, including electronic devices 1-3, are located in a personal area network. When electronic device 2 is determined to be the first electronic device, a location sharing group is established and location sharing requests are monitored. Electronic devices 1 and 3 periodically send location sharing requests. After electronic device 2 monitors the location sharing requests, it returns a location sharing response to electronic devices 1 and 3, which contains relevant information about the location sharing group. After receiving the location sharing response, electronic devices 1 and 3 join the location sharing group and store relevant information about the location sharing group. In this way, the three electronic devices are jointly formed into a location sharing group. After the location sharing group is formed, each electronic device in the location sharing group periodically sends its current location information to the first electronic device. The first electronic device obtains the shared location information. After receiving the location information of the three electronic devices, it determines the target location result according to a predetermined strategy. Furthermore, the first electronic device replaces the current first location with the target location result to obtain the current location information of the first electronic device, and sends it to the second electronic device at the same time. The second electronic device uses this target location result as the current location information, i.e., the location information, to replace the current second location information.

[0062] In this way, once the first electronic device establishes a location sharing group, the second electronic device can join the established location sharing group by sending the same location sharing request. This allows the first and second electronic devices to use the same implementation method when establishing a location sharing group, which simplifies the implementation to a certain extent. Any electronic device can become a server or client, thus reducing the degree of coupling with other electronic devices.

[0063] See also Figure 6 In some embodiments, step S10 further includes:

[0064] S14: After receiving the location sharing request, sending an authentication request to the second electronic device and receiving an authentication response returned by the second electronic device;

[0065] S15: Determine whether the authentication response is passed based on the authentication code;

[0066] S16: If the authentication response is successful, a location sharing response including the location sharing group is sent to the second electronic device so that the second electronic device joins the location sharing group according to the location sharing response.

[0067] In some embodiments, S14-S16 may be implemented by the establishment module 110. In other words, the establishment module 110 is configured to, upon receiving the location sharing request, send an authentication request to the second electronic device and receive an authentication response returned by the second electronic device, determine whether the authentication response is passed based on the authentication code, and if the authentication response is passed, send the location sharing response including the location sharing group to the second electronic device so that the second electronic device joins the location sharing group based on the location sharing response.

[0068] In some embodiments, the processor is used to send an authentication request to the second electronic device after receiving the location sharing request and receive an authentication response returned by the second electronic device, determine whether the authentication response is passed based on the authentication code, and if the authentication response is passed, send the location sharing response containing the location sharing group to the second electronic device so that the second electronic device joins the location sharing group based on the location sharing response.

[0069] Specifically, the authentication code may be generated by the user manually setting the authentication code on the electronic device, or randomly generating the authentication code when establishing a location sharing group, wherein the content of the authentication code may include any number and / or character form.

[0070] In a specific embodiment, after the first electronic device establishes a location sharing group, it generates a prompt message such as "Please enter the shared password" to prompt the user to enter an authentication code and stores the user's input value, such as "abc123". When the first electronic device monitors and receives the location sharing request sent by the second electronic device, it sends an authentication request to the second electronic device. The second electronic device prompts the user to enter an authentication code such as "Please enter the shared password" and returns the authentication code entered by the user to the first electronic device in the authentication response. Further, the first electronic device receives the authentication response. If the authentication code is "abc123", the authentication is passed, and the location sharing response containing the location sharing group is sent to the second electronic device so that the second electronic device joins the location sharing group according to the location sharing response. If the authentication code is not "abc123", the authentication fails, and an error message is sent to the second electronic device in the location sharing response. The second electronic device issues an early warning prompt based on the error message, such as "Wrong password, please re-enter the shared password".

[0071] In another specific embodiment, when a first electronic device establishes a location sharing group, the system automatically generates an authentication code, such as "abc123," and notifies the first electronic device. The first electronic device monitors and receives a location sharing request from a second electronic device, sends an authentication request to the second electronic device, and the second electronic device prompts the user to enter an authentication code, such as "Please enter a shared password," and returns the user-entered authentication code to the first electronic device in an authentication response. Furthermore, the first electronic device performs authentication, similar to the above embodiment.

[0072] In this way, adding authentication when establishing a location sharing group can confirm the permissions of the electronic devices joining the sharing, avoid other devices from accidentally entering, and effectively improve the security of sharing.

[0073] See also Figure 7 In some embodiments, step S20 includes:

[0074] S21: Periodically receiving current first location information of the first electronic device and current second location information of the second electronic device;

[0075] S22: Determine whether the distance between the current second location information and the current first location information is within a preset distance threshold range;

[0076] S23: If the distance is within a preset distance threshold, determining the current second location information as shared location information;

[0077] S24: If the distance exceeds a preset distance threshold range, the second electronic device is removed from the location sharing group.

[0078] In some embodiments, S21-S24 can be implemented by the acquisition module 120. In other words, the acquisition module 120 is configured to periodically receive the current first location information of the first electronic device and the current second location information of the second electronic device, determine whether the distance between the current second location information and the current first location information is within a preset distance threshold range, and if so, determine the current second location information as shared location information; if not, remove the second electronic device from the location sharing group.

[0079] In some embodiments, the processor is used to periodically receive the current first location information of the first electronic device and the current second location information of the second electronic device, and determine whether the distance between the current second location information and the current first location information is within a preset distance threshold range. If the distance is within the preset distance threshold range, the current second location information is determined as shared location information; if the distance exceeds the preset distance threshold range, the second electronic device is removed from the positioning sharing group.

[0080] The distance threshold may be set manually by the user or set as a default value by the system.

[0081] Specifically, once a location sharing group is established, the location sharing response may include relevant parameters such as the location information reporting start time T0, the reporting period T1, the server address, and the port for receiving reporting results. Based on the location sharing response, the first and second electronic devices begin transmitting their first current first and second location information at the reporting start time T0, and then transmit real-time current first and second location information every reporting period T1. Similarly, the first electronic device sets a time threshold T3 to monitor the reporting time of the second electronic device's location information. If no new current second location information is received within the T3 period, the second electronic device may be removed from the location sharing group and no further determination of target location results may be made. In certain embodiments, a threshold may also be set to monitor the second electronic device. If no location information is received within the T3 period for more than a threshold number of times, such as three times, and no location information is received within the T3 period, the second electronic device is removed from the location sharing group, and a removal instruction may be sent to the user.

[0082] Furthermore, the first electronic device can perform a distance judgment on each current second location information received from each electronic device, that is, judge whether the distance between the current second location information and the current first location information is within a preset distance threshold range, such as within a range of 1 meter. If the distance is within the preset distance threshold range, the current second location information is determined as shared location information. If the distance exceeds the preset distance threshold range, the second electronic device can be removed from the positioning sharing group, and the subsequent determination of the target positioning result will no longer be continued. In some embodiments, a threshold can also be set to observe the second electronic device that exceeds the preset distance threshold range. For example, if the threshold is 3 times, if the 3 positions all exceed the preset distance threshold range, it will be removed from the positioning sharing group, and a removal instruction can be sent to the user.

[0083] In this way, the distance threshold range is confirmed for each piece of location information received, and the distance between each electronic device can be determined in real time. If an electronic device is far away from the distance range centered on the first electronic device, it will not participate in the determination of the target positioning result, which ensures the accuracy of the shared location information to a certain extent.

[0084] See also Figure 8 In some embodiments, step S30 includes:

[0085] S31: sorting the current first location information and the current second location information in the shared location information from high to low according to positioning accuracy and / or positioning reliability;

[0086] S32: Select the position information with the highest positioning accuracy and / or the highest positioning confidence from the ranking as the target positioning result.

[0087] In some embodiments, S31 and S32 may be implemented by the determination module 130. In other words, the determination module 130 is configured to sort the current first location information and the current second location information in the shared location information from high to low according to positioning accuracy and / or positioning reliability, and select the location information with the highest positioning accuracy and / or the highest positioning reliability from the sorted order as the target positioning result.

[0088] In some embodiments, the processor is used to sort the current first location information and the current second location information in the shared location information from high to low according to positioning accuracy and / or positioning confidence, and select the location information with the highest positioning accuracy and / or the highest positioning confidence from the sorting as the target positioning result.

[0089] It's understood that the positioning accuracy and confidence of an electronic device are related to its hardware configuration, such as the navigation module chip. That is, different electronic devices may have different positioning accuracy and confidence levels. Furthermore, the navigation module chip in some electronic devices may only provide one of the two in the NEMA information it receives.

[0090] In one embodiment, five electronic devices including electronic devices 1-5 realize positioning information sharing and are in a personal local area network. When electronic device 2 is determined to be the first electronic device, a positioning sharing group is established. Further, the location information of electronic devices 1-5 is received, and the positioning accuracy and confidence of each location information are obtained therefrom. First, the location information with the highest positioning accuracy is screened from high to low according to the positioning accuracy. If there is only one location information, this location information is used as the target positioning result. If there are two location information with the same highest positioning accuracy, continue to select from high to low according to the confidence, that is, select the location information with the highest confidence. If the confidence of the two location information is the same, select any one as the positioning result. If the confidence of the two location information is different, select the location information with the highest confidence as the target positioning result.

[0091] In another embodiment, the confidence level can be determined first, followed by the positioning accuracy. That is, the location information is first sorted from high to low according to the confidence level, and the location information with the highest confidence level is selected. If there are multiple locations with the same highest confidence level, the location information is further sorted from high to low according to the positioning accuracy, and the location information with the highest positioning accuracy is selected as the target positioning result.

[0092] In another embodiment, a comprehensive judgment can be made on multiple positioning accuracies x1, x2, and x3 and confidence levels y1 and y2 for a certain position information, such as using a weighted average z = a*x1+b*x2+c*x3+d*y1+e*y2. The calculated z is then compared to obtain the target positioning result.

[0093] In this way, the positioning accuracy and / or confidence level are used as a predetermined strategy to filter each location information to obtain the target positioning result. The location information with the highest accuracy among several location information can be filtered out, thereby sharing the optimal location information with all electronic devices in the group to achieve the purpose of location sharing. In addition, the positioning accuracy and / or confidence level are highly correlated with the hardware of the electronic device. In some embodiments, only one determination is required in a fixed group. Subsequently, it is only necessary to track the location information of the electronic device with the highest positioning accuracy and / or confidence level previously determined to determine the target positioning result. Its implementation method is simpler and reduces computing energy consumption to a certain extent.

[0094] See also Figure 9 The present application also provides a method for sharing positioning information for a second electronic device, where the second electronic device is located in a positioning sharing group established by the first electronic device. The method includes:

[0095] S40: Sending the current second location information of the second electronic device to the location sharing group;

[0096] S50: Receive the target positioning result returned by the positioning sharing group, and determine the positioning information of the second electronic device according to the target positioning result.

[0097] Embodiments of the present application also provide a second electronic device. The second electronic device includes a memory and a processor. The memory stores a computer program, and the processor is configured to send current second location information of the second electronic device to a location sharing group, receive a target location result returned by the location sharing group, and determine the location information of the second electronic device based on the target location result.

[0098] In one specific embodiment, three electronic devices, including electronic devices 1-3, share location information within a personal area network (PAN). When electronic device 2 is determined to be the first electronic device, it establishes a location sharing group and simultaneously listens for location sharing requests. Electronic devices 1 and 3 periodically send location sharing requests. Upon receiving the location sharing requests, electronic device 2 returns a location sharing response to electronic devices 1 and 3, containing information about the location sharing group. Electronic devices 1 and 3 are determined to be the second electronic devices. Upon receiving the location sharing responses, the second electronic devices 1 and 3 join the location sharing group and store information about the location sharing group. Thus, the three electronic devices are collectively formed into a location sharing group. Once the location sharing group is established, the second electronic device sends its current second location information to the location sharing group. The first electronic device obtains the shared location information. Upon receiving the location information from all three electronic devices, it determines a target location result according to a predetermined strategy. Furthermore, the first electronic device replaces its current first location with the target location result to obtain its current location information. This information is then sent to the second electronic device. The second electronic device uses the target location result as its current location information, replacing its current second location information.

[0099] In one specific embodiment, the second electronic device sends a location sharing request, the first electronic device sends an authentication request to the second electronic device, the second electronic device prompts the user to enter an authentication code such as "Please enter a shared password", and returns the authentication code entered by the user to the first electronic device in an authentication response. Further, the first electronic device receives the authentication response, and if the authentication code passes the authentication, the first electronic device returns a location sharing response containing the location sharing group to the second electronic device. The electronic device saves the parameters contained in the response, such as the location result reporting start time, reporting period, and server IP address, as well as the port for receiving the reporting results, and reports the location information according to the reporting start time and reporting period, and at the same time sends the location information according to the server IP address and the port for receiving the reporting results.

[0100] In this way, the present application can determine whether the electronic device is the first electronic device or the second electronic device through the response sent by the location sharing request. If no location sharing response is received, it is determined to be the first electronic device and a location sharing group is created. If a location sharing response containing a location sharing group is received, it is determined to be the second electronic device and location information is sent to obtain the target location result. This makes location sharing independent of the electronic device, and the implementation method of each electronic device is the same.

[0101] The present application also provides a computer-readable storage medium or a plurality of non-volatile computer-readable storage media storing a computer program, which implements the method of any of the above embodiments when the computer program is executed by one or more processors.

[0102] In summary, the embodiments of the present application establish a location sharing group, obtain shared location information, determine a target location result from the shared location information according to a predetermined strategy, determine the location information of the first electronic device based on the target location result, and send the target location result to the second electronic device so that the second electronic device can determine the location information based on the target location result. This has at least the following beneficial effects:

[0103] First, it enables multiple electronic devices to share location information with each other, and for electronic devices with weak positioning capabilities, it can improve the accuracy of their location information acquisition to a certain extent.

[0104] Second, different sharing purposes can be achieved according to predetermined strategies, such as selecting the location information of a certain device to cover the location information of all electronic devices.

[0105] 3. Establishing positioning sharing groups through various personal local area network methods can reduce dependence on the environment. For example, in places where the mobile communication network signal is weak, Bluetooth local area network can be used.

[0106] 4. By using the electronic device that first initiates sharing as a server to establish a positioning sharing group and process the subsequent target positioning results, a sharing group can be quickly established, and any electronic device can be used as the first electronic device without being specified, which reduces the dependence on electronic devices to a certain extent and makes the implementation method simpler.

[0107] 5. Adding authentication when establishing a location sharing group can confirm the permissions of electronic devices added to the sharing, which can prevent other devices from accidentally entering and effectively improve the security of sharing.

[0108] 6. Using positioning accuracy and / or confidence as a predetermined strategy to filter each location information to obtain the target positioning result, the location information with the highest accuracy among several location information can be filtered out, thereby sharing the optimal location information with all electronic devices in the group to achieve the purpose of location sharing.

[0109] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related software using a computer program. The program can be stored in a non-volatile computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.

[0110] The above embodiments merely illustrate several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.

Claims

1. A method for sharing positioning information, used for a first electronic device, characterized in that: include: Establishing a location sharing group, wherein the location sharing group includes the first electronic device and at least one second electronic device; Acquiring shared location information, wherein the shared location information includes current first location information of the first electronic device and current second location information of the second electronic device; Determining a target positioning result from the shared location information according to a predetermined strategy; determining positioning information of the first electronic device according to the target positioning result, and sending the target positioning result to the second electronic device so that the second electronic device can determine positioning information according to the target positioning result; Before establishing a location sharing group including the first electronic device and at least one second electronic device, the method further includes: Periodically sending a location sharing request and monitoring a response to the location sharing request; If no response is received, determining the current electronic device as the first electronic device; The acquiring of shared location information, wherein the shared location information includes the current first location information of the first electronic device and the current second location information of the second electronic device, includes: Periodically receiving current first location information of the first electronic device and current second location information of the second electronic device; Determining whether the distance between the current second location information and the current first location information is within a preset distance threshold range; If the distance is within the preset distance threshold, determining the current second location information as the shared location information; If the distance exceeds the preset distance threshold range, the second electronic device is removed from the location sharing group.

2. The sharing method according to claim 1, characterized in that: The establishing of a location sharing group, wherein the location sharing group includes the first electronic device and at least one second electronic device, includes: Establishing the positioning sharing group in the local area network; monitoring and receiving a location sharing request sent by the second electronic device; A location sharing response including the location sharing group is sent to the second electronic device so that the second electronic device joins the location sharing group according to the location sharing response.

3. The sharing method according to claim 2, characterized in that: The establishing of a location sharing group, wherein the location sharing group includes the first electronic device and at least one second electronic device, further includes: After receiving the location sharing request, sending an authentication request to the second electronic device and receiving an authentication response returned by the second electronic device; Determining whether the authentication response is passed according to a preset authentication code; If the authentication response is passed, a location sharing response including the location sharing group is sent to the second electronic device so that the second electronic device joins the location sharing group according to the location sharing response.

4. The sharing method according to claim 1, characterized in that: Determining the target positioning result from the shared location information according to a predetermined strategy includes: sorting the current first location information and the current second location information in the shared location information from high to low according to positioning accuracy and / or positioning reliability; The position information with the highest positioning accuracy and / or the highest positioning confidence is selected from the ranking as the target positioning result.

5. A method for sharing positioning information, used for a second electronic device, characterized in that: The second electronic device is located in a location sharing group established by the first electronic device, and the sharing method includes: Periodically sending the current second location information of the second electronic device to the location sharing group, so that the location sharing group determines whether the distance between the current second location information and the current first location information of the first electronic device is within a preset distance threshold range; if the distance is within the preset distance threshold range, determining the current second location information as shared location information, the shared location information including the current first location information and the current second location information; if the distance exceeds the preset distance threshold range, removing the second electronic device from the location sharing group; Receive a target positioning result returned by the positioning sharing group, and determine positioning information of the second electronic device according to the target positioning result, where the target positioning result is determined by the positioning sharing group from the shared location information according to a predetermined strategy.

6. A device for sharing positioning information, used in a first electronic device, characterized in that: include: An establishing module, configured to establish a location sharing group, wherein the location sharing group includes the first electronic device and at least one second electronic device; an acquisition module, configured to acquire shared location information, wherein the shared location information includes current first location information of the first electronic device and current second location information of the second electronic device; a determination module, configured to determine a target positioning result from the shared location information according to a predetermined strategy; a sending module, configured to determine positioning information of the first electronic device according to the target positioning result, and send the target positioning result to the second electronic device so that the second electronic device can determine positioning information according to the target positioning result; The establishing module is further configured to periodically send a location sharing request and monitor a response to the location sharing request before establishing the location sharing group, the location sharing group including the first electronic device and at least one second electronic device, and to determine the current electronic device as the first electronic device if no response is received; The acquisition module is further configured to periodically receive the current first location information of the first electronic device and the current second location information of the second electronic device; and to determine whether the distance between the current second location information and the current first location information is within a preset distance threshold range; and for determining the current second location information as the shared location information if the distance is within the preset distance threshold range; and removing the second electronic device from the location sharing group if the distance exceeds the preset distance threshold range.

7. The device according to claim 6, characterized in that The establishment module is further used to establish the positioning sharing group in the local area network; monitor and receive the positioning sharing request sent by the second electronic device; and send a positioning sharing response containing the positioning sharing group to the second electronic device so that the second electronic device joins the positioning sharing group according to the positioning sharing response.

8. The device according to claim 7, characterized in that The establishment module is also used to send an authentication request to the second electronic device after receiving the positioning sharing request and receive an authentication response returned by the second electronic device; determine whether the authentication response is passed according to a preset authentication code; if the authentication response is passed, send the positioning sharing response containing the positioning sharing group to the second electronic device so that the second electronic device joins the positioning sharing group according to the positioning sharing response.

9. The device according to claim 6, characterized in that The determination module is also used to sort the current first location information and the current second location information in the shared location information from high to low according to positioning accuracy and / or positioning reliability; and select the location information with the highest positioning accuracy and / or the highest positioning reliability from the sorting as the target positioning result.

10. An electronic device, characterized in that: The electronic device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the sharing method according to any one of claims 1 to 5 is implemented.

11. A non-volatile computer-readable storage medium for a computer program, characterized in that: When the computer program is executed by one or more processors, the sharing method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Positioning information sharing method and device, electronic equipment and storage medium

    CN108289281A

  • Data sharing method and device

    WO2018018866A1

  • Positioning sharing method

    CN105813015A

  • Data share method and device

    CN107666669A