Signal processing method and electronic equipment

Through multi-channel parallel scanning and processing, the problem of low channel scanning efficiency of Bluetooth devices is solved, and faster connection establishment speed is achieved.

CN119277479APending Publication Date: 2025-01-07SHANGHAI GLORY SMART TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411113718.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

Existing Bluetooth devices have low channel scanning efficiency, resulting in a long process of determining paging signals and slow connection establishment speed.

Method used

By adopting the multi-channel parallel scanning method, the Bluetooth signals of M channels are scanned in parallel, and the signals from M channels are processed in parallel, to determine whether the target channel is included, and if there is a connection, a connection is established.

Benefits of technology

Significantly improves channel scanning speed and connection establishment speed, reduces the time required for paging signal determination, and improves the efficiency of Bluetooth connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119277479A_ABST
    Figure CN119277479A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a signal processing method and electronic equipment, and relates to the technical field of communication. The method is used for improving the channel scanning efficiency. The method comprises the following steps of: scanning Bluetooth signals in M channels in parallel in a one-time channel scanning process of Bluetooth; m is an integer greater than or equal to 2, and M is less than or equal to the total number of Bluetooth channels; performing signal processing on the Bluetooth signal scanned from the M channels, and determining whether the M channels comprise a target channel where the paging signal is located; and if the M channels comprise the target channel, establishing a Bluetooth connection with a paging device sending a paging signal based on the paging signal received in the target channel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a signal processing method and an electronic device. Background Art

[0002] Common classic Bluetooth can include two modes: basic rate (BR) and enhanced data rate (EDR). For 2.4 GHz BR / EDR Bluetooth channels, each channel bandwidth is 1 megahertz (MHz), the interval between channels is 1MHz, and there are 79 channels in total.

[0003] In the related art, the efficiency of electronic devices in performing Bluetooth channel scanning is low. Summary of the invention

[0004] The embodiments of the present application provide a signal processing method and an electronic device for improving the efficiency of channel scanning.

[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, a signal processing method is provided, the method comprising:

[0007] In a channel scanning process for Bluetooth, Bluetooth signals in M ​​channels are scanned in parallel. It should be noted that M is an integer greater than or equal to 2, and M is less than or equal to the total number of Bluetooth channels. In this way, the speed of channel scanning is greatly improved, the time required for determining the paging signal is reduced, and the scanning efficiency is improved. After the channel scanning, the Bluetooth signals scanned from the M channels can be processed to determine whether the M channels include the target channel where the paging signal is located. If the M channels include the target channel, a Bluetooth connection is established with the paging device that sends the paging signal based on the paging signal received on the target channel. In this solution, performing multi-channel parallel scanning can reduce the time required for the electronic device to establish a Bluetooth connection with the paging device as a paging scanning device, and improve the speed of establishing a Bluetooth connection.

[0008] In a possible implementation manner of the first aspect, the Bluetooth is specifically classic Bluetooth BR / EDR, and the total number of Bluetooth channels is 79.

[0009] In a possible implementation of the first aspect, the electronic device includes a mixer, an analog-to-digital conversion unit, n frequency shift units, 1 or n filter units, and 1 or n synchronization units. Where n≥M. In this solution, the above-mentioned signal processing of the Bluetooth signal scanned from the M channels to determine whether the M channels include the target channel where the paging signal is located may specifically include:

[0010] The Bluetooth signals scanned from the M channels are down-converted by the mixer, and the down-converted signals are converted into digital signals by the analog-to-digital conversion unit to obtain digital signals. Since the Bluetooth signals of the M channels are scanned in parallel, the digital signals can be frequency-shifted by the M frequency-shifting units among the n frequency-shifting units. It should be noted that the frequency-shifting lengths of different frequency-shifting units are different. In this way, by performing frequency-shifting processing based on different frequency-shifting lengths by different frequency-shifting units, M signals with different center frequencies can be obtained, so that the Bluetooth signals of different channels can be filtered out by filtering processing later. Then, the digital signals after the frequency-shifting processing are filtered by the filtering unit. Finally, the signal after the filtering processing is synchronized by the synchronization unit to determine whether the M channels include the target channel.

[0011] In a possible implementation of the first aspect, different frequency shift units can specifically set corresponding frequency shift lengths based on the channel centers after down-conversion processing of different channels. For example, taking M=4 as an example, the Bluetooth signals obtained by performing channel scanning on the 1st to 4th channels, after being processed by the mixer and the analog-to-digital conversion unit, the channel centers corresponding to the 1st to 4th channels are: -1.5MHz, -0.5MHz, 0.5MHz, 1.5MHz. The frequency shift lengths set in the 4 frequency shift units can be set based on the channel centers corresponding to the 1st to 4th channels. Specifically, the frequency shift lengths of the 1st to 4th frequency shift units can be set to +1.5MHz, +0.5MHz, -0.5MHz, -1.5MHz.

[0012] In a possible implementation of the first aspect, in the above scheme, if the electronic device includes n filter units, the digital signals after the frequency shift processing output by each of the M frequency shift units can be filtered through M filter units among the n filter units. One filter unit performs filtering processing on one channel of signals. In this way, not only can the M signals be processed in parallel to improve the processing efficiency, but also each filter unit performs filtering processing on one channel of digital signals after frequency shift processing to obtain M channels of signals. Among them, due to the frequency shift processing, the Bluetooth signals scanned from the M channels have been processed into signals whose center frequencies of different channels are moved to zero frequency. Therefore, through filtering processing, the Bluetooth signals scanned in each channel can be filtered out. That is, the signal output by each of the above-mentioned M filter units corresponds to one channel.

[0013] In a possible implementation of the first aspect, in the above solution, if the electronic device includes a filtering unit, the filtering unit can be used to filter the M channels of signals after the frequency shift processing. As an example, the filtering unit can filter one channel of signals each time, that is, the filtering unit performs filtering processing multiple times to filter the M channels of signals after the frequency shift processing, and M channels of filtered signals can be obtained.

[0014] As another example, the electronic device includes a filtering unit, and the electronic device can also add a superposition processing unit before the filtering unit, and the superposition processing unit performs superposition processing on the M-channel signals after the frequency shift processing to obtain a superposition signal. In this way, the filtering unit can realize the filtering processing of the one-channel signal after the frequency shift processing. Moreover, compared with the method of performing multiple filtering processes through one filtering unit, this solution can achieve the effect of filtering the M-channel signals after the frequency shift processing through one filtering process. It can improve the processing efficiency.

[0015] Furthermore, in a scheme where a superposition processing unit is added to superimpose the M signals after the frequency shift processing into one signal and then perform filtering processing, the electronic device can also complete the sync processing of the one signal after the filtering processing through only one synchronization unit. In this way, the computing resources of the electronic device can be saved.

[0016] In a possible implementation of the first aspect, the electronic device further includes: 1 or n downsampling units. 1 or n downsampling units are arranged between n frequency shifting units and 1 or n filtering units. After the digital signal is subjected to frequency shifting processing by M frequency shifting units among the n frequency shifting units, the method further includes: performing downsampling processing on the digital signal subjected to frequency shifting processing by the downsampling unit. Among them, performing synchronous sync processing on the digital signal subjected to frequency shifting processing by the filtering unit specifically refers to: performing filtering processing on the signal subjected to downsampling processing by the filtering unit. In this scheme, adding a downsampling unit can reduce the sampling rate, reduce the signals that need to be processed subsequently, and improve the processing efficiency.

[0017] In a possible implementation of the first aspect, the electronic device further includes a superposition processing unit, and the superposition processing unit is arranged between the filtering unit and the synchronization unit. In this scheme, the electronic device includes n downsampling units, n filtering units and 1 synchronization unit. After the signal after the frequency shift processing is filtered by the filtering unit, the method also includes: superposition processing is performed on the signal after the filtering processing by the superposition processing unit to obtain a first superposition signal. Among them, the signal after the filtering processing is sync processed by the synchronization unit, including: sync processing is performed on the first superposition signal by the synchronization unit. By adding a superposition processing unit, M signals after frequency shift processing, downsampling processing and filtering processing are superimposed into one signal. Therefore, only one synchronization unit is needed to perform sync processing on the Bluetooth signal scanned from M channels. In addition, the computing resources of the electronic device can be saved.

[0018] In a possible implementation of the first aspect, the electronic device further includes a superposition processing unit, and the superposition processing unit is arranged between the downsampling unit and the filtering unit. In this solution, the electronic device includes n downsampling units, 1 filtering unit and 1 synchronization unit. In this solution, after the digital signal after the frequency shift processing is downsampled by the downsampling unit, the method further includes: superposition processing the signal after the downsampling processing by the superposition processing unit to obtain a second superposition signal. Among them, filtering the signal after the frequency shift processing by the filtering unit specifically refers to: filtering the second superposition signal by the filtering unit. In this solution, the electronic device only needs one filtering unit and one synchronization unit, which can save the computing resources of the electronic device.

[0019] It can be understood that in this scheme, since the M-way signal has been superimposed and processed into one signal before the filtering process, the signal output by the filtering unit is one signal. Correspondingly, the electronic device can also complete the process of sync processing the signal after filtering through one synchronization unit. Since the sync processing can determine whether the channel corresponding to the signal input to the synchronization unit is the target channel, and in this scheme, the signal input to the synchronization unit is obtained by superimposing M-way signals. Then in this scheme, the result of the synchronization unit performing the sync processing represents whether there is a target channel among the M channels corresponding to this signal input to the synchronization unit. Therefore, in this scheme, if the result of the synchronization unit performing the sync processing represents that there is a target channel among the M channels, it is necessary to further determine which channel among the M channels is the target channel.

[0020] In a possible implementation of the first aspect, the electronic device further includes a superposition processing unit, and the superposition processing unit is arranged between the frequency shift unit and the downsampling unit. In this solution, the electronic device includes 1 downsampling unit, 1 filtering unit and 1 synchronization unit. After the digital signal is subjected to frequency shift processing by M frequency shift units among the n frequency shift units, the method further includes: superposition processing is performed on the digital signal subjected to frequency shift processing by the superposition processing unit to obtain a third superposition signal. Among them, the downsampling processing of the digital signal subjected to frequency shift processing by the downsampling unit may specifically include: downsampling processing of the third superposition signal by the downsampling unit. In this solution, the electronic device only needs one downsampling unit, one filtering unit and one synchronization unit, which can save the computing resources of the electronic device.

[0021] It can be understood that in this scheme, since the M-channel signals have been superimposed and processed into one channel before the downsampling process, the signal output by the downsampling unit is one channel. Correspondingly, the electronic device can also complete the process of filtering and sync processing the downsampled signal through one filtering unit and one synchronization unit. Since the sync processing can determine whether the channel corresponding to the signal input to the synchronization unit is the target channel, and in this scheme, the signal input to the synchronization unit is obtained by superimposing M channels of signals. Then in this scheme, the result of the synchronization unit performing the sync processing represents whether there is a target channel in the M channels corresponding to this channel of the signal input to the synchronization unit. Therefore, in this scheme, if the result of the synchronization unit performing the sync processing represents that there is a target channel in the M channels, it is necessary to further determine which channel of the M channels is the target channel.

[0022] In a possible implementation of the first aspect, if the electronic device includes a superposition processing unit, the method further includes: if it is determined through the synchronization unit that the M channels include a target channel, obtaining the signal strength indicator values ​​RSSI corresponding to the M channels respectively. The channel with the largest RSSI among the M channels is determined as the target channel. In this way, even if the synchronization unit performs sync processing on the signal obtained by superposition processing of multiple signals, the target channel can still be determined.

[0023] In a possible implementation of the first aspect, a sync processing process of any synchronization unit includes: obtaining one or more candidate access codes. The synchronization unit performs sync processing on a signal input to the synchronization unit based on the one or more candidate access codes. That is, when the synchronization unit performs sync processing, one candidate access code can be used to perform sync processing each time.

[0024] Alternatively, when the synchronization unit performs the sync process, multiple candidate access codes may be used to perform the sync process each time. Using multiple candidate access codes to perform the sync process each time can improve the efficiency of the sync process, thereby improving the efficiency of establishing the Bluetooth connection.

[0025] It can be understood that the signal input to the synchronization unit can be one of the M signals scanned from the M channels, that is, a signal without superposition processing, or it can be a signal obtained after superposition processing of the M signals scanned from the M channels.

[0026] In a possible implementation of the first aspect, sync processing is performed on the signal of the input synchronization unit based on a candidate access code by the synchronization unit, which can specifically include: performing correlation analysis on the candidate access code and the signal of the input synchronization unit by the synchronization unit. In the result obtained by the correlation analysis, if the correlation peak meets the preset conditions, it indicates that the candidate access code matches the channel corresponding to the signal of the input synchronization unit, which means that the channel corresponding to the signal of the input synchronization unit includes the target channel. If the signal of the input synchronization unit is a signal that has not been superimposed, the correlation peak meets the preset conditions, indicating that the channel corresponding to the signal of the input synchronization unit is the target channel. If the signal of the input synchronization unit is a signal that has been superimposed, the correlation peak meets the preset conditions, indicating that the multiple channels corresponding to the signal of the input synchronization unit include the target channel.

[0027] In a possible implementation of the first aspect, the synchronization unit performs sync processing on the signal of the input synchronization unit based on multiple (such as A) candidate access codes, that is, each time the synchronization unit selects multiple candidate access codes to perform correlation analysis with the signal of the input synchronization unit. It can be understood that in this scheme, the result obtained by the synchronization unit performing sync processing should include the results obtained by the correlation analysis of the A candidate access codes with the signal of the input synchronization unit respectively. If there is a candidate access code that matches the signal of the input synchronization unit among the A candidate access codes, which is recorded as the target access code, the synchronization unit can also determine which candidate access code among the A candidate access codes the target access code is. In this scheme, the synchronization unit selects multiple candidate access codes to perform sync processing each time, which can improve the efficiency of sync processing and reduce the time required for sync processing. Thereby, the speed of finding the target channel is improved, and then the speed of establishing the connection is improved.

[0028] In a possible implementation manner of the first aspect, the access code includes a synchronization sequence, and the synchronization sequence is generated by a low addressing part LAP of a Bluetooth address.

[0029] In a possible implementation of the first aspect, the electronic device stores multiple LAPs, which are recorded as local LAPs. In this solution, the obtaining of a candidate access code may specifically include: obtaining a local LAP, and generating a corresponding candidate access code based on the local LAP.

[0030] In another possible implementation of the first aspect, the electronic device stores multiple LAPs, which are recorded as local LAPs. In this solution, the above-mentioned obtaining N candidate access codes may specifically include: obtaining N local LAPs, and generating corresponding N candidate access codes based on the N local LAPs.

[0031] In a possible implementation of the first aspect, the method further includes: if the target channel is not included in the M channels, the next channel scan is performed, and the Bluetooth signal obtained by the next channel scan is subjected to signal processing. That is, in this solution, after performing a multi-channel parallel scan, the signal obtained by the channel scan is first subjected to signal processing to determine whether the target channel exists in the channels covered by this channel scan. If not, the next multi-channel parallel scan is performed to scan the remaining channels. In this way, if it is determined that the target channel is found in the Bluetooth signal obtained by one of the channel scans, the electronic device may no longer scan the remaining unscanned channels. Compared with the technical solution of scanning the Bluetooth signals of all channels and determining the target channel from all channels, the time required for scanning and processing the Bluetooth signal can be further reduced, and the speed of establishing a Bluetooth connection can be increased.

[0032] In a possible implementation of the first aspect, the method further includes: after completing a channel scan of Bluetooth, performing the next channel scan. If the target channel is not included in the M channels of a channel scan, signal processing is performed on the Bluetooth signal obtained by the next channel scan. That is to say, in this solution, the electronic device can first perform multi-channel parallel scanning on all channels, and after completing the scanning of all channels, perform signal processing on the signals scanned from the channels. As an example, when the electronic device performs signal processing, each signal processing can be performed in parallel on the Bluetooth signals scanned from the M channels, which can also improve the efficiency of signal processing. Improving the signal processing efficiency also improves the efficiency of finding the target channel, and thus can improve the efficiency of establishing a Bluetooth connection.

[0033] In a possible implementation of the first aspect, the method further includes: after completing a Bluetooth channel scan, a signal of the current channel scan may be processed. In addition, the electronic device may perform the next channel scan while processing the current channel scan signal. That is, the channel code scanning and signal processing of the electronic device may be processed in parallel, thereby improving processing efficiency and improving the efficiency of establishing a Bluetooth connection.

[0034] In a possible implementation of the first aspect, the method also includes: in a channel scanning process, using multiple Bluetooth receivers, the multiple Bluetooth receivers simultaneously scan Bluetooth signals from M channels in the channel scanning process, and perform signal processing on the Bluetooth signals scanned from the M channels and process the same Bluetooth signals.

[0035] In a second aspect, the present application further provides an electronic device. The electronic device may include: an antenna, a processor, and a memory. The memory is used to store computer-executable instructions, and when the electronic device is running, the processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the signal processing method as described in any one of the first aspects above.

[0036] In a third aspect, the present application provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on a computer, the computer can execute any signal processing method in the first aspect.

[0037] In a fourth aspect, a computer program product comprising instructions is provided, which, when executed on an electronic device, enables the electronic device to execute any one of the signal processing methods in the first aspect.

[0038] In a fifth aspect, a device (for example, the device may be a chip system) is provided, the device including a processor for supporting an electronic device to implement the functions involved in the first aspect above. In one possible design, the device also includes a memory for storing program instructions and data necessary for the electronic device. When the device is a chip system, it may be composed of a chip, or may include a chip and other discrete devices.

[0039] Among them, the technical effects brought about by any design method in the second to fifth aspects can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 is a schematic diagram of channel distribution of classic Bluetooth;

[0041] Figure 2 A schematic diagram of a single channel scan of classic Bluetooth;

[0042] Figure 3A A schematic diagram of multi-channel scanning of classic Bluetooth provided in an embodiment of the present application;

[0043] Figure 3B A schematic diagram of multi-channel scanning of classic Bluetooth provided in an embodiment of the present application;

[0044] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0045] Figure 5A A module framework diagram of a signal transmission process provided in an embodiment of the present application;

