Communication method and device, electronic equipment, chip and medium
By combining spread spectrum modulation and demodulation techniques and optimizing the Bluetooth communication signal processing flow, the problem of long-distance transmission of Bluetooth communication without mobile network was solved, achieving a longer communication distance and stronger anti-interference capability.
Patent Information
- Application Number
- CN202510593522.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2025-08-22
AI Technical Summary
Existing Bluetooth communication technology struggles to achieve long-distance transmission in scenarios without mobile networks, and is limited by frequency drift and shared frequency band interference, making it impossible to effectively extend channel bandwidth to improve communication distance.
By combining spread spectrum modulation and demodulation techniques with FSK, signal transmission is optimized through signal feature detection, gain processing, carrier processing, demodulation, and despreading to achieve long-distance communication.
It more than doubled the transmission distance of Bluetooth communication, improved anti-interference capabilities, and reduced the need for clock accuracy.
Smart Images

Figure CN120529281A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technologies, and in particular to a communication method, device, electronic device, chip, and medium. Background Art
[0002] Bluetooth communication is usually used for short-range wireless communication as a complement to mobile communication on mobile devices. Sometimes, in scenarios where there is no mobile network, it is necessary to use WCN (Wireless Communication Network) for some emergency or low-cost communication.
[0003] Currently, Bluetooth technology uses technologies such as GFSK (Gauss frequency shift keying), QPSK (Quadrature phase shift keying), and 8PSK (8 phase shift keying). After data filtering, it is directly used for modulation and transmission. The channel bandwidth is equivalent to the actual channel bandwidth. Summary of the Invention
[0004] The present disclosure provides a communication method, device, electronic device, chip, and medium.
[0005] The first aspect embodiment of the present disclosure proposes a communication method, which is executed by a receiving end, including: performing signal feature detection and gain processing on a first signal to obtain a second signal, where the first signal is obtained after the transmitting end performs spread spectrum processing on the original signal; performing carrier processing on the second signal to determine the carrier signal; and performing demodulation and despreading processing on the carrier signal to obtain a target signal.
[0006] In some embodiments of the present disclosure, the method further includes: receiving a first signal sent by the transmitting end through a first communication connection, wherein a transmission distance of the first communication connection is smaller than a transmission distance of the second communication connection.
[0007] In some embodiments of the present disclosure, signal feature detection and gain processing are performed on the first signal, including: performing power detection on the first signal to obtain a first power value; based on the first power value and a threshold value, performing linear gain processing and power adjustment on the first signal in sequence to obtain a signal to be processed; based on the signal feature of the signal to be processed, determining the signal to be processed that meets preset conditions to obtain a second signal.
[0008] In some embodiments of the present disclosure, based on the first power value and the threshold value, linear gain processing and power adjustment are performed on the first signal in sequence, including: when the first power value is less than the first threshold value, increasing the power of the first signal by a first preset value, or when the first power value is greater than the first threshold value, reducing the power of the first signal by a second preset value, until the power value of the third signal is equal to the first threshold value, the third signal being the signal after the power of the first signal is increased or decreased; when the power value of the third signal does not reach the target power, adjusting the power value of the third signal to the target power to obtain the signal to be processed.
[0009] In some embodiments of the present disclosure, based on the signal characteristics of the signal to be processed, determining the signal to be processed that meets the preset conditions to obtain a second signal includes: performing power detection on the signal to be processed to obtain a second power value; based on the second power value, the second threshold value and the third threshold value, determining the signal to be processed that meets the preset conditions.
[0010] In some embodiments of the present disclosure, based on the second power value, the second threshold value and the third threshold value, a signal to be processed that meets the preset conditions is determined, including any one of the following: when the second power values obtained from two adjacent power detections are both less than the second threshold value, the signal to be processed is discarded; when the third power value obtained from the first power detection in two adjacent power detections is greater than the third threshold value, and the fourth power value obtained from the second power detection is less than the third threshold value, the signal to be processed is discarded.
[0011] In some embodiments of the present disclosure, the method further includes: performing cumulative averaging processing on the fifth power value corresponding to the signal to be processed that meets the noise condition to obtain noise power, and using the product of the noise power and the first preset value as the second threshold value; performing cumulative averaging processing on the sixth power value corresponding to the signal to be processed that meets the valid signal condition to obtain signal power, and using the product of the signal power and the second preset value as the third threshold value.
[0012] In some embodiments of the present disclosure, based on the signal characteristics of the signal to be processed, a signal to be processed that meets preset conditions is determined to obtain a second signal, including: performing signal characteristic detection on the signal to be processed to obtain a characteristic value; and outputting the signal to be processed whose characteristic value meets the preamble code characteristic to obtain the second signal.
[0013] In some embodiments of the present disclosure, carrier processing is performed on the second signal to determine the carrier signal, including: when the signal length of the second signal is greater than a preset length, performing frequency detection on the second signal to obtain a frequency value; determining a frequency deviation based on the frequency value corresponding to the second signal within a preset symbol period; based on the frequency deviation, performing phase tracking through a local numerically controlled oscillator to obtain a compensation signal; and determining the carrier signal based on the compensation signal and the second signal.
[0014] In some embodiments of the present disclosure, a carrier signal is demodulated and despread to obtain a target signal, including: sampling the carrier signal to determine the phase values of multiple sampling points; taking a preset symbol period as a unit, within a first preset period, taking each sampling point as a starting accumulation point, and accumulating the phase values within a second preset period to obtain multiple accumulated values, the second preset period being greater than half of the preset symbol period and less than the preset symbol period; performing symbol decision based on the maximum value of the multiple accumulated values to obtain a demodulated signal; and performing despreading on the demodulated signal based on the spread spectrum code period to obtain the target signal.
[0015] In some embodiments of the present disclosure, a demodulated signal is despread based on a spread spectrum code period to obtain a target signal, including: determining a correlation length based on the spread spectrum code period, the correlation length being less than the spread spectrum code period; and despreading the demodulated signal based on the correlation length to obtain a target signal.
[0016] In some embodiments of the present disclosure, the method further includes: performing spread spectrum processing on the target signal based on the spread spectrum code period to obtain a spread spectrum signal; and subjecting the spread spectrum signal to filtering processing, modulation processing, and radio frequency amplification processing in sequence to obtain an output signal.
[0017] The second aspect embodiment of the present disclosure proposes a communication device, including: a first processing module, used to perform signal feature detection and gain processing on a first signal to obtain a second signal, the first signal being obtained after the transmitting end performs spread spectrum processing on the original signal; a second processing module, used to perform carrier processing on the second signal to determine the carrier signal; and a third processing module, used to perform demodulation and despreading processing on the carrier signal to obtain a target signal.
[0018] An embodiment of the third aspect of the present disclosure proposes an electronic device, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein the processor is used to execute the method described in any one of the embodiments of the first aspect of the present disclosure when running the computer program.
[0019] The fourth aspect of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to enable a computer to execute the method described in any one of the embodiments of the first aspect of the present disclosure.
[0020] The fifth aspect embodiment of the present disclosure proposes a chip, comprising at least one processor and a communication interface; the communication interface is used to receive signals input into the chip or signals output from the chip, the processor communicates with the communication interface and implements the method described in any one of the embodiments of the first aspect of the present disclosure through logic circuits or execution code instructions.
[0021] In summary, the communication method, apparatus, electronic device, chip, and medium proposed in this disclosure include: performing signal feature detection and gain processing on a first signal to obtain a second signal, where the first signal is obtained by spreading the original signal at the transmitter; performing carrier processing on the second signal to determine the carrier signal; and performing demodulation and despreading on the carrier signal to obtain the target signal. By combining spread spectrum, modulation, demodulation, and despreading, the method proposed in this disclosure can achieve long-distance Bluetooth communication, more than doubling the signal transmission distance while improving anti-interference capabilities.
[0022] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.
[0024] Figure 1 is a schematic diagram of long-distance communication between two devices without mobile communication;
[0025] Figure 2 A flow chart of a communication method proposed in an embodiment of the present disclosure;
[0026] Figure 3 A schematic diagram of the flow of signal feature detection and gain processing proposed in an embodiment of the present disclosure;
[0027] Figure 4 A schematic diagram of the carrier processing process proposed in an embodiment of the present disclosure;
[0028] Figure 5 A schematic diagram of the demodulation process and despreading process according to an embodiment of the present disclosure;
[0029] Figure 6A A flow chart of a transmitting end in a long-distance Bluetooth communication method based on spread spectrum;
[0030] Figure 6B A flowchart of a receiving end in a long-distance Bluetooth communication method based on spread spectrum;
[0031] Figure 6C This is a schematic diagram of the register initial phase;
[0032] Figure 6D It is the flow chart of GFSK modulation module;
[0033] Figure 6E It is a schematic diagram of time domain and frequency domain response;
[0034] Figure 6Fis the gain control flow chart;
[0035] Figure 6G is the gain control flow chart;
[0036] Figure 6H Schematic diagram of carrier recovery;
[0037] Figure 6I This is a schematic diagram of GFSK demodulation;
[0038] Figure 7 A schematic diagram of the structure of a communication device proposed in an embodiment of the present disclosure;
[0039] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;
[0040] Figure 9 A schematic diagram of the structure of a chip provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0041] The following describes in detail embodiments of the present disclosure, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0042] Currently, Bluetooth systems have low frequency accuracy requirements. Simply reducing the actual channel bandwidth will prevent the reception of out-of-band signals due to frequency drift. Furthermore, due to the high interference in the shared frequency band under the current standard bandwidth and the high crystal oscillator precision required by narrowband systems, wireless communication will be affected, making long-distance data transmission and reception impossible.
[0043] Therefore, the present disclosure provides a communication method, such as Figure 1 As shown, it is a schematic diagram of long-distance communication between two devices without mobile communication, where long-distance communication is, for example, the interconnection of devices in scenes such as the wild, at sea, and in the desert.
[0044] The present disclosure combines spread spectrum modulation and demodulation technology with FSK to achieve long-distance communication without mobile communication.
[0045] The communication method and communication device provided in this application will be described in detail below with reference to the accompanying drawings.
[0046] The following embodiments of the present disclosure may be applied to WCN communication systems, and may also be applied to other communication systems, such as optical communication systems, satellite communication systems, wired communication systems, etc., which are not limited by the present disclosure.
[0047] The embodiments of the present disclosure can be applied to Long Term Evolution (LTE), LTE-Advanced (LTE-A), LTE-Beyond (LTE-B), SUPER 3G, IMT-Advanced, 4th generation mobile communication system (4G), 5th generation mobile communication system (5G), 5G New Radio (NR), 6th generation mobile communication system (6G), Future Radio Access (FRA), New Radio Access Technology (RAT), New Radio (NR), New Radio Access (NX), Future Generation Radio Access (FX), Global System for Mobile Communications (GSM (registered trademark)), CDMA2000, Ultra Mobile Broadband (UMB), IEEE 802.11 (Wi-Fi (registered trademark)), IEEE 802.16 (WiMAX (registered trademark)), IEEE 802.20, Ultra-WideBand (UWB), Bluetooth (registered trademark), Public Land Mobile Network (PLMN) networks, Device-to-Device (D2D) systems, Machine-to-Machine (M2M) systems, Internet of Things (IoT) systems, Vehicle-to-Everything (V2X), systems utilizing other communication methods, and next-generation systems based on and extending these methods. Furthermore, multiple systems may be combined (for example, a combination of LTE or LTE-A with 5G).
[0048] Figure 2 This is a flow chart of a communication method proposed in an embodiment of the present disclosure. Figure 2 As shown, the following steps are included:
[0049] Step 201: perform signal feature detection and processing on the first signal to obtain a second signal.
[0050] In some embodiments, the first signal is obtained by the transmitting end performing spread spectrum processing on the original signal.
[0051] In some embodiments, the receiving end receives the first signal sent by the transmitting end through a first communication connection, and the transmission distance of the first communication connection is shorter than the transmission distance of the second communication connection.
[0052] In some embodiments, the first communication connection is, for example, a Bluetooth connection, and the second communication connection is, for example, a Wi-Fi connection or other wireless communication connection, which is not limited in the present disclosure.
[0053] In some embodiments, signal feature detection is, for example, detecting the amplitude characteristics, frequency characteristics, timing characteristics, phase characteristics, power characteristics, etc. of the signal to determine the characteristic value corresponding to the signal, such as detecting the amplitude characteristics of the signal to obtain the amplitude value of the signal, or detecting the frequency characteristics of the signal to obtain the frequency value of the signal, or detecting the timing characteristics of the signal to obtain the frequency value of the signal, or detecting the power characteristics of the signal to obtain the power value of the signal, etc. In different embodiments or different processes in the embodiments, the specific characteristics targeted by the signal feature detection may be different or the same, and this disclosure is not limited to this.
[0054] In some embodiments, the signal feature detection may be performed on a digital signal after analog-to-digital conversion of the first signal.
[0055] In some embodiments, the gain processing is, for example, comparing a characteristic value of a signal characteristic with a preset threshold, and adjusting the characteristic value of the corresponding signal characteristic by increasing or decreasing the characteristic value.
[0056] In some embodiments, the gain processing may be performed by multiplying the digital signal by a scaling factor (such as implemented by FPGA or DSP) through AGC (Automatic Gain Control) to dynamically compensate for the deficiency of analog gain.
[0057] In some embodiments, gain processing can be performed by introducing a certain threshold control, through coarse gain adjustment and fine gain adjustment, to adjust the signal power to the required power. The threshold setting can be customized according to specific scenarios or needs.
[0058] In some embodiments, by setting a certain threshold in the gain processing, frequent signal misdetection due to noise or filter ringing effect can be avoided.
[0059] In some embodiments, the gain processing can improve the signal quality of the signal received by the receiving end for subsequent processing and better restore the information of the original signal.
[0060] In some embodiments, by combining signal feature detection with gain processing, an effective second signal can be obtained to improve the effectiveness of subsequent processing processes and further improve data transmission efficiency.
[0061] Step 202: Perform carrier processing on the second signal to determine a carrier signal.
[0062] In some embodiments, carrier processing can be through any of the following methods: phase-locked loop (PLL)-based carrier recovery, preamble / pilot-assisted carrier recovery, blind estimation method (without pilot assistance), digital domain carrier recovery, etc., which is not limited by the present disclosure.
[0063] In some embodiments, carrier processing can be achieved through closed-loop synchronization technology (such as PLL, Costas Loop) or open-loop estimation and compensation. Specifically, it can be achieved by calculating the carrier frequency / phase offset and performing carrier processing through phase shift keying or frequency shift keying, so that the receiving end can complete carrier recovery based on the deviation.
[0064] In the above embodiment, the carrier processing process can ensure timing and phase alignment, thereby reducing the requirement for clock accuracy.
[0065] Step 203: Demodulate and despread the carrier signal to obtain the target signal.
[0066] In some embodiments, the demodulation processing of the carrier signal can be to select a demodulation method corresponding to the modulation processing method performed by the transmitting end, for example, if the transmitting end adopts BPSK modulation, the receiving end adopts BPSK demodulation, or if the transmitting end adopts FSK modulation, the receiving end uses non-coherent demodulation or coherent demodulation.
[0067] In some embodiments, a specific method for demodulating the carrier signal may be to perform accumulation calculations on the sampling points within a fixed period to make an independent decision on each symbol, thereby removing some of the effects of noise.
[0068] In some embodiments, the despreading process may be to perform despreading on the demodulated signal according to a despreading code that is consistent with the spreading code used in the spreading process.
[0069] In some embodiments, despreading can be performed using a despreading code shorter than the spreading code used in the spread spectrum process. Because the starting position of the valid signal has already been determined by gain processing and carrier processing, despreading can be achieved using a despreading code period shorter than the spreading code period, thereby reducing computational complexity and improving processing efficiency. Furthermore, since the frequency offset can be identified after despreading, the original signal can be obtained after removing the frequency offset, reducing accuracy requirements.
[0070] In the above embodiment, gain processing, carrier processing, demodulation, and despreading processing are performed in sequence based on the signal characteristics of the received signal in the digital domain to achieve recovery of the effective signal, further improving the efficiency and distance of data transmission, achieving anti-interference effects, and reducing the requirements for clock accuracy in narrowband applications.
[0071] Figure 3 This is a flow chart of signal feature detection and gain processing proposed in the embodiment of the present disclosure. Figure 2 The embodiment shown, as Figure 3 As shown, the method includes the following steps.
[0072] Step 301: Perform power detection on a first signal to obtain a first power value.
[0073] In some embodiments, performing power detection on the first signal may be performing power detection on the first signal after analog-to-digital conversion to obtain a first power value, so as to determine the first power value.
[0074] For example, the signal energy of 3 to 4 us is detected to determine whether it is saturated or the energy is too low.
[0075] Step 302: Based on the first power value and the threshold value, linear gain processing and power adjustment are sequentially performed on the first signal to obtain a signal to be processed.
[0076] In some embodiments, the threshold value may be a preset fixed value, or may be a threshold value calculated in real time during the processing process, which is not limited in the present disclosure.
[0077] In some embodiments, there may be multiple threshold values. By setting different threshold values, the gain of the signal can be processed multiple times to output a valid signal.
[0078] In some embodiments, based on the first power value and the threshold value, linear gain processing and power adjustment are performed on the first signal in sequence, including: when the first power value is less than the first threshold value, the power of the first signal is increased by a first preset value, or when the first power value is greater than the first threshold value, the power of the first signal is reduced by a second preset value, until the power value of the third signal is equal to the first threshold value, and the third signal is the signal after the power of the first signal is increased or decreased; when the power value of the third signal does not reach the target power, the power value of the third signal is adjusted to the target power to obtain the signal to be processed.
[0079] In some embodiments, the first threshold value may be a preset fixed power value, and its value may be defined according to different scenarios or requirements, which is not limited in the present disclosure.
[0080] In some embodiments, the first preset value and the second preset value may be fixed values of a preset linear processing process. For example, the first preset value may be 20 dB, and the second preset value may be 40 dB.
[0081] For example, Figure 6F and Figure 6G The flowchart shown detects 3-4 μs signal energy, determines saturation or low energy, adjusts the gain to the channel linear range, and then fine-tunes the gain to achieve the target power input of the ADC.
[0082] In some embodiments, when the first power value is less than the first threshold value, the power of the first signal is increased by a first preset value, which may be to amplify the first power value by times the first preset value to increase the output power of the signal.
[0083] For example, Figure 6F and Figure 6G As shown in the flowchart, after the signal is input, it undergoes energy detection and is compared with the threshold value. If the ADC energy is too small and the energy is less than the threshold value, it is increased by 20dB.
[0084] In some embodiments, when the first power value is greater than the first threshold value, reducing the power of the first signal by a second preset value may be performed by reducing the first power value by times the second preset value to reduce the output power of the signal.
[0085] For example, Figure 6F and Figure 6G As shown in the flowchart, after the signal is input, it undergoes energy detection and is compared with the threshold value. If the ADC energy is saturated and the energy is greater than the threshold value, it is reduced by 40dB.
[0086] In some embodiments, the power value of the first signal is compared with the first threshold value, and multiple rounds of linear adjustment are performed until the power value is adjusted to the first threshold value to obtain the third signal, thereby completing the linear gain processing.
[0087] In the above embodiment, the power of the first signal is linearly gain-adjusted based on the first threshold value, so that the power of the first signal can be quickly adjusted to the first threshold value.
[0088] In some embodiments, when the power value of the third signal does not reach the target power, the power value of the third signal is adjusted to the target power. The power value of the third signal may be gain-adjusted based on the target power so that the output power reaches the target power.
[0089] In some embodiments, the target power may be a target power corresponding to an analog-to-digital converter.
[0090] In some embodiments, the power value of the third signal is compared with the target power. If the power value of the third signal reaches the target power, there is no need to continue to adjust the gain. If the power value of the third signal does not reach the target power, the power value of the third signal is fine-tuned to achieve the target power input to obtain the signal to be processed.
[0091] In the above embodiment, a certain threshold control is introduced, and gain linear adjustment and gain fine adjustment are performed respectively to avoid frequent signal misdetection due to noise or filter ringing effect.
[0092] Step 303: Based on the signal characteristics of the signal to be processed, determine the signal to be processed that meets the preset conditions to obtain a second signal.
[0093] In some embodiments, based on the signal characteristics of the signal to be processed, determining the signal to be processed that meets the preset conditions includes: performing power detection on the signal to be processed to obtain a second power value; based on the second power value, the second threshold value and the third threshold value, determining the signal to be processed that meets the preset conditions.
[0094] In some embodiments, the second threshold value and the third threshold value may be obtained through calculation during the signal feature detection process.
[0095] In some embodiments, based on the second power value, the second threshold value and the third threshold value, determining that the signal to be processed meets the preset conditions includes any one of the following: when the second power values obtained by two adjacent power detections are both less than the second threshold value, the signal to be processed is discarded; when the third power value obtained by the first power detection in two adjacent power detections is greater than the third threshold value, and the fourth power value obtained by the second power detection is less than the third threshold value, the signal to be processed is discarded.
[0096] In some embodiments, the second threshold value and the third threshold value can be determined by: performing cumulative averaging processing on the fifth power value corresponding to the signal to be processed that meets the noise condition to obtain the noise power, and multiplying the noise power by the first preset value as the second threshold value; performing cumulative averaging processing on the sixth power value corresponding to the signal to be processed that meets the valid signal condition to obtain the signal power, and multiplying the signal power by the second preset value as the third threshold value.
[0097] In some embodiments, the noise condition may be that the power value is within the power range of the noise, so that a plurality of fifth power values that meet the noise condition are accumulated and calculated, and an average value is taken to obtain the noise power.
[0098] In some embodiments, the valid signal condition may be that the power value is within the power range of the valid signal, so the sixth power values of multiple valid signals are accumulated and calculated, and the average value is taken to obtain the signal power.
[0099] In some embodiments, the first preset value and the second preset value may be pre-set fixed values, which may be set according to different scenarios or requirements, and channel conditions, and this disclosure does not limit this.
[0100] In some embodiments, the second threshold value is a product of a first preset value and noise power, and the third threshold value is a product of a second preset value and signal power.
[0101] For example, the first preset value is 2.5, and the second preset value is 0.5.
[0102] In some embodiments, based on the second power value, the second threshold value and the third threshold value, determining that the signal to be processed meets the preset conditions can be determining a valid signal in the signal to be processed, including any of the following items: when the second power values obtained by two adjacent power detections are both less than the second threshold value, the signal to be processed is discarded; when the third power value obtained by the first power detection in two adjacent power detections is greater than the third threshold value, and the fourth power value obtained by the second power detection is less than the third threshold value, the signal to be processed is discarded.
[0103] In some embodiments, two adjacent power detections are performed on the same signal. If the second power values obtained from the two power detections are both less than the second threshold value; or when the third power value obtained from the first power detection is greater than the third threshold value, and the fourth power value obtained from the second power detection is less than the third threshold value, then the signal is an invalid signal and needs to be discarded.
[0104] In some embodiments, if the power values of the signal to be processed do not meet the aforementioned invalid signal conditions, it is a valid signal, and the signal to be processed determined to be a valid signal is output to obtain the second signal.
[0105] For example, Figure 6F As shown in the schematic diagram, when two adjacent ADC energies are less than threshold control 1, or when the first ADC energy is greater than threshold control 2 and the second ADC energy is less than threshold control 2, it indicates that there is no valid signal, signal = 0; otherwise, signal = 1 is output.
[0106] In the above embodiment, the second threshold and the third threshold are used to determine the power, which can obtain a valid signal. However, missed detection may occur during long-distance energy detection. Therefore, the following method can be used to determine the second signal.
[0107] In some embodiments, based on the signal characteristics of the signal to be processed, determining the signal to be processed that meets the preset conditions includes: performing signal characteristic detection on the signal to be processed to obtain a characteristic value; outputting the signal to be processed whose characteristic value meets the preamble code characteristics to obtain a second signal.
[0108] In some embodiments, the preamble feature may include a repeated periodic subsequence to enable the receiving end to complete time synchronization (ie, determine the signal starting position) and frequency synchronization (ie, compensate for carrier offset).
[0109] In some embodiments, signal feature detection may be detecting the amplitude feature, frequency feature, timing feature, phase feature, power feature, etc. of the signal to determine the feature value corresponding to the signal, which is not limited in this disclosure.
[0110] In some embodiments, the characteristic value is compared with the preamble code characteristic. If the preamble code characteristic is not satisfied, the signal is an invalid signal. If the preamble code characteristic is satisfied, the signal is a valid signal.
[0111] For example, Figure 6G The flowchart shown is used to detect and judge the signal characteristics. If the Preamble (preamble code) characteristics are not satisfied, start_flag = 0, and the next signal is detected and judged; if the Preamble characteristics are satisfied, start_flag = 1, and the signal is output.
[0112] In the above embodiment, compared with the method of determining a valid signal by using the second threshold value and the third threshold value, determining by using the preamble code feature can achieve a better processing effect.
[0113] In the above embodiment, by performing gain linear processing and gain fine-tuning on the signal, and by judging the valid signal, the receiving end can filter out the invalid signal in the signal after spread spectrum, obtain the valid signal and send it to the subsequent processing process, thereby achieving better signal processing effect, improving data transmission efficiency and better data demodulation effect.
[0114] Figure 4 This is a flowchart of the carrier processing proposed in the embodiment of the present disclosure. Figure 2-3 The embodiment shown, as Figure 4 As shown, the following steps are included:
[0115] Step 401: When the signal length of the second signal is greater than a preset length, frequency detection is performed on the second signal to obtain a frequency value.
[0116] In some embodiments, after obtaining a valid signal after gain processing, the length of the signal is judged. If the signal length of the second signal is too short, frequency detection is not performed on it. If the signal length is greater than a preset length, frequency detection is performed to further filter out interference signals.
[0117] In some embodiments, the preset length may be a pre-set length value, the specific value of which is not limited by the present disclosure and can be customized according to the scenario or channel conditions.
[0118] For example, when the AGC determines that a signal is entering, it detects the length of the signal at the same time. If it is too short, it actively gives up the detection and waits for a valid signal input. When the signal length exceeds the BT packet header length, it starts signal carrier processing.
[0119] Step 402: Determine a frequency deviation based on a frequency value corresponding to the second signal within a preset symbol period.
[0120] In some embodiments, the preset symbol period may be a pre-set symbol period.
[0121] In some embodiments, the frequency deviation is determined based on the frequency value corresponding to the second signal within the preset symbol period. The frequency values corresponding to multiple second signals within the preset symbol period are accumulated and calculated, and the average value is taken as the frequency deviation.
[0122] For example, a reasonable selection of the initial phase of the KP channel will make carrier recovery easier, such as Figure 6H As shown in the figure: During the KP initial phase, the phase of the received signal changes linearly. By taking the signal within several symbol periods for frequency detection and averaging it, the transmit and receive carrier deviation can be easily calculated.
[0123] Step 403: Based on the frequency deviation, phase tracking is performed by a local numerically controlled oscillator to obtain a compensation signal.
[0124] In some embodiments, phase tracking is performed through a local numerically controlled oscillator based on frequency deviation, and correction can be performed by adjusting the frequency output of the local numerically controlled oscillator to ensure that the frequency of the received signal is consistent with the signal generated by the local numerically controlled oscillator, thereby obtaining a compensation signal.
[0125] Step 404: Determine a carrier signal based on the compensation signal and the second signal.
[0126] In some embodiments, the carrier signal is determined based on the compensation signal and the second signal, and the carrier signal may be obtained by multiplying the compensation signal and the second signal.
[0127] For example, after the frequency deviation is calculated, the local DCO is used to generate a carrier for phase tracking, and finally the opposite DCO frequency is multiplied by the input signal to remove the frequency difference effect.
[0128] In the above embodiment, the frequency deviation is determined to generate a reverse frequency deviation signal through a local numerically controlled oscillator, and the frequency deviation of the received signal is offset in the frequency domain, so as to achieve rapid frequency deviation correction.
[0129] Figure 5 This is a flow chart of the demodulation process and despreading process proposed in the embodiment of the present disclosure. Figure 2-Figure 4 The embodiment shown, Figure 5 right Figure 2 Step 203 in is further described as follows: Figure 5 As shown, the following steps are included:
[0130] Step 501: Sample the carrier signal and determine phase values of multiple sampling points.
[0131] In some embodiments, the carrier signal is sampled so that a phase value at each sampling point can be obtained.
[0132] Step 502 : Taking a preset symbol period as a unit, within a first preset period, taking each sampling point as a starting accumulation point, and accumulating the phase values within a second preset period to obtain a plurality of accumulated values.
[0133] In some embodiments, the second predetermined period is greater than half of the predetermined symbol period and less than the predetermined symbol period.
[0134] In some embodiments, the preset symbol period is, for example, fs_N=1M / 125K=8, the second preset period is, for example, fs_N / 2+1, and the first preset period is, for example, 1.5 times the preset symbol period.
[0135] In some embodiments, within the first preset period, phase values at multiple sampling points within the second preset period are accumulated, starting with each sampling point. Each accumulation calculation yields an accumulated value, thereby yielding multiple accumulated values. These multiple accumulated values serve as the accumulated values within the current preset symbol period. In other words, each symbol corresponds to one preset symbol period.
[0136] For example, the sampling points are selected as follows Figure 6I As shown in the schematic diagram, fs_N / 2+1 accumulations are performed within 1.5 symbol periods. For example, the first sampling point corresponds to Sum1, the second sampling point corresponds to Sum2, and so on, to obtain multiple accumulated values.
[0137] Step 503: Perform symbol decision based on the maximum value of the multiple accumulated values to obtain a demodulated signal.
[0138] In some embodiments, when the frequency modulated signal is modulated at positive and negative frequencies, the signal phase changes in opposite directions. Based on this characteristic, the phase changes are accumulated within a second preset period. When synchronization is used, the absolute value of the accumulated value is maximum or minimum, so the maximum value of the accumulated value can be used for symbol judgment.
[0139] In some embodiments, each symbol can be independently judged. When judging the next symbol, the first accumulation point is moved back one preset symbol period. For the next symbol within the first preset period, each sampling point is used as the starting accumulation point in turn, and the phase value within the second preset period is accumulated and calculated. The maximum value of the multiple accumulated values is used for symbol judgment of the next symbol, thereby obtaining a demodulated signal.
[0140] For example, Figure 6I As shown, each symbol is judged independently, and when the next symbol is judged, the initial accumulation point is added with fs_N (1M / 125K=8 in this solution).
[0141] In the above embodiment, the phase values are accumulated and calculated according to the second preset period, and the maximum value of the accumulated value is used for symbol decision, which can remove the influence of some noises.
[0142] Step 504: Despread the demodulated signal based on the spreading code period to obtain the target signal.
[0143] In some embodiments, despreading the demodulated signal based on the spreading code period includes: determining a correlation length based on the spreading code period, the correlation length being less than the spreading code period; and despreading the demodulated signal based on the correlation length to obtain a target signal.
[0144] In some embodiments, the correlation length is determined based on the spreading code period. The correlation length may be equal to the spreading code period or less than the spreading code period. Specifically, since the initial signal position is already known during carrier processing, the number of correlation peak calculations can be reduced during despreading. Therefore, the correlation length may be selected to be less than the spreading code period.
[0145] In some embodiments, the spread spectrum code period is, for example, 1023, and the correlation length can be 512 or 256. The specific correlation length can be determined by setting corresponding determination rules according to different scenarios or requirements. For example, if hardware resources are not pursued, 512 can be taken. If hardware resources are not pursued and high efficiency is required, 256 can be taken. If the hardware resources requirements are high, 1023 can be taken.
[0146] For example, if the spreading code period is 1023, the KP correlation detection may only need to perform a few correlation peak calculations, and the correlation length may be set to 512 (to avoid ambiguity in the spreading periodicity).
[0147] In some embodiments, the method further includes: performing spread spectrum processing on the target signal based on the spread spectrum code period to obtain a spread spectrum signal; and subjecting the spread spectrum signal to filtering processing, modulation processing, and radio frequency amplification processing in sequence to obtain an output signal.
[0148] In some embodiments, the process of spreading and modulating the signal and then sending it by the receiving end is the same as the way the transmitting end sends the first signal through the first communication connection.
[0149] In some embodiments, the receiving end performs spread spectrum processing on the target signal based on the spread spectrum code period. The spread spectrum method that can be used can be any one of direct sequence spread spectrum, frequency hopping spread spectrum, time hopping spread spectrum, linear frequency modulation, etc., which is not limited by the present disclosure.
[0150] For example, Figure 6A In the flow chart shown, the channel bandwidth is 125KHz and the data rate is 12.5Kbps. By adding the SS spread spectrum module, the data is spread to 125Kbps.
[0151] For example, based on complexity and performance, a 10th-order m-sequence with a period of 1023 is used to generate a polynomial. Selecting the simplest generating polynomial can simplify the hardware circuit design. The polynomial is as follows: G(x) = 1 + x^3 + x^10. The circuit can be implemented using a shift register, such as Figure 6C As shown, the register initial phase is the pseudo code address.
[0152] In some embodiments, the spread spectrum signal is sequentially processed through filtering, modulation, and RF amplification.
[0153] In some embodiments, the filtering process may be to process the spread spectrum signal through a Gaussian filter.
[0154] For example, according to the following Gaussian equation and Figure 6E The time domain and frequency domain responses are shown in Figure 2, where B is the filter bandwidth.
[0155]
[0156] The above analog equation is digitally sampled and truncated with a rectangular window to obtain a Gaussian digital filter. The key parameters are as follows: (1) Modulation coefficient: The larger the modulation coefficient, the wider the symbol bandwidth and the smaller the inter-symbol interference. In this solution, mod_idx = 0.5, the same as the BT spec, is selected to ensure compatibility with bandwidth and inter-symbol interference performance. (2) BTb: The bandwidth of the Gaussian filter, where Tb is the symbol period after spread spectrum and B is the bandwidth ratio. To reduce ICI (adjacent channel interference) and ISI (inter-symbol interference), B = 0.5.
[0157] In some embodiments, the modulation process may be FSK modulation combined with an integrator.
[0158] For example, the change of the actual phase is simulated by the integrator, which is the accumulation of the discrete phases at all past moments. The coefficient πh / Tb needs to be multiplied to ensure that the modulation coefficient does not change.
[0159] For example, the integrated phase signal is frequency modulated by direct phase modulation:
[0160] I(n)=cos(f(n))
[0161] Q(n)=i*sin(f(n))
[0162] In some embodiments, RF amplification processing can be processing and antenna matching of the modulated signal, such as signal amplification, optimizing the impedance matching between the antenna and the RF circuit, ensuring maximum signal transmission efficiency, and reducing reflection loss.
[0163] In the above embodiment, the target signal corresponding to the original signal is restored through demodulation and despreading.
[0164] In summary, the communication method proposed in the present disclosure realizes long-distance transmission of signals by combining spread spectrum with modulation, demodulation and despreading, thereby increasing the signal transmission distance to more than twice the transmission distance in the current related technology, and through the gain control process, improves the anti-interference ability and achieves better data transmission effect.
[0165] The following is a specific implementation of a long-distance Bluetooth communication method based on spread spectrum:
[0166] Figure 6A This is the flow chart of the sending end in this solution, such as Figure 6A As shown in FIG, the channel bandwidth is 125KHz and the data rate is 12.5Kbps. By adding an SS spread spectrum module at the transmitting end, the data is spread to 125Kbps.
[0167] Figure 6BThis is the flow chart of the receiving end in this solution, such as Figure 6B As shown, the physical channel bandwidth is reduced from 1M to 125KHz to reduce interference from other 2.4G bands. By adding a De-SS despreading module on the receiving end, the residual interference in other bands is further reduced and the 12.5Kbps data is restored.
[0168] The following describes the module functions and specific processing procedures in the above block diagram:
[0169] 1. Modulation process
[0170] 1. SS spread spectrum module
[0171] Based on complexity and performance, a 10th-order m-sequence with a period of 1023 is used. There are several options for the generating polynomial, as shown in Table 1:
[0172] Table 1:
[0173] Feedback coefficient (octal) 2011 2033 2157 2443 2745 3471
[0174] Selecting the simplest generating polynomial can simplify the hardware circuit design. The polynomial is as follows: G(x) = 1 + x^3 + x^10. The circuit can be implemented using a shift register, such as Figure 6C As shown, the register initial phase is the pseudo code address.
[0175] 2. GFSK modulation module
[0176] like Figure 6D The flow chart shown in FIG. 4 shows that upsampling uses 8 times more sampling to reduce the sinc distortion of the DAC conversion and reduce the bandwidth requirement of the analog filter.
[0177] 3. Gaussian filter
[0178] According to the following Gaussian equation and Figure 6E The time domain and frequency domain responses are shown in Figure 2, where B is the filter bandwidth.
[0179]
[0180] The above analog equation is digitally sampled and truncated with a rectangular window to obtain a Gaussian digital filter. The key parameters are as follows:
[0181] (1) Modulation coefficient: The larger the modulation coefficient, the wider the symbol bandwidth and the smaller the inter-symbol interference. In this solution, mod_idx=0.5, the same as BTspec, is selected to achieve compatible bandwidth and inter-symbol interference performance.
[0182] (2) BTb: Gaussian filter bandwidth, Tb is the symbol period after spread spectrum, and B is the bandwidth ratio. To reduce ICI (adjacent channel interference) and ISI (inter-symbol interference), B is set to 0.5.
[0183] 4. Integrator
[0184] The integral simulates the actual phase change, which is the accumulation of all discrete phases at past moments. It needs to be multiplied by the coefficient πh / Tb to ensure that the modulation coefficient does not change.
[0185] 5. FSK
[0186] The integrated phase signal is directly phase modulated to achieve signal frequency modulation:
[0187] I(n)=cos(f(n))
[0188] Q(n)=i*sin(f(n))
[0189] 2. Demodulation Process
[0190] The simulation design uses the specified maximum power of 20dBm and a 125kHz channel bandwidth. Gaussian white noise is added to simulate channel interference.
[0191] 1. AGC gain control module
[0192] Power control: such as Figure 6F and Figure 6G The flowchart shown detects 3-4 μs signal energy, determines saturation or low energy, adjusts the gain to the channel linear range, and then fine-tunes the gain to achieve the target power input of the ADC.
[0193] Threshold control: To avoid frequent signal misdetection due to noise or filter ringing effect, a certain threshold control is introduced.
[0194] Method 1: Figure 6F The flowchart shown:
[0195] The signal is input, energy detection is performed, and then compared with the threshold value. If the ADC energy is too small (energy is less than the threshold value), the signal is increased by 20dB. If the ADC energy is saturated (energy is greater than the threshold value), the signal is reduced by 40dB. Energy detection is performed again until the energy is equal to or close to the threshold value, and then gain fine-tuning is performed. Among them, gain fine-tuning is to directly adjust the current power to the ADC power according to the ADC power and output it.
[0196] Calculate threshold control 1 and threshold control 2, where threshold control 1 is a cumulative average value of 2.5 times the noise power, and threshold control 2 is a cumulative average value of 0.5 times the signal power.
[0197] When two adjacent ADC energies are less than threshold control 1, or when the first ADC energy is greater than threshold control 2 and the second ADC energy is less than threshold control 2, it means there is no valid signal, signal = 0; otherwise, signal = 1 is output.
[0198] Method 2 Figure 6G As shown in the flowchart, method 1 is prone to missed detection during long-distance energy detection, so it can be removed. Figure 6F In the boxed portion of the flowchart shown, the method in method 2 can achieve better processing results than method 1.
[0199] The signal is input, energy detection is performed, and then compared with the threshold value. If the ADC energy is too small (energy is less than the threshold value), the signal is increased by 20dB. If the ADC energy is saturated (energy is greater than the threshold value), the signal is reduced by 40dB. Energy detection is performed again until the energy is equal to or close to the threshold value, and then gain fine-tuning is performed. Among them, gain fine-tuning is to directly adjust the current power to the ADC power according to the ADC power and output it.
[0200] Perform signal feature detection and feature judgment. If the Preamble feature is not satisfied, start_flag = 0, and detect and judge the next signal; if the Preamble feature is satisfied, start_flag = 1, and the signal is output.
[0201] 2. Carrier recovery
[0202] When the AGC determines that a signal is entering, it will detect the length of the signal at the same time. If it is too short, it will actively give up the detection and wait for a valid signal input. When the signal length exceeds the BT packet header length, it will start signal carrier processing.
[0203] Reasonable selection of the initial phase of the KP channel will make carrier recovery easier, such as Figure 6H As shown in the figure: During the KP initial phase, the phase of the received signal changes linearly. By taking the signal within several symbol periods for frequency detection and averaging it, the transmit and receive carrier deviation can be easily calculated.
[0204] After calculating the frequency deviation, the local DCO is used to generate a carrier for phase tracking. Finally, the opposite DCO frequency is multiplied by the input signal to remove the frequency difference.
[0205] 3. GFSK demodulation
[0206] When an FM signal is modulated at positive and negative frequencies, the signal phase changes in opposite directions. Based on this characteristic, when accumulating phase changes within a symbol period, the absolute value of the accumulated value is maximized or minimized when synchronization is used.
[0207] The sampling point can be selected in the following way: within 1.5 symbol periods, perform fs_N / 2+1 accumulations and select the point with the largest absolute value for symbol decision. The advantage of this is that it can remove some of the noise influence. Figure 6I As shown, each symbol is judged independently. When the next symbol is judged, the initial accumulation point is added with fs_N (the sampling point of each symbol, in this solution, is 1M / 125K=8).
[0208] 4. Despreading module
[0209] This solution selects a spread spectrum code period of 1023. Different initial phases correspond to different random sequences, with a total of 1023 possibilities. Each initial phase is the address of the corresponding spread spectrum code. At the same time, due to the ambiguity of the transmission phase, certain correlation technologies are required to achieve address and phase tracking. Whether a simple system uses the same spread spectrum code, such as a fixed initial phase of "1111111111", or a more complex spread spectrum system uses different address codes to distinguish devices, if the address mapping is completed by the transceiver at the beginning of the connection, then there is no need to perform multiple correlation detections when tracking the receiving code phase. Because the transmitted preamble code and the spread spectrum phase have a direct correspondence, after carrier recovery, the initial position of the signal is already clear (due to channel and AGC influence, the first few bits need to be discarded). Therefore, KP correlation detection can only perform a few correlation peak calculations, and the correlation length can be set to 512 (to avoid ambiguity in the spread spectrum periodicity).
[0210] In summary, the above solution has the following beneficial effects:
[0211] 1. Increased the signal transmission distance by more than two times;
[0212] 2. Improved anti-interference capability in shared channel conditions;
[0213] 3. Reduces the need for clock accuracy in narrowband applications.
[0214] Figure 7 FIG. 1 is a schematic diagram of the structure of the communication device according to an embodiment of the present disclosure. Figure 7 Shown, including:
[0215] The first processing module 701 is configured to perform signal feature detection and gain processing on the first signal to obtain a second signal. The first signal is obtained after the transmitting end performs spread spectrum processing on the original signal.
[0216] The second processing module 702 is configured to perform carrier processing on the second signal to determine a carrier signal.
[0217] The third processing module 703 is configured to perform demodulation and despreading processing on the carrier signal to obtain a target signal.
[0218] In some embodiments, the communication device further includes a transceiver module for receiving a first signal sent by the transmitting end through a first communication connection, and a transmission distance of the first communication connection is smaller than a transmission distance of the second communication connection.
[0219] In some embodiments, the first processing module is also used to perform power detection on the first signal to obtain a first power value; based on the first power value and the threshold value, linear gain processing and power adjustment are performed on the first signal in sequence to obtain a signal to be processed; based on the signal characteristics of the signal to be processed, the signal to be processed that meets the preset conditions is determined to obtain a second signal.
[0220] In some embodiments, the first processing module is also used to increase the power of the first signal by a first preset value when the first power value is less than the first threshold value, or to reduce the power of the first signal by a second preset value when the first power value is greater than the first threshold value, until the power value of the third signal is equal to the first threshold value, and the third signal is the signal after the power of the first signal is increased or decreased; when the power value of the third signal does not reach the target power, the power value of the third signal is adjusted to the target power to obtain the signal to be processed.
[0221] In some embodiments, the first processing module is further configured to perform power detection on the signal to be processed to obtain a second power value; and determine the signal to be processed that meets a preset condition based on the second power value, the second threshold value, and the third threshold value.
[0222] In some embodiments, the first processing module is also used to discard the signal to be processed when the second power values obtained from two adjacent power detections are both less than the second threshold value; and discard the signal to be processed when the third power value obtained from the first power detection in two adjacent power detections is greater than the third threshold value, and the fourth power value obtained from the second power detection is less than the third threshold value.
[0223] In some embodiments, the first processing module is further used to perform cumulative averaging processing on the fifth power value corresponding to the signal to be processed that meets the noise condition to obtain noise power, and use the product of the noise power and the first preset value as the second threshold value; perform cumulative averaging processing on the sixth power value corresponding to the signal to be processed that meets the valid signal condition to obtain signal power, and use the product of the signal power and the second preset value as the third threshold value.
[0224] In some embodiments, the first processing module is further configured to perform signal feature detection on the signal to be processed to obtain a feature value; and output the signal to be processed whose feature value satisfies the preamble feature to obtain a second signal.
[0225] In some embodiments, the second processing module is also used to perform frequency detection on the second signal to obtain a frequency value when the signal length of the second signal is greater than a preset length; determine the frequency deviation based on the frequency value corresponding to the second signal within a preset symbol period; based on the frequency deviation, perform phase tracking through a local numerically controlled oscillator to obtain a compensation signal; and determine the carrier signal based on the compensation signal and the second signal.
[0226] In some embodiments, the third processing module is also used to sample the carrier signal and determine the phase values of multiple sampling points; taking the preset symbol period as a unit, within the first preset period, each sampling point is used as the starting accumulation point, and the phase value within the second preset period is accumulated and calculated to obtain multiple accumulated values, and the second preset period is greater than half of the preset symbol period and less than the preset symbol period; based on the maximum value of the multiple accumulated values, symbol judgment is performed to obtain a demodulated signal; based on the spread spectrum code period, the demodulated signal is despread to obtain the target signal.
[0227] In some embodiments, the third processing module is further configured to determine a correlation length based on a spreading code period, where the correlation length is less than the spreading code period; and perform despreading processing on the demodulated signal based on the correlation length to obtain a target signal.
[0228] In some embodiments, the third processing module is further used to perform spread spectrum processing on the target signal based on the spread spectrum code period to obtain a spread spectrum signal; and to sequentially process the spread spectrum signal through filtering processing, modulation processing, and RF amplification processing to obtain an output signal.
[0229] In summary, the communication device proposed in the present disclosure can achieve long-distance Bluetooth communication by combining spread spectrum, modulation and demodulation, and despreading, increasing the signal transmission distance by more than two times and improving the anti-interference ability.
[0230] Figure 8 FIG. 8 is a structural diagram of an electronic device 800 for implementing the above communication method according to an exemplary embodiment.
[0231] Reference Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0232] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
[0233] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0234] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0235] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0236] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0237] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.
[0238] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor assembly 814 can also detect changes in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and temperature changes of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0239] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR (NewRadio) or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0240] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0241] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0242] The embodiments of the present disclosure further provide a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the communication method described in the above embodiments of the present disclosure.
[0243] An embodiment of the present disclosure further provides a computer program product, including a computer program, which executes the communication method described in the above embodiment of the present disclosure when a processor is used.
[0244] Figure 9 FIG. 1 is a schematic structural diagram of a chip 900 for implementing the above communication method according to an exemplary embodiment. Figure 9 The chip 900 includes at least one communication interface 901 and a processor 902. The communication interface 901 is used to receive signals input into the chip 900 or signals output from the above chip 900. The processor 902 communicates with the communication interface 901 and implements the communication method described in the above embodiments of the present disclosure through logic circuits or executing code instructions.
[0245] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.
[0246] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with an embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, the illustrative use of the above terms does not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0247] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present disclosure belong.
[0248] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processing module, or other system that can fetch instructions from and execute instructions on an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection having one or more wires (control method), a portable computer disk cartridge (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). Furthermore, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing it in a suitable manner if necessary, and then storing it in a computer memory.
[0249] It should be understood that the various parts of the embodiments of the present disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0250] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0251] In addition, the functional units in the various embodiments of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into a module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, etc.
[0252] Although the embodiments of the present disclosure have been shown and described above, it is understood that the above embodiments are exemplary and are not to be construed as limitations on the present disclosure. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present disclosure.
Claims
1. A communication method, characterized in that: The method is executed by a receiving end and includes: Performing signal feature detection and gain processing on the first signal to obtain a second signal, where the first signal is obtained by performing spread spectrum processing on the original signal by the transmitting end; performing carrier processing on the second signal to determine a carrier signal; The carrier signal is demodulated and despread to obtain a target signal.
2. The method according to claim 1, characterized in that The method further comprises: The first signal sent by the transmitting end is received through a first communication connection, where a transmission distance of the first communication connection is shorter than a transmission distance of the second communication connection.
3. The method according to claim 1, characterized in that The performing signal feature detection and gain processing on the first signal includes: Performing power detection on the first signal to obtain a first power value; Based on the first power value and the threshold value, sequentially performing linear gain processing and power adjustment on the first signal to obtain a signal to be processed; Based on the signal characteristics of the signal to be processed, a signal to be processed that meets a preset condition is determined to obtain the second signal.
4. The method according to claim 3, characterized in that The sequentially performing linear gain processing and power adjustment on the first signal based on the first power value and the threshold value includes: When the first power value is less than a first threshold value, the power of the first signal is increased by a first preset value, or when the first power value is greater than the first threshold value, the power of the first signal is reduced by a second preset value, until the power value of the third signal is equal to the first threshold value, the third signal being a signal obtained by increasing or decreasing the power of the first signal; When the power value of the third signal does not reach the target power, the power value of the third signal is adjusted to the target power to obtain the signal to be processed.
5. The method according to claim 3, characterized in that The determining, based on the signal characteristics of the signal to be processed, a signal to be processed that meets a preset condition to obtain the second signal includes: Performing power detection on the signal to be processed to obtain a second power value; Based on the second power value, the second threshold value and the third threshold value, a signal to be processed that meets the preset condition is determined.
6. The method according to claim 5, characterized in that The determining, based on the second power value, the second threshold value, and the third threshold value, the signal to be processed that meets the preset condition includes any one of the following: When the second power values obtained from two adjacent power detections are both less than the second threshold value, discarding the signal to be processed; In a case where the third power value obtained by the first power detection in two adjacent power detections is greater than the third threshold value and the fourth power value obtained by the second power detection is less than the third threshold value, the signal to be processed is discarded.
7. The method according to claim 5, characterized in that The method further comprises: Performing cumulative averaging processing on the fifth power values corresponding to the signal to be processed that meets the noise condition to obtain noise power, and multiplying the noise power by the first preset value as the second threshold value; The sixth power value corresponding to the signal to be processed that meets the valid signal condition is cumulatively averaged to obtain signal power, and the product of the signal power and the second preset value is used as the third threshold value.
8. The method according to claim 3, characterized in that The determining, based on the signal characteristics of the signal to be processed, a signal to be processed that meets a preset condition to obtain the second signal includes: Performing signal feature detection on the signal to be processed to obtain a feature value; The signal to be processed whose characteristic value meets the preamble code characteristic is output to obtain the second signal.
9. The method according to claim 1, characterized in that The performing carrier processing on the second signal to determine a carrier signal includes: When the signal length of the second signal is greater than a preset length, performing frequency detection on the second signal to obtain a frequency value; determining a frequency deviation based on a frequency value corresponding to the second signal within a preset symbol period; Based on the frequency deviation, phase tracking is performed by a local numerically controlled oscillator to obtain a compensation signal; The carrier signal is determined based on the compensation signal and the second signal.
10. The method according to claim 9, characterized in that The demodulating and despreading the carrier signal to obtain a target signal includes: Sampling the carrier signal to determine phase values of multiple sampling points; Taking the preset symbol period as a unit, within a first preset period, sequentially taking each sampling point as a starting accumulation point, accumulating and calculating the phase value within a second preset period to obtain a plurality of accumulated values, wherein the second preset period is greater than half of the preset symbol period and less than the preset symbol period; Performing symbol decision based on a maximum value among the multiple accumulated values to obtain a demodulated signal; Based on the spreading code period, the demodulated signal is subjected to the despreading process to obtain the target signal.
11. The method according to claim 10, characterized in that The performing the despreading process on the demodulated signal based on the spreading code period to obtain the target signal includes: determining a correlation length based on the spreading code period, wherein the correlation length is less than the spreading code period; Based on the correlation length, the demodulated signal is subjected to the despreading process to obtain the target signal.
12. The method according to claim 11, characterized in that The method further comprises: Based on the spreading code period, performing spread spectrum processing on the target signal to obtain a spread spectrum signal; The spread spectrum signal is sequentially processed through filtering, modulation, and radio frequency amplification to obtain an output signal.
13. A communication device, characterized in that: include: a first processing module, configured to perform gain processing and signal feature detection on the first signal to obtain a second signal, wherein the first signal is obtained after the transmitting end performs spread spectrum processing on the original signal; a second processing module, configured to perform carrier processing on the second signal to determine a carrier signal; The third processing module is used to perform demodulation and despreading processing on the carrier signal to obtain a target signal.
14. An electronic device, characterized in that: include: a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the method according to any one of claims 1 to 12.
15. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-12.
16. A chip, characterized in that: The method comprises at least one processor and a communication interface; the communication interface is used to receive a signal input to the chip or a signal output from the chip, and the processor communicates with the communication interface and implements the method as described in any one of claims 1 to 12 through a logic circuit or executing code instructions.