Positioning method, apparatus and system, and storage medium
By acquiring the position status information of the third device to determine the position of the second device, the problem that the device in the multi-component product is difficult to accurately locate when the communication connection is lost, and the positioning success rate is improved.
Patent Information
- Application Number
- PCT/CN2024/108537
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-11
- Filing Date
- 2024-07-30
- Publication Date
- 2025-03-20
AI Technical Summary
In inter-device interaction scenarios, some devices in multi-component products (such as headphones and headphone boxes) are difficult to achieve accurate positioning when they lose communication connections, such as when the headphones have low battery power or the headphone position exceeds the detection range.
By acquiring the position status information of the third device, the position information of the second device is determined, even if the second device and the first device cannot establish a communication link. The position status information of the third device is used to indicate whether the second device is accommodated in the third device and to position it according to the information.
The success rate of device positioning is improved, especially in the case where the second device and the first device cannot establish a communication connection, ensuring that the equipment in the multi-component product can be accurately positioned.
Smart Images

Figure CN2024108537_20032025_PF_FP_ABST
Abstract
Description
Positioning method, device, system and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on September 11, 2023, with application number 202311171137.9 and application name “Positioning method, device, system and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to a positioning method, device, system, and storage medium. Background Art
[0003] In the application scenario of the device-to-device interaction technology, through the interaction between devices, one device can locate (or search for) other devices, such as searching for mobile phone B through mobile phone A.
[0004] Currently, when the device being searched is a multi-component product (such as a headset and a headset box that can accommodate the headset), some devices in the multi-component product (such as the headset) will be difficult to accurately locate if the communication connection is lost. For example, if the battery of the headset is low, the headset is placed in the headset box, or the headset is out of the detection range and communication connection is impossible, the headset cannot be located.
[0005] Summary of the Invention
[0006] The present application provides a positioning method, apparatus, system and storage medium, which provide 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.
[0007] In a first aspect, embodiments of the present application provide a positioning method. The method may be performed by a first device, which may be an electronic device or deployed in an electronic device, such as a mobile phone, a tablet computer, or a wearable electronic device with wireless communication capabilities (such as a smartwatch).
[0008] The method includes: a first device obtains a first query request, the first query request is used to at least request the location information of a second device; a communication link cannot be established between the second device and the first device, the communication link is used to locate the second device; and based on the communication status of the third device, the first device obtains 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; and then the location information of the second device is determined based on the location status information. In the event that the second device and the first device cannot establish a communication connection, the first device locates the second device by obtaining the location status information sent by the third device, thereby improving the success rate of positioning. Furthermore, the first device obtains the location status information sent by the third device based on the communication status of the third device, thereby avoiding the problem of difficulty in obtaining location status information when the third device cannot connect to the first device, thereby further improving the success rate of positioning.
[0009] When the first device obtains the location status information sent by the third device based on the communication status of the third device, at least two possible implementations may be included:
[0010] Implementation method one: when the third device is in a proximity state, the first device receives the first broadcast information sent by the third device, and the first broadcast information 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 information sent by the third device to obtain the location status information, thereby improving processing efficiency.
[0011] In a second implementation, when the third device is in a separate state, the first device obtains location status information sent by the third device and received by the fourth device. In this separate state, the third device does not support a communication connection with the first device, but supports a communication connection with the fourth device. Therefore, if the first device cannot directly obtain location status information from the third device, it can obtain the location status information of the third device through the fourth device, thereby improving the success rate of locating the second device.
[0012] In the first embodiment, when the location status information of the first device indicates that the second device is accommodated within 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. In this embodiment, if the first device cannot establish a communication connection with the second device, it obtains the location information of the third device to obtain the location information of the second device, thereby accurately locating the second device.
[0013] When the location status information indicates that the second device is accommodated within the third device, the first device obtains the location information of the third device, which can be achieved through at least the following two possible examples:
[0014] In Example 1, when a third device is in proximity, the first device locates the third device and obtains the third device's location information. When the third device is in proximity, the first and third devices support a communication connection. Therefore, the first device can locate the third device to obtain the third device's location information, and thereby obtain the second device's location information. This example achieves high processing efficiency and low processing complexity.
[0015] In Example 2, when the third device is disconnected, the first device obtains the location information of the third device obtained by positioning the third device using the fourth device. In this example, when the first device is unable to directly locate the third device to obtain the second device's location information, the fourth device, in communication with the third device, can locate the third device, thereby improving the success rate of device positioning.
[0016] In a second embodiment, when the location status information indicates that the second device is not housed within 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 this separated state. In this embodiment, the first device cannot directly locate the second device to obtain its location information, and the second device is not housed within the third device. In this case, the first device uses the fifth device, which supports a communication connection with the second device, to locate the second device, thereby improving the success rate of device positioning.
[0017] 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, providing conditions for the first device to successfully search for the pairing device.
[0018] Exemplarily, the first device may receive 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 the devices accommodated by the third device in the search network, where the devices accommodated by the third device include the second device; the first device activates the third device and the devices accommodated by the third device under the user account in the search network, where 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 being used to indicate the activation result of the third device and the devices accommodated by the third device under the user account. The third device acts as an agent to collect identification information of the devices accommodated by it in the search network, and sends its own identification information in the search network and the identification information of the devices accommodated by it 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.
[0019] In some embodiments, a first device receives first association information sent by a third device, where the first association information indicates an association between the third device and a device contained within the third device in a search network. This allows the first device to determine the location information of the second device based on the location status information sent by the third device when searching for the device contained within the third device.
[0020] In some embodiments, the first device may send deactivation information to the third device and / or at least one device hosted by the third device. The deactivation information indicates that the third device and the devices hosted by the third device should be deactivated under the user account. This allows for rapid deactivation and, in turn, cancels the binding relationship between the first device, the third device, and the devices hosted by the third device.
[0021] In some embodiments, a first device can receive a second activation request from a third device. The second activation request carries identification information of a sixth device in the search network. The sixth device replaces at least one device contained by the third device, activates the sixth device in the user's state in the search network, and then sends a second activation response to the third device. The second activation response indicates the activation result of the sixth device under the user account. This provides an efficient and reliable activation solution for updating some components in a multi-component product.
[0022] In some embodiments, a first device may receive second association information sent by a third device, where the second association relationship indicates an update of the association relationship between the third device and devices contained in the third device in the search network. This allows the first device to determine the location information of the second device based on the location status information sent by the third device when searching for devices contained in the third device.
[0023] In a second aspect, an embodiment of the present application provides a positioning method, in which the execution subject is still the first device mentioned above, and the first device is connected to the second device based on a first Bluetooth link, and the first Bluetooth link is used to transmit audio signals.
[0024] 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. 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.
[0025] In some embodiments, the indication information is further 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 a connection state, where 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 (e.g., a connected flag) in the broadcast information (e.g., 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, it no longer establishes a second Bluetooth link with the second device, and the second Bluetooth link is used to locate the second device.
[0026] 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 may set its own state machine to the proximity state, thereby enabling direct communication between the first device and the second device to achieve positioning based on different positioning mechanisms.
[0027] 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 audio signals.
[0028] The method includes: receiving an instruction message sent by the first device through the first Bluetooth link, the instruction message is used to instruct the second device to achieve positioning through the first Bluetooth link.
[0029] In a possible embodiment, 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 connection state.
[0030] 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.
[0031] The beneficial effects of the positioning method provided by the third aspect and its possible implementation methods can be found in the beneficial effects brought about by the second aspect and its possible implementation methods, and will not be repeated here.
[0032] In a fourth aspect, embodiments of the present application provide a positioning method. The method may be performed by a third device, which may be implemented as an electronic device or a component in an electronic device, which may accommodate other electronic devices (such as the electronic device implemented by the second device).
[0033] 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.
[0034] In one possible embodiment, 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 the first broadcast message and the second broadcast message both carry the location status information, and 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.
[0035] 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.
[0036] 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 being used to indicate activation results of the third device and the devices accommodated by the third device under a user account, and the user account being the account used to log in to the first device.
[0037] In a possible implementation, the method further includes: sending first activation information to the device housed by the third device, where the first activation information is used to indicate an activation result of the device housed by the third device under the user account.
[0038] In a possible implementation, the method further includes: receiving deactivation information sent by the first device, where the deactivation information is used to instruct to cancel activation of the third device and the devices contained in the third device under the user account.
[0039] In a possible implementation, it 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; and receiving a second activation response sent by the first device, the second activation response being used to indicate an activation result of the sixth device under the user account.
[0040] 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 an update of an association between the third device and the devices accommodated by the third device in the search network.
[0041] The beneficial effects of the positioning method provided by the fourth aspect and the possible implementation methods of the fourth aspect can be referred to the beneficial effects brought about by the first aspect and the possible implementation methods of the first aspect, and will not be repeated here.
[0042] In a fifth aspect, an embodiment of the present application provides a positioning device, comprising: an acquisition module, configured to acquire a first query request, the first query request being at least used to request querying the location information of a second device, a communication link being unable to be established between the second device and the positioning device, the communication link being used to locate the second device; the acquisition module being further configured to acquire location status information sent by the third device based on the communication status of the third device, the location status information being used to indicate whether the second device is accommodated in the third device; and a processing module, configured to determine the location information of the second device based on the location status information.
[0043] In one possible embodiment, 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 a communication connection with the positioning device in the proximity state; or, when the third device is in a separation state, obtain the location status information sent by the third device received by the fourth device, the third device does not support a communication connection with the positioning device in the separation state, but supports a communication connection with the fourth device.
[0044] 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.
[0045] In one possible embodiment, the processing module is specifically used to: when the third device is in a nearby state, locate the third device to obtain the location information of the third device; or when the third device is in a separated state, obtain the location information of the third device obtained by the fourth device locating the third device.
[0046] In a possible implementation, the processing module is specifically configured to: when the location status information indicates that the second device is not accommodated in the third device, obtain location information of the second device detected by the fifth device, and support a communication connection between the second device and the fifth device in a separated state.
[0047] In a possible embodiment, 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 the identification information of the third device in the search network and the 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.
[0048] In a possible implementation, the transceiver module is further configured to: receive first association information sent by a third device, 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.
[0049] In a possible implementation, the transceiver module is further used to: send deactivation information to the third device and / or at least one device accommodated by the third device, where the deactivation information is used to indicate the cancellation of activation of the third device and the device accommodated by the third device under the user account.
[0050] In one possible embodiment, the transceiver module is also used to: 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, 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.
[0051] In a possible implementation, the transceiver module is further configured to: receive second association information sent by a third device, where the second association relationship is used to indicate an update of an association relationship between the third device and a device contained in the third device in the search network.
[0052] The beneficial effects of the electronic device provided by the fifth aspect and its possible implementation methods can be found in the beneficial effects brought about by the first aspect and its possible implementation methods, and will not be repeated here.
[0053] 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 audio signals, including: a transceiver module, which is 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.
[0054] 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 the connection status, and the first field is used to indicate whether the corresponding device is in a connected state.
[0055] 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.
[0056] 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.
[0057] In a seventh aspect, embodiments of the present application provide a positioning device, wherein the positioning device is connected to a first device via a first Bluetooth link, wherein the first Bluetooth link is used to transmit audio signals, and includes a transceiver module configured to receive instruction information sent by the positioning device via the first Bluetooth link, wherein the instruction information is used to instruct a second device to perform positioning via the first Bluetooth link.
[0058] The beneficial effects of the electronic device provided by the seventh aspect and its possible implementation methods can be found in the beneficial effects brought about by the second aspect and its possible implementation methods, and will not be repeated here.
[0059] In an eighth aspect, an embodiment of the present application provides a positioning device, comprising: a processing module for determining location status information, the location status information being used to indicate whether a second device is accommodated in the positioning device; and a transceiver module for sending the location status information according to the communication status of the positioning device.
[0060] In one possible embodiment, 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 a communication connection with the first device in the proximity state, and does not support a communication connection with the first device in the separation state.
[0061] In a possible implementation, the processing module is specifically configured to: receive access information sent by the second device, where the access information carries identification information of the second device in the search network; and determine location status information based on the access information.
[0062] In one possible embodiment, the transceiver module is also used to send a first activation request to the first device, the first activation request carries the identification information of the positioning device in the search network and the 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.
[0063] In a possible implementation, the transceiver module is further configured 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.
[0064] In a possible implementation, the transceiver module is further configured to receive deactivation information sent by the first device, where the deactivation information is used to instruct the cancellation of activation of the positioning device and the device contained in the positioning device under the user account.
[0065] In one possible embodiment, the transceiver module is also used to send a second activation request to the first device, the second activation request carries the 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.
[0066] In a possible implementation, the transceiver module is further configured 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.
[0067] The beneficial effects of the electronic device provided by the eighth aspect and its possible implementation methods can be referred to the beneficial effects brought about by the first aspect and its possible implementation methods, and will not be repeated here.
[0068] 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.
[0069] 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 realize positioning of 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.
[0070] In the eleventh aspect, an embodiment of the present application provides a chip, comprising: a processor for calling and running computer instructions from a memory, so that a device equipped with the chip executes a method as in the first aspect, the second aspect, the third aspect, the fourth aspect or each possible implementation method.
[0071] 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.
[0072] 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 the method in the first aspect, the second aspect, the third aspect, the fourth aspect or each possible implementation method. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] FIG1 shows a schematic structural diagram of an electronic device;
[0074] FIG2 is a schematic diagram of an application scenario of device positioning provided by an embodiment of the present application;
[0075] FIG3 is a schematic diagram of a positioning system provided in an embodiment of the present application;
[0076] FIG4 is a schematic flow chart of a positioning method provided in an embodiment of the present application;
[0077] FIG5 is a state machine transition flow chart of a pairing device provided in an embodiment of the present application;
[0078] FIG6 a is a schematic diagram of an interaction process of a positioning method provided in an embodiment of the present application;
[0079] FIG6 b is a schematic diagram of an interactive process of a positioning method provided in an embodiment of the present application;
[0080] FIG7 a is a schematic diagram of an interaction process of a positioning method provided in an embodiment of the present application;
[0081] FIG7 b is a schematic diagram of an interaction process of a positioning method provided in an embodiment of the present application;
[0082] FIG8 is a schematic diagram of an interactive process of a positioning method provided in an embodiment of the present application;
[0083] FIG9 is a schematic diagram of an interactive process of a device activation method provided in an embodiment of the present application;
[0084] FIG10 is a schematic diagram of an interactive process of a device activation method provided in an embodiment of the present application;
[0085] FIG11 is a schematic block diagram of a positioning device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0086] 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. 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.
[0087] 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.
[0088] The term "user interface (UI)" in the specification, claims and drawings of this application refers to the media 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 a 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>Nodes such as Node.js 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.
[0089] A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operations that uses graphics. It can be an icon, window, control, or other interface element displayed on the display of an electronic device. Controls can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other visual interface elements.
[0090] FIG1 is a schematic diagram of the structure of an electronic device. Referring to FIG1 , the electronic device may include: a processor 110 (e.g., a CPU) and a memory 120. The memory 120 may include high-speed random-access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device. The memory 120 may store various instructions for performing various processing functions and implementing the method steps of the present application.
[0091] Optionally, the electronic device involved in this application may further include: a power supply 130, a communication bus 140, and a communication port 150. The communication port 150 is used to enable communication between the electronic device and other peripheral devices. In the embodiment of the present application, the memory 120 is used to store computer-executable program code, which 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. The implementation principles and technical effects are similar and will not be repeated here.
[0092] 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 the interface of the electronic device.
[0093] 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), one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented by scheduling program code on a processing element, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code, 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).
[0094] The electronic device 100 may include an audio module 170 , which implements audio functions such as receiving audio signals, playing music, and recording audio through a speaker 171 , a receiver 172 , a microphone 173 , an earphone jack 174 , and an application processor.
[0095] 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 provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0096] The speaker 171, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 171.
[0097] The receiver 172, also called a "handset", 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 heard by placing the receiver 172 close to the human ear.
[0098] The microphone 173, also known as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 173 to input the sound signal into the microphone 173. The electronic device 100 can be provided with at least one microphone 173. In other embodiments, the electronic device 100 can be provided with two microphones 173, which can not only collect sound signals but also implement noise reduction functions. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 173 to collect sound signals, reduce noise, identify the sound source, implement directional recording functions, etc.
[0099] Figure 2 is a schematic diagram of a device positioning application scenario 200 provided by an embodiment of the present application. As shown in Figure 2, a first device 210 and a second device 220 are in communication with each other. First device 210 can be implemented as the aforementioned electronic device; second device 220 can be a multi-component product, such as a multi-component product 221 consisting of a wireless headset and a headset case, or a multi-component product 222 consisting of a wireless headset and a watch.
[0100] The wireless headset can be used in conjunction with the first device 210 to process audio services such as media and calls on the electronic device, as well as other data services. For example, audio services may include playing music, recording, and receiving call notification sounds for the user. They may also include playing voice from the other end for the user or collecting the user's voice data and sending it to the other end in call service scenarios such as phone calls, voice messages, audio calls, video calls, games, and voice assistants.
[0101] The storage box for the wireless earphones in the second device 220 can be independently provided, such as 221 in Figure 2, and the wireless earphones can be stored in the earphone box; or the earphone box for the wireless earphones in the second device 220 can be provided in an electronic device (such as a watch), such as 222 in Figure 2. This application does not limit the number of wireless earphones. For example, the second device 220 can be a single-ear earphone device including one wireless earphone, a dual-ear earphone device including two wireless earphones, or a shared earphone device including three or more wireless earphones.
[0102] In some embodiments, the wireless headset in this application may include: a processor, a memory, a speaker, a communication port, etc. The processor, the memory, the speaker, and the communication port can refer to the relevant description of the corresponding modules in the electronic device.
[0103] In some embodiments, the earphone box in the present application may include: a processor, a memory, a speaker, a communication port, etc. The processor, memory, speaker, and communication port can refer to the relevant description of the corresponding modules in the electronic device.
[0104] When the wireless headset is placed in the headset case, the first device 210 is in communication with the headset case or the electronic device provided with the headset case in the second device 220. When the wireless headset is placed outside the headset case, the first device 210 is in communication with both the headset case in the second device 220 and the wireless headset placed outside the headset case.
[0105] The components of the first device 210 and the second device 220 (such as the earphones and / or the earphone box) can be connected based on Bluetooth technology, but this application is not limited to this. For example, the connection can also be based on any near-field communication technology. When the first device 210 and the components of the second device (such as the earphones and / or the earphone box) cannot communicate with each other, such as when they are out of communication coverage, the connection will be disconnected.
[0106] In some scenarios, the wireless headset in the second device 220 is difficult to locate because it cannot connect to the first device 210. 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 required to establish a communication connection; Example 3: The communication function of the wireless headset in the second device 220 is abnormal.
[0107] 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 for positioning with the first device 210, the headset box in the second device 220 implements an agent function and interacts with the first device 210 (including direct interaction or indirect interaction) to achieve positioning of the wireless headset.
[0108] FIG3 is 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 the devices 311-1 to 311-n can be implemented as an electronic device, and some electronic devices (such as 311-4 to 311-6) can constitute a multi-component product. Among them, devices 311-1 and 311-4 to 311-6 can be paired devices. In this case, device 311-1 can implement the search for at least one of 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.
[0109] Devices 311-1 and 311-4 through 311-6 are paired devices, or in other words, devices 311-1 and 311-4 through 311-6 belong to the same user account. Device 311-1 can be referred to as the owner device. When device 311-1 searches for device 311-4, device 311-4 can be referred to as the 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 referred to as the assisting device (or good Samaritan device).
[0110] The cloud 320 may be implemented as a cloud server.
[0111] The cloud may include a search network cloud, which may be used to authenticate and verify devices when pairing devices, 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, which the main device can decrypt based on the key, while other devices in the search network cannot access the location information of the search device due to lack of the key, thereby ensuring the security of the location information.
[0112] 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 or reads the location information of the search device, location status information related to the search device, etc. to the search network cloud; 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 a search page from the cloud 320, and then presenting the search page.
[0113] The embodiments of the present application do not limit the method by which the primary device or the auxiliary device locates the search device. For example, positioning can be achieved based on Bluetooth communication or based on detection information. The detection information can be an ultrasonic signal, but this application does not limit this. For example, it can also be an infrared signal.
[0114] This application does not limit the composition of a multi-component product. In the embodiments of this application, a multi-component product may also include other device combinations, such as smart glasses and glasses cases. 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.
[0115] 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)," and the two are used interchangeably to express the same meaning. Furthermore, for convenience, the meaning remains unchanged after changing the word order. For example, "locating a device (or equipment)" can also be expressed as "locating the device (or equipment)."
[0116] The positioning method provided in the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0117] It should be understood that the following is for ease of understanding and explanation only. The embodiments of the present application are described using the first device as the execution subject as an example. The first device may be the first device 210 in Figure 2 or the device 311-1 in Figure 3. In some embodiments, the interaction between the first device, the second device, and the third device is described as an example. The second device may be a wireless headset in the second device 220 in Figure 2 or the device 311-4 in Figure 3, and the third device may be the headset box in the second device 220 in Figure 2 or the device 311-6 in Figure 3. In 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. The fourth device may be the device 311-2 in Figure 3, and the fifth device may be the device 311-3 in Figure 3.
[0118] However, it should be understood that this does not constitute any limitation on the execution subject of the method provided in this application. As long as it is possible to run a code program that records the method provided in the embodiment of the present application, in accordance with the method provided in the embodiment of the present application, it can serve 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 module that can call a program and execute a program; 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 module that can call a program and execute a program; the third device can be implemented as an earphone box in the second device 220 or a component in the device 311-6, such as a chip, a chip system or other functional module that can call a program and execute a program.
[0119] 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 programs. For ease of understanding, it is collectively referred to as a search device below.
[0120] Fig. 4 is a schematic flow chart of a positioning method 400 provided in an embodiment of the present application. As shown in Fig. 4 , the method 400 may include the following steps S410 to S430.
[0121] S410: A first device obtains a first query request, where the first query request is used to query at least location information of a second device. A communication link cannot be established between the second device and the first device, where the communication link is used to locate the second device.
[0122] S420: The first device obtains, based on a positional relationship between the third device and the first device, location status information sent by the third device, where the location status information indicates whether the second device is accommodated within the third device.
[0123] S430: Determine the location information of the second device according to the location status information.
[0124] The first query request may be input by a user, or in other words, the first query request may be generated in response to a user operation. The first query request may request the location information of one or more devices (or equipment) in a multi-component product. Taking a wireless headset and an earphone case as an example, the first query request may request the location information of one or more wireless headsets and / or earphone cases. In the present application, the first query request is at least used to request the location information of a second device. Still taking a wireless headset and an earphone case as an example, the first query request may request the location information of one wireless headset, or the first query request may request the location information of two wireless headsets, or the first query request may request the location information of two wireless headsets and an earphone case, and so on.
[0125] 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. For the sake of brevity, it will not be repeated here.
[0126] The first device, the second device, the third device, and the devices that the third device can accommodate may be associated with each other. For example, the second device, the third device, and the devices that the third device can accommodate may have been paired with the first device, or the second device, the third device, and the devices that the third device can accommodate may belong to the same user account as the first device. For ease of description, devices associated with the first device are referred to as paired devices below.
[0127] 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 positioning based on a Bluetooth link. For details, please refer to the positioning process of the example below.
[0128] 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 the sake of brevity. When a communication link cannot be established between the second device and the first device, the location information of the second device may be determined based on the positional relationship between the second device and a third device, such as whether the second device is accommodated within the third device.
[0129] 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 another device (such as a fourth device) and the third device. The other device (such as the fourth device) may, for example, belong to the above-mentioned search network.
[0130] 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.
[0131] 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 power of the paired device or the first device is insufficient (such as below the power threshold).
[0132] 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.
[0133] The aforementioned communication status may apply 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.
[0134] 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 whether 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 if it does not receive the response message of the first device within a preset time period.
[0135] 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.
[0136] Figure 5 is a state machine transition flow chart for a pairing device provided in an embodiment of the present application. For any of the paired devices, such as the second device, the third device, or other devices that the third device can accommodate, the state machine transition process shown in Figure 5 can be satisfied. As shown in Figure 5, after a 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 proximate state; after the paired device is restarted, the paired device enters a separated state by default.
[0137] When in proximity, the paired devices can periodically transmit a first broadcast message and maintain proximity by receiving response messages from the first device. When the paired devices are in proximity, the first device can establish a communication link with the paired device. After the communication link is established, the paired devices are in a connected state. When the paired devices are in proximity, if no response message from the first device is received within a preset time period after the last response message from the first device is received, the paired devices determine that they have entered a separated state.
[0138] While in the separated state, the paired devices may transmit a second broadcast message, such as periodically, that includes information indicating the paired devices are in the separated state. While the paired devices are in the separated state, the first device may establish a communication link with the paired device, such as by initiating a reconnection with the paired device after the paired device has been restarted for a period of time, or by initiating a reconnection with the paired device after the first device has been recharged. If the paired devices receive a response from the first device to the second broadcast message while in the separated state, they may determine that they have entered the proximity state.
[0139] 6a and 6b , the positioning method of the embodiment of the present application is exemplarily described below with the third device being in an adjacent state and a separated state, respectively.
[0140] FIG6a is a schematic diagram of an interaction process of a positioning method 500a provided in an embodiment of the present application. As shown in FIG6a , the method 500a includes at least some of the following steps S510a to S530a:
[0141] S510a, the third device determines location status information;
[0142] S520a, when the third device is in a nearby state, the third device sends a first broadcast message, and the first broadcast message carries location status information. Correspondingly, when the third device is in a nearby state, the first device receives the first broadcast message sent by the third device to obtain the location status information.
[0143] 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.
[0144] 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.
[0145] 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.
[0146] In the above S530a, the location status information indicates that the second device is accommodated 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 obtaining the location information of the third device.
[0147] It should be noted that this application does not limit the order in which the first device obtains the first query request and obtains the location status information. The third device may periodically send the first broadcast information, and the first device, in response to the first query request, may determine the location status information from the most recently received first broadcast information.
[0148] FIG6b is a schematic diagram of an interactive process of a positioning method 500b provided in an embodiment of the present application. As shown in FIG6b , the method 500b includes at least some of the following steps S510a to S550b:
[0149] S510b, the third device determines the location status information;
[0150] S520b, when the third device is in a separated state, the third device sends a second broadcast message, and the second broadcast message carries location status information. 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.
[0151] S530b, the fourth device reports location status information to the cloud.
[0152] 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.
[0153] 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.
[0154] The above S510b is similar to S510a, and the above S550b is similar to S530a, which will not be repeated for the sake of brevity.
[0155] In the above S520b, if the third device is in a separated state, as mentioned above, 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 that can receive the second broadcast information is introduced to receive the broadcast information sent by the third device through the fourth device.
[0156] In S530b above, the fourth device may determine the location status information from the received broadcast information and report the location status information to the cloud. For device security reasons, the location status information in the second broadcast information may be encrypted using a key. The first device can decrypt the encrypted location status information using 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. Other devices, due to lack of the key, are unable to parse the encrypted location status information in the cloud, thereby ensuring the security of the location status information sent by the third device in the cloud.
[0157] In the above S540b, the first device may read the location status information of the third device from the cloud.
[0158] It should be noted that the embodiments shown in Figures 6a and 6b do not limit the order in which the first device obtains the first query request and obtains the location status information. The third device may periodically send the first broadcast information, and the first device, in response to the first query request, may determine the location status information from the most recently received first broadcast information.
[0159] Taking a multi-component product consisting of wireless headphones and a headphone case as an example, in the embodiments shown in Figures 6a and 6b, since the headphone case can maintain its ability to be found in a low-power state for a long time, the wireless headphones enter an extremely low-power mode after being placed in the case to meet the headphone's low-power requirements. In this case, the wireless headphones and headphone case, as a whole, interact with the first device using the headphone case as a proxy to locate at least one device in the multi-component product.
[0160] 7a and 7b , an exemplary description is given below 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.
[0161] FIG7a is a schematic diagram of an interaction process of a positioning method 600a provided in an embodiment of the present application. As shown in FIG7a , the method 600a includes at least some of the following steps S610a to S660a:
[0162] S610a: The second device sends access information to the third device. The access information carries identification information of the second device in the search network.
[0163] S620a, the third device determines the location status information according to the access information.
[0164] 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 status information.
[0165] S640a: The first device locates the third device to obtain location information of the third device.
[0166] In S610a above, when the second device is connected to the third device (i.e., housed in the third device), the second device sends access information to the third device. This access information can be triggered after the second device and the third device are connected. After the second device is connected to the third device, the second device can connect to the third device by contact, or after the second device is connected to the third device, the second device can connect to the third device by wireless connection. This application does not limit this. When the multi-component product is a headset and a headset box, the second device connecting to the third device can be understood as the second device entering the box and establishing a connection with the third device.
[0167] In S620a above, the third device may determine that the second device has accessed based on the identification information of the second device in the search network carried in the access information, and the location status information determined by the third device may include information indicating that the second device has accessed. The identification information of the second device in the search network may be a find network identification (FID).
[0168] Optionally, the access information may further 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).
[0169] The above S630a is similar to S520a in the above example and will not be described again for the sake of brevity.
[0170] 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 location information of the third device.
[0171] As an example, a first device can receive detection information sent by a third device to locate the third device and determine the third device's location information based on the received detection information. For example, if the detection information is an ultrasonic signal, the first device can send a positioning instruction to the third device. In response to the positioning instruction, the third device can transmit an ultrasonic signal via a speaker. The first device can then receive the ultrasonic signal sent by the third device via a microphone and estimate the third device's location information based on the ultrasonic signal.
[0172] As another example, a first device may send detection information to a third device to locate the third device. For example, if the detection information is an ultrasonic signal, the first device may transmit the ultrasonic signal to the third device via a speaker and receive a reflection signal from the third device via a microphone, thereby estimating the location of the third device based on the received reflection signal.
[0173] 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.
[0174] As another example, the first device may send detection information to the third device. The third device may determine its own location information based on the received detection information and send the location information to the first device.
[0175] Optionally, the location information of the third device includes a 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 on which the screen of the first device is located.
[0176] 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 locating the third device, in order to improve the accuracy of positioning, the first device can determine the angle between the third device and the first device by performing rotation de-mirroring. Among them, rotation de-mirroring can be achieved by the user rotating the mobile phone. For example, the first device presents a rotation de-mirroring operation prompt, such as "rotate the phone", through the interface of the display screen 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 phone and the ultrasonic signal (or reflected signal) received after the user rotates the phone.
[0177] In some embodiments, during the process of a first device locating a third device, the first device may receive timing information sent by the third device, determine the time offset between the first and third devices based on the timing 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. For example, 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.
[0178] Illustratively, the first device may notify the third device via Bluetooth to perform Bluetooth time synchronization. For example, the third device may send one or more time synchronization frames to the first device in response to a positioning instruction. The time synchronization frames carry information such as the sending time and the callback time. After receiving the time synchronization frames sent by the third device, the first device calculates the time offset and thereby corrects the time difference between the first device and the third device.
[0179] In the above S640a, the location status information indicates that the second device is accommodated in the third device. In this case, the first device can locate the second device by obtaining the location information of the third device.
[0180] In this embodiment, when the second device is accommodated 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.
[0181] FIG7b is a schematic diagram of an interactive process of a positioning method 600b provided in an embodiment of the present application. As shown in FIG7b , the method 600b includes at least some of the following steps S610b to S660b:
[0182] S610b: The second device sends access information to the third device. The access information carries identification information of the second device in the search network.
[0183] S620b: The third device determines the location status information based on the access information.
[0184] 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.
[0185] S640b: The fourth device locates the third device to obtain location information of the third device.
[0186] S650b: The fourth device reports location information.
[0187] 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.
[0188] The above S610b and S620b are respectively the same as S610a and S620a in FIG7a , and are not described again for the sake of brevity.
[0189] The above S630b is similar to S520b in the above example and will not be described again for the sake of brevity.
[0190] In the above S640a, the fourth device supports a 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 can locate the third device by referring to the positioning process of the first device by the third device in the above example, which will not be repeated for the sake of brevity.
[0191] Optionally, the first device may send a search request to the cloud to request a device in the search network to locate the third device, and the fourth device locates the third device in response to the search request.
[0192] In S650a above, the fourth device may transmit 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.
[0193] In S660a above, the location status information indicates that the second device is contained within the third device. In this case, the first device can locate the second device by obtaining the location information of the third device. However, since the third device is separated, the first device cannot directly locate the third device. Therefore, the first device can obtain the location information of the third device from the cloud, obtained by locating the third device using the fourth device.
[0194] 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 supports communication with the third device can locate the third device, thereby improving the success rate of device positioning.
[0195] It should be noted that, in the embodiments shown in Figures 7a and 7b above, during the process of the third device sending broadcast information and positioning, the third device maintains the same communication state. For example, in Figure 7a, the third device is in a neighboring state, then a first broadcast message is sent to transmit the location status information, and the first device locates the third device. For another example, in Figure 7b, the third device is in a separated state, then a second broadcast message is sent to transmit the location status information, and the fourth device locates the third device. However, the present application does not limit the third device to always maintaining the same communication state. For example, the third device is in a neighboring state when sending broadcast information and switches to a separated state during the positioning process, or the third device is in a separated state when sending broadcast information and switches to a neighboring state during positioning.
[0196] Figure 8 is a schematic diagram of the interaction flow of a positioning method 700 provided in an embodiment of the present application. In conjunction with Figure 8, a possible implementation method for locating the second device when the second device is not accommodated within a third device is provided. This implementation method does not limit the communication state of the third device; for ease of understanding, the third device is described as being in proximity. Method 700 shown in Figure 8 may include at least some of the following processes, S710 through S760.
[0197] S710: The second device sends access information to the third device. The access information carries identification information of the second device in the search network.
[0198] S720: The third device determines the location status information based on the access information.
[0199] S730: When the third device is in a proximity state, the third device sends first broadcast information, where the first broadcast information carries location status information.
[0200] S740: The fifth device locates the first device to obtain location information of the second device.
[0201] S750: The fifth device reports location information.
[0202] 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.
[0203] The above S710 to S730 are respectively the same as S610a to S630a in FIG7a , and are not described again for the sake of brevity.
[0204] In the above S740, the fifth device supports a 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 can locate the second device by referring to the positioning process of the first device for the third device in the above example, which will not be repeated for the sake of brevity.
[0205] Optionally, the first device may send a search request to the cloud to request a device in the network to locate the second device, and the fifth device locates the second device in response to the search request.
[0206] In S750 above, the fifth device may transmit 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.
[0207] In S760 above, 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, since the second device and the first device cannot establish a connection, the first device cannot directly locate the second device. Therefore, the first device can obtain the second device's location information from the cloud, which is obtained by the fifth device locating the second device.
[0208] 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 supports communication with the second device is used to locate the second device, thereby improving the success rate of device positioning.
[0209] 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 location status information when the third device cannot connect to the first device, thereby further improving the success rate of positioning.
[0210] As shown in Figure 5, before the paired device and the first device establish a communication connection, the offline paired device can be activated. For example, when the device to be paired is close to the first device, the first device can pair with it in response to a user operation (e.g., Bluetooth pairing). Furthermore, the first device can determine whether the paired device is activated during the network search. If not, the activation process can be initiated. After activation is complete, the paired device can be in a connected state.
[0211] The activation process is exemplarily described below with reference to FIG9 .
[0212] FIG9 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 S870 in FIG9 is used to exemplarily illustrate deactivation.
[0213] S810: The second device sends access information to the third device. The access information carries identification information of the second device in the search network.
[0214] At 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, where the devices accommodated by the third device include the second device. In response, the first device receives the first activation request sent by the third device.
[0215] S830: The first device activates a third device and a device contained in the third device (such as the second device) under a user account in the search network, where the user account is the account logged in by the first device.
[0216] At step S840, the first device sends a first activation response to the third device. The first activation response indicates the activation result of the third device and the devices contained in the third device (e.g., the second device) under the user account. Accordingly, the third device receives the first activation response sent by the first device.
[0217] S850: The third device sends first association information to the first device, where the first association information indicates an association relationship between the third device and a device contained in the third device (eg, the second device) in the search network. Accordingly, the first device receives the first association information sent by the third device.
[0218] At step S860, the third device sends a first activation message to a device hosted by the third device (e.g., the second device). The first activation message indicates the activation result of the device hosted by the third device (e.g., the second device) under the user account. In response, the device hosted by the third device (e.g., the second device) receives the first activation message sent by the third device.
[0219] The above S810 has been explained in the above example and will not be repeated for the sake of brevity.
[0220] 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, avoiding the first device from activating the third device and one or more devices it can accommodate separately, thereby improving processing efficiency and success rate.
[0221] Optionally, after pairing with a third device, the first device may determine whether the third device and any devices contained within the third device (e.g., the second device) are activated in the search network. If any of the third device or any of the devices contained within the third device are unactivated, the first device may initiate an activation process. Optionally, during the activation process, the first device may send an activation instruction to the third device, and the third device may, in response to the activation instruction, send a first activation request to the first device.
[0222] 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.
[0223] Optionally, the first device may guide the user to complete the activation process through a graphical interface.
[0224] In the above S830, the first device 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 in response to the first activation request.
[0225] In the above S840, after the activation is completed, the first device may send a first activation response to the third device to indicate the activation results of the third device and the device contained in the third device (such as the second device) under the user account.
[0226] 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.
[0227] In S850 above, the first association information may include identification information (e.g., FID) of the third device and the device contained in the third device (e.g., the second device) in the search network, as well as the identification information (e.g., SN) of the multi-component product. Furthermore, 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 via a generic attribute (GATT) protocol command.
[0228] In the above S860, the third device may send a first activation message to the device accommodated by the third device (such as the second device) to indicate the activation result of the device accommodated by the third device (such as the second device) under the user account. Optionally, the first activation message may carry a synchronization key, so that the device accommodated by the third device (such as the second device) can encrypt and transmit data with the first device based on the negotiated key, and the device accommodated by the third device (such as the second device) can confirm that the activation is successful 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 GATT command to report the search information processing module of the first device.
[0229] If it is necessary to deactivate the third device and the device contained in the third device (such as the second device), please refer to S870 in Figure 8. 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 neighboring 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 waiting-for-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.
[0230] The device activation process may be imperceptible to the user. In one 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:
[0231] 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.
[0232] In step 2, the third device generates a pairing request response C0 based on 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 devices accommodated by the third device in the search network, where the devices accommodated by the third device include the second device.
[0233] It should be noted that, using 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 power-up. The identification information of the second device in the search network may be identification information signed with a private key. Optionally, the identification information in the search network may also include a random number and an FID, and the second device may sign the random number and FID using a private key.
[0234] Optionally, the third device may encrypt the pre-activation preparation information using a public key.
[0235] Alternatively, the public and private keys may be a public-private key pair pre-installed in a chip within the device (including the second device, the third device, and any 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-based encryption public key and a cloud-based signature verification public key.
[0236] Optionally, the identification information of the device in the search network may be preset in a chip of the device.
[0237] It should also be understood that this application is not limited to the pairing phase being achieved by interaction between the first device and the third device. For example, the third device during device activation can be replaced with a device contained within the third device. Assuming that the first device and the second device interact to achieve pairing, the second device can receive identification information sent by the third device and other devices contained within the third device.
[0238] Step 3: The first device obtains the AT of the user account, calculates C1 and sends it to the cloud.
[0239] In step 4, the cloud determines whether the identification information and certificate are valid based on pre-stored information and sends a response message C2 to the first device. The response message indicates the activation result of the third device and the device contained in the third device (such as the second device) under the user account.
[0240] In step 5, the first device calculates a shared key and sends an activation response message C3 to the third device. The activation response message indicates the activation result of the third device and the device contained in the third device (such as the second device) under the user account.
[0241] In 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 association information C5, and sends the initial public key P, C4, and association relationship C5 to the first device. Association information C5 indicates the association relationship between the third device and the device it hosts (e.g., the second device) in the search network.
[0242] In 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.
[0243] In step 8, after pairing with the third device is complete, the third device may transmit the key to the device hosted by the third device to complete the pairing of the third device and the device hosted by the third device. Optionally, the third device may transmit the key to the device hosted by the third device via an enhanced dedicated channel (EDCH) to ensure secure key transmission. Optionally, the third device may transmit the key via a universal asynchronous receiver / transmitter (UART) interface.
[0244] Optionally, the device activation process may be visually presented to the user, which is not limited in this application.
[0245] In some scenarios, the device (such as the second device) contained in the third device may need to be replaced with a new device due to loss, damage, etc. In this case, activation is required for the newly added device.
[0246] Figure 10 is a schematic diagram of an interactive process of a device activation method 900 provided in an embodiment of the present application. The method 900 may include at least part of the following processes S910 to S960.
[0247] S910: The sixth device sends access information to the third device. The access information carries identification information of the sixth device in the search network.
[0248] S920: The third device sends a second activation request to the first device, where 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.
[0249] S930: The first device activates a sixth device under the user account in the search network.
[0250] S940: The first device sends a second activation response to the third device, where the second activation response indicates 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.
[0251] S950: The third device sends second association information to the first device, where the second association relationship indicates updating the association relationship between the third device and the devices contained in the third device (including the sixth device) in the search network. Accordingly, the first device receives the second association information sent by the third device.
[0252] S960: The third device sends second activation information to the sixth device, where the second activation information indicates the activation result of the sixth device under the user account. In response, the sixth device receives the second activation information sent by the third device.
[0253] Each step in method 900 is similar to steps 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 hosted devices and the third device.
[0254] The embodiment shown in FIG10 provides an efficient and reliable activation solution for updating some components in a multi-component product.
[0255] 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 audio signals. In this case, 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. Accordingly, the second device receives the indication information sent by the first device through the first Bluetooth link.
[0256] In some embodiments, the indication information is further 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 a connection state, where 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 (e.g., a connected flag) in the broadcast information (e.g., 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, a second Bluetooth link is no longer established with the second device. The second Bluetooth link is used to achieve positioning of the second device. The second Bluetooth link can be, for example, a BLE link.
[0257] In some embodiments, 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 a proximity state. For example, in response to the indication information, the second device may set its own state machine to the proximity state.
[0258] In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between the various embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0259] FIG11 is a schematic block diagram of a positioning device 1000 according to an embodiment of the present application. As shown in FIG11 , the positioning device 1000 includes at least one of an acquisition module 1010 , a processing module 1020 , and a transceiver module 1030 .
[0260] 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 based on 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.
[0261] 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.
[0262] For example, when positioning device 1000 is implemented as the aforementioned second device, positioning device 1000 is connected to the first device via a first Bluetooth link, where the first Bluetooth link is used to transmit audio signals. Transceiver module 1030 can be configured to receive instruction information sent by the positioning device via the first Bluetooth link, where the instruction information is used to instruct the second device to perform positioning via the first Bluetooth link.
[0263] 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, which 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.
[0264] 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.
[0265] The division of the modules in the above devices 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.
[0266] 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 the electronic device 100 in FIG1 .
[0267] An embodiment of the present application further provides a positioning system, which may include the first device, the second device, and a third device capable of accommodating the second device in the aforementioned embodiment.
[0268] 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.
[0269] 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.
[0270] The term "plurality" in this article refers to two or more. The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: 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 a 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.
[0271] It will be understood that the various numerical numbers involved in the embodiments of the present application are merely distinctions for the convenience of description and are not intended to limit the scope of the embodiments of the present application.
[0272] 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, 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, 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, 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, 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, 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, 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, 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, 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, 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; Sending a second activation response to the third device, wherein the second activation response is used to indicate that the sixth device is in the user account The activation result under number.
10. The method according to claim 9, 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, 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 being connected to a first device based on a first Bluetooth link, the first Bluetooth link being used to transmit an audio signal, the method comprising: 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, 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 connected 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, 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, 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, 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, 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, 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, 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, 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, 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; receiving a second activation response sent by the first device, wherein the second activation response is used to indicate that the sixth device is in a user account; The activation result under number.
22. The method according to claim 21, 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, characterized in that: Comprising means for performing the method as claimed in any one of claims 1 to 22.
24. A positioning device, 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, 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, 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, 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
Earphone box, and control method based on earphone box
CN108093328A
Mode control method, earphone system and computer readable storage medium
CN111131966A
Interaction method and system based on Bluetooth headset
CN112822594A
Method, device, terminal and system for searching Bluetooth earphone in charging bin
CN115086933A
Device location search method and system
WO2023273480A1