[0046] Figure 5B A module framework diagram of a signal receiving process provided in an embodiment of the present application;

[0047] Figure 5C A schematic diagram of a specific logical structure of a CIC downsampling unit provided in an embodiment of the present application;

[0048] Fig. 6A A module framework diagram involved in a signal receiving process provided in an embodiment of the present application;

[0049] Figure 6B A module framework diagram involved in a signal receiving process provided in an embodiment of the present application;

[0050] Figure 6C A module framework diagram involved in a signal receiving process provided in an embodiment of the present application;

[0051] Fig.6D A module framework diagram involved in a signal receiving process provided in an embodiment of the present application;

[0052] Fig. 7A A schematic diagram of the composition of a BR data packet and an EDR data packet provided in an embodiment of the present application;

[0053] Figure 7B A schematic diagram of the composition of an access code provided in an embodiment of the present application;

[0054] Figure 7C A schematic diagram of a process for generating an access code based on LAP provided in an embodiment of the present application;

[0055] Figure 8 A schematic diagram of a process flow of a synchronization unit performing sync processing provided in an embodiment of the present application;

[0056] Fig. 9 A schematic diagram of a process flow of a synchronization unit performing sync processing provided in an embodiment of the present application;

[0057] Fig.10 A schematic diagram of a process flow of a synchronization unit performing sync processing provided in an embodiment of the present application;

[0058] Fig.11 A schematic diagram of a process flow of a synchronization unit performing sync processing provided in an embodiment of the present application;

[0059] Fig.12 A module framework diagram involved in a signal receiving process provided in an embodiment of the present application;

[0060] Fig.13 A framework diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0061] The radio frequency of classic Bluetooth works in the 2.4GHz industrial, scientific and medical (ISM) band, which corresponds to the frequency band of 2400MHz to 2483.5MHz. Among them, the ISM band is a spectrum part that can be used by anyone without authorization. It usually includes 2.4GHz, 5.8GHz, 60GHz and other frequency bands.

[0062] Table 1 shows the operating frequency bands of the Bluetooth system, ie, the regulatory range and the center frequency of the radio frequency channel.

[0063] Table 1

[0064] Regulatory scope The center frequency of the RF channel 2.4GHz-2.4835GHz f=2402+k MHz, k=0,1,…78

[0065] like Figure 1 As shown in FIG. 1 , the 2.4 GHz classic Bluetooth (including BR and EDR) radio frequency channels can be divided into 79 channels. The bandwidth of each channel is 1 MHz, the interval between channels is 1 MHz, and the frequency is ranked from low to high as channel 1, channel 2, channel 3, ..., and channel 79.

