Positioning method, device, system and storage medium

By obtaining the position status information of the third device, the problem of difficulty in positioning of multi-component products when the equipment performance or position is limited is solved, and a higher positioning success rate and system reliability are achieved.

CN118764948BActive Publication Date: 2025-06-17HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311171137.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-11
Publication Date
2025-06-17
Estimated Expiration
2043-09-11

AI Technical Summary

Technical Problem

In inter-device interaction scenarios, it is difficult to achieve accurate positioning of multi-component products (such as headphones and headphone boxes) when the equipment performance is limited or the location is limited, especially when the headphones are low in power, enter the box, or exceed the detection range.

Method used

By acquiring the position status information of the third device, the position information of the second device (such as a headset) is determined, even if the first device and the second device cannot establish a communication link. The specific implementation method includes obtaining position status information by broadcasting information or indirectly obtaining position status information when the third device is in an adjacent or separated state.

Benefits of technology

It improves the success rate of equipment positioning, ensures accurate positioning can be achieved even when equipment performance or position is limited, and enhances the reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764948B_ABST
    Figure CN118764948B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a positioning method, device, system, and storage medium. The method can be applied to a first device, and the first device can be implemented as an electronic device or deployed on an electronic device. The method includes: the first device obtains a first query request, the first query request is at least used to request to query 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 implement positioning of the second device, and according to the communication status of a 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, and then determine the location information of the second device according to the location status information. In the case where a communication connection cannot be established between the second device and the first device, the first device realizes the positioning of the second device by obtaining the location status information sent by the third device, so as to improve the success rate of positioning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular, to a positioning method, device, system, and storage medium. Background Art

[0002] In the application scenario of device - to - device interaction technology, through the interaction between devices, one device can locate (or search for) other devices. For example, mobile phone A can search for mobile phone B.

[0003] Currently, when the device to be searched is a multi - component product (such as including a headset and a headset case that can accommodate the headset), some devices in the multi - component product (such as the headset) are difficult to accurately locate when the communication connection is lost. For example, when the battery power of the headset is low, the headset is placed inside the headset case, or the position of the headset is beyond the detection range and unable to establish a communication connection, the headset cannot be located. Summary of the Invention

[0004] This application provides a positioning method, device, system, and storage medium, which provides a positioning solution for devices that cannot be accurately located due to limited device performance or limited device location, so as to achieve accurate positioning.

[0005] In a first aspect, an embodiment of this application provides a positioning method. The execution subject of this method can be a first device, and the first device can be an electronic device or deployed on an electronic device. The electronic device can be, for example, a mobile phone, a tablet computer, a wearable electronic device with wireless communication function (such as a smart watch), etc.

[0006] The method includes: The first device obtains a first query request. The first query request is at least used to request to query the location information of a second device. 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. Then, according to the communication state of a third device, the first device obtains 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. Then, according to the location status information, the first device determines the location information of the second device. In the case where a communication connection cannot be established between the second device and the first device, the first device realizes the positioning of the second device by obtaining the location status information sent by the third device, so as to improve the success rate of positioning. Further, the first device obtains the location status information sent by the third device according to the communication state of the third device, avoiding the problem that it is difficult to obtain the location status information when the third device cannot be connected to the first device, and further improving the success rate of positioning.

[0007] When the first device obtains the location status information sent by the third device according to the communication state of the third device, it may include at least two possible implementation manners as follows:

[0008] In Implementation Mode 1, when the third device is in the adjacent state, the first device receives the first broadcast message sent by the third device. The first broadcast message carries the position status information. The third device supports a communication connection with the first device in the adjacent state. Based on this, the first device can directly receive the first broadcast message sent by the third device to obtain the position status information, improving the processing efficiency.

[0009] In Implementation Mode 2, when the third device is in the separated state, the first device obtains the position status information of the third device received by the fourth device. The third device does not support a communication connection with the first device in the separated state, but supports a communication connection with the fourth device. Based on this, when the first device cannot directly obtain the position status information from the third device, it obtains the position status information of the third device through the fourth device, improving the success rate of positioning the second device.

[0010] In the first embodiment, when the position status information indicates that the second device is accommodated in the third device, the first device obtains the position information of the third device and uses the position information of the third device as the position information of the second device. In this embodiment, when the first device cannot establish a communication connection with the second device, it obtains the position information of the second device by obtaining the position information of the third device, realizing the accurate positioning of the second device.

[0011] When the position status information indicates that the second device is accommodated in the third device, the first device can obtain the position information of the third device through at least the following two possible examples:

[0012] Example 1: When the third device is in the adjacent state, the first device locates the third device to obtain the position information of the third device. When the third device is in the adjacent state, the first device and the third device support a communication connection. Therefore, the first device can locate the third device to obtain the position information of the third device, and then obtain the position information of the second device. This example has a high processing efficiency and a low processing complexity.

[0013] Example 2: When the third device is in the separated state, the first device obtains the position information of the third device obtained by the fourth device locating the third device. In this example, when the first device cannot directly locate the third device to obtain the position information of the second device, it locates the third device through the fourth device that supports a communication connection with the third device, improving the success rate of device positioning.

[0014] In the second embodiment, when the position status information indicates that the second device is not accommodated in the third device, the first device may obtain the position information of the second device detected by the fifth device, and the second device supports a communication connection with the fifth device in the separated state. In this embodiment, the first device cannot directly locate the second device to obtain the position information of the second device, and the second device is not accommodated in the third device. In this case, the first device locates the second device through the fifth device that supports a communication connection with the second device, improving the success rate of device positioning.

[0015] In some embodiments, the first device may first activate at least one of the paired devices, such as the second device, the third device, and the devices that can be accommodated by the third device, so that the paired devices are activated in the discovery network, providing conditions for the first device to successfully discover the paired devices.

[0016] Exemplarily, the first device may receive a first activation request sent by the third device. The first activation request carries the identification information of the third device in the discovery network and the identification information of the devices accommodated by the third device in the discovery network. 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 discovery network, where the user account is the account logged in by the first device. The first device sends 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 devices accommodated by the third device under the user account. The third device acts as an agent to collect the identification information of the devices it accommodates in the discovery network, and sends its own identification information in the discovery network and the identification information of the devices it accommodates in the discovery network to the first device for activation, avoiding the first device from activating the third device and one or more devices it can accommodate respectively, improving the processing efficiency and success rate.

[0017] In some embodiments, the first device receives first association information sent by the third device. The first association information is used to indicate the association relationship between the third device and the devices accommodated by the third device in the discovery network. So that when the first device discovers the devices accommodated by the third device, it can determine the position information of the second device based on the position status information sent by the third device.

[0018] In some embodiments, the first device may send deactivation information to the third device and / or at least one device accommodated by the third device. The deactivation information is used to indicate canceling the activation of the third device and the devices accommodated by the third device under the user account. To achieve rapid deactivation, and then cancel the binding relationship between the first device and the third device and the devices that can be accommodated by the third device.

[0019] In some embodiments, the first device may receive a second activation request sent by a third device. The second activation request carries the identification information of a sixth device in a discovery network. The sixth device is used to replace the devices accommodated by at least one third device and activate the sixth device in the user state in the discovery network, and then send a second activation response to the third device. The second activation response is used to indicate the activation result of the sixth device under the user account. An efficient and reliable activation scheme is provided for updating some components in a multi-component product.

[0020] In some embodiments, the first device may receive second association information sent by a third device. The second association relationship is used to indicate the association relationship between the updated third device and the devices accommodated by the third device in the discovery network. So that when the first device searches for the devices accommodated by the third device, it can determine the location information of the second device based on the location status information sent by the third device.

[0021] In a second aspect, an embodiment of the present application provides a positioning method. The execution subject of this method is still the above-mentioned first device. 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.

[0022] In this method, in order to reduce the air interface load, the first device may send indication information to the second device through the first Bluetooth link. The indication information is used to instruct the second device to implement positioning through the first Bluetooth link. Correspondingly, the second device receives the indication information sent by the first device through the first Bluetooth link.

[0023] In some embodiments, the indication information is further used to instruct to set a first field in the broadcast information of the second device, or other devices accommodated by the second device and the third device, to information indicating the connection state. The first field is used to indicate whether the corresponding device is in a connected state. For example, in response to the indication information, the second device sets the first field (such as the connected flag (flag)) in the broadcast information (such as the first broadcast information) to 1 to indicate that the second device is in a connected state. When the first device receives the broadcast information of the second device, based on the indication of the first field, it does not establish a second Bluetooth link with the second device. The second Bluetooth link is used to implement positioning of the second device.

[0024] In some embodiments, the indication information is further used to indicate that the second device, or other devices accommodated by the second device and 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 a proximity state. So as to facilitate positioning through direct communication between different first devices and the second device.

