Positioning method, device and system and storage medium
By obtaining the position status information of the third device, the position of the multi-component product is indirectly determined, solving the problem of positioning difficulties caused by low equipment power or exceeding the detection range, and improving the positioning success rate and efficiency.
Patent Information
- Application Number
- CN202311171137.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-11
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-09-11
AI Technical Summary
In the interaction scenario between devices, multi-component products (such as headphones and headphone boxes) cannot establish communication connections when the device power is low or exceeds the detection range, making it difficult to achieve accurate positioning.
By obtaining the location status information of the third device, it is determined whether the second device is accommodated in the third device. Even when communication cannot be directly established with the second device, the fourth device or the fifth device is used for indirect positioning, thereby improving the positioning success rate.
It achieves accurate positioning of multi-component products that cannot establish communication connections, improves the success rate and processing efficiency of device positioning, and avoids positioning failures caused by device connection problems.
Smart Images

Figure CN118764948A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a positioning method, device, system and storage medium. Background Art
[0002] In the application scenario of the device-to-device interaction technology, through the interaction between devices, one of the devices can be used to locate (or search for) other devices, such as using mobile phone A to search for mobile phone B.
[0003] Currently, when the device being searched is a multi-component product (such as an earphone and an earphone box that can accommodate the earphone), some devices in the multi-component product (such as the earphone) will be difficult to accurately locate if the communication connection is lost. For example, the earphone cannot be located when the battery of the earphone is low, the earphone is placed in the earphone box, or the earphone is out of the detection range and communication connection is impossible. Summary of the invention
[0004] The present application provides a positioning method, device, system and storage medium, and provides a positioning solution for devices that cannot be accurately positioned due to limited device performance or limited device location, so as to achieve accurate positioning.
[0005] In a first aspect, an embodiment of the present application provides a positioning method. The execution subject of the method may be a first device, which may be an electronic device or deployed in an electronic device, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication function (such as a smart watch), etc.
[0006] The method includes: a first device obtains a first query request, the first query request is at least used to request to query the location information of the second device, a communication link cannot be established between the second device and the first device, the communication link is used to realize the positioning of the second device, and according to the communication status of the third device, the location status information sent by the third device is obtained, the location status information is used to indicate whether the second device is accommodated in the third device, and then the location information of the second device is determined according to the location status information. In the case that the second device and the first device cannot establish a communication connection, the first device realizes the positioning of the second device by obtaining the location status information sent by the third device, so as to improve the success rate of positioning. Furthermore, the first device obtains the location status information sent by the third device according to the communication status of the third device, so as to avoid the problem that it is difficult to obtain the location status information when the third device cannot be connected to the first device, and further improves the success rate of positioning.
[0007] When the first device obtains the location status information sent by the third device according to the communication status of the third device, at least two possible implementations may be included as follows:
[0008] Implementation method one: when the third device is in a proximity state, the first device receives a first broadcast message sent by the third device, and the first broadcast message carries the location status information. The third device supports a communication connection with the first device in the proximity state. Based on this, the first device can directly receive the first broadcast message sent by the third device to obtain the location status information, thereby improving processing efficiency.
[0009] In a second implementation, when the third device is in a separated state, the first device obtains the location status information sent by the third device and received by the fourth device. In this separated state, the third device does not support communication connection with the first device, but supports communication connection with the fourth device. Based on this, when the first device cannot directly obtain the location status information from the third device, it obtains the location status information of the third device through the fourth device, thereby improving the success rate of positioning the second device.
[0010] In the first embodiment, when the position status information of the first device indicates that the second device is contained in the third device, the first device obtains the position information of the third device and uses the position information of the third device as the position information of the second device. In this embodiment, when the first device cannot establish a communication connection with the second device, the first device obtains the position information of the third device to obtain the position information of the second device, thereby realizing accurate positioning of the second device.
[0011] When the location status information indicates that the second device is contained in the third device, the first device obtains the location information of the third device, which can be implemented by at least the following two possible examples:
[0012] Example 1: When the third device is in a proximity state, the first device locates the third device and obtains the location information of the third device. When the third device is in a proximity state, the first device and the third device support a communication connection, so the first device can locate the third device to obtain the location information of the third device, and then obtain the location information of the second device. This example has high processing efficiency and low processing complexity.
[0013] Example 2: When the third device is in a separated state, the first device obtains the location information of the third device obtained by the fourth device positioning the third device. In this example, when the first device cannot directly locate the third device to obtain the location information of the second device, the fourth device that supports the communication connection with the third device to locate the third device improves the success rate of device positioning.
[0014] In the second embodiment, when the location status information indicates that the second device is not accommodated in the third device, the first device can obtain the location information of the second device detected by the fifth device, and the second device supports a communication connection with the fifth device in the separated state. In this embodiment, the first device cannot directly locate the second device to obtain the location information of the second device, and the second device is not accommodated in the third device. In this case, the first device locates the second device by supporting the fifth device that is in communication connection with the second device, thereby improving the success rate of device positioning.
[0015] In some embodiments, the first device may first activate a pairing device, such as the second device, the third device, or at least one of the devices that the third device can accommodate, so that the pairing device is activated in the search network, thereby providing conditions for the first device to successfully search for the pairing device.
[0016] Exemplarily, the first device may receive a first activation request sent by the third device, the first activation request carries the identification information of the third device in the search network and the identification information of the devices contained by the third device in the search network, the devices contained by the third device include the second device; the first device activates the third device and the devices contained by the third device under the user account in the search network, the user account is the account logged in by the first device; and sends a first activation response to the third device, the first activation response is used to indicate the activation result of the third device and the devices contained by the third device under the user account. The third device acts as an agent to collect the identification information of the devices contained by itself in the search network, and sends the identification information of itself in the search network and the identification information of the devices contained by itself in the search network to the first device for activation, so as to avoid the first device from activating the third device and one or more devices that it can contain separately, thereby improving the processing efficiency and success rate.
[0017] In some embodiments, the first device receives first association information sent by the third device, and the first association information is used to indicate the association relationship between the third device and the device contained in the third device in the search network, so that when the first device searches for the device contained in the third device, it can determine the location information of the second device based on the location status information sent by the third device.
[0018] In some embodiments, the first device may send deactivation information to the third device and / or at least one device contained in the third device, and the deactivation information is used to indicate the cancellation of activation of the third device and the device contained in the third device under the user account, so as to achieve rapid deactivation, thereby canceling the binding relationship between the first device and the third device and the device contained in the third device.
[0019] In some embodiments, the first device may receive a second activation request sent by the third device, the second activation request carries identification information of the sixth device in the search network, the sixth device is used to replace at least one device contained in the third device, and activate the sixth device in the user state in the search network, and then send a second activation response to the third device, the second activation response is used to indicate the activation result of the sixth device under the user account. An efficient and reliable activation solution is provided for updating some components in a multi-component product.
[0020] In some embodiments, the first device may receive second association information sent by the third device, where the second association relationship is used to indicate updating the association relationship between the third device and the device contained in the third device in the search network, so that when the first device searches for the device contained in the third device, it can determine the location information of the second device based on the location status information sent by the third device.
[0021] In a second aspect, an embodiment of the present application provides a positioning method, the execution subject of the method is still the above-mentioned first device, the first device and the second device are connected based on a first Bluetooth link, and the first Bluetooth link is used to transmit audio signals.
[0022] In this method, in order to reduce the air interface load, the first device can send indication information to the second device through the first Bluetooth link, and the indication information is used to instruct the second device to achieve positioning through the first Bluetooth link. Correspondingly, the second device receives the indication information sent by the first device through the first Bluetooth link.
[0023] In some embodiments, the indication information is also used to set the first field in the broadcast information indicating the second device, or other devices accommodated by the second device and the third device, to information indicating the connection state, and the first field is used to indicate whether the corresponding device is in a connection state. For example, in response to the indication information, the second device sets the first field (such as a connected flag) in the broadcast information (such as the first broadcast information) to 1 to indicate that the second device is in a connection state. When the first device receives the broadcast information of the second device, based on the indication of the first field, the second Bluetooth link is no longer established with the second device, and the second Bluetooth link is used to realize the positioning of the second device.
[0024] In some embodiments, the indication information is also used to indicate that the second device, or the second device and other devices contained in the third device, are in a proximity state. For example, in response to the indication information, the second device can set its own state machine to a proximity state, so that the first device can directly communicate with the second device to achieve positioning based on different first devices.
[0025] In a third aspect, an embodiment of the present application provides a positioning method. The execution subject of the method may be a second device, which may be implemented as an electronic device or a component in an electronic device, and the electronic device may be accommodated in other electronic devices (such as an electronic device implemented by a third device, or an electronic device to which the third device belongs). The second device is connected to the first device based on a first Bluetooth link, and the first Bluetooth link is used to transmit an audio signal.
[0026] The method includes: receiving an indication message sent by the first device through the first Bluetooth link, the indication message is used to instruct the second device to achieve positioning through the first Bluetooth link.
[0027] In a possible implementation, the indication information is also used to indicate that the first field in the broadcast information of the second device, or other devices accommodated by the second device and the third device, is set to information indicating a connection status, and the first field is used to indicate whether the corresponding device is in a connected state.
[0028] In a possible implementation manner, the indication information is further used to indicate that the second device, or the second device and other devices accommodated by the third device, are in proximity.
[0029] The beneficial effects of the positioning method provided by the third aspect and each possible implementation manner of the third aspect can be referred to the beneficial effects brought about by the second aspect and each possible implementation manner of the second aspect, which will not be repeated here.
[0030] In a fourth aspect, an embodiment of the present application provides a positioning method. The execution subject of the method may be a third device, which may be implemented as an electronic device or a component in an electronic device, and the electronic device may accommodate other electronic devices (such as the electronic device implemented by the second device).
[0031] The method includes: determining location status information, the location status information being used to indicate whether the second device is accommodated in the third device; and sending the location status information according to the communication status of the third device.
[0032] In a possible implementation, sending the location status information includes: sending a first broadcast message when the third device is in a proximity state; sending a second broadcast message when the third device is in a separation state; wherein both the first broadcast message and the second broadcast message carry the location status information, the second broadcast message also includes information indicating that the third device is in a separation state, the third device supports a communication connection with the first device in the proximity state, and the third device does not support a communication connection with the first device in the separation state.
[0033] In a possible implementation, the determining of the location status information includes: receiving access information sent by the second device, the access information carrying identification information of the second device in the search network; and determining the location status information according to the access information.
[0034] In a possible implementation, it also includes: sending a first activation request to the first device, the first activation request carrying identification information of the third device in the search network and identification information of the devices accommodated by the third device in the search network, the devices accommodated by the third device including the second device; receiving a first activation response sent by the first device, the first activation response is used to indicate the activation results of the third device and the devices accommodated by the third device under a user account, and the user account is the account logged in by the first device.
[0035] In a possible implementation, the method further includes: sending first activation information to the device accommodated by the third device, where the first activation information is used to indicate an activation result of the device accommodated by the third device under the user account.
[0036] In a possible implementation, the method further includes: receiving deactivation information sent by the first device, where the deactivation information is used to indicate the cancellation of activation of the third device and the device contained in the third device under the user account.
[0037] In a possible implementation, it also includes: sending a second activation request to the first device, the second activation request carries identification information of a sixth device in the search network, and the sixth device is used to replace at least one device accommodated by the third device; receiving a second activation response sent by the first device, and the second activation response is used to indicate the activation result of the sixth device under the user account.
[0038] In a possible implementation, the method further includes: sending second association information to the first device, where the second association information is used to indicate updating of an association relationship between the third device and the devices contained in the third device in the search network.
[0039] The beneficial effects of the positioning method provided by the fourth aspect and each possible implementation manner of the fourth aspect can be referred to the beneficial effects brought about by the first aspect and each possible implementation manner of the first aspect, and will not be repeated here.
[0040] In a fifth aspect, an embodiment of the present application provides a positioning device, comprising: an acquisition module, used to acquire a first query request, the first query request is at least used to request to query the location information of a second device, and a communication link cannot be established between the second device and the positioning device, and the communication link is used to locate the second device; the acquisition module is also used to acquire location status information sent by the third device according to the communication status of the third device, and the location status information is used to indicate whether the second device is accommodated in the third device; a processing module is used to determine the location information of the second device based on the location status information.
[0041] In one possible implementation, the acquisition module is specifically used to: when the third device is in a proximity state, receive the first broadcast information sent by the third device, the first broadcast information carries location status information, and the third device supports communication connection with the positioning device in the proximity state; or, when the third device is in a separation state, acquire the location status information sent by the third device and received by the fourth device, the third device does not support communication connection with the positioning device in the separation state, but supports communication connection with the fourth device.
[0042] In a possible implementation, the processing module is specifically configured to: when the location status information indicates that the second device is accommodated in a third device, obtain location information of the third device; and use the location information of the third device as the location information of the second device.
[0043] In a possible implementation, the processing module is specifically used to: when the third device is in a proximity state, locate the third device to obtain the location information of the third device; or, when the third device is in a separation state, obtain the location information of the third device obtained by locating the third device by the fourth device.
[0044] In a possible implementation, the processing module is specifically used for: the location status information indicates that the second device is not accommodated in the third device, obtaining the location information of the second device detected by the fifth device, and supporting a communication connection between the second device and the fifth device in a separated state.
[0045] In a possible implementation, it also includes: a transceiver module, which is used to receive a first activation request sent by a third device, the first activation request carries identification information of the third device in the search network and identification information of the device accommodated by the third device in the search network, and the device accommodated by the third device includes the second device; the processing module is also used to activate the third device and the device accommodated by the third device under the user account in the search network, and the user account is the account logged in by the positioning device; the transceiver module is also used to send a first activation response to the third device, and the first activation response is used to indicate the activation result of the third device and the device accommodated by the third device under the user account.
[0046] In a possible implementation manner, the transceiver module is further used to: receive first association information sent by the third device, where the first association information is used to indicate an association relationship between the third device and the device accommodated by the third device in the search network.
[0047] In a possible implementation, the transceiver module is further used to: send deactivation information to the third device and / or at least one device contained in the third device, wherein the deactivation information is used to indicate the cancellation of activation of the third device and the device contained in the third device under the user account.
[0048] In a possible implementation, the transceiver module is also used to: receive a second activation request sent by a third device, the second activation request carries identification information of a sixth device in the search network, and the sixth device is used to replace at least one device accommodated by the third device; the processing module is also used to activate the sixth device in the user state in the search network; the transceiver module is also used to send a second activation response to the third device, and the second activation response is used to indicate the activation result of the sixth device under the user account.
[0049] In a possible implementation, the transceiver module is further used to: receive second association information sent by the third device, where the second association relationship is used to indicate updating of the association relationship between the third device and the device accommodated by the third device in the search network.
[0050] The beneficial effects of the electronic device provided by the fifth aspect and each possible implementation manner of the fifth aspect can refer to the beneficial effects brought about by the first aspect and each possible implementation manner of the first aspect, and will not be repeated here.
[0051] In a sixth aspect, an embodiment of the present application provides a positioning device, which is connected to a second device based on a first Bluetooth link, and the first Bluetooth link is used to transmit an audio signal, including: a transceiver module, used to send indication information to the second device through the first Bluetooth link, and the indication information is used to instruct the second device to achieve positioning through the first Bluetooth link.
[0052] In a possible implementation, the indication information is also used to indicate that the first field in the broadcast information of the second device, or other devices accommodated by the second device and the third device, is set to information indicating a connection status, and the first field is used to indicate whether the corresponding device is in a connected state.
[0053] In a possible implementation manner, the indication information is further used to indicate that the second device, or the second device and other devices contained in the third device are in proximity.
[0054] The beneficial effects of the positioning device provided by the sixth aspect and each possible implementation manner of the sixth aspect can be referred to the beneficial effects brought about by the second aspect and each possible implementation manner of the second aspect, and will not be repeated here.
[0055] In a seventh aspect, an embodiment of the present application provides a positioning device, the positioning device is connected to a first device based on a first Bluetooth link, the first Bluetooth link is used to transmit an audio signal, including: a transceiver module, used to receive an indication message sent by the positioning device through the first Bluetooth link, the indication message is used to instruct the second device to achieve positioning through the first Bluetooth link.
[0056] The beneficial effects of the electronic device provided by the seventh aspect and each possible implementation manner of the seventh aspect can be referred to the beneficial effects brought about by the second aspect and each possible implementation manner of the second aspect, and will not be repeated here.
[0057] In an eighth aspect, an embodiment of the present application provides a positioning device, comprising: a processing module for determining position status information, the position status information being used to indicate whether a second device is accommodated in the positioning device; and a transceiver module for sending the position status information according to the communication status of the positioning device.
[0058] In a possible implementation, the transceiver module is specifically used to: send a first broadcast message when the positioning device is in a proximity state; send a second broadcast message when the positioning device is in a separation state; wherein the first broadcast message and the second broadcast message both carry location status information, and the second broadcast message also includes information indicating that the positioning device is in a separation state, the positioning device supports communication connection with the first device in the proximity state, and does not support communication connection with the first device in the separation state.
[0059] In a possible implementation, the processing module is specifically used to: receive access information sent by the second device, the access information carrying identification information of the second device in the search network; and determine the location status information according to the access information.
[0060] In a possible implementation, the transceiver module is also used to send a first activation request to the first device, the first activation request carries identification information of the positioning device in the search network and identification information of the device accommodated by the positioning device in the search network, and the device accommodated by the positioning device includes the second device; the transceiver module is also used to receive a first activation response sent by the first device, the first activation response is used to indicate the activation results of the positioning device and the device accommodated by the positioning device under the user account, and the user account is the account logged in by the first device.
[0061] In a possible implementation, the transceiver module is further used to send first activation information to the device accommodated in the positioning device, where the first activation information is used to indicate an activation result of the device accommodated in the positioning device under the user account.
[0062] In a possible implementation, the transceiver module is further used to receive deactivation information sent by the first device, where the deactivation information is used to indicate the cancellation of activation of the positioning device and the device contained in the positioning device under the user account.
[0063] In a possible implementation, the transceiver module is also used to send a second activation request to the first device, the second activation request carries identification information of the sixth device in the search network, and the sixth device is used to replace the device accommodated by at least one positioning device; and receive a second activation response sent by the first device, the second activation response is used to indicate the activation result of the sixth device under the user account.
[0064] In a possible implementation, the transceiver module is further used to send second association information to the first device, where the second association relationship is used to indicate an updated association relationship between the positioning device and the device accommodated by the positioning device in the search network.
[0065] The beneficial effects of the electronic device provided by the eighth aspect and each possible implementation manner of the eighth aspect can refer to the beneficial effects brought about by the first aspect and each possible implementation manner of the first aspect, and will not be repeated here.
[0066] In a ninth aspect, an embodiment of the present application provides a positioning device, comprising: a processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, and executing the method in the first aspect, the second aspect, the third aspect, the fourth aspect, or each possible implementation manner.
[0067] In the tenth aspect, an embodiment of the present application provides a positioning system, comprising: a first device, a second device and a third device that can accommodate the second device; the first device is used to: obtain a first query request, the first query request is at least used to request to query the location information of the second device, and a communication link cannot be established between the second device and the first device, and the communication link is used to locate the second device; according to the communication status of the third device, obtain the location status information sent by the third device, the location status information is used to indicate whether the second device is accommodated in the third device; according to the location status information, determine the location information of the second device.
[0068] In the eleventh aspect, an embodiment of the present application provides a chip, comprising: a processor, for calling and executing computer instructions from a memory, so that a device equipped with the chip executes a method in the first aspect, the second aspect, the third aspect, the fourth aspect or any possible implementation method.
[0069] In the eleventh aspect, an embodiment of the present application provides a computer-readable storage medium for storing computer program instructions, and the computer program enables a computer to execute a method as in the first aspect, the second aspect, the third aspect, the fourth aspect, or each possible implementation.
[0070] In the twelfth aspect, an embodiment of the present application provides a computer program product, including computer program instructions, which enable a computer to execute a method in the first aspect, the second aspect, the third aspect, the fourth aspect, or any possible implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 A schematic diagram of the structure of an electronic device is shown;
[0072] Figure 2 A schematic diagram of an application scenario of device positioning provided in an embodiment of the present application;
[0073] Figure 3 A schematic diagram of a positioning system provided in an embodiment of the present application;
[0074] Figure 4 A schematic flow chart of a positioning method provided in an embodiment of the present application;
[0075] Figure 5 A state machine transition flow chart of a pairing device provided in an embodiment of the present application;
[0076] Figure 6a A schematic diagram of an interactive process of a positioning method provided in an embodiment of the present application;
[0077] Figure 6b A schematic diagram of an interactive process of a positioning method provided in an embodiment of the present application;
[0078] Figure 7a A schematic diagram of an interactive process of a positioning method provided in an embodiment of the present application;
[0079] Figure 7b A schematic diagram of an interactive process of a positioning method provided in an embodiment of the present application;
[0080] Figure 8 A schematic diagram of an interactive process of a positioning method provided in an embodiment of the present application;
[0081] Fig. 9 A schematic diagram of an interactive process of a device activation method provided in an embodiment of the present application;
[0082] Fig.10 A schematic diagram of an interactive process of a device activation method provided in an embodiment of the present application;
[0083] Fig.11 A schematic block diagram of a positioning device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0084] First, an electronic device, a graphical user interface for such an electronic device, and an embodiment for using such an electronic device are introduced. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with a wireless communication function (such as a smart watch), etc. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) with a touch-sensitive surface or a touch panel, etc. It should also be understood that in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface or a touch panel, and the embodiments of the present application do not limit the form of the electronic device.
[0085] In addition, the electronic device in the present application can also be a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self driving, a wireless terminal device in remote medical, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.
[0086] The term "user interface (UI)" in the specification, claims and drawings of this application refers to the medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface of an application is source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on the terminal device, and finally presented as content that the user can recognize, such as pictures, text, buttons and other controls. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, scroll bars, pictures and text. The properties and contents of controls in the interface are defined by tags or nodes, such as XML through <textview> 、 <imgview> 、 <videoview>The nodes are used to define the controls contained in the interface. A node corresponds to a control or attribute in the interface. After parsing and rendering, the node is presented as user-visible content.
[0087] The most common form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operation that is displayed in a graphical manner. It can be an icon, window, control or other interface element displayed on the display screen of an electronic device, where a control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets and other visual interface elements.
[0088] Figure 1 Schematic diagram of the structure of the electronic device is shown. Figure 1 , the electronic device may include: a processor 110 (such as a CPU), and a memory 120. The memory 120 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory. The memory 120 may store various instructions for completing various processing functions and implementing the method steps of the present application.
[0089] Optionally, the electronic device involved in the present application may further include: a power supply 130, a communication bus 140 and a communication port 150. The above-mentioned communication port 150 is used to realize the connection and communication between the electronic device and other peripherals. In the embodiment of the present application, the memory 120 is used to store computer executable program code, and the program code includes instructions; when the processor 110 executes the instructions, the instructions cause the processor 110 of the electronic device to perform the actions in the above-mentioned method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0090] Optionally, the electronic device involved in the present application may further include: a display screen 160, and the display screen 160 is used to display an interface of the electronic device.
[0091] It should be noted that the modules or components in the above embodiments may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs), etc. For another example, when a certain module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program codes, such as a controller. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0092] The electronic device 100 may include an audio module 170 , which implements audio functions such as receiving audio signals, playing music, and recording through a speaker 171 , a receiver 172 , a microphone 173 , an earphone interface 174 , and an application processor.
[0093] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0094] The speaker 171, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 171.
[0095] The receiver 172, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 172 close to the human ear.
[0096] Microphone 173, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by putting his mouth close to microphone 173 to input the sound signal into microphone 173. Electronic device 100 can be provided with at least one microphone 173. In other embodiments, electronic device 100 can be provided with two microphones 173, which can not only collect sound signals but also realize noise reduction function. In other embodiments, electronic device 100 can also be provided with three, four or more microphones 173 to realize sound signal collection, noise reduction, sound source identification, directional recording function, etc.
[0097] Figure 2 A schematic diagram of an application scenario 200 of device positioning provided in an embodiment of the present application. Figure 2 As shown, a first device 210 is communicatively connected to a second device 220. The first device 210 may be implemented as the above-mentioned electronic device; the second device 220 may be a multi-component product, such as a multi-component product 221 consisting of a wireless headset and a headset box, or a multi-component product 222 consisting of a wireless headset and a watch.
[0098] The wireless headset can be used in conjunction with the first device 210 to process audio services such as media and calls of the electronic device, as well as some other data services. For example, audio services may include services such as playing music, recording, and incoming call prompts for users, and may also include playing voice from the other end for users in call service scenarios such as phone calls, voice messages, audio calls, video calls, games, and voice assistants, or collecting the user's voice data and sending it to the other end.
[0099] The storage box for the wireless headset in the second device 220 may be independently provided, such as Figure 2 In 221, the wireless headset is accommodated in the headset box; or the headset box accommodating the wireless headset in the second device 220 can be set in an electronic device (such as a watch), such as Figure 2 222. The present application does not limit the number of wireless headsets. For example, the second device 220 may be a single-ear headset device including one wireless headset, a dual-ear headset device including two wireless headsets, or a shared headset device including three or more wireless headsets.
[0100] In some embodiments, the wireless headset in the present application may include: a processor, a memory, a speaker, a communication port, etc. The processor, the memory, the speaker, and the communication port may refer to the relevant description of the corresponding modules in the electronic device.
[0101] In some embodiments, the earphone box in the present application may include: a processor, a memory, a speaker, a communication port, etc. The processor, the memory, the speaker, and the communication port may refer to the relevant description of the corresponding modules in the electronic device.
[0102] When the wireless headset is placed in the headset box, the first device 210 is connected to the headset box in the second device 220 or the electronic device provided with the headset box. When the wireless headset is placed outside the headset box, the first device 210 is connected to the headset box in the second device 220 and the wireless headset placed outside the headset box.
[0103] The components in the first device 210 and the second device 220 (such as earphones and / or earphone boxes) can be connected based on Bluetooth technology, but this application is not limited to this. For example, they can also be connected based on any near field communication technology. When the first device 210 and the components in the second device (such as earphones and / or earphone boxes) cannot communicate with each other, the connection will be disconnected if the communication coverage is exceeded.
[0104] In some scenarios, the wireless headset in the second device 220 is difficult to locate because it cannot connect to the first device 210. The scenarios in which the wireless headset in the second device 220 cannot connect to the first device 210 include but are not limited to the following examples: Example 1, the wireless headset in the second device 220 is outside the communication coverage of the first device 210; Example 2, the battery level of the wireless headset in the second device 220 is lower than a battery threshold, which may be a minimum battery level for establishing a communication connection; Example 3, the communication function of the wireless headset in the second device 220 is abnormal.
[0105] In order to achieve accurate positioning of components in a multi-component product, an embodiment of the present application provides a positioning solution. When the wireless headset in the second device 220 cannot establish a communication link with the first device 210 for positioning, the earphone box in the second device 220 implements a proxy function and interacts with the first device 210 (including direct interaction or indirect interaction) to achieve the positioning of the wireless headset.
[0106] Figure 3 A schematic diagram of a positioning system provided in an embodiment of the present application. The positioning system 300 includes a search network 310 and a cloud 320. The search network 310 includes n devices, such as devices 311-1 to 311-n, any of which can be implemented as an electronic device, and some electronic devices (such as 311-4 to 311-6) can form a multi-component product. Among them, devices 311-1 and 311-4 to 311-6 can be paired devices, in which case device 311-1 can implement at least one of the search devices 311-4 to 311-6. Taking device 311-1 searching for 311-4 as an example, device 311-1 can directly locate 311-4, or device 311-1 can locate 311-4 based on searching other devices in the network (such as 311-2). Device 311-2 can upload the location information of 311-4 to the cloud 320, and then device 311-1 can obtain the location information of 311-4 from the cloud, thereby realizing the search for 311-4.
[0107] Devices 311-1 and 311-4 to 311-6 are paired devices, or in other words, devices 311-1 and 311-4 to 311-6 belong to the same user account, and device 311-1 can be called the owner device. When device 311-1 searches for device 311-4, device 311-4 can be called a search device (or component). When device 311-1 locates device 311-4 based on searching for device 311-2 in the network, device 311-2 can be called an assisting device (or a good-hearted person device).
[0108] The cloud 320 may be implemented as a cloud server.
[0109] The cloud may include a search network cloud, which may be used to authenticate and verify the device when pairing the device, and / or the search network cloud may be used to store the location information of the search device (such as 311-4) reported by the assisting device (such as 311-2), and provide an interface for the main device (such as 311-1) to query. The location information may be encrypted information, and the main device may decrypt it based on the key, while other devices in the search network cannot or the location information of the search device due to the lack of the key, so as to ensure the security of the location information.
[0110] Exemplarily, the interaction between a device (such as any one of 311-1 to 311-n) and the cloud 330 may include: the search information processing module in the device interacts with the search network cloud, such as the proximity module in the device reports to the search network cloud or reads the location information of the search device, location status information related to the search device, etc.; the find module in the device interacts with the cloud 320, such as reporting the location information of the search device to the cloud 320, or obtaining the search page from the cloud 320, and then presenting the search page.
[0111] The embodiments of the present application do not limit the positioning method of the main device or the auxiliary device for the search device, for example, positioning can be achieved based on Bluetooth communication or based on detection information. Among them, the detection information can be an ultrasonic signal, but the present application does not limit this, for example, it can also be an infrared signal.
[0112] The present application does not limit the composition of the multi-component product. In the embodiments of the present application, the multi-component product may also include other device combinations, such as smart glasses and glasses cases, etc. For ease of understanding, in some embodiments, a multi-component product consisting of headphones and a headphone case is used as an example for description.
[0113] It should be noted that locating a device (or equipment) can also be expressed as determining or obtaining the location information of a device (or equipment). The two are used interchangeably to express the same meaning. And for the convenience of expression, the meaning remains unchanged after the word order is changed. For example, locating a device (or equipment) can also be expressed as locating the device (or equipment).
[0114] The positioning method provided in the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0115] It should be understood that the following is only for the convenience of understanding and explanation. The embodiment of the present application is described by taking the first device as the execution subject as an example. The first device can be Figure 2 The first device 210 or Figure 3 In some embodiments, the interaction between the first device, the second device and the third device is described as an example, and the second device may be Figure 2 A wireless headset or a wireless headset in the second device 220 Figure 3 The third device may be device 311-4. Figure 2 The earphone box in the second device 220 or Figure 3 In some other embodiments, the first device further interacts with the cloud to obtain information reported by the fourth device, the fifth device, etc. in the search network from the cloud, wherein the fourth device may be Figure 3 The fifth device may be device 311-2. Figure 3 Device 311-3 in.
[0116] However, it should be understood that this should not constitute any limitation on the execution subject of the method provided in the present application. As long as it is possible to run a code program that records the method provided in the embodiment of the present application, according to the method provided in the embodiment of the present application, it can be used as the execution subject of the method provided in the embodiment of the present application. For example, the first device shown in the following embodiment can be implemented as a component in the first device 210 or device 311-1, such as a chip, a chip system, or other functional modules that can call and execute programs; the second device can be implemented as a wireless headset in the second device 220 or a component in the device 311-4, such as a chip, a chip system, or other functional modules that can call and execute programs; the third device can be implemented as a headset box in the second device 220 or a component in the device 311-6, such as a chip, a chip system, or other functional modules that can call and execute programs.
[0117] The pairing device described in the embodiment can be replaced by a component in the pairing device, such as a chip, a chip system or other functional modules that can call and execute a program. For ease of understanding, it is collectively referred to as a search device below.
[0118] Figure 4 FIG. 4 is a schematic flow chart of a positioning method 400 provided in an embodiment of the present application. Figure 4 As shown, the method 400 may include the following S410 to S430.
[0119] S410, the first device obtains a first query request, the first query request is at least used to request to query the location information of the second device, and the second device cannot establish a communication link with the first device, the communication link is used to locate the second device;
[0120] S420, the first device obtains location status information sent by the third device according to the location relationship between the third device and the first device, where the location status information is used to indicate whether the second device is accommodated in the third device;
[0121] S430: Determine location information of the second device according to the location status information.
[0122] The first query request may be input by a user, or the first query request may be generated in response to a user operation. The first query request may request to query the location information of one or more devices (or equipment) in a multi-component product. Taking the multi-component product as a wireless headset and an earphone box as an example, the first query request may request to query the location information of one or more wireless headsets and / or earphone boxes, and in the present application, the first query request is at least used to request to query the location information of the second device. Still taking the multi-component product consisting of a wireless headset and an earphone box as an example, the first query request may request to query the location information of one wireless headset, or the first query request may request to query the location information of each of two wireless headsets, or the first query request may request to query the location information of two wireless headsets and an earphone box, and so on.
[0123] It should be noted that when the first query request is also used to request the location information of other devices (such as other wireless headphones), the same or similar implementation method as that of locating the second device can be used to locate it to obtain its location information, which will not be repeated for the sake of brevity.
[0124] The first device and the second device, the third device, and the device that can be accommodated by the third device may have an associated relationship, such as the second device, the third device, and the device that can be accommodated by the third device have been paired with the first device, or the second device, the third device, and the device that can be accommodated by the third device belong to the same user account as the first device. For ease of description, the device that has an associated relationship with the first device is referred to as a paired device hereinafter.
[0125] In some scenarios, a communication link can be established between the second device and the first device to enable the first device to locate the second device. The communication link can be, for example, a Bluetooth link, such as a Bluetooth low energy (BLE) link. For example, the first device can send a positioning instruction to the second device via a Bluetooth link, and the second device sends detection information to the first device in response to the positioning instruction. The first device locates the target device based on the received detection information to obtain the location information of the second device. Taking the detection information as an ultrasonic signal as an example, the second device sends an ultrasonic signal through a speaker after receiving the positioning instruction sent by the second device, and the first device receives the ultrasonic signal sent by the target device through a microphone, and estimates the location information of the second device based on the ultrasonic signal. This application does not limit the positioning method, nor does it limit the positioning based on a Bluetooth link. For details, please refer to the positioning process of the example below.
[0126] The scenario where a communication link cannot be established between the second device and the first device has been described in the previous example and will not be repeated for brevity. When a communication link cannot be established between the second device and the first device, the location information of the second device is determined based on the location relationship between the second device and the third device, such as whether the second device is accommodated in the third device.
[0127] The first device may directly obtain the location status information of the third device, or the first device may indirectly obtain the location status information of the third device. Directly obtaining the location status information of the third device may refer to the first device directly interacting with the third device to obtain the location status information, and indirectly obtaining the location status information of the third device may refer to the first device obtaining the location status information obtained by the interaction between other devices (such as the fourth device) and the third device, and the other devices (such as the fourth device) may, for example, belong to the above-mentioned search network.
[0128] As an example, when the location status information indicates that the second device is accommodated in the third device, the first device can obtain the location information of the third device and use the location information of the third device as the location information of the second device; as another example, when the location status information indicates that the second device is not accommodated in the third device, the first device can obtain the location information of the second device detected by the fifth device, wherein a communication link for achieving positioning can be established between the fifth device and the second device.
[0129] The communication state may include a proximity state or a separation state. Among them, the proximity state can be understood as a state in which a communication link can be established between devices but has not yet been established. In the proximity state, the devices can communicate through broadcast information. For example, when the paired devices are in the proximity state, the first device and the paired device can transmit broadcast information. For example, when the paired devices are in the proximity state, the first device can receive the first broadcast information sent by the paired device, and a communication link (such as a Bluetooth link) can be established between the first device and the paired device, and the communication link can locate the paired device. The separation state can be understood as a state in which a communication link cannot be established, or the communication quality of the communication link established in the separation state is less than the quality threshold. The paired device is in the separation state, which may be that the paired device is beyond the communication coverage of the first device. Another example is that the paired device is in the separation state, which may be that the paired device or the first device is low in power (such as below the power threshold).
[0130] In some embodiments, the communication status may also include a connection status, in which a communication link is established between devices. For example, when the paired device is in a connection status, a communication link is established between the first device and the paired device, and the first device can locate the paired device based on the communication link.
[0131] The above communication status may be applicable to any device paired with the first device, such as the second device, or other devices that may be accommodated by the second device or the third device.
[0132] For a pairing device, it is difficult for the pairing device to determine its own state based on the distance between itself and the first device. The pairing device can determine that it is in a proximity state or a separation state by sending a first broadcast message and based on whether it receives a response from the first device to the first broadcast message. Exemplarily, the pairing device periodically sends a first broadcast message. If the distance between the pairing device and the first device is less than or equal to a first preset value, the first device can receive the first broadcast message and respond to the first broadcast message of the pairing device, such as sending a response message to the pairing device. After receiving the response message, the pairing device determines that it is in a proximity state; if the distance between the pairing device and the first device is greater than the first preset value, it is difficult for the first device to receive the first broadcast message. The first device cannot respond to it without receiving the first broadcast message. Accordingly, the pairing device cannot receive the response message of the first device. Optionally, the pairing device can determine that it is in a separation state when it does not receive the response message of the first device when the preset time is reached.
[0133] The first device obtains the location status information sent by the third device according to the communication status of the third device, and correspondingly, the third device sends the location status information according to its own communication status. Figure 6a and Figure 6b An exemplary description is given.
[0134] Figure 5 A state machine transition flow chart of a pairing device provided in an embodiment of the present application. For a pairing device, such as a second device, a third device, or any other device that can be accommodated by the third device, the following conditions can be met: Figure 5 The state machine transfer process shown in Figure 1 is as follows. Figure 5 As shown, after the communication link is established between the paired device and the first device, the paired device is in a connected state. After the first device disconnects the communication link with the paired device, the paired device is in a proximity state; after the paired device is restarted, the paired device enters a separated state by default.
[0135] The paired device can periodically send the first broadcast information in the proximity state, and maintain the proximity state by receiving the response information sent by the first device. When the paired device is in the proximity state, the first device can establish a communication link with the paired device. After the communication link is established, the paired device is in a connected state. When the paired device is in the proximity state, if the response information of the first device is not received again within a preset time after the last response information of the first device is received, in this case, the paired device determines to enter the separation state.
[0136] The paired device can send the second broadcast information in the separated state, such as periodically sending the second broadcast information, and the second broadcast information includes information indicating that the paired device is in the separated state. When the paired device is in the separated state, the first device can establish a communication link with the paired device, such as the first device initiating a reconnection with the paired device after the paired device is restarted for a period of time, or initiating a reconnection with the paired device after the first device is recharged. When the paired device is in the separated state, if a response to the second broadcast information from the first device is received, it can be determined that it has entered the proximity state.
[0137] Combine the following Figure 6a and Figure 6b , the positioning method of the embodiment of the present application is exemplarily described with the third device being in an adjacent state and a separated state respectively.
[0138] Figure 6a FIG. 5 is a schematic diagram of an interactive process of a positioning method 500a provided in an embodiment of the present application. Figure 6a As shown, the method 500a includes at least some of the following steps S510a to 530a:
[0139] S510a, the third device determines the location status information;
[0140] S520a, when the third device is in a proximity state, the third device sends a first broadcast message, the first broadcast message carries location status information, and correspondingly, when the third device is in a proximity state, the first device receives the first broadcast message sent by the third device to obtain the location status information.
[0141] S530a: The location status information indicates that the second device is accommodated in the third device. The first device obtains the location information of the third device and uses the location information of the third device as the location information of the second device.
[0142] In the above S510a, the third device may detect whether the second device is accommodated in the third device itself, and determine the location status information according to the detection result.
[0143] In the above S520a, if the third device is in a proximity state, as mentioned above, the third device supports communication connection with the first device in the proximity state, and the third device is in the communication broadcast coverage of the first device, the third device can directly send location status information to the first device. For example, the third device can send a first broadcast message to the first device, and the first broadcast message carries the above-mentioned location status information.
[0144] In the above S530a, the location status information indicates that the second device is contained in the third device, which can be regarded as the third device having the same or similar location information as the second device. In this case, the first device can locate the second device by acquiring the location information of the third device.
[0145] It should be noted that the present application does not limit the execution order between the first device obtaining the first query request and obtaining the location status information. The third device may periodically send the first broadcast information, and the first device may determine the location status information from the most recently received first broadcast information in response to the first query request.
[0146] Figure 6b Schematic diagram of an interactive process of a positioning method 500b provided in an embodiment of the present application. Figure 6b As shown, the method 500b includes at least some of the following steps S510a to S550b:
[0147] S510b, the third device determines the location status information;
[0148] S520b, when the third device is in a separated state, the third device sends a second broadcast message, the second broadcast message carries location status information, and correspondingly, when the third device is in a neighboring state, the fourth device receives the second broadcast message sent by the third device, and a communication connection is supported between the fourth device and the third device.
[0149] S530b, the fourth device reports location status information to the cloud.
[0150] S540b, when the third device is in a separated state, the first device obtains the location status information sent by the third device and received by the fourth device.
[0151] S550b: The location status information indicates that the second device is accommodated in the third device. The first device obtains the location information of the third device and uses the location information of the third device as the location information of the second device.
[0152] The above S510b is similar to S510a, and the above S550b is similar to S530a, which will not be described again for the sake of brevity.
[0153] In the above S520b, if the third device is in a separated state, as mentioned before, the third device does not support communication connection with the first device in the separated state. In this case, the second broadcast information sent by the third device cannot be received by the first device. Therefore, a fourth device capable of receiving the second broadcast information is introduced to receive the broadcast information sent by the third device through the fourth device.
[0154] In the above S530b, the fourth device can determine the location status information from the received broadcast information and report the location status information to the cloud. Considering the security of the device, the location status information in the second broadcast information can be information encrypted by a key, and the first device can decrypt the encrypted location status information by the key to obtain the location status information sent by the third device. The fourth device reports the encrypted location status information to the cloud, and other devices cannot parse the encrypted location status information in the cloud due to the lack of the key, so as to ensure the security of the location status information sent by the third device in the cloud.
[0155] In the above S540b, the first device may read the location status information of the third device from the cloud.
[0156] It should be noted that Figure 6a and Figure 6b The embodiments shown do not limit the execution order between the first device obtaining the first query request and obtaining the location status information. The third device may periodically send the first broadcast information, and the first device may determine the location status information from the most recently received first broadcast information in response to the first query request.
[0157] Take the multi-component product consisting of wireless headphones and headphone box as an example. Figure 6a and Figure 6b In the embodiment shown, since the earphone box can maintain the ability to be found in a low-power state for a long time, after the wireless earphone is placed in the box, the earphone enters an extremely low-power mode to meet the low-power consumption requirement of the earphone. In this case, the wireless earphone and the earphone box as a whole interact with the first device through the earphone box agent to achieve the positioning of at least one device in the multi-component product.
[0158] Combine the following Figure 7a and Figure 7b , an exemplary description is given of how the first device obtains the location information of the third device when the location status information indicates that the second device is accommodated in the third device.
[0159] Figure 7a FIG. 6 is a schematic diagram of an interactive process of a positioning method 600a provided in an embodiment of the present application. Figure 7a As shown, the method 600a includes at least some of the following steps S610a to S660a:
[0160] S610a, the second device sends access information to the third device, where the access information carries identification information of the second device in the search network.
[0161] S620a, the third device determines the location status information according to the access information.
[0162] S630a, when the third device is in a proximity state, the third device sends a first broadcast message, where the first broadcast message carries location state information.
[0163] S640a, the first device locates the third device to obtain location information of the third device.
[0164] In the above S610a, the second device sends access information to the third device when it is connected to the third device (that is, it is contained in the third device). The access information can be triggered to be sent after the second device is connected to the third device. After the second device is connected to the third device, it can be connected to the third device by contact, or after the second device is connected to the third device, it can be connected to the third device wirelessly. This application does not limit this. When the multi-component product is an earphone and an earphone box, the second device is connected to the third device, which can be understood as the second device is inserted into the box and establishes a connection with the third device.
[0165] In the above S620a, the third device may determine that the second device is accessed based on the identification information of the second device in the search network carried in the access information, and then the location status information determined by the third device includes information indicating that the second device is accessed. The identification information of the second device in the search network may be a find network identification (FID).
[0166] Optionally, the access information may also include: at least one of: a user identification (UID) of the second device, a serial number (SN) of the second device, and an activation status of the second device (such as whether it is activated).
[0167] The above S630a is similar to S520a in the above example, and will not be described again for the sake of brevity.
[0168] In the above S640a, a communication connection is supported between the first device and the third device, so the first device can locate the third device to obtain the location information of the third device.
[0169] As an example, the first device may receive the detection information sent by the third device to locate the third device, and determine the location information of the third device based on the received detection information. Taking the detection information as an ultrasonic signal as an example, the first device may send a positioning instruction to the third device, and the third device may send an ultrasonic signal through a speaker in response to the positioning instruction. The first device may receive the ultrasonic signal sent by the third device through a microphone, and estimate the location information of the third device based on the ultrasonic signal.
[0170] As another example, the first device may send detection information to the third device to locate the third device. Taking the detection information as an ultrasonic signal as an example, the first device may send the ultrasonic signal to the third device through a speaker, and receive a reflection signal of the ultrasonic signal from the third device through a microphone, and then estimate the location information of the third device according to the received reflection signal.
[0171] Similar to the above example, the first device may send a radio frequency signal to the third device and receive the radio frequency signal reflected by the third device, and the first device estimates the location information of the third device based on the received reflected radio frequency signal.
[0172] As another example, the first device may send detection information to the third device, and the third device may determine its own location information based on the received detection information and send the location information to the first device.
[0173] Optionally, the location information of the third device includes the distance and / or angle between the third device and the first device. The angle between the third device and the first device may be the angle between the location of the third device and any point or surface on the first device, for example, the angle between the third device and the first device may be the angle between the location of the third device and the surface where the screen of the first device is located.
[0174] Generally speaking, two microphones are deployed in an electronic device, and the ultrasonic signals received by the two microphones cannot distinguish whether the third device is on the left or right side of the first device. Therefore, in the process of the first device positioning the third device, in order to improve the positioning accuracy, the first device can determine the angle between the third device and the first device by rotation de-imaging. Among them, rotation de-imaging can be achieved by the user rotating the mobile phone. Exemplarily, the first device presents a rotation de-imaging operation prompt through the interface of the display screen, such as "rotate the phone", to prompt the user to perform the corresponding operation. The first device accurately determines the angle between the third device and the first device based on a comprehensive judgment of the ultrasonic signal (or reflected signal) received before the user rotates the mobile phone and the ultrasonic signal (or reflected signal) received after the user rotates the mobile phone.
[0175] In some embodiments, during the process of the first device positioning the third device, the first device may receive the time synchronization information sent by the third device, determine the time offset between the first device and the third device based on the time synchronization information, and then determine the location information of the third device based on the time offset and the received detection information sent by the third device. Exemplarily, the first device may determine the distance between the third device and the first device based on the time offset and the detection information, and determine the angle between the third device and the first device based on the detection information.
[0176] Exemplarily, the first device can notify the third device via Bluetooth to perform Bluetooth time synchronization. For example, the third device can send one or more time synchronization frames to the first device in response to the positioning instruction. The time synchronization frames carry information such as the sending time and the callback time. After the first device receives the time synchronization frame sent by the third device, it calculates the time offset and then corrects the time difference between the first device and the third device.
[0177] In the above S640a, the location status information indicates that the second device is contained in the third device. In this case, the first device can locate the second device by acquiring the location information of the third device.
[0178] In this embodiment, when the second device is contained in the third device, the first device obtains the location information of the second device by positioning the third device, thereby improving the success rate of device positioning.
[0179] Figure 7b FIG. 6 is a schematic diagram of an interactive process of a positioning method 600b provided in an embodiment of the present application. Figure 7b As shown, the method 600b includes at least some of the following steps S610b to S660b:
[0180] S610b, the second device sends access information to the third device, where the access information carries identification information of the second device in the search network.
[0181] S620b, the third device determines the location status information according to the access information.
[0182] S630b: When the third device is in a separated state, the third device sends a second broadcast message, where the second broadcast message carries location status information.
[0183] S640b, the fourth device locates the third device to obtain location information of the third device.
[0184] S650b, the fourth device reports location information.
[0185] S660b, the location status information indicates that the second device accommodates the third device, and the first device obtains the location information of the third device obtained by the fourth device locating the third device.
[0186] The above S610b and S620b are respectively Figure 7a S610a and S620a are the same and will not be described again for brevity.
[0187] The above S630b is similar to S520b in the above example, and will not be described again for the sake of brevity.
[0188] In the above S640a, the fourth device supports communication connection with the third device, so the fourth device can locate the third device to obtain the location information of the third device. The fourth device locates the third device by referring to the first device locating the third device in the above example, which will not be repeated for brevity.
[0189] Optionally, the first device may send a search request to the cloud to request to search for a device in the network to locate the third device, and the fourth device locates the third device in response to the search request.
[0190] In the above S650a, the fourth device may send the location information of the third device to the cloud so that the first device can obtain the location information of the third device from the cloud. Optionally, the fourth device may encrypt the location information of the third device and report the encrypted location information to the cloud to ensure the security of the location information of the third device.
[0191] In the above S660a, the location status information indicates that the second device is contained in the third device. In this case, the first device can locate the second device by obtaining the location information of the third device. However, the third device is in a separated state, and the first device cannot directly locate the third device. Therefore, the first device can obtain the location information of the third device obtained by locating the third device by the fourth device from the cloud.
[0192] In this embodiment, when the first device cannot directly locate the third device to obtain the location information of the second device, the fourth device that is in communication connection with the third device is supported to locate the third device, thereby improving the success rate of device positioning.
[0193] It should be noted that the above Figure 7a and Figure 7b In the embodiment shown, during the process of the third device sending broadcast information and positioning, the third device maintains the same communication state, for example, Figure 7a In the case where the third device is in a nearby state, the first broadcast information is sent to transmit the position status information, and the first device locates the third device. Figure 7b In the process, if the third device is in a separated state, the second broadcast information is sent to transmit the position state information, and the fourth device locates the third device. However, the present application does not limit the third device to always maintain the same communication state, for example, the third device is in a neighboring state when sending the broadcast information and switches to a separated state during the positioning process, or the third device is in a separated state when sending the broadcast information and switches to a neighboring state during positioning.
[0194] Figure 8 A schematic diagram of an interactive process of a positioning method 700 provided in an embodiment of the present application. Figure 8 As shown, a possible implementation method is provided for how to locate the second device when the second device is not accommodated in the third device. In this implementation method, the communication state of the third device is not limited. For ease of understanding, the third device is in a proximity state as an example for explanation. Figure 8 The method 700 shown may include at least part of the following processes S710 to S760 .
[0195] S710, the second device sends access information to the third device, where the access information carries identification information of the second device in the search network.
[0196] S720, the third device determines the location status information according to the access information.
[0197] S730, when the third device is in a proximity state, the third device sends a first broadcast message, where the first broadcast message carries location state information.
[0198] S740: The fifth device locates the first device to obtain location information of the second device.
[0199] S750, the fifth device reports location information.
[0200] S760: The location status information indicates that the second device is accommodated in the third device, and the location information of the second device detected by the fifth device is obtained.
[0201] The above S710 to S730 are respectively related to Figure 7a S610a to S630a are the same as those in the above, and will not be described again for the sake of brevity.
[0202] In the above S740, the fifth device supports communication connection with the second device, so the fifth device can locate the second device to obtain the location information of the second device. The fifth device locates the second device by referring to the first device locating the third device in the above example, which will not be repeated for brevity.
[0203] Optionally, the first device may send a search request to the cloud to request to search for a device in the network to locate the second device, and the fifth device locates the second device in response to the search request.
[0204] In the above S750, the fifth device may send the location information of the second device to the cloud so that the first device can obtain the location information of the second device from the cloud. Optionally, the fifth device may encrypt the location information of the second device and report the encrypted location information to the cloud to ensure the security of the location information of the second device.
[0205] In the above S760, the location status information indicates that the second device is not accommodated in the third device. In this case, the first device can directly locate the second device. However, the second device cannot establish a connection with the first device, and the first device cannot directly locate the second device. Therefore, the first device can obtain the location information of the second device obtained by locating the second device by the fifth device from the cloud.
[0206] In this embodiment, when the first device cannot directly locate the second device to obtain the location information of the second device, the fifth device that is in communication connection with the second device is supported to locate the second device, thereby improving the success rate of device positioning.
[0207] Therefore, in the embodiment of the present application, when the second device cannot establish a communication connection with the first device, the second device is located by obtaining the location status information sent by the third device to improve the success rate of positioning. Furthermore, the location status information sent by the third device is obtained based on the communication status of the third device, thereby avoiding the problem of difficulty in obtaining the location status information when the third device cannot be connected to the first device, thereby further improving the success rate of positioning.
[0208] See also Figure 5 As shown, before the paired device communicates with the first device, the offline paired device can be activated first. Exemplarily, when the device to be paired is close to the first device, the first device can pair with it in response to user operation (such as Bluetooth pairing). Further, the first device can determine whether the paired device is activated in the search network, and if not, start the activation process. The paired device can be in a connected state after the activation is completed.
[0209] Combine the following Fig. 9 The activation process is described exemplarily.
[0210] Fig. 9 The following is a schematic diagram of an interactive process of a device activation method 800 provided in an embodiment of the present application. The method 800 may include at least part of the following processes S810 to S860, and Fig. 9 S870 in FIG. 8 is used to exemplarily illustrate deactivation.
[0211] S810, the second device sends access information to the third device, where the access information carries identification information of the second device in the search network.
[0212] S820, the third device sends a first activation request to the first device, the first activation request carries identification information of the third device in the search network and identification information of devices accommodated by the third device in the search network, and the devices accommodated by the third device include the second device. Correspondingly, the first device receives the first activation request sent by the third device.
[0213] S830, the first device activates the third device and the device contained in the third device (such as the second device) under the user account in the search network, and the user account is the account logged in by the first device.
[0214] S840, the first device sends a first activation response to the third device, the first activation response is used to indicate the activation result of the third device and the device contained in the third device (such as the second device) under the user account. Correspondingly, the third device receives the first activation response sent by the first device.
[0215] S850, the third device sends first association information to the first device, the first association information is used to indicate the association relationship between the third device and the device contained in the third device (such as the second device) in the search network. Correspondingly, the first device receives the first association information sent by the third device.
[0216] S860, the third device sends first activation information to the device contained in the third device (such as the second device), where the first activation information is used to indicate the activation result of the device contained in the third device (such as the second device) under the user account. Correspondingly, the device contained in the third device (such as the second device) receives the first activation information sent by the third device.
[0217] The above S810 has been explained in the above example and will not be described again for the sake of brevity.
[0218] In the above S820, the third device acts as an agent to collect identification information of the devices it accommodates in the search network, and sends its own identification information in the search network and the identification information of the devices it accommodates in the search network to the first device for activation, thereby avoiding the first device from separately activating the third device and one or more devices it can accommodate, thereby improving processing efficiency and success rate.
[0219] Optionally, after pairing with the third device, the first device can determine whether the third device and the device contained in the third device (such as the second device) are activated in the search network, and if there is an unactivated device in the third device or the device contained in the third device, the first device can start the activation process. Optionally, during the activation process, the first device can send an activation instruction to the third device, and the third device sends a first activation request to the first device in response to the activation instruction.
[0220] Optionally, the first device may obtain the activation status of each device in the third device and / or the devices accommodated by the third device through a private protocol, and then determine whether there are unactivated devices in the third device and / or the devices accommodated by the third device.
[0221] Optionally, the first device may guide the user to complete the activation process through a graphical interface.
[0222] In the above S830, the first device responds to the first activation request and activates the third device under the user account and the device contained in the third device (such as the second device) in the search network.
[0223] In the above S840, after the activation is completed, the first device can send a first activation response to the third device to indicate the activation result of the third device and the device contained in the third device (such as the second device) under the user account.
[0224] Optionally, the third device may periodically broadcast the first activation request until the activation is completed, or until the first activation response sent by the first device is received, or until the first activation response sent by the first device is received, and the first activation response indicates that the third device and the device contained in the third device (such as the second device) are successfully activated under the user account.
[0225] In the above S850, the first association information may include identification information (such as FID) of the third device and the device (such as the second device) contained in the third device in the search network and the identification (such as SN) of the multi-component product. Further, the first device may report the first association information to the cloud for storage. Optionally, the third device may report the first association information to the search information processing module of the first device through a generic attribute (GATT) protocol command.
[0226] In the above S860, the third device may send a first activation message to the device (such as the second device) accommodated by the third device to indicate the activation result of the device (such as the second device) accommodated by the third device under the user account. Optionally, the first activation message may carry a synchronization key, so that the device (such as the second device) accommodated by the third device can encrypt and transmit data with the first device based on the negotiated key, and the device (such as the second device) accommodated by the third device can confirm the activation success based on the synchronization key. If the third device is to synchronize the key to the device accommodated by the third device, it is necessary to extend a GATTcommand to report the search information processing module of the first device.
[0227] If you need to deactivate the third device and the device contained in the third device (such as the second device), you can refer to Figure 8 S870 in the step. The third device may send deactivation information to the first device to instruct the cancellation of activation of the third device and the device contained in the third device under the user account. It should be understood that when the third device and / or the device contained in the third device are in a proximity state, the first device may connect to the third device and / or the device contained in the third device, and reset the state of the connected device to a pending pairing state, and then the association relationship between the first device and the third device and the device contained in the third device may be released through the search module, so as to cancel the activation of the third device and the device contained in the third device under the user account.
[0228] The above device activation process may be imperceptible to the user. In a possible implementation, the first device may complete the device activation during the device pairing phase. Exemplarily, the first device completing the device activation during the pairing phase may include at least part of the following process:
[0229] In step 1, the first device may send a pairing request to the third device over a communication link (eg, a Bluetooth link) in response to a user operation.
[0230] Step 2: The third device generates a pairing request response C0 according to the pre-activation preparation information, and sends the pairing request response C0 to the first device. The pre-activation preparation information may include identification information of the third device in the search network and identification information of the device accommodated by the third device in the search network, and the device accommodated by the third device includes the second device.
[0231] It should be noted that, taking the second device as an example, the identification information of the second device in the search network may be sent by the second device to the third device during the power-on phase. The identification information of the second device in the search network may be the identification information signed by the private key. Optionally, the identification information in the search network may also include a random number and an FID, and then the second device may sign the random number and the FID by the private key.
[0232] Optionally, the third device may encrypt the pre-activation preparation information by using a public key.
[0233] Optionally, the public key and the private key may be a public-private key pair preset in a chip of a device (including the second device, the third device, and other devices that the third device can accommodate). The public key in the public-private key pair is stored in the cloud, and the cloud can authenticate the paired device based on the public key. The public key includes a cloud encryption public key and a cloud signature verification public key.
[0234] Optionally, the identification information of the device in the search network may be preset in a chip of the device.
[0235] It should also be understood that the present application does not limit the pairing stage to the interaction between the first device and the third device to achieve pairing. For example, the third device in the device activation process can be replaced by the device contained in the third device. Assuming that the first device interacts with the second device to achieve pairing, the second device can receive identification information sent by the third device and other devices contained in the third device.
[0236] Step 3: The first device obtains the AT of the user account, calculates C1 and sends it to the cloud.
[0237] Step 4: The cloud determines whether the identification information and the certificate are legitimate based on the pre-stored information, and sends a response message C2 to the first device. The response message is used to indicate the activation result of the third device and the device contained in the third device (such as the second device) under the user account.
[0238] Step 5: The first device calculates a shared key and calculates an activation response message C3 and sends it to the third device. The activation response message is used to indicate the activation result of the third device and the device contained in the third device (such as the second device) under the user account.
[0239] Step 6: The third device calculates the initial public key P, the shared key mk between the third device and the first device, C4, and the association information C5, and sends the initial public key P, C4, and the association relationship C5 to the first device. The association information C5 is used to indicate the association relationship between the third device and the device (such as the second device) contained in the third device in the search network.
[0240] Step 7: The first device calculates the initial public key P, private key d and shared key mk, and sends the associated information C5 to the cloud.
[0241] Step 8, after the third device is paired, the third device may send the key to the device contained by the third device to complete the pairing of the device contained by the third device. Optionally, the third device may send the key to the device contained by the third device via an enhanced dedicated channel (EDCH) to ensure secure transmission of the key. Optionally, the third device may transmit the key via a universal asynchronous receiver / transmitter (UART) interface.
[0242] Optionally, the device activation process may be visually presented to the user, which is not limited in this application.
[0243] In some scenarios, the device contained in the third device (such as the second device) may need to be replaced with a new device due to loss, damage, etc. In this case, activation needs to be performed for the newly added device. Fig.10 An exemplary description is given.
[0244] Fig.10 The interactive flow diagram of a device activation method 900 provided in an embodiment of the present application is shown in FIG. The method 900 may include at least part of the following processes S910 to S960.
[0245] S910, the sixth device sends access information to the third device, where the access information carries identification information of the sixth device in the search network.
[0246] S920, the third device sends a second activation request to the first device, the second activation request carries identification information of the sixth device in the search network. Correspondingly, the first device receives the second activation request sent by the third device.
[0247] S930, the first device activates the sixth device under the user account in the search network.
[0248] S940, the first device sends a second activation response to the third device, where the second activation response is used to indicate the activation result of the sixth device under the user account. Correspondingly, the third device receives the second activation response sent by the first device.
[0249] S950, the third device sends second association information to the first device, the second association relationship is used to indicate updating the association relationship between the third device and the devices contained in the third device (including the sixth device) in the search network. Correspondingly, the first device receives the second association information sent by the third device.
[0250] S960, the third device sends second activation information to the sixth device, where the second activation information is used to indicate the activation result of the sixth device under the user account. Correspondingly, the sixth device receives the second activation information sent by the third device.
[0251] Each step in method 900 is similar to S810 to S860 in method 800. The difference is that in method 900, the third device as a proxy needs to activate the sixth device, but does not need to reactivate other contained devices and the third device.
[0252] Fig.10 The illustrated embodiment provides an efficient and reliable activation solution for updating some components in a multi-component product.
[0253] An embodiment of the present application also provides a positioning method, in which a first device and a second device are connected based on a first Bluetooth link, and the first Bluetooth link is used to transmit an audio signal. In this case, in order to reduce the air interface load, the first device can send an indication message to the second device through the first Bluetooth link, and the indication message is used to instruct the second device to achieve positioning through the first Bluetooth link. Correspondingly, the second device receives the indication message sent by the first device through the first Bluetooth link.
[0254] In some embodiments, the indication information is also used to set the first field in the broadcast information indicating the second device, or other devices accommodated by the second device and the third device, to information indicating the connection state, and the first field is used to indicate whether the corresponding device is in a connection state. For example, in response to the indication information, the second device sets the first field (such as a connected flag) in the broadcast information (such as the first broadcast information) to 1 to indicate that the second device is in a connection state. When the first device receives the broadcast information of the second device, based on the indication of the first field, the second Bluetooth link is no longer established with the second device. The second Bluetooth link is used to realize the positioning of the second device. The second Bluetooth link can be, for example, a BLE link.
[0255] In some embodiments, the indication information is also used to indicate that the second device, or the second device and other devices contained in the third device, are in a proximity state. For example, the second device can set its own state machine to a proximity state in response to the indication information.
[0256] In the various embodiments of the present application, unless otherwise specified or logically conflicting, the terms and / or descriptions between the various embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0257] Fig.11 Schematic block diagram of a positioning device 1000 provided in an embodiment of the present application. Fig.11 As shown, the device 1000 includes at least one of an acquisition module 1010 , a processing module 1020 , and a transceiver module 1030 .
[0258] Exemplarily, the positioning device 1000 can be implemented as the above-mentioned first device. When the positioning device 1000 is implemented as the first device, the acquisition module 1010 can be used to obtain a first query request, and the first query request is at least used to request to query the location information of the second device. A communication link cannot be established between the second device and the positioning device, and the communication link is used to locate the second device; the acquisition module 1010 can also be used to obtain location status information sent by the third device according to the communication status of the third device, and the location status information is used to indicate whether the second device is accommodated in the third device; the processing module 1020 can be used to determine the location information of the second device based on the location status information.
[0259] Exemplarily, when the positioning device 1000 is implemented as the above-mentioned first device, the positioning device 1000 is connected to the second device based on a first Bluetooth link, the first Bluetooth link is used to transmit audio signals, and the transceiver module 1030 can be used to send indication information to the second device through the first Bluetooth link, and the indication information is used to instruct the second device to achieve positioning through the first Bluetooth link.
[0260] Exemplarily, when the positioning device 1000 is implemented as the above-mentioned second device, the positioning device 1000 is connected to the first device based on a first Bluetooth link, the first Bluetooth link is used to transmit audio signals, and the transceiver module 1030 can be used to receive the indication information sent by the positioning device through the first Bluetooth link, and the indication information is used to instruct the second device to achieve positioning through the first Bluetooth link.
[0261] Exemplarily, when the positioning device 1000 is implemented as the above-mentioned third device, the processing module 1020 can be used to determine the location status information, and the location status information is used to indicate whether the second device is accommodated in the positioning device; the transceiver module 1030 can be used to send the location status information according to the communication status of the positioning device.
[0262] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.
[0263] The division of the modules in the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated.
[0264] In the embodiment of the present application, the positioning device (such as the positioning device 1000 described above) can be implemented as an electronic device, or deployed in an electronic device, such as Figure 1 An electronic device 100 is provided in the embodiment of the present invention.
[0265] An embodiment of the present application also provides a positioning system, which may include the first device, the second device and a third device that can accommodate the second device in the aforementioned embodiment.
[0266] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is executed, the method in the above embodiment is implemented.
[0267] An embodiment of the present application also provides a computer program product, including computer program instructions, which enable a computer to execute the method in the above embodiment.
[0268] The term "plurality" in this article refers to two or more. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0269] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.
[0270] It can be understood that in the embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.< / videoview> < / imgview> < / textview>
Claims
1. A positioning method, It is characterized in that Applied to a first device, the method comprises: Obtaining a first query request, where the first query request is at least used to request to query location information of a second device, where a communication link cannot be established between the second device and the first device, and the communication link is used to locate the second device; acquiring, according to the communication state of the third device, location state information sent by the third device, the location state information being used to indicate whether the second device is accommodated in the third device; The location information of the second device is determined according to the location status information.
2. The method according to claim 1, It is characterized in that The acquiring, according to the communication state of the third device, the location state information sent by the third device includes: When the third device is in a proximity state, receiving first broadcast information sent by the third device, the first broadcast information carrying the location state information, and the third device supporting a communication connection with the first device in the proximity state; or When the third device is in a separated state, the location status information sent by the third device and received by the fourth device is obtained. In the separated state, the third device does not support a communication connection with the first device, but supports a communication connection with the fourth device.
3. The method according to claim 1 or 2, It is characterized in that The determining, according to the position status information, the position information of the second device includes: The location status information indicates that the second device is accommodated in the third device, and the location information of the third device is obtained; The location information of the third device is used as the location information of the second device.
4. The method according to claim 3, It is characterized in that The acquiring the location information of the third device includes: When the third device is in a proximity state, positioning the third device to obtain location information of the third device; or, When the third device is in a separated state, location information of the third device obtained by positioning the third device by a fourth device is acquired.
5. The method according to claim 4, It is characterized in that The determining, according to the position status information, the position information of the second device includes: The location status information indicates that the second device is not accommodated in the third device, and the location information of the second device detected by the fifth device is acquired, and the second device supports a communication connection with the fifth device in the separated state.
6. The method according to any one of claims 1 to 5, It is characterized in that Also includes: receiving a first activation request sent by the third device, the first activation request carrying identification information of the third device in the search network and identification information of devices accommodated by the third device in the search network, the devices accommodated by the third device including the second device; activating the third device and the devices contained in the third device under a user account in the search network, wherein the user account is an account logged in by the first device; A first activation response is sent to the third device, where the first activation response is used to indicate activation results of the third device and devices contained in the third device under the user account.
7. The method according to claim 6, It is characterized in that Also includes: First association information sent by the third device is received, where the first association information is used to indicate an association relationship between the third device and a device accommodated by the third device in the search network.
8. The method according to any one of claims 1 to 7, It is characterized in that Also includes: Deactivation information is sent to the third device and / or at least one device contained in the third device, where the deactivation information is used to indicate the cancellation of activation of the third device and the devices contained in the third device under the user account.
9. The method according to any one of claims 1 to 8, It is characterized in that Also includes: receiving a second activation request sent by the third device, the second activation request carrying identification information of a sixth device in the search network, the sixth device being used to replace at least one device accommodated by the third device; activating the sixth device in the user state in the search network; A second activation response is sent to the third device, where the second activation response is used to indicate an activation result of the sixth device under the user account.
10. The method according to claim 9, It is characterized in that Also includes: Second association information sent by the third device is received, where the second association relationship is used to indicate updating of an association relationship between the third device and a device accommodated by the third device in the search network.
11. A positioning method, It is characterized in that Applied to a first device, the first device is connected to a second device based on a first Bluetooth link, the first Bluetooth link is used to transmit an audio signal, and the method includes: Instruction information is sent to the second device via the first Bluetooth link, where the instruction information is used to instruct the second device to achieve positioning via the first Bluetooth link.
12. A positioning method, applied to a second device, the second device is connected to a first device based on a first Bluetooth link, the first Bluetooth link is used to transmit an audio signal, the method include: Instruction information sent by the first device is received through the first Bluetooth link, where the instruction information is used to instruct the second device to achieve positioning through the first Bluetooth link.
13. The method according to claim 11 or 12, It is characterized in that The indication information is also used to indicate that the first field in the broadcast information of the second device, or other devices accommodated by the second device and the third device, is set to information indicating a connection status, wherein the first field is used to indicate whether the corresponding device is in a connection state, and the third device is a device that can accommodate the second device.
14. The method according to any one of claims 11 to 13, It is characterized in that The indication information is further used to indicate that the second device, or the second device and other devices accommodated by the third device, are in proximity.
15. A positioning method, It is characterized in that Applied to a third device, characterized in that the method comprises: determining location status information, the location status information being used to indicate whether the second device is accommodated in the third device; The location status information is sent according to the communication status of the third device.
16. The method according to claim 15, It is characterized in that The sending of the location status information comprises: When the third device is in a proximity state, sending first broadcast information; When the third device is in a separated state, sending second broadcast information; Wherein, both the first broadcast information and the second broadcast information carry the location status information, the second broadcast information also includes information indicating that the third device is in a separated state, the third device supports a communication connection with the first device in the adjacent state, and the third device does not support a communication connection with the first device in the separated state.
17. The method according to claim 15 or 16, It is characterized in that The determining of the position status information comprises: receiving access information sent by the second device, the access information carrying identification information of the second device in the search network; The location status information is determined according to the access information.
18. The method according to any one of claims 15 to 17, It is characterized in that Also includes: Sending a first activation request to the first device, the first activation request carrying identification information of the third device in the search network and identification information of devices accommodated by the third device in the search network, the devices accommodated by the third device including the second device; A first activation response sent by the first device is received, where the first activation response is used to indicate activation results of the third device and the devices contained in the third device under a user account, where the user account is an account logged in by the first device.
19. The method according to claim 18, It is characterized in that Also includes: Sending first activation information to the device accommodated by the third device, where the first activation information is used to indicate an activation result of the device accommodated by the third device under the user account.
20. The method according to any one of claims 15 to 19, It is characterized in that Also includes: A deactivation message sent by the first device is received, where the deactivation message is used to instruct to cancel activation of the third device and the devices contained in the third device under the user account.
21. The method according to any one of claims 15 to 20, It is characterized in that Also includes: Sending a second activation request to the first device, the second activation request carrying identification information of a sixth device in the search network, the sixth device being used to replace at least one device accommodated by the third device; A second activation response sent by the first device is received, where the second activation response is used to indicate an activation result of the sixth device under the user account.
22. The method according to claim 21, It is characterized in that Also includes: Second association information is sent to the first device, where the second association relationship is used to indicate updating of an association relationship between the third device and devices contained in the third device in the search network.
23. A positioning device, It is characterized in that Comprising means for performing the method as claimed in any one of claims 1 to 22.
24. A positioning device, It is characterized in that include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, so that the positioning device executes the method as claimed in any one of claims 1 to 22.
25. A positioning system, It is characterized in that comprising a first device, a second device and a third device capable of accommodating the second device; The first device is used for: Obtaining a first query request, where the first query request is at least used to request to query location information of a second device, where a communication link cannot be established between the second device and the first device, and the communication link is used to locate the second device; acquiring, according to the communication state of the third device, location state information sent by the third device, the location state information being used to indicate whether the second device is accommodated in the third device; The location information of the second device is determined according to the location status information.
26. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program or instruction, and when the computer program or instruction is executed, the method according to any one of claims 1 to 22 is implemented.
27. A computer program product comprising a computer program or instructions, It is characterized in that When the computer program or instruction is executed by a processor, the method according to any one of claims 1 to 22 is implemented.
Citation Information
Patent Citations
Mode control method, earphone system and computer readable storage medium
CN111131966A
Positioning method and system based on a box and double earphones
CN113411713A
Searching method and device of terminal equipment and storage medium
CN115348570A
Equipment searching method, electronic equipment and system
CN115914985A
Device location search method and system
WO2023273480A1
