Communication enhanced MCU chip and signal processing method
By adding channel detection module and adaptive encoding module to the MCU chip, the encoding strategy is dynamically adjusted, and the problem of poor adaptability of traditional technologies to channel changes is solved, thereby enhancing error correction capabilities in harsh channel environments and saving in good channel environments The effect of the resource.
Patent Information
- Application Number
- CN202411118578.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2044-08-14
AI Technical Summary
Traditional wireless communication technology is poorly adaptable to channel changes and cannot provide sufficient redundant encoding to correct errors in harsh channel environments, resulting in a degradation of communication quality. Providing too much redundant encoding in a good channel environment leads to waste of resources.
Design a communication-enhanced MCU chip, including a channel detection module and an adaptive coding module, detect channel parameters in real time and adjust the encoding strategy dynamically, use channel parameters to perform adaptive coding, adaptive channel changes, and increase redundant coding in harsh channel environments In this way, redundant encoding is reduced in a good channel environment.
Improve the adaptability of channel changes, enhance error correction capabilities, ensure communication quality, and save communication resources and avoid resource waste.
Smart Images

Figure CN119182632A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal processing technology, and in particular to a communication-enhanced MCU chip and a signal processing method. Background Art
[0002] With the rapid development of applications such as the Internet of Things, mobile Internet, industrial control, and smart homes, the demand for efficient and reliable wireless communications is increasing. Especially in the Internet of Things, a large number of sensors and devices need to transmit data wirelessly. How to maintain stable and reliable communication performance in a complex and changeable wireless channel environment has become the focus of current research.
[0003] Traditional wireless communication technology generally adds redundant information to the transmitted signal so that the receiving end can detect and correct errors in the transmission. Common coding rules include convolutional coding, Turbo coding and LDPC coding.
[0004] However, traditional technologies have poor adaptability to channel changes. When the channel conditions are poor, they cannot provide sufficient redundant coding to correct errors in transmission, resulting in a decrease in communication quality. When the channel conditions are good, they provide too much redundant coding, resulting in a waste of communication resources. Summary of the invention
[0005] In view of the above-mentioned problems, the present application is proposed to provide a communication-enhanced MCU chip and a signal processing method that overcome the problems or at least partially solve the problems, including: A communication-enhanced MCU chip, comprising: a channel detection module, a signal generation module and an adaptive coding module; The channel detection module is connected to the wireless communication module; the channel detection module sends a test signal to the wireless communication module; when receiving a test return signal from the wireless communication module, the channel detection module compares the test signal and the test return signal to obtain a channel parameter signal; The signal generation module is connected to the adaptive coding module; the signal generation module sends the initial signal to the adaptive coding module; The adaptive coding module is connected to the channel detection module and the wireless communication module respectively; when receiving the initial signal, the adaptive coding module obtains the channel parameter signal from the channel detection module, encodes the initial signal using the channel parameter signal to obtain a coded signal, and sends the coded signal to the wireless communication module.
[0006] Preferably, the channel detection module includes a test signal generator, a return signal receiver, a channel parameter calculation unit, a first analog-to-digital converter and a first digital-to-analog converter; The test signal generator is connected to the wireless communication module through the first digital-to-analog converter; the test signal generator generates a test signal, converts it into an analog signal through the first digital-to-analog converter and sends it to the wireless communication module; The return signal receiver is connected to the wireless communication module through the first analog-to-digital converter; the first analog-to-digital converter converts the received test return signal into a digital signal and sends it to the return signal receiver; The test signal generator and the return signal receiver are respectively connected to the channel parameter calculation unit; the test signal generator sends the test signal to the channel parameter calculation unit; the return signal receiver sends the test return signal to the channel parameter calculation unit; the channel parameter calculation unit compares the test signal and the test return signal to obtain a channel parameter signal.
[0007] Preferably, the signal generating module comprises a microcontroller, a first memory, a second analog-to-digital converter and a communication interface; The first memory is connected to the communication interface through the second analog-to-digital converter; the second analog-to-digital converter converts the analog signal input by the communication interface into a digital signal and sends it to the first memory for storage; The microcontroller is connected to the first memory and the adaptive coding module respectively. The microcontroller generates an initial signal according to the storage data in the first memory and sends the initial signal to the adaptive coding module.
[0008] Preferably, the adaptive coding module comprises a coding parameter control unit, a convolutional encoder, a second memory and a second digital-to-analog converter; The coding parameter control unit is connected to the channel detection module and the convolution encoder respectively; the coding parameter control unit obtains the channel parameter signal from the channel detection module, adjusts the coding parameter according to the channel parameter signal, and sends the coding parameter to the convolution encoder; The second memory is connected to the encoding parameter control unit; the second memory stores the encoding parameters; The convolution encoder is connected to the wireless communication module through the second digital-to-analog converter; the convolution encoder performs convolution encoding on the initial signal according to the encoding parameters, converts it into an analog signal through the second digital-to-analog converter and sends it to the wireless communication module.
[0009] Preferably, the wireless communication module includes at least one of a 4G module, a 5G module, a WiFi module and a Bluetooth module.
[0010] A signal processing method based on the MCU chip described in any one of the above items, comprising: When receiving the initial signal, the adaptive coding module obtains a channel parameter signal from the channel detection module; The adaptive coding module encodes the initial signal according to the channel parameter signal to obtain a coded signal; The adaptive encoding module sends the encoded signal to the wireless communication module.
[0011] Preferably, the channel parameter signal includes a signal-to-noise ratio and a bit error rate; and the step of the adaptive coding module encoding the initial signal according to the channel parameter signal to obtain an encoded signal includes: The adaptive coding module determines the code rate, constraint length and highest order of the generator polynomial of the convolution coding according to the signal-to-noise ratio and the bit error rate, and generates a polynomial combination according to the code rate, constraint length and highest order; The adaptive coding module performs convolution coding on the initial signal through the polynomial combination to obtain a coded signal.
[0012] Preferably, the adaptive coding module determines the code rate, constraint length and highest order of the generator polynomial of the convolutional coding according to the signal-to-noise ratio and the bit error rate, and generates the polynomial combination according to the code rate, constraint length and highest order, including: The adaptive coding module calculates the bit rate according to the following formula: ; in, is the bit rate, is the signal-to-noise ratio, is the bit error rate, , , , are constants respectively; The adaptive coding module calculates the constraint length according to the following formula: ; in, is the constraint length, is the signal-to-noise ratio, is the bit error rate, , , are constants respectively; The adaptive coding module calculates the highest order according to the following formula: ; in, is the highest order, is the signal-to-noise ratio, is the bit error rate, , , are constants respectively; The adaptive coding module randomly generates a coefficient array for each generator polynomial; wherein the coefficient corresponding to the highest power is set to 1; The adaptive coding module generates a polynomial combination according to the code rate, the constraint length, the highest order and the coefficient array.
[0013] Preferably, the step of performing convolution encoding on the initial signal by the adaptive encoding module through the polynomial combination to obtain the encoded signal comprises: For the input bit of the initial signal at each moment, the adaptive coding module calculates the output bit according to the following formula: ; in, is the j-th output bit at time t, For the moment The input bit, is the constraint length, is the i-th generator polynomial of the j-th group.
[0014] Preferably, it also includes: The adaptive coding module sends the coding parameter signal processed by coding to the wireless communication module.
[0015] This application has the following advantages: In an embodiment of the present application, in contrast to the problem of poor adaptability to channel changes in the prior art, the present application provides a solution of adding a channel detection module to detect channel parameters in real time, and using an adaptive coding module to adaptively encode the transmission signal using the channel parameters, specifically: "A communication-enhanced MCU chip, comprising: a channel detection module, a signal generation module and an adaptive coding module; the channel detection module is connected to a wireless communication module; the channel detection module sends a test signal to the wireless communication module; when receiving a test return signal from the wireless communication module, the channel detection module compares the test signal with the test return signal to obtain a channel parameter signal; the signal generation module is connected to the adaptive coding module; the signal generation module sends an initial signal to the adaptive coding module; the adaptive coding module is respectively connected to the channel detection module and the wireless communication module; when receiving the initial signal, the adaptive coding module obtains the channel parameter signal from the channel detection module, encodes the initial signal using the channel parameter signal to obtain a coded signal, and sends the coded signal to the wireless communication module". By adding a channel detection module to detect channel parameters in real time, and using an adaptive coding module to adaptively encode the transmission signal using the channel parameters, the adaptability to channel changes can be improved. When the channel conditions are poor, redundant coding can be added to enhance the error correction capability and ensure communication quality. When the channel conditions are good, redundant coding can be reduced to save communication resources, thereby avoiding resource waste while ensuring communication reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 This is a first circuit block diagram of a communication-enhanced MCU chip provided in one embodiment of the present application; Figure 2 This is a second circuit block diagram of a communication-enhanced MCU chip provided in an embodiment of the present application; Figure 3 It is a circuit logic diagram of a communication-enhanced MCU chip and a Bluetooth module provided in an embodiment of the present application; Figure 4 It is a circuit logic diagram of a 4G module or a 5G module provided in an embodiment of the present application; Figure 5 is a circuit logic diagram of a WiFi module provided in an embodiment of the present application; Figure 6 It is a flowchart of the steps of a signal processing method provided in one embodiment of the present application. DETAILED DESCRIPTION
[0018] In order to make the objects, features and advantages of the present application more obvious and understandable, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0019] Reference Figure 1-5 In one embodiment of the present application, a communication-enhanced MCU chip is provided, including: a channel detection module, a signal generation module and an adaptive coding module; The channel detection module is connected to the wireless communication module; the channel detection module sends a test signal to the wireless communication module; when receiving a test return signal from the wireless communication module, the channel detection module compares the test signal and the test return signal to obtain a channel parameter signal; The signal generation module is connected to the adaptive coding module; the signal generation module sends the initial signal to the adaptive coding module; The adaptive coding module is connected to the channel detection module and the wireless communication module respectively; when receiving the initial signal, the adaptive coding module obtains the channel parameter signal from the channel detection module, encodes the initial signal using the channel parameter signal to obtain a coded signal, and sends the coded signal to the wireless communication module.
[0020] In the embodiments of the present application, relative to the problem of poor adaptability to channel changes in the prior art, the present application provides a solution of adding a channel detection module to detect channel parameters in real time, and using an adaptive coding module to adaptively encode the transmission signal using the channel parameters. By adding a channel detection module to detect channel parameters in real time, and using an adaptive coding module to adaptively encode the transmission signal using the channel parameters, the adaptability to channel changes can be improved. When the channel condition is bad, redundant coding can be added to enhance the error correction capability and ensure the communication quality. When the channel condition is good, redundant coding can be reduced to save communication resources, thereby avoiding resource waste while ensuring communication reliability.
[0021] Next, the MCU chip in this exemplary embodiment will be further described.
[0022] In one embodiment of the present application, the channel detection module includes a test signal generator, a return signal receiver, a channel parameter calculation unit, a first analog-to-digital converter, and a first digital-to-analog converter; The test signal generator is connected to the wireless communication module through the first digital-to-analog converter; the test signal generator generates a test signal, converts it into an analog signal through the first digital-to-analog converter and sends it to the wireless communication module; The return signal receiver is connected to the wireless communication module through the first analog-to-digital converter; the first analog-to-digital converter converts the received test return signal into a digital signal and sends it to the return signal receiver; The test signal generator and the return signal receiver are respectively connected to the channel parameter calculation unit; the test signal generator sends the test signal to the channel parameter calculation unit; the return signal receiver sends the test return signal to the channel parameter calculation unit; the channel parameter calculation unit compares the test signal and the test return signal to obtain a channel parameter signal.
[0023] In one embodiment of the present application, the signal generation module includes a microcontroller, a first memory, a second analog-to-digital converter, and a communication interface; The first memory is connected to the communication interface through the second analog-to-digital converter; the second analog-to-digital converter converts the analog signal input by the communication interface into a digital signal and sends it to the first memory for storage; The microcontroller is connected to the first memory and the adaptive coding module respectively. The microcontroller generates an initial signal according to the storage data in the first memory and sends the initial signal to the adaptive coding module.
[0024] In an embodiment of the present application, the adaptive coding module includes a coding parameter control unit, a convolutional encoder, a second memory and a second digital-to-analog converter; The coding parameter control unit is connected to the channel detection module and the convolution encoder respectively; the coding parameter control unit obtains the channel parameter signal from the channel detection module, adjusts the coding parameter according to the channel parameter signal, and sends the coding parameter to the convolution encoder; The second memory is connected to the encoding parameter control unit; the second memory stores the encoding parameters; The convolution encoder is connected to the wireless communication module through the second digital-to-analog converter; the convolution encoder performs convolution encoding on the initial signal according to the encoding parameters, converts it into an analog signal through the second digital-to-analog converter and sends it to the wireless communication module.
[0025] In one embodiment of the present application, the wireless communication module includes at least one of a 4G module, a 5G module, a WiFi module, and a Bluetooth module. By adopting the wireless communication module of multiple communication standards, it can adapt to different application scenarios and provide a flexible communication solution.
[0026] Reference Figure 6 In one embodiment of the present application, a signal processing method of the MCU chip based on any one of the above embodiments is provided, including: S110, when receiving the initial signal, the adaptive coding module obtains a channel parameter signal from the channel detection module; S120, the adaptive coding module encodes the initial signal according to the channel parameter signal to obtain a coded signal; S130. The adaptive encoding module sends the encoded signal to the wireless communication module.
[0027] Next, the signal processing method in this exemplary embodiment will be further described.
[0028] As described in step S110, when the initial signal is received, the adaptive coding module obtains a channel parameter signal from the channel detection module.
[0029] The signal generation module is used to convert the data to be transmitted (such as text, audio, video, etc.) into an initial signal (digital signal) and send it to the adaptive encoding module.
[0030] The channel detection module is used for detecting channel parameters in real time to generate a channel parameter signal.
[0031] In an embodiment of the present application, the channel detection method includes: The channel detection module sends a test signal to the wireless communication module; When receiving the test return signal after passing through the channel from the wireless communication module, the channel detection module compares the test signal with the test return signal to obtain a channel parameter signal.
[0032] As an example, the channel parameter signal includes a signal-to-noise ratio and a bit error rate; the step of the channel detection module comparing the test signal and the test return signal to obtain the channel parameter signal includes: The channel detection module calculates the power of the test signal, calculates the noise power in the test return signal, and calculates the signal-to-noise ratio according to the following formula: ; (1) Where SNR is the signal-to-noise ratio, is the power of the test signal, To test the noise power in the return signal; The channel detection module counts the total number of transmitted bits corresponding to the test signal, counts the total number of error bits corresponding to the test return signal, and calculates the bit error rate according to the following formula: ; (2) in, is the bit error rate, is the total number of transmitted bits corresponding to the test signal, The total number of error bits corresponding to the test return signal.
[0033] When receiving the initial signal from the signal generating module, the adaptive coding module obtains the channel parameter signal from the channel detecting module.
[0034] As described in step S120, the adaptive coding module encodes the initial signal according to the channel parameter signal to obtain a coded signal.
[0035] The adaptive coding module dynamically adjusts the coding strategy for the initial signal according to the channel parameter signal to improve the reliability and efficiency of signal transmission.
[0036] As an example, the channel parameter signal includes a signal-to-noise ratio and a bit error rate; and the step of the adaptive coding module encoding the initial signal according to the channel parameter signal to obtain a coded signal includes: The adaptive coding module determines the code rate, constraint length and highest order of the generator polynomial of the convolution coding according to the signal-to-noise ratio and the bit error rate, and generates a polynomial combination according to the code rate, constraint length and highest order; Specifically, the adaptive coding module calculates the bit rate according to the following formula: ; (3) in, is the bit rate, is the signal-to-noise ratio, is the bit error rate, , , , are constants respectively; The adaptive coding module calculates the constraint length according to the following formula: ; (4) in, is the constraint length, is the signal-to-noise ratio, is the bit error rate, , , are constants respectively; The adaptive coding module calculates the highest order according to the following formula: ; (5) in, is the highest order, is the signal-to-noise ratio, is the bit error rate, , , are constants respectively; The adaptive coding module randomly generates a coefficient array for each generator polynomial; wherein the coefficient corresponding to the highest power is set to 1; The adaptive coding module generates a polynomial combination according to the bit rate, the constraint length, the highest order and the coefficient array; The adaptive coding module performs convolution coding on the initial signal through the polynomial combination to obtain a coded signal; Specifically, for the input bit of the initial signal at each moment, the adaptive coding module calculates the output bit according to the following formula: ; (6) in, is the j-th output bit at time t, For the moment The input bit, is the constraint length, is the i-th generator polynomial of the j-th group.
[0037] As described in step S130, the adaptive encoding module sends the encoded signal to the wireless communication module.
[0038] After the encoding is completed, the adaptive encoding module sends the encoded signal to the wireless communication module.
[0039] In particular, the adaptive coding module also sends the coding parameter signal of the coding process to the wireless communication module so that the receiving end decodes and processes the coded signal according to the coding parameter signal; wherein the coding parameter signal includes the code rate, the constraint length, the highest order and the polynomial combination.
[0040] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0041] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0042] The above is a detailed introduction to a communication-enhanced MCU chip and a signal processing method provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A communication-enhanced MCU chip, characterized in that: include: Channel detection module, signal generation module and adaptive coding module; The channel detection module is connected to the wireless communication module; the channel detection module sends a test signal to the wireless communication module; when receiving a test return signal from the wireless communication module, the channel detection module compares the test signal and the test return signal to obtain a channel parameter signal; The signal generation module is connected to the adaptive coding module; the signal generation module sends the initial signal to the adaptive coding module; The adaptive coding module is connected to the channel detection module and the wireless communication module respectively; when receiving the initial signal, the adaptive coding module obtains the channel parameter signal from the channel detection module, encodes the initial signal using the channel parameter signal to obtain a coded signal, and sends the coded signal to the wireless communication module.
2. The MCU chip according to claim 1, characterized in that: The channel detection module includes a test signal generator, a return signal receiver, a channel parameter calculation unit, a first analog-to-digital converter and a first digital-to-analog converter; The test signal generator is connected to the wireless communication module through the first digital-to-analog converter; the test signal generator generates a test signal, converts it into an analog signal through the first digital-to-analog converter and sends it to the wireless communication module; The return signal receiver is connected to the wireless communication module through the first analog-to-digital converter; the first analog-to-digital converter converts the received test return signal into a digital signal and sends it to the return signal receiver; The test signal generator and the return signal receiver are respectively connected to the channel parameter calculation unit; the test signal generator sends the test signal to the channel parameter calculation unit; the return signal receiver sends the test return signal to the channel parameter calculation unit; the channel parameter calculation unit compares the test signal and the test return signal to obtain a channel parameter signal.
3. The MCU chip according to claim 1, characterized in that: The signal generation module includes a microcontroller, a first memory, a second analog-to-digital converter and a communication interface; The first memory is connected to the communication interface through the second analog-to-digital converter; the second analog-to-digital converter converts the analog signal input by the communication interface into a digital signal and sends it to the first memory for storage; The microcontroller is connected to the first memory and the adaptive coding module respectively. The microcontroller generates an initial signal according to the storage data in the first memory and sends the initial signal to the adaptive coding module.
4. The MCU chip according to claim 1, characterized in that: The adaptive coding module includes a coding parameter control unit, a convolutional encoder, a second memory and a second digital-to-analog converter; The coding parameter control unit is connected to the channel detection module and the convolution encoder respectively; the coding parameter control unit obtains the channel parameter signal from the channel detection module, adjusts the coding parameter according to the channel parameter signal, and sends the coding parameter to the convolution encoder; The second memory is connected to the encoding parameter control unit; the second memory stores the encoding parameters; The convolution encoder is connected to the wireless communication module through the second digital-to-analog converter; the convolution encoder performs convolution encoding on the initial signal according to the encoding parameters, converts it into an analog signal through the second digital-to-analog converter and sends it to the wireless communication module.
5. The MCU chip according to claim 1, characterized in that: The wireless communication module includes at least one of a 4G module, a 5G module, a WiFi module and a Bluetooth module.
6. A signal processing method based on the MCU chip according to any one of claims 1 to 5, characterized in that: include: When receiving the initial signal, the adaptive coding module obtains a channel parameter signal from the channel detection module; The adaptive coding module encodes the initial signal according to the channel parameter signal to obtain a coded signal; The adaptive encoding module sends the encoded signal to the wireless communication module.
7. The signal processing method according to claim 6, characterized in that: The channel parameter signal includes a signal-to-noise ratio and a bit error rate; the step of the adaptive coding module encoding the initial signal according to the channel parameter signal to obtain an encoded signal includes: The adaptive coding module determines the code rate, constraint length and highest order of the generator polynomial of the convolution coding according to the signal-to-noise ratio and the bit error rate, and generates a polynomial combination according to the code rate, constraint length and highest order; The adaptive coding module performs convolution coding on the initial signal through the polynomial combination to obtain a coded signal.
8. The signal processing method according to claim 7, characterized in that: The adaptive coding module determines the code rate, constraint length and highest order of the generator polynomial of the convolution coding according to the signal-to-noise ratio and the bit error rate, and generates a polynomial combination according to the code rate, constraint length and highest order, including: The adaptive coding module calculates the bit rate according to the following formula: ; in, is the bit rate, is the signal-to-noise ratio, is the bit error rate, , , , are constants respectively; The adaptive coding module calculates the constraint length according to the following formula: ; in, is the constraint length, is the signal-to-noise ratio, is the bit error rate, , , are constants respectively; The adaptive coding module calculates the highest order according to the following formula: ; in, is the highest order, is the signal-to-noise ratio, is the bit error rate, , , are constants respectively; The adaptive coding module randomly generates a coefficient array for each generator polynomial; wherein the coefficient corresponding to the highest power is set to 1; The adaptive coding module generates a polynomial combination according to the code rate, the constraint length, the highest order and the coefficient array.
9. The signal processing method according to claim 7, characterized in that: The step of performing convolution encoding on the initial signal by the adaptive encoding module through the polynomial combination to obtain the encoded signal comprises: For the input bit of the initial signal at each moment, the adaptive coding module calculates the output bit according to the following formula: ; in, is the j-th output bit at time t, For the moment The input bit, is the constraint length, is the i-th generator polynomial of the j-th group.
10. The signal processing method according to claim 6, characterized in that: Also includes: The adaptive coding module sends the coding parameter signal processed by coding to the wireless communication module.
Citation Information
Patent Citations
Intelligent underwater wireless optical communication system
CN107317634A
Very-low-frequency electromagnetic wave downloading method based on adaptive coded modulation
CN117478269A
Adaptive modulation coding method based on USRP
CN117834085A
Signal processing method and device, terminal and storage medium
CN118157814A
Baseband signal coding method based on LDPC (Low Density Parity Check) code
CN118473597A