[0025] In a third aspect, an embodiment of the present application provides a positioning method. The execution subject of this method can be a second device, which can be implemented as an electronic device or a component in an electronic device, and the electronic device can be housed in another electronic device (such as the electronic device implemented by a third device, or the 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.

[0026] The method includes: receiving, through the first Bluetooth link, indication information sent by the first device, where the indication information is used to indicate that the second device realizes positioning through the first Bluetooth link.

[0027] In a possible implementation manner, the indication information is further used to indicate that a first field in the broadcast information of the second device, or the second device and other devices housed in the third device, is set to information indicating the connection state, and the first field is used to indicate whether the corresponding device is in a connected state.

[0028] In a possible implementation manner, the indication information is further used to indicate that the second device, or the second device and other devices housed in the third device, are in a neighboring state.

[0029] For the positioning method provided in the above third aspect and each possible implementation manner of the above third aspect, the beneficial effects can refer to the beneficial effects brought by the above second aspect and each possible implementation manner of the second aspect, and will not be elaborated here.

[0030] In a fourth aspect, an embodiment of the present application provides a positioning method. The execution subject of this method can be a third device, which can be implemented as an electronic device or a component in an electronic device, and the electronic device can house other electronic devices (such as the electronic device implemented by the second device).

[0031] The method includes: determining position status information, where the position status information is used to indicate whether the second device is housed in the third device; and sending the position status information according to the communication status of the third device.

[0032] In a possible implementation manner, the sending of the position status information includes: when the third device is in a neighboring state, sending first broadcast information; when the third device is in a separated state, sending second broadcast information; where both the first broadcast information and the second broadcast information carry the position status information, and the second broadcast information further 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 neighboring state, and the third device does not support a communication connection with the first device in the separated state.

[0033] In a possible implementation, the determining of the location status information includes: receiving access information sent by the second device, where the access information carries identification information of the second device in the discovery network; and determining the location status information according to the access information.

[0034] In a possible implementation, it further includes: sending a first activation request to the first device, where the first activation request carries identification information of the third device in the discovery network and identification information of the devices accommodated by the third device in the discovery network, and the devices accommodated by the third device include the second device; receiving a first activation response sent by the first device, where the first activation response is used to indicate the activation result of the third device and the devices accommodated by the third device under the user account, and the user account is the account logged in by the first device.

[0035] In a possible implementation, it further includes: sending first activation information to the devices accommodated by the third device, where the first activation information is used to indicate the activation result of the devices accommodated by the third device under the user account.

[0036] In a possible implementation, it further includes: receiving deactivation information sent by the first device, where the deactivation information is used to indicate canceling the activation of the third device and the devices accommodated by the third device under the user account.

[0037] In a possible implementation, it further includes: sending a second activation request to the first device, where the second activation request carries identification information of the sixth device in the discovery network, and the sixth device is used to replace at least one of the devices accommodated by the third device; receiving a second activation response sent by the first device, where the second activation response is used to indicate the activation result of the sixth device under the user account.

[0038] In a possible implementation, it further includes: sending second association information to the first device, where the second association relationship is used to indicate updating the association relationship of the third device and the devices accommodated by the third device in the discovery network.

[0039] For the positioning method provided by the fourth aspect and each possible implementation of the fourth aspect, the beneficial effects can refer to the beneficial effects brought by the first aspect and each possible implementation of the first aspect, which will not be elaborated here.

[0040] Fifth aspect, an embodiment of the present application provides a positioning device, including: an acquisition module, configured to acquire a first query request, where the first query request is at least used to request to query the location information of a second device, and a communication link cannot be established between the second device and the positioning device, and the communication link is used to implement positioning of the second device; the acquisition module is further configured to acquire location status information sent by a third device according to the communication status of the third device, where the location status information is used to indicate whether the second device is accommodated in the third device; a processing module, configured to determine the location information of the second device according to the location status information.

[0041] In a possible implementation manner, the acquisition module is specifically configured to: when the third device is in a proximity state, receive first broadcast information sent by the third device, where the first broadcast information carries the location status information, and a communication connection is supported between the third device and the positioning device in the proximity state; or, when the third device is in a separated state, acquire the location status information sent by the third device received by a fourth device, where a communication connection is not supported between the third device and the positioning device in the separated state, and a communication connection is supported between the third device and the fourth device.

[0042] In a possible implementation manner, the processing module is specifically configured to: when the location status information indicates that the second device is accommodated in the third device, acquire the location information of the third device; and use the location information of the third device as the location information of the second device.

[0043] In a possible implementation manner, the processing module is specifically configured to: when the third device is in a proximity state, perform positioning on the third device to obtain the location information of the third device; or, when the third device is in a separated state, acquire the location information of the third device obtained by the fourth device through positioning the third device.

[0044] In a possible implementation manner, the processing module is specifically configured to: when the location status information indicates that the second device is not accommodated in the third device, acquire the location information of the second device detected by a fifth device, where a communication connection is supported between the second device and the fifth device in the separated state.

[0045] In a possible implementation manner, it further includes: a transceiver module, configured to receive a first activation request sent by the third device, where the first activation request carries the identification information of the third device in the search network and the identification information of the device accommodated in the third device in the search network, and the device accommodated in the third device includes the second device; the processing module is further configured to activate the third device and the device accommodated in the third device under the user account in the search network, where the user account is the account logged in by the positioning device; the transceiver module is further configured 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 in the third device under the user account.

[0046] 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 the association relationship between the third device and the device accommodated in the third device in a search network.

[0047] In a possible implementation, the transceiver module is further configured to: send deactivation information to the third device and / or at least one device accommodated in the third device, where the deactivation information is used to indicate canceling the activation of the third device and the device accommodated in the third device under a user account.

[0048] In a possible implementation, the transceiver module is further configured to: receive a second activation request sent by the third device, where the second activation request carries identification information of a sixth device in a search network, and the sixth device is used to replace at least one device accommodated in the third device; the processing module is further configured to activate the sixth device in the user state in the search network; the transceiver module is further configured to send a second activation response to the third device, where the second activation response is used to indicate the activation result of the sixth device under the user account.

[0049] In a possible implementation, the transceiver module is further configured to: receive second association information sent by the third device, where the second association relationship is used to indicate updating the association relationship between the third device and the device accommodated in the third device in a search network.

[0050] For the electronic device provided in the fifth aspect above and each possible implementation of the fifth aspect, the beneficial effects can refer to the beneficial effects brought by the first aspect above and each possible implementation of the first aspect, which will not be elaborated here.

[0051] In a sixth aspect, an embodiment of the present application provides a positioning device. The positioning device is connected to a second device based on a first Bluetooth link, and the first Bluetooth link is used to transmit audio signals. The positioning device includes: a transceiver module, configured to send indication information to the second device through the first Bluetooth link, where the indication information is used to indicate that the second device realizes positioning through the first Bluetooth link.

[0052] In a possible implementation, the indication information is further used to indicate setting a first field in the broadcast information of the second device or other devices accommodated in 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 connected state.

[0053] In a possible implementation, the indication information is further used to indicate that the second device or other devices accommodated in the second device and the third device are in a neighboring state.

[0054] For the positioning device provided by the sixth aspect and each possible implementation manner of the sixth aspect, the beneficial effects can be referred to those brought by the second aspect and each possible implementation manner of the second aspect, which will not be elaborated here.

[0055] In a seventh aspect, an embodiment of the present application provides a positioning device. The positioning device is connected to a first device based on a first Bluetooth link, and the first Bluetooth link is used for transmitting audio signals. The positioning device includes: a transceiver module, configured to receive indication information sent by the positioning device through the first Bluetooth link, where the indication information is used to indicate that a second device implements positioning through the first Bluetooth link.

[0056] For the electronic device provided by the seventh aspect and each possible implementation manner of the seventh aspect, the beneficial effects can be referred to those brought by the second aspect and each possible implementation manner of the second aspect, which will not be elaborated here.

[0057] In an eighth aspect, an embodiment of the present application provides a positioning device, including: a processing module, configured to determine position status information, where the position status information is used to indicate whether a second device is accommodated in the positioning device; a transceiver module, configured to send the position status information according to the communication status of the positioning device.

[0058] In a possible implementation manner, the transceiver module is specifically configured to: send first broadcast information when the positioning device is in a proximity state; send second broadcast information when the positioning device is in a separated state; where both the first broadcast information and the second broadcast information carry the position status information, and the second broadcast information further includes information indicating that the positioning device is in a separated 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 separated state.

[0059] In a possible implementation manner, 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 a discovery network; determine the position status information according to the access information.

[0060] In a possible implementation manner, the transceiver module is further configured to send a first activation request to the first device, where the first activation request carries the identification information of the positioning device in the discovery network and the identification information of the device accommodated in the positioning device in the discovery network. The device accommodated in the positioning device includes the second device; the transceiver module is further configured to receive a first activation response sent by the first device, where the first activation response is used to indicate the activation result of the positioning device and the device accommodated in the positioning device under a user account, and the user account is the account logged in by the first device.

[0061] In a possible implementation, the transceiver module is further configured to send first activation information to the device accommodated in the positioning device, where the first activation information is used to indicate the activation result of the device accommodated in the positioning device under the user account.

[0062] 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 indicate canceling the activation of the positioning device and the device accommodated in the positioning device under the user account.

[0063] In a possible implementation, the transceiver module is further configured to send a second activation request to the first device, where the second activation request carries the identification information of the sixth device in the discovery network, and the sixth device is used to replace at least one device accommodated in the positioning device; receive a second activation response sent by the first device, where the second activation response is used to indicate the activation result of the sixth device under the user account.

[0064] In a possible implementation, the transceiver module is further configured to send second association information to the first device, where the second association relationship is used to indicate updating the association relationship between the positioning device and the device accommodated in the positioning device in the discovery network.

[0065] For the electronic device provided in the above eighth aspect and each possible implementation of the above eighth aspect, the beneficial effects can be referred to the beneficial effects brought by the above first aspect and each possible implementation of the first aspect, and will not be elaborated here.

[0066] In a ninth aspect, an embodiment of the present application provides a positioning device, including: a processor and a memory, where the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the methods in the first aspect, the second aspect, the third aspect, the fourth aspect, or each possible implementation.

[0067] In a tenth aspect, an embodiment of the present application provides a positioning system, including: a first device, a second device, and a third device that can accommodate the second device; the first device is configured to: obtain a first query request, where 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 implement positioning of the second device; obtain location status information sent by the third device according to the communication status of the third device, where the location status information is used to indicate whether the second device is accommodated in the third device; determine the location information of the second device according to the location status information.

[0068] In an eleventh aspect, an embodiment of the present application provides a chip, including: a processor, configured to call and run computer instructions from a memory, so that a device installed with the chip executes the methods in the first aspect, the second aspect, the third aspect, the fourth aspect, or each possible implementation.

[0069] In the eleventh aspect, an embodiment of the present application provides a computer-readable storage medium for storing computer program instructions, and the computer program causes a computer to execute the methods in the first aspect, the second aspect, the third aspect, the fourth aspect or each possible implementation manner.

[0070] In the twelfth aspect, an embodiment of the present application provides a computer program product, including computer program instructions, and the computer program instructions cause a computer to execute the methods in the first aspect, the second aspect, the third aspect, the fourth aspect or each possible implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 A schematic structural diagram of an electronic device is shown;

[0072] Figure 2 A schematic diagram of an application scenario for device positioning provided by an embodiment of the present application;

[0073] Figure 3 A schematic diagram of a positioning system provided by an embodiment of the present application;

[0074] Figure 4 A schematic flowchart of a positioning method provided by an embodiment of the present application;

[0075] Figure 5 A state machine transition flowchart of paired devices provided by an embodiment of the present application;

[0076] Figure 6a A schematic diagram of an interaction process of a positioning method provided by an embodiment of the present application;

[0077] Figure 6b A schematic diagram of an interaction process of a positioning method provided by an embodiment of the present application;

[0078] Figure 7a A schematic diagram of an interaction process of a positioning method provided by an embodiment of the present application;

[0079] Figure 7b A schematic diagram of an interaction process of a positioning method provided by an embodiment of the present application;

[0080] Figure 8 A schematic diagram of an interaction process of a positioning method provided by an embodiment of the present application;

[0081] Figure 9 A schematic diagram of an interaction process of a device activation method provided by an embodiment of the present application;

[0082] Figure 10 A schematic diagram of an interaction process of a device activation method provided by an embodiment of the present application;

[0083] Figure 11 Schematic block diagram of the positioning device provided by the embodiment of the present application. Detailed implementation manners

[0084] First, electronic devices, graphical user interfaces for such electronic devices, and embodiments for using such electronic devices 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 music player functions, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication functions (such as a smart watch), etc. The above portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface or a touch panel. It should also be understood that in some other embodiments, the above electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface or a touch panel. The embodiments of the present application do not limit the form of the electronic device.

[0085] In addition, the electronic device in the present application may 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 smart grid, a wireless terminal device in transportation safety, a wireless terminal device in smart city, or a wireless terminal device in smart home, etc.

[0086] The term "user interface (UI)" in the specification, claims and drawings of this application is a media interface for interaction and information exchange between an application or an 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 the 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 a terminal device and finally presented as content recognizable by the user, such as controls like pictures, texts, buttons, etc. A control is also called a widget, which is the basic element of a user interface. Typical controls include a toolbar, a menu bar, a text box, a button, a scrollbar, pictures and texts. The attributes and content of the controls in the interface are defined by tags or nodes. For example, XML passes through <textview> 、 <imgview> 、 <videoview>Nodes such as these are used to define the controls included in the interface. One node corresponds to one control or property in the interface, and after being parsed and rendered, the node presents visible content to the user.

[0087] A commonly used form of the user interface is the graphical user interface (GUI), which refers to the user interface related to computer operations presented in a graphical manner. It can be interface elements such as an icon, window, control, etc. displayed on the display screen of an electronic device, where the controls can include visible interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc.

[0088] Figure 1 shows a schematic structural diagram of an electronic device. Referring to Figure 1 , the electronic device may include: a processor 110 (such as a CPU), a memory 120. The memory 120 may contain high-speed random access memory (RAM), and may also include non-volatile memory (NVM), such as at least one disk memory. Various instructions can be stored in the memory 120 to be used to complete various processing functions and implement the method steps of the present application.

[0089] Optionally, the electronic device involved in the present application may further include: a power supply 130, a communication bus 140, and a communication port 150. The above communication port 150 is used to enable the electronic device to connect and communicate with other peripherals. In the embodiments of the present application, the memory 120 is used to store computer-executable program code, and the program code includes instructions; when the processor 110 executes the instructions, the instructions cause the processor 110 of the electronic device to perform the actions in the above method embodiments, and its implementation principle and technical effects are similar and will not be elaborated here.

[0090] Optionally, the electronic device involved in the present application may further include: a display screen 160, and the display screen 160 is used to display the interface of the electronic device.

[0091] It should be noted that the modules or components in the above embodiments may be one or more integrated circuits configured to implement the above methods. For example: one or more application specific integrated circuits (ASICs), or, one or more digital signal processors (DSPs), or, one or more field programmable gate arrays (FPGAs), etc. Again, when a certain module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code, such as a controller. Again, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0092] The electronic device 100 may include an audio module 170. The audio module 170 implements audio functions through a speaker 171, a receiver 172, a microphone 173, a headphone jack 174, and an application processor, etc. For example, receiving audio signals, playing music, recording, etc.

