Reflection compensation circuit for a controller, controller, method and device
By combining differential amplifiers, variable gain amplifier circuits, and feedback loop modules, the problems of signal distortion and noise interference in CAN chips under complex environments are solved, thereby improving CAN communication quality and system performance.
Patent Information
- Application Number
- CN202411371586.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2044-09-29
AI Technical Summary
Existing CAN chips are unstable in long-distance transmission, high-speed communication, or complex environments, resulting in signal distortion that affects the accuracy and reliability of data transmission, thus becoming a bottleneck for building automation systems.
By employing a differential amplifier module, a variable gain amplifier circuit module, and a feedback loop module, signal reflection monitoring and automatic compensation are achieved through differential amplification, gain amplification, and feedback signal adjustment, thereby reducing signal distortion and noise interference.
It improves the quality of CAN communication, ensures the stability and accuracy of data transmission, and enhances the compatibility of CAN chips and the overall performance of the system.
Smart Images

Figure CN119254564B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of controller area network, and in particular to a reflection compensation circuit of a controller, a controller, a method and equipment. BACKGROUND
[0002] With the rapid development of controller area network (CAN) technology, CAN chips are increasingly widely applied, such as in the technical field of building automation systems.
[0003] Specifically, in the field of building automation systems and the like, CAN protocol plays an important role as a key communication protocol. However, there are some technical problems with CAN chips on the market at present, such as instability of the performance of CAN chips under conditions of long-distance transmission, high-speed communication or interference, which leads to problems such as a decrease in data transmission rate and an increase in delay; and for example, under complex environments, CAN chips are prone to signal distortion problems, especially when transmitting over long distances, CAN signals can be reflected and distorted, affecting the accuracy and reliability of data transmission. This brings challenges to the stability and reliability of building automation systems, especially when facing complex environments and large-scale system deployment, the affected CAN chips can become a bottleneck in the system, affecting the overall performance and reliability of the system. SUMMARY
[0004] Therefore, the present application provides a reflection compensation circuit of a controller, a controller, a method and equipment to solve the problem of poor CAN communication quality in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a reflection compensation circuit of a controller, comprising: a differential amplifier module, a variable gain amplification circuit module and a feedback loop module.
[0006] The differential amplifier module is configured to differentially amplify a communication bus signal of the controller to generate a differential amplified signal.
[0007] The variable gain amplification circuit module is configured to amplify the differential amplified signal based on a control signal of the controller to generate a gain amplified signal.
[0008] The feedback loop module is configured to output a feedback signal based on a difference between the gain amplified signal and a preset reference signal of the controller.
[0009] The feedback signal is used to adjust the control signal until the signal value of the feedback signal is within a system preset value range of the controller.
[0010] Optionally, the variable gain amplification circuit module comprises at least two variable voltage-controlled gain amplification circuits, each of the variable voltage-controlled gain amplification circuits comprising a gain amplifier, a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a diode submodule, and a transistor;
[0011] The first end of the first resistor is electrically connected with the output end of the differential amplifier module, and the second end of the first resistor is electrically connected with the first end of the second resistor and the first end of the transistor. The output end of the differential amplifier module is used for outputting the differential amplification signal.
[0012] The second end of the second resistor is electrically connected with the inverting input end of the gain amplifier and the second end of the third resistor. The first end of the third resistor is electrically connected with the output end of the gain amplifier and the feedback input end of the feedback loop module. The output end of the gain amplifier is used for outputting the gain amplification signal.
[0013] The first end of the fourth resistor is electrically connected with the master control output end of the controller. The second end of the fourth resistor is electrically connected with the control end of the transistor and the first end of the diode submodule. The second end of the diode submodule is electrically connected with the reference ground of the reflection compensation circuit. The master control output end is used for outputting the control signal. The voltage value of the control signal is used for controlling the gain of the gain amplifier.
[0014] The non-inverting input end of the gain amplifier is electrically connected with the reference ground of the reflection compensation circuit through the fifth resistor.
[0015] Optionally, the diode submodule comprises a sixth resistor and at least two diodes connected in series.
[0016] The anode of the diode is electrically connected with the second end of the fourth resistor and the control end of the transistor. The cathode of the diode is electrically connected with the reference ground of the reflection compensation circuit through the sixth resistor; or,
[0017] The anode of the diode is electrically connected with the second end of the fourth resistor and the control end of the transistor through the sixth resistor. The cathode of the diode is electrically connected with the reference ground of the reflection compensation circuit.
[0018] Optionally, the differential amplification signal comprises a first differential amplification signal and a second differential amplification signal. The gain amplification signal comprises a first gain amplification signal and a second gain amplification signal. The at least two variable voltage-controlled gain amplification circuits are divided into a first variable voltage-controlled gain amplification circuit and a second variable voltage-controlled gain amplification circuit.
[0019] The first variable voltage-controlled gain amplification circuit is electrically connected with a first output end of the differential amplifier module, and is configured to perform gain amplification on the first differential amplification signal according to the control signal to generate the first gain amplification signal.
[0020] The second variable voltage-controlled gain amplification circuit is electrically connected with a second output end of the differential amplifier module, and is configured to perform gain amplification on the second differential amplification signal according to the control signal to generate the second gain amplification signal.
[0021] The first output end of the differential amplifier module is configured to output the first differential amplification signal, and the second output end of the differential amplifier module is configured to output the second differential amplification signal.
[0022] Optionally, the feedback loop module comprises a comparator connected in one-to-one correspondence with the gain amplifier, a first input end of each comparator is electrically connected with an output end of the gain amplifier connected in one-to-one correspondence with the comparator, a second input end of the comparator is electrically connected with a reference signal end of the controller, the reference signal end is configured to provide the preset reference signal, and an output end of the comparator is configured to output the feedback signal.
[0023] Optionally, each variable voltage-controlled gain amplification circuit further comprises a filter group connected in one-to-one correspondence with the transistor, and the number of transistors is greater than one, and the capacitance values of each filter group are different.
[0024] Optionally, each filter group comprises a first capacitor and a second capacitor, a first end of the first capacitor and a first end of the second capacitor are electrically connected with a second end of the transistor connected in one-to-one correspondence with the filter group, a second end of the first capacitor and a second end of the second capacitor are electrically connected with a reference ground of the reflection compensation circuit, and the capacitance value of the first capacitor is different from the capacitance value of the second capacitor.
[0025] Optionally, the feedback loop module comprises a master control unit of the controller.
[0026] The master control unit is configured to select a target filter group from each filter group of the variable voltage-controlled gain amplification circuit according to the frequency domain noise carried in the communication bus signal and the preset reference signal, and output the control signal to the transistor connected in one-to-one correspondence with the target filter group based on the feedback signal.
[0027] Optionally, the communication bus signal comprises a first bus signal and a second bus signal, and the differential amplifier module comprises a first input resistor, a second input resistor, a first feedback resistor, a second feedback resistor, and an operational amplifier.
[0028] The non-inverting input terminal of the operational amplifier receives the first bus signal through the first input resistor, the inverting input terminal of the operational amplifier receives the second bus signal through the second input resistor, the first output terminal of the operational amplifier is electrically connected with the non-inverting input terminal of the operational amplifier through the second feedback resistor, and the second output terminal of the operational amplifier is electrically connected with the inverting input terminal of the operational amplifier through the first feedback resistor;
[0029] The first output terminal of the operational amplifier is configured to output the first differential amplification signal.
[0030] The second output terminal of the operational amplifier is configured to output the second differential amplification signal.
[0031] In a second aspect, the embodiments of the present application provide a controller comprising the reflection compensation circuit according to any one of the first aspect of the present application.
[0032] In a third aspect, the embodiments of the present application provide a reflection compensation method of a controller, comprising:
[0033] Obtaining a communication bus signal of the controller;
[0034] Differential amplifying the communication bus signal to generate a differential amplification signal;
[0035] Gain amplifying the differential amplification signal according to a control signal of the controller to generate a gain amplification signal;
[0036] Outputting a feedback signal according to a difference between the gain amplification signal and a preset reference signal of the controller;
[0037] Adjusting the control signal based on the feedback signal until a signal value of the feedback signal is within a system preset value range of the controller.
[0038] Optionally, the reflection compensation method is applied to the reflection compensation circuit according to any one of the first aspect of the present application, the reflection compensation circuit comprises at least two filter groups with different capacitance values, and the reflection compensation method further comprises:
[0039] Processing the communication bus signal according to a preset noise filtering algorithm to obtain frequency domain signal information of the communication bus signal;
[0040] Selecting a target filter group from the at least filter groups based on the frequency domain signal information;
[0041] Outputting the control signal to a transistor connected to the target filter group based on the feedback signal.
[0042] Optionally, the noise filtering algorithm comprises a time domain analysis algorithm and a frequency domain analysis algorithm, and the communication bus signal is processed according to the preset noise filtering algorithm to obtain the communication bus signal, including:
[0043] The communication bus signal is analyzed according to the time domain analysis algorithm to obtain a time domain output signal;
[0044] Based on the time domain output signal, the frequency domain analysis algorithm is used for frequency domain analysis to obtain the frequency domain signal information.
[0045] Optionally, the target filter group is selected from the at least filter group based on the frequency domain signal information, including:
[0046] The frequency domain signal information is used to determine a noise frequency range;
[0047] The target filter group is selected according to the noise frequency range, and the target filter group is used to filter out noise signals corresponding to the noise frequency range.
[0048] In a fourth aspect, the embodiments of the present application provide an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus; the memory is used to store a computer program; and the processor is used to execute the program stored in the memory to implement the steps of the reflection compensation method according to any one of the third aspect of the present application.
[0049] The reflection compensation circuit of the controller, the controller, the method and the device provided by the embodiments of the present application comprise a differential amplifier module, a variable gain amplification circuit module and a feedback loop module. The communication bus signal of the controller is differentially amplified by the differential amplifier module to generate a differential amplification signal, so as to improve the signal quality. Then, according to the control signal of the controller, the differential amplification signal is gain amplified by the variable gain amplification circuit module to generate a gain amplification signal. The feedback loop module can output a feedback signal according to the difference between the gain amplification signal and the preset reference signal of the controller, so as to adjust the control signal based on the feedback signal until the signal value of the feedback signal is within the system preset value range of the controller. The signal reflection monitoring and automatic adjustment of the amplification and compensation parameters are realized, so as to reduce the signal distortion to the greatest extent. Thus, the problems of CAN signal distortion and noise interference can be improved, the CAN communication quality can be improved, and the problem of poor CAN communication quality in the prior art is solved. BRIEF DESCRIPTION OF DRAWINGS
[0050] The accompanying drawings, which are incorporated into and form a part of the specification, illustrate one embodiment consistent with the present application and, together with the description, serve to explain the principles of the application.
[0051] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0052] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0053] Figure 1 A structural block diagram of a reflection compensation circuit for a controller provided in an embodiment of this application;
[0054] Figure 2 A schematic diagram of a differential amplifier circuit module provided for an optional embodiment of this application;
[0055] Figure 3 A schematic diagram of a variable voltage-controlled gain amplifier circuit provided in an optional embodiment of this application;
[0056] Figure 4 This is a schematic diagram of the structure of a reflection compensation circuit for a controller provided in an embodiment of this application;
[0057] Figure 5 A schematic diagram illustrating the configuration of three filter groups in a variable voltage-controlled gain amplifier circuit, provided as an example in this application;
[0058] Figure 6 A schematic diagram of the structure of a controller provided in an embodiment of this application;
[0059] Figure 7 A flowchart illustrating the steps of a reflection compensation method for a controller provided in an embodiment of this application;
[0060] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0061] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0062] The following disclosure provides numerous different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of the invention. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0063] Currently, CAN chips on the market generally suffer from technical problems such as unstable performance, signal distortion and reflection, and poor compatibility. For example, some CAN chips have poor compatibility and cannot effectively cooperate with other hardware devices or software systems, which limits the expansion and application scope of the system.
[0064] Based on the above, the embodiments of this application make hardware improvements on the basis of the original CAN chip, and provide a reflection compensation circuit, controller, method and device for a controller, so as to improve the CAN communication quality by introducing new technologies for hardware circuit improvement, thereby solving the problems caused by poor CAN communication quality in the existing related technologies.
[0065] In one embodiment of this application, to address the problem that traditional CAN systems often struggle to maintain signal clarity and accuracy in environments with severe noise interference, this embodiment provides a controller reflection compensation circuit for signal compensation processing. By detecting signal reflection and dynamically adjusting amplification and compensation, signal distortion is reduced. This solves the problem that signal reflection-induced distortion in long-distance or complex environments severely affects the stability and accuracy of data transmission, ensuring high stability and accuracy during data transmission. Furthermore, it effectively suppresses environmental noise and electromagnetic interference, ensuring normal operation in complex environments.
[0066] Figure 1 This is a structural block diagram of a reflection compensation circuit for a controller provided in an embodiment of this application. Figure 1As shown, the reflection compensation circuit provided in this application embodiment may include: a differential amplifier module 110, a variable gain amplifier circuit module 120, and a feedback loop module 130. The differential amplifier module 110 is used to differentially amplify the communication bus signal of the controller to generate a differential amplified signal, and can transmit this differential amplified signal to the variable gain amplifier circuit module 120. The variable gain amplifier circuit module 120 amplifies the differential amplified signal according to the controller's control signal CONTROL to generate a gain amplified signal. Based on the difference between the gain amplified signal and the controller's preset reference signal, the feedback loop module 130 is triggered to output a feedback signal BACKFEED. The controller's control signal CONTROL is adjusted based on the feedback signal BACKFEED until the signal value of the feedback signal BACKFEED is within the system preset value range of the controller. This achieves signal optimization processing and adjustment, thereby improving the quality of the CAN signal and effectively enhancing the CAN communication quality.
[0067] In this embodiment, the variable gain amplifier circuit module 120 amplifies the differential amplified signal according to the control signal CONTROL of the controller, generating a gain amplified signal, and transmits this gain amplified signal to the feedback loop module 130. The feedback loop module 130 then outputs a feedback signal BACKFEED based on the difference between the gain amplified signal and the controller's preset reference signal. This BACKFEED adjusts the control signal CONTROL, automatically adjusting amplification and compensation parameters until the value of the feedback signal BACKFEED is within the system preset range of the controller, thereby improving CAN signal distortion and noise interference. Specifically, the feedback signal BACKFEED is used to adjust the control signal CONTROL until its value is within the system preset range of the controller.
[0068] In summary, the reflection compensation circuit of the controller provided in this application embodiment differentially amplifies the controller's communication bus signal through the differential amplifier module 110 to generate a differential amplified signal, thereby improving signal quality. Subsequently, based on the controller's control signal CONTROL, the variable gain amplifier circuit module 120 amplifies the differential amplified signal to generate a gain amplified signal. This allows the feedback loop module 130 to output a feedback signal BACKFEED based on the difference between the gain amplified signal and the controller's preset reference signal. The control signal CONTROL is then adjusted based on the feedback signal BACKFEED until its value falls within the system preset range of the controller. This achieves signal reflection monitoring and automatic adjustment of amplification and compensation parameters to minimize signal distortion, thereby improving CAN signal distortion and noise interference, enhancing CAN communication quality, and solving the problem of poor CAN communication quality in existing related technologies.
[0069] For example, to improve the overall performance and scalability of systems such as building automation systems, hardware improvements can be made based on the existing CAN chip. This allows the controller's reflection compensation circuit to be seamlessly integrated into the existing building automation system, enhancing CAN chip compatibility and ensuring system compatibility. Furthermore, the reflection compensation circuit can be used to optimize signal processing and adjustment, achieving CAN signal compensation processing, thereby improving the quality of the CAN signal and enhancing the overall performance and scalability of the system.
[0070] It should be noted that the controller's communication bus signal can refer to the CAN signal transmitted by the controller using the communication bus, such as the CAN bus fully differential signal, which includes a first bus signal and a second bus signal; wherein, the first bus signal can be the signal transmitted through the high-level signal terminal CAN_H of the CAN bus; and the second bus signal can be the signal transmitted through the low-level signal terminal CAN_L of the CAN bus.
[0071] In some optional embodiments of this application, a fully differential amplifier can be used as the differential amplifier module 110 in the reflection compensation circuit to improve signal quality and provide a clearer input for subsequent signal processing. Optionally, when the communication bus signal includes a first bus signal and a second bus signal, such as... Figure 2 As shown in the embodiment of this application, the differential amplifier module 110 may include: a first input resistor R7, a second input resistor R8, a first feedback resistor R9, a second feedback resistor R10, and an operational amplifier A, so as to output a differential amplified signal through the operational amplifier A, improve the signal quality, and provide a clearer input for subsequent signal processing.
[0072] Specifically, in this embodiment, the non-inverting input terminal of operational amplifier A receives the first bus signal through the first input resistor R7, the inverting input terminal of operational amplifier A receives the second bus signal through the second input resistor R8, the first output terminal of operational amplifier A is electrically connected to the non-inverting input terminal of operational amplifier A through the second feedback resistor R10, and the second output terminal of operational amplifier A is electrically connected to the inverting input terminal of operational amplifier A through the first feedback resistor R9. This allows the differential amplified signal output by operational amplifier A to include a first differential amplified signal and a second differential amplified signal, so that the variable gain amplifier circuit module 120 can subsequently amplify the first differential amplified signal and the second differential amplified signal to generate a gain amplified signal. The first output terminal of operational amplifier A is used to output the first differential amplified signal, and the second output terminal of operational amplifier A is used to output the second differential amplified signal.
[0073] For example, an operational amplifier AOp-Amp with high input impedance and low noise can be selected as operational amplifier A in the differential amplifier module 110. The fully differential signal terminals of the CAN bus can be connected to the two input terminals of operational amplifier A respectively. Specifically, the first signal terminal of the fully differential signal terminals of the CAN bus is connected to the non-inverting input terminal of operational amplifier A through a first input resistor R7. This first signal terminal directly comes from the high-level signal terminal CAN_H of the CAN bus, allowing the non-inverting input terminal of operational amplifier A to receive the first bus signal transmitted by the high-level signal terminal CAN_H of the CAN bus through the first input resistor R7. The inverting input terminal of operational amplifier A is connected to the second signal terminal of the fully differential signal terminals of the CAN bus through a second input resistor R8. The second signal terminal is the low-level signal terminal CAN_L of the CAN bus, allowing the inverting input terminal of operational amplifier A to receive the second bus signal transmitted by the low-level signal terminal CAN_L of the CAN bus through the second input resistor R8. A second feedback resistor R10 is placed between the first output terminal and the non-inverting input terminal of operational amplifier A, and a first feedback resistor R9 is placed between the second output terminal and the inverting input terminal of operational amplifier A. The feedback resistors affect the overall gain of operational amplifier A, that is, the gain of operational amplifier A is determined by the ratio of the feedback resistor to the input resistor. Under this setting, the gain corresponding to the first differential amplified signal is (R10 / R7) times that of the first bus signal, and the gain corresponding to the second differential amplified signal is (R9 / R8) times that of the second bus signal.
[0074] In addition, to ensure that signal amplification does not cause clipping, the operational amplifier A in this embodiment can be powered by a symmetrical power supply, such as ±12V or ±15V power supply. This embodiment does not impose specific restrictions on this.
[0075] In some optional embodiments of this application, the variable gain amplifier circuit module 120 can use resistors, transistors, and diodes to form an external circuit as a variable gain amplifier circuit. In this way, the variable gain amplifier circuit can amplify the differential amplified signal output by the differential amplifier module 110 according to the control signal CONTROL of the controller, generate a gain amplified signal, and introduce it into the feedback loop module 130. Based on the difference between the gain amplified signal and the preset reference signal of the controller, a feedback signal BACKFEED is output, and the control signal CONTROL is adjusted until the signal value of the feedback signal BACKFEED is within the system preset value range of the controller. This achieves the purpose of monitoring signal reflection and automatically adjusting amplification and compensation parameters to minimize signal distortion.
[0076] In an optional embodiment of this application, the variable gain amplifier circuit module 120 may include at least two variable voltage-controlled gain amplifier circuits, and each variable voltage-controlled gain amplifier circuit serves as a variable gain amplifier circuit in the variable gain amplifier circuit module 120, specifically including: a gain amplifier B, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a diode submodule, and a transistor; as follows: Figure 3As shown, the first end of the first resistor R1 serves as the input terminal INPUT of the variable gain amplifier circuit module 120 and is electrically connected to the output terminal of the differential amplifier module 110. The second end of the first resistor R10 is electrically connected to the first end of the second resistor R2 and the first end of the transistor, so that the differential amplified signal output by the output terminal of the differential amplifier module 110 serves as the input INPUT of the variable voltage controlled gain amplifier circuit. This allows the variable voltage controlled gain amplifier circuit to amplify the differential amplified signal through the gain amplifier B according to the control signal CONTROL of the controller, generate a gain amplified signal, and output it. The differential amplifier module 110 outputs the differential amplified signal. The second end of the second resistor R2 is electrically connected to the inverting input of the gain amplifier B and the second end of the third resistor R3. The first end of the third resistor R3 is electrically connected to the output of the gain amplifier B and the feedback input of the feedback loop module 130. The output of the gain amplifier B serves as the output of the variable voltage controlled gain amplifier circuit (OUTNPUT), used to output the gain amplified signal. The first end of the fourth resistor R4 is electrically connected to the main control output of the controller. The second end of the fourth resistor R4 is electrically connected to the control terminal of the transistor and the first end of the diode submodule 310. The second end of the diode submodule 310 is electrically connected to the reference ground of the reflection compensation circuit. The main control output of the controller outputs the control signal CONTROL, and the voltage value of the control signal CONTROL controls the gain of the gain amplifier B. The non-inverting input of the gain amplifier B is electrically connected to the reference ground of the reflection compensation circuit through the fifth resistor R5.
[0077] As an example of this application, a field-effect transistor can be used as the transistor in a variable voltage-controlled gain amplifier circuit, such as... Figure 3As shown, the gain amplifier B, the first resistor R10, the second resistor R2, the third resistor R3, the fourth resistor R4, the fifth resistor R5, and the diode and the sixth resistor R6 in the diode submodule 310 constitute the peripheral circuit, which serves as the variable voltage controlled gain amplifier circuit in the variable gain amplifier circuit module. The input INPUT of the variable voltage controlled gain amplifier circuit is connected to the output terminal of the differential amplifier module 110, and is connected to the main control output terminal of the controller through the first resistor R10. Based on the control signal CONTROL output from the main control output terminal, the differential amplified signal output by the differential amplifier module 110 is amplified by utilizing the approximate logarithmic relationship between the gate voltage of the field-effect transistor and the drain-source resistance RSD. In this circuit, the drain-source resistor RSD and the first resistor R10 form a voltage divider circuit to divide the input INPUT of the variable voltage controlled gain amplifier circuit. The sum of the voltage drop of the four diodes in the diode submodule 310 and the voltage drop of the resistor R5 is equal to the gate voltage VG of the field-effect transistor. The gate voltage VG has a non-linear relationship with the voltage of the control signal CONTROL. The larger the voltage of the control signal CONTROL, the smaller the attenuation of the amplifier gain. For example, when the voltage of the control signal CONTROL is greater than or equal to 7V, the gain of the gain amplifier B is the largest and the attenuation is the smallest. When the voltage of the control signal CONTROL is equal to 0V, the gain of the gain amplifier B is the smallest and the attenuation of the amplifier gain is the largest.
[0078] In some optional embodiments of this application, the diode submodule 310 may include a sixth resistor R6 and at least two diodes connected in series, such that the voltage drop of the diode submodule 310 is equal to the gate voltage VG of the transistor, and the gate voltage VG of the transistor has a non-linear relationship with the voltage of the control signal CONTROL. Thus, by adjusting the voltage of the control signal CONTROL, the amplification and compensation parameters can be automatically adjusted to minimize signal distortion.
[0079] In one optional embodiment of this application, the anode of the diode is electrically connected to the second terminal of the fourth resistor R4 and the control terminal of the transistor, and the cathode of the diode is electrically connected to the reference ground of the reflection compensation circuit through the sixth resistor R6.
[0080] Of course, the diodes and the sixth resistor R6 in the diode submodule 310 can also be connected in other ways, so that the controller's reflection compensation circuit can automatically adjust the amplification and compensation parameters by adjusting the voltage of the control signal CONTROL, so as to minimize signal distortion and improve signal quality.
[0081] For example, the anode of the diode in diode submodule 310 can be electrically connected to the second terminal of the fourth resistor R4 and the control terminal of the transistor through the sixth resistor R6, such as... Figure 3As shown, the cathode of the diode is electrically connected to the reference ground of the reflection compensation circuit. When the voltage of the control signal CONTROL is greater than or equal to 7V, that is, when CONTROL≥7V, the maximum gain is: Avmax=-R3 / (R1+R2); when the voltage of the control signal CONTROL is equal to 0V, that is, when CONTROL=0V, the minimum gain is: Avmin=-R3 / (R2 / / RSD+R1).
[0082] Optionally, when the differential amplified signal output by the differential amplifier module 110 includes a first differential amplified signal and a second differential amplified signal, the gain amplified signal generated by the variable gain amplifier circuit module 120 includes a first gain amplified signal and a second gain amplified signal. The first gain amplified signal is the signal generated by the variable gain amplifier circuit module 120 amplifying the first differential amplified signal according to the control signal, and the second gain amplified signal is the signal generated by the variable gain amplifier circuit module 120 amplifying the second differential amplified signal according to the control signal.
[0083] In some optional embodiments of this application, the at least two variable voltage-controlled gain amplifier circuits included in the variable gain amplifier circuit module 120 can be divided into a first variable voltage-controlled gain amplifier circuit 410 and a second variable voltage-controlled gain amplifier circuit 420; such as Figure 4 As shown, the first variable voltage-controlled gain amplifier circuit 410 is electrically connected to the first output terminal of the differential amplifier module 110, and is used to amplify the first differential amplified signal according to the control signal CONTROL to generate the first amplified gain signal OUT1; the second variable voltage-controlled gain amplifier circuit 420 is electrically connected to the second output terminal of the differential amplifier module 110, and is used to amplify the second differential amplified signal according to the control signal CONTROL to generate the second amplified gain signal. The first output terminal of the differential amplifier module 110 is used to output the first differential amplified signal, and the second output terminal of the differential amplifier module 110 is used to output the second differential amplified signal. Figure 4 The first control signal CONTROL1 is a control signal transmitted to the first variable voltage-controlled gain amplifier circuit 410; the second control signal CONTROL2 is a control signal transmitted to the second variable voltage-controlled gain amplifier circuit 420.
[0084] In some optional embodiments of this application, the feedback loop module 130 may include comparators C connected one-to-one with the gain amplifiers. The first input terminal of each comparator C is electrically connected to the output terminal of the corresponding gain amplifier B, allowing the feedback loop module 130 to compare the gain amplified signal output by the gain amplifier B with a preset reference signal REF of the controller via the comparator C, and output a feedback signal BACKFEED based on the difference between the gain amplified signal and the preset reference signal REF. The second input terminal of the comparator C is electrically connected to the reference signal terminal of the controller, which provides the preset reference signal REF. The output terminal of the comparator C outputs the feedback signal BACKFEED. The preset reference signal REF may refer to a pre-set reference signal, serving as a desired signal, used to trigger the comparator to output the feedback signal BACKFEED based on the difference between the gain amplified signal and the desired signal. The voltage of the control signal CONTROL is adjusted via the feedback signal BACKFEED, thereby adjusting the gain of the variable voltage-controlled gain amplifier circuit, until the signal value of the feedback signal BACKFEED is close to a system preset value. At this point, the signal value of the feedback signal is considered to be within the system preset value range of the controller.
[0085] For example, to transmit a clear CAN signal, a comparator C can be used to compare the amplified signal output by the gain amplifier with a preset reference signal REF. After comparing the difference between the amplified signal and the preset reference signal REF, a feedback signal BACKFEED is output to the main control unit of the controller. When the main control unit detects that the signal value of the feedback signal BACKFEED is too far from the system preset value, it adjusts the voltage of the control signal CONTROL, thereby adjusting the gain of the variable gain amplifier circuit until the signal value of the feedback signal BACKFEED is close to the system preset value, which can improve the problems of CAN signal distortion and noise interference.
[0086] In some embodiments of this application, the main control output terminal of the controller can be a general-purpose input / output (GPIO) pin of the main control unit, so as to output the control signal CONTROL to the variable voltage-controlled gain amplifier circuit using the GPIO pin. Optionally, the feedback loop module 130 in the embodiments of this application includes the main control unit of the controller; the main control unit is used to perform secondary processing on the communication bus signal according to a preset noise filtering algorithm to obtain the frequency domain signal information of the communication bus signal, and select a target filter group from each filter group of the variable voltage-controlled gain amplifier circuit based on the frequency domain signal information, so as to output the control signal CONTROL to the transistor connected to the target filter group based on the feedback signal.
[0087] In some optional embodiments of this application, each variable voltage-controlled gain amplifier circuit further includes a filter group connected to each transistor in a one-to-one correspondence, and the number of transistors is greater than one. The capacitance values of each filter group are different, so that the variable voltage-controlled gain amplifier circuit can achieve adaptive filtering through the filter group, suppress noise interference in the signal, and improve the clarity and accuracy of the signal.
[0088] Optionally, each filter group in this embodiment includes a first capacitor and a second capacitor. The first terminal of the first capacitor and the first terminal of the second capacitor are electrically connected to the second terminal of the transistor corresponding to the filter group. The second terminal of the first capacitor and the second terminal of the second capacitor are electrically connected to the reference ground of the reflection compensation circuit. The capacitance value of the first capacitor is different from that of the second capacitor, so that the variable voltage controlled gain amplifier circuit can adapt to different communication conditions through filter groups with different capacitance values to achieve hierarchical filtering.
[0089] For example, three filter groups can be set, such as Figure 5 As shown, Figure 5 Capacitors C1 and C2 can serve as the first and second capacitors in the first filter group, allowing the main control unit to control the first transistor U1 to be turned on via the control signal CONTROL, so that the first filter group can be used for filtering. Figure 5 Capacitors C3 and C4 can serve as the first and second capacitors in the second filter group, allowing the main control unit to control the second transistor U2 to be turned on via the control signal CONTROL, so that the second filter group can be used for filtering. Figure 5 Capacitors C5 and C6 can serve as the first and second capacitors in the third filter group, allowing the main control unit to control the third transistor U3 to conduct via the control signal CONTROL, so that filtering can be performed through the third filter group.
[0090] As can be seen, the variable voltage-controlled gain amplifier circuit in this embodiment can be configured with n filter groups, and the capacitor and the first resistor R10 of each filter group respectively form a low-pass filter and a high-pass filter, thereby realizing a hierarchical filter circuit through each filter group. Specifically, each filter group consists of a high-capacitance first capacitor and a low-capacitance second capacitor, and the capacitance values of each filter group are different to adapt to different communication conditions. Each filter group can be connected to the signal output line via a transistor. The main control unit can select which level of filter group to use for filtering by controlling the on / off state of the transistor, thus achieving adaptive filtering. Here, n is an integer greater than 1.
[0091] In one embodiment of this application, the poor performance of the CAN chip can be optimized by setting a reference signal as the preset reference signal of the controller. The statistical characteristics of the noise can be estimated using the reference signal, and the level of filter to be switched to in real time can be adjusted to suppress noise interference in the CAN signal, improve the clarity and accuracy of the signal, and enhance the transmission rate, anti-interference ability and stability of the CAN system. The goal of improving CAN chip performance is achieved while improving signal quality.
[0092] like Figure 6 As shown, this application embodiment provides a controller 600, including a reflection compensation circuit 610. The reflection compensation circuit 610 can be any of the reflection compensation circuits described in this application embodiment, so that the controller 600 can perform signal compensation processing through the reflection compensation circuit 610 to differentially amplify the communication bus signal through the differential amplifier module 110 to generate a differential amplified signal to improve signal quality. Subsequently, according to the controller's control signal, the differential amplified signal is gain amplified through the variable gain amplifier circuit module 120 to generate a gain amplified signal, so that the feedback loop module 130 can output a feedback signal based on the difference between the gain amplified signal and the controller's preset reference signal, so as to adjust the control signal based on the feedback signal until the signal value of the feedback signal is within the system preset value range of the controller, thereby realizing signal reflection monitoring and automatic adjustment of amplification and compensation parameters to minimize signal distortion.
[0093] In some optional embodiments of this application, the controller provided in this application can be used as a CAN chip. By acquiring the CAN signal as the controller's communication bus signal, and differentially amplifying the communication bus signal to generate a differential amplified signal, the controller then amplifies the differential amplified signal according to the control signal. Based on the difference between the amplified signal and the preset reference signal, a feedback signal is output. The control signal can be adjusted based on the feedback signal until the signal value of the feedback signal is within the system preset value range of the controller. This improves the problems of CAN signal distortion and noise interference, enhances CAN communication quality, and solves the problem of poor CAN communication quality in the existing related technologies.
[0094] Figure 7 This is a flowchart illustrating the steps of a reflection compensation method for a controller provided in an embodiment of this application. Figure 7 As shown in the embodiments of this application, the reflection compensation method for the controller includes the following steps:
[0095] Step 710: Obtain the communication bus signal of the controller;
[0096] Step 720: Differential amplification is performed on the communication bus signal to generate a differential amplified signal;
[0097] Step 730: According to the control signal of the controller, the differential amplified signal is amplified to generate a gain amplified signal;
[0098] Step 740: Output a feedback signal based on the difference between the gain amplification signal and the preset reference signal of the controller;
[0099] Step 750: Adjust the control signal based on the feedback signal until the signal value of the feedback signal is within the system preset value range of the controller.
[0100] As can be seen, the reflection compensation method provided in this application, after acquiring the communication bus signal of the controller, differentially amplifies the communication bus signal to generate a differential amplified signal to improve signal quality. Subsequently, according to the control signal of the controller, the differential amplified signal is gain amplified to generate a gain amplified signal. Based on the difference between the gain amplified signal and the preset reference signal of the controller, a feedback signal is output to adjust the control signal according to the feedback signal until the signal value of the feedback signal is within the system preset value range of the controller. Thus, signal reflection monitoring and automatic adjustment of amplification and compensation parameters are realized to minimize signal distortion and effectively improve signal quality.
[0101] In some optional embodiments of this application, the above-described reflection compensation method is applied to a reflection compensation circuit as described in any embodiment of this application. The reflection compensation circuit includes at least two filter groups with different capacitance values. The reflection compensation method further includes: performing secondary processing on the communication bus signal according to a preset noise filtering algorithm to obtain frequency domain signal information of the communication bus signal; selecting a target filter group from the at least two filter groups based on the frequency domain signal information; and outputting the control signal to the transistor connected to the target filter group based on the feedback signal.
[0102] Optionally, the noise filtering algorithm in this embodiment includes a time-domain analysis algorithm and a frequency-domain analysis algorithm. The step of performing secondary processing on the communication bus signal according to the preset noise filtering algorithm to obtain the communication bus signal includes: performing time-domain analysis on the communication bus signal according to the time-domain analysis algorithm to obtain a time-domain output signal; and performing frequency-domain analysis on the time-domain output signal using the frequency-domain analysis algorithm to obtain the frequency-domain signal information.
[0103] In one embodiment of this application, time-domain analysis removes noise and improves signal stability and readability by processing the time-domain characteristics of the signal. The specific implementation process of time-domain analysis may include the following steps:
[0104] Step 1: Acquire the raw signal, that is, acquire the raw signal data from the CAN bus. This raw signal data may contain noise and interference introduced for various reasons.
[0105] Step 2: Smoothing, which involves smoothing the original signal using a moving average method to reduce noise through a simple and effective smoothing algorithm;
[0106] For example, a window size can be defined, i.e., a window size n is chosen, which determines the degree of smoothing. This window size can be adjusted according to the specific application scenario. Then, a moving average is calculated to achieve smoothing, effectively reducing high-frequency noise in the signal and obtaining a more stable and readable signal. Specifically, when calculating the moving average, S can be set... i Let X be the value of the original signal at time i, and let X be the smoothed signal value. i The average value of all original signal values within window n, i.e. By sliding the window from the start point to the end point of the signal, the smoothed signal value at each moment can be calculated. After smoothing, high-frequency noise in the signal is effectively reduced, i.e., noise is removed, resulting in a more stable and readable signal.
[0107] Step 3: Median filtering. This involves applying median filtering to the moving average to effectively remove sudden spikes in noise, further improving signal stability and anti-interference capabilities. Specifically, the signal values within a window n are sorted by size, and the median value is used for filtering. The median value after sorting is then taken as the current signal output value Y. i If the window size n is odd, then the median value is the th value after sorting. The middle value is the nth value after sorting; if the window size n is even, then the middle value is the nth value after sorting. and the The average of these values makes the median-filtered signal value Y. i =median(S i ,S i+1 ,...,S i+n-1 ).
[0108] In summary, the embodiments of this application use moving average for smoothing and median filtering to significantly reduce noise and make the signal more stable and readable.
[0109] Furthermore, embodiments of this application can perform frequency domain analysis on the signal based on time domain analysis to identify and process noise components in the frequency domain. In some optional embodiments of this application, selecting a target filter group from the at least one filter group based on the frequency domain signal information may specifically include: using the frequency domain signal information to determine the noise frequency range; selecting the target filter group according to the noise frequency range, wherein the target filter group is used to filter out the noise signal corresponding to the noise frequency range.
[0110] As an example of this application, the specific implementation process of frequency domain analysis may include the following steps:
[0111] Step 1: Use Fast Fourier Transform (FFT) to transform the time-domain signal to the frequency domain in order to identify noise components in the frequency domain. Specifically, this is done by sampling the smoothed time-domain signal X. i Sampling is performed to obtain a discrete signal sequence. Then, an FFT transform is applied to this discrete signal sequence to obtain the frequency domain signal F(k), where k represents the frequency component. If N is the length of the signal sequence, the formula for calculating the frequency domain signal F(k) is: Where i represents the parameters of the time-domain signal, and k represents the parameters of the frequency-domain signal.
[0112] Step 2: Based on the amplitude spectrum of the frequency domain signal, noise components in the frequency domain can be identified and filtered out through frequency domain filtering. Specifically, the noise frequency range can be determined according to the amplitude spectrum of the frequency domain signal. Then, an appropriate frequency domain filter (such as a band-stop filter) can be selected according to the noise frequency range to suppress the signal within the noise frequency range. For example, a pre-designed filter can be applied to the frequency domain signal F(k) to filter out the noise components and obtain the filtered frequency domain signal.
[0113] Step 3: Perform an Inverse Fast Fourier Transform (IFFT) on the filtered frequency domain signal to recover the time domain signal. This involves performing an IFFT on the filtered frequency domain signal to obtain the filtered time domain signal. Let F'(k) be the filtered frequency domain signal, and the filtered time domain signal be... The calculation formula is:
[0114] As can be seen, the embodiments of this application can more effectively identify and filter out noise components in the frequency domain through frequency domain analysis, thereby further improving the signal quality.
[0115] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should know that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps may be performed in other orders or simultaneously.
[0116] like Figure 8 As shown, this application embodiment also provides an electronic device, including: a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114, the memory 113 is used to store computer programs; the processor 111 is used to implement the steps of the reflection compensation method provided in any of the aforementioned method embodiments when executing the computer program stored in the memory 113.
[0117] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the reflection compensation method of the controller as provided in any of the foregoing method embodiments.
[0118] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0119] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, it can be implemented using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0120] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.
[0121] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A reflection compensation circuit for a controller, characterized in that, include: Differential amplifier module, variable gain amplifier circuit module, and feedback loop module; The differential amplifier module is used to differentially amplify the communication bus signal of the controller to generate a differential amplified signal. The variable gain amplifier circuit module is used to amplify the differential amplified signal according to the control signal of the controller, so as to generate a gain amplified signal. The feedback loop module is used to output a feedback signal based on the difference between the gain amplification signal and the preset reference signal of the controller; The feedback signal is used to adjust the control signal until the signal value of the feedback signal is within the system preset value range of the controller. The variable gain amplifier circuit module includes at least two variable voltage controlled gain amplifier circuits, each of which includes a gain amplifier, a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a diode submodule, and a transistor. The first end of the first resistor is electrically connected to the output end of the differential amplifier module, and the second end of the first resistor is electrically connected to the first end of the second resistor and the first end of the transistor. The output end of the differential amplifier module is used to output the differential amplified signal. The second end of the second resistor is electrically connected to the inverting input of the gain amplifier and the second end of the third resistor. The first end of the third resistor is electrically connected to the output of the gain amplifier and the feedback input of the feedback loop module. The output of the gain amplifier is used to output the gain amplified signal. The first end of the fourth resistor is electrically connected to the main control output terminal of the controller, the second end of the fourth resistor is electrically connected to the control terminal of the transistor and the first end of the diode submodule, the second end of the diode submodule is electrically connected to the reference ground of the reflection compensation circuit, the main control output terminal is used to output the control signal, and the voltage value of the control signal is used to control the gain of the gain amplifier. The non-inverting input of the gain amplifier is electrically connected to the reference ground of the reflection compensation circuit through the fifth resistor.
2. The reflection compensation circuit according to claim 1, characterized in that, The diode submodule includes a sixth resistor and at least two diodes connected in series; The anode of the diode is electrically connected to the second terminal of the fourth resistor and the control terminal of the transistor, and the cathode of the diode is electrically connected to the reference ground of the reflection compensation circuit through the sixth resistor; or, The anode of the diode is electrically connected to the second terminal of the fourth resistor and the control terminal of the transistor through the sixth resistor, and the cathode of the diode is electrically connected to the reference ground of the reflection compensation circuit.
3. The reflection compensation circuit according to claim 1 or 2, characterized in that, The differential amplified signal includes a first differential amplified signal and a second differential amplified signal, the gain amplified signal includes a first gain amplified signal and a second gain amplified signal, and the at least two variable voltage-controlled gain amplifier circuits are divided into a first variable voltage-controlled gain amplifier circuit and a second variable voltage-controlled gain amplifier circuit. The first variable voltage-controlled gain amplifier circuit is electrically connected to the first output terminal of the differential amplifier module, and is used to amplify the first differential amplifier signal according to the control signal to generate the first gain amplified signal. The second variable voltage-controlled gain amplifier circuit is electrically connected to the second output terminal of the differential amplifier module, and is used to amplify the second differential amplified signal according to the control signal to generate the second gain amplified signal. The first output terminal of the differential amplifier module is used to output the first differential amplified signal, and the second output terminal of the differential amplifier module is used to output the second differential amplified signal.
4. The reflection compensation circuit according to claim 1 or 2, characterized in that, The feedback loop module includes comparators connected one-to-one with the gain amplifiers. The first input terminal of each comparator is electrically connected to the output terminal of the corresponding gain amplifier. The second input terminal of the comparator is electrically connected to the reference signal terminal of the controller. The reference signal terminal is used to provide the preset reference signal. The output terminal of the comparator is used to output the feedback signal.
5. The reflection compensation circuit according to claim 4, characterized in that, Each of the variable voltage-controlled gain amplifier circuits also includes a filter group connected to each transistor in a one-to-one manner, and the number of transistors is greater than one, with each filter group having a different capacitance value.
6. The reflection compensation circuit according to claim 5, characterized in that, Each of the filter groups includes a first capacitor and a second capacitor. The first terminal of the first capacitor and the first terminal of the second capacitor are electrically connected to the second terminal of the transistor corresponding to the filter group. The second terminal of the first capacitor and the second terminal of the second capacitor are electrically connected to the reference ground of the reflection compensation circuit. The capacitance value of the first capacitor is different from that of the second capacitor.
7. The reflection compensation circuit according to claim 5, characterized in that, The feedback loop module includes the main control unit of the controller; The main control unit is used to perform secondary processing on the communication bus signal according to a preset noise filtering algorithm to obtain the frequency domain signal information of the communication bus signal, and select a target filter group from each filter group of the variable voltage controlled gain amplifier circuit based on the frequency domain signal information, so as to output the control signal to the transistor connected to the target filter group based on the feedback signal.
8. The reflection compensation circuit according to claim 3, characterized in that, The communication bus signal includes a first bus signal and a second bus signal, and the differential amplifier module includes: a first input resistor, a second input resistor, a first feedback resistor, a second feedback resistor, and an operational amplifier; The non-inverting input terminal of the operational amplifier receives the first bus signal through the first input resistor, the inverting input terminal of the operational amplifier receives the second bus signal through the second input resistor, the first output terminal of the operational amplifier is electrically connected to the non-inverting input terminal of the operational amplifier through the second feedback resistor, and the second output terminal of the operational amplifier is electrically connected to the inverting input terminal of the operational amplifier through the first feedback resistor. The first output terminal of the operational amplifier is used to output the first differential amplified signal; The second output terminal of the operational amplifier is used to output the second differential amplified signal.
9. A controller, characterized in that, It includes the reflection compensation circuit as described in any one of claims 1 to 8.
10. A reflection compensation method for a controller, characterized in that, The reflection compensation method is applied to the reflection compensation circuit as described in any one of claims 1 to 8, and the reflection compensation method includes: Obtain the communication bus signal of the controller; The communication bus signal is differentially amplified to generate a differentially amplified signal; Based on the control signal from the controller, the differential amplified signal is amplified to generate a gain-amplified signal; Based on the difference between the amplified gain signal and the preset reference signal of the controller, a feedback signal is output; The control signal is adjusted based on the feedback signal until the signal value of the feedback signal is within the system preset value range of the controller.
11. The reflection compensation method according to claim 10, characterized in that, The reflection compensation circuit includes at least two filter groups with different capacitance values, and the reflection compensation method further includes: The communication bus signal is processed in two stages according to a preset noise filtering algorithm to obtain the frequency domain signal information of the communication bus signal; Based on the frequency domain signal information, a target filter group is selected from the at least two filter groups; Based on the feedback signal, the control signal is output to the transistor connected to the target filter group.
12. The reflection compensation method according to claim 11, characterized in that, The noise filtering algorithm includes a time-domain analysis algorithm and a frequency-domain analysis algorithm. The step of performing secondary processing on the communication bus signal according to the preset noise filtering algorithm to obtain the communication bus signal includes: The communication bus signal is analyzed in the time domain according to the time domain analysis algorithm to obtain the time domain output signal; Based on the time-domain output signal, the frequency-domain analysis algorithm is used to perform frequency-domain analysis to obtain the frequency-domain signal information.
13. The reflection compensation method according to claim 12, characterized in that, The step of selecting a target filter group from the at least two filter groups based on the frequency domain signal information includes: The noise frequency range is determined using the frequency domain signal information. The target filter group is selected based on the noise frequency range, and the target filter group is used to filter out the noise signal corresponding to the noise frequency range.
14. An electronic device, characterized in that, include: The system includes a processor, a communication interface, a memory, and a communication bus. The processor, communication interface, and memory communicate with each other via the communication bus. Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the steps of the reflection compensation method as described in any one of claims 10-13.
Citation Information
Patent Citations
Method and apparatus for controlling signal amplitude level
CN1243615A