Positioning method, electronic equipment and readable storage medium
By using the second Bluetooth physical layer to send broadcasts to obtain location information after the offline device is disconnected, the problem of data leakage risk in the prior art is solved, and the effect of rapid positioning and data security is achieved.
Patent Information
- Application Number
- CN202410375363.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2025-01-07
AI Technical Summary
When positioning offline electronic devices in the prior art, it is necessary to obtain the location information and account information of the three-party devices through a cloud server, which poses a risk of data leakage and cannot guarantee data privacy.
After the offline device is disconnected, the broadcast is sent using the second Bluetooth physical layer to obtain the location information. Even the main device outside the transmission distance of the first Bluetooth physical layer can still receive the location information without uploading the three-party device. Data is used to cloud servers, and encryption and decryption technologies are used to ensure data security.
It realizes the rapid acquisition of location information of offline devices, protects the data privacy and information security of three-party devices, and avoids the risk of data leakage.
Smart Images

Figure CN119277511A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a positioning method, an electronic device and a readable storage medium. Background Art
[0002] To facilitate users to find their electronic devices, when one of the user's electronic devices that is disconnected from the cloud server (hereinafter referred to as the offline device) loses the Bluetooth connection with another electronic device of the user (hereinafter referred to as the main device) due to the long distance, the offline device can request other electronic devices that are within the Bluetooth coverage of the offline device and can connect to the cloud server (hereinafter referred to as third-party devices) to send the location information of the offline device (such as the location information of the third-party devices) to the cloud server. In this way, the user's main device or other electronic devices that can connect to the cloud server can obtain the location information of the offline device through the cloud server.
[0003] For example, the smart watch 10 and the mobile phone 20 are electronic devices of the same user, where the mobile phone 20 is the main device. When the smart watch 10 is located in the teaching building A and the mobile phone 20 is located in the teaching building B, the smart watch 10 and the mobile phone 20 disconnect the Bluetooth connection, and the smart watch 10 is offline relative to the mobile phone 20, and the smart watch 10 cannot obtain its own location data offline. In order to enable the mobile phone 20 to obtain its location information, the smart watch 10 can send a Bluetooth broadcast in the findmy format, which can carry the initial public key (public key) generated when the smart watch 10 and the mobile phone 20 are paired by Bluetooth. The mobile phone 30 (as a third-party device) near the smart watch 10 can receive the Bluetooth broadcast sent by the smart watch 10, and use the initial public key to encrypt the location information of the mobile phone 30 and send it to the cloud server. Then the mobile phone 20 can use the initial public key to obtain the encrypted location information of the mobile phone 30 from the cloud server, and use the initial private key (private key) generated when the smart watch 10 and the mobile phone 20 are paired by Bluetooth to decrypt the encrypted location information of the mobile phone 30 to obtain the location information of the mobile phone 30. In this way, the mobile phone 20 can determine the location of the offline smart watch 10 through the location information of the mobile phone 30. It can be understood that the mobile phone 30 and the mobile phone 20 are devices of different accounts.
[0004] However, the above method must rely on the cloud server to obtain the offline device location, and needs to upload the location information and account information of the mobile phone 30 (third-party device) to the cloud server, which poses a risk of leakage of the location information and account information of the third-party device. Summary of the invention
[0005] To solve the above problems, the present application provides a positioning method, an electronic device and a readable storage medium.
[0006] In a first aspect, the present application provides a positioning method, which is applied to a first electronic device, and the method includes: establishing a Bluetooth connection with a second electronic device based on a first Bluetooth physical layer; detecting that the Bluetooth connection with the second electronic device is disconnected, and obtaining first location data of the first electronic device; sending a first Bluetooth broadcast through a second Bluetooth physical layer, wherein the first Bluetooth broadcast includes the first location data, and the transmission distance of the second Bluetooth physical layer is greater than the transmission distance of the first Bluetooth physical layer.
[0007] It can be understood that the first electronic device can refer to the offline device mentioned in the embodiment of the present application (such as the smart watch 10). The second electronic device can refer to the main device mentioned in the embodiment of the present application (such as the mobile phone 20), and the first Bluetooth broadcast can refer to the main search broadcast mentioned in the embodiment of the present application.
[0008] In some embodiments, after the first electronic device is disconnected from the second electronic device, the first electronic device capable of obtaining its own location data can obtain its own first location data and send a first Bluetooth broadcast including the first location data through the second Bluetooth physical layer, so that the second electronic device within the transmission distance corresponding to the second Bluetooth physical layer can obtain the location of the first electronic device in time to find the first electronic device. In addition, the first electronic device can send the first Bluetooth broadcast at the maximum transmission power at the second Bluetooth physical layer.
[0009] Through the above scheme, if the distance between the second electronic device and the first electronic device is greater than the maximum transmission distance corresponding to the first Bluetooth physical layer, the second electronic device can still obtain the location information of the first electronic device, so that the user can find the first electronic device based on the location information of the first electronic device obtained by the second electronic device.
[0010] In a possible implementation of the first aspect above, obtaining the first location data of the first electronic device includes: sending a second Bluetooth broadcast through a first Bluetooth physical layer, the second Bluetooth broadcast being used to request at least one third electronic device to send the second location data of the first electronic device; and determining the first location data based on at least one second location data sent by at least one third electronic device.
[0011] It can be understood that the third electronic device may refer to the three-party device (such as at least one mobile phone 30) mentioned in the embodiment of the present application, and the second Bluetooth broadcast may refer to the location assistance request broadcast mentioned in the embodiment of the present application.
[0012] In some embodiments, after the first electronic device is disconnected from the second electronic device, the first electronic device that does not have the ability to obtain its own location data can obtain at least one second location data of the first electronic device sent by the third electronic device after receiving the second Bluetooth broadcast by sending a second Bluetooth broadcast for requesting location information, and obtain the first location data of the first electronic device based on the at least one second location data. In this way, the first electronic device can send the first Bluetooth broadcast including the first location data through the first Bluetooth physical layer, so that the second electronic device within the transmission distance corresponding to the second Bluetooth physical layer can obtain the location of the first electronic device in time to find the first electronic device.
[0013] Through the above scheme, if the distance between the second electronic device and the first electronic device is greater than the maximum transmission distance corresponding to the first Bluetooth physical layer, the second electronic device can still obtain the location information of the first electronic device, so that the user can find the first electronic device based on the location information of the first electronic device obtained by the second electronic device.
[0014] In a possible implementation of the first aspect above, the second location data is location data of a corresponding third electronic device, or location data of the first electronic device determined by the corresponding third electronic device.
[0015] In some embodiments, the second location data may be determined based on the location data of the third electronic device and the signal strength of the Bluetooth signal sent by the first electronic device and received by the third electronic device.
[0016] In a possible implementation of the first aspect above, determining the first position data based on at least one second position data sent by at least one third electronic device includes: performing algorithmic processing on at least one second position data to obtain the first position data, wherein the algorithmic processing includes at least one of the following algorithmic processings: weighted algorithm, Kalman filter fusion algorithm.
[0017] By performing algorithmic processing on at least one second position data, relatively accurate first position data of the first electronic device can be obtained.
[0018] In a possible implementation of the first aspect above, the second Bluetooth broadcast includes a public key, and the public key is used to encrypt the at least one second location data.
[0019] In a possible implementation of the first aspect above, determining the first location data based on at least one second location data sent by at least one third electronic device also includes: decrypting the content of the second Bluetooth broadcast based on a private key corresponding to the public key to obtain the second location data.
[0020] In a possible implementation of the first aspect above, the first Bluetooth broadcast also includes a first identifier, and the first identifier is used to indicate an electronic device that receives the first Bluetooth broadcast.
[0021] It can be understood that the first identifier may refer to the first UUID mentioned in the embodiment of the present application. By carrying the first identifier in the first Bluetooth broadcast sent by the first electronic device, the first Bluetooth broadcast can be quickly received by the second electronic device that also includes the first identifier. In this way, the second electronic device can obtain the location of the first electronic device in time and find the first electronic device.
[0022] In a possible implementation of the first aspect above, the first location data is data obtained by encrypting the location of the first electronic device based on a first key, wherein the first key is generated when the first electronic device and the second electronic device are paired via Bluetooth.
[0023] It can be understood that the first key may refer to the first key linkey mentioned in the implementation of this application, which can be used for both encrypting and decrypting data.
[0024] In a possible implementation of the first aspect, the data transmission rate corresponding to the first Bluetooth physical layer is 1 Mbps or 2 Mbps, and the data transmission rate corresponding to the second Bluetooth physical layer is 125 kbps or 500 kbps.
[0025] In a second aspect, the present application provides a positioning method applied to a third electronic device, the method comprising: receiving a second Bluetooth broadcast sent by a first electronic device based on a first Bluetooth physical layer; obtaining second location data of the first electronic device in response to the second Bluetooth broadcast; and sending a third Bluetooth broadcast, wherein the third Bluetooth broadcast includes the second location data.
[0026] It can be understood that the second Bluetooth broadcast may refer to the location assistance request broadcast mentioned in the embodiment of the present application, and the third Bluetooth broadcast may refer to the broadcast including encrypted location information sent by the third electronic device (such as at least one mobile phone 30) mentioned in the embodiment of the present application.
[0027] Through the above solution, a third electronic device can assist a first electronic device that does not have the ability to obtain its own location data to obtain its first location data. In this way, even if the distance between the second electronic device and the first electronic device is greater than the maximum transmission distance corresponding to the first Bluetooth physical layer, the second electronic device can still obtain the location information of the first electronic device, so that the user can find the first electronic device based on the location information of the first electronic device obtained by the second electronic device.
[0028] In a possible implementation of the second aspect above, obtaining the second location data of the first electronic device includes: using the location data of a third electronic device as the second location data; or determining the second location data based on the location data of the third electronic device and the signal strength of the Bluetooth signal sent by the first electronic device and received by the third electronic device.
[0029] In a possible implementation of the second aspect, the second Bluetooth broadcast includes a public key, and the second location data in the third Bluetooth broadcast is encrypted location data encrypted based on the public key.
[0030] In a third aspect, an embodiment of the present application provides an electronic device, including a memory for storing instructions; a processor for executing instructions to implement the positioning method provided by the above-mentioned first aspect and various possible implementations of the first aspect, or the positioning method provided by the second aspect and various possible implementations of the second aspect.
[0031] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the positioning method provided by the first aspect and various possible implementations of the first aspect, or the positioning method provided by the second aspect and various possible implementations of the second aspect.
[0032] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the positioning method provided by the first aspect and various possible implementations of the first aspect, or the positioning method provided by the second aspect and various possible implementations of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 According to the method provided in the embodiment of the present application, a schematic diagram of a scenario in which a Bluetooth connection between devices is disconnected is shown;
[0034] Figure 2 According to some embodiments provided by the present application, a schematic diagram of a scenario of determining an offline device based on a cloud server is shown;
[0035] Figure 3 According to some embodiments provided by the present application, a schematic diagram of an interaction process of a positioning method is shown;
[0036] Figure 4 According to some embodiments provided by the present application, a schematic diagram of an interaction process of another positioning method is shown;
[0037] Figure 5 According to some embodiments provided by the present application, a schematic diagram of a specific interaction process of a positioning method is shown;
[0038] Figure 6 A shows a schematic diagram of a main interface 601 of a mobile phone 20 according to some embodiments provided by the present application;
[0039] Figure 6 B shows a schematic diagram of an application interface 602 of a mobile phone 20 according to some embodiments provided by the present application;
[0040] Figure 6 C shows a schematic diagram of an application interface 603 of a mobile phone 20 according to some embodiments provided by the present application;
[0041] Figure 6 D shows a schematic diagram of an application interface 604 of a mobile phone 20 according to some embodiments provided by the present application;
[0042] Figure 7 According to some embodiments provided by the present application, a schematic diagram of a specific interaction process of another positioning method is shown;
[0043] Figure 8 According to some embodiments provided by the present application, a schematic diagram of Bluetooth transmission distance is shown;
[0044] Fig. 9 According to some embodiments provided by the present application, a scene schematic diagram of a positioning method is shown;
[0045] Fig. 10A According to some embodiments provided by the present application, a system structure diagram is shown in which a third-party device that does not support sensorhub broadcasts between an application processor and an offline device;
[0046] Fig. 10B According to some embodiments provided by the present application, a system structure diagram is shown in which a third-party device supporting sensorhub broadcasts between an application processor and an offline device;
[0047] Fig.11 According to some embodiments provided in the present application, a schematic structural diagram of a terminal device 100 is shown. DETAILED DESCRIPTION
[0048] The illustrative embodiments of the present application include, but are not limited to, a display control method, an electronic device, and a readable storage medium.
[0049] It can be understood that the electronic device in the embodiment of the present application can also be called a terminal, a user equipment (UE), a mobile station (MS), a mobile terminal (MT), etc. The terminal device can be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with a wireless transceiver function, a camera with wireless charging, a vehicle-mounted driving recorder, a video doorbell with wireless charging, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, etc. It can be understood that the electronic device provided in the embodiment of the present application is an electronic device that supports wired charging or wireless charging.
[0050] As mentioned above, in the process of obtaining the location information of third-party devices through the cloud server and obtaining the location of offline devices based on the location information of third-party devices, the location information and account information of the third-party devices need to be uploaded to the cloud server, which poses a risk of leakage of the location information and account information of the third-party devices.
[0051] For example, Figure 2 A schematic diagram of a scenario of obtaining the location of an offline device through a cloud server is shown. The specific process of obtaining the location of an offline device through a cloud server may include:
[0052] 1. The smart watch 10 is paired with the mobile phone 20 via Bluetooth.
[0053] 2. The smart watch 10 generates an initial encryption key with the mobile phone 20.
[0054] In some embodiments, when the smart watch 10 generates a connection with the mobile phone 20 through Bluetooth pairing, the smart watch 10 can generate an initial encryption and decryption key and send the initial encryption and decryption key to the mobile phone 20. It can be understood that the initial encryption and decryption keys can be an initial public key and an initial private key, respectively, and the initial public key can be used as an encryption key and the initial private key can be used as a decryption key.
[0055] 3. Mobile phone 20 synchronizes the initial encryption and decryption key to the cloud server.
[0056] In some embodiments, after the mobile phone 20 receives the initial public key and the initial private key sent by the smart watch 20, the initial public key and the initial private key can be synchronized to the cloud server. In addition, after the cloud server receives the initial public key and the initial private key sent by the mobile phone 20, it can also send the initial public key and the initial private key to other electronic devices with the same account as the mobile phone 20 and the smart watch 10, such as the tablet computer 40.
[0057] 4. The smart watch 10 sends a Bluetooth broadcast in the findmy format.
[0058] In some embodiments, Figure 1 The schematic diagram of the scenario in which the Bluetooth connection between the devices is disconnected is shown. The smart watch 10 and the mobile phone 20 are disconnected from the Bluetooth connection, and the smart watch 10 is in an offline state. In order to allow the mobile phone 20 or the tablet computer 40 to obtain the location of the smart watch 10, the smart watch 10 can send a Bluetooth broadcast in the findmy format, and the Bluetooth broadcast carries the initial public key.
[0059] 5. The three-party devices receive the Bluetooth broadcast and send the location data encrypted by the public key to the cloud server.
[0060] In some embodiments, if there are three devices near the smart watch 10, such as mobile phone 301, mobile phone 302, and mobile phone 303, mobile phone 301, mobile phone 302, and mobile phone 303 can respectively receive the Bluetooth broadcast in the findmy format sent by the smart watch 10, respectively obtain the initial public key, and use the initial public key to encrypt the location information of mobile phone 301, mobile phone 302, and mobile phone 303 and send it to the cloud server. It can be understood that the location information of mobile phone 301, mobile phone 302, and mobile phone 303 can refer to the latitude and longitude coordinates of mobile phone 301, mobile phone 302, and mobile phone 303.
[0061] 6. The tablet computer 40 downloads the location record of the corresponding device from the cloud server using the initial public key.
[0062] In some embodiments, mobile phone 20 or tablet computer 40 can download the location record of the corresponding device from the cloud server through the initial public key, that is, download the encrypted location information of mobile phone 301, mobile phone 302, and mobile phone 303 respectively.
[0063] 7. The tablet computer 40 decrypts the location record using the initial private key to obtain the location of the smart watch 10.
[0064] It can be seen that the above solution must rely on the cloud server to obtain the location information of the smart watch 10 (offline device), and the location information and account information of the mobile phone 30 (third-party device) need to be uploaded to the cloud server, which poses a risk of leakage of the location information and account information of the third-party device.
[0065] In other schemes, the smart watch 10 can directly obtain its own location information, and then upload the location information of the smart watch 10 to the cloud server through three-party devices (mobile phone 301, mobile phone 302, mobile phone 303), and then the mobile phone 20 or tablet computer 40 can obtain the location of the smart watch 10 from the cloud server.
[0066] However, the above methods all rely on the cloud server to obtain the location of offline devices, and cannot guarantee the data privacy of third-party devices.
[0067] It should be understood that electronic devices can send and receive Bluetooth broadcasts based on different physical layers of Bluetooth. Different physical layers of Bluetooth can correspond to different data transmission rates, and different physical layers can correspond to different Bluetooth transmission distances. For example, the data transmission rates corresponding to different physical layers of Bluetooth can be 1M, 2M, 500k, 125k, etc. Among them, 1M means that the data transmission rate of the physical layer is 1Mbit / s (1Mbps), and the corresponding Bluetooth transmission distance can reach up to 30-50m. 500k means that the data transmission rate of the physical layer is 500kbps, and the corresponding Bluetooth transmission distance can reach up to twice the maximum Bluetooth transmission distance corresponding to 1M. 125k means that the data transmission rate of the physical layer is 125kbps, and the corresponding Bluetooth transmission distance can reach up to four times the maximum Bluetooth transmission distance corresponding to 1M. It can be understood that the data transmission rate of different physical layers in different scenarios may have different Bluetooth transmission distances. For example, the data transmission rate of the same physical layer has a longer Bluetooth transmission distance in open space than in non-open space.
[0068] It can be understood that the 1M physical layer and the 2M physical layer are common physical layers when terminal devices use Bluetooth for broadcasting. Bluetooth communication services between terminal devices are usually based on the 1M physical layer or the 2M physical layer to transmit data. When a terminal device is communicating with another terminal device based on the 1M physical layer and the 2M physical layer, or when a connection is not established with other devices, it will not actively switch to the 500K physical layer or the 125K physical layer to communicate with other terminal devices. In this way, when the offline device cannot communicate with the cloud server and the distance from the main device is greater than the maximum transmission distance corresponding to the 1M physical layer and the 2M physical layer, the main device will not be able to obtain the location information of the offline device.
[0069] In order to solve the above problems, an embodiment of the present application provides a positioning method, which includes: after the offline device disconnects the Bluetooth connection established with the master device based on the first Bluetooth physical layer, the location information of the offline device can be broadcast through the second Bluetooth physical layer. Since the Bluetooth transmission distance broadcast by the second Bluetooth physical layer is greater than the Bluetooth transmission distance broadcast by the first Bluetooth physical layer, the master device within the transmission distance range corresponding to the second Bluetooth physical layer can obtain the location information of the offline device. Among them, the data transmission rate of the first Bluetooth physical layer can be 1Mbps or 2Mbps, etc., and the data transmission rate of the second Bluetooth physical layer can be 125kbps or 500kbps, etc.
[0070] Based on the above method, if the distance between the main device and the offline device is greater than the maximum transmission distance corresponding to the first Bluetooth physical layer, the main device can still obtain the location information of the offline device, so that the user can find the offline device based on the location information of the offline device obtained by the main device.
[0071] It can be understood that, in some embodiments, the first electronic device can send the second Bluetooth broadcast through the second Bluetooth physical layer and with the maximum transmission power.
[0072] In some embodiments, when the offline device itself has the function of obtaining location data, for example, when the offline device is configured with functional modules such as the global positioning system (GPS) and ultra-wideband (Ultra WideBand, UWB), the offline device can obtain its own first location data based on GPS, UWB technology, etc.
[0073] Furthermore, the offline device can encrypt the first location data using the first key to obtain the first encrypted location data. Furthermore, the offline device sends a host-seeking broadcast through the second Bluetooth physical layer, and the host-seeking broadcast includes the first encrypted location data. The master device within the Bluetooth transmission distance corresponding to the second Bluetooth physical layer can receive the host-seeking broadcast and decrypt the first encrypted location data using the first key to obtain the first location data of the offline device. It can be understood that the first key is a key that can be used for encryption and decryption at the same time when the offline device and the master device are paired by Bluetooth.
[0074] In other embodiments, when the offline device itself does not have the function of obtaining location information, the offline device may also send a location assistance request to at least one third-party device based on the data transmission rate corresponding to the first Bluetooth physical layer. After receiving the location assistance request, the third-party device may also send the location information of the offline device to the offline device. For example, the third-party device may send the location information of the third-party device itself or the location data of the offline device determined based on the location data of the third-party device itself as the first location data to the offline device.
[0075] Furthermore, the offline device can obtain a broadcast including encrypted location information sent by at least one third-party device, and use a private key to decrypt to obtain at least one location information. If at least one location information is the location information of at least one third-party device, the at least one location information can be processed to obtain second location data representing the location of the offline device. If at least one location information is the location of the offline device determined by the third-party device based on its own location information, the location of the offline device determined based on the location information of the third-party device itself can be used as the second location data of the offline device. Finally, the offline device can use the first key to encrypt the second location data to obtain the second encrypted location data, and then send a host-seeking broadcast using the second Bluetooth physical layer, which includes the second encrypted location data. The master device within the Bluetooth transmission distance corresponding to the second Bluetooth physical layer receives the host-seeking broadcast, and uses the first key to decrypt the second encrypted location data to obtain the second location data of the offline device.
[0076] It can be understood that the first location data and the second location data can both be used to indicate the location of the offline device.
[0077] It can be understood that the offline device can be a smart watch 10, etc., the main device can be a mobile phone 20 or a tablet computer 40, etc., and at least one of the three-party devices can be a mobile phone 301, a mobile phone 302, a mobile phone 303, etc. In addition, the public key and the private key are keys for encryption and decryption respectively generated when the main device and the offline device are paired by Bluetooth.
[0078] It can be understood that the specific process of the offline device processing multiple location information to obtain the second location data representing the location of the offline device may include: after the offline device obtains the location information of at least one third-party device, for example, the location information of mobile phone 301 is obtained as its longitude and latitude coordinates (m1, n1), the location information of mobile phone 302 is obtained as its longitude and latitude coordinates (m2, n2), and the location information of mobile phone 303 is obtained as its longitude and latitude coordinates (m3, n3), then (m1, n1), (m2, n2), and (m3, n3) can be processed by a weighted algorithm to obtain the longitude and latitude coordinates (m4, n4), and the longitude and latitude coordinates (m4, n4) can be used as the first location data, and the first location data is also the location of the smart watch 10.
[0079] It can be understood that the location information may include latitude and longitude coordinates, positioning accuracy and other parameters used to represent the location, which are not limited here.
[0080] It can be understood that in the embodiment of the present application, using a weighted algorithm to process the location information of at least one three-party device to obtain the location of the offline device is only an exemplary description. In other implementations, the location of the offline device can also be determined based on other methods, which are not limited here.
[0081] It can be understood that the first area in the embodiment of the present application is an area within the Bluetooth transmission distance corresponding to the first Bluetooth physical layer, and the second area is an area within the Bluetooth transmission distance corresponding to the second Bluetooth physical layer.
[0082] Figure 3 According to an embodiment of the present application, a schematic diagram of an interaction process of a positioning method is shown. It can be understood that Figure 3 In the interaction diagram shown, an offline device (such as a smart watch 10) can obtain its own location information. The specific process includes:
[0083] S301: The offline device detects that the Bluetooth connection with the main device is disconnected.
[0084] In some embodiments, if the distance between the offline device and the main device is greater than or equal to a certain distance threshold, the offline device may detect that the Bluetooth connection with the main device is disconnected.
[0085] S302: The offline device obtains first location data.
[0086] In some embodiments, the offline device may obtain its own first location data based on GPS, UWB technology, etc.
[0087] S303: The offline device sends a first host-seeking broadcast via the second Bluetooth physical layer.
[0088] In some embodiments, the offline device may send the first home search broadcast via a data transmission rate corresponding to the second Bluetooth physical layer.
[0089] It can be understood that before sending the first master-seeking broadcast, the offline device encrypts the first encrypted data to obtain first encrypted location data, and then sends the first encrypted data to the master device within the transmission distance corresponding to the second Bluetooth physical layer through the first master-seeking broadcast.
[0090] It can be understood that the Bluetooth transmission rate corresponding to the second Bluetooth physical layer can be 125 kbps or 500 kbps, which is not limited here.
[0091] S304: The master device receives the first master search broadcast.
[0092] In some embodiments, a master device within a transmission distance corresponding to the second Bluetooth physical layer can receive a first master search broadcast sent by an offline device at a data transmission rate corresponding to the second Bluetooth physical layer.
[0093] S303: The master device obtains and displays the first location data of the smart watch 10 through the first master search broadcast.
[0094] In some embodiments, after receiving the first master-seeking broadcast sent by the offline device, the master device can obtain the first encrypted location data of the offline device through the first master-seeking broadcast, and obtain the first location data of the offline device after decryption. In this way, the master device can display the location of the offline device on a map based on the first location data of the offline device to intuitively show the location of the offline device to the user.
[0095] Based on the above method, if the distance between the main device and the offline device is greater than the maximum transmission distance corresponding to the first Bluetooth physical layer, the main device can still obtain the location information of the offline device, so that the user can find the offline device based on the location information of the offline device obtained by the main device.
[0096] Figure 4 According to an embodiment of the present application, a schematic diagram of an interaction process of another positioning method is shown. It can be understood that Figure 4 In the interaction diagram shown, the offline device (such as smart watch 10) does not support obtaining its own location information through GPS or the like. The specific process includes:
[0097] S401: The offline device detects that the Bluetooth connection with the main device is disconnected.
[0098] In some embodiments, if the distance between the offline device and the main device is greater than or equal to a certain distance threshold, the offline device may detect that the Bluetooth connection with the main device is disconnected.
[0099] S402: The offline device sends a location assistance request broadcast via the first Bluetooth physical layer.
[0100] It is understandable that an offline device does not support obtaining its own location information through GPS or the like.
[0101] In some embodiments, the offline device may send a location assistance request broadcast via a data transmission rate of the first Bluetooth physical layer.
[0102] It can be understood that the Bluetooth transmission rate corresponding to the first Bluetooth physical layer can be 1 Mbps or 2 Mbps, which is not limited here.
[0103] S403: At least one third-party device receives the location assistance request broadcast.
[0104] In some embodiments, at least one third-party device within the transmission distance corresponding to the first Bluetooth physical layer can receive a location assistance request broadcast sent by the offline device at a data transmission rate corresponding to the second Bluetooth physical layer.
[0105] It can be understood that after at least one third-party device receives the location assistance request broadcast, it can immediately obtain the location information of at least one third-party device through positioning and encrypt it to obtain the encrypted location information of at least one third-party device, or at least one third-party device can obtain the location information of the offline device based on its location information and encrypt it to obtain the encrypted location information of the offline device, which is not limited here.
[0106] S404: At least one third-party device sends a broadcast including location information via the first Bluetooth physical layer.
[0107] In some embodiments, at least one third-party device may send a broadcast including encrypted location information via a data transmission rate corresponding to the first Bluetooth physical layer.
[0108] It can be understood that the encrypted location information can be encrypted location information of at least one third-party device, or it can be encrypted location information of an offline device obtained by encrypting the location information of the device based on the location information of at least one third-party device and the signal strength of the location assistance request broadcast received by the offline device. This is not limited here.
[0109] S405: The offline device receives the broadcast including the encrypted location information.
[0110] In some embodiments, an offline device within a transmission distance corresponding to the first Bluetooth physical layer may receive a broadcast including encrypted location information sent by at least one third-party device through the first Bluetooth physical layer.
[0111] It is understood that the offline device can obtain the location information of at least one third-party device or the location information of the offline device by decrypting the encrypted location information through the key. If the offline device obtains the location information of at least one third-party device, the second location data representing the location information of the offline device can be obtained by processing the location information of at least one third-party device. If the offline device obtains the location information of the offline device, the location information of the offline device can be directly used as the second location data of the offline device.
[0112] In addition, the second location data representing the offline device is encrypted to obtain second encrypted location data.
[0113] S406: The offline device sends a second host-seeking broadcast via a second Bluetooth physical layer.
[0114] In some embodiments, the offline device may send the second home search broadcast via a data transmission rate corresponding to the second Bluetooth physical layer.
[0115] It can be understood that the offline device includes the second encrypted location data indicating the location of the offline device in the second home search broadcast.
[0116] S407: The master device receives the second master search broadcast.
[0117] In some embodiments, a master device within a transmission distance corresponding to the second Bluetooth physical layer can receive a second master-seeking broadcast sent by an offline device at a data transmission rate corresponding to the second Bluetooth physical layer.
[0118] S408: The master device obtains and displays the second location data of the offline device through the second master-seeking broadcast.
[0119] In some embodiments, after receiving the second master-seeking broadcast sent by the offline device, the master device can obtain the second encrypted location data of the offline device through the second master-seeking broadcast, and obtain the second location data of the offline device after decryption. In this way, the master device can display the location of the offline device on a map based on the second location data of the offline device to intuitively show the location of the offline device to the user.
[0120] Figure 5 According to an embodiment of the present application, a schematic diagram of a specific interaction process of a positioning method is shown. It can be understood that Figure 5 is corresponding to Figure 3 Specific interaction diagram of the interaction diagram shown.
[0121] For ease of understanding, Figure 5 In the interaction diagram, a smart watch 10 (supporting GPS) is used as an offline device, a mobile phone 20 is used as a master device, and at least one mobile phone 30 is used as a third-party device. In other implementations, the offline device, the master device, and the third-party device may also be other types of electronic devices, which are not limited here.
[0122] S501: The smart watch 10 and the mobile phone 20 are connected via Bluetooth pairing.
[0123] It can be understood that the smart watch 10 and the mobile phone 20 are devices of the same user account, wherein the mobile phone 20 is the user's main device.
[0124] In some embodiments, Figure 6 A to 6D are schematic diagrams of interfaces for Bluetooth pairing between a smartwatch 10 and a mobile phone 20. Figure 6 As shown in A, in the main interface 601 of the mobile phone 20, by clicking the application icon 6011 of the sports health application, the following is displayed: Figure 6 In the interface 602 shown in B, in the interface 602 of the sports health application, click the control 6021 that prompts to add a device, and then the following is displayed: Figure 6 C, the interface 603 shows the smart watch 10 scanned by the mobile phone 20, and the operation control 6031 that prompts to establish a connection can be clicked to display the following Figure 6Interface 604 shown in D shows that the mobile phone 20 and the smart watch 10 have been successfully paired. Based on the above, the smart watch 10 and the mobile phone 20 are successfully connected through Bluetooth pairing.
[0125] It is understandable that the above Figure 6 A to Figure 6 The pairing process shown in D is only an exemplary description. In other embodiments, the smart watch 10 and the mobile phone 20 can also achieve Bluetooth pairing based on other methods. For example, the mobile phone 20 scans the pairing QR code displayed on the smart watch 10 to achieve connection between the two, etc., which is not limited here.
[0126] S502: The smart watch 10 generates a first key linkey.
[0127] In some embodiments, when the smart watch 10 and the mobile phone 20 are paired via Bluetooth, the smart watch 10 and the mobile phone 20 will generate a first key linkey. It can be understood that the first key can be used for both encryption and decryption of data.
[0128] It can be understood that in other embodiments, the smart watch 10 can send the first key linkey to the mobile phone 20, which is not limited here.
[0129] S503: The mobile phone 20 generates a first key linkey.
[0130] It is understandable that S503 may be executed before S502, or S502 and S503 may be performed simultaneously, which is not limited here.
[0131] It can be understood that in other embodiments, the mobile phone 20 may not generate the first key linkey, but may receive the first key linkey sent by the smart watch 10, which is not limited here.
[0132] S504: The smart watch 10 and the mobile phone 20 disconnect the Bluetooth connection.
[0133] In some embodiments, when the distance between the smart watch 10 and the mobile phone 20 is far, for example, the distance between the smart watch 10 and the mobile phone 20 is greater than 30m, the above Figure 1 In the scenario diagram shown, the smart watch 10 is located in teaching building A, and the mobile phone 20 is located in teaching building B. The distance between the two is greater than 30m, so the smart watch 10 and the mobile phone 20 disconnect the Bluetooth connection.
[0134] S505: The smart watch 10 obtains first location data.
[0135] In some embodiments, the smart watch 10 can obtain the first position data of the smart watch 10, that is, the position of the smart watch 10, through GPS. For example, the first position data can be the latitude and longitude coordinates (m0, n0) and the positioning accuracy s0 of the smart watch 10.
[0136] S506: The smart watch 10 encrypts the first location data using the first key linkey to obtain first encrypted location data.
[0137] In some implementations, the smart watch 10 may use the first key to encrypt the first location data obtained in S505 to obtain first encrypted location data.
[0138] S507: The smart watch 10 constructs a first owner-seeking broadcast.
[0139] In some embodiments, the smart watch 10 can construct a first owner-seeking broadcast. It can be understood that a universally unique identifier (UUID), referred to as the first UUID, can be added to the first owner-seeking broadcast. The first UUID can be used to identify the identity of the smart watch 10, so that the first owner-seeking broadcast can only be recognized and received by a device that also includes the first UUID.
[0140] In addition, the first owner-seeking broadcast includes the first encrypted location data and the encrypted public address of the smart watch 10 .
[0141] It is understandable that in other embodiments, the first owner-seeking broadcast may also carry the battery information of the smart watch 10, which is not limited here.
[0142] S508: The smart watch 10 sends a first owner-seeking broadcast via the second Bluetooth physical layer, which lasts for a first preset time period.
[0143] In some embodiments, after constructing the first owner-seeking broadcast, the smart watch 10 can send the first owner-seeking broadcast through the second Bluetooth physical layer for a first preset duration. It can be understood that the data transmission rate corresponding to the second Bluetooth physical layer can be 125kbps or 500kbps, etc., the first preset duration can be 60s, etc., and the smart watch 10 can send the first owner-seeking broadcast every 30ms, which is not limited here.
[0144] S509: The mobile phone 20 opens a search application, constructs a filter based on the first UUID, and initiates a scan in the second area.
[0145] In some embodiments, when the mobile phone 20 needs to obtain the location of the smart watch 10, it can open the search application to query the location of the smart watch 10. The search application can construct a filter based on the first UUID so that the mobile phone 20 can identify and receive the broadcast including the first UUID, such as the first home search broadcast in S306. Then, the mobile phone 20 can initiate a scan in the second area, which refers to the area within the Bluetooth transmission distance corresponding to the second Bluetooth physical layer.
[0146] S510: The mobile phone 20 receives the first owner-seeking broadcast, obtains the first encrypted location data, and decrypts it with the first key linkey to obtain the first location data.
[0147] In some embodiments, the mobile phone 20 can determine to receive the first owner-seeking broadcast sent by the smart watch 10 based on the identification of the first UUID, obtain the first encrypted location data, and then decrypt it using the first key to obtain the first location data, that is, the location of the smart watch 10. It can be understood that the mobile phone 20 can decrypt the encrypted public address of the smart watch 10 included in the first owner-seeking broadcast to obtain the public address of the smart watch 10, and compare the public address of the smart watch 10 with the address corresponding to the first key linkey. If the two are the same, it is determined that the smart watch 10 and the mobile phone 20 are the same user device.
[0148] S511: The mobile phone 20 calls back the first location data to the search application.
[0149] In some embodiments, the mobile phone 20 can call back the obtained first location data representing the location of the smart watch 10 to the search application, so that the search application can determine the location of the smart watch 10 based on the first location data.
[0150] It is understood that the mobile phone 20 can notify the search application to update and display the location of the smart watch 10 based on receiving the first home search broadcast. In other embodiments, the mobile phone 20 can notify the search application to update and display the location of the smart watch 10 based on the interface callback, which is not limited here.
[0151] S512: The search application of the mobile phone 20 displays the first location data on a map of the application interface.
[0152] In some embodiments, after the search application of the mobile phone 20 obtains the first location data of the smart watch 10, the first location data may include the latitude and longitude coordinates (m0, n0) and the positioning accuracy s0 of the smart watch 10. The search application can then display the location corresponding to the longitude and latitude coordinates on a map in the interface of the search application to provide an intuitive display to the user.
[0153] Based on the above solution, offline devices with positioning functions can directly send their own locations to the main device in the form of directional broadcast, so that the main device can obtain the location of the offline device in time. In addition, this solution does not require uploading the relevant data of the third-party devices to the cloud server to obtain the location of the offline device, protecting the data privacy and information security of the third-party devices.
[0154] Figure 7 According to an embodiment of the present application, an interactive schematic diagram of a positioning method is shown. It can be understood that Figure 7 is corresponding to Figure 4 Specific interaction diagram of the interaction diagram shown.
[0155] For ease of understanding, Figure 7 In the interaction diagram, a smart watch 10 (not supporting GPS) is used as an offline device, a mobile phone 20 is used as a main device, and at least one mobile phone 30 is used as a third-party device. In other implementations, the offline device, the main device, and the third-party device may also be other types of electronic devices, which are not limited here.
[0156] S701: The smart watch 10 and the mobile phone 20 are connected via Bluetooth pairing.
[0157] S702: The smart watch 10 generates a first key linkey.
[0158] S703: The mobile phone 20 generates a first key linkey.
[0159] S704: The smart watch 10 and the mobile phone 20 disconnect the Bluetooth connection.
[0160] It can be understood that S701 to S704 can refer to the above S501 to S504 and will not be repeated here.
[0161] S705: The smart watch 10 obtains the public key and the private key through an algorithm.
[0162] In some embodiments, based on the disconnection of the Bluetooth connection between the smart watch 10 and the mobile phone 20 in S704, the smart watch 10 can generate a public key and a private key through an algorithm, and use the public key to construct the location assistance request broadcast below, and use the private key to decrypt the response encrypted data, which will be explained below and will not be repeated here.
[0163] It can be understood that the smart watch 10 can obtain the public key and the private key through an asymmetric encryption algorithm, wherein the asymmetric encryption algorithm may include the Rivest-Shamir-Adleman (RSA) algorithm, referred to as the RSA algorithm, an elliptic curve cryptography (ECC), such as the SM2 elliptic curve public key cryptography algorithm, and the DH (DHie-Hellman) key agreement algorithm, the Kalman filtering method, etc., which are not limited here.
[0164] S706: The smart watch 10 constructs a location assistance request broadcast.
[0165] In some embodiments, based on the disconnection of the Bluetooth connection between the smart watch 10 and the mobile phone 20 in S704, since the mobile phone 20 is the master device, the smart watch 10 is in an offline state relative to the mobile phone 20. In order to enable the mobile phone 20 to obtain its own location, the smart watch 10 can construct a location assistance request broadcast. It can be understood that the location assistance request broadcast refers to the smart watch 10 obtaining the location of the nearby third-party devices (such as Figure 1 The location information of mobile phones 301 to 303, etc. shown in FIG.
[0166] It can be understood that the location assistance request broadcast can be a Bluetooth extended broadcast, referred to as BLE (Bluetooth) extended broadcast. It can be understood that the maximum length of data that can be transmitted by the BLE extended broadcast can be 251 bytes.
[0167] In addition, the smart watch 10 can construct a location assistance broadcast based on a universally unique identifier (UUID) and a public key. Specifically, when constructing a location assistance broadcast, the smart watch 10 adds a second UUID to the broadcast, wherein the second UUID is in the form of a string, which is used to indicate that the broadcast is a BLE extended broadcast requesting location information. For example, the second UUID is "0xfcf9", indicating that the broadcast is a BLE extended broadcast requesting location information. Further, the public key obtained in S505 is filled into the location assistance request broadcast. In this way, the smart watch 10 completes the construction of the location assistance request broadcast.
[0168] S707: The smart watch 10 sends a location assistance request broadcast via the first Bluetooth physical layer.
[0169] In some embodiments, the smart watch 10 can send a location assistance request broadcast at a data transmission rate corresponding to the first Bluetooth physical layer for a second preset duration. For example, the data transmission rate corresponding to the first Bluetooth physical layer can be 1Mbps or 2Mbps, the second preset duration can be 60s, and the smart watch 10 can send a location assistance request broadcast every 30ms, which is not limited here. Among them, at least one third-party device can be included within the Bluetooth transmission distance corresponding to the first Bluetooth physical layer.
[0170] For example, Figure 8 A schematic diagram of Bluetooth transmission distance is shown, wherein the first searchable area refers to the area within the Bluetooth transmission distance corresponding to the smart watch 10 through the first Bluetooth physical layer, for example, the data transmission rate corresponding to the first Bluetooth physical layer is 1Mbps or 2Mbps. The location assistance request broadcast sent by the smart watch 10 through the first Bluetooth physical layer can be received by multiple third-party devices in the first searchable area.
[0171] It is understandable that Figure 8 As shown in , the first searchable area includes mobile phones 301, 302, etc. Mobile phones 301, 302, etc. in the first searchable area can all receive the location assistance request broadcast sent by the smart watch 10.
[0172] S708: The smart watch 10 initiates scanning in the first area.
[0173] In some embodiments, after the smart watch 10 sends a location assistance request broadcast through the first Bluetooth physical layer in S707, in order to receive the location information returned by the third-party device after receiving the location assistance request broadcast, the smart watch 10 can initiate a scan in the first area and continue for a third preset time. The first area refers to the area within the Bluetooth transmission range corresponding to the above-mentioned first Bluetooth physical layer. The scan initiated in the first area may include a third UUID. For example, the third UUID is "0xfcf7", indicating that the scan is used to receive a broadcast including location information. In addition, the third preset time can be 6s, 60s, etc., and the scan can be set to be once every 30ms, which is not limited here.
[0174] S709: At least one mobile phone 30 constructs a location assistance filter and scans location assistance request broadcasts with low power consumption.
[0175] It can be understood that the distance between at least one mobile phone 30 and the smart watch 10 is less than or equal to the Bluetooth transmission distance corresponding to the first Bluetooth physical layer.
[0176] In some embodiments, if there is more than one third-party device whose distance from the smart watch 10 is less than or equal to the Bluetooth transmission distance corresponding to the first Bluetooth physical layer, such as Figure 1At least one mobile phone 30 (mobile phone 301, mobile phone 302, mobile phone 303) shown in the figure, each of the three devices can construct a location assistance filter respectively.
[0177] S710: At least one mobile phone 30 receives the location assistance request broadcast and obtains a public key.
[0178] In some embodiments, at least one mobile phone 30 uses a location assistance filter to scan the location assistance request broadcast with low power consumption. After identifying the location assistance request broadcast sent by the smart watch 10, it can receive the location assistance request broadcast sent by the smart watch 10 and obtain the public key carried in the location assistance request broadcast.
[0179] S711: At least one mobile phone 30 initiates positioning to obtain location information.
[0180] In some embodiments, after receiving the location assistance request broadcast sent by the smart watch 10, at least one mobile phone 30 can initiate location-based services (LBS) positioning to obtain the location information of at least one mobile phone 30. For example, the location information of mobile phone 301 is: longitude and latitude coordinates (m1, n1), and the location accuracy is s1; the location information of mobile phone 302 is: longitude and latitude coordinates (m2, n2), and the location accuracy is s2; the location information of mobile phone 303 is: longitude and latitude coordinates (m3, n3), and the location accuracy is s3.
[0181] In other embodiments, at least one mobile phone 30 may also determine the location of the smart watch 10 based on the location information of at least one mobile phone 30, which is not limited here.
[0182] It can be understood that, in the case where at least one mobile phone 30 includes functional modules such as a global positioning system (GPS) and UWB, at least one mobile phone 30 can also obtain location information of at least one mobile phone 30 based on technologies such as GPS and UWB.
[0183] It can be understood that at least one third-party device whose distance from the smart watch 10 is less than or equal to the Bluetooth transmission distance corresponding to the first Bluetooth physical layer can be located at different positions of the smart watch 10.
[0184] It can be understood that positional accuracy refers to the degree of closeness between the location information of a spatial entity (usually longitude and latitude coordinates) and its actual location.
[0185] In other implementations, if the third-party device whose distance from the smart watch 10 is less than or equal to the Bluetooth transmission distance corresponding to the first Bluetooth physical layer may include only one mobile phone 30, then only the location information of one mobile phone 30 can be obtained or the location of the smart watch 10 can be determined based on the location information of the mobile phone 30, which is not limited here.
[0186] S712: At least one mobile phone 30 encrypts the location information using the public key to obtain encrypted location information.
[0187] In some embodiments, mobile phone 301, mobile phone 302, and mobile phone 303 may respectively encrypt their respective location information using the public key obtained from the location assistance request broadcast. The location information may include their respective latitude and longitude coordinates and positioning accuracy.
[0188] It can be understood that the encrypted location information can be encrypted location information of at least one mobile phone 30, or it can be encrypted location information of the smart watch 10 obtained by encrypting the location information of at least one mobile phone 30 and the signal strength of the location assistance request broadcast received by the smart watch 10, and there is no limitation here.
[0189] In some other implementations, the location information may also include other location information besides the latitude and longitude coordinates and positioning accuracy, which is not limited here.
[0190] In other embodiments, the location information may be the location of the smart watch 10 determined by at least one mobile phone 30 that is close to the smart watch 10 based on its location information, which is not limited here.
[0191] S713: At least one mobile phone 30 sends a broadcast including encrypted location information in the first area.
[0192] In some embodiments, after acquiring the encrypted location information, at least one mobile phone 30 may send a broadcast including the encrypted location information in a first area. The first area refers to an area within a Bluetooth transmission range corresponding to the first Bluetooth physical layer.
[0193] S714: The smart watch 10 receives the broadcast including the encrypted location information, and decrypts it using the private key to obtain at least one location information.
[0194] In some embodiments, based on the second scan initiated by the smart watch 10 in the first area in S508, the smart watch 10 can receive a broadcast including location information sent by at least one mobile phone 30, and obtain at least one encrypted location information. It can be understood that the third-party devices in the first area can also include multiple third-party devices of different types other than mobile phone 301, mobile phone 302, and mobile phone 303, which are not limited here.
[0195] In addition, the smart watch 10 can use a private key to decrypt at least one encrypted location information to obtain at least one location information. The at least one location information can be the location information of at least one mobile phone 30, or the location information of the smart watch 10 determined by at least one mobile phone 30, which is not limited here.
[0196] S715: The smart watch 10 processes at least one piece of location information using a weighted algorithm to obtain second location data.
[0197] In some embodiments, the smart watch 10 may process the at least one location information acquired in S714 using a weighted algorithm to obtain second location data as the location data of the smart watch 10 .
[0198] Exemplarily, it is assumed that at least one location information includes the location information of the mobile phone 301: longitude and latitude coordinates (m1, n1) and positioning accuracy s1, the location information of the mobile phone 302 is its longitude and latitude coordinates (m2, n2) and positioning accuracy s2, and the location information of the mobile phone 303 is its longitude and latitude coordinates (m3, n3) and positioning accuracy s3. Then, the longitude and latitude coordinates (m4, n4) can be processed by a weighted algorithm to obtain the longitude and latitude coordinates (m4, n4), and the positioning accuracy s4 can be processed by a weighted algorithm to obtain s1, s2, and s3, then the longitude and latitude coordinates (m4, n4) and the positioning accuracy s4 can be used as the second location data, and the second location data can be used to indicate the location of the smart watch 10.
[0199] In other embodiments, the smart watch 10 may also select part of the location information in at least one location information for processing to obtain second location data as the location data of the smart watch 10 .
[0200] It can be understood that in the embodiments of the present application, the at least one location information as the location information of at least one third-party device is only an exemplary description. In other embodiments, the at least one location information can also be the location of the offline device determined by the third-party device based on its location information and used as the location data of the offline device, which is not limited here.
[0201] It can be understood that in the embodiment of the present application, using a weighted algorithm to process at least one position information to obtain the second position data of the smart watch 10 is only an exemplary description. In other embodiments, other methods can also be used to process at least one position information to obtain the second position data, which is not limited here.
[0202] S716: The smart watch 10 encrypts the second location data using the first key linkey to obtain second encrypted location data.
[0203] In some embodiments, the smart watch 10 may use the first key to encrypt the second location data obtained in S715 to obtain second encrypted location data.
[0204] S717: The smart watch 10 constructs a second owner-seeking broadcast.
[0205] In some embodiments, the smart watch 10 can construct a second owner-seeking broadcast. It can be understood that a universally unique identifier (UUID), referred to as the first UUID, can be added to the second owner-seeking broadcast. The first UUID can be an identification code used by different devices of the same user to identify each other as devices of the same user, and the smart watch 10 and the mobile phone 20 of the same user can identify the second owner-seeking broadcast based on the first UUID and receive the second owner-seeking broadcast.
[0206] It can be understood that the first UUID may be an identification code that may be generated and stored separately during initial pairing with the user device.
[0207] In addition, the second owner-seeking broadcast includes the second encrypted location data and the encrypted public address of the smart watch 10 .
[0208] It is understandable that in other embodiments, the second owner-seeking broadcast may also carry the battery information of the smart watch 10, which is not limited here.
[0209] S718: The smart watch 10 sends a second owner-seeking broadcast via the second Bluetooth physical layer, which lasts for a first preset duration.
[0210] In some embodiments, after constructing the second owner-seeking broadcast, the smart watch 10 may send the second owner-seeking broadcast using the second Bluetooth physical layer for a first preset duration. It is understood that the data transmission rate corresponding to the second Bluetooth physical layer may be 125 kbps or 500 kbps, etc., the first preset duration may be 60 seconds, etc., and the smart watch 10 may send the second owner-seeking broadcast every 30 ms, which is not limited here.
[0211] S719: The mobile phone 20 opens a search application, constructs a filter based on the first UUID, and initiates a scan in the second area.
[0212] In some implementations, when the mobile phone 20 needs to obtain the location of the smart watch 10, it can open the search application to query the location of the smart watch 10. The search application can construct a filter based on the first UUID so that the mobile phone 20 can identify and receive the broadcast including the first UUID, such as the second home search broadcast in S718. Then, the mobile phone 20 can initiate a scan in the second area, which refers to the area within the Bluetooth transmission distance corresponding to the second Bluetooth physical layer.
[0213] S720: The mobile phone 20 receives the second owner-seeking broadcast, obtains the second encrypted location data, and decrypts it with the first key linkey to obtain the second location data.
[0214] In some embodiments, the mobile phone 20 can determine to receive the second owner-seeking broadcast sent by the smart watch 10 based on the identification of the first UUID, obtain the second encrypted location data, and then decrypt the second location data using the first key, that is, the location of the smart watch 10. It can be understood that the mobile phone 20 can decrypt the encrypted public address of the smart watch 10 included in the second owner-seeking broadcast to obtain the public address of the smart watch 10, and compare the public address of the smart watch 10 with the address corresponding to the first key linkey. If the two are the same, it is determined that the smart watch 10 and the mobile phone 20 are the same user device.
[0215] S721: The mobile phone 20 calls back the second location data to the search application.
[0216] In some embodiments, the mobile phone 20 can call back the obtained second location data representing the location of the smart watch 10 to the search application, so that the search application can determine the location of the smart watch 10 based on the second location data.
[0217] It is understood that the mobile phone 20 can notify the search application to update and display the location of the smart watch 10 based on receiving the second home search broadcast. In other embodiments, the mobile phone 20 can notify the search application to update and display the location of the smart watch 10 based on the interface callback, which is not limited here.
[0218] S722: The search application of the mobile phone 20 displays the second location data on a map of the application interface.
[0219] In some embodiments, after the search application of the mobile phone 20 obtains the second location data of the smart watch 10, the second location data may include the latitude and longitude coordinates (m4, n4) and the positioning accuracy s4 of the smart watch 10. The search application can then display the location corresponding to the longitude and latitude coordinates on a map in the interface of the search application to provide an intuitive display to the user.
[0220] Based on the above solution, for offline devices that do not have positioning functions, the offline device can obtain the location information of at least one nearby third-party device by sending a location assistance request broadcast, and determine the location of the offline device based on the location information of multiple third-party devices. In addition, the offline device can send its own location to the main device in the form of a directional broadcast, so that the main device can obtain the location of the offline device in a timely manner. In addition, this solution does not require uploading the relevant data of the third-party device to the cloud server to obtain the location of the offline device, which protects the data privacy and information security of the third-party devices.
[0221] For example, Fig. 9 It shows a Figure 7 Schematic diagram of the scene positioning method in , Fig. 9 In the embodiment, the offline device (smart watch 10) can send a BLE broadcast (location assistance request broadcast) to at least one third-party device (mobile phone 301, mobile phone 302, mobile phone 303), and at least one third-party device can also send a BLE directional broadcast (including a broadcast of encrypted location information) to the offline device. After the offline device determines its own location data through the location information of multiple third-party devices, it can send a directional broadcast to the main device (mobile phone 20, tablet computer 40) and carry the encrypted location data of the offline device. Finally, the main device can obtain the location of the offline device. Among them, the distance between the offline device and the multiple third-party devices is less than or equal to the Bluetooth transmission distance corresponding to the first Bluetooth physical layer, and the distance between the offline device and the main device is less than or equal to the Bluetooth transmission distance corresponding to the second Bluetooth physical layer, and is greater than the Bluetooth transmission distance corresponding to the first Bluetooth physical layer.
[0222] In some embodiments, the third-party devices may include third-party devices that support a sensor hub and third-party devices that do not support this function.
[0223] It can be understood that third-party devices that do not support sensorhub can realize the reception and transmission of broadcasts between third-party devices and offline devices based on the application processor. Third-party devices that support sensorhub can realize the reception and transmission of broadcasts between third-party devices and offline devices through sensorhub. In addition, the power consumption caused by sending and receiving Bluetooth broadcasts using sensorhub is lower than the power consumption caused by sending and receiving Bluetooth broadcasts using the application processor.
[0224] The following are based on Fig. 10A and Fig. 10B The process of mutual broadcasting between two types of third-party devices and offline devices is described.
[0225] Fig. 10A According to the embodiment provided by the present application, a system structure diagram is provided for a third-party device that does not support sensorhub to broadcast between an application processor and an offline device.
[0226] exist Fig. 10A In the example, the system of the mobile phone 80 (a third-party device that does not support sensorhub) is composed of the application layer 801, the framework layer 802, the driver layer 803, and the Bluetooth chip 804 from top to bottom. The smart watch 81 (as an offline device) includes a series of services, and the offline device can also be a true wireless headset, etc.
[0227] Continue to see Fig. 10A, specifically in the technical solution provided in the embodiments of the present application:
[0228] The smart watch 81 includes a search service 811, a security service 812, a Bluetooth service 813, and a Bluetooth chip 814. In some embodiments, the smart watch 81 can call the Bluetooth service 813 through the search service 811 to initiate a location assistance request broadcast, and the Bluetooth service 813 can control the Bluetooth chip 814 to initiate a location assistance request broadcast. In some embodiments, the smart watch 81 can decrypt the encrypted location information of the mobile phone 81 through the security service 812 to obtain the location information of the mobile phone 81, and can use the security service 812 to encrypt the location information of the mobile phone 81 again and broadcast it to the main device.
[0229] It can be understood that in other embodiments, the smart watch 81 may also include a positioning service (not shown), which is not limited here.
[0230] The application layer 801 of the mobile phone 80 may include a series of application packages. The application package may include a search application 8011. In some implementations, the search application 8011 may be used to search and obtain the location of an offline device, and display the location of the offline device in the application interface. It is understood that the application package may also include applications such as gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc., which are not limited here.
[0231] The framework layer 802 provides an application programming interface (API) and a programming framework for the application programs of the application layer 801. The application framework layer includes some predefined functions.
[0232] The framework layer 802 may include a search service 8021 (as a middleware responsible for communication between the application layer 801 and the framework layer 802 ), a security service 8011 , a Bluetooth service 8012 , a positioning service 8013 , and the like.
[0233] In some implementations, the search service 8021 can detect that the search application 8011 needs to obtain the location of the offline device, and the search service 8021 can construct a location assistance broadcast and call the Bluetooth service 8012 to scan and receive the location assistance request broadcast initiated by the offline device. It can be understood that the scanning duty cycle can be set to 60ms / 600ms, that is, if the scanning window is 600ms, then a total of 60ms is scanned to reduce scanning power consumption, which is not limited here.
[0234] In some implementations, after the Bluetooth service 8012 obtains the location assistance request broadcast, it can call back to the search service 8021, and then the search service 8021 can call the positioning service 8013 to obtain the location information of the mobile phone 80, and then call the security service 8011 to encrypt the location information of the mobile phone 80 to obtain encrypted location information.
[0235] In some implementations, the search service 8021 may call the Bluetooth service 8012 to initiate a broadcast including the encrypted location information of the mobile phone 80 , and the Bluetooth service 8012 controls the Bluetooth chip 804 to send a broadcast including the location information by calling the Bluetooth interface service 8131 of the driver layer 803 .
[0236] The driver layer 803 includes a Bluetooth interface service 8031 . In some embodiments, the Bluetooth chip 804 can receive a location assistance request broadcast sent by the Bluetooth chip 814 , and call back to the Bluetooth service 8012 and the search service 802 through the Bluetooth interface service 8031 for processing.
[0237] It can be understood that the framework layer 802 may also include a display engine service, a surface flinger, a graphics system, etc., which are not limited here.
[0238] Fig. 10B According to the embodiment provided by the present application, a system structure diagram is provided in which a third-party device supporting sensorhub broadcasts between the sensorhub and an offline device.
[0239] exist Fig. 10B In the present invention, the mobile phone 83 (a third-party device supporting sensorhub) can broadcast to and from the smart watch 81 only by using the sensor control center 834, i.e., sensorhub 834.
[0240] Continue to see Fig. 10B , specifically in the technical solution provided in the embodiments of the present application:
[0241] The smart watch 81 (offline device) includes a search service 811, a security service 812, a Bluetooth service 813, and a Bluetooth chip 814. In some embodiments, the smart watch 81 can call the Bluetooth service 813 through the search service 811 to initiate a location assistance request broadcast, and the Bluetooth service 813 can control the Bluetooth chip 814 to initiate a location assistance request broadcast. In some embodiments, the smart watch 81 can decrypt the encrypted location information of the mobile phone 83 through the security service 812 to obtain the location information of the mobile phone 83, and can use the security service 812 to encrypt the encrypted location information of the mobile phone 83 again and broadcast it to the main device.
[0242] It can be understood that in other embodiments, the smart watch 81 may also include a positioning service (not shown), which is not limited here.
[0243] It can be understood that the application processor of the mobile phone 83 (including the application layer 831, the framework layer 832, and the driver layer 833) can refer to the above Fig. 10A The description in will not be repeated here.
[0244] The sensorhub 834 of the mobile phone 83 may include a search service 8341, a positioning service 8342, and a Bluetooth service 8343. Among them, the search service 8341 may construct a location assistance broadcast, and call the Bluetooth service 8343 to scan and receive the location assistance request broadcast sent by the smart watch 81.
[0245] In some implementations, after the Bluetooth service 8343 obtains the location assistance request broadcast sent by the smart watch 81, it can call back to the search service 8341, and then the search service 8341 can call the positioning service 8342 to obtain the location information of the mobile phone 83, and then call the security service to encrypt the location information of the mobile phone 83 to obtain the encrypted location information of the mobile phone 83.
[0246] In some implementations, the search service 8341 may call the Bluetooth service 8343 to initiate a broadcast including the encrypted location information of the mobile phone 83 , and the Bluetooth service 8343 sends a broadcast including the encrypted location information of the mobile phone 83 by calling and controlling the Bluetooth chip 835 .
[0247] further, Fig.11 According to some embodiments of the present application, a schematic diagram of the structure of a terminal device 100 is shown. Based on the terminal device 100, the positioning method mentioned in the embodiments of the present application can be implemented.
[0248] like Fig.11As shown, the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, a communication device 196, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, a color temperature sensor 180N, etc. Among them:
[0249] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a microcontroller unit (microcontroller unit, MCU), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated into one or more processors. In some embodiments, the application processor (application processor, AP) and the microcontroller unit (microcontroller unit, MCU) can be applied to the smart watch 10 in the embodiment of the present application, and the smart watch 10 can be operated in the smart mode by AP, and the smart watch 10 can be operated in the ultra-long battery life mode based on MCU.
[0250] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0251] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 may store the stored data just used or cyclically used by the processor 110. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0252] In some embodiments, the processor 110 may be used to execute the positioning method provided in various embodiments of the present application.
[0253] The USB interface 130 is an interface that complies with the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0254] The charging management module 140 is used to receive charging input from a charger. While the charging management module 140 is charging the battery 142 , it can also supply power to the terminal device 100 through the power management module 141 .
[0255] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
[0256] The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0257] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals, that is, wireless carrier information.
[0258] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
[0259] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), near field communication (NFC), global navigation satellite system (GNSS), frequency modulation (FM), infrared (IR), ultra wide band (UWB), etc., which are applied to the terminal device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 can receive electromagnetic waves from the antenna 2, and filter, amplify and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The wireless communication module 160 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 2. In some embodiments, the sending and receiving of Bluetooth broadcasts between offline devices, three-party devices, and between offline devices and main devices can be realized based on Bluetooth (BT).
[0260] The terminal device 100 implements the interface display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0261] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini-LED, a micro-LED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the location information of the offline device provided in the embodiments of the present application can be displayed based on the display screen 194.
[0262] The camera 193 is used to capture still images or videos.
[0263] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function.
[0264] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions, such as the aforementioned memory 103. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function, etc. The data storage area may store data created during the use of the terminal device 100, etc., for example, it may be used to store a control identifier of a security control, a screenshot redrawing strategy identifier corresponding to the security control, and a pattern, image, text, etc. corresponding to the screenshot redrawing strategy. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications of the terminal device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor 110.
[0265] The terminal device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor.
[0266] The touch sensor 180K is also called a "touch device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194
[0267] Motor 191 can generate vibration prompts.
[0268] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0269] The SIM card interface 195 is used to connect a SIM card.
[0270] It is understood that the structure of the terminal device 100 shown in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0271] The various embodiments disclosed in the present application may be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application may be implemented as a computer program or program code executed on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.
[0272] Program code can be applied to input instructions to perform each function described in the present application and generate output information. Output information can be applied to one or more output devices in a known manner. For the purpose of the present application, the processing system includes any system with a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC) or a microprocessor. The program code can be implemented with a high-level programming language or an object-oriented programming language to communicate with the processing system.
[0273] When necessary, program code can also be implemented in assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0274] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.
[0275] In the accompanying drawings, some structural or method features are shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0276] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.
[0277] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one" do not exclude the existence of other identical elements in the process, method, article or device including the elements. Although the present application has been illustrated and described with reference to certain preferred embodiments of the present application, it should be understood by those skilled in the art that various changes can be made to it in form and detail without departing from the scope of the present application.
Claims
1. A positioning method, characterized in that: Applied to a first electronic device, the method includes: Establishing a Bluetooth connection with a second electronic device based on the first Bluetooth physical layer; Detecting that the Bluetooth connection with the second electronic device is disconnected, and acquiring first location data of the first electronic device; A first Bluetooth broadcast is sent through a second Bluetooth physical layer, wherein the first Bluetooth broadcast includes the first location data, and a transmission distance of the second Bluetooth physical layer is greater than a transmission distance of the first Bluetooth physical layer.
2. The method according to claim 1, characterized in that The acquiring the first position data of the first electronic device includes: Sending a second Bluetooth broadcast through the first Bluetooth physical layer, where the second Bluetooth broadcast is used to request at least one third electronic device to send second location data of the first electronic device; The first position data is determined based on at least one second position data sent by the at least one third electronic device.
3. The method according to claim 2, characterized in that The second location data is location data of a corresponding third electronic device, or location data of the first electronic device determined by a corresponding third electronic device.
4. The method according to claim 2, characterized in that: The determining the first position data based on at least one second position data sent by the at least one third electronic device comprises: Perform algorithmic processing on the at least one second position data to obtain the first position data, wherein the algorithmic processing includes at least one of the following algorithmic processing: a weighted algorithm and a Kalman filter fusion algorithm.
5. The method according to claim 4, characterized in that The second Bluetooth broadcast includes a public key, and the public key is used to encrypt the at least one second location data.
6. The method according to claim 5, characterized in that The determining the first position data based on at least one second position data sent by the at least one third electronic device further includes: The content of the second Bluetooth broadcast is decrypted based on the private key corresponding to the public key to obtain the second location data.
7. The method according to claim 1, characterized in that The first Bluetooth broadcast also includes a first identifier, and the first identifier is used to indicate an electronic device that receives the first Bluetooth broadcast.
8. The method according to claim 1, characterized in that The first location data is data obtained by encrypting the location of the first electronic device based on a first key, wherein the first key is a key for encryption and decryption generated when the first electronic device and the second electronic device are paired via Bluetooth.
9. The method according to claim 1, characterized in that: The data transmission rate corresponding to the first Bluetooth physical layer is 1 Mbps or 2 Mbps, and the data transmission rate corresponding to the second Bluetooth physical layer is 125 kbps or 500 kbps.
10. A positioning method, characterized in that: Applied to a third electronic device, the method includes: Receiving a second Bluetooth broadcast sent by the first electronic device based on the first Bluetooth physical layer; In response to the second Bluetooth broadcast, acquiring second location data of the first electronic device; Send a third Bluetooth broadcast, where the third Bluetooth broadcast includes the second location data.
11. The method according to claim 10, characterized in that The acquiring the second position data of the first electronic device includes: Using the location data of the third electronic device as the second location data; or The second location data is determined based on the location data of the third electronic device and the signal strength of the Bluetooth signal sent by the first electronic device and received by the third electronic device.
12. The method according to claim 10, characterized in that The second Bluetooth broadcast includes a public key, and the second location data in the third Bluetooth broadcast is encrypted location data encrypted based on the public key.
13. An electronic device, characterized in that: include: A memory for storing instructions; A processor, configured to execute the instructions to implement the positioning method described in any one of claims 1 to 9, or the positioning method described in one of claims 10 to 12.
14. A readable storage medium, characterized in that: The readable storage medium stores instructions, which, when executed on an electronic device, enable the electronic device to implement the positioning method described in any one of claims 1 to 9, or the positioning method described in one of claims 10 to 12.
15. A computer program product, characterized in that The invention comprises a computer program / instruction. When the computer program product is run on an electronic device, the electronic device implements the positioning method described in any one of claims 1 to 9, or the positioning method described in one of claims 10 to 12.
Citation Information
Patent Citations
Bluetooth technology-based mobile node positioning method
CN105992156A
Smart watch positioning method and system
CN111586588A
Data frame transmission method and device, chip, storage medium and Bluetooth equipment
CN115426688A
Method and system for data transmission, chip, electronic device, and computer readable storage medium
EP4117323A1
Position determination using bluetooth devices
WO2001058098A2