Positioning method, apparatus and system, and storage medium
By utilizing the position status and power information between devices in multi-component products to determine and position the target device, the problem of inaccurate positioning of multi-component product equipment in the prior art is solved, and a highly accurate positioning effect is achieved.
Patent Information
- Application Number
- PCT/CN2024/090987
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-14
- Filing Date
- 2024-04-30
- Publication Date
- 2025-01-23
AI Technical Summary
The prior art is difficult to achieve accurate positioning of equipment in multi-component products, especially when equipment performance is limited or equipment position is limited.
Get the query request through the first device, use the position status relationship and power information between the second device and the third device, determine the target device and position it to accurately determine the location information of the second device.
The accurate positioning of the equipment performance or position is limited, and the accuracy and success rate of positioning are improved.
Smart Images

Figure CN2024090987_23012025_PF_FP_ABST
Abstract
Description
Positioning method, device, system and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on July 14, 2023, with application number 202310872654.2 and application name “Positioning method, device, system and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to a positioning method, device, system, and storage medium. Background Art
[0003] In the application scenario of the device-to-device interaction technology, through the interaction between devices, one device can locate (or search for) other devices, such as searching for mobile phone B through mobile phone A.
[0004] Currently, when the device being searched is a multi-component product (such as a headset and a headset box that can accommodate the headset), some devices in the multi-component product (such as the headset) cannot be accurately located due to device performance limitations or device location limitations. For example, if the headset is not equipped with a positioning chip, or the headset is placed in a headset box, the headset cannot be accurately located.
[0005] Summary of the Invention
[0006] The present application provides a positioning method, apparatus, system and storage medium, which provide a positioning solution for devices that cannot be accurately positioned due to limited device performance or limited device location, so as to achieve accurate positioning.
[0007] In a first aspect, embodiments of the present application provide a positioning method. The method may be performed by a first device, which may be an electronic device or deployed in an electronic device, such as a mobile phone, a tablet computer, or a wearable electronic device with wireless communication capabilities (such as a smartwatch).
[0008] In this method, the first device can obtain a first query request, which is at least used to request the location information of the second device. In response to the first query request, the first device uses the location status relationship between the second device and the third device and the power information of the device (including the second device and / or the third device) to determine the target device as the positioning object, and then locates the target device to accurately determine the location information of the second device, providing an effective solution for how to determine the accurate location information of the second device.
[0009] Exemplarily, in the process of the first device searching for the second device in response to the first query request, after determining the device information, the target device (including the second device or the third device) can be determined based on the conditions satisfied by the device information, and then the target device can be located to determine the location information of the second device.
[0010] Exemplarily, the first device determines that the target device is the third device when the device information satisfies a first condition. The first condition may include:
[0011] The power level of the third device is greater than or equal to the first power level threshold;
[0012] The second device is accommodated in the third device.
[0013] When the second device is housed within a third device, the second and third devices are located in close proximity and can be considered to have the same location information. In this case, the second device's location information can be obtained by locating the second device, or the third device can be located to obtain the second device's location information. Considering that the detection signal exchanged between the first and second devices is weak when the second device is housed within the third device, the location information of the second device obtained by the first device locating the third device is more accurate.
[0014] Exemplarily, when the device information satisfies the second condition, the first device determines that the target device is the second device.
[0015] As an example, the second condition may include:
[0016] The power level of the second device is greater than or equal to a second power level threshold;
[0017] The second device is not accommodated in the third device.
[0018] When the second device is not housed in the third device, the location information of the second device and the third device should be different. Therefore, directly positioning the second device when the second device is powered can obtain accurate location information of the second device.
[0019] As another example, the second condition may include:
[0020] The power level of the second device is greater than or equal to a second power level threshold;
[0021] The power level of the third device is less than the first power level threshold;
[0022] The second device is accommodated in the third device.
[0023] When the third device is out of power and the second device is powered, the second device is used as the target device to locate it to obtain the location information of the second device, thereby avoiding the problem that the second device is accommodated in the third device and the third device is out of power and cannot find the second device.
[0024] For example, in order to accurately locate the second device, consider locating other devices (such as the fourth device) contained in the third device to determine the location information of the second device. If the device information of the first device meets the third condition, the first device determines that the target device is the fourth device. The third condition includes:
[0025] The second device and the fourth device are both accommodated in the third device;
[0026] The power level of the second device is less than a second power level threshold;
[0027] The power level of the third device is less than the first power level threshold;
[0028] The power level of the fourth device is greater than or equal to a third power level threshold.
[0029] When the second device and the fourth device are both housed in the third device, the second device and the fourth device are close in position and can be considered to have the same location information. In this case, if the second device and the third device are out of power but the fourth device is powered, the fourth device is positioned to determine the location information of the second device, thereby increasing the probability of successfully finding the second device.
[0030] Exemplarily, the location information of the second device determined by the first device includes the distance and / or angle between the second device and the first device, so as to accurately indicate the location of the second device.
[0031] For example, the first device can send detection information to the target device to locate the target device and obtain the location information of the second device; alternatively, the first device can receive detection information sent by the target device to locate the target device and obtain the location information of the second device. When the first device sends detection information to the target device to achieve positioning, the location information can be determined based on the detection signal reflected by the target device, which has lower processing complexity. When the first device receives detection information sent by the target device to achieve positioning, signal reflection is not involved, and positioning accuracy is higher.
[0032] For example, the first device may receive timing information sent by the target device and, based on the timing information, determine the time offset between the first device and the target device. Furthermore, based on the time offset and the detection information, the second device's location information is determined. Combining the timing information and the detection information to determine the second device's location information improves the accuracy of the second device's positioning.
[0033] Exemplarily, the first device displays a first interface to present the location status information of the target device and the locations between the second device and the third device through the first interface. A visual positioning process is provided to show the positioning basis and improve the user experience.
[0034] Consider some scenarios where positioning using a third device as the target device can accurately locate the second device. For example, when the second device is housed within a third device, positioning the third device can provide accurate location information for the second device. Therefore, if the third device's battery is low, the second device can be used to reversely replenish its power, ensuring it has enough power for positioning. The first device can then locate the third device and obtain the second device's location information.
[0035] Exemplarily, when the device information satisfies the fourth condition, the target device is determined to be the third device, and the second device is controlled to replenish energy for the third device; wherein the fourth condition includes:
[0036] The power level of the second device is greater than or equal to a fourth power level threshold;
[0037] The power level of the third device is less than the first power level threshold;
[0038] The second device is accommodated in the third device.
[0039] In order to improve the success rate of energy replenishment for the third device, it is considered to use other devices that can be accommodated by the third device, such as the fourth device, to replenish the energy of the third device. For example, the first device can determine whether the device information meets the fifth condition. When the device information meets the fifth condition, it determines that the target device is the fourth Nanzhuang Town and controls the second device and / or the fourth device to replenish the energy of the third device. The fifth condition includes:
[0040] The second device and the fourth device are both accommodated in the third device;
[0041] The power level of the third device is less than the first power level threshold;
[0042] The power level of the second device is greater than or equal to a fifth power level threshold, and / or the power level of the fourth device is greater than or equal to a sixth power level threshold.
[0043] Exemplarily, the first device may display a second interface to present the location information of the second device through the second interface, so as to visually present the location of the second device to the user.
[0044] In a second aspect, an embodiment of the present application provides a positioning method, the execution subject of the method is consistent with the execution subject of the method in the first aspect, and can be a first device.
[0045] In this method, the first device displays a third interface, the third interface presents a first device control and a second device control, or the third interface presents a third device control, the first device control corresponds to the second device, the second device control corresponds to the third device that does not accommodate the second device, and the third device control corresponds to the third device that accommodates the second device, and receives a user's selection operation on a target device control, the target device control being the first device control, the second device control, or the third device control, and then the first device locates the device corresponding to the target device control based on the detection information to obtain location information, and finally the first device displays a fourth interface, the fourth interface presents the location information; wherein, when the target device control is the first device control, the location information includes the location information of the second device, or, when the target device control is the third device control, the location information includes the location information of the second device and the third device.
[0046] The first device interacts with the user through an interface to determine the search target, and then accurately locates the search target based on the detection information, improving the user experience. Furthermore, when the search target is a second device that can be accommodated in another device, it can be accurately located based on the detection information. When the search target is a third device that accommodates the second device, the third device can be located based on the detection information, obtaining accurate position information for both the third device and the second device. This can be applied to the positioning of multi-component products.
[0047] For example, the third interface presents a first device control and a second device control, with the second device control corresponding to a third device that accommodates a fourth device; or, the third interface presents a third device control, with the third device control corresponding to a third device that accommodates a second device and a fourth device. When the target device control is the second device control, the location information includes the location information of the third and fourth devices; when the target device control is the third device control, the location information includes the location information of the second, third, and fourth devices. The first device locates the third device, and the location information of the third device and the devices accommodated by the third device (such as the second and / or fourth devices) can be obtained, which can be used to locate multi-component products.
[0048] Exemplarily, the first device locates the device corresponding to the target device control based on the detection information to obtain the location information, including: sending the detection information to the device corresponding to the target device control to locate the device and obtain the location information; or receiving the detection information sent by the device corresponding to the target device control to locate the device and obtain the location information. The technical effects of this have been described in the first aspect.
[0049] Exemplarily, a first device locates a device corresponding to a target device control based on the detection information to obtain location information, including: receiving time synchronization information sent by the device corresponding to the target device control; determining a time offset between the first device and the device corresponding to the target device control based on the time synchronization information; and determining location information based on the time offset and the detection information. The technical effects of this have been described in the first aspect.
[0050] Optionally, the location information includes the distance and / or angle between the device corresponding to the target device control and the first device. The technical effect thereof has been described in the first aspect.
[0051] In a third aspect, embodiments of the present application provide a positioning method. The method may be performed by a second device, which may be implemented as an electronic device or a component in an electronic device, which may be housed in another electronic device (e.g., an electronic device implemented by a third device, or an electronic device to which the third device belongs).
[0052] The method includes: sending detection information to the first device in response to a positioning instruction sent by the first device; or, determining that the target device is a second device based on the device information, the device information includes first location status information and first power information, the first location status information is used to indicate whether the second device is accommodated in a third device, and the first power information is used to indicate the power of the second device and / or the power of the third device; sending detection information to the first device; wherein the detection information is used to determine the location information of the second device.
[0053] Exemplarily, determining, based on the device information, that the target device is the second device includes: determining that the target device is the second device when the device information satisfies a second condition; wherein the second condition includes:
[0054] The power level of the second device is greater than or equal to a second power level threshold;
[0055] The second device is not accommodated in the third device;
[0056] or,
[0057] The power level of the second device is greater than or equal to a second power level threshold;
[0058] The power level of the third device is less than the first power level threshold;
[0059] The second device is accommodated in the third device.
[0060] Exemplarily, the method further includes: sending time synchronization information to the first device, where the time synchronization information is used to determine the location information of the second device in combination with the detection information.
[0061] In a fourth aspect, an embodiment of the present application provides a positioning device, comprising: a processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, so that the positioning device performs the method in the first aspect, the second aspect, the third aspect, or each possible implementation.
[0062] In a fifth aspect, an embodiment of the present application provides a positioning system, comprising: a first device, a second device, and a third device that can accommodate the second device; the first device is used to: obtain a first query request, the first query request is at least used to request the location information of the second device; determine device information, the device information includes first location status information and first power information, the first location status information is used to indicate whether the second device is accommodated in the third device, and the first power information is used to indicate the power of the second device and / or the power of the third device; determine the target device based on the device information, the target device is the second device, the third device, or other devices accommodated by the third device; locate the target device based on the detection information to obtain the location information of the second device.
[0063] Exemplarily, the system further includes a fourth device, and the device information further includes second location status information and second power information, the second location status information is used to indicate whether the fourth device is accommodated in the third device, and the second power information is used to indicate the power of the fourth device.
[0064] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium for storing computer program instructions, which enables a computer to execute a method as in the first aspect, the second aspect, the third aspect, or any possible implementation.
[0065] In a seventh aspect, an embodiment of the present application provides a computer program product, comprising computer program instructions, which enable a computer to execute the method in the first aspect, the second aspect, the third aspect, or any possible implementation manner.
[0066] The beneficial effects of the possible implementation methods of the third to seventh aspects mentioned above can be referred to the beneficial effects brought about by the first and second aspects mentioned above, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] FIG1 shows a schematic structural diagram of an electronic device;
[0068] FIG2 is a schematic diagram of an application scenario of device positioning provided by an embodiment of the present application;
[0069] FIG3 is a schematic flow chart of a positioning method provided in an embodiment of the present application;
[0070] FIG4a is a schematic diagram of a flow chart of a positioning method provided in an embodiment of the present application;
[0071] FIG4 b is a schematic diagram of a flow chart of another positioning method provided in an embodiment of the present application;
[0072] FIG5 is a schematic diagram of a flow chart of another positioning method provided in an embodiment of the present application;
[0073] FIG6 a is a schematic diagram of an interface display of a target device provided in an embodiment of the present application;
[0074] FIG6 b is a schematic diagram of an interface display of another target device provided in an embodiment of the present application;
[0075] FIG6 c is a schematic diagram of an interface display of another target device provided in an embodiment of the present application;
[0076] FIG7a is a schematic diagram of an interface display of a target device provided in an embodiment of the present application;
[0077] FIG7 b is a schematic diagram of an interface display of another target device provided in an embodiment of the present application;
[0078] FIG8 is a schematic diagram of an interface display of location information provided in an embodiment of the present application;
[0079] FIG9a is a schematic diagram of an interface for device positioning provided in an embodiment of the present application;
[0080] FIG9 b is a schematic diagram of another device positioning interface provided by an embodiment of the present application;
[0081] FIG10 is a schematic block diagram of a positioning device provided in an embodiment of the present application;
[0082] FIG11 is a schematic block diagram of a positioning device provided in an embodiment of the present application;
[0083] FIG12 is a schematic block diagram of a positioning device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0084] First, an electronic device, a graphical user interface for such an electronic device, and an embodiment for using such an electronic device are introduced. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with a wireless communication function (such as a smart watch), etc. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) with a touch-sensitive surface or a touch panel. It should also be understood that in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface or a touch panel, and the embodiments of the present application do not limit the form of the electronic device.
[0085] The term "user interface (UI)" in the specification, claims and drawings of this application refers to the media interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface of an application is a source code written in a specific computer language such as Java and Extensible Markup Language (XML). The interface source code is parsed and rendered on the terminal device, and finally presented as content that the user can recognize, such as pictures, text, buttons and other controls. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, scroll bars, pictures and text. The properties and contents of controls in the interface are defined by tags or nodes, such as XML through <textview> 、 <imgview> 、 <videoview>Nodes such as Node.js are used to define the controls contained in the interface. A node corresponds to a control or attribute in the interface. After parsing and rendering, the node is presented as user-visible content.
[0086] A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operations that uses graphics. It can be an icon, window, control, or other interface element displayed on the display of an electronic device. Controls can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other visual interface elements.
[0087] FIG1 is a schematic diagram of the structure of an electronic device. Referring to FIG1 , the electronic device may include: a processor 110 (e.g., a CPU) and a memory 120. The memory 120 may include high-speed random-access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device. The memory 120 may store various instructions for performing various processing functions and implementing the method steps of the present application.
[0088] Optionally, the electronic device involved in this application may further include: a power supply 130, a communication bus 140, and a communication port 150. The communication port 150 is used to enable communication between the electronic device and other peripheral devices. In the embodiment of the present application, the memory 120 is used to store computer-executable program code, which includes instructions; when the processor 110 executes the instructions, the instructions cause the processor 110 of the electronic device to perform the actions in the above-mentioned method embodiment. The implementation principles and technical effects are similar and will not be repeated here.
[0089] 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.
[0090] It should be noted that the modules or components described 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).
[0091] Alternatively, one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs), etc. For another example, when one of the above modules is implemented by scheduling program code on a processing element, the processing element can be a general-purpose processor, such as a central processing unit (CPU), or other processor capable of calling program code, such as a controller. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0092] The electronic device 100 may include an audio module 170 , which implements audio functions such as receiving audio signals, playing music, and recording audio through a speaker 171 , a receiver 172 , a microphone 173 , an earphone jack 174 , and an application processor.
[0093] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0094] The speaker 171, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 171.
[0095] The receiver 172, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be heard by placing the receiver 172 close to the human ear.
[0096] The microphone 173, also known as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 173 to input the sound signal into the microphone 173. The electronic device 100 can be provided with at least one microphone 173. In other embodiments, the electronic device 100 can be provided with two microphones 173, which can not only collect sound signals but also implement noise reduction functions. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 173 to collect sound signals, reduce noise, identify the sound source, implement directional recording functions, etc.
[0097] Figure 2 is a schematic diagram of a device positioning application scenario 200 provided by an embodiment of the present application. As shown in Figure 2, a first device 210 and a second device 220 are in communication with each other. First device 210 can be implemented as the aforementioned electronic device; second device 220 can be a multi-component product, such as a multi-component product 221 consisting of a wireless headset and a headset case, or a multi-component product 222 consisting of a wireless headset and a watch.
[0098] The wireless headset can be used in conjunction with the first device 210 to process audio services such as media and calls on the electronic device, as well as other data services. For example, audio services may include playing music, recording, and receiving call notification sounds for the user. They may also include playing voice from the other end for the user or collecting the user's voice data and sending it to the other end in call service scenarios such as phone calls, voice messages, audio calls, video calls, games, and voice assistants.
[0099] The storage box for the wireless earphones in the second device 220 can be independently provided, such as 221 in Figure 2, with the wireless earphones stored in the earphone box; or the earphone box for the wireless earphones in the second device 220 can be provided in an electronic device (such as a watch), such as 222 in Figure 1. This application does not limit the number of wireless earphones. For example, the second device 220 can be a single-ear earphone device including one wireless earphone, a dual-ear earphone device including two wireless earphones, or a shared earphone device including three or more wireless earphones.
[0100] In some embodiments, the wireless headset in this application may include: a processor, a memory, a speaker, a communication port, etc. The processor, the memory, the speaker, and the communication port can refer to the relevant description of the corresponding modules in the electronic device.
[0101] In some embodiments, the earphone box in the present application may include: a processor, a memory, a speaker, a communication port, etc. The processor, memory, speaker, and communication port can refer to the relevant description of the corresponding modules in the electronic device.
[0102] When the wireless headset is placed in the headset case, the first device 210 is in communication with the headset case or the electronic device provided with the headset case in the second device 220. When the wireless headset is placed outside the headset case, the first device 210 is in communication with both the headset case in the second device 220 and the wireless headset placed outside the headset case.
[0103] In some scenarios, the wireless headset in the second device 220 lacks a positioning chip, making it difficult to accurately locate the headset. In such cases, positioning the headset via Bluetooth communication between the first device 210 and the headset will result in poor positioning accuracy. In other scenarios, when the headset is contained in a headset case, there is no interaction between the first device 210 and the second device 220, making positioning impossible. Therefore, there is currently a lack of effective solutions for positioning devices in multi-component products.
[0104] In order to achieve accurate positioning of components in a multi-component product, an embodiment of the present application provides a positioning solution, introduces "detection information", determines the location information of the wireless headset through the detection information, and combines the power information of the multi-component product and the positional relationship between the headset and the headset box to determine the target object detected by the detection information, and utilizes the relationship between the various devices in the multi-component product to achieve accurate positioning of the wireless headset.
[0105] The above detection information may be an ultrasonic signal, but the present application is not limited thereto. For example, it may also be an infrared signal.
[0106] This application does not limit the composition of a multi-component product. In the embodiments of this application, a multi-component product may also include other device combinations, such as smart glasses and glasses cases. For ease of understanding, in some embodiments, a multi-component product consisting of headphones and a headphone case is used as an example for description.
[0107] It should be noted that "locating a device (or equipment)" can also be expressed as "determining or obtaining the location information of a device (or equipment)," and the two are used interchangeably to express the same meaning. Furthermore, for convenience, the meaning remains unchanged after changing the word order. For example, "locating a device (or equipment)" can also be expressed as "locating the device (or equipment)."
[0108] The positioning method provided in the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0109] It should be understood that the following is only for the convenience of understanding and explanation. The embodiment of the present application is described by taking the first device as the execution subject as an example. The first device can be the first device 210 in Figure 2, or a component in the first device 210 (such as a chip, a chip system or other functional module that can call a program and execute a program). In some embodiments, the interaction between the first device, the second device and the third device is described as an example. The second device can be a wireless headset in the second device 220 in Figure 2, or a component in the wireless headset (such as a chip, a chip system or other functional module that can call a program and execute a program). The third device can be the headset box in the second device 220 in Figure 2, or a component in the headset box (such as a chip, a chip system or other functional module that can call a program and execute a program). In other embodiments, the interaction between the first device, the second device, the third device and the fourth device is described as an example. The fourth device can be another wireless headset in the second device 220 in Figure 2, or a component in the wireless headset (such as a chip, a chip system or other functional module that can call a program and execute a program).
[0110] FIG3 is a schematic flow chart of a positioning method 300 provided in an embodiment of the present application. As shown in FIG3 , the method 300 may include some or all of the processes from S310 to S340. Each step in the method 300 is described in detail below.
[0111] S310, the first device obtains a first query request;
[0112] S320, the first device determines device information;
[0113] S330, the first device determines the target device based on the device information;
[0114] S340: The first device locates the target device based on the detection information to obtain location information of the second device.
[0115] The target device can be the second device, the third device, or another device contained within the third device. For example, in a multi-component product consisting of wireless headphones and a headphone case, the third device can be the headphone case, and the second device can be a wireless headphone. In addition to containing the second device, the third device can also contain other devices, such as the fourth device described below, which can be another wireless headphone contained within the headphone case.
[0116] The first query request may be input by a user, or in other words, the first query request may be generated in response to a user operation. The first query request may request the location information of one or more devices (or equipment) in a multi-component product. For example, if the multi-component product is a wireless headset and a headset case, the first query request may request the location information of one or more wireless headsets and / or headset cases. In the present application, the first query request is used to request the location information of at least a second device. For example, if the multi-component product is a wireless headset and a headset case, the first query request is used to request the location information of at least one wireless headset.
[0117] It should be noted that when the first query request is also used to request the location information of other devices (such as other wireless headphones), the same or similar implementation method as that of locating the second device can be used to locate it to obtain its location information. For the sake of brevity, it will not be repeated here.
[0118] Device information may include battery level information for one or more devices in a multi-component product. Device information may also include the positional relationship between devices in a multi-component product, such as whether a wireless headset is housed in a headset case or not. In some embodiments, device information may include first location status information and first battery level information. The first location status information indicates whether the second device is housed in a third device, and the first battery level information indicates the battery level of the second device and / or the battery level of the third device.
[0119] The device information may be sent by the second device. For example, the second device may send the second device's power information and / or location status information indicating whether the second device is accommodated in the third device to the first device. This application also does not exclude the second device from sending the third device's power information and / or location status information. For example, the second device may obtain the third device's power information based on a contact connection or a wireless connection with the third device, and send the third device's power information to the first device.
[0120] The device information may be sent by a third device. For example, the third device may send power information of the second device and / or the third device to the first device. For another example, the third device may send location status information indicating whether the second device is accommodated in the third device to the first device. The third device may obtain the power information and / or location status information of the second device via a contact connection or a wireless connection.
[0121] The device information may also be sent by the second device and the third device. In this case, the second device and the third device may respectively send the same device information. Or the second device and the third device may respectively send part of the device information. For example, the second device may send the power information of the second device and the location status information indicating whether the second device is accommodated in the third device to the first device, and the third device may send the power information of the third device to the first device. For another example, the second device may send the power information of the second device to the first device, and the third device may send the location status information indicating whether the device that the third device can accommodate (including the second device) is accommodated in the third device to the first device, and so on.
[0122] In some embodiments, the device information may further include second location status information and second power information, where the second location status information is used to indicate whether the fourth device is accommodated in the third device, and the second power information is used to indicate the power level of the fourth device. Both the second location status information and the second power information may be sent by the fourth device to the first device; or both the second location status information and the second power information may be sent by the third device; or the second location status information and the second power information may be sent by both the fourth device and the third device, for example, the fourth device sends the second location status information to the first device, and the third device sends the second power information to the first device.
[0123] At least part of the first power information, the second power information, the first location status information and the second location status information may be sent together, or the first power information, the second power information, the first location status information and the second location status information may be sent independently.
[0124] It should be noted that the device information may be information sent by the second device and / or the third device in a broadcast manner, and the first device may enable broadcast scanning to detect and receive the device information sent by the second device and / or the third device in a broadcast manner. It should also be understood that the first device and the multi-component product may be paired first, and then receive information sent by the devices in the multi-component product after pairing. Optionally, the first device may be paired with the second device based on a basic rate (BR) link, and the first device may be paired with the third device based on a Bluetooth low energy (BLE) link.
[0125] It can be seen from this that the power level of a multi-component product and the positional relationship between the devices reflected by the device information can be used to determine which device to locate, and the position information of the second device can be accurately obtained.
[0126] As an example, the first device may receive detection information sent by a target device to locate the target device and determine the target device's location information based on the received detection information. For example, if the detection information is an ultrasonic signal, the first device may send a positioning instruction to the target device. In response to the positioning instruction, the target device may transmit an ultrasonic signal via a speaker. The first device may then receive the ultrasonic signal transmitted by the target device via a microphone and estimate the target device's location information based on the ultrasonic signal.
[0127] In some embodiments, the target device can determine whether to send detection information based on device information. For example, using the second device as an example, the second device can determine whether the target device is the second device itself based on the device information, and upon determining that the target device is the second device, send detection information to the first device. The process by which the second device determines the target device based on the device information is the same or similar to that by the first device, and for the sake of brevity, this description will not be repeated. Alternatively, when the first device sends a positioning command, the second device can determine the target device based on the device information, and upon determining that the target device is the second device, send detection information.
[0128] As another example, the first device may send detection information to a target device to locate the target device. For example, if the detection information is an ultrasonic signal, the first device may transmit the ultrasonic signal to the target device via a speaker and receive a reflection signal from the target device via a microphone, thereby estimating the target device's location based on the received reflection signal.
[0129] Similar to the above example, the first device may send a radio frequency signal to the target device and receive the radio frequency signal reflected by the target device, and the first device estimates the location information of the target device based on the received reflected radio frequency signal.
[0130] As another example, the first device may send detection information to the target device. The target device may determine its own location information, i.e., the location information of the second device, based on the received detection information, and send the location information to the first device to search for the second device.
[0131] Optionally, the location information of the second device includes a distance and / or angle between the second device and the first device. The angle between the second device and the first device may be the angle between the location of the second device and any point or surface on the first device. For example, the angle between the second device and the first device may be the angle between the location of the second device and the surface on which the screen of the first device is located.
[0132] Generally speaking, two microphones are deployed in an electronic device, and the ultrasonic signals received by the two microphones cannot distinguish whether the second device is on the left or right side of the first device. Therefore, in the process of the first device locating the target device, in order to improve the accuracy of positioning, the first device can determine the angle between the second device and the first device by rotation de-mirroring. Among them, rotation de-mirroring can be achieved by the user rotating the mobile phone. For example, the first device presents a rotation de-mirroring operation prompt through the interface of the display screen, such as "rotate the phone", to prompt the user to perform the corresponding operation. The first device accurately determines the angle between the second device and the first device based on a comprehensive judgment of the ultrasonic signal (or reflected signal) received before the user rotates the phone and the ultrasonic signal (or reflected signal) received after the user rotates the phone.
[0133] In some embodiments, during the process of a first device locating a target device, the first device may receive timing information sent by the target device, determine the time offset between the first device and the target device based on the timing information, and then determine the location information of the second device based on the time offset and the received detection information sent by the target device. For example, the first device may determine the distance between the target device and the first device based on the time offset and the detection information, and determine the angle between the target device and the first device based on the detection information.
[0134] Illustratively, the first device may notify the target device via Bluetooth to perform Bluetooth time synchronization. For example, the target device may send one or more time synchronization frames to the first device in response to a positioning instruction. The time synchronization frames carry information such as the sending time and the callback time. After receiving the time synchronization frames sent by the target device, the first device calculates the time offset and thereby corrects the time difference between the first device and the target device.
[0135] 4a and 4b , the target device is determined by determining the conditions satisfied by the device information.
[0136] In the implementation shown in Figure 4a, when the first device searches for the second device in response to the first query request, after determining the device information, it can determine the target device (including the second device or the third device) based on the conditions satisfied by the device information, and then locate the target device to determine the location information of the second device.
[0137] Exemplarily, when the device information satisfies the second condition, the first device determines that the target device is the second device.
[0138] As an example, the second condition may include:
[0139] The power level of the second device is greater than or equal to a second power level threshold;
[0140] The second device is not accommodated in the third device.
[0141] It should be understood that if the second device is not housed in the third device, the location information of the second device and the third device should be different. Therefore, directly locating the second device can obtain accurate location information of the second device. Positioning the second device requires that the power of the second device is greater than or equal to a second power threshold. The second power threshold can be understood as the minimum power required for the second device to achieve positioning of the second device.
[0142] As another example, the second condition may include:
[0143] The power level of the second device is greater than or equal to a second power level threshold;
[0144] The power level of the third device is less than the first power level threshold;
[0145] The second device is accommodated in the third device.
[0146] It should be understood that if the second device is housed within a third device and the second and third devices are located in close proximity, they can be considered to have the same location information. In this case, the second device can be located to obtain its location information, or the third device can be located to obtain its location information. Considering that when the second device is housed within the third device, the detection signal exchanged between the first and second devices is weaker, the location information of the second device obtained by locating the third device is more accurate. Based on this, if the third device has sufficient power, such as if the power of the third device is greater than or equal to a first power threshold, the third device can be used as the target device to locate the second device's location information. If the third device has insufficient power and the second device has sufficient power, such as if the power of the third device is less than the first power threshold and the power of the second device is greater than or equal to a second power threshold, the second device can be used as the target device to locate the second device's location information. The first power threshold can be the minimum power required by the third device to locate the third device. Optionally, the second power threshold can be the same as or different from the first power threshold, and this application does not limit this.
[0147] Exemplarily, when the device information satisfies the first condition, the first device determines that the target device is the third device.
[0148] As an example, the first condition may include:
[0149] The power level of the third device is greater than or equal to the first power level threshold;
[0150] The second device is accommodated in the third device.
[0151] As mentioned above, if the second device is housed in the third device, positioning the third device can accurately determine the location information of the second device. Therefore, if the third device has sufficient power, the first device can position the third device.
[0152] In the embodiment shown in FIG. 4 a , the device information may include first location status information and first power information. The first location status information and the first power information have been described in the above examples and will not be repeated for the sake of brevity.
[0153] In some embodiments, it is also possible to locate other devices (such as a fourth device) contained in the third device to determine the location information of the second device. For example, referring to FIG4b , when the device information satisfies the third condition, the first device determines that the target device is the fourth device.
[0154] The third condition may include:
[0155] The second device and the fourth device are both accommodated in the third device;
[0156] The power level of the second device is less than a second power level threshold;
[0157] The power level of the third device is less than the first power level threshold;
[0158] The power level of the fourth device is greater than or equal to a third power level threshold.
[0159] It should be understood that when the second device and the fourth device are both housed in the third device, the positions of the second device, the third device, and the fourth device are close and can be considered to have the same location information. In this case, if the power of the second device and the third device is insufficient and the power of the fourth device is sufficient, if the power of the fourth device is greater than or equal to the third power threshold, then the fourth device is considered to be located to determine the location information of the second device. The third power threshold can be the minimum power required for the fourth device to locate the fourth device. The third power threshold can be the same as or different from the second power threshold, and the third power threshold can be the same as or different from the first power threshold. This application does not limit this.
[0160] In some embodiments, the third condition may not require that the battery level of the second device be less than the second battery level threshold. That is, even if both the second and fourth devices have sufficient battery levels, the fourth device may be located to determine the location information of the second device. In particular, when the positioning accuracy of the fourth device is higher than that of the second device, the fourth device may be prioritized for positioning. For example, when the transmission intensity of the ultrasonic transmitter of the fourth device is higher than that of the ultrasonic transmitter of the second device, the fourth device may be considered for positioning.
[0161] In the embodiment shown in Figure 4b, the device information may include the above-mentioned first location status information and first power information, and may also include second location status information and second power information. The second location status information and the second power information have been explained in the previous example and will not be repeated for the sake of brevity.
[0162] It should be noted that regardless of whether the multi-component product includes a fourth device, the first device can determine the target device based on the second condition and / or the first condition. For example, the first device may determine the target device to be the second device when the device information satisfies the second condition, and the target device to be the third device when the device information satisfies the first condition. Alternatively, if the device information does not satisfy either the second or the first condition, the first device may be unable to determine the location information of the second device, thus failing the search.
[0163] To increase the probability of successfully finding the second device, when the multi-component product includes a fourth device, the first device can determine the target device based on the second condition, the first condition, and the third condition. For example, the first device may determine the second device as the target device if the device information meets the second condition, the third device as the target device if the device information meets the first condition, and the fourth device as the target device if the device information meets the third condition. Alternatively, if the device information does not meet the second condition, the first condition, or the third condition, the first device cannot determine the location information of the second device, indicating that the search has failed.
[0164] In some embodiments, the above conditions can be broken down to achieve more fine-grained logical processing to further determine the corresponding target device. Referring to Figure 5, in the process of the first device searching for the second device in response to the first query request, after determining the device information, the location information of the second device can be determined based on the device information.
[0165] For example, the first device can determine whether the second device is accommodated in the third device. If the second device is not accommodated in the third device, the first device can directly locate the second device to obtain accurate location information of the second device. If the second device is accommodated in the third device, the target device can be further determined based on the power levels of the second, third, and fourth devices.
[0166] Referring to Figure 5 , if it is determined that the second device is not accommodated within the third device, the first device may determine whether the battery level of the second device is greater than or equal to a second battery threshold. If the battery level of the second device is greater than or equal to the second battery threshold, the target device is determined to be the second device and the second device is located. If the battery level of the second device is less than the second battery threshold, the search fails.
[0167] Referring to Figure 5 , if it is determined that the second device is housed within the third device, the first device may determine whether the power level of the third device is greater than or equal to a first power threshold. If the power level of the third device is greater than or equal to the first power threshold, the target device is determined to be the third device and the third device is subsequently located. If the power level of the third device is less than the first power threshold, the target device is determined to be the second device based on the power level of the second device.
[0168] Referring to Figure 5 , the first device can determine whether the battery level of the second device is greater than or equal to a first battery level threshold. If the battery level of the second device is greater than or equal to the first battery level threshold, the target device is determined to be the second device, and the second device is then located. If the battery level of the second device is less than the first battery level threshold, the target device is determined to be a fourth device.
[0169] Referring to Figure 5 , the first device can determine whether the fourth device is accommodated in the third device. If the fourth device is not accommodated in the third device, the search fails. If the fourth device is accommodated in the third device, the first device can determine whether the target device is the fourth device based on the power level of the fourth device. If the power level of the fourth device is greater than or equal to a third power threshold, the target device is determined to be the fourth device. If the power level of the fourth device is less than the third power threshold, the search fails.
[0170] In some embodiments, positioning the second device using a third device as the target device can achieve high accuracy. For example, when the second device is contained within the third device, positioning the third device can accurately determine the second device's location. Therefore, if the third device's battery is low, the second device can be used to reversely replenish its power, ensuring that the third device has enough power to achieve positioning. The first device can then locate the third device and obtain the second device's location.
[0171] For example, the first device may determine whether the device information satisfies a fourth condition. If the device information satisfies the fourth condition, the first device may determine that the target device is the third device and control the second device to recharge energy to the third device. The fourth condition includes:
[0172] The power level of the second device is greater than or equal to a fourth power level threshold;
[0173] The power level of the third device is less than the first power level threshold;
[0174] The second device is accommodated in the third device.
[0175] As mentioned above, if the second device is housed in a third device, locating the third device can accurately determine the location information of the second device. Therefore, it is considered to first recharge the third device and then locate it. Recharging the third device with the second device requires sufficient power in the second device, for example, the power of the second device is greater than or equal to a fourth power threshold. The fourth power threshold can be the same as or different from the second power threshold. For example, the fourth power threshold can be the minimum power required by the second device to implement a service function (such as audio playback).
[0176] For example, consider using another device that can be accommodated by the third device, such as the fourth device, to replenish the energy of the third device. For example, the first device can determine whether the device information meets the fifth condition. If the device information meets the fifth condition, it determines that the target device is the fourth Nanzhuang Town and controls the second device and / or the fourth device to replenish the energy of the third device.
[0177] The fifth condition includes:
[0178] The second device and the fourth device are both accommodated in the third device;
[0179] The power level of the third device is less than the first power level threshold;
[0180] The power level of the second device is greater than or equal to a fifth power level threshold, and / or the power level of the fourth device is greater than or equal to a sixth power level threshold.
[0181] The second device and the fourth device are both contained in the third device, and the power of the third device is less than the first power threshold. In this case, if the power of the second device is greater than or equal to the fifth power threshold, the second device is controlled to replenish energy for the third device. The fifth power threshold and the fourth power threshold may be the same or different. If it is determined that the power of the fourth device is greater than or equal to the sixth power threshold, the first device may control the fourth device to replenish energy. If it is determined that the power of the second device is greater than or equal to the fifth power threshold, and the power of the fourth device is greater than or equal to the sixth power threshold, the first device may select one of the second and fourth devices (such as the one with higher power) to replenish energy for the third device, or the first device may control the second and fourth devices together to replenish energy for the third device.
[0182] The power threshold in any of the above examples (such as one or more of the first to sixth power thresholds) may be 0, or in other words, when the device has power, it is considered that the power level of the device is greater than or equal to the corresponding power threshold, and when the device has no power, it is considered that the power level of the device is less than the corresponding power threshold. Of course, this application does not limit this, for example, the power threshold may also be greater than 0.
[0183] In some embodiments, the first device may display a first interface to present the location status information of the target device and the location status information between the second device and the third device. Optionally, the first interface may also present the battery level of the second device and / or the third device.
[0184] Referring to Figure 6a, the first interface presents that the second device is not accommodated in the third device, and indicates that the target device is the second device by a bold display. The first interface also presents the power mark of the second device, indicating that the second device has sufficient power, and the power mark of the third device indicates that the third device has sufficient power. Referring to Figure 6b, the first interface presents that the second device is accommodated in the third device, and indicates that the target device is the second device by a bold display. The first interface also presents the power mark of the second device, indicating that the second device has sufficient power, and the power mark of the third device, indicating that the third device has insufficient power. Referring to Figure 6c, the first interface presents that the second device is accommodated in the third device (or only the third device is presented, and the second device is accommodated in the third device by default), and indicates that the target device is the third device by a bold display. The first interface also presents the power mark of the third device, indicating that the third device has sufficient power, and the power of the second device can be selectively presented.
[0185] In some embodiments, the third device may also accommodate other devices, such as a fourth device. Optionally, the first interface may also present location status information between the fourth device and the third device. Optionally, the target device presented on the first interface may be the fourth device. Optionally, the first interface may also present the battery level of the fourth device.
[0186] Referring to Figure 7a, the first interface shows that the second and fourth devices are both accommodated within the third device, and a bold display indicates that the target device is the third device. The first interface also shows that the third device has sufficient battery power, and can optionally display the battery power of the second and fourth devices. Referring to Figure 7b, the first interface shows that the second and fourth devices are both accommodated within the third device, and a bold display indicates that the target device is the fourth device. The first interface also shows that the second device has insufficient battery power, the third device has insufficient battery power, and the fourth device has sufficient battery power.
[0187] The present application does not limit the target device in the first interface to be presented in a bold display manner. For example, it can be presented in a flashing display manner, or in a text manner.
[0188] In some embodiments, the first device may display a second interface to present the location information of the second device through the second interface. Referring to FIG8 , taking the second device as the left earphone as an example, the second interface may present a cursor for the location of the left earphone and a cursor (e.g., an arrow) indicating the direction of the left earphone; text indicating the direction and distance between the left earphone and the first device, such as "8.9 meters left front"; and text indicating a search object, such as "Looking for the left earphone."
[0189] Therefore, when it is necessary to find the second device, the embodiment of the present application utilizes the position status relationship between the second device and the third device and the power information of the devices (including the second device and / or the third device) to determine the target device as the positioning object, so that after locating the target device, the position information of the second device can be accurately determined, providing an effective solution for how to determine the accurate position information of the second device.
[0190] In order to meet user needs and make it easier for users to query devices, an embodiment of the present application also provides a positioning method based on user operations, which is exemplarily described below in conjunction with Figures 9a and 9b.
[0191] Figures 9a and 9b are schematic diagrams of a device positioning interface provided in an embodiment of the present application. As shown in Figure 9a, a first device may display a functional interface 001, which includes a device search control 010. After the user selects control 010, the first device displays a device list (e.g., 002-1 or 002-2). This device list may include one or more devices that the first device is connected to or has been connected to, such as mobile phone 1, mobile phone 2, a television, headphones, etc.
[0192] Optionally, before displaying function interface 001, the first device may display a menu interface. The first device opens function interface 001 in response to a user's selection operation in the menu interface. For example, the first device opens function interface 001 in response to a user's selection operation of a cloud space control in the menu interface. Alternatively, the first device may open function interface 001 in response to a user's voice command, which is not limited in this application.
[0193] Referring to Figure 9a, the device list can also present the location status of devices in a multi-component product, such as device list 002-1 showing "Headphones are outside the headphone case." The device list can also display the device's location information, which can be determined during the most recent device search. Optionally, the device list can also display the time the device's location information was found. For example, device list 002-2, shown in Figure 9b, shows that the device is in area A, and the search time is "just now." Optionally, if the headphones are not contained in the headphone case, device list 002-1 in Figure 9a is presented; if the headphones are contained in the headphone case, device list 002-2 in Figure 9b is presented. Of course, this application is not limited to this. For example, if the headphones are contained in the headphone case, device list 002-2 presented by the first device can display "Headphones are inside the headphone case."
[0194] 9a, after the user selects the "headphone" control in the device list 002-1, the first apparatus may present a device detail interface (such as one of 003-1 to 003-3).
[0195] If both the left earphone and the right earphone are outside the earphone case, the first device presents a device details interface 003-1, which displays an earphone case control 031, a left earphone control 032, and a right earphone control 033. Optionally, the UI of each control (such as the earphone case control, the left earphone control, and the right earphone control) includes at least one of a battery level indicator of the corresponding device (such as the battery level indicator 031-1 of the earphone case, the battery level indicator 032-1 of the left earphone, and the battery level indicator 033-1 of the right earphone), the location information of the corresponding device obtained by the most recent positioning (such as the location information 031-2 of the earphone case, the location information 032-2 of the left earphone, and the location information 033-2 of the right earphone), and the time of the most recent positioning of the corresponding device (such as the positioning time 031-3 of the earphone case, the positioning time 032-3 of the left earphone, and the positioning time 033-3 of the right earphone).
[0196] If the right earphone is outside the earphone case, the first device presents device details interface 003-2, which displays the earphone case control and the right earphone control. The UI elements of the earphone case control may include "earphone case + left earphone". Optionally, the UI of each control (such as the earphone case control and the right earphone control) includes at least one of the battery level of the corresponding device, the location information obtained by the most recent positioning, and the time of the most recent positioning.
[0197] If the left earphone is outside the earphone case, the first device presents details interface 003-3, which displays the earphone case control and the left earphone control. The UI elements of the earphone case control may include "earphone case + right earphone." Optionally, at least one of the battery level of each control (such as the earphone case control and the left earphone control), the location information obtained from the most recent positioning, and the time of the most recent positioning is displayed.
[0198] Furthermore, the first device locates the device corresponding to the control in response to the user selecting the control in the device details interface (e.g., any one of 003-1 to 003-3). For example, the first device locates the left earphone in response to the user selecting the left earphone control in the device details interface 003-1.
[0199] Optionally, when locating the left earphone, the first device may present a search details interface 004-1, which displays the text 041 (such as "left earphone") of the search object and a search control 042 (or precise search control). Optionally, the search details interface 004-1 may also display the battery level indicator 043 of the search object. In response to the user selecting the search control 042 in the search details interface 004-1, the first device opens a positioning interface 005-1, which displays a position cursor of the left earphone and a cursor (such as an arrow) indicating the direction of the left earphone; text indicating the direction and distance between the left earphone and the first device, such as "8.9 meters left front"; and text of the search object, such as "left earphone".
[0200] Referring to Figure 9b, after the user selects the "Headphones" control in device list 002-2, the first apparatus may present device details interface 003-4. Device details interface 003-4 displays the headphone caddy control, where UI elements of the headphone caddy control may include "headphone caddy + left headphone + right headphone." Optionally, device details interface 003-4 may also display at least one of the headphone caddy's battery level, the most recent location information, and the time of the most recent location.
[0201] Furthermore, the first device locates the earphone box in response to the user selecting the earphone box control in the device details interface 003-4.
[0202] Optionally, when locating the earphone box, the first device may present a search details interface 004-2, which displays the text of the search object (such as "earphone box + left earphone + right earphone"), a search control (or precise search control), and the first device responds to the user selecting the search control in the search details interface 004-2 by opening a positioning interface 005-2, which displays a position cursor of the earphone box and a cursor indicating the direction of the earphone box (such as an arrow); text indicating the direction and distance between the earphone box and the first device, such as "8.9 meters left front"; and text of the search object, such as "earphone box + left earphone + right earphone".
[0203] It should be noted that the interfaces shown in Figures 9a and 9b are examples, and actual scenarios may include more or fewer interactive processes. For example, the first device may not present the search details interface (such as 004-1 and 004-2). Instead, the first device may directly locate the device and present the location interface (such as 005-1 or 005-2) in response to the user selecting a control in the device details interface.
[0204] In the positioning method provided in the embodiment of the present application, the first device can display a third interface (such as any one of the device detail interfaces 003-1 to 003-4 in Figures 9a and 9b above). In a first implementation method, the second device is not accommodated in the third device, and the third device accommodates the fourth device. The third interface presents a first device control (such as the left earphone control in the device detail interface 003-3 in Figure 9a) and a second device control (such as the earphone box control in the device detail interface 003-3 in Figure 9a). The first device control corresponds to the second device (such as the left earphone), and the second device control corresponds to the third device that accommodates the fourth device (such as the earphone box + right earphone). Optionally, the UI element of the first device control may include an element indicating the name of the second device and an element indicating the battery level of the second device, and the UI element of the second device control may include an element indicating the names of the third and fourth devices and an element indicating the battery level of the third device.
[0205] Furthermore, the first device may receive a user selection operation on a target device control, where the target device control may be a first device control or a second device control. In response to the user selection operation on the target device control, the first device locates the device corresponding to the target device control based on the detection information, and obtains location information. When locating the device based on the detection information to obtain location information, the positioning technology employed can be found in the aforementioned examples and will not be further described for the sake of brevity. If the target device control is the first device control, the obtained location information may include the location information of the second device; if the target device control is the second device control, the location information may include the location information of the third and fourth devices.
[0206] In a second implementation, the second device is contained within a third device, which in turn contains a fourth device. The third interface presents a third device control (e.g., the earphone case control in device details interface 003-4 in Figure 9b). This third device control corresponds to the third device containing the second and fourth devices (e.g., earphone case + left earphone + right earphone). Optionally, the UI element for the third device control may include an element indicating the names of the second, third, and fourth devices, and an element indicating the battery level of the third device.
[0207] Furthermore, the first device may receive a user selection operation on a control of a third device. In response to the user selection operation on the control of the third device, the first device locates the third device based on the detection information and obtains location information, where the location information includes the location information of the second device, the third device, and the fourth device. The positioning technology used to locate the devices based on the detection information to obtain location information can be found in the aforementioned examples and will not be further described for the sake of brevity.
[0208] The first device may display a fourth interface (eg, positioning interface 005 - 1 or 005 - 2 ), and the fourth interface may present location information, including the distance and / or angle between the device corresponding to the target device control and the first device.
[0209] In some embodiments, searching for the fourth device is unnecessary. For example, when searching for components in a single-ear Bluetooth headset, the fourth device is not included. Similar to the first implementation described above, the third interface can present the first device control and the second device control, except that the second device control corresponds to the third device, and when the target device control is the second device control, the location information includes the location information of the third device.
[0210] Similar to the second implementation method mentioned above, the third interface can present a third device control. The difference is that the third device control corresponds to a third device that accommodates the second device, and when the target device control is the third device control, the location information includes the location information of the second device and the third device.
[0211] Therefore, in the embodiments of the present application, the first device interacts with the user through an interface to determine the search object, and then accurately searches for the search object, thereby improving the user experience. Furthermore, when the search object is a second device that can be accommodated in another device, it can be accurately searched to display the distance and / or angle between the second device and the first device, thereby improving positioning accuracy.
[0212] In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between the various embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0213] FIG10 is a schematic block diagram of a positioning device 400 according to an embodiment of the present application. As shown in FIG10 , the device 400 includes at least an acquisition module 410 , a processing module 420 , and a positioning module 430 .
[0214] Among them, the acquisition module 410 can be used to obtain a first query request, and the first query request is at least used to request to query the location information of the second device; the processing module 420 can be used to determine the device information, and the device information includes first location status information and first power information, the first location status information is used to indicate whether the second device is accommodated in the third device, and the first power information is used to indicate the power of the second device and / or the power of the third device; the processing module 420 is also used to determine the target device according to the device information, and the target device is the second device, the third device or other devices accommodated by the third device; the positioning module 430 is used to locate the target device based on the detection information to obtain the location information of the second device.
[0215] In some embodiments, the processing module 420 is specifically used to: determine that the target device is a third device when the device information meets a first condition; wherein the first condition includes: the power of the third device is greater than or equal to a first power threshold; the second device is accommodated in the third device.
[0216] In some embodiments, the processing module 420 is specifically used to: determine that the target device is the second device when the device information meets the second condition; wherein the second condition includes: the power of the second device is greater than or equal to the second power threshold; the second device is not accommodated in the third device; or, the power of the second device is greater than or equal to the second power threshold; the power of the third device is less than the first power threshold; the second device is accommodated in the third device.
[0217] In some embodiments, the device information also includes second location status information and second power information, the second location status information is used to indicate whether the fourth device is accommodated in the third device, and the second power information is used to indicate the power of the fourth device; the processing module 420 is specifically used to: when the device information meets the third condition, determine that the target device is the fourth device; wherein the third condition includes: the second device and the fourth device are both accommodated in the third device; the power of the second device is less than the second power threshold; the power of the third device is less than the first power threshold; the power of the fourth device is greater than or equal to the third power threshold.
[0218] In some embodiments, the location information of the second device includes a distance and / or an angle between the second device and the first device.
[0219] In some embodiments, the positioning module 430 is specifically used to: send detection information to the target device to locate the target device and obtain the location information of the second device; or receive detection information sent by the target device to locate the target device and obtain the location information of the second device.
[0220] In some embodiments, the positioning module 430 is specifically configured to: receive timing information sent by a target device; determine a time offset between the first device and the target device based on the timing information; and determine location information of the second device based on the time offset and detection information.
[0221] In some embodiments, the system further includes: a display module configured to display a first interface, wherein the first interface presents the target device and location status information between the second device and the third device.
[0222] In some embodiments, the processing module 420 is specifically used to: when the device information meets the fourth condition, determine that the target device is a third device, and control the second device to replenish energy for the third device; wherein the fourth condition includes: the power of the second device is greater than or equal to the fourth power threshold; the power of the third device is less than the first power threshold; the second device is accommodated in the third device.
[0223] In some embodiments, the system further includes: a display module configured to display a second interface, wherein the second interface presents location information of the second device.
[0224] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.
[0225] The division of the modules in the above devices is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated.
[0226] FIG11 is a schematic block diagram of a positioning device 500 according to an embodiment of the present application. As shown in FIG11 , the device 500 includes at least a display module 510 , an acquisition module 520 , and a positioning module 530 .
[0227] Among them, the display module 510 can be used to display a third interface, the third interface presents the first device control and the second device control, or the third interface presents the third device control, the first device control corresponds to the second device, the second device control corresponds to the third device that does not accommodate the second device, and the third device control corresponds to the third device that accommodates the second device; the acquisition module 520 is used to receive a user's selection operation on the target device control, the target device control is the first device control, the second device control or the third device control; the positioning module 530 is used to locate the device corresponding to the target device control based on the detection information to obtain location information; the display module 510 is also used to display a fourth interface, the fourth interface presents location information; wherein, when the target device control is the first device control, the location information includes the location information of the second device, or, when the target device control is the third device control, the location information includes the location information of the second device and the third device.
[0228] In some embodiments, the third interface presents a first device control and a second device control, with the second device control corresponding to a third device that accommodates a fourth device; or, the third interface presents a third device control, with the third device control corresponding to a third device that accommodates a second device and a fourth device. When the target device control is the second device control, the location information includes the location information of the third and fourth devices; when the target device control is the third device control, the location information includes the location information of the second, third, and fourth devices. The first device locates the third device, and the location information of the third device and the devices accommodated by the third device (e.g., the second device and / or the fourth device) can be obtained, which can be used to locate multi-component products.
[0229] In some embodiments, the positioning module 530 is specifically used to: send detection information to the device corresponding to the target device control to locate the device and obtain location information; or receive detection information sent by the device corresponding to the target device control to locate the device and obtain location information.
[0230] In some embodiments, the positioning module 530 is specifically used to: receive timing information sent by the device corresponding to the target device control; determine the time offset between the first device and the device corresponding to the target device control based on the timing information; and determine the location information based on the time offset and detection information.
[0231] In some embodiments, the location information includes a distance and / or angle between the device to which the target device control corresponds and the first device.
[0232] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.
[0233] The division of the modules in the above devices is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated.
[0234] FIG12 is a schematic block diagram of a positioning device 600 according to an embodiment of the present application. As shown in FIG12 , the positioning device 600 includes at least a transceiver module 610 and a processing module 620 .
[0235] The transceiver module 610 may be configured to send detection information to the first device in response to a positioning instruction sent by the first device;
[0236] or,
[0237] The processing module 620 is used to determine that the target device is the second device based on the device information, where the device information includes first location status information and first power information, where the first location status information is used to indicate whether the second device is accommodated in the third device, and the first power information is used to indicate the power level of the second device and / or the power level of the third device; the transceiver module 610 can be used to send detection information to the first device; wherein the detection information is used to determine the location information of the second device.
[0238] In some embodiments, the processing module 620 is specifically configured to: determine that the target device is the second device when the device information satisfies a second condition; wherein the second condition includes:
[0239] The power level of the second device is greater than or equal to a second power level threshold;
[0240] The second device is not accommodated in the third device;
[0241] or,
[0242] The power level of the second device is greater than or equal to a second power level threshold;
[0243] The power level of the third device is less than the first power level threshold;
[0244] The second device is accommodated in the third device.
[0245] In some embodiments, the transceiver module 610 is further configured to send time synchronization information to the first device, where the time synchronization information is used to determine location information of the second device in combination with the detection information.
[0246] In the embodiment of the present application, the positioning device (such as any one of the positioning devices 400 to 600 described above) can be implemented as an electronic device, or deployed in an electronic device, such as the electronic device 100 in FIG1 .
[0247] An embodiment of the present application further provides a positioning system, which may include the first device, the second device, and a third device capable of accommodating the second device in the aforementioned embodiment.
[0248] In one embodiment, the system further includes a fourth device, which is a device that can be accommodated by the third device.
[0249] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is executed, the method in the above embodiment is implemented.
[0250] An embodiment of the present application also provides a computer program product, including computer program instructions, which enable a computer to execute the method in the above embodiment.
[0251] The term "plurality" in this article refers to two or more. The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship; in a formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0252] It will be understood that the various numerical numbers involved in the embodiments of the present application are merely distinctions for the convenience of description and are not intended to limit the scope of the embodiments of the present application.
[0253] It can be understood that in the embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.< / videoview> < / imgview> < / textview>
Claims
1. A positioning method, characterized in that: Applied to a first device, the method comprises: Obtaining a first query request, where the first query request is at least used to request to query location information of a second device; Determine device information, the device information including first location status information and first power information, the first location status information is used to indicate whether the second device is accommodated in a third device, and the first power information is used to indicate the power of the second device and / or the power of the third device; Determine a target device according to the device information, where the target device is the second device, the third device, or another device contained in the third device; The target device is located based on the detection information to obtain the location information of the second device.
2. The method according to claim 1, characterized in that The step of determining the target device according to the device information includes: When the device information satisfies a first condition, determining that the target device is the third device; wherein the first condition includes: The power of the third device is greater than or equal to a first power threshold; The second device is accommodated in the third device.
3. The method according to claim 1, characterized in that The step of determining the target device according to the device information includes: When the device information satisfies a second condition, determining that the target device is the second device; wherein the second condition includes: The power level of the second device is greater than or equal to a second power level threshold; The second device is not accommodated in the third device; or, The power level of the second device is greater than or equal to a second power level threshold; The power of the third device is less than a first power threshold; The second device is accommodated in the third device.
4. The method according to claim 1, characterized in that: The device information further includes second position status information and second power information, wherein the second position status information is used to indicate whether the fourth device is accommodated in the third device, and the second power information is used to indicate the power of the fourth device; The step of determining the target device according to the device information includes: When the device information satisfies a third condition, determining that the target device is the fourth device; wherein the third condition includes: The second device and the fourth device are both accommodated in the third device; The power of the second device is less than a second power threshold; The power of the third device is less than a first power threshold; The power level of the fourth device is greater than or equal to a third power level threshold.
5. The method according to any one of claims 1 to 4, characterized in that: The location information of the second device includes a distance and / or an angle between the second device and the first device.
6. The method according to any one of claims 1 to 5, characterized in that: The locating the target device based on the detection information to obtain the location information of the second device includes: sending the detection information to the target device to locate the target device and obtain the location information of the second device; or, The detection information sent by the target device is received to locate the target device, and obtain the location information of the second device.
7. The method according to any one of claims 1 to 6, characterized in that: The locating the target device based on the detection information to obtain the location information of the second device includes: Receiving time synchronization information sent by the target device; Determining a time offset between the first device and the target device according to the timing information; The location information of the second device is determined according to the time offset and the detection information.
8. The method according to any one of claims 1 to 7, characterized in that: Also includes: A first interface is displayed, wherein the first interface presents the target device and location status information between the second device and the third device.
9. The method according to any one of claims 1 to 8, characterized in that: The step of determining the target device according to the device information includes: When the device information satisfies a fourth condition, determining that the target device is the third device, and controlling the second device to supplement energy for the third device; wherein the fourth condition includes: The power level of the second device is greater than or equal to a fourth power level threshold; The power of the third device is less than a first power threshold; The second device is accommodated in the third device.
10. The method according to any one of claims 1 to 9, characterized in that: Also includes: A second interface is displayed, wherein the second interface presents location information of the second device.
11. A positioning method, characterized in that: Applied to a first device, the method comprises: Displaying a third interface, wherein the third interface presents a first device control and a second device control, or the third interface presents a third device control, wherein the first device control corresponds to the second device, the second device control corresponds to the third device that does not accommodate the second device, and the third device control corresponds to the third device that accommodates the second device; receiving a selection operation of a target device control by a user, wherein the target device control is the first device control, the second device control or the third device control; Locating the device corresponding to the target device control based on the detection information to obtain location information; displaying a fourth interface, wherein the fourth interface presents the location information; in, When the target device control is the first device control, the location information includes location information of the second device; or, When the target device control is the third device control, the location information includes location information of the second device and the third device.
12. The method according to claim 11, characterized in that The third interface presents the first device control and the second device control, and the second device control corresponds to a fourth device, the third device; or The third interface presents the third device control, and the third device control corresponds to the third device that accommodates the second device and the fourth device; in, When the target device control is the second device control, the location information includes location information of the third device and the fourth device; When the target device control is the third device control, the location information includes location information of the second device, the third device, and the fourth device.
13. The method according to claim 11 or 12, characterized in that: The locating the device corresponding to the target device control based on the detection information to obtain the location information includes: Sending the detection information to a device corresponding to the target device control to locate the device and obtain the location information; or, The detection information sent by the device corresponding to the target device control is received to locate the device and obtain the position information.
14. The method according to any one of claims 11 to 13, characterized in that: The locating the device corresponding to the target device control based on the detection information to obtain the location information includes: Receiving time synchronization information sent by a device corresponding to the target device control; Determining, according to the timing information, a time offset between the first device and a device corresponding to the target device control; The location information is determined according to the time offset and the detection information.
15. The method according to any one of claims 11 to 14, characterized in that The location information includes a distance and / or an angle between a device corresponding to the target device control and the first device.
16. A positioning method, characterized in that: Applied to a second device, where the second device is a device that can be accommodated by a third device, the method includes: In response to the positioning instruction sent by the first device, sending detection information to the first device; or, Determining, according to the device information, that the target device is the second device, the device information comprising first location status information and first power information, the first location status information being used to indicate whether the second device is accommodated in a third device, and the first power information being used to indicate power of the second device and / or power of the third device; sending detection information to the first device; The detection information is used to determine the location information of the second device.
17. A positioning device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, so that the positioning device executes the method according to any one of claims 1 to 16.
18. A positioning system, characterized in that: comprising a first device, a second device and a third device capable of accommodating the second device; The first device is used for: Obtaining a first query request, where the first query request is at least used to request to query location information of a second device; Determine device information, the device information including first location status information and first power information, the first location status information is used to indicate whether the second device is accommodated in a third device, and the first power information is used to indicate the power of the second device and / or the power of the third device; Determine a target device according to the device information, where the target device is the second device, the third device, or another device contained in the third device; The target device is located based on the detection information to obtain the location information of the second device.
19. The system according to claim 18, characterized in that A fourth device is also included, and the device information further includes second position status information and second power information, the second position status information is used to indicate whether the fourth device is accommodated in the third device, and the second power information is used to indicate the power of the fourth device.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program or instructions, and when the computer program or instructions are executed, the method according to any one of claims 1 to 16 is implemented.
21. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the method according to any one of claims 1 to 16 is implemented.
Citation Information
Patent Citations
Positioning method, device and system and storage medium
CN119316793A
Storage box positioning method and device and electronic equipment
CN114545468A
Tracking wireless peripheral devices
US20210204094A1
User interfaces for location tracking
US20220335807A1
Device location search method and system
WO2023273480A1