[0093] The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.

[0094] The speaker 171, also known as a "loudspeaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or hands-free calls through the speaker 171.

[0095] The receiver 172, also known as a "handset", is used to convert an audio electrical signal into a sound signal. When the electronic device 100 answers a call or a voice message, the voice can be received by bringing the receiver 172 close to the human ear.

[0096] The microphone 173, also known as a "microphone" or "transmitter", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 173 with their mouth to input the sound signal into the microphone 173. The electronic device 100 can be provided with at least one microphone 173. In some other embodiments, the electronic device 100 can be provided with two microphones 173, which can not only collect sound signals but also implement a noise reduction function. In some 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, and implement functions such as directional recording.

[0097] Figure 2 This is a schematic diagram of an application scenario 200 for device positioning provided by an embodiment of the present application. As Figure 2 shown, there is a communication connection between the first device 210 and the second device 220. Among them, the first device 210 can be implemented as the above-mentioned electronic device; the second device 220 can be a multi-component product, such as a multi-component product 221 composed of wireless headphones and a headphone case, or a multi-component product 222 composed of wireless headphones and a watch.

[0098] The wireless headphones can be used in cooperation with the first device 210 to process audio services such as media and calls of the electronic device, as well as some other data services. For example, the audio services can include playing music, recording, incoming call reminder sounds, etc. for the user, and can also include playing the 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.

[0099] The storage case for accommodating the wireless headphones in the second device 220 can be independently provided, such as Figure 2 221 in the figure, where the wireless headphones are accommodated in the headphone case; or, the headphone case for accommodating the wireless headphones in the second device 220 can be provided in an electronic device (such as a watch), such as Figure 2 222 in the figure. The present application does not limit the number of wireless headphones. For example, the second device 220 can be a single-ear headphone device including one wireless headphone, a two-ear headphone device including two wireless headphones, or a shared headphone device including three or more wireless headphones.

[0100] In some embodiments, the wireless headphones in the present application can include: a processor, a memory, a speaker, a communication port, etc. The processor, memory, speaker, and communication port can refer to the relevant descriptions of the corresponding modules in the electronic device.

[0101] In some embodiments, the earphone case in the present application may include: a processor, a memory, a speaker, a communication port, etc. The processor, the memory, the speaker, and the communication port may refer to the relevant descriptions of the corresponding modules in an electronic device.

[0102] When the wireless earphones are placed inside the earphone case, there is a communication connection between the earphone case in the first device 210 and the second device 220 or the electronic device provided with the earphone case. When the wireless earphones are placed outside the earphone case, there is a communication connection between the earphone case in the first device 210 and the second device 220 and the wireless earphones placed outside the earphone case.

[0103] Among them, the components in the first device 210 and the second device 220 (such as earphones and / or earphone cases) can be connected based on Bluetooth technology, but the present application does not limit this. For example, they can also be connected based on any near-field communication technology. When there is no communication connection between the components (such as earphones and / or earphone cases) in the first device 210 and the second device, the connection will be disconnected if it exceeds the communication coverage range.

[0104] In some scenarios, it is difficult to locate the wireless earphones in the second device 220 because they cannot be connected to the first device 210. The scenarios where the wireless earphones in the second device 220 cannot be connected to the first device 210 include but are not limited to the following examples: Example 1, the wireless earphones in the second device 220 are outside the communication coverage range of the first device 210; Example 2, the battery power of the wireless earphones in the second device 220 is lower than the power threshold, and the power threshold can be the minimum power value for establishing a communication connection; Example 3, the communication function of the wireless earphones in the second device 220 is abnormal.

[0105] In order to achieve accurate positioning of the components in a multi-component product, the embodiments of the present application provide a positioning solution. When the wireless earphones in the second device 220 cannot establish a communication link for positioning with the first device 210, the earphone case in the second device 220 implements a proxy function and interacts with the first device 210 (including direct interaction or indirect interaction) to achieve positioning of the wireless earphones.

