Multi-channel signal processing method and apparatus, computer device, storage medium and computer program product
Patent Information
- Application Number
- CN202611104151.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-23
- Publication Date
- 2026-10-23
AI Technical Summary
[0005]基于此,本申请的目的旨在至少能解决上述的技术缺陷之一,特别是现有技术中无法将多通道信号进行精准对齐的技术缺陷,本申请提供了一种多通道信号处理方法、装置、计算机设备、存储介质和计算机程序产品
[0035]本申请提供的多通道信号处理方法、装置、计算机设备、存储介质和计算机程序产品,通过确定各通道的信号强度并选择最大信号强度的通道作为参考基准,再采用互相关计算精确测定各比较通道相对于参考通道的相对延时,最后根据该相对延时进行对齐混合,解决了因各接收头安装位置不同导致线缆长度不一致、进而引发各通道信号到达接收机时存在相位差而无法将多通道信号进行精准对齐的技术问题,无需在安装阶段强制要求各通道线缆长度相同,即可实现多通道信号的自动精准对齐,保障了合成信号的信号质量。
Smart Images

Figure CN122969766A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a multi-channel signal processing method, apparatus, computer equipment, storage medium, and computer program product. Background Technology
[0002] In wireless communication systems, in order to extend the system's operating range, multiple wireless signal receivers are usually installed in the same system. The signals received by each receiver are mixed into one signal and then provided to the receiver for demodulation.
[0003] Currently, each receiver head transmits electrical signals to a mixer via cables for mixing and addition. During system installation, it is stipulated that the cable lengths from each receiver head to the receiver are identical to ensure consistent propagation delays across all channels. However, this method relies on the physical condition of equal cable lengths. When space constraints or construction errors exist in the installation environment, phase differences can still occur between the signals of different channels. Due to the lack of precise means to determine the actual propagation delays between the signals of each channel, accurate alignment during signal mixing is impossible, thus affecting the demodulation performance of the receiver.
[0004] Therefore, existing technologies have the technical problem of being unable to accurately align multi-channel signals. Summary of the Invention
[0005] Based on this, the purpose of this application is to at least solve one of the above-mentioned technical defects, especially the technical defect in the prior art that it is impossible to accurately align multi-channel signals. This application provides a multi-channel signal processing method, apparatus, computer equipment, storage medium and computer program product.
[0006] Firstly, this application provides a multi-channel signal processing method, the method comprising:
[0007] Acquire digital signal sequences from multiple channels, and determine the signal strength value of each channel based on the digital signal sequences of each channel;
[0008] The channel with the highest signal strength value is designated as the reference channel, and all other channels are designated as comparison channels.
[0009] The digital signal sequence of each comparison channel is cross-correlated with the digital signal sequence of the reference channel to determine the relative delay of each comparison channel relative to the reference channel;
[0010] Based on the relative delay of each comparison channel with respect to the reference channel, the digital signal sequences of each comparison channel are aligned and mixed with the digital signal sequence of the reference channel to obtain a composite signal.
[0011] In one exemplary embodiment, determining the signal strength value of each channel based on the digital signal sequence of each channel includes:
[0012] Determine the signal amplitude value at each sampling point in the digital signal sequence of each channel;
[0013] The signal amplitude values of each sampling point in the digital signal sequence of each channel are added together to obtain the signal strength value of each channel.
[0014] In one exemplary embodiment, cross-correlation calculation is performed between the digital signal sequence of each comparison channel and the digital signal sequence of the reference channel to determine the relative delay of each comparison channel relative to the reference channel, including:
[0015] For each comparison channel, cross-correlation calculation is performed between the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel to obtain the cross-correlation value sequence between the comparison channel and the reference channel within a preset shift range;
[0016] The shift amount corresponding to the maximum cross-correlation value in the cross-correlation value sequence is determined as the relative delay of the comparison channel relative to the reference channel.
[0017] In an exemplary embodiment, cross-correlation calculation is performed on the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel to obtain a cross-correlation value sequence between the comparison channel and the reference channel within a preset shift range, including:
[0018] Using the digital signal sequence of the reference channel as a reference, cross-correlation calculation is performed on the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range to obtain a first cross-correlation value subsequence; and using the digital signal sequence of the comparison channel as a reference, cross-correlation calculation is performed on the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range to obtain a second cross-correlation value subsequence.
[0019] The cross-correlation value sequence is determined based on the first cross-correlation value subsequence and the second cross-correlation value subsequence.
[0020] In an exemplary embodiment, using the digital signal sequence of the reference channel as a reference, cross-correlation calculation is performed on the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range to obtain a first cross-correlation value subsequence, including:
[0021] A first fixed subsequence is selected from the digital signal sequence of the reference channel, and multiple first sliding subsequences are selected from the digital signal sequence of the comparison channel based on each shift amount within a preset shift range;
[0022] The first fixed subsequence is multiplied and summed with each first sliding subsequence to obtain the first cross-correlation value subsequence.
[0023] In an exemplary embodiment, using the digital signal sequence of the comparison channel as a reference, cross-correlation calculation is performed between the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range to obtain a second cross-correlation value subsequence, including:
[0024] A second fixed subsequence is selected from the digital signal sequence of the comparison channel, and multiple second sliding subsequences are selected from the digital signal sequence of the reference channel based on each shift amount within a preset shift range.
[0025] The second fixed subsequence is multiplied and summed with each second sliding subsequence to obtain the second cross-correlation value subsequence.
[0026] Secondly, this application provides a multi-channel signal processing apparatus, the apparatus comprising:
[0027] The acquisition module is used to acquire digital signal sequences from multiple channels and determine the signal strength value of each channel based on the digital signal sequences of each channel.
[0028] The determination module is used to determine the channel with the highest signal strength value as the reference channel and to determine the channels other than the reference channel as comparison channels;
[0029] The calculation module is used to perform cross-correlation calculations between the digital signal sequence of each comparison channel and the digital signal sequence of the reference channel to determine the relative delay of each comparison channel relative to the reference channel;
[0030] The alignment module is used to align and mix the digital signal sequences of each comparison channel with the digital signal sequence of the reference channel based on the relative delay of each comparison channel relative to the reference channel to obtain a composite signal.
[0031] Thirdly, this application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described method.
[0032] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.
[0033] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method.
[0034] As can be seen from the above technical solutions, the embodiments of this application have the following advantages:
[0035] The multi-channel signal processing method, apparatus, computer equipment, storage medium, and computer program product provided in this application solve the technical problem of inconsistent cable lengths caused by different installation positions of receiver heads, which leads to phase differences when the signals from each channel arrive at the receiver, thus making it impossible to accurately align multi-channel signals. This solves the problem of inconsistent cable lengths caused by different installation positions of receiver heads, which leads to phase differences when the signals from each channel arrive at the receiver. It eliminates the need to force the cable lengths of each channel to be the same during the installation stage, thereby achieving automatic and accurate alignment of multi-channel signals and ensuring the signal quality of the synthesized signal. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 A flowchart illustrating a multi-channel signal processing method provided in an embodiment of this application;
[0038] Figure 2 This is a schematic diagram of the structure of a multi-channel signal processing system provided in an embodiment of this application;
[0039] Figure 3 A flowchart illustrating another multi-channel signal processing method provided in an embodiment of this application;
[0040] Figure 4 This is a schematic diagram of the structure of a multi-channel signal processing device provided in an embodiment of this application;
[0041] Figure 5 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0042] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0043] In one exemplary embodiment, Figure 1This is a flowchart illustrating a multi-channel signal processing method provided in an embodiment of this application, as shown below. Figure 1 As shown, a multi-channel signal processing method is provided. Taking the application of this method to a receiver as an example, the method includes the following steps S102 to S108. Wherein:
[0044] Step S102: Obtain digital signal sequences from multiple channels, and determine the signal strength value of each channel based on the digital signal sequences of each channel.
[0045] In wireless communication systems, a channel refers to the complete signal transmission path formed between a single receiver head (antenna or wireless signal to electrical signal conversion device) and the receiver.
[0046] Among them, the digital signal sequence refers to the discrete sampling point sequence obtained after the wireless signal received by the receiver head is transmitted to the receiver via cable and the analog-to-digital converter unit converts the analog electrical signal into digital form.
[0047] The signal strength value refers to the numerical value used to measure the amount of signal energy in a channel.
[0048] Optionally, wireless signals are acquired by each receiver head and converted into electrical signals, which are then transmitted to the receiver via cable. The analog-to-digital converter module in the receiver converts the analog electrical signals into digital signals, resulting in a digital signal sequence for each channel.
[0049] Step S104: The channel with the highest signal strength value is determined as the reference channel, and the channels other than the reference channel are determined as comparison channels.
[0050] The reference channel is the channel selected from all channels as the basis for delay alignment. In practical applications, the reference channel can be the channel with the strongest signal strength among multiple channels.
[0051] The comparison channel refers to other channels besides the reference channel that need to be time-aligned with the reference channel.
[0052] Optionally, the receiver calculates the signal strength value for each channel, determines the channel with the highest signal strength value as the reference channel, and determines the remaining channels as comparison channels.
[0053] Step S106: Perform cross-correlation calculation on the digital signal sequence of each comparison channel and the digital signal sequence of the reference channel to determine the relative delay of each comparison channel relative to the reference channel.
[0054] Optionally, for each comparison channel, the digital signal sequence of the comparison channel is cross-correlated with the digital signal sequence of the reference channel. By finding the shift amount corresponding to the maximum cross-correlation value, the relative delay of the comparison channel relative to the reference channel is determined.
[0055] Cross-correlation calculation refers to the mathematical operation of detecting the relative delay relationship between two sequences by calculating the similarity of the two sequences under different relative shifts.
[0056] Relative delay refers to the time offset of the digital signal sequence of the comparison channel relative to the digital signal sequence of the reference channel.
[0057] Step S108: Based on the relative delay of each comparison channel relative to the reference channel, the digital signal sequences of each comparison channel are aligned and mixed with the digital signal sequence of the reference channel to obtain a composite signal.
[0058] Alignment mixing refers to aligning the digital signal sequences of each channel in time and then superimposing and merging them based on the relative delay of each comparison channel relative to the reference channel.
[0059] Among them, the synthesized signal refers to the single-channel digital signal output after all channels have been delayed, aligned, mixed, and added together.
[0060] Optionally, the receiver aligns the digital signal sequences of each comparison channel with the digital signal sequence of the reference channel in time according to the relative delay of each comparison channel, mixes and adds them to obtain a composite signal for subsequent demodulation module processing.
[0061] The aforementioned multi-channel signal processing method calculates the signal strength of each channel and selects the strongest channel as a reference. Then, it uses cross-correlation calculation to accurately determine the relative delay of each comparison channel relative to the reference channel. Finally, it performs alignment and mixing based on this relative delay. This solves the technical problem that the different cable lengths caused by the different installation positions of the receivers lead to phase differences when the signals from each channel arrive at the receiver, making it impossible to accurately align the multi-channel signals. It eliminates the need to force the cable lengths of each channel to be the same during the installation stage, thus achieving automatic and accurate alignment of multi-channel signals and ensuring the signal quality of the synthesized signal.
[0062] In an exemplary embodiment, determining the signal strength value of each channel based on the digital signal sequence of each channel includes: determining the signal amplitude value of each sampling point in the digital signal sequence of each channel; and adding the signal amplitude values of each sampling point in the digital signal sequence of each channel to obtain the signal strength value of each channel.
[0063] Here, a sampling point refers to a discrete data point acquired at a fixed sampling clock interval when performing analog-to-digital conversion on an analog electrical signal.
[0064] The signal amplitude value refers to the absolute value of the digital quantity corresponding to a single sampling point, which is used to characterize the instantaneous strength of the signal at that sampling moment.
[0065] The signal strength value refers to the sum of the signal amplitude values of all sampling points in the digital signal sequence of a channel, which is used to characterize the overall signal energy level of the channel.
[0066] Optionally, the receiver reads the data from each sampling point in the digital signal sequence of each channel one by one, and calculates the absolute value of each sampling point as the signal amplitude value of that sampling point. Then, the signal amplitude values of all sampling points in that channel are summed, and the summed result is the signal strength value of that channel. For a system with multiple channels, the above operation can be performed on each channel separately to obtain the signal strength value corresponding to each channel.
[0067] In this embodiment, the signal strength value of each channel is determined by accumulating the signal amplitude values of all sampling points in the digital signal sequence of each channel. This solves the problem that judging signal strength based on only a single or a few sampling points is susceptible to noise interference, leading to inaccurate selection of the reference channel. The summation method reflects the overall energy level of the channel signal, which can stably and reliably characterize the signal quality of each channel, thus providing an accurate basis for subsequent selection of the optimal reference channel and ensuring the reliability of the reference signal.
[0068] In an exemplary embodiment, cross-correlation calculation is performed between the digital signal sequence of each comparison channel and the digital signal sequence of the reference channel to determine the relative delay of each comparison channel relative to the reference channel. This includes: for each comparison channel, performing cross-correlation calculation between the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel to obtain a cross-correlation value sequence between the comparison channel and the reference channel within a preset shift range; and determining the shift amount corresponding to the maximum cross-correlation value in the cross-correlation value sequence as the relative delay of the comparison channel relative to the reference channel.
[0069] The cross-correlation value sequence refers to a set of cross-correlation values obtained by shifting two digital signal sequences successively within a preset shift range and calculating the correlation degree after each shift.
[0070] The preset shift range refers to the pre-defined interval between the minimum and maximum shift values used to search for relative delay, and this range must cover possible actual delay values.
[0071] In this context, the shift amount refers to the number of sampling points that shift one sequence relative to another on the time axis during cross-correlation calculations.
[0072] The relative delay refers to the shift amount corresponding to the maximum cross-correlation value, which represents the optimal alignment position of the comparison channel relative to the reference channel.
[0073] Optionally, for each comparison channel, its digital signal sequence is cross-correlated with the digital signal sequence of the reference channel within a preset shift range (e.g., from lag of L / 2 sampling points to lead of L / 2 sampling points). Within this shift range, for each shift increment, the cross-correlation value of the two sequences is calculated, resulting in a cross-correlation value sequence composed of multiple cross-correlation values. This cross-correlation value sequence is traversed to find the maximum value, and the shift increment corresponding to the maximum value is recorded as the relative delay of the current comparison channel relative to the reference channel. The above process is performed for each comparison channel to obtain the relative delay of each comparison channel relative to the reference channel.
[0074] In this embodiment, by traversing all shift values within a preset shift range and calculating the cross-correlation value for each shift value, the shift value corresponding to the maximum cross-correlation value is determined as the relative delay. This solves the problem that directly comparing waveform zero crossings or peak points is susceptible to noise and waveform distortion, making it impossible to accurately determine the delay between channels. The maximum value search method fully utilizes the correlation information of the entire sequence, enabling accurate locking of the optimal alignment position even under low signal-to-noise ratio conditions, thereby ensuring the accuracy of the relative delay measurement between each comparison channel and the reference channel.
[0075] In an exemplary embodiment, cross-correlation calculation is performed on the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel to obtain a cross-correlation value sequence of the comparison channel and the reference channel within a preset shift range. This includes: using the digital signal sequence of the reference channel as a reference, performing cross-correlation calculation on the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range to obtain a first cross-correlation value subsequence; and using the digital signal sequence of the comparison channel as a reference, performing cross-correlation calculation on the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range to obtain a second cross-correlation value subsequence; and determining a cross-correlation value sequence based on the first cross-correlation value subsequence and the second cross-correlation value subsequence.
[0076] The first cross-correlation value subsequence refers to the subsequence formed by cross-correlation values obtained by sliding the comparison channel's calculation interval, with the reference channel's digital signal sequence as a reference and the reference channel's calculation interval remaining fixed.
[0077] The second cross-correlation value subsequence refers to the subsequence formed by cross-correlation values obtained by sliding the reference channel's calculation interval, with the digital signal sequence of the comparison channel as the reference and the calculation interval of the comparison channel remaining fixed.
[0078] Optionally, a bidirectional calculation method is used when performing cross-correlation calculations between the current comparison channel and the reference channel. In the first direction calculation, the fixed intervals involved in the calculation of the digital signal sequence of the reference channel remain unchanged, and the participating intervals of the digital signal sequence of the comparison channel are slid within a preset shift range to calculate the cross-correlation values one by one, resulting in a first cross-correlation value subsequence. In the second direction calculation, the fixed intervals involved in the calculation of the digital signal sequence of the comparison channel remain unchanged, and the participating intervals of the digital signal sequence of the reference channel are slid within a preset shift range to calculate the cross-correlation values one by one, resulting in a second cross-correlation value subsequence. The first and second cross-correlation value subsequences are combined and concatenated according to the shift amount to form a complete cross-correlation value sequence.
[0079] In this embodiment, by performing bidirectional cross-correlation calculations using both the reference channel and the comparison channel as references, two cross-correlation value subsequences are obtained and then merged into a complete cross-correlation value sequence. This solves the problem that unidirectional cross-correlation calculations can only cover the positive or negative delay side, resulting in the inability to fully detect both lead and lag delays of the comparison channel relative to the reference channel. The bidirectional calculation method enables the cross-correlation value sequence to completely cover all shift directions within the preset shift range, ensuring accurate detection and quantization regardless of whether the signal in the comparison channel leads or lags the reference channel.
[0080] In an exemplary embodiment, using the digital signal sequence of the reference channel as a reference, cross-correlation calculation is performed on the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range to obtain a first cross-correlation value subsequence. This includes: selecting a first fixed subsequence from the digital signal sequence of the reference channel, and sliding to select multiple first sliding subsequences from the digital signal sequence of the comparison channel based on each shift amount within a preset shift range; performing a dot product summation operation on the first fixed subsequence and each first sliding subsequence to obtain the first cross-correlation value subsequence.
[0081] The first fixed subsequence refers to a continuous sampling point sequence of fixed length selected from the digital signal sequence of the reference channel, which maintains its starting position unchanged during the calculation of the first cross-correlation value subsequence.
[0082] The first sliding subsequence refers to a sequence of continuous sampling points of the same length as the first fixed subsequence, which is selected from the digital signal sequence of the comparison channel according to the current shift amount. Different shift amounts correspond to different first sliding subsequences.
[0083] Among them, the dot product summation operation refers to the operation of multiplying the values at corresponding positions in two sequences of the same length and then adding all the products to obtain a scalar value.
[0084] Optionally, when using the digital signal sequence of the reference channel as a reference, a continuous sequence of length L is first extracted from the digital signal sequence of the reference channel as a first fixed subsequence. For each shift within a preset shift range, a continuous sequence of length L is selected from the digital signal sequence of the comparison channel as the first sliding subsequence corresponding to that shift, wherein the starting position of the first sliding subsequence changes with the shift. The first fixed subsequence and the first sliding subsequence under the current shift are multiplied and summed to obtain a cross-correlation value. All shifts are traversed, and a multiplication and summation operation is performed on each shift, and all the obtained cross-correlation values form the first cross-correlation value subsequence.
[0085] In this embodiment, the first cross-correlation value subsequence is calculated by fixing the calculation interval of the reference channel and sliding the calculation interval of the comparison channel. This solves the problem of difficulty in locating the delay due to the inability to determine which segment of the comparison signal is most similar to the local features of the reference signal. The sliding search method can systematically traverse all possible alignment positions, ensuring that the maximum cross-correlation value is obtained at the position where the features of the reference channel signal and the comparison channel signal are most matched, thereby providing an accurate data basis for subsequent determination of the relative delay.
[0086] In an exemplary embodiment, using the digital signal sequence of the comparison channel as a reference, cross-correlation calculation is performed between the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range to obtain a second cross-correlation value subsequence. This includes: selecting a second fixed subsequence from the digital signal sequence of the comparison channel, and sliding to select multiple second sliding subsequences from the digital signal sequence of the reference channel based on each shift amount within a preset shift range; performing a dot product summation operation on the second fixed subsequence and each second sliding subsequence to obtain the second cross-correlation value subsequence.
[0087] The second fixed subsequence refers to a continuous sampling point sequence of fixed length selected from the digital signal sequence of the comparison channel, which maintains its starting position unchanged during the calculation of the second cross-correlation value subsequence.
[0088] The second sliding subsequence refers to a sequence of continuous sampling points of the same length as the second fixed subsequence, which is selected from the digital signal sequence of the reference channel according to the current shift amount. Different shift amounts correspond to different second sliding subsequences.
[0089] Optionally, when using the digital signal sequence of the comparison channel as a reference, a continuous sequence of length L is first extracted from the digital signal sequence of the comparison channel as a second fixed subsequence. For each shift within a preset shift range, a continuous sequence of length L is selected from the digital signal sequence of the reference channel as the second sliding subsequence corresponding to that shift, wherein the starting position of the second sliding subsequence changes with the shift. The second fixed subsequence is multiplied and summed with the second sliding subsequence under the current shift to obtain a cross-correlation value. This process is repeated for all shifts, performing a multiplication and summation operation on each shift, and all the resulting cross-correlation values form the second cross-correlation value subsequence. The second cross-correlation value subsequence is then merged with the first cross-correlation value subsequence to obtain the complete cross-correlation value sequence.
[0090] In this embodiment, a second cross-correlation value subsequence is calculated by fixing the calculation interval of the comparison channel and sliding the calculation interval of the reference channel. This subsequence complements the first cross-correlation value subsequence, solving the problem that unidirectional sliding cross-correlation calculation cannot capture effective cross-correlation peaks when the comparison channel signal leads the reference channel signal due to the limited sliding direction. The complete coverage of bidirectional cross-correlation calculation ensures that peaks are formed at the correct positions in the cross-correlation value sequence regardless of the delay direction between signals, thus guaranteeing the comprehensiveness and accuracy of relative delay detection.
[0091] Figure 2 This is a schematic diagram of the structure of a multi-channel signal processing system provided in an embodiment of this application, as shown below. Figure 2 As shown, the system includes multiple channels (channel 1 to channel n). Each channel receives wireless signals through an antenna, which are then processed sequentially by an AD conversion unit, a buffer, and an absolute value summation unit. A reference channel is determined by a maximum value solution module, and a composite signal is output through a cross-correlation calculation unit, a relative delay alignment unit, and a signal mixing unit.
[0092] Specifically, the receiver head receives wireless signals and converts them into electrical signals, which are then transmitted to the receiver via cable. The receiver receives the electrical signals from the receiver head and first processes them through an AD conversion module to convert the analog electrical signals into digital signals. For the incoming digital signals, the input buffer for each channel stores the latest 2n data points (the value of n can be determined based on the system's storage resources, typically a sampling length corresponding to 10 symbols), denoted as the sequence ch(x)_reg[i] (where x refers to the channel number, and i is the sequence number 1~2n). The sum of the absolute values of the sequences for each channel is calculated separately. The algorithm calculates the maximum value of `abs_sum(x)` for each channel, defines the channel corresponding to the maximum value as the reference channel, and defines the other channels as comparison channels. Each comparison channel is then subjected to a shift-and-correlation operation with the reference channel. By comparing the cross-correlation values corresponding to each shift, the shift value that maximizes the cross-correlation value is found to determine the relative delay between the current comparison channel and the reference channel. Then, the comparison channels are aligned with the reference channel based on the relative delay. Finally, after aligning the delays of all channels, they are mixed and added together to combine the signals from multiple channels into a single signal, thus obtaining a better RF signal. The specific implementation scheme is as follows: assuming the reference channel is channel one and the comparison channel is channel two, a shift-and-correlation operation is performed on these two channels. The length of the correlation operation is defined as L (the length of L should be less than n, and can be selected according to the computing resources, generally greater than the sampling length corresponding to two symbols). By shifting the operation, the sequence from L / 2 sampled data of the reference channel to L / 2 sampled data of the lead comparison channel is solved, and the correlation operation of the comparison channel is performed with the L data length. For example, when solving the cross-correlation operation value A(j) of the reference channel and the comparison channel, it is essentially to perform a dot product operation and sum the sequence ch1_reg[1]~ch1_reg[L] of the reference channel and the sequence ch2_reg[L / 2-j]~ch2_reg[L / 2+L-1-j] of the comparison channel. At this time, the value of j is 0~(L / 2-1), and its calculation formula is as follows. The cross-correlation values A(0) to A(L / 2-1) are obtained. When calculating the cross-correlation value A(j) of the reference channel leading the comparison channel, the essence is to perform a dot product operation between the sequence ch1_reg[L / 2-j+2] to ch1_reg[L / 2-j+1+L] of the reference channel and the sequence ch2_reg[1] to ch2_reg[L] of the comparison channel, where j takes the value of L / 2 to (L-1). The calculation formula is as follows: The cross-correlation values A(L / 2) to A(L-1) are obtained. After obtaining L cross-correlation values A(0) to A(L-1), the magnitudes of these L cross-correlation values are compared, and the m value corresponding to the maximum value A(m) is recorded as m(x), where x is the channel number of the comparison channel. The reference channel is shifted and correlated with all comparison channels respectively, and then the m(x) value of each comparison channel and the reference channel is obtained. Each comparison channel is time-aligned with the reference channel according to its corresponding m(x) value. Assuming that the current sampling point of the reference channel participating in the mixing is ch1_reg[t], the value of t should be greater than L / 2, then the sampling point aligned between the comparison channel x and the reference channel sampling point ch1_reg[t] should be chx_reg[t+L / 2-m(x)]. The sampling point of the reference channel and the aligned sampling point of the comparison channel are added and mixed to obtain a new sequence. The new sequence is the data after all channels are aligned and then mixed. The new sequence is provided to the subsequent modules for demodulation processing.
[0093] In another embodiment, such as Figure 3 As shown, a multi-channel signal processing method is provided. Taking the application of this method to a receiver as an example, the method includes the following steps:
[0094] Step S302: Obtain digital signal sequences from multiple channels, and determine the signal strength value of each channel based on the digital signal sequences of each channel.
[0095] Step S304: The channel with the highest signal strength value is determined as the reference channel, and the channels other than the reference channel are determined as comparison channels.
[0096] Step S306: Using the digital signal sequence of the reference channel as a reference, perform cross-correlation calculation on the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range to obtain a first cross-correlation value subsequence; and using the digital signal sequence of the comparison channel as a reference, perform cross-correlation calculation on the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range to obtain a second cross-correlation value subsequence.
[0097] Step S308: Determine the cross-correlation value sequence based on the first cross-correlation value subsequence and the second cross-correlation value subsequence.
[0098] Step S310: The shift amount corresponding to the maximum cross-correlation value in the cross-correlation value sequence is determined as the relative delay of the comparison channel relative to the reference channel.
[0099] Step S312: Based on the relative delay of each comparison channel relative to the reference channel, the digital signal sequences of each comparison channel are aligned and mixed with the digital signal sequence of the reference channel to obtain a composite signal.
[0100] It should be noted that the specific limitations of the above steps can be found in the specific limitations of a multi-channel signal processing method described above.
[0101] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0102] The multi-channel signal processing apparatus provided in the embodiments of this application is described below. The multi-channel signal processing apparatus has the same inventive concept as the multi-channel signal processing method described above. The solution to the problem provided by the apparatus is similar to the solution described in the method above. Therefore, the specific limitations of one or more multi-channel signal processing apparatus embodiments provided below can be referred to the limitations of the multi-channel signal processing method above. The multi-channel signal processing apparatus described below and the multi-channel signal processing method described above can be referred to each other, and will not be repeated here.
[0103] In one exemplary embodiment, Figure 4 This is a schematic diagram of the structure of a multi-channel signal processing device provided in an embodiment of this application, as shown below. Figure 4 As shown, the multi-channel signal processing device includes: an acquisition module 402, a determination module 404, a calculation module 406, and an alignment module 408, wherein:
[0104] The acquisition module 402 is used to acquire digital signal sequences of multiple channels and determine the signal strength value of each channel based on the digital signal sequences of each channel.
[0105] The determination module 404 is used to determine the channel with the largest signal strength value as the reference channel, and to determine the channels other than the reference channel as comparison channels;
[0106] The calculation module 406 is used to perform cross-correlation calculation on the digital signal sequence of each comparison channel and the digital signal sequence of the reference channel to determine the relative delay of each comparison channel relative to the reference channel;
[0107] Alignment module 408 is used to align and mix the digital signal sequences of each comparison channel with the digital signal sequence of the reference channel based on the relative delay of each comparison channel relative to the reference channel to obtain a synthesized signal.
[0108] In an exemplary embodiment, the acquisition module 402 is used to determine the signal amplitude value of each sampling point in the digital signal sequence of each channel; and to add the signal amplitude values of each sampling point in the digital signal sequence of each channel to obtain the signal strength value of each channel.
[0109] In an exemplary embodiment, the calculation module 406 is specifically configured to perform cross-correlation calculation on the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel for each comparison channel, to obtain a cross-correlation value sequence between the comparison channel and the reference channel within a preset shift range; and to determine the shift amount corresponding to the maximum cross-correlation value in the cross-correlation value sequence as the relative delay of the comparison channel relative to the reference channel.
[0110] In an exemplary embodiment, the calculation module 406 is specifically configured to perform cross-correlation calculation on the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range, based on the digital signal sequence of the reference channel, to obtain a first cross-correlation value subsequence; and to perform cross-correlation calculation on the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range, based on the digital signal sequence of the comparison channel, to obtain a second cross-correlation value subsequence; and to determine a cross-correlation value sequence based on the first cross-correlation value subsequence and the second cross-correlation value subsequence.
[0111] In an exemplary embodiment, the calculation module 406 is specifically configured to select a first fixed subsequence from the digital signal sequence of the reference channel, and to slide select a plurality of first sliding subsequences from the digital signal sequence of the comparison channel based on each shift amount within a preset shift range; and to perform a dot product summation operation on the first fixed subsequence and each first sliding subsequence to obtain a first cross-correlation value subsequence.
[0112] In an exemplary embodiment, the calculation module 406 is specifically configured to select a second fixed subsequence from the digital signal sequence of the comparison channel, and to slide select a plurality of second sliding subsequences from the digital signal sequence of the reference channel based on each shift amount within a preset shift range; and to perform a dot product summation operation on the second fixed subsequence and each second sliding subsequence to obtain a second cross-correlation value subsequence.
[0113] In one exemplary embodiment, this application also provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of any of the multi-channel signal processing methods described above.
[0114] In one exemplary embodiment, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of any of the multi-channel signal processing methods described above.
[0115] In one exemplary embodiment, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the multi-channel signal processing methods described in the above embodiments.
[0116] Indicatively, such as Figure 5 As shown, Figure 5 This is a schematic diagram of the internal structure of a computer device 500 provided in an embodiment of this application. The computer device 500 can be provided as a server. (Refer to...) Figure 5 The computer device 500 includes a processing component 502, which further includes one or more processors, and memory resources represented by memory 501 for storing instructions, such as application programs, that can be executed by the processing component 502. The application programs stored in memory 501 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 502 is configured to execute instructions to perform the multi-channel signal processing methods of any of the above embodiments.
[0117] The computer device 500 may also include a power supply component 503 configured to perform power management of the computer device 500, a wired or wireless network interface 504 configured to connect the computer device 500 to a network, and an input / output (I / O) interface 505. The computer device 500 may operate on an operating system stored in memory 501, such as Windows Server™, Mac OS X™, Unix™, Linux™, Free BSD™, or similar.
[0118] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0119] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0120] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.
[0121] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A multi-channel signal processing method, characterized in that, The method includes: Acquire digital signal sequences from multiple channels, and determine the signal strength value of each channel based on the digital signal sequences of each channel; The channel with the highest signal strength value is designated as the reference channel, and all other channels besides the reference channel are designated as comparison channels. The digital signal sequence of each comparison channel is cross-correlated with the digital signal sequence of the reference channel to determine the relative delay of each comparison channel relative to the reference channel; Based on the relative delay of each comparison channel relative to the reference channel, the digital signal sequences of each comparison channel are aligned and mixed with the digital signal sequence of the reference channel to obtain a synthesized signal.
2. The method according to claim 1, characterized in that, The step of determining the signal strength value of each channel based on the digital signal sequence of each channel includes: Determine the signal amplitude value of each sampling point in the digital signal sequence of each channel; The signal amplitude values of each sampling point in the digital signal sequence of each channel are added together to obtain the signal strength value of each channel.
3. The method according to claim 1, characterized in that, The step of performing cross-correlation calculations between the digital signal sequence of each comparison channel and the digital signal sequence of the reference channel to determine the relative delay of each comparison channel relative to the reference channel includes: For each comparison channel, a cross-correlation calculation is performed between the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel to obtain a cross-correlation value sequence between the comparison channel and the reference channel within a preset shift range; The shift amount corresponding to the maximum cross-correlation value in the cross-correlation value sequence is determined as the relative delay of the comparison channel relative to the reference channel.
4. The method according to claim 3, characterized in that, The step of performing cross-correlation calculations on the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel to obtain a cross-correlation value sequence between the comparison channel and the reference channel within a preset shift range includes: Using the digital signal sequence of the reference channel as a reference, cross-correlation calculation is performed between the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range to obtain a first cross-correlation value subsequence; and using the digital signal sequence of the comparison channel as a reference, cross-correlation calculation is performed between the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range to obtain a second cross-correlation value subsequence. Based on the first cross-correlation value subsequence and the second cross-correlation value subsequence, a cross-correlation value sequence is determined.
5. The method according to claim 4, characterized in that, The step of using the digital signal sequence of the reference channel as a reference, and performing cross-correlation calculation between the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range to obtain a first cross-correlation value subsequence includes: A first fixed subsequence is selected from the digital signal sequence of the reference channel, and multiple first sliding subsequences are selected from the digital signal sequence of the comparison channel based on each shift amount within a preset shift range; The first fixed subsequence is multiplied and summed with each of the first sliding subsequences to obtain the first cross-correlation value subsequence.
6. The method according to claim 4, characterized in that, The step of using the digital signal sequence of the comparison channel as a reference, and performing cross-correlation calculation between the digital signal sequence of the comparison channel and the digital signal sequence of the reference channel within a preset shift range to obtain a second cross-correlation value subsequence includes: A second fixed subsequence is selected from the digital signal sequence of the comparison channel, and multiple second sliding subsequences are selected from the digital signal sequence of the reference channel based on each shift amount within a preset shift range; The second fixed subsequence is multiplied and summed with each of the second sliding subsequences to obtain the second cross-correlation value subsequence.
7. A multi-channel signal processing device, characterized in that, The device includes: An acquisition module is used to acquire digital signal sequences from multiple channels and determine the signal strength value of each channel based on the digital signal sequences of each channel. The determination module is used to determine the channel with the largest signal strength value as the reference channel, and to determine the channels other than the reference channel as comparison channels; The calculation module is used to perform cross-correlation calculation on the digital signal sequence of each comparison channel and the digital signal sequence of the reference channel to determine the relative delay of each comparison channel relative to the reference channel; An alignment module is used to align and mix the digital signal sequences of each comparison channel with the digital signal sequence of the reference channel based on the relative delay of each comparison channel relative to the reference channel to obtain a synthesized signal.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.