[0066] exist Figure 1 In the example, the center frequency of each channel is also shown. For example, the center frequency of channel 1 is 2402 MHz, the center frequency of channel 2 is 2403 MHz, and the center frequency of channel 79 is 2480 MHz.

[0067] Paging is a necessary step to establish a classic Bluetooth connection. The paging device sends a paging message to a paging scanning device with a known Bluetooth address. After receiving the paging response from the paging scanning device, the paging device establishes a connection with the paging scanning device and then switches to the micro-network physical channel. The paging frequency hopping sequence has 32 wake-up frequencies, which are evenly distributed on 79MHz and have a cycle length of 32. During the paging process, the paging device selects a channel from the above 79 channels according to the paging frequency hopping sequence to send a paging signal. The paging scanning device needs to find a channel that includes the paging signal from the above 79 channels. In an embodiment of the present application, the channel on which the paging device sends the paging signal is recorded as the target channel.

[0068] In the related art, the scanning method adopted by the paging scanning device is usually single-channel scanning. The single-channel scanning method usually requires scanning 79 channels in sequence and analyzing the signals obtained by scanning each channel to determine the target channel where the paging signal is located. Figure 2 As shown, in the single-channel scanning scheme, one channel is scanned each time. For example, the first channel is scanned for the first time, and the scanned Bluetooth signal is analyzed to determine whether the first channel is the target channel. The second channel is scanned for the second time, and so on. In addition, signal processing can only be performed on the Bluetooth signal obtained by performing one channel scan each time. In this way, the paging scanning device may need to scan multiple times before determining the target channel, which will result in low efficiency of electronic equipment scanning paging signals.

[0069] Based on this, an embodiment of the present application proposes a signal processing method, which is applied to an electronic device that supports Bluetooth. In this solution, when scanning a Bluetooth signal, multiple channels can be scanned in parallel each time to obtain the Bluetooth signals therein. In addition, the Bluetooth signals scanned from multiple channels can be processed simultaneously to determine the target channel where the paging signal is located. In this way, the speed of channel scanning is greatly improved, the time required for the process of determining the paging signal is reduced, and the scanning efficiency is improved. After determining the target channel where the paging signal is located, the electronic device can establish a Bluetooth connection with the device that sends the paging signal. Thus, through the technical solution proposed in the embodiment of the present application, multi-channel parallel scanning is performed, which can reduce the time required for the electronic device as a paging scanning device (also referred to as a receiving end) to establish a Bluetooth connection with the paging device, and improve the speed of establishing the Bluetooth connection. Among them, the number of channels scanned each time is less than or equal to the total number of Bluetooth channels.

[0070] In some embodiments of the present application, in some scenarios, the electronic device may also choose to scan only a single-channel Bluetooth signal during a Bluetooth channel scan according to the current scenario requirements. For example, after the Bluetooth connection between the paging scanning device and the paging device is established, the paging scanning device may scan a single channel to receive a signal sent by the paging device.

[0071] Optionally, as an example, the electronic device scans M channels each time, where M is an integer greater than or equal to 2. Figure 3A As shown in a, the electronic device can scan the 1st to Mth channels for the first time, the (M+1)th to 2Mth channels for the second time, the (2M+1)th to 3Mth channels for the third time, ..., the [(n-1)M+1]th to nMth channels for the nth time, and so on. As another example, Figure 3Ab in the figure is another implementation of scanning M channels each time, where there are partially overlapping channels between two adjacent scans. For example, the first scan is for channels 1 to M, the second scan is for channels L to [(L-1)+M], and so on; where 1<L≤M.

[0072] Take M=4 as an example, Figure 3B As shown, the electronic device may scan channels 1 to 4 for the first time, channels 5 to 8 for the second time, channels 9 to 12 for the third time, ..., channels (4n-3) to 4n for the nth time, and so on. Figure 3B The center frequency of each scan is also shown: the center frequency of the first scan is the center frequency of channels 1 to 4, that is, 2403.5 MHz; the center frequency of the second scan is the center frequency of channels 5 to 8, that is, 2407.5 MHz; the center frequency of the third scan is the center frequency of channels 9 to 12, that is, 2411.5 MHz; ... It can be understood that in other examples, M can also be set to values ​​such as 5, 6, 7 or 8. Exemplarily, the electronic device can perform channel scans on 79 channels in order from low to high frequency, and the kth scan is the last scan. It should be noted that the maximum number of times the electronic device needs to scan is k.

[0073] The minimum value of k is: round up (79 / M). When M=4, k=20. For example, the electronic device can scan channels 1 to 4 for the first time, channels 5 to 8 for the second time, channels 9 to 12 for the third time, and so on. Channels 72 to 76 are scanned for the 19th time. At this point, only channels 77 to 79 are left unscanned, and channels 77 to 79 are scanned for the 20th time. It can be understood that when M takes other values, k changes accordingly.

[0074] As another example, when an electronic device performs multi-channel parallel scanning, there may be partially overlapping channels in adjacent scans. For example, continuing with M=4, the electronic device can scan channels 1 to 4 for the first time, channels 4 to 7 for the second time, channels 7 to 10 for the third time, and so on. In this example, there is an overlap of one channel in adjacent scans. In other examples, there may be an overlap of 2 or more channels in adjacent scans, and the number of channels scanned repeatedly is less than the number of channels scanned each time, that is, the above-mentioned M. It can be understood that in this example, when M=4, the value of k is greater than 20.

[0075] Exemplarily, the electronic device may be a mobile phone, a tablet computer, a personal computer (PC), a smart screen, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a smart watch and other wearable devices, an artificial intelligence (AI) speaker and a vehicle-mounted device, or various teaching aids (such as a learning machine, an early education machine), a smart toy, a portable robot, a personal digital assistant (PDA), an augmented reality (AR)\virtual reality (VR) device, a media player and other devices, or a device with a mobile office function, a device with a smart home function, a device with an audio and video entertainment function, a device with a classic Bluetooth capability such as a device that supports smart travel. The embodiment of the present application does not impose any special restrictions on the specific form of the device.

[0076] Figure 4 The hardware structure diagram of the electronic device in some examples is shown. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, a camera 192, a display screen 193, and a subscriber identification module (SIM) card interface 194, etc.

[0077] Among them, the sensor module 180 may include a pressure sensor 180A, a touch sensor 180B, and the like.

[0078] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0079] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. For example, the processor 110 is used to execute the signal processing method in the embodiment of the present application.

[0080] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0081] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0082] The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device.

[0083] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0084] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and an application required for at least one function (such as a sound playback function, an image playback function, etc.).

[0085] In addition, the internal memory 121 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0086] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .

[0087] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the external memory, the display screen 193, the camera 192, and the wireless communication module 160.

[0088] In some other embodiments, the power management module 141 may also be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 may also be disposed in the same device.

[0089] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0090] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0091] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.

[0092] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In an embodiment of the present application, a Bluetooth signal is received by an antenna (such as the above-mentioned antenna 2), and the Bluetooth module in the wireless communication module 160 performs signal processing on the received Bluetooth signal.

[0093] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.

[0094] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170 and the application processor.

[0095] The audio module 170 is used to convert digital audio signals into analog audio signals for output, and is also used to convert analog audio inputs into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0096] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 193. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 193, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A.

[0097] The touch sensor 180B is also called a "touch panel". The touch sensor 180B can be arranged on the display screen 193, and the touch sensor 180B and the display screen 193 form a touch screen, also called a "touch screen". The touch sensor 180B is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 193. In other embodiments, the touch sensor 180B can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 193.

[0098] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0099] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.

[0100] The camera 192 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 192, where N is a positive integer greater than 1.

[0101] The electronic device 100 implements the display function through a GPU, a display screen 193, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 193 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0102] The display screen 193 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 193 , where N is a positive integer greater than 1.

[0103] The SIM card interface 194 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting or removing the SIM card interface 194. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.

[0104] The signal processing methods in the following embodiments can all be implemented in the electronic device 100 having the above hardware structure.

[0105] Figure 5A A schematic diagram showing the logical connections between modules involved in the signal processing method proposed in the embodiment of the present application is shown. Figure 5A The modules involved in the signal transmission process are shown, including: a Gauss frequency shift keying (GFSK) modulation unit, a digital-to-analog conversion unit, and a mixer.

[0106] The GFSK modulation unit is used to perform GFSK modulation processing on the signal. The GFSK modulation processing is to perform FSK modulation processing on the input signal after pre-modulation and filtering by a Gaussian low-pass filter. The GFSK modulation unit can be coupled with a digital-to-analog conversion unit. The digital-to-analog conversion unit (DAC), also known as a D / A converter, is a device that converts digital quantities into analog quantities.

[0107] The digital-to-analog conversion unit is also coupled to a mixer. During the signal transmission process, the mixer is used to mix the signal modulated on the low-frequency carrier or the intermediate frequency signal with a local oscillator signal with a higher frequency, and then obtain the upper sideband signal after mixing.

[0108] The mixer is coupled to the antenna. After the signal is processed by the mixer, it is sent out through the antenna.

[0109] Optionally, as an example, the modules involved in the signal receiving process of the electronic device as the receiving end may include: an antenna, a mixer, an analog-to-digital conversion unit, a frequency shift unit, a filtering unit and a synchronization unit.

[0110] In some embodiments, the frequency shift unit may be specifically used to shift the frequency band of the signal to an intermediate frequency (IF), and thus the frequency shift unit may be specifically referred to as an IF frequency shift unit.

[0111] As another example, the receiving end may also add some optimization processing during the signal processing, such as direct current calibration (DC cali) processing, in-phase quadrature (IQ) calibration (calibration, cali) processing, and down-sampling processing. Figure 5B As shown. Figure 5B In the example shown, the following modules of the receiving end are coupled in sequence: antenna, mixer, analog-to-digital conversion unit, DC calibration unit, IQ calibration unit, IF frequency shift unit, downsampling unit, filtering unit, cache and synchronization unit. Figure 5B Antenna Correspondence Figure 4 The antenna 2 shown, the mixer, the analog-to-digital conversion unit, the DC calibration unit, the IQ calibration unit, the frequency shift unit, the downsampling unit, the filtering unit, the cache and the synchronization unit all belong to Figure 4 The Bluetooth module in the wireless communication module.

[0112] After receiving the signal, the antenna transmits the signal to the mixer. During the signal reception process, the mixer is used to down-convert the signal. The purpose of down-conversion is to reduce the carrier frequency of the signal or directly remove the carrier frequency to obtain the baseband signal.