[0106] Figure 3 A schematic diagram of a positioning system provided by 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 one 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 form 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 finding at least one of devices 311-4 to 311-6. Taking device 311-1 finding 311-4 as an example, device 311-1 can directly locate 311-4, or device 311-1 can locate 311-4 based on other devices (such as 311-2) in the search network. Device 311-2 can upload the location information of 311-4 to the cloud 320. Then, device 311-1 can obtain the location information of 311-4 from the cloud, thereby realizing the search for 311-4.

[0107] Devices 311-1 and 311-4 to 311-6 are paired devices, or rather, devices 311-1 and 311-4 to 311-6 belong to the same user account, and device 311-1 can be called the main (owner) device. When device 311-1 searches for device 311-4, device 311-4 can be called the searched device (or component). When device 311-1 locates device 311-4 based on device 311-2 in the search network, device 311-2 can be called the assisting device (or kind-hearted device).

[0108] Among them, the cloud 320 can be implemented as a cloud server.

[0109] The cloud can include a search network cloud. The search network cloud can be used to authenticate and verify devices when device pairing is implemented, and / or the search network cloud can be used to store the location information of the searched 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. This location information can be encrypted information. The main device can decrypt it based on the key, while other devices in the search network cannot obtain the location information of the searched device because they do not have the key, so as to ensure the security of the location information.

[0110] Exemplarily, the interaction between a device (such as any one of 311-1 to 311-n) and the cloud 330 may include: the search information processing module in the device interacts with the search network cloud, such as the proximity module in the device reports to or reads from the search network cloud the location information of the search device, the location status information related to the search device, etc.; the find module in the device interacts with the cloud 320, such as reporting the location information of the search device to the cloud 320, etc., or obtaining a search page from the cloud 320 and then presenting the search page.

[0111] The embodiments of the present application do not limit the positioning method of the master device or the assisting device for the search device. For example, positioning can be achieved based on Bluetooth communication or based on detection information. Among them, the detection information can be an ultrasonic signal, but the present application does not limit this, and for example, it can also be an infrared signal, etc.

[0112] The present application does not limit the composition of the multi-component product. In the embodiments of the present application, the multi-component product may also include other device combinations, such as smart glasses and glasses cases, etc. For ease of understanding, in some embodiments, a multi-component product composed of an earphone and an earphone case is taken as an example for illustration.

[0113] It should be noted that positioning a device (or equipment) can also be expressed as determining or obtaining the location information of the device (or equipment). The meanings expressed by using these two alternately are the same. And for ease of expression, the meaning remains unchanged after changing the word order. For example, positioning a device (or equipment) can also be expressed as locating the device (or equipment).

[0114] Next, the positioning method provided by the embodiments of the present application will be described in detail with reference to the drawings.

[0115] It should be understood that for ease of understanding and description below, the embodiments of the present application take the first device as the execution subject for illustration. The first device may be Figure 2 the first device 210 in Figure 3 or the device 311-1 in Figure 2 In some embodiments, the interaction among the first device, the second device, and the third device is taken as an example for illustration. The second device may be Figure 3 a wireless earphone in the second device 220 in Figure 2 or the device 311-4 in Figure 3 The third device may be Figure 3 the earphone case in the second device 220 in Figure 3 or the device 311-6 in In other embodiments, the first device also interacts with the cloud to obtain information reported by the fourth device, the fifth device, etc. in the search network from the cloud. Among them, the fourth device may be Figure 3 the device 311-2 in Figure 3 and the fifth device may be Figure 3 the device 311-3 in

[0116] However, it should be understood that this should not impose any limitation on the execution entity of the method provided in this application. As long as the code program of the method provided in the embodiments of this application can be run and recorded, and the method provided in the embodiments of this application can be implemented accordingly, it can be used as the execution entity of the method provided in the embodiments of this application. For example, the first device shown in the following embodiments can be implemented as a component in the first device 210 or the device 311-1, such as a chip, a chip system, or other functional modules that can call and execute programs; the second device can be implemented as a wireless earphone in the second device 220 or a component in the device 311-4, such as a chip, a chip system, or other functional modules that can call and execute programs; the third device can be implemented as a headphone case in the second device 220 or a component in the device 311-6, such as a chip, a chip system, or other functional modules that can call and execute programs.

[0117] The paired device described in the embodiments can be replaced with components in the paired device, such as a chip, a chip system, or other functional modules that can call and execute programs. For the convenience of understanding, it is uniformly referred to as the searching device in the following text.

[0118] Figure 4 It is a schematic flowchart of a positioning method 400 provided by an embodiment of this application. As Figure 4 shown, the method 400 may include the following S410 to S430.

[0119] S410, the first device obtains 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 first device, and this communication link is used to implement the positioning of the second device;

[0120] S420, the first device obtains the location status information sent by the third device according to the location relationship between the third device and the first device, and the location status information is used to indicate whether the second device is accommodated in the third device;

[0121] S430, determine the location information of the second device according to the location status information.

[0122] The first query request can be input by the user, or rather, the first query request can be generated in response to a user operation. The first query request can request to query the location information of one or more devices (or apparatuses) in a multi-component product. Taking a wireless headset and a headset case as an example of a multi-component product, the first query request can request to query the location information of one or more wireless headsets and / or the headset case. And in this application, the first query request is at least used to request to query the location information of the second device. Still taking the multi-component product composed of a wireless headset and a headset case as an example, the first query request can request to query the location information of one wireless headset, or the first query request can request to query the location information of two wireless headsets respectively, or the first query request can request to query the location information of two wireless headsets and the headset case, and so on.

[0123] It should be noted that when the first query request is also used to request the location information of other devices (such as other wireless headsets), the same or similar implementation manner as that for locating the second device can be adopted to locate it to obtain its location information. For the sake of brevity, it will not be elaborated here.

[0124] The first device, the second device, the third device, and the devices that can be accommodated by the third device can have an association relationship. For example, the second device, the third device, and the devices that can be accommodated by the third device have been paired with the first device, or rather, the second device, the third device, and the devices that can be accommodated by the third device belong to the same user account. For the convenience of description, the devices having an association relationship with the first device will be referred to as paired devices hereinafter.

[0125] In some scenarios, a communication link can be established between the second device and the first device to enable the first device to locate the second device. This 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 location instruction to the second device through the Bluetooth link, and the second device sends detection information to the first device in response to the location 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, after receiving the location instruction sent by the second device, the second device sends an ultrasonic signal through a speaker, 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 according to the ultrasonic signal. This application does not limit the location method, nor does it limit the implementation of location based on a Bluetooth link. For the specific location process, reference can be made to the examples in the following text.

[0126] The scenario where a communication link cannot be established between the second device and the first device has been described in the foregoing examples and will not be elaborated here 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 is determined considering the positional relationship between the second device and the third device, such as whether the second device is accommodated in the third device.

[0127] The first device can directly obtain the location status information of the third device, or the first device can indirectly obtain the location status information of the third device. Directly obtaining the location status information of the third device can mean that the first device directly interacts with the third device to obtain the location status information. Indirectly obtaining the location status information of the third device can mean that the first device obtains the location status information obtained by the interaction between another device (such as the fourth device) and the third device. Another device (such as the fourth device) can, for example, belong to the aforementioned search network.

[0128] As an example, when the location status information indicates that the second device is accommodated in the third device, the first device can obtain the location information of the third device and use the location information of the third device as the location information of the second device. As another example, when the location status information indicates that the second device is not accommodated in the third device, the first device can obtain the location information of the second device detected by the fifth device, where a communication link for positioning can be established between the fifth device and the second device.

[0129] The communication state can include a proximity state or a separation state. Among them, the proximity state can be understood as a state where a communication link can be established between devices but has not been established yet. In the proximity state, devices can communicate through broadcast information. For example, when the paired device is in the proximity state, broadcast information can be propagated between the first device and the paired device. When the paired device is 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 this communication link can be used to locate the paired device. The separation state can be understood as a state where a communication link cannot be established, or the communication quality of the established communication link in the separation state is less than the quality threshold. The paired device being in the separation state can be that the paired device is out of the communication coverage range of the first device, or the paired device or the first device has insufficient power (such as below the power threshold).

[0130] In some embodiments, the communication state can further include a connection state. In the connection state, a communication link is established between devices. For example, when the paired device is in the connection state, a communication link is established between the first device and the paired device, and the first device can locate the paired device based on the communication link.

[0131] The above communication status can be applicable to any device paired with the first device, such as the second device, the second device, or other devices that can be accommodated by the third device.

[0132] For paired devices, it is difficult for a paired device to determine its own status based on the distance between itself and the first device. The paired device can determine its own proximity state or separation state by sending the first broadcast information and based on whether it receives a response from the first device to the first broadcast information. Exemplarily, the paired device periodically sends the first broadcast information. If the distance between the paired device and the first device is less than or equal to the first preset value, the first device can receive the first broadcast information and respond to the first broadcast information of the paired device, such as sending a response message to the paired device. After receiving the response message, the paired device determines that it is in the proximity state. If the distance between the paired device and the first device is greater than the first preset value, it is difficult for the first device to receive the first broadcast information, and the first device cannot respond to it without receiving the first broadcast information. Correspondingly, the paired device does not receive the response information from the first device. Optionally, the paired device can determine that it is in the separation state when it does not receive the response information from the first device after reaching the preset duration.

