Bluetooth distance measurement method and device and computer readable storage medium
By calculating the phase difference value and distance measurement phase results using measurement results and phase domain conversion of different frequency hopping intervals in Bluetooth devices, the problem of low accuracy of Bluetooth ranging in the prior art is solved, and higher distance measurement is achieved accuracy.
Patent Information
- Application Number
- CN202410957657.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-15
AI Technical Summary
Existing Bluetooth devices use the same frequency modulation interval distance when measuring ranging, resulting in low accuracy of distance calculation. How to improve the accuracy of Bluetooth ranging is an urgent problem.
By obtaining measurement results for different frequency hopping intervals, converting the phase domain, calculating the phase difference value and ranging phase results, combining data from two different frequency modulation intervals to determine the ranging phase results, and improving the accuracy of ranging.
By combining data from multiple frequency modulation intervals, more accurate distance measurement phase results are generated, which improves the accuracy of distance measurement between Bluetooth devices.
Smart Images

Figure CN118962583A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of Bluetooth technology, and specifically relates to a Bluetooth ranging method, device and computer-readable storage medium. Background Art
[0002] Bluetooth Low Energy (BLE) is a Bluetooth technology with low power consumption and cost. In BLE's channel souding mode 2, two Bluetooth Low Energy devices can measure the distance between each other by exchanging Tones (single carrier).
[0003] The current distance measurement method of Bluetooth devices usually uses the distance measurement results of the same frequency modulation interval distance to measure the distance between two low-power Bluetooth devices, resulting in low accuracy of distance measurement. Therefore, how to improve the accuracy of Bluetooth distance measurement is an urgent problem to be solved. Summary of the invention
[0004] In view of the problems existing in the above-mentioned prior art, a Bluetooth ranging method, device and computer-readable storage medium are proposed. By using the Bluetooth ranging method, device and computer-readable storage medium, the accuracy of Bluetooth ranging can be improved.
[0005] This application provides the following solution.
[0006] In a first aspect, the present application provides a Bluetooth ranging method, the method comprising:
[0007] Obtaining a first measurement result of a first frequency hopping interval and a second measurement result of a second frequency hopping interval, wherein the first frequency hopping interval is greater than the second frequency hopping interval;
[0008] The second measurement result is transferred to a phase domain whose frequency hopping interval is the first frequency hopping interval to obtain a processing result;
[0009] The difference between the first measurement result and the processing result is transferred to the phase domain with the frequency hopping interval being the second frequency hopping interval to obtain a phase difference result;
[0010] A ranging phase result is determined according to the sum of the phase difference result and the second measurement result, and the ranging phase result indicates the distance between the two Bluetooth devices.
[0011] In some possible embodiments, the first frequency hopping interval is k times the second frequency hopping interval, and the second measurement result is transferred to a phase domain in which the frequency hopping interval is the first frequency hopping interval, and the processing result is obtained, including:
[0012] After the second measurement result is multiplied by k, it is warped into the target phase domain to obtain a processing result.
[0013] In some possible embodiments, the target phase domain is [-π to π] range, and the second measurement result is transferred to the phase domain whose frequency hopping interval is the first frequency hopping interval to obtain a processing result, which is obtained by the following formula:
[0014] φn'=anglePrime(φn*k)
[0015] Wherein, φn' is the processing result, φn is the second measurement result, the first frequency hopping interval is k times the second frequency hopping interval, and anglePrime(φn*k) indicates wrapping φn*k to [-π~π] range.
[0016] In some possible embodiments, transferring the difference between the first measurement result and the processing result to a phase domain with a frequency hopping interval being a second frequency hopping interval to obtain a phase difference result includes:
[0017] Warping the difference between the first measurement result and the processing result into the target phase domain to obtain a difference intermediate result;
[0018] Divide the intermediate difference result by k to obtain the phase difference result.
[0019] In some possible embodiments, the target phase domain is [-π~π] range, and the difference between the first measurement result and the processing result is wrapped into the target phase domain to obtain a difference intermediate result, which is obtained by the following formula:
[0020] φΔ=anglePrime(φm-φn')
[0021] Wherein, φΔ is the difference intermediate result, φm is the first measurement result, φn' is the processing result, and anglePrime(φm-φn') indicates that (φm-φn') is wrapped to [-π~π] range.
[0022] In some possible embodiments, determining the ranging phase result according to the sum of the phase difference result and the second measurement result includes:
[0023] The sum of the phase difference result and the second measurement result is warped into the target phase domain to obtain the ranging phase result.
[0024] In some possible embodiments, the target phase domain is [-π~π] range, and the sum of the phase difference result and the second measurement result is wrapped into the target phase domain to obtain the ranging phase result, which is obtained by the following formula:
[0025] φn_final=anglePrime(φn+φΔ / k)
[0026] Among them, φn_final is the ranging phase result, φn is the second measurement result, φΔ is the phase difference result, the first frequency hopping interval is k times the second frequency hopping interval, and anglePrime(φn+φΔ / k) indicates that (φn+φΔ / k) is wrapped to [-π~π]range.
[0027] In some possible embodiments, it further includes:
[0028] If the ranging phase result is a negative value, add 2*π to the ranging phase result.
[0029] In some possible embodiments, it further includes:
[0030] Based on the ranging phase results, the distance between two Bluetooth devices is determined.
[0031] In a second aspect, the present application provides a Bluetooth distance measuring device, comprising:
[0032] An obtaining module, configured to obtain a first measurement result of a first frequency hopping interval and a second measurement result of a second frequency hopping interval, wherein the first frequency hopping interval is greater than the second frequency hopping interval;
[0033] A first conversion module is used to convert the second measurement result into a phase domain whose frequency hopping interval is the first frequency hopping interval to obtain a processing result;
[0034] A second conversion module is used to convert the difference between the first measurement result and the processing result into a phase domain with a frequency hopping interval being a second frequency hopping interval to obtain a phase difference result;
[0035] The result determination module is used to determine the ranging phase result according to the sum of the phase difference result and the second measurement result, and the ranging phase result indicates the distance between the two Bluetooth devices.
[0036] In some possible embodiments, the first frequency hopping interval is k times the second frequency hopping interval, and the first conversion module is used to multiply the second measurement result by k and then wrap it into the target phase domain to obtain a processing result.
[0037] In some possible embodiments, the target phase domain is [-π~π] range, and the first conversion module is used to obtain the processing result through the following formula:
[0038] φn'=anglePrime(φn*k)
[0039] Wherein, φn' is the processing result, φn is the second measurement result, the first frequency hopping interval is k times the second frequency hopping interval, and anglePrime(φn*k) indicates wrapping φn*k to [-π~π] range.
[0040] In some possible embodiments, the second conversion module is used to wrap the difference between the first measurement result and the processing result into a target phase domain to obtain a difference intermediate result; and divide the difference intermediate result by k to obtain a phase difference result.
[0041] In some possible embodiments, the target phase domain is [-π~π] range, and the second conversion module is used to obtain the difference intermediate result through the following formula:
[0042] φΔ=anglePrime(φm-φn')
[0043] Wherein, φΔ is the difference intermediate result, φm is the first measurement result, φn' is the processing result, and anglePrime(φm-φn') indicates that (φm-φn') is wrapped to [-π~π] range.
[0044] In some possible embodiments, the result determination module is used to wrap the sum of the phase difference result and the second measurement result into a target phase domain to obtain a ranging phase result.
[0045] In some possible embodiments, the target phase domain is [-π~π] range, and the result determination module obtains the ranging phase result through the following formula:
[0046] φn_final=anglePrime(φn+φΔ / k)
[0047] Among them, φn_final is the ranging phase result, φn is the second measurement result, φΔ is the phase difference result, the first frequency hopping interval is k times the second frequency hopping interval, and anglePrime(φn+φΔ / k) indicates that (φn+φΔ / k) is wrapped to [-π~π]range.
[0048] In some possible embodiments, the Bluetooth ranging device provided in the embodiment of the present application further includes a processing module. The processing module is configured to add 2*π to the ranging phase result if the ranging phase result is a negative value.
[0049] In some possible embodiments, the Bluetooth distance measurement device provided in the embodiments of the present application further includes a distance determination module. The distance determination module is used to determine the distance between two Bluetooth devices according to the ranging phase result.
[0050] In a third aspect, the present application provides a Bluetooth distance measuring device, comprising:
[0051] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned Bluetooth ranging method.
[0052] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a program. When the program is executed by a multi-core processor, the multi-core processor executes the above-mentioned Bluetooth ranging method.
[0053] The frequency modulation of Bluetooth is usually random, that is, the frequency interval between two frequency hopping of Bluetooth is uncertain, so Bluetooth can usually obtain ranging results of multiple frequency hopping intervals. The Bluetooth ranging method provided by the present application can use data of multiple frequency modulation intervals for ranging. Specifically, the technical solution of the present application can generate a ranging phase result by combining the first measurement result and the second measurement result of two different frequency hopping intervals. The ranging phase result combines the data of the measurement results of two different frequency modulation intervals, which can improve the accuracy of Bluetooth ranging.
[0054] Other advantages of the present application will be explained in more detail with reference to the following description and drawings.
[0055] It should be understood that the above description is only an overview of the technical solution of the present application, so that the technical means of the present application can be more clearly understood and implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are specifically described below by way of example. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The advantages and benefits described herein and other advantages and benefits will be apparent to those skilled in the art by reading the detailed description of the exemplary embodiments below. The accompanying drawings are only used for the purpose of illustrating the exemplary embodiments and are not to be considered as limiting the present application. In the accompanying drawings:
[0057] Figure 1 A schematic diagram of a flow chart of a Bluetooth ranging method provided in an embodiment of the present application;
[0058] Figure 2 A schematic diagram of a Bluetooth distance measuring device provided in an embodiment of the present application;
[0059] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION
[0060] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0061] In the description of the embodiments of the present application, it should be understood that terms such as "including" or "having" are intended to indicate the presence of disclosed features, numbers, steps, behaviors, components, parts, or a combination thereof in the present specification, and do not exclude the possibility of the presence of one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof.
[0062] Unless otherwise specified, “ / ” means or. For example, A / B can mean A or B. The “and / or” in this article is merely a way to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0063] The terms "first", "second", etc. are used only to distinguish the same or similar technical features for the convenience of description, and should not be understood as indicating or implying the relative importance or quantity of these technical features. Thus, the features defined by "first", "second", etc. may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, unless otherwise specified, the term "plurality" means two or more than two.
[0064] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0065] like Figure 1 As shown, the Bluetooth ranging method provided in the embodiment of the present application includes:
[0066] S101: Obtain a first measurement result of a first frequency hopping interval and a second measurement result of a second frequency hopping interval, wherein the first frequency hopping interval is greater than the second frequency hopping interval.
[0067] It should be noted that the Bluetooth ranging method provided in the embodiment of the present application can measure the distance between Bluetooth headsets or other Bluetooth devices, such as the distance between two low-power Bluetooth devices, which is not limited in the embodiment of the present application. The frequency modulation of Bluetooth devices is usually random, that is, the frequency interval between two Bluetooth frequency hops is uncertain, so Bluetooth devices can usually obtain ranging data for multiple frequency hopping intervals. In the technical solution of the present application, the first ranging result φm of the first frequency hopping interval m and the second ranging result φn of the second frequency hopping interval n can be selected from the ranging data of multiple frequency hopping intervals. And the first frequency hopping interval m is greater than the second frequency hopping interval n. The first ranging result φm and the second ranging result φn in the embodiment of the present application are both ranging results in the phase domain.
[0068] S102: Transfer the second measurement result to a phase domain whose frequency hopping interval is the first frequency hopping interval to obtain a processing result.
[0069] In an embodiment of the present application, the first frequency hopping interval m is k times the second frequency hopping interval n. In an embodiment of the present application, the second measurement result φn can be multiplied by k and then warped into the target phase domain [-pi, pi] to obtain a processing result φn'. The measured phases in the embodiment of the present application are all within the target phase domain [-pi, pi]. As an example, the target phase domain in the embodiment of the present application can be [-π~π]range. The processing result φn' in the embodiment of the present application can be obtained by the following formula:
[0070] φn'=anglePrime(φn*k)
[0071] Among them, φn' is the processing result, φn is the second measurement result, the first frequency hopping interval is k times the second frequency hopping interval, and anglePrime(φn*k) indicates that φn*k is wrapped to [-π~π]range. It should be noted that, assuming that φn is spaced m like φm, the measured phase will become k times larger, that is, φn*k. However, since the phase in the embodiment of the present application will only be within the preset interval [-π~π]range, it is necessary to unwrap φn*k through anglePrime and wrap φn*k to the target phase domain [-π~π]range, so that φn' and φm are compared on the same scale.
[0072] S103: Convert the difference between the first measurement result and the processing result into a phase domain whose frequency hopping interval is the second frequency hopping interval to obtain a phase difference result.
[0073] In an embodiment of the present application, the difference (φm-φn') between the first measurement result φm and the processing result φn' can be wrapped into the target phase domain [-pi, pi] to obtain a difference intermediate result φΔ. The measured phases in the embodiment of the present application are all within the target phase domain [-pi, pi]. As an example, the target phase domain in the embodiment of the present application can be [-π~π] range. The difference intermediate result φΔ in the embodiment of the present application can be obtained by the following formula:
[0074] φΔ=anglePrime(φm-φn')
[0075] Wherein, φΔ is the difference intermediate result, φm is the first measurement result, φn' is the processing result, and anglePrime(φm-φn') indicates that (φm-φn') is wrapped to [-π~π] range.
[0076] After obtaining the intermediate difference result φΔ, the embodiment of the present application can directly divide the intermediate difference result φΔ by k to obtain the phase difference result φΔ / k. In this way, the embodiment of the present application can convert φΔ to the phase domain of φn.
[0077] S104: Determine a ranging phase result according to the sum of the phase difference result and the second measurement result, where the ranging phase result indicates the distance between the two Bluetooth devices.
[0078] In an embodiment of the present application, the sum of the phase difference result φΔ / k and the second measurement result φn (φn+φΔ / k) can be wrapped into the target phase domain [-pi, pi] to obtain the ranging phase result φn_final. The measured phases in the embodiment of the present application are all within the target phase domain [-pi, pi]. As an example, the target phase domain in the embodiment of the present application can be [-π~π]range. The ranging phase result φn_final in the embodiment of the present application can be obtained by the following formula:
[0079] φn_final=anglePrime(φn+φΔ / k)
[0080] Among them, φn_final is the ranging phase result, φn is the second measurement result, φΔ is the phase difference result, the first frequency hopping interval φm is k times the second frequency hopping interval φn, and anglePrime(φn+φΔ / k) indicates that (φn+φΔ / k) is wrapped to [-π~π]range. It should be noted that the embodiment of the present application combines the phase difference result φΔ / k with the second measurement result φn to obtain the value φn_final that φm should have on the scale of the second frequency hopping interval n.
[0081] It should be noted that, according to the ranging phase result in the embodiment of the present application, the distance between the two Bluetooth devices can be determined. The Bluetooth devices in the implementation of the present application can be two Bluetooth headsets, or one Bluetooth headset and other Bluetooth devices, or two other Bluetooth devices, which is not limited in the embodiment of the present application.
[0082] In addition, since the distance between two Bluetooth devices indicated by the ranging phase result should actually be a positive value, the present application can add 2*π to the output ranging result when the ranging phase result is a negative value, so that the ranging phase result can be more easily understood by the detection personnel.
[0083] In summary, the Bluetooth ranging method provided by the present application can use data of multiple frequency modulation intervals for ranging. Specifically, the technical solution of the present application can generate a ranging phase result by combining the first measurement result and the second measurement result of two different frequency hopping intervals. The ranging phase result combines the data of the measurement results of two different frequency modulation intervals, which can improve the accuracy of Bluetooth ranging.
[0084] In the description of this specification, the description with reference to the terms "some possible embodiments", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application, and the above terms do not necessarily represent the same embodiment or example. Moreover, the described specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0085] About the method flow chart of the present application embodiment, some operations are described as different steps performed in a certain order. Such flow chart belongs to illustrative and non-restrictive. Some steps described in this article can be grouped together and performed in a single operation, or some steps can be divided into multiple sub-steps and can be performed in an order different from that shown in this article. Each step shown in the flow chart can be realized in any way by any circuit structure and / or tangible mechanism (for example, by software, hardware (for example, the logical function realized by processor or chip) etc. running on computer equipment and / or any combination thereof).
[0086] Those skilled in the art will appreciate that, in the method described in the above specific implementation, the writing order of each step does not mean a strict execution order, and the specific execution order of each step should be determined by its function and possible internal logic.
[0087] According to the Bluetooth distance measurement method provided in the above embodiment, the embodiment of the present application also provides a Bluetooth distance measurement device.
[0088] like Figure 2 As shown, the Bluetooth distance measuring device provided in the embodiment of the present application includes:
[0089] An obtaining module 100 is used to obtain a first measurement result of a first frequency hopping interval and a second measurement result of a second frequency hopping interval, wherein the first frequency hopping interval is greater than the second frequency hopping interval;
[0090] The first conversion module 200 is used to convert the second measurement result into a phase domain whose frequency hopping interval is the first frequency hopping interval to obtain a processing result;
[0091] The second conversion module 300 is used to convert the difference between the first measurement result and the processing result into a phase domain with a frequency hopping interval being a second frequency hopping interval to obtain a phase difference result;
[0092] The result determination module 400 is used to determine a ranging phase result according to the sum of the phase difference result and the second measurement result, where the ranging phase result indicates the distance between the two Bluetooth devices.
[0093] As a possible implementation manner, the first frequency hopping interval is k times the second frequency hopping interval, and the first conversion module is used to multiply the second measurement result by k and then wrap it into the target phase domain to obtain a processing result.
[0094] As a possible implementation, the target phase domain is [-π~π] range, and the first conversion module is used to obtain the processing result through the following formula:
[0095] φn'=anglePrime(φn*k)
[0096] Wherein, φn' is the processing result, φn is the second measurement result, the first frequency hopping interval is k times the second frequency hopping interval, and anglePrime(φn*k) indicates wrapping φn*k to [-π~π] range.
[0097] As a possible implementation, the second conversion module is used to wrap the difference between the first measurement result and the processing result into the target phase domain to obtain a difference intermediate result; and divide the difference intermediate result by k to obtain a phase difference result.
[0098] As a possible implementation, the target phase domain is [-π~π] range, and the second conversion module is used to obtain the difference intermediate result through the following formula:
[0099] φΔ=anglePrime(φm-φn')
[0100] Wherein, φΔ is the difference intermediate result, φm is the first measurement result, φn' is the processing result, and anglePrime(φm-φn') indicates that (φm-φn') is wrapped to [-π~π] range.
[0101] As a possible implementation, the result determination module is used to wrap the sum of the phase difference result and the second measurement result into the target phase domain to obtain the ranging phase result.
[0102] As a possible implementation, the target phase domain is [-π~π] range, and the result determination module obtains the ranging phase result through the following formula:
[0103] φn_final=anglePrime(φn+φΔ / k)
[0104] Among them, φn_fiinal is the ranging phase result, φn is the second measurement result, φΔ is the phase difference result, the first frequency hopping interval is k times the second frequency hopping interval, and anglePrime(φn+φΔ / k) indicates that (φn+φΔ / k) is wrapped to [-π~π]range.
[0105] As a possible implementation, the Bluetooth ranging device provided in the embodiment of the present application further includes a processing module. The processing module is configured to add 2*π to the ranging phase result if the ranging phase result is a negative value.
[0106] As a possible implementation, the Bluetooth distance measurement device provided in the embodiment of the present application further includes a distance determination module. The distance determination module is used to determine the distance between two Bluetooth devices according to the ranging phase result.
[0107] It should be noted that the device in the embodiment of the present application can implement the various processes of the embodiment of the aforementioned method and achieve the same effects and functions, which will not be repeated here.
[0108] According to some embodiments of the present application, a Bluetooth distance measuring device according to an embodiment of the present application is provided, for performing Figure 1 The Bluetooth ranging method shown, the device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the above embodiment.
[0109] According to some embodiments of the present application, a non-volatile computer storage medium of a Bluetooth ranging method is provided, on which computer executable instructions are stored. The computer executable instructions are configured to execute the Bluetooth ranging method described in the above embodiments when executed by a processor.
[0110] Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory, read-only memory, electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. In addition, although the operations of the method of the present application are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. In addition, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple sub-steps.
[0111] Although the spirit and principle of the present application have been described above with reference to several specific embodiments, it should be understood that the present application is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined. The present application is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.
Claims
1. A Bluetooth distance measurement method, characterized in that: The method comprises: Obtaining a first measurement result of a first frequency hopping interval and a second measurement result of a second frequency hopping interval, wherein the first frequency hopping interval is greater than the second frequency hopping interval; Converting the second measurement result into a phase domain whose frequency hopping interval is the first frequency hopping interval to obtain a processing result; Convert the difference between the first measurement result and the processing result into a phase domain whose frequency hopping interval is the second frequency hopping interval to obtain a phase difference result; A ranging phase result is determined according to the sum of the phase difference result and the second measurement result, where the ranging phase result indicates the distance between the two Bluetooth devices.
2. The Bluetooth distance measurement method according to claim 1, characterized in that: The first frequency hopping interval is k times the second frequency hopping interval, and the transferring the second measurement result to a phase domain whose frequency hopping interval is the first frequency hopping interval to obtain a processing result includes: After multiplying the second measurement result by k, the result is warped into the target phase domain to obtain a processing result.
3. The method according to claim 2, characterized in that The target phase domain is [-π to π] range, and the second measurement result is transferred to the phase domain whose frequency hopping interval is the first frequency hopping interval to obtain the processing result, which is obtained by the following formula: φn'=anglePrime(φn*k) Wherein, φn' is the processing result, φn is the second measurement result, the first frequency hopping interval is k times the second frequency hopping interval, and anglePrime(φn*k) indicates wrapping φn*k to [-π~π] range.
4. The method according to claim 1, characterized in that: The step of transferring the difference between the first measurement result and the processing result to a phase domain whose frequency hopping interval is the second frequency hopping interval to obtain a phase difference result includes: Warping the difference between the first measurement result and the processing result into a target phase domain to obtain a difference intermediate result; The intermediate difference result is divided by k to obtain a phase difference result.
5. The method according to claim 4, characterized in that The target phase domain is [-π~π] range, and the difference between the first measurement result and the processing result is wrapped into the target phase domain to obtain a difference intermediate result, which is obtained by the following formula: φΔ=anglePrime(φm-φn') Wherein, φΔ is the difference intermediate result, φm is the first measurement result, φn' is the processing result, and anglePrime(φm-φn') indicates that (φm-φn') is wrapped to [-π~π] range.
6. The method according to claim 1, characterized in that The determining the ranging phase result according to the sum of the phase difference result and the second measurement result includes: The sum of the phase difference result and the second measurement result is warped into the target phase domain to obtain a ranging phase result.
7. The method according to claim 6, characterized in that The target phase domain is [-π~π] range, and the sum of the phase difference result and the second measurement result is wrapped into the target phase domain to obtain the ranging phase result, which is obtained by the following formula: φn_final=anglePrime(φn+φΔ / k) Among them, φn_final is the ranging phase result, φn is the second measurement result, φΔ is the phase difference result, the first frequency hopping interval is k times the second frequency hopping interval, and anglePrime(φn+φΔ / k) indicates that (φn+φΔ / k) is wrapped to [-π~π]range.
8. The method according to claim 1, characterized in that Also includes: If the ranging phase result is a negative value, 2*π is added to the ranging phase result.
9. The method according to any one of claims 1 to 8, characterized in that: Also includes: The distance between the two Bluetooth devices is determined according to the ranging phase result.
10. A Bluetooth distance measuring device, characterized in that: include: An obtaining module, configured to obtain a first measurement result of a first frequency hopping interval and a second measurement result of a second frequency hopping interval, wherein the first frequency hopping interval is greater than the second frequency hopping interval; A first conversion module, used for converting the second measurement result into a phase domain whose frequency hopping interval is the first frequency hopping interval to obtain a processing result; A second conversion module is used to convert the difference between the first measurement result and the processing result into a phase domain whose frequency hopping interval is the second frequency hopping interval to obtain a phase difference result; The result determination module is used to determine a ranging phase result according to the sum of the phase difference result and the second measurement result, wherein the ranging phase result indicates the distance between the two Bluetooth devices.
11. A Bluetooth distance measuring device, characterized in that: include: at least one processor; And, a memory communicatively connected to at least one processor; wherein the memory stores instructions executable by at least one processor, and the instructions are executed by at least one processor to enable the at least one processor to execute: the method as described in any one of claims 1-9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, and when the program is executed by a multi-core processor, the multi-core processor is caused to execute the method according to any one of claims 1 to 9.