[0113] In the embodiment of the present application, the electronic device scans Bluetooth signals of M channels in parallel, and the mixer needs to perform down-conversion processing on the M Bluetooth signals. Table 2 shows the corresponding bandwidth and the center frequency of each channel after the RF signal is down-converted when M=4.

[0114] Table 2

[0115]

[0116] When M=4, the number of channels scanned by the electronic device each time is 4; the channel bandwidth corresponding to each scanned channel is 4MHz. The center frequency of the first scan of channels 1 to 4 is the center frequency of channels 1 to 4, that is, 2403.5MHz. After down-conversion processing of the Bluetooth signals in channels 1 to 4, the center frequencies of the four channels are -1.5MHz, -0.5MHz, 0.5MHz, and 1.5MHz respectively.

[0117] The mixer sends the output signal to the analog-to-digital conversion unit, which is used to convert analog signals into digital signals.

[0118] After obtaining the digital signal, the analog-to-digital conversion unit transmits the digital signal to the DC calibration unit, which performs DC calibration on the signal. The DC calibration process specifically adjusts the DC bias in the internal circuit of the Bluetooth device to eliminate or reduce the DC offset caused by factors such as the inconsistency of circuit components and temperature changes. The signal processed by the DC calibration unit can be more accurate.

[0119] Afterwards, the DC calibration unit can transmit the processed signal to the IQ calibration unit, which performs IQ calibration on the input signal. IQ calibration is used to correct distortion and errors during signal transmission. IQ calibration can be divided into IQ imbalance calibration and phase calibration. Among them, IQ imbalance calibration is to correct the amplitude and phase distortion during signal transmission. Phase calibration is to correct the phase error during signal transmission. The signal processed by the IQ calibration unit can be more accurate and reduce errors and distortion.

[0120] The signal after IQ calibration will be transmitted to the IF frequency shift unit. The IF frequency shift unit is used to shift the input signal to the intermediate frequency through a certain operation. This process can be called intermediate frequency frequency shift (IF frequency shift, IFfreqshift).

[0121] In a wireless communication system, the frequency of a signal can be divided into radio frequency (RF), intermediate frequency and baseband signal. Intermediate frequency refers to one or more intermediate frequency stages that a signal passes through during the process of converting from radio frequency to baseband. In an embodiment of the present application, the IF frequency shift unit can shift the signal after calibration processing (including DC calibration and IQ calibration) to zero frequency. Combined with the example shown in Table 2 above, the centers of the channels after the down-conversion processing of the 1st to 4th channels are: -1.5MHz, -0.5MHz, 0.5MHz, 1.5MHz. After the DC calibration processing and the IQ calibration processing, the channel center of each channel remains unchanged. The IF frequency shift unit can move the center frequency points of the 1st to 4th channels to zero frequency, that is, 0Mhz, in different frequency shift processing. Specifically, since the center frequency points of different channels are inconsistent, for the above-mentioned 1st to 4th channels, the IF frequency shift unit can set different frequency shift lengths according to the center frequency points of different channels. Afterwards, the frequency shift processing can be performed separately based on different frequency shift lengths.

[0122] Taking the example shown in Table 2 as an example, the IF frequency shift unit needs to process the Bluetooth signals scanned from the 1st to 4th channels. Since the centers of each channel are: -1.5MHz, -0.5MHz, 0.5MHz, 1.5MHz, respectively, the IF frequency shift unit can set different frequency shift lengths of +1.5MHz, +0.5MHz, -0.5MHz, -1.5MHz. Afterwards, the IF frequency shift unit performs frequency shift processing on the input signal based on the frequency shift length. In order to be able to perform different frequency shift processing on the Bluetooth signals scanned from M channels based on different frequency shift lengths, the electronic device can set n IF frequency shift units, n ≥ M. And, through the M IF frequency shift units among the n IF frequency shift units, different frequency shift processing is performed on the Bluetooth signals scanned from the M channels based on different frequency shift lengths, thereby obtaining M-channel signals. Since different frequency shift lengths are processed according to the channel centers of the M channels after the down-conversion processing, the Bluetooth signals of different channels can be filtered out by filtering the signals after the above frequency shift processing. In the example shown in Table 2, the electronic device can perform frequency shift processing on the 1st to 4th channels respectively through 4 IF frequency shift units (such as the 1st to 4th IF frequency shift units) among the n IF frequency shift units. The frequency shift processing performed by the 1st to 4th IF frequency shift units based on different frequency shift lengths are: the 1st IF frequency shift unit performs a +1.5MHz frequency shift processing on the input signal; the 2nd IF frequency shift unit performs a +0.5MHz frequency shift processing on the input signal; the 3rd IF frequency shift unit performs a -0.5MHz frequency shift processing on the input signal; and the 4th IF frequency shift unit performs a -1.5MHz frequency shift processing on the input signal. Exemplarily, after the above frequency shift processing, the 4 signals that can be obtained are: a signal with a channel center at a zero frequency position of the 1st channel, a signal with a channel center at a zero frequency position of the 2nd channel, a signal with a channel center at a zero frequency position of the 3rd channel, and a signal with a channel center at a zero frequency position of the 4th channel.

[0123] After the IF frequency shift unit performs frequency shift processing on the Bluetooth signal, the Bluetooth signal will be transmitted to the down sampling unit by the IF frequency shift unit, and the down sampling unit will perform down sampling processing (down sample) on the input signal. Down sampling processing refers to the process of reducing the sampling rate in the time domain or the space domain. In some embodiments of the present application, the down sampling processing of the Bluetooth signal can be implemented by an integral comb (cascaded integrator comb, CIC) filter. It can be understood that in other embodiments, the down sampling processing of the Bluetooth signal can also be implemented by other methods.

[0124] In some embodiments, a CIC filter is used to implement downsampling processing, that is, the downsampling unit is specifically a CIC downsampling unit. Figure 5CThe specific logical structure diagram of the CIC downsampling unit is shown. In this example, the processing performed by the CIC downsampling unit is simplified to only addition and subtraction operations. The signal x(n) is input into the CIC downsampling unit, first undergoes upsampling processing, then undergoes multi-stage cascade integration processing, then undergoes downsampling processing, and then undergoes differential processing through multi-stage cascade, and finally outputs y(n). Among them, the number of cascades for integral processing and differential processing is the same, and the number can be set according to actual conditions; as shown in the figure, the number of cascades is 4. In other embodiments, the number of cascades can also be set to other values ​​such as 5, 6, 7 or 8. In this way, the downsampling process can be simplified, the downsampling processing efficiency can be improved, and the processing time can be reduced and the efficiency can be improved.

[0125] The down-sampled Bluetooth signal will be transmitted to the filtering unit. The filtering unit is used to filter out the specific band frequency in the signal. In some embodiments, the filtering unit can be implemented by a finite impulse response (FIR) compensation filter. The electronic device can perform matched filtering (match filter) through the FIR compensation filter to compensate for the flatness of the signal.

[0126] The Bluetooth signal processed by the filter unit will be transmitted to the cache, which will store the Bluetooth signal. The cache is used to store Bluetooth signals at different times.

[0127] As can be seen from the above description, in an embodiment of the present application, the electronic device can scan Bluetooth signals of M channels in parallel during a Bluetooth channel scanning process. In some embodiments, the IF frequency shift unit can be a frequency shift unit group, and the frequency shift unit group can include multiple IF frequency shift units, each of which is used to perform IF frequency shift processing of one Bluetooth signal. Thus, multiple frequency shift units can simultaneously perform different frequency shift processing according to the center frequency points of multiple channels.

[0128] The downsampling unit of the electronic device may be a downsampling unit group, which may include one downsampling unit or multiple downsampling units. The filtering unit of the electronic device may be a filtering unit group, which may include one filtering unit or multiple filtering units. The synchronization unit of the electronic device may include a synchronization unit group, which may include one synchronization unit or multiple synchronization units.

[0129] As an example, the downsampling unit may be a downsampling unit group, which includes a plurality of downsampling units; the filtering unit may be a filtering unit group, which includes a plurality of filtering units. Figure 5B For the structure shown, please refer to Fig. 6AThe IF frequency shift unit group of the electronic device may include IF frequency shift unit 1 to IF frequency shift unit n. The downsampling unit group may include downsampling unit 1 to downsampling unit n. The filtering unit group may include filtering unit 1 to filtering unit n. Exemplarily, n may be set to 8, 9, 10 or other values.

[0130] Among them, an IF frequency shift unit, a downsampling unit and a filtering unit can constitute a signal processing link. A signal processing link can perform signal processing on one Bluetooth signal. The Bluetooth signals output after being processed by different signal processing links can be recorded as different data segments. For example, the Bluetooth signal output after being processed by signal processing link 1 (including IF frequency shift unit 1, downsampling unit 1 and filtering unit 1) is recorded as data segment 1; the Bluetooth signal output after being processed by signal processing link n (including IF frequency shift unit n, downsampling unit n and filtering unit n) is recorded as data segment n.

[0131] In an embodiment of the present application, the electronic device scans multiple channels in parallel during a channel scanning process. Fig. 6A In the example shown, the electronic device can control different numbers of signal processing links to power on as needed. Taking the electronic device scanning M channels in parallel as an example, the electronic device can control M signal processing links to power on. Specifically, the electronic device controls the following modules to power on: IF frequency shift units 1 to M, downsampling units 1 to M, and filtering units 1 to M. It can be understood that M is less than or equal to n; the value range of M includes 2≤M≤n. In other words, the value range of M is affected by the ability of the electronic device to process Bluetooth signals simultaneously. That is, in a Bluetooth channel scan process, the maximum number of channels that the electronic device can scan in parallel is n.

[0132] In addition, in some scenarios, the electronic device can also control the number of signal processing links that are powered on to be 0; for example, the electronic device does not perform signal processing on the scanned signal, or the electronic device does not perform channel scanning. In other scenarios, the electronic device can also control the number of signal processing links that are powered on to be 1; that is, the electronic device only scans one channel to obtain the Bluetooth signal therein, and performs signal processing on the Bluetooth signal.

[0133] Further, after being processed by the mixer, the analog-to-digital conversion unit, the DC calibration unit, the IQ calibration unit, and the above-mentioned signal processing link, M Bluetooth signals will be obtained. The M Bluetooth signals can be stored in a cache. Afterwards, the synchronization unit synchronizes (synchronizes, syncs) the M Bluetooth signals.