[0133] The first device obtains the location status information sent by the third device according to the communication status of the third device. Correspondingly, the third device sends the location status information according to its own communication status. The following will be combined with Figure 6a and Figure 6b to give an exemplary description.

[0134] Figure 5 This is a state machine transition flowchart of a paired device provided by an embodiment of the present application. For a paired device, such as any one of the second device, the third device, or other devices that can be accommodated by the third device, it can satisfy the state machine transition process as Figure 5 shown. As Figure 5 shown, after a communication link is established between the paired device and the first device, the paired device is in the connected state. After the first device disconnects the communication link with the paired device, the paired device is in the proximity state; after the paired device restarts, the paired device defaults to the separation state.

[0135] The paired device can periodically send the first broadcast information in the proximity state and maintain the proximity state by receiving the response information sent by the first device. When the paired device is in the proximity state, the first device can establish a communication link with the paired device. After the communication link is established, the paired device is in the connected state. When the paired device is in the proximity state, if it does not receive the response information from the first device again within the preset duration after the last time it received the response information from the first device, in this case, the paired device determines to enter the separation state.

[0136] The paired device can send the second broadcast information in the separated state, such as sending the second broadcast information periodically. The second broadcast information includes the information indicating that the paired device is in the separated state. When the paired device is in the separated state, the first device can establish a communication link with the paired device. For example, after the paired device restarts for a period of time, the first device initiates a reconnection with the paired device. Another example is that after the first device's power is replenished, it initiates a reconnection with the paired device. When the paired device is in the separated state, if it receives a response from the first device to the second broadcast information, it can determine to enter the proximity state.

[0137] The following combines Figure 6a and Figure 6b , and respectively takes the third device being in the proximity state and the separated state to exemplarily illustrate the positioning method of the embodiments of the present application.

[0138] Figure 6a It is a schematic diagram of the interaction process of a positioning method 500a provided by an embodiment of the present application. As Figure 6a shown, this method 500a includes at least some of the following steps S510a to 530a:

[0139] S510a, the third device determines the position status information;

[0140] S520a, when the third device is in the proximity state, the third device sends the first broadcast information, and this first broadcast information carries the position status information. Correspondingly, when the third device is in the proximity state, the first device receives the first broadcast information sent by the third device to obtain the position status information.

[0141] S530a, when the position status information indicates that the second device is accommodated in the third device, the first device obtains the position information of the third device and uses the position information of the third device as the position information of the second device.

[0142] In the above S510a, the third device can detect whether the second device is accommodated in itself and determine the position status information according to the detection result.

[0143] In the above S520a, if the third device is in the proximity state, as previously mentioned, the third device supports a communication connection with the first device in the proximity state, and the third device is within the communication broadcast coverage range of the first device. The third device can directly send the position status information to the first device. For example, the third device can send the first broadcast information to the first device, and this first broadcast information carries the above-mentioned position status information.

[0144] In the above S530a, when the position status information indicates that the second device is accommodated in the third device, it can be considered that the third device and the second device have the same or similar position information. In this case, the first device can achieve the positioning of the second device by obtaining the position information of the third device.

[0145] It should be noted that this application does not limit the execution order between the first device obtaining the first query request and obtaining the location status information. The third device may periodically send the first broadcast information. In response to the first query request, the first device may determine the location status information from the most recently received first broadcast information.

[0146] Figure 6b It is a schematic diagram of the interaction process of a positioning method 500b provided by an embodiment of this application. As Figure 6b shown, the method 500b includes at least some of the following steps S510a to S550b:

[0147] S510b, the third device determines the location status information;

[0148] S520b, when the third device is in a separated state, the third device sends the second broadcast information, and the second broadcast information carries the location status information. Correspondingly, when the third device is in a neighboring state, the fourth device receives the second broadcast information sent by the third device, and a communication connection is supported between the fourth device and the third device.

[0149] S530b, the fourth device reports the location status information to the cloud.

[0150] S540b, when the third device is in a separated state, the first device obtains the location status information sent by the third device received by the fourth device.

[0151] S550b, when the location status information indicates that the second device is accommodated in the third device, the first device obtains the location information of the third device and uses the location information of the third device as the location information of the second device.

[0152] The above S510b is similar to S510a, and the above S550b is similar to S530a. For the sake of brevity, they will not be elaborated here.

[0153] In the above S520b, if the third device is in a separated state, as previously mentioned, the third device does not support a communication connection with the first device in the separated state. In this case, the second broadcast information sent by the third device cannot be received by the first device. Therefore, a fourth device capable of receiving the second broadcast information is introduced to receive the broadcast information sent by the third device through the fourth device.

[0154] In the above S530b, the fourth device may determine the location status information from the received broadcast information and report the location status information to the cloud. For device security considerations, the location status information in the second broadcast information may be information encrypted with a key. The first device may decrypt the encrypted location status information with the key to obtain the location status information sent by the third device. The fourth device reports the encrypted location status information to the cloud, and other devices cannot parse the encrypted location status information in the cloud due to the lack of the key, so as to ensure the security of the location status information sent by the third device in the cloud.

[0155] In the above S540b, the first device may read the location status information of the third device from the cloud.

[0156] It should be noted that Figure 6a and Figure 6b The illustrated embodiments do not limit the execution order between the first device obtaining the first query request and obtaining the location status information. The third device may periodically send the first broadcast information. In response to the first query request, the first device may determine the location status information from the most recently received first broadcast information.

[0157] Taking a multi-component product composed of wireless earphones and an earphone case as an example, in the embodiments illustrated in Figure 6a and Figure 6b Since the earphone case can maintain the ability to be searched in a low-power state for a long time, after the wireless earphones are put into the case, the earphones enter an extremely low-power mode to meet the low-power requirements of the earphones. In this case, the wireless earphones and the earphone case, as a whole, use the earphone case as an agent to interact with the first device to achieve the positioning of at least one device in the multi-component product.

[0158] Next, in combination with Figure 7a and Figure 7b , an exemplary description is given of how the first device obtains the location information of the third device when the location status information indicates that the second device is accommodated in the third device.

[0159] Figure 7a It is a schematic interaction flow diagram of a positioning method 600a provided by an embodiment of the present application. As shown in Figure 7a , this method 600a includes at least some of the following steps S610a to S660a:

[0160] S610a, the second device sends access information to the third device, and the access information carries the identification information of the second device in the search network.

[0161] S620a, the third device determines the location status information according to the access information.

[0162] When the third device is in the adjacent state, the third device sends first broadcast information, and the first broadcast information carries location status information.

[0163] S640a, the first device locates the third device to obtain the location information of the third device.

[0164] In the above S610a, when the second device accesses the third device (that is, is accommodated in the third device), the second device sends access information to the third device. The access information can be triggered to be sent after the second device is connected to the third device. After the second device accesses the third device, it can be in contact connection with the third device, or after the second device accesses the third device, it can be wirelessly connected to the third device. This application does not make a limitation in this regard. When the multi-component product is an earphone and an earphone case, when the second device accesses the third device, it can be understood that the second device is put into the case and establishes a connection with the third device.

[0165] In the above S620a, the third device can determine the access of the second device according to the identification information of the second device in the search network carried in the access information. Furthermore, the location status information determined by the third device includes information indicating the access of the second device. The identification information of the second device in the search network can be a find network identification (FID).

[0166] Optionally, the access information may further include at least one of: the user account identification (UID) of the second device, the serial number (SN) of the second device, and the activation status of the second device (such as whether it is activated).

[0167] The above S630a is similar to S520a in the foregoing example, and will not be elaborated for the sake of brevity.

[0168] In the above S640a, communication connection is supported between the first device and the third device. Therefore, the first device can locate the third device to obtain the location information of the third device.

[0169] As an example, the first device can receive the detection information sent by the third device to locate the third device, and determine the location information of the third device according to the received detection information. Taking the detection information as an ultrasonic signal as an example, the first device can send a positioning instruction to the third device. In response to the positioning instruction, the third device can send an ultrasonic signal through a speaker. The first device can receive the ultrasonic signal sent by the third device through a microphone, and estimate the location information of the third device according to the ultrasonic signal.

[0170] As another example, the first device can send detection information to the third device to locate the third device. Taking the detection information as an ultrasonic signal as an example, the first device can send an ultrasonic signal to the third device through a speaker and receive the reflected signal of the ultrasonic signal from the third device through a microphone, and then estimate the position information of the third device based on the received reflected signal.

[0171] Similar to the above example, the first device can send a radio frequency signal to the third device and receive the radio frequency signal reflected by the third device. The first device estimates the position information of the third device based on the received reflected radio frequency signal.

[0172] As yet another example, the first device can send detection information to the third device, and the third device can determine its own position information based on the received detection information and send the position information to the first device.

[0173] Optionally, the position information of the third device includes the distance and / or angle between the third device and the first device. Among them, the angle between the third device and the first device can be the angle between the position of the third device and any point or any surface on the first device. For example, the angle between the third device and the first device can be the angle between the position of the third device and the surface where the screen of the first device is located.

