Ranging method and related apparatus
Patent Information
- Application Number
- PCT/CN2026/075865
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-02-26
- Filing Date
- 2026-01-29
- Publication Date
- 2026-09-03
Smart Images

Figure CN2026075865_03092026_PF_FP_ABST
Abstract
Description
Distance measurement methods and related devices
[0001] This application claims priority to Chinese Patent Application No. 202510228020.2, filed on February 26, 2025, entitled “Range Measurement Method and Related Apparatus”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of communications, and more particularly to a ranging method and related apparatus. Background Technology
[0003] When using unidirectional ranging technology for distance measurement, the master and slave devices need to align their system time to ensure ranging accuracy. Due to device capabilities and internal chip latency, there is a fixed time offset between the master and slave devices, and this offset needs to be compensated for when aligning the system time.
[0004] One existing ranging method is as follows: For a specified master device and slave device, the time offset parameter between them is measured in advance and stored in the storage space of the master device and slave device. The system time is aligned based on the time offset parameter, and the distance between the master device and slave device is calculated based on the arrival time difference of the ranging signal.
[0005] However, different devices correspond to different time offset parameters. In this ranging method, whenever a new device is added, the time offset parameters between different combinations of devices need to be measured in advance, resulting in a large workload and high cost for measurement adaptation. Summary of the Invention
[0006] This application provides a ranging method and related apparatus, enabling the master device to obtain distance offset parameters between itself and the slave device from a cloud server for ranging, which helps to reduce the workload and cost of adapting distance offset parameters.
[0007] In a first aspect, embodiments of this application provide a ranging method applied to a master device side device, such as a first electronic device or a communication module in the first electronic device, or a circuit or chip in the first electronic device responsible for communication functions. Taking the application of this method to a first electronic device as an example, the method includes: sending first information to a cloud server, the first information indicating: a first model and / or a second model, a third model and / or a fourth model, the first model indicating the model of the first electronic device, the second model indicating the model of a chip in the first electronic device, the third model indicating the model of a second electronic device, the fourth model indicating the model of a chip in the second electronic device, and the second electronic device being the device to be searched corresponding to the first electronic device; upon receiving second information from the cloud server, performing ranging according to the second information, the second information indicating a first distance offset parameter, the first distance offset parameter being the distance offset parameter between the third electronic device and the fourth electronic device, the model of the third electronic device being the same as the first model, and / or the model of the chip in the third electronic device being the same as the second model; the model of the fourth electronic device being the same as the third model, and / or the model of the chip in the fourth electronic device being the same as the fourth model.
[0008] The first distance offset parameter, as the distance offset parameter between the third electronic device and the fourth electronic device, can be regarded as the distance offset parameter between the first electronic device and the second electronic device. The first electronic device performs distance measurement according to the first distance offset parameter indicated by the second information, which can avoid measuring the distance offset parameter between the first electronic device and the second electronic device. This helps to reduce the adaptation workload and reduce the adaptation cost between the first electronic device and the second electronic device.
[0009] In some implementations, the method further includes: determining a second distance offset parameter, wherein the second distance offset parameter is the distance offset parameter between the first electronic device and the second electronic device, in the absence of receiving the second information from the cloud server; sending a third information to the cloud server, wherein the third information indicates the first information and the second distance offset parameter; and performing distance measurement based on the second distance offset parameter.
[0010] The first electronic device, by invoking the first information and the second distance offset parameters via the third information, can expand the array of electronic devices and their corresponding distance offset parameters stored in the cloud server. Simultaneously, even without receiving the second information indicating the first distance offset parameters, the first electronic device can perform distance measurement based on its own determined second distance offset parameters. This reduces the possibility of increased distance measurement errors due to the lack of distance offset parameters, thus improving the accuracy of distance measurement.
[0011] In some implementations, the first distance offset parameter is determined based on the distance offset parameter between the third electronic device and the fourth electronic device.
[0012] In some implementations, the first and third information also indicate a first Bluetooth payload, which is the Bluetooth payload between the first electronic device and the second electronic device.
[0013] The first electronic device indicates the first Bluetooth payload to the cloud server through the first information and the third information, which helps to improve the accuracy of the acquired first distance offset parameter.
[0014] In some implementations, the Bluetooth load between the first electronic device and the second electronic device is a preset load.
[0015] In some implementations, the third information satisfies the first preset condition, which includes: the value of the second trajectory feature is not less than the first preset threshold, the value of the second signal quality is not less than the third preset threshold, the second trajectory feature indicates the trajectory quality corresponding to the second distance offset parameter, and the second signal quality indicates the ultrasonic signal quality corresponding to the second distance offset parameter.
[0016] The second trajectory feature and the second signal quality satisfy the following relationship:
[0017] Among them, C m Q represents the second trajectory feature. m The second signal quality is indicated by the subscript m, which represents the measurement index, and L represents the number of coordinates obtained by the first electronic device during the acquisition of the second distance offset parameter. i and A j Indicates the trajectory coordinates of the first electronic device during the process of acquiring the second distance offset parameter, ‖A i -A j ‖ represents coordinate A i and A j Distance between them, received signal strength This indicates the signal quality at the corresponding coordinates.
[0018] The first electronic device filters the second distance offset parameter according to the first preset condition, which can save the storage space of the cloud server and facilitate other electronic devices to obtain the filtered second distance offset parameter from the cloud server.
[0019] In some implementations, the third information further indicates the second trajectory feature and / or the second signal quality, wherein the second trajectory feature indicates the trajectory quality corresponding to the second distance offset parameter, and the second signal quality indicates the ultrasound signal quality corresponding to the second distance offset parameter; wherein the second trajectory feature and the second signal quality satisfy the following relationship:
[0020] Among them, C m Q represents the second trajectory feature. mThe second signal quality is indicated by the subscript m, which represents the measurement index, and L represents the number of coordinates obtained by the first electronic device during the acquisition of the second distance offset parameter. i and A j Indicates the trajectory coordinates of the first electronic device during the process of acquiring the second distance offset parameter, ‖A i -A j ‖ represents coordinate A i and A j Distance between them, received signal strength This indicates the signal quality at the corresponding coordinates.
[0021] In some implementations, upon receiving second information from a cloud server, distance measurement is performed based on the second information, including: determining a second distance offset parameter, which is the distance offset parameter between the first electronic device and the second electronic device; performing distance measurement based on the second distance offset parameter if a second preset condition is met; performing distance measurement based on a first distance offset parameter if a third preset condition is met; and performing distance measurement based on a third distance offset parameter if neither the second nor the third preset condition is met, whereby the third distance offset parameter is a distance offset parameter determined based on the first and second distance offset parameters.
[0022] Based on the second and third preset conditions, the first electronic device further determines the distance offset parameters applicable to the distance measurement according to the first and second distance offset parameters, which helps to improve the accuracy of the distance measurement results.
[0023] In some implementations, the second preset condition includes: the value of the second trajectory feature is less than or equal to a third preset threshold, the value of the second signal quality is less than or equal to a fourth preset threshold, the second trajectory feature indicates the trajectory quality corresponding to the second distance offset parameter, and the second signal quality indicates the ultrasound signal quality corresponding to the second distance offset parameter; the third preset condition includes: the value of the second trajectory feature is greater than or equal to a fifth preset threshold, and the value of the second signal quality is greater than or equal to a sixth preset threshold; wherein, the second trajectory feature and the second signal quality satisfy the following relationship:
[0024] Among them, C m Q represents the second trajectory feature. m The second signal quality is indicated by the subscript m, which represents the measurement index, and L represents the number of coordinates obtained by the first electronic device during the acquisition of the second distance offset parameter. i and A j Indicates the trajectory coordinates of the first electronic device during the process of acquiring the second distance offset parameter, ‖A i -A j ‖ represents coordinate A i and Aj Distance between them, received signal strength This indicates the signal quality at the corresponding coordinates.
[0025] In some implementations, the method further includes: sending fourth information to a cloud server when a first preset condition is met. The fourth information indicates the first information and the second distance offset parameter. The first preset condition includes: the value of the second trajectory feature is not less than a first preset threshold, and the value of the second signal quality is not less than a second preset threshold.
[0026] The first electronic device reports the second distance offset parameter to the cloud server through the fourth information, which can expand the combination of electronic devices and their corresponding distance offset parameters stored in the cloud server and optimize the relevant parameter information for distance measurement stored inside the cloud server.
[0027] In some implementations, the second information further indicates the first trajectory feature and / or the first signal quality, wherein the first trajectory feature indicates the trajectory quality corresponding to the first distance offset parameter, and the first signal quality indicates the ultrasound signal quality corresponding to the first distance offset parameter; the second preset condition includes: the value of the first trajectory feature is not less than the value of the second trajectory feature, and / or, the value of the first signal quality is not less than the value of the second signal quality, the second trajectory feature indicates the trajectory quality corresponding to the second distance offset parameter, and the second signal quality indicates the ultrasound signal quality corresponding to the second distance offset parameter; the third preset condition includes: the value of the second trajectory feature is greater than the value of the first trajectory feature, and / or, the value of the second signal quality is greater than the value of the first signal quality; wherein, the second trajectory feature and the second signal quality satisfy the following relationship:
[0028] Among them, C m Q represents the second trajectory feature. m The second signal quality is indicated by the subscript m, which represents the measurement index, and L represents the number of coordinates obtained by the first electronic device during the acquisition of the second distance offset parameter. i and A j Indicates the trajectory coordinates of the first electronic device during the process of acquiring the second distance offset parameter, ‖A i -A j ‖ represents coordinate A i and A j Distance between them, received signal strength This indicates the signal quality at the corresponding coordinates.
[0029] In some implementations, the method further includes: sending fourth information to the cloud server when a first preset condition or a third preset condition is met. The fourth information indicates the first information and the second distance offset parameter. The first preset condition includes: the value of the second trajectory feature is not less than a first preset threshold, and the value of the second signal quality is not less than a second preset threshold.
[0030] In some implementations, the second information satisfies a first preset condition, which includes: the value of the first trajectory feature is not less than a first preset threshold, and the value of the first signal quality is not less than a second preset threshold.
[0031] The first distance offset parameter indicated by the second information, as well as the first trajectory feature and / or the first signal quality, are filtered by the first preset conditions, which helps to improve the efficiency of the first electronic device in achieving ranging compensation based on the first distance offset parameter.
[0032] In some implementations, the first trajectory feature is determined based on the trajectory quality corresponding to the first distance offset parameter, and the first signal quality is determined based on the ultrasonic signal corresponding to the first distance offset parameter.
[0033] Secondly, embodiments of this application provide a communication method applied to a network-side device, such as a cloud server or a component (e.g., a chip, chip system) within the cloud server, or a logic module or software capable of implementing all or part of the functions of a cloud server. Taking the application of this method to a cloud server as an example, the method includes: receiving first information from a first electronic device, the first information indicating: a first model and / or a second model, and a third model and / or a fourth model, the first model indicating the model of the first electronic device, the second model indicating the chip model in the first electronic device, the third model indicating the model of the second electronic device, and the fourth model indicating the chip model in the second electronic device, the second electronic device being the device to be searched corresponding to the first electronic device; and, if a first distance offset parameter is determined based on the first information, sending second information to the first electronic device, the second information indicating the first distance offset parameter, the first distance offset parameter being the distance offset parameter between the third electronic device and the fourth electronic device, the model of the third electronic device being the same as the first model, and / or the chip model in the third electronic device being the same as the second model; the model of the fourth electronic device being the same as the third model, and / or the chip model in the fourth electronic device being the same as the fourth model.
[0034] When the cloud server determines the first distance offset parameter based on the first information, it can indicate the first distance offset parameter to the first electronic device through the second information, thereby providing the first electronic device with a distance offset parameter that can be adapted to both the first and second electronic devices. This helps to reduce the adaptation workload and lower the adaptation cost between the first and second electronic devices.
[0035] In some implementations, the method further includes: receiving third information from the first electronic device when the first distance offset parameter is not determined based on the first information, the third information including the first information and the second distance offset parameter, the second distance offset parameter being the distance offset parameter between the first electronic device and the second electronic device.
[0036] In some implementations, the first distance offset parameter is determined based on the distance offset parameter between the third electronic device and the fourth electronic device.
[0037] In some implementations, the first and third information also indicate a first Bluetooth payload, which is the Bluetooth payload between the first electronic device and the second electronic device.
[0038] In some implementations, the Bluetooth load between the first electronic device and the second electronic device is a preset load.
[0039] In some implementations, the third information satisfies a first preset condition, which includes: the value of the second trajectory feature is not less than a first preset threshold, the value of the second signal quality is not less than a second preset threshold, the second trajectory feature indicates the trajectory quality corresponding to the second distance offset parameter, and the second signal quality indicates the ultrasound signal quality corresponding to the second distance offset parameter; wherein, the second trajectory feature and the second signal quality satisfy the following relationship:
[0040] Among them, C m Q represents the second trajectory feature. m The second signal quality is indicated by the subscript m, which represents the measurement index, and L represents the number of coordinates obtained by the first electronic device during the acquisition of the second distance offset parameter. i and A j Indicates the trajectory coordinates of the first electronic device during the process of acquiring the second distance offset parameter, ‖A i -A j ‖ represents coordinate A i and A j Distance between them, received signal strength This indicates the signal quality at the corresponding coordinates.
[0041] In some implementations, the method further includes: when the first distance offset parameter is determined based on the first information, receiving fourth information from the first electronic device, the fourth information including the first information and the second distance offset parameter, the second trajectory feature and the second signal quality satisfying the first preset condition, the second trajectory feature being the trajectory quality corresponding to the second distance offset parameter, the second signal quality being the ultrasonic signal quality corresponding to the second distance offset parameter, the first preset condition including: the value of the second trajectory feature is not less than the first preset threshold, the value of the second signal quality is not less than the second preset threshold; wherein, the second trajectory feature and the second signal quality satisfy the following relationship:
[0042] Among them, C m Q represents the second trajectory feature. m The second signal quality is indicated by the subscript m, which represents the index of the first electronic device, and L represents the number of coordinates in the process of the first electronic device acquiring the second distance offset parameter. i and A j Indicates the trajectory coordinates of the first electronic device during the process of acquiring the second distance offset parameter, ‖A i -A j ‖ represents coordinate A i and A j Distance between them, received signal strength This indicates the signal quality at the corresponding coordinates.
[0043] In some implementations, the third information further indicates the second trajectory feature and / or the second signal quality, wherein the second trajectory feature indicates the trajectory quality corresponding to the second distance offset parameter, and the second signal quality indicates the ultrasound signal quality corresponding to the second distance offset parameter; wherein the second trajectory feature and the second signal quality satisfy the following relationship:
[0044] Among them, C m Q represents the second trajectory feature. m The second signal quality is indicated by the subscript m, which represents the measurement index, and L represents the number of coordinates obtained by the first electronic device during the acquisition of the second distance offset parameter. i and A j Indicates the trajectory coordinates of the first electronic device during the process of acquiring the second distance offset parameter, ‖A i -A j ‖ represents coordinate A i and A j Distance between them, received signal strength This indicates the signal quality at the corresponding coordinates.
[0045] In some implementations, the second information also indicates the first trajectory feature and / or the first signal quality, wherein the first trajectory feature is the trajectory quality corresponding to the first distance offset parameter, and the first signal quality is the ultrasonic signal quality corresponding to the first distance offset parameter.
[0046] In some implementations, the method further includes: when a first distance offset parameter is determined based on the first information, receiving fourth information from a first electronic device, the fourth information including the first information and the second distance offset parameter, the second trajectory feature and the second signal quality satisfying a first preset condition or a third preset condition, the second trajectory feature being the trajectory quality corresponding to the second distance offset parameter, and the second signal quality being the ultrasonic signal quality corresponding to the second distance offset parameter; the first preset condition includes: the value of the second trajectory feature is not less than a first preset threshold, and the value of the second signal quality is not less than a second preset threshold; the third preset condition includes: the value of the second trajectory feature is greater than the value of the first trajectory feature, and / or, the value of the second signal quality is greater than the value of the first signal quality.
[0047] In some implementations, the second information satisfies a first preset condition, which includes: the value of the first trajectory feature is not less than a first preset threshold, and the value of the first signal quality is not less than a second preset threshold.
[0048] In some implementations, the first trajectory feature is determined based on the trajectory quality corresponding to the first distance offset parameter, and the first signal quality is determined based on the ultrasonic signal corresponding to the first distance offset parameter.
[0049] Thirdly, embodiments of this application provide a ranging device, including modules or units for implementing the methods of the first or second aspect and any possible implementation of the first or second aspect. Each module or unit can implement its corresponding function by executing a computer program.
[0050] For example, the ranging device in the third aspect is a first electronic device or a component configured in the first electronic device, such as a chip, chip system, processor, etc.; or, the ranging device in the third aspect is a cloud server or a component configured in a cloud server, such as a chip, chip system, processor, etc.
[0051] Fourthly, embodiments of this application provide a ranging device, including a processor, which is configured to execute the ranging method in the first or second aspect and any possible implementation of the first or second aspect.
[0052] Optionally, the ranging device includes a memory for storing instructions and data. The memory is coupled to a processor, which, when executing the instructions stored in the memory, can implement the methods described in the foregoing aspects.
[0053] Optionally, the ranging device includes a communication interface for communicating with other ranging devices. For example, the communication interface may be a transceiver, circuit, bus, module, pin, or other type of communication interface.
[0054] For example, the ranging device provided in the fourth aspect is a chip or chip system, or it may correspond to a first electronic device or a cloud server.
[0055] Fifthly, embodiments of this application provide a computer-readable storage medium including a computer program that, when run on a computer, causes the computer to implement the methods of the first or second aspect and any possible implementation of the first or second aspect.
[0056] In a sixth aspect, embodiments of this application provide a computer program product, which includes a computer program (also referred to as code or instructions) that, when run, causes a computer to perform the methods of the first or second aspect and any possible implementation thereof.
[0057] In a seventh aspect, embodiments of this application provide a ranging system, including the aforementioned first electronic device, second electronic device, and cloud server. The second electronic device is a device to be located corresponding to the first electronic device. The first electronic device can be used to implement the methods in the first aspect and any possible implementation of the first aspect. The cloud server can be used to implement the methods in the second aspect and any possible implementation of the second aspect.
[0058] The third to seventh aspects of this application correspond to the technical solutions of the first aspect of this application. The beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description
[0059] Figure 1 is a schematic diagram of an application scenario for a one-way ranging technology;
[0060] Figure 2 is a schematic diagram of the structure of a first electronic device and a second electronic device;
[0061] Figure 3 is a schematic diagram of the architecture of a ranging system provided in an embodiment of this application;
[0062] Figure 4 is a flowchart illustrating a ranging method provided in one embodiment of this application;
[0063] Figure 5 is a flowchart illustrating a ranging method provided in another embodiment of this application;
[0064] Figure 6 is a schematic diagram of the structure of a ranging device provided in an embodiment of this application;
[0065] Figure 7 is a schematic diagram of the structure of a ranging device provided in another embodiment of this application. Detailed Implementation
[0066] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0067] It should be understood that in the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship, but it does not exclude the possibility of indicating that the preceding and following related objects are in an "and" relationship. The specific meaning can be understood in conjunction with the context. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c; a and b; a and c; b and c; or a and b and c. Here, a, b, and c can be single or multiple.
[0068] In this embodiment of the application, the use of prefixes such as "first" and "second" is merely for the purpose of distinguishing and describing different things belonging to the same name category, and does not constrain the order, size, or quantity of things. For example, "first parameter" and "second parameter" are simply different parameters, and there is no temporal or quantitative relationship between them.
[0069] This application will present various aspects, embodiments, or features relating to systems that may include multiple devices, components, modules, etc. It should be understood and appreciated that individual systems may include additional devices, components, modules, etc., and / or may not include all the devices, components, modules, etc. discussed in conjunction with the accompanying drawings. Furthermore, combinations of these approaches are also possible.
[0070] Furthermore, in the embodiments of this application, words such as "exemplarily" and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as an "example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the term "example" is intended to present concepts in a concrete manner. In the embodiments of this application, "of," "corresponding, relevant," and "corresponding" may sometimes be used interchangeably, and it should be noted that their intended meanings are consistent unless their distinction is emphasized.
[0071] "Instruction" can include direct instruction, indirect instruction, explicit instruction, and implicit instruction. When describing a certain instruction information to indicate A, it can be understood that the instruction information carries A, directly indicates A, or indirectly indicates A.
[0072] Distance is an important parameter that needs to be detected in various situations and control applications. For example, when searching for another electronic device through one electronic device, one-way ranging technology can be used to accurately measure the distance and angle between the two electronic devices, so as to inform the user of the specific distance and direction of the other electronic device being searched, thereby enabling accurate location of the other electronic device.
[0073] In this embodiment, ultrasonic ranging between the first electronic device and the second electronic device is used as an example for illustration. It should be noted that in other cases, ranging between the first electronic device and the second electronic device can also be achieved through laser ranging, infrared ranging, etc. This embodiment does not limit the medium used for ranging.
[0074] Figure 1 is a schematic diagram of an application scenario for a one-way ranging technology. Exemplarily, it includes at least one first electronic device 100 and at least one second electronic device 200. The first electronic device 100 can be a mobile phone, tablet computer, augmented reality (AR) / virtual reality (VR) device, large-screen device, laptop computer, netbook, personal digital assistant (PDA), etc. The first electronic device 100 needs to have the ability to receive ranging signals. This application embodiment does not impose any restrictions on the specific type of the first electronic device 100. For ultrasonic ranging, the first electronic device 100 needs to have a recording device capable of receiving ultrasonic waves, such as a microphone capable of receiving ultrasonic waves and a corresponding audio chip. For example, the audio chip can be a high-fidelity (HiFi) chip.
[0075] The second electronic device 200 can be a terminal device that includes a ranging signal transmission function, or a first electronic device 100 that has a ranging signal transmission function. For example, a terminal device that includes a ranging signal transmission function can be an electronic tag, a smart key fob containing an electronic tag, a Bluetooth headset, etc. For ultrasonic ranging, the second electronic device 200 needs to have a device capable of emitting ultrasonic waves.
[0076] The first electronic device 100 can record ultrasonic signals using an audio chip and a microphone. The second electronic device 200 can send ranging signals using an ultrasonic transmitter, which can be ultrasonic pulse signals of a specific frequency or square wave signals, etc. The second electronic device 200 corresponds to the device to be located corresponding to the first electronic device 100. In this embodiment, the first electronic device 100 can also be referred to as the master device, and the second electronic device 200 can also be referred to as the slave device.
[0077] Figure 2 is a schematic diagram of the structure of a first electronic device and a second electronic device. As an example, as shown in Figure 2, the first electronic device 100 may include a communication module 101, an audio module 102, a processor 103, and a memory 104. The second electronic device 200 may include a communication module 201 and an audio module 202.
[0078] The communication module 101, audio module 102, and processor 103 are connected via a bus to exchange data. Communication module 201 and audio module 202 are also connected via a signal to exchange data. Communication modules 101 and 201 establish a communication link between the first electronic device 100 and the second electronic device 200; for example, they could be Bluetooth modules. Audio modules 102 send and / or receive sound wave signals; for example, audio module 102 could be a microphone, and audio module 202 could be a speaker. Processor 103 can invoke relevant instructions to control audio modules 110 and 210 to perform unidirectional ultrasonic ranging, and can also obtain the real-time distance between the first electronic device 100 and the second electronic device 200 based on the execution structure of audio modules 110 and 210. For example, processor 103 could be a processing chip integrated into the first electronic device 100. Memory 104 stores distance measurement instructions and received multiple sets of sound wave signals, etc.
[0079] In another example, the second electronic device 200 may include a communication module 201, an audio module 202, a processor 203, and a memory 204. The processor 203 is used to process relevant instructions to obtain the transmission times corresponding to each set of sound wave signals, and the memory 204 is used to store relevant instructions for distance measurement and the transmission times corresponding to each set of sound wave signals. For example, the processor 203 may be a processing chip integrated into the second electronic device 200.
[0080] In some ranging systems, the processor 203 can not only be used to process relevant instructions to obtain the transmission time corresponding to each set of acoustic signals, but also to process relevant instructions to obtain the real-time distance between the first electronic device 100 and the second electronic device 200. The memory 204 is used to store the relevant instructions for distance measurement, the transmission time corresponding to each set of acoustic signals, and the real-time distance between the first electronic device 100 and the second electronic device 200.
[0081] After the first electronic device 100 and the second electronic device 200 establish a wireless communication connection, the user can locate the second electronic device 200 through the first electronic device 100, that is, the first electronic device 100 acts as the master device and the second electronic device 200 acts as the slave device. During unidirectional ultrasonic ranging, the first electronic device 100 receives multiple sets of sound wave signals transmitted by the speaker in the second electronic device 200, and determines the starting band of each set of sound wave signals through correlation calculation, thereby determining the reception time of each set of sound wave signals received by the first electronic device 100. Then, the first electronic device 100 determines the real-time distance between the first electronic device 100 and the second electronic device 200 when each set of sound waves is received by the first electronic device 100 based on the time difference between the reception time and the transmission time of each set of sound wave signals and the sound wave velocity.
[0082] It is understandable that both the first electronic device 100 and the second electronic device 200 have clocks, capable of calculating the system time corresponding to the first electronic device 100 and the second electronic device 200, respectively. Due to setting errors or structural errors, the system time corresponding to the first electronic device 100 and the second electronic device 200 may not be consistent, leading to an inaccurate time difference between the receiving and transmitting times, thus increasing the error in determining the real-time distance between the first electronic device 100 and the second electronic device 200.
[0083] After the first electronic device 100 and the second electronic device 200 establish a wireless communication connection, the time offset between the first electronic device 100 and the second electronic device 200 can be determined through Bluetooth time synchronization. The time offset refers to the difference between the system time of the first electronic device 100 and the system time of the second electronic device 200. Therefore, Bluetooth time synchronization can align the system times of the two devices, reducing the time discrepancy between them.
[0084] However, due to device capabilities and internal chip latency, a fixed time offset still exists between the system times of the first electronic device 100 and the second electronic device 200 after Bluetooth time synchronization. This fixed time offset cannot be eliminated by Bluetooth time synchronization. Furthermore, the fixed time offset between the system times of the first electronic device 100 and the second electronic device 200 will also differ when the Bluetooth loads are different.
[0085] To align system time, existing technologies pre-measure fixed time offsets under different Bluetooth loads for different device combinations and store them in both the first and second electronic devices. This allows for compensation based on the fixed time offset during unidirectional ranging. However, whenever a new electronic device is added, pairing it with existing devices can result in numerous combinations. In such cases, pre-measuring fixed time offsets under different Bluetooth loads to adapt to different device combinations is labor-intensive and costly. Furthermore, the pre-measured fixed time offsets are pushed to the electronic devices at regular intervals. If the existing electronic devices do not receive the fixed time offset from the new devices, the error in locating the new devices can be significant.
[0086] For ultrasonic ranging, when determining the distance between the first electronic device and the second electronic device, the distance is the product of the time difference between the receiving and transmitting times and the speed of sound. When there is a fixed time offset between the system time of the first electronic device and the system time of the second electronic device, since the speed of sound can be considered invariant, this fixed time offset can be converted into a fixed distance offset between the first and second electronic devices when calculating the distance. Similarly, the fixed distance offset between the first and second electronic devices can also be converted into a fixed time offset. In the embodiments of this application, the fixed time offset and the fixed distance offset can be converted into each other, and both can be collectively referred to as the fixed ranging offset. For ease of description, the distance offset parameter is used as the parameter indicating the fixed ranging offset in the following text.
[0087] To address the aforementioned technical problems, this application provides a ranging method and related apparatus. By storing distance offset parameters corresponding to different device combinations on a cloud server, the master device can obtain the distance offset parameters between itself and the slave device from the cloud server for ranging, which helps to reduce the workload and cost of adapting distance offset parameters.
[0088] The technical concept of this application is as follows: After the master device and the slave device establish a wireless communication connection, the device model information and / or internal chip model information of the master device and the slave device are reported to the cloud server. The cloud server matches the corresponding distance offset parameters according to the above information and sends them to the master device. The master device performs distance measurement according to the distance offset parameters obtained from the cloud server. By matching the distance offset parameters through the cloud server supported by big data, it is possible to avoid measuring the distance offset parameters in advance for different combinations of devices, thereby reducing the workload and cost of adapting the distance offset parameters.
[0089] Figure 3 is a schematic diagram of the architecture of a ranging system provided in one embodiment of this application. Exemplarily, as shown in Figure 3, it includes a cloud server, at least one first electronic device, and at least one second electronic device.
[0090] The cloud server communicates wirelessly with the first and second electronic devices. The cloud server stores relevant parameters for distance measurement. For example, it can store model information of different combinations of electronic devices and their corresponding distance offset parameters. The first electronic device initiates the search, and the second electronic device is the device to be searched, meaning the first electronic device is the master device and the second electronic device is the slave device. The first electronic device in Figure 3 is similar to the first electronic device 100 in Figure 1, and the second electronic device in Figure 3 is similar to the second electronic device 200 in Figure 1. For details, please refer to the previous description; further explanation is not provided here.
[0091] In the embodiments described below, the interaction between a first electronic device and a cloud server is used as an example. It should be understood that the first electronic device can be replaced by components configured in the first electronic device (such as chips, chip systems, processors, etc.), or by logic modules or software capable of implementing all or part of the functions of the first electronic device; the cloud server can also be replaced by components configured in the cloud server (such as chips, chip systems, processors, etc.), or by logic modules or software capable of implementing all or part of the functions of the cloud server.
[0092] Figure 4 is a flowchart illustrating a ranging method provided in one embodiment of this application. The ranging method shown in Figure 4 is applicable to the ranging system architecture shown in Figure 3. It is understood that Figure 4 is merely an example, and the ranging method provided in this embodiment may include more or similar steps. As shown in Figure 4, the ranging method may include the following steps:
[0093] S401, the first electronic device sends first information to the cloud server. The first information indicates: a first model and / or a second model, a third model and / or a fourth model. The first model indicates the model of the first electronic device, the second model indicates the model of the chip in the first electronic device, the third model indicates the model of the second electronic device, and the fourth model indicates the model of the chip in the second electronic device. The second electronic device is the device to be searched corresponding to the first electronic device. Accordingly, the cloud server receives the first information from the first electronic device.
[0094] Typically, electronic devices internally store their own manufacturing information, including the device's model number and the model number of its internal chip. The model number identifies a unique electronic device, and the chip model number identifies a unique chip. Based on this manufacturing information, the first electronic device can obtain its own model number and the model number of its internal chip. After establishing a wireless communication connection with the second electronic device, the first electronic device can request its corresponding manufacturing information from the second electronic device to obtain its model number and the model number of its internal chip. It should be noted that in this embodiment, the chip model number of the electronic device uniformly refers to the model number of the processing chip inside the electronic device.
[0095] After the first electronic device initiates the search, it becomes the device that initiated the search, and the second electronic device, which is communicatively connected to the first electronic device, becomes the device to be searched, corresponding to the first electronic device. As described above, when the first electronic device determines the distance between itself and the second electronic device using ultrasonic ranging, it needs to compensate based on the distance offset parameter between the first and second electronic devices. The cloud server stores model information for different combinations of electronic devices and their corresponding distance offset parameters. Therefore, in this step, the first electronic device reports first information to the cloud server, indicating the first and / or second model, as well as the third and / or fourth model, hoping to match the corresponding electronic device combination in the cloud server to obtain the distance offset parameter.
[0096] For example: The model number of the first electronic device is Type device The chip model in the first electronic device is Type chip The model number of the second electronic device is Type tag The chip model in the second electronic device is Type tag_cThen the first information can indicate any of the following: {Type device Type tag}, {Type device Type tag_c}, {Type chip Type tag}, {Type chip Type tag_c}, {Type device Type chip Type tag}, {Type device Type chip Type tag_c}, {Type device Type tag Type tag_c}, {Type chip Type tag Type tag_c}, {Type device Type chip Type tag Type tag_c}
[0097] After receiving the first information from the first electronic device, the cloud server can match the corresponding combination of electronic devices based on the model information indicated by the first information. As an example, the first information may indicate {first model, second model, third model, fourth model}. The cloud server then determines, based on the first information, whether there exists a combination of electronic devices in its internally stored parameter information that includes the third and fourth electronic devices and satisfies the following conditions: the model of the third electronic device is the same as the first model, and / or, the chip model in the third electronic device is the same as the second model; and the model of the fourth electronic device is the same as the third model, and / or, the chip model in the fourth electronic device is the same as the fourth model.
[0098] Once the cloud server determines that a combination of electronic devices meets the above conditions, it can further determine the distance offset parameters corresponding to that combination. As described above, the fixed distance offset between two electronic devices is due to the device capabilities and the latency within the processing chip. Therefore, if the third and fourth electronic devices meet the aforementioned conditions, the distance offset parameters further determined by the cloud server based on this combination can be considered as the distance offset parameters between the first and second electronic devices.
[0099] As shown in step S402 of Figure 4, after determining the first distance offset parameter, the cloud server sends second information to the first electronic device. The second information indicates the first distance offset parameter, which is the distance offset parameter between the third and fourth electronic devices. Accordingly, the first electronic device receives the second information from the cloud server.
[0100] S403, the first electronic device performs distance measurement based on the second information.
[0101] After initiating the search, the first electronic device, upon receiving second information from the cloud server, can use the first distance offset parameter indicated by the second information as the distance offset parameter between the first and second electronic devices. As one possible implementation, the first electronic device can directly use the first distance offset parameter to compensate for the ranging result during the ultrasonic ranging process, thereby determining the distance between the first and second electronic devices. This application does not elaborate on the specific implementation of the ranging method in its embodiments.
[0102] In another possible implementation, the first electronic device may also determine a second distance offset parameter, which is a distance offset parameter between the first electronic device and the second electronic device.
[0103] It should be noted that, unlike the first distance offset parameter indicated by the second information, this second distance offset parameter is a distance offset parameter that the first electronic device measures and determines itself. As an example, after initiating the search, the first electronic device instructs the second electronic device, which is the device to be searched, to periodically broadcast ultrasonic signals. Correspondingly, the audio module in the first electronic device can receive the ultrasonic signals broadcast by the second electronic device.
[0104] The first electronic device prompts the user to move the device. During the process of the user moving the first electronic device according to the prompt, the first electronic device can use its internal sensors and processor to calculate the movement trajectory of the first electronic device, and record the displacement generated by the first electronic device in each cycle during the periodic reception of ultrasonic signals, as well as the arrival time of the corresponding ultrasonic signals.
[0105] Finally, the first electronic device calculates the distance offset parameter between the first electronic device and the second electronic device based on the Bluetooth time synchronization result, the arrival time of the ultrasonic signal, and the relative displacement generated by the first electronic device in each cycle, that is, the first electronic device determines the second distance offset parameter.
[0106] In this implementation, under the condition that the second preset condition is met, the first electronic device can perform distance measurement based on the first distance offset parameter. The condition that the second preset condition is met can be understood as the first distance offset parameter being more suitable for compensating the distance measurement result than the second distance offset parameter; therefore, the first electronic device performs distance measurement compensation based on the first distance offset parameter.
[0107] Under the condition that the third preset condition is met, the first electronic device can perform distance measurement based on the second distance offset parameter. The condition that the third preset condition is met can be understood as the second distance offset parameter being more suitable for compensating for the distance measurement result than the first distance offset parameter; therefore, the first electronic device performs distance measurement compensation based on the second distance offset parameter.
[0108] If neither the second preset condition nor the third preset condition is met, the first electronic device can measure the distance based on the third distance offset parameter, which is a distance offset parameter determined based on the first distance offset parameter and the second distance offset parameter.
[0109] If neither the second nor the third preset condition is met, it can be understood that neither the first distance offset parameter indicated by the second information nor the second distance offset parameter determined by the first electronic device is suitable for compensating the ranging result. As an example, the first electronic device can average the first and second distance offset parameters; this averaging can specifically be an arithmetic average or a weighted average, which is not limited in this embodiment. The first electronic device determines a third distance offset parameter based on the first and second distance offset parameters, and can then perform ranging compensation based on the third distance offset parameter.
[0110] It should be noted that during the process of the first electronic device measuring and determining the second distance offset parameter, the first electronic device can determine the second trajectory feature based on the movement trajectory and determine the second signal quality based on the ultrasonic signal received during the movement. Therefore, the second trajectory feature can indicate the trajectory quality corresponding to the second distance offset parameter, and the second signal quality can indicate the ultrasonic signal quality corresponding to the second distance offset parameter.
[0111] The second trajectory feature and the second signal quality satisfy the following relationship:
[0112] In the above relation, C m Q represents the second trajectory feature. m This indicates the second signal quality. The subscript m represents the measurement index. The first electronic device may perform multiple repeated measurements during the process of determining the second distance offset parameter, and each measurement is recorded through the index m.
[0113] L represents the number of coordinates in the process of the first electronic device determining the second distance offset parameter, and Ai and Aj represent the trajectory coordinates in the process of the first electronic device determining the second distance offset parameter. i -A j ‖ represents coordinate A i and A j The distance between them. During the movement process of the first electronic device measuring and determining the second distance offset parameter, its corresponding movement trajectory can be recorded through the L coordinate positions of the first electronic device. Where i≠j, it represents the distance between A and J. i and A j These correspond to two different trajectory coordinates among L coordinates. The L coordinate positions can be selected. For A i and A j The second trajectory feature can be represented as this The average distance between different trajectory coordinates.
[0114] It should be noted that A i and A j The coordinates of the two different trajectories need to be as large as possible in scale and as high in divergence as possible. The trajectory of the first electronic device moving when measuring the second distance offset parameter should, as far as possible, revolve around the second electronic device (the device to be located). One possible ideal trajectory is centered on the second electronic device, A i The distribution around it; another possible ideal trajectory coordinate should be located in the tangential direction of the second electronic device.
[0115] Received signal strength indication (RSSI) The signal quality is represented by the coordinates. During movement, the first electronic device receives ultrasonic signals broadcast by the second electronic device. The first electronic device can record the received signal strength of the ultrasonic signal at each of the L coordinates. The second signal quality can be expressed as the average received signal strength of the ultrasonic signals received by the first electronic device at the L coordinates.
[0116] In some possible implementations, the second preset condition includes: the value of the second trajectory feature is less than or equal to a third preset threshold, and the value of the second signal quality is less than or equal to a fourth preset threshold. The third preset condition includes: the value of the second trajectory feature is greater than or equal to a fifth preset threshold, and the value of the second signal quality is greater than or equal to a sixth preset threshold.
[0117] For example: the third preset threshold is C thr2 The fourth preset threshold is Q. thr2 The fifth preset threshold is C. thr3The sixth preset threshold is Q. thr3 In C m ≤C thr2 And Q m ≤Q thr2 In the case where the second trajectory feature and the second signal quality satisfy the second preset condition, the first electronic device performs distance measurement based on the first distance offset parameter. In C m ≥C thr3 And Q m ≥Q thr3 In the case where the second trajectory characteristics and the second signal quality satisfy the third preset condition, the first electronic device performs distance measurement based on the second distance offset parameter. In C m and Q m In scenarios where neither of the above two conditions is met, it can be understood that the second trajectory feature and the second signal quality satisfy neither the second preset condition nor the third preset condition. The first electronic device performs ranging based on the third distance offset parameter. Here, C is no longer discussed. m and Q m The values taken when neither the second nor the third preset condition is met will be explained in detail.
[0118] In this implementation, the first electronic device further determines the distance offset parameter suitable for ranging compensation based on the first distance offset parameter and the second distance offset parameter, which helps to improve the accuracy of the ranging result.
[0119] In some implementations, under the condition that the first preset condition is met, the first electronic device can send fourth information to the cloud server. The fourth information indicates the first information and the second distance offset parameter. The first preset condition includes: the value of the second trajectory feature is not less than the first preset threshold, and the value of the second signal quality is not less than the second preset threshold.
[0120] For example: the first preset threshold is C thr1 The second preset threshold is Q. thr2 In C m ≥C thr1 And Q m ≥Q thr1 In the case of the aforementioned first information indication, the fourth information sent by the first electronic device to the cloud server can indicate {Type} device Type chip Type tag Type tag_c δ m}. Among them, Type device The model number of the first electronic device, Type chip The chip model in the first electronic device, Type tagFor the model number of the second electronic device, Type tag_c The chip model in the second electronic device, the first half of the fourth information indicates {Type} device Type chip Type tag Type tag_c} corresponds to the first piece of information, the latter half δ m The second distance offset parameter, δ m The corresponding second trajectory feature C m Second signal quality Q m The first preset condition above is met.
[0121] When the second trajectory features and the second signal quality meet the first preset conditions, the first electronic device reports the second distance offset parameter to the cloud server through the fourth information. This can expand the electronic device combination and its corresponding distance offset parameter stored in the cloud server, and optimize the relevant parameter information for ranging stored in the cloud server.
[0122] It should be noted that the cloud server may store multiple distance offset parameters between the third electronic device and the fourth electronic device; that is, the first distance offset parameter may include these multiple distance offset parameters. In step S403, when the first electronic device compensates for the ranging result using the first distance offset parameter, it can average the multiple distance offset parameters included in the first distance offset parameter and compensate for the ranging result based on the averaged distance offset parameter.
[0123] For example, the first electronic device may perform an arithmetic average of the multiple distance offset parameters included in the first distance offset parameter, or it may perform a weighted average of the multiple distance offset parameters, or it may perform a logarithmic average of the multiple distance offset parameters. The averaging method adopted by the first electronic device in this application is not limited.
[0124] In some implementations, the first distance offset parameter can be determined based on the distance offset parameter between the third electronic device and the fourth electronic device. As an example, if the cloud server stores multiple distance offset parameters between the third and fourth electronic devices, the cloud server can average these multiple distance offset parameters, and the resulting average distance offset parameter is the first distance offset parameter indicated in the second information. It is understood that the averaging method used by the cloud server can be an arithmetic average, a weighted average, or a logarithmic average; this application embodiment does not limit the averaging method used by the cloud server.
[0125] In this embodiment, the first electronic device reports its own and the second electronic device's device model information and the processing chip's chip model information to the cloud server. The cloud server matches and obtains the corresponding distance offset parameters. The first electronic device performs distance measurement based on the distance offset parameters sent by the cloud server, thereby avoiding the need to measure the distance offset parameters between the first and second electronic devices in advance. This helps to reduce the workload and cost of adapting different combinations of electronic devices.
[0126] In the embodiment shown in Figure 4, the cloud server can match the corresponding electronic device combination based on the first information. However, when the cloud server performs matching based on the first information, there is also a possibility of matching failure. The following further describes the ranging method provided in this application embodiment applicable to scenarios where the cloud server fails to match.
[0127] Figure 5 is a flowchart illustrating a ranging method according to another embodiment of this application. The ranging method shown in Figure 5 is applicable to the ranging system architecture shown in Figure 3. It is understood that Figure 5 is merely an example, and the ranging method provided in this embodiment may include more or similar steps. As shown in Figure 5, the ranging method may include the following steps:
[0128] S501, the first electronic device sends first information to the cloud server. The first information indicates: a first model and / or a second model, a third model and / or a fourth model. The first model indicates the model of the first electronic device, the second model indicates the model of the chip in the first electronic device, the third model indicates the model of the second electronic device, and the fourth model indicates the model of the chip in the second electronic device. The second electronic device is the device to be searched corresponding to the first electronic device. Accordingly, the cloud server receives the first information from the first electronic device.
[0129] This step is the same as step S401 in the embodiment shown in Figure 4, and will not be described in detail here.
[0130] After receiving the first information from the first electronic device, the cloud server can match the corresponding combination of electronic devices based on the model information indicated by the first information. Unlike the embodiment shown in Figure 4, the cloud server does not have the aforementioned combination of electronic devices, including the third and fourth electronic devices, in its internally stored parameter information. Accordingly, the cloud server cannot determine the corresponding first distance offset parameter, and therefore will not send the second information indicating the first distance offset parameter to the first electronic device.
[0131] If the first electronic device does not receive the second information from the cloud server, as shown in step S502 of Figure 5, the first electronic device determines the second distance offset parameter, which is the distance offset parameter between the first electronic device and the second electronic device.
[0132] It should be noted that if, after the first electronic device sends the first information to the cloud server, the interval exceeds a preset time threshold and the first electronic device does not receive the second information from the cloud server, it can be considered that the first electronic device has not received the second information from the cloud server.
[0133] In some implementations, if the cloud server cannot determine the corresponding first distance offset parameter based on the first information, the cloud server may also proactively send a response message to the first electronic device regarding the first information. This response message indicates that the cloud server cannot determine the corresponding first distance offset parameter.
[0134] In step S502, the method by which the first electronic device determines the second distance offset parameter can be the same as the method in the embodiment shown in Figure 4. To avoid redundancy, it will not be described again here.
[0135] S503, the first electronic device sends third information to the cloud server, the third information indicating the first information and the second distance offset parameters mentioned above. Accordingly, the cloud server receives the third information from the first electronic device.
[0136] Since the cloud server cannot match the corresponding electronic device combination based on the first information, it can be assumed that the parameter information stored inside the cloud server does not contain an electronic device combination including the first electronic device and the second electronic device, as well as its corresponding distance offset parameter. Therefore, the first electronic device can expand the electronic device combination and its corresponding distance offset parameter stored in the cloud server by indicating the above first information and second distance offset parameter through the third information, thereby optimizing the relevant parameter information for distance measurement stored inside the cloud server.
[0137] As described above, during the process of self-measuring and determining the second distance offset parameter, the first electronic device can determine the second trajectory characteristics based on the movement trajectory and determine the second signal quality based on the ultrasonic signals received during the movement.
[0138] In some implementations, the third information satisfies a first preset condition, which includes: the value of the second trajectory feature is not less than a first preset threshold, and the value of the second signal quality is not less than a second preset threshold.
[0139] It is understandable that the first electronic device may perform multiple repeated measurements during the determination of the second distance offset parameter. That is, the second distance parameter may include multiple distance offset parameters. The trajectory feature corresponding to each of these multiple distance offset parameters can be understood as a second trajectory feature. Among these multiple second trajectory features, there is a possibility that the value of one of the second trajectory features is less than the aforementioned first preset threshold. Similarly, the ultrasonic signal quality corresponding to each of the multiple distance offset parameters can be understood as a second signal quality. Among these multiple second signal qualities, there is a possibility that the value of one of the second signal qualities is less than the aforementioned second preset threshold.
[0140] The third information satisfying the first preset condition means that the second trajectory feature and second signal quality corresponding to the second distance offset parameter indicated in the third information satisfy the first preset condition, that is, the second distance offset parameter indicated in the third information has been filtered by the first preset condition. In this implementation, the first electronic device filters and reports the second distance offset parameter, which can save storage space on the cloud server and facilitates other electronic devices to obtain a simplified second distance offset parameter from the cloud server.
[0141] In some implementations, the third information may also indicate the second trajectory characteristics and / or the second signal quality. In this implementation, the third information sent by the first electronic device to the cloud server may also indicate the second trajectory characteristics and / or the second signal quality. Therefore, the cloud server can not only store the electronic device combination and its corresponding distance offset parameters, but also store the trajectory characteristics and / or signal quality corresponding to the distance offset parameters.
[0142] For example: referring to the content indicated by the first information mentioned above, the third information can indicate {Type} device Type chip Type tag Type tag_c δ m C m Q m}. Among them, Type device The model number of the first electronic device, Type chip The chip model in the first electronic device, Type tag For the model number of the second electronic device, Type tag_c The chip model in the second electronic device, the first half of the information in the third part {Type device Type chip Type tag Type tag_c} corresponds to the first piece of information. The second half {δ m C m Qm δ in} m C is the second distance offset parameter. m For the second trajectory feature, Q m This is for the second signal quality.
[0143] S504, the first electronic device measures the distance based on the second distance offset parameter.
[0144] The second distance offset parameter is the distance offset parameter between the first electronic device and the second electronic device. In this step, the first electronic device can directly use the second distance offset parameter to compensate for the ranging result during the ultrasonic ranging process, thereby determining the distance between the first electronic device and the second electronic device. The specific implementation method of ranging in this application embodiment will not be described in detail.
[0145] It is understood that after determining the second distance offset parameter, the first electronic device may first send the third information to the cloud server and then measure the distance according to the second distance offset parameter, or it may first measure the distance according to the second distance offset parameter and then send the third information to the cloud server. The execution order of steps S503 and S504 is not limited in this embodiment.
[0146] As described above, for the same electronic device combination, the fixed time offset between the two electronic devices in the combination will differ under different Bluetooth loads. In some implementations, the first and third information mentioned above may also indicate a first Bluetooth load, which is the Bluetooth load between the first and second electronic devices.
[0147] For example: the first information can indicate {Type} device Type chip Type tag Type tag_c , where α is the first Bluetooth payload, and the remaining information is consistent with the content of the first information mentioned above, and will not be repeated here. Similarly, the third information can indicate Where α is the first Bluetooth payload. This is the second distance offset parameter corresponding to the first Bluetooth load.
[0148] It should be noted that the fourth information can also indicate the first Bluetooth payload; for example, the fourth information can indicate... This content is different from C in the third information of the previous example. m Q m The rest of the content is the same, so it will not be explained further here.
[0149] When the first and third information indicate the first Bluetooth load, the cloud server can store not only the electronic device combination and its corresponding distance offset parameters, but also the Bluetooth load between the two electronic devices included in the electronic device combination. Accordingly, after determining the first distance offset parameter based on the first information, the cloud server can further determine the first distance offset parameter corresponding to the first Bluetooth load from it, and indicate the first distance offset parameter corresponding to the first Bluetooth load in the second information.
[0150] In some implementations, the Bluetooth load between the first electronic device and the second electronic device is a preset load. Here, the preset load is a fixed value; the Bluetooth load between the first and second electronic devices being a preset load is equivalent to a fixed Bluetooth load between them. Correspondingly, the distance offset parameter between the first and second electronic devices is independent of the Bluetooth load between them. Referring to the foregoing description, the cloud server does not need to consider the Bluetooth load when determining the first distance offset parameter based on the first information.
[0151] As shown in the embodiment of Figure 5, the cloud server can not only store the electronic device combination and its corresponding distance offset parameters, but also the trajectory features and / or signal quality corresponding to the distance offset parameters. In step S403 of the embodiment shown in Figure 4, when the first electronic device determines the second distance offset parameter, it can further determine the distance offset parameter suitable for ranging compensation based on the first and second distance offset parameters. Since the cloud server stores the trajectory features and / or signal quality corresponding to the first distance offset parameter, it provides a new method for the first electronic device to further determine the distance offset parameter suitable for ranging compensation.
[0152] As one possible implementation, in the embodiment shown in Figure 4, the second information may also indicate the first trajectory feature and / or the first signal quality, wherein the first trajectory feature indicates the trajectory quality corresponding to the first distance offset parameter, and the first signal quality indicates the ultrasonic signal quality corresponding to the first distance offset parameter.
[0153] The cloud server can determine the first distance offset parameter based on the first information, and further determine the corresponding trajectory characteristics and / or signal quality based on the first distance offset parameter, and send the first trajectory characteristics and / or first signal quality to the first electronic device through the second information.
[0154] In this implementation, the second preset condition includes: the value of the first trajectory feature is not less than the value of the second trajectory feature, and / or, the value of the first signal quality is not less than the value of the second signal quality.
[0155] Understandably, if the second information only indicates the first trajectory feature, then the second preset condition requires that the value of the first trajectory feature is not less than the value of the second trajectory feature. If the second information only indicates the first signal quality, then the second preset condition requires that the value of the first signal quality is not less than the value of the second signal quality. If the second information indicates both the first trajectory feature and the first signal quality, then the second preset condition requires that the value of the first trajectory feature is not less than the value of the second trajectory feature, and that the value of the first signal quality is not less than the value of the second signal quality.
[0156] Under the condition that the second preset condition is met, it can be understood that the first distance offset parameter is more suitable for compensating the ranging result than the second distance offset parameter. Therefore, the first electronic device realizes ranging compensation based on the first distance offset parameter.
[0157] In this implementation, the third preset condition includes: the value of the second trajectory feature is greater than the value of the first trajectory feature, and / or, the value of the second signal quality is greater than the value of the first signal quality.
[0158] Similarly, if the second information only indicates the first trajectory feature, then the third preset condition requires that the value of the second trajectory feature is greater than the value of the first trajectory feature. If the second information only indicates the first signal quality, then the second preset condition requires that the value of the second signal quality is greater than the value of the second signal quality. If the second information indicates both the first trajectory feature and the first signal quality, then the second preset condition requires that the value of the second trajectory feature is greater than the value of the first trajectory feature, and the value of the second signal quality is greater than the value of the first signal quality.
[0159] Under the condition that the third preset condition is met, it can be understood that the second distance offset parameter is more suitable for compensating the ranging result than the first distance offset parameter. Therefore, the first electronic device realizes ranging compensation based on the second distance offset parameter.
[0160] If the second information simultaneously indicates the first trajectory feature and the first signal quality, and the value of the second trajectory feature is greater than the value of the first trajectory feature, while the value of the second signal quality is not greater than the value of the first signal quality, or the value of the first trajectory feature is not less than the value of the second trajectory feature, while the value of the first signal quality is less than the value of the second signal quality, it can be understood that neither the second preset condition nor the third preset condition is met. In this case, the first electronic device performs ranging compensation based on the aforementioned third distance offset parameter.
[0161] In some implementations, if the first preset condition or the third preset condition is met, the first electronic device can send fourth information to the cloud server. The fourth information indicates the first information and the second distance offset parameter. The first preset condition includes: the value of the second trajectory feature is not less than the first preset threshold, and the value of the second signal quality is not less than the second preset threshold.
[0162] Understandably, if the third preset condition changes, the first electronic device can also report the second distance offset parameter to the cloud service area if the third preset condition is met, thus providing a new way to determine the combination of electronic devices and their corresponding distance offset parameters stored in the cloud server.
[0163] In some implementations, the second information satisfies a first preset condition, which includes: the value of the first trajectory feature is not less than a first preset threshold, and the value of the first signal quality is not less than a second preset threshold.
[0164] As described above, the first distance offset parameter stored on the cloud server may include multiple distance offset parameters. Correspondingly, the trajectory feature corresponding to each of these multiple distance offset parameters can be understood as a first trajectory feature. Among these multiple first trajectory features, there is a possibility that the value of one of the first trajectory features is less than the aforementioned first preset threshold. Similarly, the ultrasound signal quality corresponding to each of the multiple distance offset parameters can be understood as a first signal quality. Among these multiple first signal qualities, there is a possibility that the value of one of the first signal qualities is less than the aforementioned second preset threshold.
[0165] The second information satisfies the first preset condition, which is equivalent to the cloud server filtering the first trajectory features and the first signal quality according to the first preset condition before sending the second information to the first electronic device. It is also equivalent to filtering the first distance offset parameter according to the first preset condition. In this implementation, the cloud server filters according to the first preset condition and then sends the filtered first distance offset parameter, first trajectory features, and / or first signal quality to the first electronic device through the second information. This helps improve the efficiency of the first electronic device in achieving ranging compensation based on the first distance offset parameter.
[0166] In some implementations, the first trajectory feature is determined based on the trajectory quality corresponding to the first distance offset parameter, and the first signal quality is determined based on the ultrasonic signal corresponding to the first distance offset parameter.
[0167] It is understood that the first trajectory feature may include trajectory features corresponding to multiple first distance offset parameters, and the first electronic device may perform average processing on the trajectory features corresponding to multiple first distance offset parameters, and determine whether the aforementioned second or third preset condition is met based on the first trajectory feature obtained from the average processing. Similarly, the first signal feature may include signals corresponding to multiple first distance offset parameters, and the first electronic device may perform average processing on the signal quality corresponding to multiple first distance offset parameters.
[0168] Alternatively, the cloud server can average the trajectory features and / or signal quality corresponding to the above multiple distance offset parameters, and send the first trajectory features and / or first signal quality obtained by the average processing to the first electronic device through the second information.
[0169] It is understood that the above-mentioned averaging method can be an arithmetic average, a weighted average, or a logarithmic average. The averaging method used by the first electronic device or the cloud server in this application embodiment is not limited.
[0170] Figures 6 and 7 are schematic diagrams of possible ranging devices provided in embodiments of this application. These ranging devices can be used to implement the functions of the first electronic device or cloud server in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments. In the embodiments of this application, the ranging device can be the first electronic device or cloud server in the method embodiments shown in Figure 4 or 5, or it can be a component (such as a chip, chip system, processor, etc.) configured in the first electronic device or cloud server, or it can be a logic module or software capable of implementing some or all of the functions of the first electronic device or cloud server.
[0171] Figure 6 is a schematic diagram of a ranging device provided in an embodiment of this application. As shown in Figure 6, the ranging device 600 includes a processing module 610 and a transceiver module 620.
[0172] The transceiver module 620 can implement corresponding communication functions and can also be referred to as an input / output interface or a communication unit. The processing module 610 can be used to perform processing operations. It should be understood that if the device 600 is a component configured in a first electronic device or a cloud server, such as a chip, the transceiver module 620 can be an input / output interface.
[0173] Optionally, the transceiver module 620 may include a sending module and a receiving module. The sending module is used to perform the sending operation of the first electronic device or cloud server in Figure 4 or Figure 5, and the receiving module is used to perform the receiving operation of the first electronic device or cloud server in Figure 4 or Figure 5.
[0174] It should be understood that when the device 600 is a component configured in a first electronic device or a cloud server, such as a chip, the transmitting module can be an output interface, and the transmitting operation involved in the embodiments of this application can be performed by the output interface; the receiving module can be an input interface, and the receiving operation involved in the embodiments of this application can be performed by the input interface.
[0175] Optionally, the device 600 may further include a storage module for storing instructions and / or data, and the processing module 610 may read the instructions and / or data from the storage module to enable the device to implement the method embodiment shown in FIG4 or FIG5.
[0176] In one possible design, the device 600 can be used to implement the function of the first electronic device in the method embodiment shown in FIG4 or FIG5. Alternatively, the device 600 can include a unit for implementing any function or operation of the first electronic device in the method embodiment shown in FIG4 or FIG5. This unit can be implemented wholly or partially by software, hardware, firmware or any combination thereof.
[0177] When device 600 is used to implement the function of the first electronic device in the method embodiment shown in FIG4 or FIG5, transceiver module 620 (specifically, a sending module) can be used to execute step S401 in FIG4, sending first information to the cloud server. The first information indicates: a first model and / or a second model, a third model and / or a fourth model. The first model indicates the model of the first electronic device, the second model indicates the chip model in the first electronic device, the third model indicates the model of the second electronic device, and the fourth model indicates the chip model in the second electronic device. The second electronic device is the device to be searched corresponding to the first electronic device. Transceiver module 620 (specifically, a receiving module) can also be used to execute step S402 in FIG4, receiving second information from the cloud server. The second information indicates the first distance offset parameter, which is the distance offset parameter between the third electronic device and the fourth electronic device. The model of the third electronic device is the same as the first model, and / or the chip model in the third electronic device is the same as the second model; and the model of the fourth electronic device is the same as the third model, and / or the chip model in the fourth electronic device is the same as the fourth model. Processing module 610 can be used to execute step S403 in FIG4, performing distance measurement according to the second information.
[0178] In another possible design, the device 600 can be used to implement the functions of the cloud server in the method embodiment shown in FIG4 or FIG5. Alternatively, the device 600 can include a unit for implementing any function or operation of the cloud server in the method embodiment shown in FIG4 or FIG5. This unit can be implemented in whole or in part by software, hardware, firmware or any combination thereof.
[0179] When device 600 is used to implement the function of the cloud server in the method embodiment shown in FIG4 or FIG5, transceiver module 620 (specifically, receiving module) can be used to execute step S401 in FIG4, receiving first information from the cloud server. The first information indicates: a first model and / or a second model, a third model and / or a fourth model. The first model indicates the model of the first electronic device, the second model indicates the chip model in the first electronic device, the third model indicates the model of the second electronic device, and the fourth model indicates the chip model in the second electronic device. The second electronic device is the device to be searched corresponding to the first electronic device. Transceiver module 620 (specifically, sending module) can be used to execute step S402 in FIG4, sending second information to the first electronic device when a first distance offset parameter is determined. The second information indicates the first distance offset parameter, which is the distance offset parameter between the third electronic device and the fourth electronic device. The model of the third electronic device is the same as the first model, and / or the chip model in the third electronic device is the same as the second model; and the model of the fourth electronic device is the same as the third model, and / or the chip model in the fourth electronic device is the same as the fourth model.
[0180] A more detailed description of the above-mentioned processing module 610 and transceiver module 620 can be obtained directly from the relevant descriptions in the method embodiments shown in Figure 4 or Figure 5, and will not be repeated here.
[0181] It should be noted that the transceiver module can also be called a transceiver unit, transceiver, transceiver machine, or transceiver device, etc. The processing module can also be called a processor, processing board, processing unit, or processing device, etc. Optionally, the transceiver module is used to perform the sending and receiving operations on the terminal device or network device side in the above method. The device in the communication module used to implement the receiving function can be considered as the receiving module, and the device in the communication module used to implement the sending function can be considered as the sending module; that is, the transceiver module includes both a receiving module and a sending module.
[0182] In another possible design, the aforementioned transceiver module and / or processing module can be implemented using virtual modules. For example, the processing module can be implemented using software functional modules or virtual devices, and the transceiver module can also be implemented using software functional modules or virtual devices. In another possible design, the processing module or transceiver module can also be implemented using physical devices. For example, if the device is implemented using a chip / chip circuit, the transceiver module can be an input / output circuit and / or a communication interface, performing input operations (corresponding to the aforementioned receiving operation) and output operations (corresponding to the aforementioned sending operation); the processing module is an integrated processor, microprocessor, or integrated circuit.
[0183] It should be understood that the module division in the embodiments of this application is illustrative and only represents a logical functional division. In actual implementation, there may be other division methods. Furthermore, the functional modules in the various embodiments of this application can be integrated into a single processor, exist as separate physical entities, or be integrated into a single module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0184] Figure 7 is a schematic diagram of a ranging device provided in another embodiment of this application. The device 700 can be a chip system, or it can be a device configured with a chip system to implement the above-described method embodiments. In this embodiment, the chip system can be composed of chips, or it can include chips and other discrete devices.
[0185] As shown in Figure 7, device 700 can be implemented using a processing system including one or more processors 701. Processor 701 includes a microprocessor, microcontroller, digital signal processor, field-programmable gate array, graphics processor, programmable logic device, state machine, gated logic, discrete hardware circuitry, and other suitable hardware configured to perform various functions. In other words, the processor used in device 700 can be used to implement any one or more of the embodiments described above.
[0186] The processing system in device 700 can be implemented using a bus architecture, typically represented by bus 702. Bus 702 may include any number of interconnect buses and bridges, depending on the specific application and overall design constraints of the processing system. The bus communicatively couples various circuits together, including one or more processors 701 (typically represented by a processor), memory 703, and computer-readable medium 704 (typically represented by a computer-readable medium). Bus 702 may also link various other circuits, such as timing sources, peripherals, voltage regulators, and power management circuits, which are well known in the art and will therefore not be described further. Bus interface 705 provides an interface between bus 702 and transceivers, and between bus 702 and interfaces. Bus interface 705 may use, but is not limited to, transceivers to enable communication between device 700 and other devices or apparatuses.
[0187] A transceiver provides a communication interface or means for communicating with various other devices via a wireless transmission medium. The transceiver may be coupled to an antenna array, and the transceiver and antenna array may be used together for communication with a corresponding network type. At least one interface (e.g., a network interface and / or a user interface) provides a communication interface or means for communication via an internal bus or via an external transmission medium.
[0188] Processor 701 is responsible for managing bus 702 and general processing, including executing software stored on computer-readable medium 704. When executed by processor 701, the software causes the processing system to perform the various functions described below for any particular device.
[0189] The processor 701, memory 703, and computer-readable medium 704 can perform the following functions: encoding, decoding, rate matching, rate dematching, scrambling, descrambling, modulation, demodulation, layer mapping, fast Fourier transform, inverse fast Fourier transform, inverse discrete Fourier transform, precoding, resource element (RE) mapping, channel equalization, RE demapping, digital beamforming (BF), adding cyclic prefix (CP), removing CP, etc.
[0190] The steps of the method disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art.
[0191] This application also provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the methods described above.
[0192] This application also provides a computer program product, including computer instructions that, when executed by a processor, implement the various steps in the methods described above.
[0193] It should be noted that the modules or components shown in the above embodiments can be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more microprocessors, or one or more field-programmable gate arrays (FPGAs). Furthermore, when a module is implemented by a processing element calling program code, 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. Additionally, these modules can be integrated together and implemented as a System-on-a-Chip (SoC).
[0194] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, software modules, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0195] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and intent of this application are indicated by the following claims.
[0196] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A distance measurement method, characterized in that, Applied to a first electronic device, including: Send first information to the cloud server. The first information indicates: a first model and / or a second model, a third model and / or a fourth model. The first model indicates the model of the first electronic device, the second model indicates the chip model in the first electronic device, the third model indicates the model of the second electronic device, the fourth model indicates the chip model in the second electronic device, and the second electronic device is the device to be searched corresponding to the first electronic device. Upon receiving second information from the cloud server, distance measurement is performed based on the second information, which indicates a first distance offset parameter. The first distance offset parameter is the distance offset parameter between the third electronic device and the fourth electronic device. The model of the third electronic device is the same as the first model, and / or the chip model in the third electronic device is the same as the second model; the model of the fourth electronic device is the same as the third model, and / or the chip model in the fourth electronic device is the same as the fourth model.
2. The method according to claim 1, characterized in that, The method further includes: In the absence of receiving the second information from the cloud server, a second distance offset parameter is determined, which is the distance offset parameter between the first electronic device and the second electronic device; Send a third message to the cloud server, the third message indicating the first message and the second distance offset parameter; Distance is measured based on the second distance offset parameter.
3. The method according to claim 1 or 2, characterized in that, The first distance offset parameter is determined based on the distance offset parameter between the third electronic device and the fourth electronic device.
4. The method according to claim 2 or 3, characterized in that, The first information and the third information also indicate a first Bluetooth load, which is the Bluetooth load between the first electronic device and the second electronic device.
5. The method according to any one of claims 1 to 3, characterized in that, The Bluetooth load between the first electronic device and the second electronic device is a preset load.
6. The method according to any one of claims 2 to 5, characterized in that, The third information satisfies the first preset condition, which includes: the value of the second trajectory feature is greater than or equal to the first preset threshold, the value of the second signal quality is greater than or equal to the second preset threshold, the second trajectory feature indicates the trajectory quality corresponding to the second distance offset parameter, and the second signal quality indicates the ultrasound signal quality corresponding to the second distance offset parameter. The second trajectory feature and the second signal quality satisfy the following relationship: Among them, C m Q represents the second trajectory feature. m The second signal quality is indicated by the subscript m, which represents the measurement index, and L represents the number of coordinates obtained by the first electronic device during the acquisition of the second distance offset parameter. i and A j This represents the trajectory coordinates of the first electronic device during the process of acquiring the second distance offset parameter, ||A i -A j ‖ represents coordinate A i and A j Distance between them, received signal strength This indicates the signal quality at the corresponding coordinates.
7. The method according to any one of claims 2 to 5, characterized in that, The third information also indicates the second trajectory feature and / or the second signal quality, wherein the second trajectory feature indicates the trajectory quality corresponding to the second distance offset parameter, and the second signal quality indicates the ultrasonic signal quality corresponding to the second distance offset parameter; The second trajectory feature and the second signal quality satisfy the following relationship: Among them, C m Q represents the second trajectory feature. m The second signal quality is indicated by the subscript m, which represents the measurement index, and L represents the number of coordinates obtained by the first electronic device during the acquisition of the second distance offset parameter. i and A j This represents the trajectory coordinates of the first electronic device during the process of acquiring the second distance offset parameter, ||A i -A j ‖ represents coordinate A i and A j Distance between them, received signal strength This indicates the signal quality at the corresponding coordinates.
8. The method according to any one of claims 1 to 7, characterized in that, Upon receiving second information from the cloud server, the step of measuring distance based on the second information includes: Determine a second distance offset parameter, which is the distance offset parameter between the first electronic device and the second electronic device; Under the condition that the second preset condition is met, the distance is measured according to the first distance offset parameter; Under the condition that the third preset condition is met, the distance is measured according to the second distance offset parameter; If neither the second preset condition nor the third preset condition is met, distance measurement is performed based on a third distance offset parameter, which is a distance offset parameter determined based on the first distance offset parameter and the second distance offset parameter.
9. The method according to claim 8, characterized in that, The second preset conditions include: the value of the second trajectory feature is less than or equal to the third preset threshold, the value of the second signal quality is less than or equal to the fourth preset threshold, the second trajectory feature indicates the trajectory quality corresponding to the second distance offset parameter, and the second signal quality indicates the ultrasound signal quality corresponding to the second distance offset parameter. The third preset condition includes: the value of the second trajectory feature is greater than or equal to the fifth preset threshold, and the value of the second signal quality is greater than or equal to the sixth preset threshold. The second trajectory feature and the second signal quality satisfy the following relationship: Among them, C m Q represents the second trajectory feature. m The second signal quality is indicated by the subscript m, which represents the measurement index, and L represents the number of coordinates obtained by the first electronic device during the acquisition of the second distance offset parameter. i and A j This represents the trajectory coordinates of the first electronic device during the process of acquiring the second distance offset parameter, ||A i -A j ‖ represents coordinate A i and A j Distance between them, received signal strength This indicates the signal quality at the corresponding coordinates.
10. The method according to claim 9, characterized in that, The method further includes: Under the condition that the first preset condition is met, a fourth message is sent to the cloud server. The fourth message indicates the first message and the second distance offset parameter. The first preset condition includes: the value of the second trajectory feature is not less than the first preset threshold, and the value of the second signal quality is not less than the second preset threshold.
11. The method according to claim 8, characterized in that, The second information also indicates a first trajectory feature and / or a first signal quality, wherein the first trajectory feature indicates the trajectory quality corresponding to the first distance offset parameter, and the first signal quality indicates the ultrasound signal quality corresponding to the first distance offset parameter; The second preset condition includes: the value of the first trajectory feature is not less than the value of the second trajectory feature, and / or, the value of the first signal quality is not less than the value of the second signal quality, the second trajectory feature indicates the trajectory quality corresponding to the second distance offset parameter, and the second signal quality indicates the ultrasound signal quality corresponding to the second distance offset parameter. The third preset condition includes: the value of the second trajectory feature is greater than the value of the first trajectory feature, and / or, the value of the second signal quality is greater than the value of the first signal quality. The second trajectory feature and the second signal quality satisfy the following relationship: Among them, C m Q represents the second trajectory feature. m The second signal quality is indicated by the subscript m, which represents the measurement index, and L represents the number of coordinates obtained by the first electronic device during the acquisition of the second distance offset parameter. i and A j This represents the trajectory coordinates of the first electronic device during the process of acquiring the second distance offset parameter, ||A i -A j ‖ represents coordinate A i and A j Distance between them, received signal strength This indicates the signal quality at the corresponding coordinates.
12. The method according to claim 11, characterized in that, The method further includes: If the first preset condition or the third preset condition is met, a fourth message is sent to the cloud server. The fourth message indicates the first message and the second distance offset parameter. The first preset condition includes: the value of the second trajectory feature is not less than the first preset threshold, and the value of the second signal quality is not less than the second preset threshold.
13. The method according to claim 11 or 12, characterized in that, The second information satisfies the first preset condition, which includes: the value of the first trajectory feature is not less than the first preset threshold, and the value of the first signal quality is not less than the second preset threshold.
14. The method according to any one of claims 11 to 13, characterized in that, The first trajectory feature is determined based on the trajectory quality corresponding to the first distance offset parameter, and the first signal quality is determined based on the ultrasonic signal corresponding to the first distance offset parameter.
15. A distance measurement method, characterized in that, Applications in cloud servers, including: Receive first information from a first electronic device, the first information indicating: a first model and / or a second model, and a third model and / or a fourth model, the first model indicating the model of the first electronic device, the second model indicating the chip model in the first electronic device, the third model indicating the model of a second electronic device, the fourth model indicating the chip model in the second electronic device, and the second electronic device being the device to be searched corresponding to the first electronic device; When a first distance offset parameter is determined based on the first information, the second information is sent to the first electronic device. The second information indicates the first distance offset parameter, which is the distance offset parameter between the third electronic device and the fourth electronic device. The model of the third electronic device is the same as the first model, and / or the chip model in the third electronic device is the same as the second model; the model of the fourth electronic device is the same as the third model, and / or the chip model in the fourth electronic device is the same as the fourth model.
16. The method according to claim 15, characterized in that, The method further includes: If the first distance offset parameter is not determined based on the first information, third information is received from the first electronic device. The third information includes the first information and the second distance offset parameter, wherein the second distance offset parameter is the distance offset parameter between the first electronic device and the second electronic device.
17. The method according to claim 15 or 16, characterized in that, The first distance offset parameter is determined based on the distance offset parameter between the third electronic device and the fourth electronic device.
18. The method according to claim 16 or 17, characterized in that, The first information and the third information also indicate a first Bluetooth load, which is the Bluetooth load between the first electronic device and the second electronic device.
19. The method according to any one of claims 15 to 17, characterized in that, The Bluetooth load between the first electronic device and the second electronic device is a preset load.
20. The method according to any one of claims 16 to 19, characterized in that, The third information satisfies the first preset condition, which includes: the value of the second trajectory feature is not less than the first preset threshold, the value of the second signal quality is not less than the second preset threshold, the second trajectory feature indicates the trajectory quality corresponding to the second distance offset parameter, and the second signal quality indicates the ultrasound signal quality corresponding to the second distance offset parameter. The second trajectory feature and the second signal quality satisfy the following relationship: Among them, C m Q represents the second trajectory feature. m The second signal quality is indicated by the subscript m, which represents the measurement index, and L represents the number of coordinates obtained by the first electronic device during the acquisition of the second distance offset parameter. i and A j This represents the trajectory coordinates of the first electronic device during the process of acquiring the second distance offset parameter, ||A i -A j ‖ represents coordinate A i and A j Distance between them, received signal strength This indicates the signal quality at the corresponding coordinates.
21. The method according to any one of claims 15 to 20, characterized in that, The method further includes: When the first distance offset parameter is determined based on the first information, fourth information is received from the first electronic device. The fourth information includes the first information and the second distance offset parameter. The second trajectory feature and the second signal quality satisfy the first preset condition. The second trajectory feature is the trajectory quality corresponding to the second distance offset parameter. The second signal quality is the ultrasonic signal quality corresponding to the second distance offset parameter. The first preset condition includes: the value of the second trajectory feature is not less than the first preset threshold, and the value of the second signal quality is not less than the second preset threshold. The second trajectory feature and the second signal quality satisfy the following relationship: Among them, C m Q represents the second trajectory feature. m The second signal quality is indicated by the subscript m, which represents the index of the first electronic device, and L represents the number of coordinates in the process of the first electronic device acquiring the second distance offset parameter. i and A j This represents the trajectory coordinates of the first electronic device during the process of acquiring the second distance offset parameter, ||A i -A j ‖ represents coordinate A i and A j Distance between them, received signal strength This indicates the signal quality at the corresponding coordinates.
22. The method according to any one of claims 16 to 19, characterized in that, The third information also indicates the second trajectory feature and / or the second signal quality, wherein the second trajectory feature indicates the trajectory quality corresponding to the second distance offset parameter, and the second signal quality indicates the ultrasonic signal quality corresponding to the second distance offset parameter; The second trajectory feature and the second signal quality satisfy the following relationship: Among them, C m Q represents the second trajectory feature. m The second signal quality is indicated by the subscript m, which represents the measurement index, and L represents the number of coordinates obtained by the first electronic device during the acquisition of the second distance offset parameter. i and A j This represents the trajectory coordinates of the first electronic device during the process of acquiring the second distance offset parameter, ||A i -A j ‖ represents coordinate A i and A j Distance between them, received signal strength This indicates the signal quality at the corresponding coordinates.
23. The method according to claim 22, characterized in that, The second information also indicates a first trajectory feature and / or a first signal quality, wherein the first trajectory feature is the trajectory quality corresponding to the first distance offset parameter, and the first signal quality is the ultrasound signal quality corresponding to the first distance offset parameter.
24. The method according to claim 23, characterized in that, The method further includes: When the first distance offset parameter is determined based on the first information, fourth information is received from the first electronic device. The fourth information includes the first information and the second distance offset parameter. The second trajectory feature and the second signal quality satisfy the first preset condition or the third preset condition. The second trajectory feature is the trajectory quality corresponding to the second distance offset parameter, and the second signal quality is the ultrasonic signal quality corresponding to the second distance offset parameter. The first preset condition includes: the value of the second trajectory feature is not less than the first preset threshold, and the value of the second signal quality is not less than the second preset threshold; The third preset condition includes: the value of the second trajectory feature is greater than the value of the first trajectory feature, and / or, the value of the second signal quality is greater than the value of the first signal quality.
25. The method according to claim 23 or 24, characterized in that, The second information satisfies the first preset condition, which includes: the value of the first trajectory feature is not less than the first preset threshold, and the value of the first signal quality is not less than the second preset threshold.
26. The method according to any one of claims 23 to 25, characterized in that, The first trajectory feature is determined based on the trajectory quality corresponding to the first distance offset parameter, and the first signal quality is determined based on the ultrasonic signal corresponding to the first distance offset parameter.
27. A ranging device, characterized in that, The ranging device includes a module for implementing the ranging method as described in any one of claims 1 to 26.
28. A ranging device, characterized in that, include: Processor, the processor being coupled to memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the ranging device to perform the ranging method as described in any one of claims 1 to 26.
29. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the ranging method as described in any one of claims 1 to 26.
30. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the ranging method as described in any one of claims 1 to 26.