[0134] Please continue to refer to Fig. 6AThe synchronization unit group includes synchronization unit 1 to synchronization unit n. Each synchronization unit can perform sync processing on a Bluetooth signal. Exemplarily, synchronization unit 1 is used to perform sync processing on data segment 1; ... synchronization unit n is used to perform sync processing on data segment n. In this way, the synchronization unit can perform sync processing on Bluetooth signals in M ​​channels in parallel.

[0135] Combination Fig. 6A , the process of scanning Bluetooth signals of M channels in parallel by an electronic device and performing signal processing on the Bluetooth signals is described: the Bluetooth signals scanned from multiple channels are processed simultaneously, which may specifically include: when performing channel scanning through an antenna, M channels are scanned in parallel, and Bluetooth signals in the M channels are obtained, which are recorded as first Bluetooth signals. It can be understood that the first Bluetooth signal corresponds to the Bluetooth signals from the M channels. The electronic device performs first processing on the first Bluetooth signals scanned in the M channels respectively to obtain M second Bluetooth signals. M synchronization units are used to perform sync processing on the M second Bluetooth signals respectively. Sync processing can be used to determine whether a channel is a target channel. That is, the above-mentioned M sync units perform sync processing on the M second Bluetooth signals respectively, and it can be determined whether the channel where each second Bluetooth signal is located is the target channel. Since only one channel is the target channel among all the channels, the target channel may exist in the above-mentioned M channels, or it may not exist. Through sync processing, it can be determined whether there is a target channel among the M channels, and when there is a target channel among the M channels, it can be determined which channel the target channel is. In this solution, M sync units are used to perform sync processing on M second Bluetooth signals at the same time, which reduces the time required to process the M second Bluetooth signals and further improves the speed of searching for the target channel corresponding to the paging signal, thereby improving the speed of establishing the Bluetooth connection.

[0136] In some embodiments, the first processing may include at least one of the following: frequency mixing processing, analog-to-digital conversion processing, DC calibration processing, IQ calibration processing, frequency shift processing, downsampling processing, and filtering processing.

[0137] As another example, see Figure 6B, the downsampling unit group includes n downsampling units, and the filtering unit group includes n filtering units. In this example, a superposition processing unit is also included between the filtering unit and the cache. The superposition processing unit can be used to perform superposition processing on multiple Bluetooth signals after filtering processing. In this example, the signal obtained by the superposition processing unit is recorded as the first superposition signal. If the electronic device scans M channels in parallel, the first superposition signal corresponds to M Bluetooth signals that have been filtered. The first superposition signal can be stored in the cache. In addition, the first superposition signal can be input into a synchronization unit (such as synchronization unit 1) for sync processing. The synchronization unit 1 can perform sync processing on the first superposition signal to determine whether there is a target channel in the channels corresponding to the M Bluetooth signals corresponding to the first superposition signal. It should be noted that the specific implementation process of the superposition processing unit for superposition processing of multiple Bluetooth signals can refer to the description in the relevant technology.

[0138] Combination Figure 6B , the process of an electronic device scanning the Bluetooth signals of M channels in parallel and performing signal processing on the Bluetooth signals is explained: when the electronic device performs channel scanning through the antenna, it scans M channels in parallel and obtains the Bluetooth signals in the M channels, which are recorded as the first Bluetooth signal. It can be understood that the first Bluetooth signal corresponds to the Bluetooth signals from M channels. The first Bluetooth signals scanned from the M channels are respectively processed in the first way to obtain M second Bluetooth signals. The M second Bluetooth signals are superimposed to obtain a first superimposed signal. The first superimposed signal is sync processed by the synchronization unit to determine whether there is a target channel in the M channels corresponding to the first superimposed signal.

[0139] As another example, the downsampling unit group includes n downsampling units. Figure 6C, a superposition processing unit is also included between the downsampling unit and the filtering unit. The superposition processing unit can be used to perform superposition processing on multiple Bluetooth signals after downsampling processing. In this example, the signal obtained by the superposition processing unit is recorded as the second superposition signal. If the electronic device scans M channels in parallel, the second superposition signal corresponds to the M Bluetooth signals after downsampling processing. The superposition processing unit can transmit the second superposition signal to the filtering unit. In this example, the electronic device includes 1 filtering unit, such as filtering unit 1. Filtering unit 1 can filter the second superposition signal and store the filtered signal in a cache. After that, the second superposition signal after filtering is transmitted to the synchronization unit. Since multiple Bluetooth signals have been superimposed before filtering, the second superposition signal after filtering also corresponds to only one signal. In this example, the synchronization unit only includes 1 synchronization unit, such as synchronization unit 1. The synchronization unit 1 can perform sync processing on the second superposition signal after filtering processing to determine whether there is a target channel in the channels corresponding to the corresponding M Bluetooth signals.

[0140] Combination Figure 6C , the process of scanning Bluetooth signals of M channels in parallel by an electronic device and performing signal processing on the Bluetooth signals is described: when the electronic device performs channel scanning through an antenna, M channels are scanned in parallel, and Bluetooth signals in the M channels are obtained, which are recorded as the first Bluetooth signal. It can be understood that the first Bluetooth signal corresponds to Bluetooth signals from M channels. The first Bluetooth signals scanned by the M channels are respectively subjected to second processing to obtain M third Bluetooth signals. The M third Bluetooth signals are superimposed to obtain a second superimposed signal. The second superimposed signal is filtered by the filtering unit 1. The second superimposed signal after filtering is sync processed by the synchronization unit to determine whether there is a target channel in the M channels corresponding to the second superimposed signal. The second processing includes at least one of the following: mixing processing, analog-to-digital conversion processing, DC calibration processing, IQ calibration processing, IF frequency shift processing, and downsampling processing.

[0141] As another example, Fig.6D, a superposition processing unit is also included between the IF frequency shift unit and the downsampling unit. The superposition processing unit can be used to perform superposition processing on multiple Bluetooth signals after IF frequency shift processing. In this example, the signal obtained by the superposition processing unit is recorded as the third superposition signal. If the electronic device scans M channels in parallel, the third superposition signal corresponds to M Bluetooth signals that have been processed by IF frequency shift. In this example, the downsampling unit group includes 1 downsampling unit, the filtering unit group includes 1 filtering unit, and the synchronization unit group includes 1 synchronization unit. The superposition processing unit transmits the third superposition signal to the downsampling unit 1 and the filtering unit 1 in sequence, and the third superposition signal after downsampling processing and filtering processing can be stored in the cache. In addition, the third superposition signal after downsampling processing and filtering processing is transmitted to the synchronization unit 1, and the synchronization unit 1 performs sync processing on it to determine whether there is a target channel in the channels corresponding to the M Bluetooth signals corresponding to the third superposition signal.

[0142] Combination Fig.6D , the process of scanning Bluetooth signals of M channels in parallel by an electronic device and performing signal processing on the Bluetooth signals is described: when the electronic device performs channel scanning through an antenna, M channels are scanned in parallel, and Bluetooth signals in the M channels are obtained, which are recorded as the first Bluetooth signal. It can be understood that the first Bluetooth signal corresponds to the Bluetooth signals from M channels. The first Bluetooth signals scanned by the M channels are respectively subjected to the third processing to obtain M fourth Bluetooth signals. The M fourth Bluetooth signals are superimposed to obtain the third superimposed signal. The fourth Bluetooth signal is subjected to the downsampling processing by the downsampling unit 1, and the third superimposed signal after the downsampling processing is filtered by the filtering unit 1. The third superimposed signal after the downsampling processing and the filtering processing is subjected to the sync processing by the synchronization unit to determine whether there is a target channel in the M channels corresponding to the third superimposed signal. The third processing includes at least one of the following: mixing processing, analog-to-digital conversion processing, DC calibration processing, IQ calibration processing, and IF frequency shift processing.

[0143] When performing channel scanning and signal processing, the electronic device may first perform signal processing on the Bluetooth signal obtained by the channel scanning after performing a channel scanning, and determine whether there is a target channel in the channels covered by the channel scanning. If there is no target channel in the channels covered by the channel scanning, the electronic device performs the next multi-channel parallel scanning, and so on. Figure 6A-6DIn any of the above methods, after performing signal processing on the Bluetooth signals in M ​​channels during a Bluetooth channel scan, if the target channel does not exist in the M channels, the next round of scanning can be performed; that is, reselect the M channels that have not been scanned for channel scanning. Then, the Bluetooth signals scanned from the next group of M channels are subjected to signal processing (including the first processing and the sync processing) until the target channel corresponding to the paging signal is found. In this scheme, after a channel scan is completed, the first Bluetooth signal obtained by scanning is first subjected to signal processing to determine whether there is a target channel in the M channels. If the target channel is found in the M channels, the electronic device may no longer perform channel scanning on the remaining unscanned channels. Compared with the technical solution of scanning Bluetooth signals in all channels and determining the target channel from all channels, the time required for scanning and processing Bluetooth signals can be further reduced, and the speed of establishing Bluetooth connections can be increased.

[0144] Alternatively, the electronic device may perform Bluetooth channel scanning and signal processing of the scanned Bluetooth signals simultaneously. For example, after scanning the Bluetooth signals of the 1st to Mth channels for the first time, the electronic device may perform signal processing on the Bluetooth signals scanned from the 1st to Mth channels. At the same time, the electronic device may scan the Bluetooth signals of the (M+1)th to 2Mth channels, and so on. In an embodiment in which channel scanning and signal processing are performed simultaneously, taking M as 4 as an example, for classic Bluetooth, the electronic device can complete the scanning of all channels at least 20 times. However, compared to the single-channel scanning method in the related art, the electronic device in the embodiment of the present application can still increase the speed of scanning Bluetooth signals in all channels by scanning M channels each time, reduce the time required to determine the target channel from all channels, and thus increase the speed of establishing Bluetooth connections.

[0145] As another example, the electronic device may also first perform multi-channel parallel scanning, perform multi-channel parallel scanning multiple times, complete the scanning of all channels, and then perform signal processing on the Bluetooth signals scanned from all channels. For example, after the electronic device scans the 1st to Mth channels, it scans the Bluetooth signals of the (M+1)th to 2Mth channels, and so on. After all channels are scanned, the electronic device performs signal processing on the scanned signals. Among them, the electronic device can perform signal processing on the Bluetooth signals scanned from M channels each time. For example, when performing signal processing for the first time, the Bluetooth signals scanned from the 1st to Mth channels are processed; when performing channel processing for the second time, the Bluetooth signals scanned from the (M+1)th to 2Mth channels are processed; and so on. In this way, after scanning the Bluetooth signals of all channels, the electronic device searches and determines the target channel through signal processing. In this scheme, multi-channel parallel scanning is performed each time a channel scan is performed. Compared with the single-channel scanning method in the related art, it can also reduce the time required for channel scanning and increase the speed of channel scanning. Furthermore, when performing signal processing, Bluetooth signals scanned from multiple channels can be processed in parallel, which can also improve the efficiency of signal processing, thereby improving the efficiency of establishing Bluetooth connections.