[0174] Generally speaking, there are two microphones deployed in the electronic device, and it is impossible to distinguish whether the third device is on the left or right side of the first device based on the ultrasonic signals received by the two microphones. Therefore, during 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 through rotation to remove mirroring. Among them, rotation to remove mirroring can be achieved by the user rotating the mobile phone. Exemplarily, the first device presents an operation prompt for rotation to remove mirroring, such as "rotate the mobile phone", through the interface of the display screen to prompt the user to perform the corresponding operation. The first device comprehensively judges based on the ultrasonic signal (or reflected signal) received before the user rotates the mobile phone and the ultrasonic signal (or reflected signal) received after the user rotates the mobile phone, and accurately determines the angle between the third device and the first device.

[0175] In some embodiments, during the process of the first device locating the third device, the first device can receive the time synchronization information sent by the third device, determine the time offset between the first device and the third device according to the time synchronization information, and then determine the position information of the third device based on the time offset and the detection information sent by the third device received. Exemplarily, the first device can determine the distance between the third device and the first device according to the time offset and the detection information, and determine the angle between the third device and the first device according to the detection information.

[0176] Exemplarily, the first device may notify the third device to perform Bluetooth time synchronization via Bluetooth. For example, in response to a positioning instruction, the third device may send one or more time synchronization frames to the first device. The time synchronization frames carry information such as the transmission time and the callback time. After receiving the time synchronization frames sent by the third device, the first device calculates the time offset and then corrects the time difference between the first device and the third device.

[0177] In S640a above, the position 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 position information of the third device.

[0178] In this embodiment, when the second device is accommodated in the third device, the first device locates the third device to obtain the position information of the second device, which improves the success rate of device positioning.

[0179] Figure 7b It is a schematic diagram of the interaction process of a positioning method 600b provided by an embodiment of the present application. As Figure 7b shown, the method 600b includes at least some of the following steps S610b to S660b:

[0180] S610b, the second device sends access information to the third device, and the access information carries the identification information of the second device in the search network.

[0181] S620b, the third device determines the position status information according to the access information.

[0182] S630b, when the third device is in a separated state, the third device sends second broadcast information, and the second broadcast information carries the position status information.

[0183] S640b, the fourth device locates the third device to obtain the position information of the third device.

[0184] S650b, the fourth device reports the position information.

[0185] S660b, when the position status information indicates that the second device is accommodated in the third device, the first device obtains the position information of the third device located by the fourth device for the third device.

[0186] S610b and S620b above are respectively the same as Figure 7a S610a and S620a in, and will not be described in detail for the sake of brevity.

[0187] S630b above is similar to S520b in the foregoing example, and will not be described in detail for the sake of brevity.

[0188] In the above S640a, a communication connection is supported between the fourth device and the third device. Therefore, the fourth device can locate the third device to obtain the location information of the third device. The process of the fourth device locating the third device can refer to the process of the first device locating the third device in the foregoing example, and will not be elaborated here for the sake of brevity.

[0189] Optionally, the first device may send a lookup request to the cloud to request to find a device in the network to locate the third device. The fourth device responds to the lookup request and locates the third device.

[0190] In the above S650a, the fourth device may send the location information of the third device to the cloud so that the first device can obtain the location information of the third device from the cloud. Optionally, the fourth device may encrypt the location information of the third device and report the encrypted location information to the cloud to ensure the security of the location information of the third device.

[0191] In the above S660a, the location status information indicates that the second device is 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. While the third device is in a separated state, the first device cannot directly locate the third device. Therefore, the first device can obtain the location information of the third device obtained by the fourth device locating the third device from the cloud.

[0192] In this embodiment, when the first device cannot directly locate the third device to obtain the location information of the second device, by using the fourth device that supports communication connection with the third device to locate the third device, the success rate of device location is improved.

[0193] It should be noted that in the above Figure 7a and Figure 7b In the embodiments shown, during the process of the third device sending broadcast information and locating, the third device maintains the same communication state. For example, in Figure 7a , the third device is in a neighboring state, then it sends the first broadcast information to transmit the location status information, and the first device locates the third device. Also, for example, in Figure 7b , the third device is in a separated state, then it sends the second broadcast information 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 maintain 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 location process, or the third device is in a separated state when sending broadcast information and switches to a neighboring state during the location.

[0194] Figure 8 It is a schematic interaction flow diagram of a location method 700 provided by an embodiment of the present application. Combining Figure 8 As shown, when the second device is not accommodated in the third device, a possible implementation manner for positioning the second device is provided. In this implementation manner, the communication state of the third device is not limited. For the sake of easy understanding, the case where the third device is in the proximity state is taken as an example for description. Figure 8 The method 700 shown may include at least some of the processes from S710 to S760 as follows.

[0195] S710, the second device sends access information to the third device, and the access information carries the identification information of the second device in the search network.

[0196] S720, the third device determines the position status information according to the access information.

[0197] S730, when the third device is in the proximity state, the third device sends the first broadcast information, and the first broadcast information carries the position status information.

[0198] S740, the fifth device locates the second device to obtain the position information of the second device.

[0199] S750, the fifth device reports the position information.

[0200] S760, when the position status information indicates that the second device is not accommodated in the third device, obtain the position information of the second device detected by the fifth device.

[0201] The above S710 to S730 are respectively the same as Figure 7a S610a to S630a therein, and will not be elaborated for the sake of brevity.

[0202] In the above S740, a communication connection is supported between the fifth device and the second device. Therefore, the fifth device can locate the second device to obtain the position information of the second device. The process of the fifth device locating the second device can refer to the process of the first device locating the third device in the foregoing example, and will not be elaborated for the sake of brevity.

[0203] Optionally, the first device may send a search request to the cloud to request a device in the search network to locate the second device, and the fifth device responds to the search request and locates the second device.

[0204] In the above S750, the fifth device may send the position information of the second device to the cloud so that the first device can obtain the position information of the second device from the cloud. Optionally, the fifth device may encrypt the position information of the second device and report the encrypted position information to the cloud to ensure the security of the position information of the second device.

[0205] In the above S760, the position 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 a connection cannot be established between the second device and the first device and the first device cannot directly locate the second device, the first device can obtain the position information of the second device obtained by the fifth device locating the second device from the cloud.

[0206] In this embodiment, when the first device cannot directly locate the second device to obtain the position information of the second device, the fifth device that supports communication connection with the second device is used to locate the second device, which improves the success rate of device positioning.

[0207] Therefore, in the embodiment of the present application, when a communication connection cannot be established between the second device and the first device, the position status information sent by the third device is obtained to achieve the positioning of the second device, so as to improve the success rate of positioning. Further, according to the communication status of the third device, the position status information sent by the third device is obtained to avoid the problem that it is difficult to obtain the position status information when the third device cannot be connected to the first device, further improving the success rate of positioning.

[0208] See Figure 5 As shown, before the paired device is communicatively connected to the first device, the offline paired device can be activated first. Exemplarily, when the device to be paired approaches the first device, the first device can respond to the user operation to pair with it (such as Bluetooth pairing). Further, the first device can determine whether the paired device is activated while searching for a network. If not, the activation process is started. The paired device can be in a connected state after activation is completed.

[0209] Next, in combination with Figure 9 an exemplary description of the activation process will be given.

[0210] Figure 9 is a schematic interaction flow diagram of a device activation method 800 provided by an embodiment of the present application. The method 800 may include at least some of the following processes S810 to S860, and Figure 9 S870 therein is used for an exemplary description of deactivation.

[0211] S810, The second device sends access information to the third device, and the access information carries the identification information of the second device while searching for a network.

[0212] S820, The third device sends a first activation request to the first device. The first activation request carries the identification information of the third device while searching for a network and the identification information of the device accommodated in the third device while searching for a network. The device accommodated in the third device includes the second device. Correspondingly, the first device receives the first activation request sent by the third device.

[0213] S830. The first device activates the third device under the user account and the devices (such as the second device) accommodated by the third device in the discovery network, where the user account is the account logged in by the first device.

[0214] S840. The first device sends a first activation response to the third device, and the first activation response is used to indicate the activation result of the third device and the devices (such as the second device) accommodated by the third device under the user account. Correspondingly, the third device receives the first activation response sent by the first device.

[0215] S850. The third device sends first association information to the first device, and the first association information is used to indicate the association relationship of the third device and the devices (such as the second device) accommodated by the third device in the discovery network. Correspondingly, the first device receives the first association information sent by the third device.

[0216] S860. The third device sends first activation information to the devices (such as the second device) accommodated by the third device, and the first activation information is used to indicate the activation result of the devices (such as the second device) accommodated by the third device under the user account. Correspondingly, the devices (such as the second device) accommodated by the third device receive the first activation information sent by the third device.

[0217] S810 mentioned above has been described in the previous example and will not be elaborated here for the sake of brevity.

[0218] In S820 above, the third device acts as an agent to collect the identification information of the devices it accommodates in the discovery network, and sends its own identification information in the discovery network and the identification information of the devices it accommodates in the discovery network to the first device for activation, avoiding the first device activating the third device and one or more devices it can accommodate separately, thus improving the processing efficiency and success rate.

[0219] Optionally, after the first device completes pairing with the third device, it can determine whether the third device and the devices (such as the second device) accommodated by the third device are activated in the discovery network. If there are unactivated devices among the third device or the devices accommodated by the third device, the first device can start the activation process. Optionally, during the activation process, the first device can send an activation instruction to the third device, and the third device sends a first activation request to the first device in response to the activation instruction.

