Vehicle-mounted Bluetooth signal processing method and device, electronic equipment and storage medium
By setting up a Bluetooth antenna in the vehicle, receiving the signal from the Bluetooth terminal and performing Gaussian filtering and compensation processing, the problem of positioning failure caused by unstable Bluetooth signal is solved, and the success rate of positioning of Bluetooth terminals is improved.
Patent Information
- Application Number
- CN202411661349.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-02-14
AI Technical Summary
In the prior art, Bluetooth signals are susceptible to interference and unstable, resulting in failure to locate the Bluetooth key of the vehicle.
The Bluetooth antenna receives the signal sent by the Bluetooth terminal within the preset period, calculates the field strength value sequence, and performs Gaussian filtering and missing field strength value compensation to obtain the compensated field strength value sequence to realize the Bluetooth terminal position.
The success rate of Bluetooth terminal positioning is improved, ensuring that there is sufficient field strength value in the field strength value sequence, so as to stably realize the positioning of the Bluetooth key.
Smart Images

Figure CN119450694A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of Bluetooth technology, and specifically to a vehicle-mounted Bluetooth signal processing method, device, electronic device and storage medium. Background Art
[0002] Bluetooth technology is widely used in automobiles. Users can use Bluetooth keys to directly control the vehicle to lock, unlock, greet guests, and perform other operations.
[0003] In the prior art, the Bluetooth key can be located by detecting the signal sent by the vehicle's Bluetooth key through multiple Bluetooth antennas installed in the vehicle and calculating the signal's field strength value. However, since the Bluetooth signal is easily disturbed and unstable, it is easy to cause the Bluetooth key of the vehicle to fail to be located. Summary of the invention
[0004] In view of the above problems, the embodiments of the present application provide a vehicle-mounted Bluetooth signal processing method, device, electronic device and storage medium for improving the success rate of Bluetooth terminal positioning.
[0005] In a first aspect, an embodiment of the present application provides a method for processing an in-vehicle Bluetooth signal, which is applied to a vehicle, and the method includes:
[0006] Calculate and obtain a sequence of field strength values based on signals sent by the Bluetooth terminal received within a preset period;
[0007] Performing Gaussian filtering on the field intensity value sequence to obtain a filtered field intensity value sequence;
[0008] Compensation processing is performed on the missing field intensity values in the filtered field intensity value sequence to obtain a compensated field intensity value sequence.
[0009] In a second aspect, an embodiment of the present application provides a vehicle-mounted Bluetooth signal processing device, comprising:
[0010] A processing module, used to calculate a sequence of field strength values according to signals sent by the Bluetooth terminal received within a preset period;
[0011] The processing module is also used to perform Gaussian filtering on the field intensity value sequence to obtain a filtered field intensity value sequence;
[0012] The processing module is also used to compensate for the missing field intensity values in the filtered field intensity value sequence to obtain a compensated field intensity value sequence.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0014] A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0015] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the method provided by the first aspect above.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which at least one executable instruction is stored. When the executable instruction is executed on an electronic device, the electronic device executes the method provided in the first aspect above.
[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the method provided in the first aspect above.
[0018] The in-vehicle Bluetooth signal processing method, device, electronic device and storage medium provided in the embodiment of the present application receive the Bluetooth signal sent by the Bluetooth terminal within a preset period through the Bluetooth antenna, calculate the field strength value according to the multiple received Bluetooth signals, and obtain a field strength value sequence; Gaussian filter the field strength value sequence to filter out the excessively large and excessively small values in the field strength value sequence to obtain a filtered field strength value sequence; compensate for the missing field strength values in the filtered field strength value sequence to obtain a compensated field strength value sequence. By compensating the filtered field strength value sequence, it is ensured that there are sufficient field strength values in the field strength value sequence, so that the Bluetooth terminal can be positioned according to the compensated field strength value sequence. The success rate of Bluetooth terminal positioning is improved.
[0019] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0021] Figure 1 A schematic diagram of a scenario of the vehicle-mounted Bluetooth signal processing method provided in this application;
[0022] Figure 2 Schematic diagram of the process of the vehicle-mounted Bluetooth signal processing method provided in this application Figure 1 ;
[0023] Figure 3 Schematic diagram of the process of the vehicle-mounted Bluetooth signal processing method provided in this application Figure 2 ;
[0024] Figure 4is a schematic diagram of channel hopping timing of an exemplary Bluetooth antenna and a Bluetooth key;
[0025] Figure 5 Schematic diagram of the process of the vehicle-mounted Bluetooth signal processing method provided in this application Figure 3 ;
[0026] Figure 6 A schematic diagram of the structure of the vehicle-mounted Bluetooth signal processing device provided in this application;
[0027] Figure 7 A schematic diagram of the structure of the electronic device provided in this application.
[0028] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0029] 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 drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein.
[0030] First, the terms involved in this application are explained.
[0031] Channel: In Bluetooth technology, specific radio frequencies are used to transmit data, and these frequencies are organized into a series of channels. Bluetooth technology mainly performs data transmission in the 2.4GHz frequency band. For classic Bluetooth technology, this frequency band is usually divided into 79 channels; for low-power Bluetooth technology, this frequency band is usually divided into 40 channels.
[0032] Channel hopping: During data transmission, Bluetooth technology will hop between divided channels to prevent interference and data loss caused by staying on one channel for a long time. Channel hopping can be between adjacent channels, or it can be done with one or more channels at a time.
[0033] Bluetooth technology is widely used in automobiles. Users can use Bluetooth keys to directly control vehicles to achieve operations such as locking and unlocking vehicles, welcoming guests, etc. However, the basis for achieving the above operations is that the Bluetooth main module configured on the vehicle side receives the Bluetooth signal sent by the Bluetooth key through the Bluetooth antenna and determines the position of the Bluetooth key relative to the vehicle based on the Bluetooth signal.
[0034] In some embodiments, the Bluetooth key is located by detecting the field strength value of the Bluetooth signal sent by the Bluetooth key through the Bluetooth antenna. In the above technology, the Bluetooth signal is easily interfered, resulting in the instability of the Bluetooth signal received by the Bluetooth antenna, or the failure of the Bluetooth antenna to successfully receive the Bluetooth signal, so that the field strength value of the Bluetooth signal cannot be calculated, which easily leads to the failure of locating the Bluetooth key of the vehicle.
[0035] It can be seen from this that the solution in the above embodiment has the problem that the Bluetooth signal is easily interfered and unstable, resulting in failure to locate the Bluetooth key of the vehicle.
[0036] In this regard, the embodiments of the present application provide a vehicle-mounted Bluetooth signal processing method, device, electronic device and storage medium. The Bluetooth antenna configured on the vehicle side can receive the Bluetooth signal sent by the Bluetooth terminal within a preset period, and calculate the field strength value according to the multiple received Bluetooth signals to obtain a field strength value sequence; Gaussian filtering is performed on the field strength value sequence to filter out excessively large values and excessively small values in the field strength value sequence to obtain a filtered field strength value sequence; compensation processing is performed on the filtered field strength value sequence to obtain a compensated field strength value sequence. By compensating the filtered field strength value sequence, it is ensured that there are sufficient field strength values in the field strength value sequence, thereby realizing the positioning of the Bluetooth terminal. Improve the success rate of Bluetooth terminal positioning.
[0037] In order to facilitate the understanding of the technical solution provided by this application, first combine Figure 1 The application scenarios of the vehicle-mounted Bluetooth signal processing method provided in the embodiments of the present application are introduced.
[0038] Figure 1 A schematic diagram of a scenario of a vehicle-mounted Bluetooth signal processing method provided in this application, such as Figure 1 As shown, the Bluetooth signal processing method provided by the present application can be applied in the vehicle field. In the vehicle field, the application scenario includes: a vehicle 10, the vehicle 10 is equipped with one or more Bluetooth antennas 101, and the one or more Bluetooth antennas 101 are connected to a Bluetooth key 102 via Bluetooth technology. The Bluetooth key 102 can send Bluetooth signals to the one or more Bluetooth antennas 101.
[0039] Taking one of the Bluetooth antennas as an example, the vehicle is equipped with a Bluetooth main module, which is connected to the Bluetooth antenna. The Bluetooth main module configures the initial channel information of the Bluetooth antenna and controls the Bluetooth antenna to jump to the initial channel. After receiving the Bluetooth signal sent by the Bluetooth key on the initial channel, the Bluetooth key will perform a channel jump operation within a preset time period, and continue to send Bluetooth signals to the Bluetooth antenna on the channel after the jump. Correspondingly, the Bluetooth antenna also needs to perform a channel jump operation within a preset time period, and continue to receive the Bluetooth signal sent by the Bluetooth key on the channel after the jump.
[0040] The Bluetooth antenna receives multiple Bluetooth signals from multiple channels, calculates field strength values for the Bluetooth signals respectively, obtains a field strength value sequence, and calculates a final field strength value based on the field strength value sequence. Subsequently, the position of the Bluetooth key can be determined based on the final field strength values of the multiple Bluetooth antennas, so that the Bluetooth key can control the vehicle.
[0041] It should be noted that the above scenarios are only examples. The actual application scenarios of the Bluetooth signal processing method provided by this application are not limited to the vehicle field. Figure 1 The Bluetooth antenna shown in the figure can be any Bluetooth signal receiving end, the Bluetooth key can be any Bluetooth terminal, and the vehicle can be any device configured with one or more Bluetooth signal receiving ends.
[0042] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0043] Figure 2 Schematic diagram of the process of the vehicle-mounted Bluetooth signal processing method provided in this application Figure 1 The method is applied to a vehicle. The vehicle-mounted Bluetooth signal processing method provided in this embodiment is as follows Figure 2 As shown, the method includes:
[0044] Step 201: Calculate and obtain a sequence of field strength values based on signals sent by Bluetooth terminals received within a preset period.
[0045] Specifically, the vehicle end may be configured with a Bluetooth antenna, and the Bluetooth antenna may have a built-in processor. The Bluetooth antenna will receive the signal sent by the Bluetooth key within a preset period. Correspondingly, the Bluetooth antenna will receive multiple Bluetooth signals in multiple preset periods. The corresponding field strength value is calculated based on each received signal. Optionally, the Bluetooth antenna will receive multiple signals on different channels, and multiple field strength values are calculated based on the signals. Arrange the multiple field strength values in the order of the time dimension to obtain a field strength value sequence. In practical applications, the field strength value sequence can be in the form of an array.
[0046] Step 202: Perform Gaussian filtering on the field intensity value sequence to obtain a filtered field intensity value sequence.
[0047] The original field strength values directly calculated from the signal received by the Bluetooth antenna may be strong or weak at times. At this time, these overly strong original field strength values and overly weak original field strength values are noise, which is not conducive to the subsequent positioning of the Bluetooth key. Therefore, Gaussian filtering is used to filter out these overly strong original field strength values and overly weak original field strength values.
[0048] In practical applications, Gaussian filtering of the field strength value sequence can be achieved through the following steps:
[0049] Step 2021. Determine the size and standard deviation of the Gaussian kernel, wherein the size of the Gaussian kernel determines the coverage of the filter, and the standard deviation determines the width of the Gaussian weight distribution.
[0050] Step 2022. Assign a weight to each point in the Gaussian kernel according to the Gaussian function.
[0051] Step 2023. Apply the Gaussian kernel to the field intensity value sequence. For each point in the field intensity value sequence, multiply the points in its neighborhood by the Gaussian weight corresponding to the point, then sum them up to obtain a new field intensity value. All new field intensity values are constructed to obtain a filtered field intensity value sequence.
[0052] It should be noted that these overly strong original field strength values and overly weak original field strength values can also be filtered out by setting an upper threshold and a lower threshold. If the field strength value in the field strength value sequence is greater than the upper threshold, the field strength value is filtered out; if the field strength value in the field strength value sequence is less than the lower threshold, the field strength value is filtered out.
[0053] Furthermore, the filter depth may be set. The filter depth refers to the total number of field strength values in the field strength value sequence during one filtering operation. For example, the filter depth may be set to 14.
[0054] Step 203: Compensate for the missing field intensity values in the filtered field intensity value sequence to obtain a compensated field intensity value sequence.
[0055] If the number of field strength values in the filtered field strength value sequence is insufficient, the field strength value corresponding to the most recently received signal may be selected and inserted at the end of the field strength value sequence to complete the filtered field strength value sequence.
[0056] The in-vehicle Bluetooth signal processing method provided in the embodiment of the present application can construct a field strength value sequence by calculating the field strength values of the Bluetooth signals respectively through the multiple Bluetooth signals received by the Bluetooth antenna within multiple preset periods; Gaussian filtering is performed based on the field strength value sequence to obtain a filtered field strength value sequence; since some field strength values are filtered out in the filtered field strength value sequence, compensation processing is performed on the missing field strength values to obtain a compensated field strength value sequence. There are sufficient field strength values in the compensated field strength value sequence, so that the Bluetooth key can be located according to the compensated field strength value sequence. The field strength value is prevented from being filtered out due to Bluetooth signal interference, thereby improving the success rate of Bluetooth key positioning.
[0057] In combination with the above-mentioned embodiments, it can be known that after the field strength value sequence is Gaussian filtered, there may be missing field strength values. At this time, the number of field strength values in the field strength value sequence is insufficient, and the Bluetooth terminal cannot be located. In this regard, this embodiment explains how to compensate for the missing field strength values in the filtered field strength value sequence.
[0058] Exemplarily, the target field strength value is used to compensate for the missing field strength values in the filtered field strength value sequence to obtain a compensated field strength value sequence.
[0059] The target field strength value is a field strength value adjacent to a missing field strength value in the filtered field strength value sequence.
[0060] In combination with practical application examples, in one example, in the filtered field intensity value sequence, the third field intensity value is filtered out by Gaussian filtering. Therefore, the third field intensity value is a missing field intensity value. If the second field intensity value adjacent to the third field intensity value is not filtered out by Gaussian filtering, the second field intensity value can be used as the target field intensity value and compensated to the position of the third field intensity value, thereby obtaining a compensated field intensity value sequence.
[0061] If the fourth field intensity value adjacent to the third field intensity value is also not filtered out by the Gaussian filtering process, the target field intensity value may be the second field intensity value or the fourth field intensity value.
[0062] In another example, in the filtered field intensity value sequence, the second field intensity value and the third field intensity value are both filtered out by Gaussian filtering. The first field intensity value can be used as the target field intensity value of the second field intensity value, and the fourth field intensity value can be used as the target field intensity value of the third field intensity value for compensation processing, thereby obtaining a compensated field intensity value sequence.
[0063] In another example, in the filtered field intensity value sequence, the first field intensity value, the second field intensity value, and the third field intensity value are all filtered out by Gaussian filtering. The fourth field intensity value can be used as the target field intensity value, and the missing first field intensity value, the second field intensity value, and the third field intensity value are compensated with the target field intensity value, thereby obtaining a compensated field intensity value sequence.
[0064] In the above embodiment, the missing field intensity values after being filtered out by the Gaussian filter are supplemented by the adjacent target field intensity values to obtain a compensated field intensity value sequence, so that there are sufficient field intensity values in the compensated field intensity value sequence, thereby laying a foundation for the subsequent positioning of the Bluetooth key based on the compensated field intensity value sequence, and indirectly ensuring the success rate of Bluetooth key positioning.
[0065] In combination with the foregoing embodiments, it can be seen that the vehicle-mounted Bluetooth signal processing method provided by the present application compensates for the filtered field strength value sequence to ensure that there are sufficient field strength values in the field strength value sequence, thereby improving the success rate of positioning the Bluetooth terminal. Specifically, for the vacancies that are filtered out in the field strength value sequence after filtering and noise removal, the field strength value corresponding to the most recently received signal can be inserted into the vacancies of the field strength value sequence to complete the filtered field strength value sequence. However, if a signal loss is detected, the field strength value of the signal will not be calculated accordingly, and the number of field strength value sequences is also insufficient at this time. Therefore, in the case of a detected signal loss, the following measures can be taken to fill in the lost field strength values before filtering the field strength value sequence.
[0066] In one example, if the Bluetooth antenna detects that a signal is lost, the field strength value of a signal received before the lost signal is used as the field strength value of the lost signal.
[0067] Specifically, when the Bluetooth antenna detects that a signal is lost, the field strength value calculated from the signal received before the lost signal is searched, and the field strength value is used as the field strength value of the lost signal and added to the field strength value sequence. The position of adding to the field strength value sequence can be: after the field strength value of the signal received before the lost signal, or at the end of the field strength value sequence.
[0068] For example, if there is a vacancy after the field intensity value corresponding to the signal received before the lost signal, the field intensity value of the lost signal is filled in the vacancy. If there is no vacancy after the field intensity value corresponding to the signal received before the lost signal, the field intensity value of the lost signal is inserted at the end of the field intensity value sequence. It should be noted that if there is no vacancy after the field intensity value corresponding to the signal received before the lost signal, but there is a vacancy at other positions in the field intensity value sequence, then before the field intensity value of the lost signal is inserted into the end of the field intensity value sequence, all field intensity values after the vacancy are moved forward by one position so that the field intensity value of the lost signal can be inserted at the end of the field intensity value sequence.
[0069] In another example, if the Bluetooth antenna receives a new signal after detecting that a signal is lost, the field strength value of the new signal is used as the field strength value of the lost signal.
[0070] Based on the above embodiments, the Bluetooth antenna will receive the Bluetooth signal sent from the Bluetooth key within a preset period. The Bluetooth key will also send the Bluetooth signal to the Bluetooth antenna again in the next preset period, and the Bluetooth antenna will receive the new Bluetooth signal accordingly.
[0071] If a new signal sent by the Bluetooth key is received, the field strength value corresponding to the new signal is calculated. The field strength value corresponding to the new signal is used as the field strength value of the lost signal and added to the field strength value sequence. The position of adding to the field strength value sequence can be: after the field strength value of the signal received before the lost signal, or at the end of the field strength value sequence.
[0072] The description of the position where the field strength value of the new signal is added into the field strength value sequence can be found in the description of the above example, which will not be expanded here.
[0073] It should be noted that the above compensation algorithm can be used before filtering the field intensity value sequence or after filtering the field intensity value sequence. For example, if there are field intensity values of missing signals in the field intensity value sequence, there are vacancies in the field intensity value sequence itself. Filtering can still be performed to remove noise and obtain a filtered field intensity value sequence with vacancies. Based on the filtered field intensity value sequence with vacancies, the method of the above embodiment can be combined to compensate for the missing field intensity values and / or to complete the field intensity values of the missing signals.
[0074] In this embodiment, different compensation algorithms are adopted for the two situations in which the Bluetooth antenna detects signal loss. If signal loss is detected and no new signal is received, the field strength value of the signal received before the lost signal is used as the field strength value of the lost signal and is added to the field strength value sequence; if a new signal is received after the signal loss is detected, the field strength value of the received new signal is used as the field strength value of the lost signal and is added to the field strength value sequence. This avoids the problem that the subsequent final field strength value cannot be calculated due to signal loss.
[0075] Based on the above embodiments, it can be known that the Bluetooth antenna at the vehicle end will receive the signal sent by the Bluetooth key according to a preset period. In Bluetooth technology, the frequency for data transmission is usually divided into multiple channels, and data transmission is performed on different channels. Figure 3 Schematic diagram of the process of the vehicle-mounted Bluetooth signal processing method provided in this application Figure 2 As an example, the Bluetooth antenna can transmit data on different channels by the following steps:
[0076] Step 301: When the Bluetooth antenna receives a first signal sent by a Bluetooth terminal on a first channel, the Bluetooth antenna determines a channel hopping time according to a preset channel hopping period.
[0077] Step 302: After the channel jump time is reached, the Bluetooth antenna jumps to the second channel to wait for receiving the second signal sent from the Bluetooth terminal, wherein the second channel is different from the first channel.
[0078] The time interval between the channel hopping moment and the moment of receiving the first signal is smaller than the channel hopping period.
[0079] Step 303: After receiving the second signal on the second channel, perform channel hopping according to the channel hopping cycle.
[0080] It should be noted that the first channel can be a channel where a signal is received at any time, or a channel where a signal is received for the first time. The second channel is a different channel from the first channel. The vehicle end jumps from the first channel to a second channel different from the first channel through channel hopping, and waits to receive a signal sent from the Bluetooth terminal on the second channel.
[0081] In one example, taking the vehicle field as an application scenario, the Bluetooth terminal can be a Bluetooth key connected to the vehicle, and the Bluetooth key periodically sends a signal to the Bluetooth antenna. The Bluetooth key will jump the channel to send the signal according to the preset channel jump period. Specifically, the channel jump period can be any period value greater than 10ms, such as 20ms, 35ms, 44ms, and 50ms. It can be understood that the Bluetooth key first sends a first signal to the Bluetooth antenna on the first channel. Correspondingly, the Bluetooth antenna receives the first signal sent by the Bluetooth antenna on the first channel. Taking the channel jump period as 50ms as an example, when the interval time reaches 50ms after the Bluetooth key sends the first signal, it jumps to the second channel and sends the second signal to the Bluetooth antenna on the second channel. Correspondingly, when the Bluetooth antenna receives the first signal sent by the Bluetooth antenna on the first channel, the channel jump moment of the Bluetooth antenna is determined. Specifically, the channel jump moment of the Bluetooth antenna is determined according to the preset channel jump period, so that the time interval between the channel jump moment of the Bluetooth antenna and the moment when the Bluetooth antenna receives the first signal is less than the channel jump period. It can be understood that the channel hopping time of the Bluetooth antenna should be before the channel hopping time of the Bluetooth key.
[0082] For example, the channel hopping time of the Bluetooth antenna may be earlier than the channel hopping time of the Bluetooth key by a time interval, and the time interval may be any time interval less than or equal to 10 ms. For example, the channel hopping time of the Bluetooth antenna may be earlier than the channel hopping time of the Bluetooth key by 10 ms. Figure 4 Schematic diagram of channel switching timing of an exemplary Bluetooth antenna and a Bluetooth key, as shown in Figure 4 As shown, 10 ms before each channel jump of the Bluetooth key, the Bluetooth antenna will perform channel jump in advance, so that the Bluetooth antenna jumps to the channel that the Bluetooth key is about to jump into 10 ms in advance.
[0083] Furthermore, the channel hopping time of the Bluetooth antenna can be 10 ms earlier than the channel hopping time of the Bluetooth key through the following two methods.
[0084] In the first mode, when the Bluetooth antenna receives the first signal on the first channel, the Bluetooth antenna starts timing. When the timing reaches 40ms, the Bluetooth antenna performs a channel jump operation and jumps to the second channel. After waiting for 10ms on the second channel, the Bluetooth antenna receives the second signal sent from the Bluetooth key. When the Bluetooth antenna receives the second signal on the second channel, the Bluetooth antenna starts timing. When the timing reaches 40ms, the Bluetooth antenna performs a channel jump operation and jumps to the next channel.
[0085] In the second mode, the steps of the Bluetooth antenna jumping from the first channel to the second channel are the same as those in the first mode. However, when the Bluetooth antenna jumps to the second channel, the timing starts, and when the timing reaches 50ms, the Bluetooth antenna performs a channel jumping operation and jumps to the next channel.
[0086] It is understandable that in the above two methods, the interval for the Bluetooth antenna to jump from the first channel to the second channel can be 40ms, and the time interval for jumping from the second channel to the next channel can be 40ms or 50ms. If the timing starts from the moment when the Bluetooth antenna receives the second signal on the second channel, the time interval for jumping to the next channel can be set to 40ms; if the timing starts from the moment when the Bluetooth antenna jumps to the second channel, the time interval for jumping to the next channel can be set to 50ms.
[0087] It should be noted that in the application scenario of the vehicle field, the vehicle is equipped with a Bluetooth main module, and one or more Bluetooth antennas configured in the vehicle are connected to the Bluetooth main module. The Bluetooth antenna obtains communication information from the Bluetooth main module, and the communication information includes but is not limited to: the channel jump cycle of the Bluetooth key and the channel information that the Bluetooth key will jump to next time. The Bluetooth antenna obtains the channel jump cycle of the Bluetooth key, and determines the channel jump time of the Bluetooth antenna according to the channel jump cycle of the Bluetooth key; the Bluetooth antenna obtains the channel information that the Bluetooth key will jump to next time, and controls the Bluetooth antenna to jump to the channel that the Bluetooth key will jump to next time when the channel jump time is reached.
[0088] It should also be noted that the vehicle field is used as the application scenario in this embodiment. In this scenario, the Bluetooth terminal is not limited to the Bluetooth key. The Bluetooth terminal can also be an intelligent terminal device equipped with a Bluetooth sending function. Moreover, the actual application scenario of this embodiment is not limited to the vehicle field, but can also be applied to the intelligent health field, industrial production field, etc.
[0089] In this embodiment, the Bluetooth antenna and the Bluetooth key jump to the channel after sending and receiving the signal and then perform the next signal transmission, which can effectively reduce the interference of external factors on the signal transmission and improve the stability of the signal transmission process. The Bluetooth antenna jumps to the channel that the Bluetooth key jumps to next time one time period in advance of the Bluetooth key, waiting to receive the signal sent by the Bluetooth key. If there is an error in the jump time of the Bluetooth antenna, it may cause the signal reception to fail. The Bluetooth antenna performs channel hopping one time period in advance, which can improve the success rate of the Bluetooth antenna receiving the signal. Thereby ensuring the success rate of the subsequent Bluetooth key positioning according to the field strength value sequence.
[0090] Based on the above embodiments, it can be known that the Bluetooth antenna will perform the channel jump operation before the Bluetooth key jumps to the next channel to send the next signal, and jump to the channel in advance to wait for the signal to be received. This process requires the timing of the Bluetooth antenna. However, the timing of the Bluetooth antenna may have deviations. If there is a deviation at the moment of each channel jump, the deviation will become larger after multiple accumulations, which may still cause the Bluetooth antenna to fail to receive the signal. Therefore, the Bluetooth antenna needs to regularly calibrate the channel jump time.
[0091] As an example, when the number of channel hopping reaches a first preset number, or the number of signal reception reaches a second preset number, the next channel hopping time is determined based on the system clock, the time interval of each channel hopping and the channel hopping period.
[0092] The system clock can generate a system clock signal. The Bluetooth antenna can be configured with a channel jump clock signal and a system clock signal. The channel jump clock signal is used for timing so that the Bluetooth antenna can determine the channel jump time according to the channel jump period. Based on the two adjacent channel jump times, the actual time interval of the channel jump can be obtained. The system clock signal generated by the system clock does not perform other operations and is used to calibrate the channel jump clock.
[0093] In one example, when the number of channel jumps reaches a first preset number, the actual time interval of the most recent channel jump is compared with the channel jump period. If the actual time interval of the most recent channel jump is inconsistent with the channel jump period, the channel jump clock signal is calibrated by the system clock signal. The channel jump clock signal is synchronized with the system clock signal, and the next channel jump time is determined based on the synchronized channel jump clock signal. The value of the first preset number of times can be a positive integer greater than 1. For example, the first preset number of times can be set to 5 times.
[0094] Combined with the examples in the above examples, the channel jump period is 50ms, the channel jump time of the Bluetooth antenna is 10ms earlier than the channel jump time of the Bluetooth key, and the first preset number is set to 5 times. The Bluetooth antenna receives the first signal sent by the Bluetooth key on the first channel, and after 40ms, it performs the first channel jump operation and jumps to the second channel through the channel jump clock signal. Waiting for the second signal sent by the Bluetooth key on the second channel, after 10ms, the second signal is received. In addition, the channel jump clock signal is used to time, and 50ms after the first channel jump operation, the second channel jump operation is performed to jump to the third channel. Waiting for the third signal sent by the Bluetooth key on the third channel, after 10ms, the third signal is received. The channel jump clock signal is used to time, and 50ms after the second channel jump operation, the third channel jump operation is performed to jump to the fourth channel. Repeat the above steps until the fifth channel jump operation is completed, and compare the actual time interval of the most recent channel jump with the channel jump period. The actual time interval of the most recent channel hopping is the time interval between the Bluetooth antenna performing the fifth channel hopping operation and performing the fourth channel hopping operation.
[0095] If the time interval between the fifth channel hopping operation and the fourth channel hopping operation performed by the Bluetooth antenna is inconsistent with 50ms, the channel hopping clock signal is calibrated by the system clock signal to synchronize the channel hopping clock signal with the system clock signal, and based on the synchronized channel hopping clock signal, the time to perform the sixth channel hopping operation is determined so that the time interval between the sixth channel hopping operation and the fifth channel hopping operation performed by the Bluetooth antenna is 50ms.
[0096] In another example, when the number of received signals reaches the second preset number of times, the actual time interval of the most recent channel jump is compared with the channel jump period. If the actual time interval of the most recent channel jump is inconsistent with the channel jump period, the channel jump clock signal is calibrated by the system clock signal. The channel jump clock signal is synchronized with the system clock signal, and the next channel jump time is determined based on the synchronized channel jump clock signal. The value of the second preset number of times can be a positive integer greater than 1. For example, the second preset number of times can be set to 5 times.
[0097] Combined with the examples in the above examples, the channel jump period is 50ms, the channel jump time of the Bluetooth antenna is 10ms ahead of the channel jump time of the Bluetooth key, and the second preset number is set to 5 times. The Bluetooth antenna receives the first signal sent by the Bluetooth key on the first channel, and after 40ms, it performs the first channel jump operation and jumps to the second channel through the channel jump clock signal. Waiting for the second signal sent by the Bluetooth key on the second channel, after 10ms, the second signal is received. In addition, the channel jump clock signal is used to time, and after 40ms from the receipt of the second signal, the second channel jump operation is performed to jump to the third channel. Waiting for the third signal sent by the Bluetooth key on the third channel, after 10ms, the third signal is received. The channel jump clock signal is used to time, and after 40ms from the receipt of the third signal, the third channel jump operation is performed to jump to the fourth channel. Repeat the above steps until the fifth signal is received, and compare the actual time interval of the most recent channel jump with the channel jump period. The actual time interval of the most recent channel jump is the time interval between the Bluetooth antenna receiving the fourth signal and performing the fourth channel jump operation.
[0098] If the time interval between the Bluetooth antenna receiving the fourth signal and performing the fourth channel hopping operation is inconsistent with 40ms, the channel hopping clock signal is calibrated by the system clock signal to synchronize the channel hopping clock signal with the system clock signal, and based on the synchronized channel hopping clock signal, the time to perform the fifth channel hopping operation is determined so that the time interval between the Bluetooth antenna performing the fifth channel hopping operation and receiving the fifth signal is 40ms.
[0099] It should be noted that the first preset number of times and the second preset number of times may be the same number of times or different numbers of times.
[0100] It should also be noted that in actual applications, it is possible that the actual time interval of the most recent channel jump is the same as the channel jump period, but the actual time intervals of other channel jumps are inconsistent with the channel jump period. Therefore, the actual time interval of each channel jump and the channel jump period can also be compared during multiple channel jumps or multiple signal reception processes. If the actual time interval of any channel jump is inconsistent with the channel jump period, the above-mentioned operation of synchronizing the channel jump clock signal through the system clock signal is performed.
[0101] Furthermore, combined with Figure 4It can be seen that the time intervals for channel hopping are different due to the different starting points of the time interval timing. If the timing starts from the moment when the Bluetooth antenna receives the second signal on the second channel, the time interval for channel hopping is 40ms. Therefore, when comparing, the actual time interval for channel hopping is compared with 40ms. If the timing starts from the moment when the Bluetooth antenna jumps to the second channel, the time interval for jumping to the next channel is 50ms. Therefore, when comparing, the actual time interval for channel hopping is compared with 50ms.
[0102] In this embodiment, the actual time interval of channel hopping is compared with the channel hopping period according to a certain rule to see if they are consistent. If they are inconsistent, the channel hopping clock signal is calibrated by the system clock signal. The channel hopping clock signal is synchronized with the system clock signal to ensure that the time interval formed by the time of the next channel hopping after calibration and the time of the adjacent channel hopping is consistent with the channel hopping period. This avoids interference with the signal hopping clock due to the execution of channel hopping, and further improves the success rate of the Bluetooth antenna receiving signals.
[0103] In combination with the foregoing embodiments, it can be known that the data transmission between the Bluetooth antenna and the Bluetooth key is carried out in different channels. During the data transmission process, it is still possible that the Bluetooth antenna does not receive the signal sent by the Bluetooth key due to various external factors. For example, due to interference in the communication link, the Bluetooth antenna does not receive the signal; due to the failure of the Bluetooth key and / or the Bluetooth antenna to jump to the channel, the Bluetooth antenna does not receive the signal, etc. For various situations that may cause the Bluetooth antenna to fail to receive the signal, remedial measures can be taken through the Bluetooth antenna. This embodiment describes the remedial measures for the Bluetooth antenna not receiving the signal.
[0104] As an example, if the Bluetooth antenna detects signal loss, the target channel for the next jump is determined.
[0105] The target channel is the Nth channel after the channel where the signal is received last time, where N is a positive integer greater than 1, or the target channel is the Mth channel after the current channel, where M is a positive integer.
[0106] In one example, if the Bluetooth antenna detects that the signal is lost, the target channel for the next jump is determined. The target channel for the next jump is determined to be the Nth channel after the channel where the signal was received last time. Wherein, N is a positive integer greater than 1. For example, the value of N can be 3, 5, or 10.
[0107] In combination with the actual application examples in the vehicle field, take N as an example with a value of 5. If the Bluetooth antenna jumps to the second channel and waits for receiving signals on the second channel, the channel jump time to jump to the third channel is determined according to the channel jump period. If no signal is received on the second channel when the channel jump time is reached, it is determined that the signal is lost. When the channel jump time is reached, the Bluetooth antenna jumps from the second channel to the sixth channel. It can be understood that the channel on which the Bluetooth antenna last received a signal is the first channel, and the fifth channel after the first channel is the sixth channel. The Bluetooth antenna jumps directly from the second channel to the sixth channel, and waits for the signal sent by the Bluetooth key on the sixth channel.
[0108] In another example, if the Bluetooth antenna detects that the signal is lost, the target channel for the next jump is determined. The target channel for the next jump is determined to be the Mth channel after the current channel. Wherein, M is a positive integer. For example, the value of M can be 3, 5, or 10.
[0109] Combined with the actual application examples in the vehicle field, take M as an example with a value of 3. If the Bluetooth antenna jumps to the second channel and waits for receiving signals on the second channel, the channel jump time to jump to the third channel is determined according to the channel jump period. If no signal is received on the second channel when the channel jump time is reached, it is determined that the signal is lost. When the channel jump time is reached, the Bluetooth antenna jumps from the second channel to the fifth channel. It can be understood that the Bluetooth antenna is currently on the second channel, and the third channel after the second channel is the fifth channel. The Bluetooth antenna jumps directly from the second channel to the fifth channel, waiting for the signal sent by the Bluetooth key on the fifth channel.
[0110] Correspondingly, if the Bluetooth antenna receives a signal within the preset channel hopping period in the current channel, the time for the next channel hopping operation is determined according to the channel hopping period, and the next hopping channel is still the next channel of the current channel.
[0111] In this embodiment, if the Bluetooth antenna detects that the signal is lost, when the channel jump time is reached, it jumps to the Nth channel after the channel where the signal was received last time, or the Mth channel after the current channel, and waits to receive the signal from the Bluetooth key on this channel. This remedial measure can quickly adjust the channel of the Bluetooth antenna so that the Bluetooth antenna can receive the signal sent by the Bluetooth key again, avoiding continuous signal loss, further improving the success rate of the Bluetooth antenna detecting the Bluetooth signal, and thus improving the stability of Bluetooth signal transmission.
[0112] Based on any of the foregoing embodiments, the Bluetooth antenna will receive multiple signals on different channels, and the strength of the signals is reflected by the field strength value. The Bluetooth antenna is equipped with a built-in processor, and the processor can calculate each signal to obtain the field strength value corresponding to each signal. Multiple field strength values can be obtained based on multiple Bluetooth signals, that is, the field strength value sequence mentioned in the foregoing embodiments. After Gaussian filtering the field strength value sequence and compensating for the missing field strength values, a compensated field strength value sequence is obtained. The positioning of the Bluetooth terminal can be achieved based on the compensated field strength value sequence. This embodiment explains how to locate the Bluetooth terminal based on the compensated field strength value sequence.
[0113] As an example, Figure 5 Schematic diagram of the process of the vehicle-mounted Bluetooth signal processing method provided in this application Figure 3 ,like Figure 5 As shown, the method may further include:
[0114] Step 501: Calculate the median and average values of multiple field strength values in the compensated field strength value sequence.
[0115] Specifically, for the multiple field intensity values in the filtered field intensity value sequence, medians of the multiple field intensity values are calculated, and an average value of the multiple field intensity values is calculated.
[0116] Step 502: Determine the final field strength value based on the median value and the average value.
[0117] Exemplarily, the mean of the median and the average is calculated to obtain the final field strength value.
[0118] Based on the median value of the multiple field strength values and the average value of the multiple field strength values, the calculated median value and the average value are averaged to obtain a final field strength value.
[0119] It should be noted that the final field strength value can also be obtained by calculating the median and the average value in other ways. For example, weighted summation of the median and the average value is performed, wherein the sum of the weight assigned to the median and the weight assigned to the average value is 1.
[0120] In actual applications, since the channel hopping and signal transmission of the Bluetooth antenna and the Bluetooth key are continuous, the field strength value obtained by the Bluetooth antenna is also continuous. However, the field strength value sequence is limited by the filter depth. When a new field strength value is added to the field strength value sequence, the first field strength value of the field strength value sequence is removed, and all subsequent field strength values are moved forward by one position, and the new field strength value is added to the end of the field strength value sequence to obtain a new field strength value sequence. The median and average values are calculated for multiple field strength values in the new field strength value sequence, and the new final field strength value is obtained based on the median and average values.
[0121] By repeating the above operation, multiple final field strength values can be obtained.
[0122] Step 503: Use the final field strength value to locate the Bluetooth terminal.
[0123] Optionally, the Bluetooth antenna sends the final field strength value to the Bluetooth main module, laying the foundation for the subsequent Bluetooth main module to determine the location of the Bluetooth key according to the change of the final field strength value. It should be pointed out that in the application scenario of the vehicle field, the vehicle will be equipped with multiple Bluetooth antennas. The above embodiments are all described as examples of one of the Bluetooth antennas communicating with the Bluetooth terminal (Bluetooth key). In actual applications, multiple Bluetooth antennas will communicate with the Bluetooth terminal. It can be understood that each Bluetooth antenna will calculate multiple final field strength values and connect to the Bluetooth main module. The Bluetooth main module can locate the Bluetooth terminal based on the change trend of multiple final field strength values calculated by each Bluetooth antenna. That is, the closer the Bluetooth key is to the vehicle, the change trend of multiple final field strength values is gradually enhanced; the farther the Bluetooth key is from the vehicle, the change trend of multiple final field strength values is gradually weakened.
[0124] In this embodiment, the median and average operations are performed on the compensated field intensity value sequence, and then the final field intensity value is calculated by the median and average. The noise in the signal can be effectively removed to prevent the occurrence of excessively strong field intensity values or excessively weak field intensity values. The accuracy of the final field intensity value calculation is improved. Furthermore, the final field intensity value is calculated by the median and average, which can timely reflect the change of the final field intensity value while ensuring that the change of the final field intensity value does not produce a large fluctuation, thereby improving the authenticity of the final field intensity value in reflecting the strength of the signal.
[0125] The vehicle-mounted Bluetooth signal processing method provided by the embodiment of the present application, on the one hand, receives the Bluetooth signal within a preset period through the Bluetooth antenna, and calculates the field strength value respectively to obtain a field strength value sequence, and performs Gaussian filtering on the field strength value sequence, and compensates for the missing field strength values after filtering, so as to ensure that there are enough field strength values in the compensated field strength value sequence, thereby avoiding the problem of being unable to locate the Bluetooth terminal due to insufficient number of field strength values in the field strength value sequence, and improving the success rate of Bluetooth terminal positioning. The Bluetooth antenna jumps to the next channel a period of time ahead of the Bluetooth key according to the preset channel jump cycle to wait for receiving the signal sent by the Bluetooth key. In addition, the channel jump signal is periodically calibrated according to the system clock signal so that the time when the adjacent channels of the Bluetooth antenna are aligned is a fixed value. The stability of Bluetooth signal transmission is improved, and the success rate of the Bluetooth antenna detecting the Bluetooth signal is improved. If the Bluetooth antenna does not detect the Bluetooth signal, or the Bluetooth signal is lost, the Bluetooth antenna will no longer jump to the next adjacent channel, and jumps at intervals of one or more channels, and uses a signal compensation algorithm to make up the field strength value of the lost signal. Prevent continuous loss of Bluetooth signals, and further improve the success rate of the Bluetooth antenna detecting Bluetooth signals. This indirectly improves the success rate of Bluetooth terminal positioning.
[0126] On the other hand, the median average method is used to calculate the field strength value sequence after Gaussian filtering to obtain the final field strength value, which reduces the fluctuation of the field strength value, improves the accuracy of the final field strength value calculation, and indirectly improves the accuracy of Bluetooth terminal positioning.
[0127] An embodiment of the present application provides a vehicle-mounted Bluetooth signal processing device. Figure 6 This is a schematic diagram of the structure of the vehicle-mounted Bluetooth signal processing device provided in this application. Figure 6 As shown, the vehicle-mounted Bluetooth signal processing device 60 includes: a processing module 601.
[0128] The processing module 601 is used to calculate a field strength value sequence according to the signal sent by the Bluetooth terminal received within a preset period;
[0129] The processing module 601 is further used to perform Gaussian filtering on the field intensity value sequence to obtain a filtered field intensity value sequence;
[0130] The processing module 601 is further used to compensate for the missing field intensity values in the filtered field intensity value sequence to obtain a compensated field intensity value sequence.
[0131] In an optional manner, compensation processing is performed on the missing field intensity values in the filtered field intensity value sequence to obtain a compensated field intensity value sequence. The processing module 601 is specifically used to:
[0132] The target field strength value is used to compensate for the missing field strength values in the filtered field strength value sequence to obtain a compensated field strength value sequence;
[0133] The target field strength value is a field strength value adjacent to a missing field strength value in the filtered field strength value sequence.
[0134] In an optional manner, in the process of receiving the Bluetooth signal sent by the Bluetooth terminal, the processing module 601 is further used to:
[0135] If signal loss is detected, the field strength value of the signal received before the lost signal is used as the field strength value of the lost signal;
[0136] or,
[0137] If a new signal is received after a signal loss is detected, the field strength value of the new signal is used as the field strength value of the lost signal.
[0138] In an optional manner, in the process of receiving a signal sent by a Bluetooth terminal through different channels, the processing module 601 is further used to:
[0139] When receiving a first signal sent by a Bluetooth terminal on a first channel, determining a channel hopping time according to a preset channel hopping cycle;
[0140] After reaching the channel jump time, jump to the second channel to wait for receiving the second signal sent from the Bluetooth terminal, the second channel is different from the first channel;
[0141] The time interval between the channel hopping moment and the moment of receiving the first signal is smaller than the channel hopping period.
[0142] In an optional manner, the processing module 601 is further configured to:
[0143] After receiving the second signal on the second channel, channel hopping is performed according to the channel hopping cycle.
[0144] In an optional manner, the processing module 601 is further configured to:
[0145] When the number of channel hopping reaches a first preset number, or the number of signal reception reaches a second preset number, the next channel hopping time is determined according to the system clock, the time interval of each channel hopping and the channel hopping cycle.
[0146] In an optional manner, the processing module 601 is further configured to:
[0147] If signal loss is detected, the target channel for the next jump is determined;
[0148] The target channel is the Nth channel after the channel where the signal was received last time, and N is a positive integer greater than 1; or,
[0149] The target channel is the Mth channel after the current channel, where M is a positive integer.
[0150] In an optional manner, the processing module 601 is further configured to:
[0151] Calculating a median and an average value for a plurality of field strength values in the compensated field strength value sequence;
[0152] Based on the median and average values, the final field strength value is determined;
[0153] The final field strength value is used to locate the Bluetooth terminal.
[0154] In an optional manner, the final field strength value is determined according to the median value and the average value, and the processing module 601 is specifically used to:
[0155] Calculate the mean of the median and average values to get the final field strength value.
[0156] The above-mentioned vehicle-mounted Bluetooth signal processing device can execute the vehicle-mounted Bluetooth signal processing method provided in the above-mentioned embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0157] An embodiment of the present application provides an electronic device, Figure 7 This is a schematic diagram of the structure of the electronic device provided in this application. The embodiments of this application do not limit the specific implementation of the electronic device.
[0158] like Figure 7 As shown, the electronic device 70 may include: a processor 701, a memory 702, a communications interface 703 and a communications bus 704. The processor 701, the memory 702 and the communications interface 703 communicate with each other via the communications bus 704.
[0159] The processor 701 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0160] The memory 702 is used to store a program 705. The program 705 may include program codes, which include computer executable instructions.
[0161] The memory 702 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0162] The communication interface 703 is used to communicate with other devices such as a client or a network element of another server, etc. The processor 701 is used to execute a program 705, and specifically can execute the relevant steps of the above method embodiment.
[0163] The communication bus 704 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0164] The electronic device is used to execute the vehicle-mounted Bluetooth signal processing method provided by any of the above method embodiments. The implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0165] An embodiment of the present application provides a computer-readable storage medium, in which at least one executable instruction is stored. When the executable instruction is executed on an electronic device, the electronic device executes the in-vehicle Bluetooth signal processing method provided by any of the above method embodiments.
[0166] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory, electrically erasable programmable read-only memory, erasable programmable read-only memory, programmable read-only memory, read-only memory, magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0167] Optionally, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0168] An embodiment of the present application provides a computer program product, which includes a computer program. The computer program is stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, it can implement the in-vehicle Bluetooth signal processing method provided by any of the above method embodiments.
[0169] The algorithms or displays provided by the embodiments of the present application are not inherently related to any specific computer, virtual system or other device. In addition, the embodiments of the present application are not directed to any specific programming language.
[0170] In the specification provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. Similarly, in order to simplify the application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the embodiments of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are thus clearly incorporated into the specific embodiment, wherein each claim itself is used as a separate embodiment of the application.
[0171] Those skilled in the art will appreciate that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components in the embodiment can be combined into one module or unit or component, and can be divided into multiple sub-modules or sub-units or sub-components.
[0172] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be constructed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
[0173] The serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above are only preferred embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A vehicle-mounted Bluetooth signal processing method, characterized in that: Applied to a vehicle, the method comprises: Calculate and obtain a sequence of field strength values based on signals sent by the Bluetooth terminal received within a preset period; Performing Gaussian filtering on the field intensity value sequence to obtain a filtered field intensity value sequence; Compensation processing is performed on the missing field intensity values in the filtered field intensity value sequence to obtain a compensated field intensity value sequence.
2. The method according to claim 1, characterized in that: The compensating the missing field intensity values in the filtered field intensity value sequence to obtain a compensated field intensity value sequence includes: Compensating the missing field intensity values in the filtered field intensity value sequence with the target field intensity value to obtain a compensated field intensity value sequence; The target field strength value is a field strength value adjacent to the missing field strength value in the filtered field strength value sequence.
3. The method according to claim 1 or 2, characterized in that: In the process of receiving the Bluetooth signal sent by the Bluetooth terminal, the method further includes: If signal loss is detected, the field strength value of the signal received before the lost signal is used as the field strength value of the lost signal; or, If a new signal is received after the signal loss is detected, the field strength value of the new signal is used as the field strength value of the lost signal.
4. The method according to claim 1 or 2, characterized in that: In the process of receiving the signal sent by the Bluetooth terminal through different channels, the method further includes: When receiving a first signal sent by a Bluetooth terminal on a first channel, determining a channel hopping time according to a preset channel hopping cycle; After reaching the channel jump time, jump to the second channel to wait for receiving the second signal sent from the Bluetooth terminal, the second channel is different from the first channel; The time interval between the channel hopping moment and the moment of receiving the first signal is smaller than the channel hopping period.
5. The method according to claim 4, characterized in that The method further comprises: After the second channel receives the second signal, channel hopping is performed according to the channel hopping cycle.
6. The method according to claim 4, characterized in that The method further comprises: When the number of channel hopping reaches a first preset number, or the number of signal reception reaches a second preset number, the next channel hopping time is determined according to the system clock, the time interval of each channel hopping and the channel hopping period.
7. The method according to claim 4, characterized in that The method further comprises: If signal loss is detected, the target channel for the next jump is determined; The target channel is the Nth channel after the channel where the signal was received last time, and N is a positive integer greater than 1; or The target channel is the Mth channel after the current channel, where M is a positive integer.
8. The method according to claim 1 or 2, characterized in that: The method further comprises: Calculating a median and an average value for a plurality of field strength values in the compensated field strength value sequence; Determining a final field strength value according to the median value and the average value; The final field strength value is used to locate the Bluetooth terminal.
9. The method according to claim 8, characterized in that Determining a final field strength value according to the median value and the average value includes: The average of the median value and the average value is calculated to obtain the final field strength value.
10. An electronic device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the method according to any one of claims 1 to 9.