[0146] The above embodiment describes the modules involved in the signal receiving process of the electronic device as the receiving end. Next, a part of the process of the synchronization unit processing the sync of the Bluetooth signal is briefly described in conjunction with the accompanying drawings.

[0147] Usually the format of BR data packet is as follows Fig. 7A As shown in a in Figure 1. Each data packet consists of three entities: access code, header and payload. The format of the EDR data packet is as follows Fig. 7A As shown in b in FIG. Each data packet consists of 6 entities: access code, header, protection period, synchronization sequence, enhanced data rate payload and tail. It can be seen that both BR and EDR data packets include access codes. In the embodiment of the present application, sync processing is mainly completed based on the access code.

[0148] The access code is 68 or 72 bits long and is mainly used for timing synchronization, offset compensation, and device identification. Figure 7B As shown in a, the access code may include a preamble, a sync word, and a trailer. The preamble corresponds to the least significant bit (LSB) of the access address and contains 4 bytes; the sync word contains 64 bytes; and the trailer corresponds to the most significant bit (MSB) of the access address and contains 4 bytes.

[0149] According to different uses, access codes can be divided into three types: device access code (DAC), channel access code (CAC), and inquiry access code (IAC). Among them, IAC is further divided into general inquiry access code (GIAC) and dedicated inquiry access code (DIAC).

[0150] DAC: used in the paging, paging scan, central device response, and peripheral device response substates; DAC comes from the lower address part (LAP) of the Bluetooth address of the paging scan device (also called the lower 24 bits of the Bluetooth address).

[0151] CAC: Used in the connection state, synchronization queue substate, and synchronization scan substate, and serves as the access code for all data packets exchanged on the piconet physical channel.

[0152] The CAC is derived from the LAP of the Bluetooth address of the piconet center device. The IAC is used when querying the substate. The IAC is derived from the reserved LAP.

[0153] Table 3 shows relevant information of different types of access codes. Among the access codes shown in Table 3, the access codes with a length of 72 bits include a tail, while the access codes with a length of 68 bits do not include a tail.

[0154] Table 3

[0155] Access code type LAP Access code length CAC central (central equipment) 72 DAC Paged device 68 / 72 GIAC reserved 68 / 72 DIAC dedicated 68 / 72

[0156] The synchronization sequence included in the access code is usually obtained by LAP through Hamming code channel coding. The preamble included in the access code can be determined based on the first bit of the synchronization sequence. Figure 7B b and Figure 7B As shown in c, when the first bit of the synchronization sequence is 1, the leading code is 1010; when the first bit of the synchronization sequence is 0, the leading code is 0101. The tail included in the access code can be determined based on the last bit of the synchronization sequence, such as Figure 7B d and Figure 7B As shown in e in , when the last bit of the synchronization sequence is 0, the tail corresponds to 1010; when the last bit of the synchronization sequence is 1, the tail corresponds to 0101. Therefore, after the LAP is known, the corresponding synchronization sequence can be generated.

[0157] Figure 7C The process of generating an access code based on LAP is shown.

[0158] (1) Format 30 information bits for encoding, and the encoded information is recorded as x(D). x(D) is composed of 24-bit LAP (a0~a 23 ) and 6 additional bits. There are two types of additional bits: 001101 and 110010. The additional bits are based on a 23 OK, if a 23 is 0, the additional bit is 001101; if a 23 is 1, and the additional bit is 110010.

[0159] (2) Perform an XOR operation on the obtained 30-bit x(D) and the 34th to 63rd bits of the 64-bit pseudo-random noise sequence p(D) (see Figure 2). ) to get the encoded data

[0160] (3) Then Shift left 34 bits, and then perform modulo-2 division on the shifted result. The divisor is represented by g(D), g(D) = (1+D)g'(D) (where + represents an exclusive-or operation). Among them, g'(D) is the generating polynomial 157464165547 (octal notation), so g(D) = 260534236651 (octal notation), so the 34-bit remainder is obtained by modulo-2 division.

[0161] (4) Shift left 34 bits and 34 bits XOR 64 bits

[0162] (5) Then With 64-bit P n (P0~P 63 ) is XORed to obtain s(D) (i.e. the synchronization sequence mentioned above).

[0163] (6) Finally, a 4-bit preamble is added before the obtained 64-bit s(D), and a 4-bit tail is added after s(D) to obtain the final access code.

[0164] The access code and its generation process involved in the sync processing are described above. Based on this, in some embodiments of the present application, the electronic device can pre-store multiple LAPs with different values ​​locally, such as local LAPs. Thus, the electronic device can select one or more local LAPs from the locally stored local LAPs, and after determining the synchronization sequence according to the local LAPs, the corresponding preamble and tail can be determined according to the synchronization sequence. Figure 7BThe structure of the access code shown in a in FIG. 1 can obtain a corresponding access code according to the synchronization sequence, the leading code and the tail, which is called a candidate access code. The candidate access code is used by the electronic device to perform sync processing. The electronic device selects a local LAP with different values, and can generate different candidate access codes accordingly.

[0165] Next, the sync processing process is described in detail. It can be seen from the description of the above embodiments of the present application that the electronic device can select one local LAP each time to generate the corresponding candidate access code, or can select A local LAPs each time to generate the corresponding candidate access code. That is to say, during the sync processing, each sync processing can use only one candidate access code to perform the sync processing, or can use A candidate access codes to perform the sync processing.

[0166] The following, combined Fig. 6A First, the process of selecting a local LAP to generate a candidate access code each time and performing sync processing based on a candidate access code is described. Fig. 6A In the illustrated embodiment, one synchronization unit performs sync processing only on one Bluetooth signal that has not been subjected to superposition processing.

[0167] Taking synchronization unit 1 as an example, the process of executing sync processing by the synchronization unit is described as follows:

[0168] A LAP is selected from a plurality of local LAPs stored in the electronic device, such as a first LAP, combined with Figure 7B and Figure 7C , generating a first synchronization sequence based on the first LAP, and generating a first candidate access code based on the first synchronization sequence.