[0220] Optionally, the first device can obtain the activation status of each device in the third device and / or the devices accommodated by the third device through a private protocol, and then determine whether there are unactivated devices in the third device and / or the devices accommodated by the third device.

[0221] Optionally, the first device can guide the user to complete the activation process through a graphical interface.

[0222] In the above S830, in response to the first activation request, the first device activates the third device under the user account and the devices accommodated by the third device (such as the second device) in the discovery network.

[0223] 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 result of the third device and the devices accommodated by the third device (such as the second device) under the user account.

[0224] Optionally, the third device may periodically broadcast the first activation request until the activation is completed, or until the first activation response sent by the first device is received, or until the first activation response sent by the first device is received and the first activation response indicates that the third device and the devices accommodated by the third device (such as the second device) are successfully activated under the user account.

[0225] In the above S850, the first association information may include the identification information (such as FID) of the third device and the devices accommodated by the third device (such as the second device) in the discovery network respectively, and the identification of the multi-component product (such as SN). Further, the first device may report the first association information to the cloud for storage. Optionally, the third device may report the first association information to the discovery information processing module of the first device through a generic attribute (GATT) protocol command.

[0226] In the above S860, the third device may send first activation information to the devices accommodated by the third device (such as the second device) to indicate the activation result of the devices accommodated by the third device (such as the second device) under the user account. Optionally, the first activation information may carry a synchronization key, enabling the devices accommodated by the third device (such as the second device) to perform encrypted data transmission with the first device based on the negotiated key, and the devices accommodated by the third device (such as the second device) can confirm successful activation based on the synchronization key. If the third device fails to synchronize the key to the devices accommodated by the third device, it is necessary to extend a GATT command to report to the discovery information processing module of the first device.

[0227] If it is necessary to deactivate the third device and the devices accommodated by the third device (such as the second device), refer to Figure 8 S870 in it. The third device may send deactivation information to the first device to indicate cancellation of the activation of the third device and the devices accommodated by the third device under the user account. It should be understood that when the third device and / or the devices accommodated by the third device are in the proximity state, the first device may connect to the third device and / or the devices accommodated by the third device, and reset the state of the connected devices to the state to be paired. Furthermore, through the search module, the association relationship between the first device and the third device and the devices accommodated by the third device can be released, so as to cancel the activation of the third device and the devices accommodated by the third device under the user account.

[0228] The above device activation process may be imperceptible to the user. In one possible implementation, the first device may complete device activation during the device pairing phase. Exemplarily, the first device completing device activation during the pairing phase may include at least some of the following processes:

[0229] Step 1, the first device may send a pairing request to the third device on a communication link (such as a Bluetooth link) in response to a user operation.

[0230] Step 2, the third device generates a pairing request response C0 according to the pre-activation preparation information, and sends the pairing request response C0 to the first device. The pre-activation preparation information may include the identification information of the third device in the search network and the identification information of the devices accommodated by the third device in the search network. The devices accommodated by the third device include the second device.

[0231] It should be noted that taking the second device as an example, the identification information of the second device in the search network may be sent by the second device to the third device during the power-on phase. The identification information of the second device in the search network may be the identification information signed by the private key. Optionally, the identification information in the search network may further include a random number and an FID. Furthermore, the second device may sign the random number and the FID with the private key.

[0232] Optionally, the third device may encrypt the pre-activation preparation information with the public key.

[0233] Optionally, the public key and the private key may be a pair of public and private keys pre-set in the chips of the devices (including the second device, the third device, and other devices that can be accommodated by the third device). And the public key in the pair of public and private keys is saved in the cloud, and the cloud may authenticate the devices to be paired based on the public key. The public key includes the cloud encryption public key and the cloud signature verification public key.

[0234] Optionally, the identification information of the device in the search network may be pre-set in the device chip.

[0235] It should also be understood that the present application does not limit the pairing phase to the interaction between the first device and the third device to achieve pairing. For example, the third device in the device activation process can be replaced by the device accommodated in the third device. Assuming that the first device and the second device interact to achieve pairing, the second device can receive the identification information sent by the third device and other devices accommodated in the third device.

[0236] Step 3, the first device obtains the AT of the user account and calculates C1 and sends it to the cloud.

[0237] Step 4, the cloud determines whether the identification information and the certificate are legal according to the pre-stored information, and sends a response message C2 to the first device. The response message is used to indicate the activation result of the third device and the device accommodated in the third device (such as the second device) under the user account.

[0238] Step 5, the first device calculates the shared key, and calculates the activation response message C3 and sends it to the third device. The activation response message is used to indicate the activation result of the third device and the device accommodated in the third device (such as the second device) under the user account.

[0239] Step 6, the third device calculates the initial public key P, the shared key mk between the third device and the first device, C4 and the association information C5, and sends the initial public key P, C4 and the association relationship C5 to the first device. Among them, the association information C5 is used to indicate the association relationship of the third device and the device accommodated in the third device (such as the second device) in the discovery network.

[0240] Step 7, the first device calculates the initial public key P, the private key d and the shared key mk, and sends the association information C5 to the cloud.

[0241] After the third device completes pairing, the third device can send the key to the device accommodated in the third device to complete the pairing of the device accommodated in the third device. Optionally, the third device can send the key to the device accommodated in the third device through an enhanced dedicated channel (EDCH) to ensure the secure transmission of the key. Optionally, the third device can transmit the key through a universal asynchronous receiver / transmitter (UART) interface.

[0242] Optionally, the device activation process can be visually presented to the user, and the present application does not limit this.

[0243] In some scenarios, the device accommodated in the third device (such as the second device) may need to be replaced with a new device due to loss, damage, etc. In this case, it is necessary to activate the newly added device. The following is combined with Figure 10 An exemplary description will be given.

[0244] Figure 10 FIG. is a schematic interaction flow diagram of a device activation method 900 provided by an embodiment of the present application. The method 900 may include at least some of the processes in S910 to S960 as follows.

[0245] S910, the sixth device sends access information to the third device, and the access information carries the identification information of the sixth device in the discovery network.

[0246] S920, the third device sends a second activation request to the first device, and the second activation request carries the identification information of the sixth device in the discovery network. Correspondingly, the first device receives the second activation request sent by the third device.

[0247] S930, the first device activates the sixth device under the user account in the discovery network.

[0248] S940, the first device sends 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. Correspondingly, the third device receives the second activation response sent by the first device.

[0249] S950, the third device sends second association information to the first device, and the second association relationship is used to indicate an update of the association relationship between the third device and the devices (including the sixth device) accommodated by the third device in the discovery network. Correspondingly, the first device receives the second association information sent by the third device.

[0250] S960, the third device sends second activation information to the sixth device, and the second activation information is used to indicate the activation result of the sixth device under the user account. Correspondingly, the sixth device receives the second activation information sent by the third device.

[0251] Each step in the method 900 is similar to S810 to S860 in the above method 800. The difference is that in the method 900, the third device, as an agent, needs to activate the sixth device, rather than re-activate the other devices accommodated by it and the third device itself.

[0252] Figure 10 The illustrated embodiment provides an efficient and reliable activation solution for updating some components in a multi-component product.

[0253] The embodiments of the present application further provide a positioning method. In this positioning method, 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 implement positioning through the first Bluetooth link. Correspondingly, the second device receives the indication information sent by the first device through the first Bluetooth link.

[0254] In some embodiments, the indication information is further used to instruct to set a first field in the broadcast information of the second device, or other devices accommodated by the second device and a third device, as information indicating the connection state, and the first field is used to indicate whether the corresponding device is in a connected state. For example, in response to the indication information, the second device sets the first field (such as the connected flag) in the broadcast information (such as the first broadcast information) to 1 to indicate that the second device is in a connected 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 for positioning the second device is no longer established between the first device and the second device. The second Bluetooth link may be a BLE link, for example.

[0255] In some embodiments, the indication information is further used to indicate that the second device, or other devices accommodated by the second device and a third device, are in a neighboring state. For example, in response to the indication information, the second device can set its own state machine to the neighboring state.

[0256] In all embodiments of the present application, if there is no special description and logical conflict, the terms and / or descriptions among the embodiments are consistent and can be referenced to each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.

[0257] Figure 11 It is a schematic block diagram of the positioning device 1000 provided by the embodiments of the present application. As Figure 11 shown, the device 1000 includes at least one of an acquisition module 1010, a processing module 1020, and a transceiver module 1030.

[0258] Exemplarily, the positioning device 1000 may be implemented as the foregoing first device. When the positioning device 1000 is implemented as the first device, the obtaining module 1010 may be used to obtain a first query request, where the first query request is at least used to request to query the location information of a second device, and a communication link cannot be established between the second device and the positioning device, and the communication link is used to implement positioning of the second device; the obtaining module 1010 may also be used to obtain location status information sent by a third device according to the communication status of the third device, where the location status information is used to indicate whether the second device is accommodated in the third device; the processing module 1020 may be used to determine the location information of the second device according to the location status information.

[0259] Exemplarily, when the positioning device 1000 is implemented as the foregoing first device, the positioning device 1000 is connected to the second device based on a first Bluetooth link, and the first Bluetooth link is used to transmit audio signals. The transceiver module 1030 may be used to send indication information to the second device through the first Bluetooth link, where the indication information is used to indicate that the second device implements positioning through the first Bluetooth link.