[0169] The first candidate access code is used as the input of the synchronization unit 1, and the Bluetooth signal ( Fig. 6A The data segment 1 shown in the figure performs sync processing to determine whether the first candidate access code matches the channel corresponding to the data segment 1.

[0170] Exemplarily, the electronic device may determine whether the first candidate access code matches the channel corresponding to data segment 1 by performing a correlation analysis on the first candidate access code and data segment 1. The correlation analysis may be implemented by a correlation function. The correlation function is used to measure the degree of correlation between two objects. After the correlation analysis, a waveform representing the degree of correlation between the first candidate access code and data segment 1 may be obtained. The electronic device may determine whether the first candidate access code matches the channel corresponding to data segment 1 by analyzing whether the peak value of the waveform of the degree of correlation between the first candidate access code and data segment 1 (hereinafter referred to as the correlation peak value) meets a preset condition. Specifically, if the correlation peak value between the first candidate access code and data segment 1 meets the preset condition, it indicates that the first candidate access code matches data segment 1. If the correlation peak value between the first candidate access code and data segment 1 does not meet the preset condition, it indicates that the first candidate access code does not match data segment 1. Exemplarily, the preset condition may be set as the correlation peak value being greater than a preset threshold.

[0171] In some cases, if the first candidate access code matches the channel corresponding to data segment 1, it means that the first candidate access code is the target access code, and the channel corresponding to data segment 1 is the target channel. The target access code can be used to subsequently establish a Bluetooth connection.

[0172] On the contrary, if the first candidate access code does not match the channel corresponding to the data segment 1 input to the synchronization unit 1, a local LAP that has not been selected can be selected from the local LAPs, such as the second LAP, and a second synchronization sequence is generated based on the second LAP. Then, a second candidate access code is generated based on the second synchronization sequence. The second candidate access code is used as the input of the synchronization unit 1, and the data segment 1 input to the synchronization unit 1 is sync processed. And so on, until all local LAPs have been selected to generate corresponding candidate access codes.

[0173] If none of the candidate access codes corresponding to the local LAP matches the channel corresponding to the data segment 1, it means that the channel corresponding to the data segment 1 is not the target channel.

[0174] For other Bluetooth signals (such as data segment 2, ... data segment n), similar processing can be performed by corresponding synchronization units, such as synchronization unit 2, synchronization unit 3, ... and synchronization unit n, to determine whether the channel corresponding to the Bluetooth signal processed by each synchronization unit is the target channel.

[0175] Figure 8 The figure shows the process of selecting a local LAP to generate a candidate access code each time and performing sync processing based on the candidate access code. Figure 8 In the figure, other modules of the electronic device except the synchronization unit are not shown. Figure 8 The process shown can correspond to Fig. 6AThe processing flow of the synchronization unit in the example shown. For synchronization unit 1, data segment 1 and the currently generated candidate access code are both input into synchronization unit 1. Synchronization unit 1 performs sync processing on data segment 1 based on the candidate access code to determine whether the channel corresponding to data segment 1 is the target channel. After sync processing, it can be determined whether the candidate access code matches data segment 1. If the candidate access code matches data segment 1, it means that the channel corresponding to data segment 1 is the target channel. If the result of the sync processing is that the candidate access code does not match data segment 1, it can be determined whether all local LAPs have been selected to generate candidate access codes. If there is a local LAP that has not been selected to generate a candidate access code, return to reselect a local LAP to generate a new candidate access code. If all local LAPs are selected to generate candidate access codes, it means that the channel corresponding to data segment 1 is not the target channel. For other synchronization units, such as synchronization unit 2 to synchronization unit n, the processing is similar to that of synchronization unit 1. Figure 8 In some examples shown, synchronization units 1 to n can perform sync processing on data segments 1 to n in parallel. Moreover, among synchronization units 1 to n, at most only one synchronization unit performs sync processing resulting in a match between the candidate access code and the channel corresponding to the data segment.

[0176] In some embodiments, different synchronization units can perform sync processing on their corresponding Bluetooth signals in parallel. In this way, sync processing can be performed on Bluetooth signals of multiple channels in parallel, which can save the time required for scanning Bluetooth signals to determine the target channel and facilitate the speed of establishing a connection.

[0177] In the above embodiment, multiple (such as M) synchronization units are used to synchronously and parallelly perform sync processing on the Bluetooth signals of M channels, that is, each synchronization unit only performs sync processing on the Bluetooth signal of one channel. The synchronization unit performs sync processing to determine the target channel with higher accuracy and sensitivity, and can more accurately identify the target channel.

[0178] Further, in an embodiment in which multiple synchronization units are used to synchronously perform sync processing on multiple Bluetooth signals, for any of the synchronization units, multiple (such as A) local LAPs can be selected each time to generate corresponding candidate access codes, that is, N candidate access codes are generated. Moreover, when the synchronization unit performs sync processing, the Bluetooth signal can be sync processed based on the A candidate access codes at the same time to determine whether there is an access code matching the channel corresponding to the Bluetooth signal among the A candidate access codes. Taking synchronization unit 1 as an example, if there is an access code matching the channel corresponding to data segment 1 among the A candidate access codes, it can be determined that the channel corresponding to the Bluetooth signal processed by synchronization unit 1 is the target channel. Moreover, the access code matching the channel corresponding to data segment 1 among the A candidate access codes is the target access code. Each time a candidate access code is used to perform sync processing on data segment 1, if the number of local LAPs includes Z, the electronic device may need to perform Z sync processing in synchronization unit 1 to determine whether the channel corresponding to data segment 1 is the target channel. In this scheme, multiple candidate access codes are used each time to perform sync processing on data segment 1, and the number of times the electronic device needs to perform sync processing in synchronization unit 1 is less than Z times, so the speed of sync processing can be improved, the efficiency of sync processing can be further improved, and the time required for sync processing can be reduced. Thereby, the speed of finding the target channel is improved, and then the speed of establishing a connection is improved.

[0179] In the above embodiment, the sync processing of Bluetooth signals of M channels is described by synchronizing and processing them in parallel through multiple (such as M) synchronization units. Next, the sync processing of M Bluetooth signals by one synchronization unit is described. It can be seen from the description of the above embodiment that in order to support parallel scanning of multiple channels, after the IF frequency shift unit, a superposition processing unit can be added to superimpose the M Bluetooth signals to obtain a superposition signal (which can be the first superposition signal, the second superposition signal or the third superposition signal). Finally, only one signal is input to the synchronization unit.

[0180] As an example, one local LAP is selected each time to generate a corresponding candidate access code, such as the third candidate access code, and the Bluetooth signal input to the synchronization unit is synced based on the third candidate access code. Taking the example of each Bluetooth signal processed in superposition corresponding to channels 1 to 4, the Bluetooth signal input to the synchronization unit is recorded as the fifth Bluetooth signal. If it is determined that the generated third candidate access code matches the channel corresponding to the fifth Bluetooth signal, it means that there is a target channel in channels 1 to 4. Then, it can be analyzed again to determine which channel in channels 1 to 4 is the target channel. If the third candidate access code does not match the channel corresponding to the fifth Bluetooth signal, the local LAP is reselected to generate a new candidate access code, such as the fourth candidate access code, and the fifth Bluetooth signal is synced based on the fourth candidate access code to determine whether the fourth candidate access code is the target access code. And so on, until all local LAPs have been selected to generate candidate access codes.

[0181] Fig. 9 The flow chart shows a process of selecting a local LAP each time to generate a corresponding candidate access code, and performing sync processing on the fifth Bluetooth signal that has undergone superposition processing based on the candidate access code. Fig. 9 The process shown can correspond to Figure 6B , Figure 6C or Fig.6D The process flow of the synchronization unit in the shown example. Fig. 9 The result of the sync processing of the synchronization unit 1 represents whether the candidate access code matches the channel corresponding to the fifth Bluetooth signal. Specifically, since the fifth Bluetooth signal is obtained by superimposing multiple Bluetooth signals, if the candidate access code matches the fifth Bluetooth signal, it means that the target channel exists in the multiple channels corresponding to the fifth Bluetooth signal. At this time, it can be further confirmed which channel among the multiple channels corresponding to the fifth Bluetooth signal is the target channel. If the candidate access code does not match the fifth Bluetooth signal, the electronic device can return to reselect the local LAP to generate a new candidate access code if there is still a local LAP that has not been selected to generate the candidate access code, and perform sync processing on the fifth Bluetooth signal again based on the new candidate access code. If all the candidate access codes generated by the local LAP do not match the fifth Bluetooth signal, it means that the target channel does not exist in the channel corresponding to the fifth Bluetooth signal.

[0182] Among them, the fifth Bluetooth signal can be the above Figure 6B The fifth Bluetooth signal can also be a superposition signal of the above Figure 6C Alternatively, the fifth Bluetooth signal may also be a signal obtained by filtering the second superimposed signal shown in FIG. Fig.6D The third superimposed signal shown is a signal after downsampling and filtering.

[0183] Further, if all candidate access codes do not match the channel corresponding to the fifth Bluetooth signal, the electronic device may obtain the Bluetooth signals scanned from channels 5 to 8. Figure 6B , Figure 6C or Fig.6D The method shown is used to process and input the Bluetooth signal of the synchronization unit, which is recorded as the sixth Bluetooth signal. A local LAP is selected to generate a candidate access code, such as the fifth candidate access code. Sync processing is performed on the sixth Bluetooth signal based on the fifth candidate access code to determine whether there is a target channel in the 5th to 8th channels corresponding to the sixth Bluetooth signal. If the fifth candidate access code matches the channel corresponding to the sixth Bluetooth signal, it means that there is a target channel in the 5th to 8th channels. At this time, it can be further determined which channel in the 5th to 8th channels is the target channel. If the fifth candidate access code does not match the channel corresponding to the sixth Bluetooth signal, the channel local LAP is reselected to generate a new candidate access code and sync processing is performed on the sixth Bluetooth signal until all local LAPs are selected to generate candidate access codes.

[0184] As another example, the electronic device may also select multiple local LAPs each time to generate corresponding multiple candidate access codes, and perform sync processing on the Bluetooth signal of the input synchronization unit (which may be a Bluetooth signal without superposition processing, or a superposition signal of multiple Bluetooth signals after superposition processing) based on the multiple candidate access codes. Its specific implementation is similar to the above-mentioned specific implementation of selecting a local LAP each time to generate a corresponding candidate access code, and performing sync processing on the Bluetooth signal of the input synchronization unit based on the candidate access code, and will not be described in detail here. It can be understood that compared with the solution of selecting a local LAP each time to generate a corresponding candidate access code, and performing sync processing based on the one candidate access code, this can reduce time and increase speed.

[0185] For example, the Bluetooth signal input to the synchronization unit is a Bluetooth signal that has not been processed by superposition. Fig.10 The flowchart shows that A local LAPs are selected each time to generate candidate access codes, and the synchronization unit performs sync processing based on the A candidate access codes. Fig.10 The process shown can correspond to Figure 6B , Figure 6C or Fig.6D The processing flow of the synchronization unit in the example shown. It should be noted that Fig.10 In the electronic device, other modules except the synchronization unit are not shown. Synchronization units 1 to n can perform sync processing on data segments 1 to n in parallel. Among synchronization units 1 to n, at most one synchronization unit has a processing result that there is a matching access code among the A candidate access codes.

[0186] For example, the Bluetooth signal input to the synchronization unit is a superposition signal of multiple Bluetooth signals after superposition processing. Fig.11 The figure shows the process of selecting A local LAPs to generate candidate access codes each time, and the synchronization unit performing sync processing based on the A candidate access codes. In this example, the Bluetooth signal input to the synchronization unit is recorded as the seventh Bluetooth signal. Fig.11 In the example shown, the synchronization unit 1 can perform sync processing on the seventh Bluetooth signal based on the candidate access codes 1-N at the same time. Fig.11 The process shown can correspond to Figure 6B , Figure 6C or Fig.6D The processing flow of the synchronization unit in the shown example. The result of the sync processing represents whether the candidate access code matches the channel corresponding to the seventh Bluetooth signal. Specifically, if the candidate access code matches the seventh Bluetooth signal, it means that the target channel exists in the channel corresponding to the seventh Bluetooth signal. If the candidate access code does not match the seventh Bluetooth signal, the electronic device may return to reselect the local LAP to generate a new candidate access code if there is still a local LAP that has not been selected to generate the candidate access code, and perform sync processing on the seventh Bluetooth signal again based on the new candidate access code. If the candidate access codes generated based on all local LAPs do not match the seventh Bluetooth signal, it means that the target channel does not exist in the channel corresponding to the seventh Bluetooth signal.

[0187] Furthermore, in the above embodiment, after a synchronization unit is used to perform sync processing on the Bluetooth signal after superposition processing and it is determined that there is a target channel among the multiple channels corresponding to the Bluetooth signal after superposition processing, it is necessary to further confirm which channel is the target channel.

[0188] Optionally, as an example, before the superposition process, the received signal strength indication (RSSI) of the Bluetooth signal in the M channels can be calculated respectively. RSSI is used to indicate the received signal strength indication. Usually, the RSSI of the target channel corresponding to the paging signal is higher than the RSSI of other channels except the target channel, that is, the RSSI of the non-target channel. Therefore, when determining which channel among the multiple channels corresponding to the superimposed signal is the target channel, the RSSI of the Bluetooth signal among the multiple channels corresponding to the superimposed signal can be determined as the target channel by judging the RSSI of the Bluetooth signal in the multiple channels corresponding to the superimposed signal. For example, after determining that there is a target channel in channels 1 to 4, it can be determined which channel among channels 1 to 4 is the target channel by comparing the RSSI corresponding to each of channels 1 to 4.

[0189] In some embodiments, the electronic device may further include an RSSI calculation unit. The RSSI calculation unit may be an RSSI calculation unit group, and the RSSI calculation unit group includes n RSSI calculation units. The RSSI calculation unit may be arranged between the IF frequency shift unit and the superposition processing unit. The electronic device may calculate RSSI values ​​for M signals respectively through M RSSI calculation units among the n RSSI calculation units before superimposing the signals. It is understandable that each RSSI calculation unit calculates the corresponding RSSI value for one signal that is not superimposed.

[0190] As another example, after determining that there is a target channel among the multiple channels corresponding to the superimposed signal, it is also possible to further confirm which channel is the target channel by means of a proprietary protocol.

[0191] In the above embodiment, before the Bluetooth signal is input to the synchronization unit for sync processing, the M Bluetooth signals are first superimposed to achieve the effect of sync processing of multiple Bluetooth signals by one synchronization unit. Compared with the solution of using multiple synchronization units to perform sync processing on multiple Bluetooth signals in parallel, it can save computing resources of the electronic device. In some embodiments, this solution is suitable for near-field use.

[0192] In the above embodiments, one Bluetooth receiver (recive, Rx) is used as an example for description. In other embodiments, multiple Rx can be used for synchronous reception. Fig.12 As shown, an Rx may include an analog-to-digital conversion unit, a DC calibration unit, an IQ calibration unit, an IF frequency shift unit, a downsampling unit, a filtering unit, a cache, and a synchronization unit. The electronic device may include n Rx. Furthermore, the electronic device may also control 0, 1, or any number of Rx among the n Rx to work simultaneously. In the technical solution in which the electronic device controls more than two Rx to work simultaneously, each of the multiple Rx can perform channel scanning on the same M channels simultaneously. That is, the signals scanned by different Rx are the same, and the same Bluetooth signal is processed by different Rx, and then the subsequent processing can be performed in combination with the signal processing results of multiple Rx. In this way, a more accurate signal processing result can be obtained, so that more effective signals can be received.

[0193] Some other embodiments of the present application provide an electronic device. The electronic device may include: an antenna, a memory, and one or more processors. The antenna and the memory are coupled to the processors respectively. The memory is also used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device may perform the various functions or steps performed by the electronic device in the above method embodiment. The structure of the electronic device can refer to Figure 4 The structure of the electronic device 100 is shown.

[0194] In some embodiments, the electronic device further comprises a Bluetooth module. The Bluetooth module may be coupled to the antenna. The Bluetooth module is used to perform signal processing on the Bluetooth signal obtained by channel scanning.

[0195] In some embodiments, the Bluetooth module includes: a mixer, an analog-to-digital conversion unit, a frequency shift unit, a filtering unit, and a synchronization unit.

[0196] In some other embodiments, the Bluetooth module includes: a mixer, an analog-to-digital conversion unit, a DC calibration unit, an IQ calibration unit, a frequency shift unit, a filtering unit, a down-sampling unit, and a synchronization unit.

[0197] It should be noted that in the above Bluetooth module, the mixer, analog-to-digital conversion unit, DC calibration unit, IQ calibration unit, frequency shift unit, filtering unit, down-sampling unit and synchronization unit are coupled in sequence. The above mixer is also coupled to the antenna, obtains the Bluetooth signal obtained by channel scanning from the antenna, and performs down-conversion processing.

[0198] Optionally, as an example, the down-sampling unit is specifically a CIC down-sampling unit. The frequency shifting unit is specifically an IF frequency shifting unit.

[0199] The IF frequency shift unit is an IF frequency shift unit group, and the IF frequency shift unit group may include n IF frequency shift units.

[0200] The filtering unit may be a filtering unit group, which may include 1 filtering unit or n filtering units. The downsampling unit may be a downsampling unit group, which may include 1 downsampling unit or n downsampling units. The synchronization unit may be a synchronization unit group, which may include 1 synchronization unit or n synchronization units.

[0201] In some embodiments, the electronic device includes n IF frequency shift units, n down-sampling units, n filtering units and n synchronization units. In this embodiment, the structure of the electronic device can refer to Fig. 6A The structure shown.

[0202] In some embodiments, the electronic device further comprises an overlay processing unit. The overlay processing unit is arranged between the filtering unit and the synchronization unit. In this embodiment, the electronic device comprises n down-sampling units, n filtering units and 1 synchronization unit. In this embodiment, the structure of the electronic device can refer to Figure 6B The structure shown.

[0203] In some other embodiments, the electronic device further includes an overlay processing unit. The overlay processing unit is arranged between the downsampling unit and the filtering unit. In this embodiment, the electronic device includes n downsampling units, 1 filtering unit and 1 synchronization unit. In this embodiment, the structure of the electronic device can refer to Figure 6C The structure shown.

[0204] In some other embodiments, the electronic device further includes an overlay processing unit. The overlay processing unit is arranged between the frequency shift unit and the down-sampling unit. In this embodiment, the electronic device includes a down-sampling unit, a filtering unit and a synchronization unit. In this embodiment, the structure of the electronic device can refer to Fig.6D The structure shown.

[0205] In some embodiments, the electronic device may further include an RSSI calculation unit. The RSSI calculation unit may be an RSSI calculation unit group, and the RSSI calculation unit group may include n RSSI calculation units. The RSSI calculation unit may be arranged between the IF frequency shift unit and the superposition processing unit. Each RSSI calculation unit is used to calculate the RSSI value of one signal respectively.

[0206] In some embodiments, the electronic device may further include a GFSK modulation unit and a digital-to-analog conversion unit. That is, the electronic device may also serve as a transmitter of a Bluetooth signal to send a Bluetooth signal to other devices.

[0207] The present application also provides a chip system, such as Fig.13 As shown, the chip system 1000 includes at least one processor 1001 and at least one interface circuit 1002. The processor 1001 and the interface circuit 1002 can be interconnected through lines. For example, the interface circuit 1002 can be used to receive signals from other devices (such as a computer memory). For another example, the interface circuit 1002 can be used to send signals to other devices (such as processor 1001). Exemplarily, the interface circuit 1002 can read instructions stored in the memory and send the instructions to the processor 1001. When the instruction is executed by the processor 1001, the computer can execute the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiments of the present application.

[0208] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step executed by the electronic device in the above-mentioned method embodiment.

[0209] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer executes each function or step executed by the electronic device in the above method embodiment.

[0210] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0211] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0212] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0213] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0214] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0215] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A signal processing method, characterized in that: include: In a Bluetooth channel scanning process, Bluetooth signals in M ​​channels are scanned in parallel; M is an integer greater than or equal to 2, and M is less than or equal to the total number of Bluetooth channels; Performing signal processing on the Bluetooth signals scanned from the M channels to determine whether the M channels include a target channel where the paging signal is located; If the target channel is included in the M channels, a Bluetooth connection is established with a paging device that sends the paging signal based on the paging signal received on the target channel.