[0260] Exemplarily, when the positioning device 1000 is implemented as the foregoing second device, the positioning device 1000 is connected to the first device based on a first Bluetooth link, and the first Bluetooth link is used to transmit audio signals. The transceiver module 1030 may be used to receive indication information sent by the positioning device through the first Bluetooth link, where the indication information is used to indicate that the second device implements positioning through the first Bluetooth link.

[0261] Exemplarily, when the positioning device 1000 is implemented as the foregoing third device, the processing module 1020 may be used to determine location status information, where the location status information is used to indicate whether the second device is accommodated in the positioning device; the transceiver module 1030 may be used to send the location status information according to the communication status of the positioning device.

[0262] It should be understood that the specific processes for each module to execute the corresponding steps above have been described in detail in the foregoing method embodiments. For the sake of brevity, they will not be elaborated here.

[0263] The division of each module in the foregoing device is only a division of logical functions. In actual implementation, all or part of them may be integrated into one physical entity, or physically separated.

[0264] In the embodiments of the present application, the positioning device (such as the foregoing positioning device 1000) may be implemented as an electronic device, or deployed in an electronic device, such as Figure 1 the electronic device 100 in

[0265] The embodiments of the present application further provide a positioning system, which may include the first device, the second device, and the third device that can accommodate the second device in the foregoing embodiments.

[0266] The embodiments of the present application further provide a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run, the method in the above embodiments is implemented.

[0267] The embodiments of the present application further provide a computer program product, including computer program instructions, which cause a computer to execute the method in the above embodiments.

[0268] The term "plurality" herein refers to two or more. The term "and / or" herein merely describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " herein generally represents an "or" relationship between the associated objects before and after; in a formula, the character " / " represents a "division" relationship between the associated objects before and after. In addition, it should be understood that in the description of the present application, terms such as "first" and "second" are only used for the purpose of distinguishing descriptions and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0269] It can be understood that in the embodiments of the present application, the various numerical numbers involved are only for the convenience of description and are not used to limit the scope of the embodiments of the present application.

[0270] It can be understood that in the embodiments of the present application, the magnitude of the sequence numbers of the above processes does not mean the sequence of execution. The execution sequence of each process should be determined by its function and internal logic and should not constitute any limitation to 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 includes: Obtaining a first query request, where the first query request is at least used to request querying the location information of a second device, and a communication link cannot be established between the second device and the first device, and the communication link is used to implement positioning of the second device; the first device is a first terminal, and the second device is a wireless earphone; Obtaining, according to the communication state of a third device, position status information sent by the third device, where the position status information is used to indicate whether the second device is accommodated in the third device; the third device is a headphone case; Determining the location information of the second device according to the position status information, including: When the position status information indicates that the second device is accommodated in the third device, obtaining the location information of the third device; Using the location information of the third device as the location information of the second device; When the position status information indicates that the second device is not accommodated in the third device, obtaining the location information of the second device detected by a fifth device, and a communication connection is supported between the second device and the fifth device in a separated state; the fifth device is a vehicle-mounted device; The obtaining, according to the communication state of the third device, the position status information sent by the third device includes: When the third device is in a proximity state, receiving a first broadcast message sent by the third device, where the first broadcast message carries the position status information, and a communication connection is supported between the third device and the first device in the proximity state; or, When the third device is in a separated state, obtaining the position status information sent by the third device received by a fourth device, a communication connection is not supported between the third device and the first device in the separated state, and a communication connection is supported between the third device and the fourth device, and the fourth device is a second terminal.

2. The method according to claim 1, characterized in that, The obtaining the location information of the third device includes: When the third device is in a proximity state, positioning the third device to obtain the location information of the third device; or, When the third device is in a separated state, obtaining the location information of the third device obtained by the fourth device through positioning the third device.

3. The method according to claim 1 or 2, characterized in that, It further includes: Receiving a first activation request sent by the third device, where the first activation request carries the identification information of the third device in a search network and the identification information of the device accommodated in the third device in the search network, and the device accommodated in the third device includes the second device; Activating the third device and the device accommodated in the third device under a user account in the search network, where the user account is the account logged in by the first device; Sending a first activation response to the third device, where the first activation response is used to indicate the activation result of the third device and the device accommodated in the third device under the user account.

4. The method according to claim 3, characterized in that, It further includes: Receiving first association information sent by the third device, where the first association information is used to indicate the association relationship between the third device and the device accommodated in the third device in the search network.

5. The method according to claim 1 or 2, characterized in that, It further includes: 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 canceling the activation of the third device and the device accommodated by the third device under the user account.

6. The method according to claim 1 or 2, characterized in that, Further included: Receive a second activation request sent by the third device, where the second activation request carries identification information of a sixth device in a discovery network, and the sixth device is used to replace at least one device accommodated by the third device; Activate the sixth device in the discovery network in the user state; Send a second activation response to the third device, where the second activation response is used to indicate the activation result of the sixth device under the user account.

7. The method according to claim 3, characterized in that, Further included: Receive second association information sent by the third device, where the second association relationship is used to indicate updating the association relationship of the third device and the device accommodated by the third device in the discovery network.

8. A positioning method, characterized in that, Applied to a third device, characterized in that the method includes: Determine location status information, where the location status information is used to indicate whether a second device is accommodated by the third device; the second device is a wireless earphone, and the third device is an earphone case; wherein, the location status information is used to determine the location information of the second device, including: When the location status information indicates that the second device is accommodated by the third device, use the location information of the third device obtained as the location information of the second device; When the location status information indicates that the second device is not accommodated by the third device, obtain the location information of the second device detected by a fifth device, and the second device supports a communication connection with the fifth device in a separated state; the fifth device is a vehicle-mounted device; Send the location status information according to the communication status of the third device; The sending of the location status information includes: When the third device is in a proximity state, send a first broadcast message; When the third device is in a separated state, send a second broadcast message; Wherein, both the first broadcast message and the second broadcast message carry the location status information, and the second broadcast message further includes information indicating that the third device is in a separated state. The third device supports a communication connection with a first device in the proximity state, and the third device does not support a communication connection with the first device in the separated state; the first device is a first terminal.

9. The method according to claim 8, wherein The determining of the location status information includes: Receive access information sent by the second device, where the access information carries identification information of the second device in a discovery network; Determine the location status information according to the access information.

10. The method according to claim 8 or 9, wherein Further included: Send a first activation request to a first device, where the first activation request carries identification information of the third device in a discovery network and identification information of the device accommodated by the third device in the discovery network. The device accommodated by the third device includes the second device; Receive a first activation response sent by the first device, where the first activation response is used to indicate the activation result of the third device and the devices accommodated by the third device under a user account, and the user account is the account logged in by the first device.

11. The method according to claim 8, wherein It further includes: Send first activation information to the devices accommodated by the third device, where the first activation information is used to indicate the activation result of the devices accommodated by the third device under a user account.

12. The method according to claim 8 or 9, wherein It further includes: Receive deactivation information sent by the first device, where the deactivation information is used to indicate canceling the activation of the third device and the devices accommodated by the third device under a user account.

13. The method according to claim 8 or 9, wherein It further includes: Send a second activation request to the first device, where the second activation request carries the identification information of the sixth device in the discovery network, and the sixth device is used to replace at least one of the devices accommodated by the third device; Receive a second activation response sent by the first device, where the second activation response is used to indicate the activation result of the sixth device under a user account.

14. The method according to claim 10, wherein It further includes: Send second association information to the first device, where the second association relationship is used to indicate updating the association relationship of the third device and the devices accommodated by the third device in the discovery network.

15. A positioning device, wherein It includes a module for executing the method according to any one of claims 1-14.

16. A positioning device, wherein It includes: A processor and a memory, where the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory, so that the positioning device executes the method according to any one of claims 1-14.

17. A positioning system, wherein It includes a first device, a second device, and a third device that can accommodate the second device; The first device is used for: Obtain a first query request, where the first query request is at least used to request to query the location information of the second device, and no communication link can be established between the second device and the first device, and the communication link is used to implement positioning of the second device; the first device is a first terminal, and the second device is a wireless earphone; According to the communication status of the third device, obtain the location status information sent by the third device, where the location status information is used to indicate whether the second device is accommodated by the third device; The third device is an earphone case; Determine the location information of the second device according to the location status information; When the location status information indicates that the second device is accommodated by the third device, obtain the location information of the third device; Use the location information of the third device as the location information of the second device; When the location status information indicates that the second device is not accommodated by the third device, obtain the location information of the second device detected by the fifth device, and a communication connection is supported between the second device and the fifth device in a separated state; the fifth device is a vehicle-mounted device; The first device is specifically configured to: when the third device is in the adjacent state, receive the first broadcast information sent by the third device, where the first broadcast information carries the position status information, and the third device supports a communication connection with the first device in the adjacent state; or, when the third device is in the separated state, obtain the position status information sent by the third device received by the fourth device, where the third device does not support a communication connection with the first device in the separated state and supports a communication connection with the fourth device, and the fourth device is a second terminal.

18. A computer-readable storage medium, characterized in that, A computer program or instruction is stored in the computer-readable storage medium, and when the computer program or instruction is run, the method described in any one of claims 1-14 is implemented.

19. 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 described in any one of claims 1-14 is implemented.

Citation Information

Patent Citations

  • Mode control method, earphone system and computer readable storage medium

    CN111131966A

  • Device location search method and system

    WO2023273480A1