2. The method according to claim 1, characterized in that The electronic device comprises a mixer, an analog-to-digital conversion unit, n frequency shifting units, 1 or n filtering units and 1 or n synchronization units; wherein n≥M; Processing the Bluetooth signal scanned from the M channels to determine whether the M channels include a target channel where the paging signal is located includes: Performing down-conversion processing on the Bluetooth signals scanned from the M channels by the mixer, and performing analog-to-digital conversion on the down-converted signals by the analog-to-digital conversion unit to obtain digital signals; Performing frequency shift processing on the digital signal by using M frequency shift units among the n frequency shift units; different frequency shift units have different frequency shift lengths; Performing filtering processing on the digital signal after the frequency shift processing by the filtering unit; The synchronization unit performs synchronization processing on the filtered signal to determine whether the M channels include the target channel.

3. The method according to claim 2, characterized in that The electronic device further comprises: one or n down-sampling units; the one or n down-sampling units are arranged between the n frequency shifting units and the one or n filtering units; After performing frequency shift processing on the digital signal by using M frequency shift units among the n frequency shift units, the method further includes: Performing down-sampling processing on the digital signal after the frequency shift processing by the down-sampling unit; The filtering unit performs filtering on the digital signal after the frequency shift processing, including: The filtering unit performs sync processing on the down-sampled signal.

4. The method according to claim 3, characterized in that The electronic device further comprises a superposition processing unit, wherein the superposition processing unit is arranged between the filtering unit and the synchronization unit, and the electronic device comprises n down-sampling units, n filtering units and 1 synchronization unit; After the filtering unit performs filtering on the signal after the frequency shift processing, the method further includes: Performing superposition processing on the filtered signal by the superposition processing unit to obtain a first superposition signal; The step of performing sync processing on the filtered signal by the sync unit includes: performing sync processing on the first superimposed signal by the sync unit.

5. The method according to claim 3, characterized in that: The electronic device further comprises a superposition processing unit, wherein the superposition processing unit is arranged between the down-sampling unit and the filtering unit, and the electronic device comprises n down-sampling units, one filtering unit and one synchronization unit; After the down-sampling unit performs down-sampling processing on the frequency-shifted digital signal, the method further includes: Performing superposition processing on the down-sampled signal by the superposition processing unit to obtain a second superposition signal; The filtering process on the signal after the frequency shift processing by the filtering unit includes: filtering the second superimposed signal by the filtering unit.

6. The method according to claim 3, characterized in that The electronic device further comprises a superposition processing unit, wherein the superposition processing unit is arranged between the frequency shift unit and the down-sampling unit, and the electronic device comprises a down-sampling unit, a filtering unit and a synchronization unit; After performing frequency shift processing on the digital signal by using M frequency shift units among the n frequency shift units, the method further includes: Performing superposition processing on the digital signal after the frequency shift processing by the superposition processing unit to obtain a third superposition signal; The down-sampling process of the frequency-shifted digital signal by the down-sampling unit includes: down-sampling the third superimposed signal by the down-sampling unit.

7. The method according to any one of claims 2 to 6, characterized in that: A sync processing process of any of the synchronization units includes: Obtain one or more candidate access codes; The synchronization unit performs sync processing on a signal input to the synchronization unit based on one or more candidate access codes.

8. The method according to any one of claims 4 to 7, characterized in that: The method further comprises: If it is determined by the synchronization unit that the M channels include the target channel, obtaining signal strength indicator values ​​RSSI corresponding to the M channels respectively; A channel with the largest RSS I among the M channels is determined as the target channel.

9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: If the target channel is not included in the M channels, performing a next channel scan and performing signal processing on the Bluetooth signal obtained by the next channel scan; or, After completing a channel scan for Bluetooth, perform the next channel scan; If the M channels of a channel scan do not include the target channel, signal processing is performed on the Bluetooth signal obtained by the next channel scan.

10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: In a channel scanning process, multiple Bluetooth receivers are used. The multiple Bluetooth receivers scan Bluetooth signals from M channels at the same time in the channel scanning process, and perform signal processing on the Bluetooth signals scanned from the M channels and process the same Bluetooth signals.

11. An electronic device, characterized in that: The electronic device comprises: an antenna, a processor, a memory and a computer program stored in the memory; the antenna and the memory are respectively coupled to the processor; When the electronic device is running, the processor executes the computer program to implement the method according to any one of claims 1 to 10.

12. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor of an electronic device, the method according to any one of claims 1 to 10 is implemented.

13. A computer program product, characterized in that The method comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.