Reflection compensation circuit of controller, controller, method and equipment
The reflection compensation circuit enhances CAN communication quality by differentially amplifying and gain-amplifying signals, adjusting control signals to minimize distortion and noise, addressing instability in long-distance and complex environments.
Patent Information
- Application Number
- CN202411371586.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-09-29
AI Technical Summary
CAN chips experience signal distortion and instability in long-distance transmission and complex environments, leading to reduced data transmission rate and increased delay, which affects the stability and reliability of building automation systems.
A reflection compensation circuit comprising a differential amplifier module, variable gain amplifier circuit module, and feedback loop module to differentially amplify and gain-amplify communication bus signals, adjusting control signals based on feedback until the signal value is within a system preset range, minimizing signal distortion and noise interference.
Improves CAN communication quality by reducing signal distortion and noise interference, ensuring high stability and accuracy in data transmission, particularly in complex environments.
Smart Images

Figure CN119254564A_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, controller, method and device of a controller. Background Art
[0002] With the rapid development of Controller Area Network (CAN) technology, CAN chips are being used more and more widely, for example, in technical fields such as building automation systems.
[0003] Specifically, in the field of building automation systems, the CAN protocol plays an important role as a key communication protocol. However, there are some common technical problems with the CAN chips on the market. For example, the performance of the CAN chip may be unstable in the case of long-distance transmission, high-speed communication or interference, which leads to problems such as reduced data transmission rate and increased delay. For example, in complex environments, CAN chips are prone to signal distortion. Especially in long-distance transmission, CAN signals may be reflected and distorted, affecting the accuracy and reliability of data transmission. This poses a challenge to the stability and reliability of building automation systems. Especially in the face of complex environments and large-scale system deployments, the affected CAN chip may become a bottleneck in the system, affecting the overall performance and reliability of the system. Summary of the invention
[0004] In view of this, the present application provides a reflection compensation circuit, controller, method and device of a controller to solve the problem of poor CAN communication quality existing in the existing related technologies.
[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 amplifier circuit module and a feedback loop module;
[0006] Wherein, the differential amplifier module is used to perform differential amplification on the communication bus signal of the controller to generate a differential amplified signal;
[0007] The variable gain amplifier circuit module is used to perform gain amplification on the differential amplified signal according to the control signal of the controller to generate a gain amplified signal;
[0008] The feedback loop module is used to output a feedback signal according to the 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 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;
[0011] The first end of the first resistor is electrically connected to the output end of the differential amplifier module, 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, and the output end of the differential amplifier module is used to output the differential amplified signal;
[0012] The second end of the second resistor is electrically connected to 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 to the output end of the gain amplifier and the feedback input end of the feedback loop module, and the output end of the gain amplifier is used to output the gain amplified signal;
[0013] The first end of the fourth resistor is electrically connected to the main control output end of the controller, the second end of the fourth resistor is electrically connected to the control end 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 end 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;
[0014] The non-inverting input terminal of the gain amplifier is electrically connected to 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 to the second end of the fourth resistor and the control end 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,
[0017] The anode of the diode is electrically connected to the second end of the fourth resistor and the control end 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.
[0018] Optionally, 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 amplifying circuits are divided into a first variable voltage-controlled gain amplifying circuit and a second variable voltage-controlled gain amplifying circuit;
[0019] 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 perform gain amplification on the first differential amplified signal according to the control signal to generate the first gain amplified signal;
[0020] 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 perform gain amplification on the second differential amplified signal according to the control signal to generate the second gain amplified signal
[0021] The first output end of the differential amplifier module is used to output the first differential amplified signal, and the second output end of the differential amplifier module is used to output the second differential amplified signal.
[0022] Optionally, 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 gain amplifier to which it is connected, 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, and the output terminal of the comparator is used to output the feedback signal.
[0023] Optionally, each of the variable voltage-controlled gain amplifier circuits further includes a filter group connected to the transistors in a one-to-one correspondence, and the number of the transistors is greater than one, and the capacitance values of the filter groups are different.
[0024] Optionally, each of the filter groups includes a first capacitor and a second capacitor, the first end of the first capacitor and the first end of the second capacitor are electrically connected to the second end of the transistor corresponding to the filter group, the second end of the first capacitor and the second end of the second capacitor are electrically connected to the reference ground of the reflection compensation circuit, and the capacitance of the first capacitor is different from the capacitance of the second capacitor.
[0025] Optionally, the feedback loop module includes a main control unit of the controller;
[0026] The main control unit is used to select a target filter group from each filter group of the variable voltage-controlled gain amplifier circuit based on the frequency domain noise carried in the communication bus signal and the preset reference signal, so as to output the control signal to the transistor correspondingly connected to the target filter group based on the feedback signal.
[0027] Optionally, 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;
[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 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;
[0029] Wherein, the first output terminal of the operational amplifier is used to output the first differential amplified signal;
[0030] The second output terminal of the operational amplifier is used to output the second differential amplified signal.
[0031] In a second aspect, an embodiment of the present application provides a controller comprising a reflection compensation circuit as described in any one of the first aspect of the present application.
[0032] In a third aspect, an embodiment of the present application provides a reflection compensation method of a controller, comprising:
[0033] Acquiring a communication bus signal of the controller;
[0034] Performing differential amplification on the communication bus signal to generate a differential amplified signal;
[0035] According to the control signal of the controller, the differential amplified signal is gain-amplified to generate a gain-amplified signal;
[0036] Outputting a feedback signal according to a difference between the gain amplified signal and a preset reference signal of the controller;
[0037] The control signal is adjusted based on the feedback signal until the 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 a reflection compensation circuit as described in any one of the first aspects 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] 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;
[0040] Selecting a target filter group from the at least filter group based on the frequency domain signal information;
[0041] Based on the feedback signal, the control signal is output to the transistors corresponding to the target filter group.
[0042] Optionally, the noise filtering algorithm includes a time domain analysis algorithm and a frequency domain analysis algorithm, and performing secondary processing on the communication bus signal according to a preset noise filtering algorithm to obtain the communication bus signal includes:
[0043] Performing time domain analysis on the communication bus signal 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 to perform frequency domain analysis to obtain the frequency domain signal information.
[0045] Optionally, selecting a target filter group from at least one filter group based on the frequency domain signal information includes:
[0046] Determine the noise frequency range using the frequency domain signal information;
[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, an embodiment of the present application provides an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; the memory is used to store computer programs; and the processor is used to implement the steps of the reflection compensation method as described in any one of the third aspects of the present application when executing the program stored in the memory.
[0049] The reflection compensation circuit, controller, method and device of the controller provided in the embodiment of the present application include: a differential amplifier module, a variable gain amplifier 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 amplified signal to improve the signal quality. Then, according to the control signal of the controller, the differential amplified signal is gain amplified by the variable gain amplifier circuit module to generate a gain amplified signal, so that the feedback loop module can output a feedback signal according to the difference between the gain amplified signal and the preset reference signal of the controller 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 automatically adjusting the amplification and compensation parameters to minimize signal distortion, thereby improving the problems of CAN signal distortion and noise interference, improving the CAN communication quality, and solving the problem of poor CAN communication quality existing in the existing related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0052] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0053] Figure 1 A structural block diagram of a reflection compensation circuit of a controller provided in an embodiment of the present application;
[0054] Figure 2 A schematic diagram of a differential amplifier circuit module provided in an optional embodiment of the present application;
[0055] Figure 3 A schematic diagram of the structure of a variable voltage-controlled gain amplifier circuit provided in an optional embodiment of the present application;
[0056] Figure 4 A schematic diagram of the structure of a reflection compensation circuit of a controller provided in an embodiment of the present application;
[0057] Figure 5 A schematic diagram of setting three filter groups in a variable voltage-controlled gain amplifier circuit provided in an example of this application;
[0058] Figure 6 A schematic diagram of the structure of a controller provided in an embodiment of the present application;
[0059] Figure 7 A schematic flow chart of the steps of a reflection compensation method of a controller provided in an embodiment of the present application;
[0060] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0062] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0063] At present, CAN chips on the market generally have 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 embodiment of the present application makes hardware improvements on the basis of the original CAN chip, and provides a reflection compensation circuit, controller, method and device of 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 the present application, in order to solve the problem that traditional CAN systems often find it difficult to maintain signal clarity and accuracy in an environment with severe noise interference, the embodiment of the present application provides a reflection compensation circuit of a controller for signal compensation processing, which detects signal reflection and dynamically adjusts amplification and compensation to reduce signal distortion, thereby solving the problem that the distortion caused by signal reflection in long distances or complex environments seriously affects the stability and accuracy of data transmission, ensuring high stability and accuracy during data transmission, and being able to effectively suppress 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 of a controller provided in an embodiment of the present application. Figure 1As shown, the reflection compensation circuit provided in the embodiment of the present application may include: a differential amplifier module 110, a variable gain amplifier circuit module 120 and a feedback loop module 130; wherein the differential amplifier module 110 is used to differentially amplify the communication bus signal of the controller to generate a differential amplified signal, and the differential amplified signal can be transmitted to the variable gain amplifier circuit module 120, so that the variable gain amplifier circuit module 120 can perform gain amplification on the differential amplified signal according to the control signal CONTROL of the controller to generate a gain amplified signal, so that the feedback loop module 130 can be triggered to output a feedback signal BACKFEED according to the difference between the gain amplified signal and the preset reference signal of the controller, so as to adjust the control signal CONTROL of the controller 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, thereby realizing signal optimization processing and adjustment, thereby improving the quality of the CAN signal, and effectively improving the CAN communication quality.
[0067] In the embodiment of the present application, the variable gain amplifier circuit module 120 is used to perform gain amplification on the differential amplified signal according to the control signal CONTROL of the controller, generate a gain amplified signal, and transmit the gain amplified signal to the feedback loop module 130, so that the feedback loop module 130 can output a feedback signal BACKFEED according to the difference between the gain amplified signal and the preset reference signal of the controller, and adjust the control signal CONTROL through the feedback signal BACKFEED to achieve automatic adjustment of the amplification and compensation parameters until the signal value of the feedback signal BACKFEED is within the system preset value range of the controller, thereby improving the problem of CAN signal distortion and noise interference. Wherein, the feedback signal BACKFEED is used to adjust the control signal CONTROL until the signal value of the feedback signal BACKFEED is within the system preset value range of the controller.
[0068] In summary, the reflection compensation circuit of the controller provided in the embodiment of the present application performs differential amplification on the communication bus signal of the controller through the differential amplifier module 110 to generate a differential amplified signal to improve the signal quality, and then performs gain amplification on the differential amplified signal through the variable gain amplifier circuit module 120 according to the control signal CONTROL of the controller to generate a gain amplified signal, so that the feedback loop module 130 can output the feedback signal BACKFEED according to the difference between the gain amplified signal and the preset reference signal of the controller, so as to adjust the control signal CONTROL 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, thereby realizing signal reflection monitoring and automatically adjusting the amplification and compensation parameters to minimize signal distortion, thereby improving the problems of CAN signal distortion and noise interference, improving the CAN communication quality, and solving the problem of poor CAN communication quality existing in the existing related technologies.
[0069] For example, in order to improve the overall performance and scalability of systems such as building automation systems, hardware improvements can be made based on the original CAN chip so that the controller's reflection compensation circuit can be seamlessly integrated into the existing building automation system, enhancing the compatibility of the CAN chip and thus ensuring the compatibility of the system. The reflection compensation circuit can also be used to optimize signal processing and adjustment to achieve 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 communication bus signal of the controller may refer to a CAN signal transmitted by the controller using the communication bus, such as a fully differential signal of the CAN bus, wherein the fully differential signal of the CAN bus includes a first bus signal and a second bus signal; wherein the first bus signal may be a signal transmitted through the high-level signal terminal CAN_H of the CAN bus; and the second bus signal may be a signal transmitted through the low-level signal terminal CAN_L of the CAN bus.
[0071] In some optional embodiments of the present application, a fully differential amplifier may be used as the differential amplifier module 110 in the reflection compensation circuit to improve the signal quality through the fully differential amplifier and provide a clearer input for subsequent signal processing. Optionally, in the case where the communication bus signal includes a first bus signal and a second bus signal, such as Figure 2 As shown, the differential amplifier module 110 in the embodiment of the present application 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, the non-inverting input terminal of the operational amplifier A in the embodiment of the present application receives the first bus signal through the first input resistor R7, the inverting input terminal of the operational amplifier A receives the second bus signal through the second input resistor R8, the first output terminal of the operational amplifier A is electrically connected to the non-inverting input terminal of the operational amplifier A through the second feedback resistor R10, and the second output terminal of the operational amplifier A is electrically connected to the inverting input terminal of the operational amplifier A through the first feedback resistor R9, so that the differential amplification signal output by the operational amplifier A includes the first differential amplification signal and the second differential amplification signal, so that the variable gain amplification circuit module 120 can be used to perform gain amplification on the first differential amplification signal and the second differential amplification signal to generate a gain amplification signal; wherein, the first output terminal of the operational amplifier A is used to output the first differential amplification signal; the second output terminal of the operational amplifier A is used to output the second differential amplification signal.
[0073] For example, an operational amplifier AOp-Amp with high input impedance and low noise can be selected as the operational amplifier A in the differential amplifier module 110, and the fully differential signal end of the CAN bus can be connected to the two input ends of the operational amplifier A respectively, that is, the first signal end of the fully differential signal end of the CAN bus is connected to the positive phase input end of the operational amplifier A through the first input resistor R7, and the first signal end of the fully differential signal end directly comes from the high level signal end CAN_H of the CAN bus, so that the positive phase input end of the operational amplifier A can receive the first bus signal transmitted by the high level signal end CAN_H of the CAN bus through the first input resistor R7; the inverting input end of the operational amplifier A is connected to the second signal end of the fully differential signal end of the CAN bus through the second input resistor R8. The first output terminal of the operational amplifier A is connected to the second signal terminal of the operational amplifier A, and the second signal terminal is the low-level signal terminal CAN_L of the CAN bus, so that the inverting input terminal of the operational amplifier A can receive the second bus signal transmitted by the low-level signal terminal CAN_L of the CAN bus through the second input resistor R8; the second feedback resistor R10 is placed between the first output terminal and the non-inverting input terminal of the operational amplifier A, and the first feedback resistor R9 is placed between the second output terminal and the inverting input terminal of the operational amplifier A, so that the overall gain of the operational amplifier A can be affected by the feedback resistor, that is, the gain of the 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 amplification signal is (R10 / R7) times of the first bus signal, and the gain corresponding to the second differential amplification signal is (R9 / R8) times of the second bus signal.
[0074] In addition, to ensure that signal amplification does not cause clipping, the operational amplifier A in the embodiment of the present application can be powered by a symmetrical power supply, such as a ±12V or ±15V power supply, and the embodiment of the present application does not impose any specific restrictions on this.
[0075] In some optional embodiments of the present application, the variable gain amplifier circuit module 120 can use resistors, transistors and diodes to form a peripheral circuit as a variable gain amplifier circuit, so that the variable gain amplifier circuit can perform gain amplification on the differential amplified signal output by the differential amplifier module 110 according to the control signal CONTROL of the controller to generate a gain amplified signal, and introduce a feedback loop module 130 to output a feedback signal BACKFEED according to the difference between the gain amplified signal and a preset reference signal of the controller, and adjust the control signal CONTROL until the signal value of the feedback signal BACKFEED is within the system preset value range of the controller, thereby achieving the purpose of monitoring signal reflection and automatically adjusting the amplification and compensation parameters to minimize signal distortion.
[0076] In an optional embodiment of the present 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, and may specifically include: 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; Figure 3As shown, the first end of the first resistor R1 serves as the input end INPUT of the variable gain amplifier circuit module 120, and is electrically connected to the output end 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 end of the differential amplifier module 110 serves as the input INPUT of the variable voltage-controlled gain amplifier circuit, so that the variable voltage-controlled gain amplifier circuit can perform gain amplification on 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 output end of the differential amplifier module 110 is used to output the differential amplified signal; the second end of the second resistor R2 is electrically connected to the inverting input end 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 end of the gain amplifier B and the feedback input end of the feedback loop module 130, and the output end of the gain amplifier B serves as the output end OUTNPUT of the variable voltage-controlled gain amplifier circuit, and is used to output the gain amplified signal; the first end of the fourth resistor R4 is electrically connected to the main control output end of the controller, the second end of the fourth resistor R4 is electrically connected to the control end 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 end of the controller is used to output the control signal CONTROL, and the voltage value of the control signal CONTROL is used to control the gain of the gain amplifier B; the non-inverting input end 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 the present application, a field effect transistor can be used as a 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, the diode in the diode submodule 310 and the sixth resistor R6 constitute a peripheral circuit to serve as a 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 end of the differential amplifier module 110, and is connected to the main control output end of the controller through the first resistor R10. Based on the control signal CONTROL output from the main control output end, the differential amplification signal output by the differential amplifier module 110 is gain amplified by utilizing the approximate logarithmic relationship between the gate voltage of the field effect tube and the drain-source resistance RSD. Among them, 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, and the sum of the tube voltage drops 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 tube. The gate VG is nonlinearly related to 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 the present application, the diode submodule 310 may include a sixth resistor R6 and at least two diodes connected in series, so 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 is nonlinearly related to the voltage of the control signal CONTROL, so that the amplification and compensation parameters can be automatically adjusted by adjusting the voltage of the control signal CONTROL to minimize signal distortion.
[0079] In an optional implementation of the present application, the anode of the diode is electrically connected to the second end of the fourth resistor R4 and the control end 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 diode in the diode submodule 310 and the sixth resistor R6 can also be connected in other ways, so that the reflection compensation circuit of the controller can automatically adjust the amplification and compensation parameters by adjusting the voltage of the control signal CONTROL to minimize signal distortion and improve signal quality.
[0081] For example, the anode of the diode in the diode submodule 310 may be electrically connected to the second end of the fourth resistor R4 and the control end of the transistor through the sixth resistor R6. 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 value of the 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 value of the 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 amplification circuit module 120 includes a first gain amplified signal and a second gain amplified signal, wherein the first gain amplified signal is a signal generated by the variable gain amplification circuit module 120 performing gain amplification on the first differential amplified signal according to the control signal, and the second gain amplified signal is a signal generated by the variable gain amplification circuit module 120 performing gain amplification on the second differential amplified signal according to the control signal.
[0083] In some optional embodiments of the present 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; 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 perform gain amplification on the first differential amplified signal according to the control signal CONTROL to generate the first gain amplified 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 perform gain amplification on the second differential amplified signal according to the control signal CONTROL to generate the second gain amplified 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 the present application, the feedback loop module 130 may include comparators C connected to the gain amplifiers one by one, and the first input terminal of each comparator C is electrically connected to the output terminal of the gain amplifier B to which it is connected, so that the feedback loop module 130 can compare the gain amplified signal output by the gain amplifier B with the preset reference signal REF of the controller through the comparator C, so as to output the feedback signal BACKFEED according to the difference between the gain amplified signal and the preset reference signal REF of the controller. Wherein, the second input terminal of the comparator C is electrically connected to the reference signal terminal of the controller, the reference signal terminal is used to provide the preset reference signal REF, and the output terminal of the comparator C is used to output the feedback signal BACKFEED. The preset reference signal REF may refer to a preset reference signal, as an expected signal, used to trigger the comparator to output the feedback signal BACKFEED according to the difference between the gain amplified signal and the expected signal, so as to adjust the voltage of the control signal CONTROL through the feedback signal BACKFEED, and then adjust the gain of the variable voltage-controlled gain amplifier circuit, until the signal value of the feedback signal BACKFEED is close to the system preset value, it is considered that the signal value of the feedback signal is within the system preset value range of the controller.
[0085] For example, in order to transmit a clear CAN signal, the gain amplified signal output by the gain amplifier can be compared with the preset reference signal REF through the comparator C, so that after comparing the difference between the gain amplified signal and the preset reference signal REF, the feedback signal BACKFEED is output to the main control unit of the controller, so that when the main control unit detects that the signal value of the feedback signal BACKFEED is too different from the system preset value, it adjusts the voltage of the control signal CONTROL, and then adjusts the gain of the variable gain amplifier circuit until the signal value of the feedback signal BACKFEED is close to the system preset value, thereby improving the problems of CAN signal distortion and noise interference.
[0086] In some embodiments of the present 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 embodiment of the present 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 frequency domain signal information of the communication bus signal, and based on the frequency domain signal information, select a target filter group from each filter group of the variable voltage-controlled gain amplifier circuit, so as to output the control signal CONTROL to the transistor corresponding to the target filter group based on the feedback signal.
[0087] In some optional embodiments of the present application, each variable voltage-controlled gain amplifier circuit also includes a filter group connected one-to-one with the transistors, and the number of the transistors is greater than one, and 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 the embodiment of the present application includes a first capacitor and a second capacitor, the first end of the first capacitor and the first end of the second capacitor are electrically connected to the second end of the transistor corresponding to the filter group, the second end of the first capacitor and the second end of the second capacitor are electrically connected to the reference ground of the reflection compensation circuit, and the capacitance of the first capacitor is different from the capacitance of the second capacitor, so that the variable voltage-controlled gain amplifier circuit can adapt to different communication conditions through filter groups with different capacitances to achieve graded filtering.
[0089] For example, three filter groups can be set, such as Figure 5 As shown, Figure 5 The capacitor C1 and the capacitor C2 can be used as the first capacitor and the second capacitor in the first filter group, so that the main control unit can control the first transistor U1 to be turned on through the control signal CONTROL to perform filtering through the first filter group; Figure 5 The capacitor C3 and the capacitor C4 in the second filter group can be used as the first capacitor and the second capacitor in the second filter group, so that the main control unit can control the second transistor U2 to be turned on through the control signal CONTROL to perform filtering through the second filter group; Figure 5 The capacitors C5 and C6 in the filter group can be used as the first capacitor and the second capacitor in the third filter group, so that the main control unit can control the third transistor U3 to be turned on through the control signal CONTROL to perform filtering through the third filter group.
[0090] It can be seen that the variable voltage-controlled gain amplifier circuit in the embodiment of the present application can set n filter groups, and the capacitor of each filter group and the first resistor R10 respectively form a low-pass filter and a high-pass filter, so that a hierarchical filter circuit can be realized through each filter group. Specifically, each filter group is composed of a first capacitor with a high capacitance and a second capacitor with a low capacitance. The capacitance of each filter group is different to adapt to different communication conditions, and can be connected to the signal output line through a transistor. The main control unit can select which level of filter group to use for filtering by controlling the on and off of the transistor to achieve adaptive filtering. Wherein, n is an integer greater than 1.
[0091] In one embodiment of the present application, the problem of poor performance of the CAN chip can be optimized by setting a reference signal as the preset reference signal of the controller, so as to use the reference signal to estimate the statistical characteristics of the noise, and to adjust in real time which level of filter to switch to for filtering, thereby suppressing noise interference in the CAN signal, improving the clarity and accuracy of the signal, and improving the transmission rate, anti-interference ability and stability of the CAN system, so as to achieve the purpose of improving the performance of the CAN chip while realizing the improvement of signal quality.
[0092] like Figure 6 As shown, an embodiment of the present application provides a controller 600, including a reflection compensation circuit 610 of the controller, and the reflection compensation circuit 610 can be the reflection compensation circuit described in any embodiment of the present application, so that the controller 600 can perform signal compensation processing through the reflection compensation circuit 610, so as to perform differential amplification on the communication bus signal through the differential amplifier module 110 to generate a differential amplified signal to improve the signal quality, and then according to the control signal of the controller, 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 according to the difference between the gain amplified 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, thereby realizing signal reflection monitoring and automatically adjusting the amplification and compensation parameters to minimize signal distortion.
[0093] In some optional embodiments of the present application, the controller provided in the embodiments of the present application can be used as a CAN chip, which obtains a CAN signal as a communication bus signal of the controller, and differentially amplifies the communication bus signal to generate a differential amplified signal, and then gain amplifies the differential amplified signal according to the control signal, so as to output a feedback signal according to the difference between the gain amplified signal and a preset reference signal, so that 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, thereby improving the problems of CAN signal distortion and noise interference, improving the CAN communication quality, and solving the problem of poor CAN communication quality existing in the existing related technologies.
[0094] Figure 7 A schematic flow chart of the steps of a reflection compensation method of a controller provided in an embodiment of the present application. Figure 7 As shown, the reflection compensation method of the controller provided in the embodiment of the present application includes the following steps:
[0095] Step 710, obtaining a communication bus signal of the controller;
[0096] Step 720, differentially amplifying the communication bus signal to generate a differential amplified signal;
[0097] Step 730, performing gain amplification on the differential amplified signal according to the control signal of the controller to generate a gain amplified signal;
[0098] Step 740, outputting a feedback signal according to the difference between the gain amplified signal and a 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 a system preset value range of the controller.
[0100] It can be seen that after acquiring the communication bus signal of the controller, the reflection compensation method provided by the implementation of the present application generates a differential amplified signal by differentially amplifying the communication bus signal to improve the signal quality, and then performs gain amplification on the differential amplified signal according to the control signal of the controller to generate a gain amplified signal, so that a feedback signal can be output according to the difference between the gain amplified signal and the preset reference signal of the controller 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 automatically adjusting the amplification and compensation parameters to minimize signal distortion, which can effectively improve the signal quality.
[0101] In some optional embodiments of the present application, the above-mentioned reflection compensation method is applied to a reflection compensation circuit as described in any embodiment of the present application, and the reflection compensation circuit includes at least two filter groups with different capacitance values. The reflection compensation method also 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; based on the frequency domain signal information, selecting a target filter group from the at least filter group; based on the feedback signal, outputting the control signal to the transistor corresponding to the target filter group.
[0102] Optionally, the noise filtering algorithm in the embodiment of the present application includes a time domain analysis algorithm and a frequency domain analysis algorithm, and the communication bus signal is subjected to secondary processing according to a preset noise filtering algorithm to obtain the communication bus signal, including: performing time domain analysis on the communication bus signal according to the time domain analysis algorithm to obtain a time domain output signal; based on the time domain output signal, performing frequency domain analysis using the frequency domain analysis algorithm to obtain the frequency domain signal information.
[0103] In one embodiment of the present application, time domain analysis is to remove noise by processing the time domain characteristics of the signal to improve the stability and readability of the signal. The specific implementation process of time domain analysis may include the following steps:
[0104] Step 1: Obtain the original signal, that is, obtain the original signal data from the CAN bus. The original signal data may contain noise and interference introduced due to various reasons;
[0105] Step 2: Smoothing, that is, using the sliding average method to smooth the original signal, so as to reduce noise through a simple and effective smoothing algorithm;
[0106] For example, the window size can be defined, that is, a window size n is selected to determine the degree of smoothing through the window size, and the window size can be adjusted according to the specific application scenario; then the smoothing is achieved by calculating the sliding average, so that after the smoothing, the high-frequency noise in the signal is effectively reduced to obtain a more stable and readable signal. Specifically, when calculating the sliding average, S can be set i is the value of the original signal at the i-th moment, and the smoothed signal value X can be defined i is the average value of all original signal values in window n, that is, By sliding the window from the starting point to the end point of the signal, the smoothed signal value at each moment can be calculated, so that after smoothing, the high-frequency noise in the signal is effectively reduced, that is, the noise is removed, and a more stable and readable signal is obtained.
[0107] Step 3: median filtering, that is, median filtering is performed on the basis of sliding average, so as to effectively remove sudden peak noise through median filtering, and further improve the stability and anti-interference ability of the signal. Specifically, the signal values in the window n can be sorted by size, so as to filter the signal values in the sorted window by taking the middle value. Specifically, the sorted middle value is taken as the signal output value Y at the current moment. i If the window size n is an odd number, the middle value is the values; if the window size n is an even number, the middle value is the and The average of the values makes the signal value after median filtering: Y i =median(S i ,S i+1 ,...,S i+n-1 ).
[0108] In summary, the embodiment of the present application performs smoothing through sliding average and combines it with median filtering, which can significantly reduce noise and make the signal more stable and readable.
[0109] In addition, the embodiment of the present application can further perform frequency domain analysis on the signal based on the time domain analysis to identify and process the noise components in the frequency domain. In some optional embodiments of the present application, based on the frequency domain signal information, selecting a target filter group from the at least filter group can 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, the target filter group is used to filter out the noise signal corresponding to the noise frequency range.
[0110] As an example of the present application, the specific implementation process of frequency domain analysis may include the following steps:
[0111] Step 1: Use Fast Fourier Transform (FFT) to convert the time domain signal to the frequency domain in order to identify the noise component in the frequency domain. Specifically, through signal sampling, the smoothed time domain signal X i Sampling is performed to obtain a discrete signal sequence, and then the discrete signal sequence is subjected to FFT transformation to obtain a frequency domain signal F(k) through FFT transformation, where k represents the frequency component. If N is set as the length of the signal sequence, the calculation formula of the frequency domain signal F(k) is: Among them, i is the parameter of the time domain signal, and k is the parameter of the frequency domain signal.
[0112] Step 2: Based on the amplitude spectrum of the frequency domain signal, the noise components in the frequency domain can be identified, so that the noise components can be filtered out through frequency domain filtering. Specifically, the noise frequency range can be determined based on the amplitude spectrum of the frequency domain signal, and then an appropriate frequency domain filter (such as a band-stop filter) can be selected based on 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 a filtered frequency domain signal.
[0113] Step 3: Perform an inverse fast Fourier transform (IFFT) on the filtered frequency domain signal to restore it to the time domain signal, that is, perform an inverse Fourier transform on the filtered frequency domain signal to obtain the filtered time domain signal. If F'(k) is the filtered frequency domain signal, the filtered time domain signal The calculation formula is:
[0114] It can be seen that the embodiment of the present application can more effectively identify and filter out noise components in the frequency domain through frequency domain analysis, thereby further improving the quality of the signal.
[0115] It should be noted that, for the purpose of simple description, the method embodiments are expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited to the described order of actions, because according to the embodiments of the present application, certain steps may be performed in other orders or simultaneously.
[0116] like Figure 8 As shown, an embodiment of the present application further provides an electronic device, comprising: 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, and the memory 113 is used to store computer programs; the processor 111 is used to implement the steps of the reflection compensation method provided by any of the aforementioned method embodiments when executing the computer program stored in the memory 113.
[0117] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the reflection compensation method of the controller provided in any one of the aforementioned method embodiments is implemented.
[0118] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place or distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0119] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.
[0120] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0121] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be 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 present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A reflection compensation circuit of a controller, characterized in that: include: A differential amplifier module, a variable gain amplifier circuit module and a feedback loop module; Wherein, the differential amplifier module is used to perform differential amplification on the communication bus signal of the controller to generate a differential amplified signal; The variable gain amplifier circuit module is used to perform gain amplification on the differential amplified signal according to the control signal of the controller to generate a gain amplified signal; The feedback loop module is used to output a feedback signal according to the difference between the gain amplified signal and a 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 a system preset value range of the controller.
2. The reflection compensation circuit according to claim 1, characterized in that: 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, 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, and 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 end 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 end of the gain amplifier and the feedback input end of the feedback loop module, and the output end 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 end of the controller, the second end of the fourth resistor is electrically connected to the control end 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 end 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 terminal of the gain amplifier is electrically connected to the reference ground of the reflection compensation circuit through the fifth resistor.
3. The reflection compensation circuit according to claim 2, characterized in that: The diode submodule comprises a sixth resistor and at least two diodes connected in series; The anode of the diode is electrically connected to the second end of the fourth resistor and the control end 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 end of the fourth resistor and the control end 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.
4. The reflection compensation circuit according to claim 2 or 3, 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 amplifying circuits are divided into a first variable voltage-controlled gain amplifying circuit and a second variable voltage-controlled gain amplifying 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 perform gain amplification on the first differential amplified 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 perform gain amplification on the second differential amplified signal according to the control signal to generate the second gain amplified signal The first output end of the differential amplifier module is used to output the first differential amplified signal, and the second output end of the differential amplifier module is used to output the second differential amplified signal.
5. The reflection compensation circuit according to claim 2 or 3, characterized in that: The feedback loop module includes comparators connected one-to-one with the gain amplifiers, the first input end of each comparator is electrically connected to the output end of the gain amplifier to which it is connected, the second input end of the comparator is electrically connected to the reference signal end of the controller, the reference signal end is used to provide the preset reference signal, and the output end of the comparator is used to output the feedback signal.
6. The reflection compensation circuit according to claim 5, characterized in that: Each of the variable voltage-controlled gain amplifier circuits also includes a filter group connected to the transistors in a one-to-one correspondence, and the number of the transistors is greater than one, and the capacitance values of the filter groups are different.
7. The reflection compensation circuit according to claim 6, characterized in that: Each of the filter groups includes a first capacitor and a second capacitor, the first end of the first capacitor and the first end of the second capacitor are electrically connected to the second end of the transistor corresponding to the filter group, the second end of the first capacitor and the second end of the second capacitor are electrically connected to the reference ground of the reflection compensation circuit, and the capacitance of the first capacitor is different from the capacitance of the second capacitor.
8. The reflection compensation circuit according to claim 6, characterized in that: The feedback loop module includes a 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 frequency domain signal information of the communication bus signal, and based on the frequency domain signal information, select a target filter group from each filter group of the variable voltage-controlled gain amplifier circuit to output the control signal to the transistor corresponding to the target filter group based on the feedback signal.
9. The reflection compensation circuit according to claim 4, 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; Wherein, 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.
10. A controller, characterized in that: It comprises the reflection compensation circuit as claimed in any one of claims 1 to 9.
11. A reflection compensation method for a controller, characterized in that: include: Acquiring a communication bus signal of the controller; Performing differential amplification on the communication bus signal to generate a differential amplified signal; According to the control signal of the controller, the differential amplified signal is gain-amplified to generate a gain-amplified signal; Outputting a feedback signal according to a difference between the gain amplified signal and a preset reference signal of the controller; The control signal is adjusted based on the feedback signal until the signal value of the feedback signal is within a system preset value range of the controller.
12. The reflection compensation method according to claim 11, characterized in that: The reflection compensation method is applied to the reflection compensation circuit according to any one of claims 1 to 9, wherein the reflection compensation circuit comprises at least two filter groups with different capacitance values, and the reflection compensation method further comprises: 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 filter group based on the frequency domain signal information; Based on the feedback signal, the control signal is output to the transistors corresponding to the target filter group.
13. The reflection compensation method according to claim 12, characterized in that: The noise filtering algorithm includes a time domain analysis algorithm and a frequency domain analysis algorithm. The communication bus signal is subjected to secondary processing according to a preset noise filtering algorithm to obtain the communication bus signal, including: Performing time domain analysis on the communication bus signal according to the time domain analysis algorithm to obtain a 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.
14. The reflection compensation method according to claim 13, characterized in that: The step of selecting a target filter group from at least one filter group based on the frequency domain signal information comprises: Determine the noise frequency range using the frequency domain signal information; 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.
15. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; The processor is used to implement the steps of the reflection compensation method as described in any one of claims 11 to 14 when executing the program stored in the memory.
Citation Information
Patent Citations
Fully-differential programmable gain amplifier
CN110943706A
Variable gain amplification circuit applied to Ethernet communication
CN116232245A
Method and apparatus for controlling signal amplitude level
CN1243615A
Apparatus and method for digitally-controlled automatic gain amplification
US20130033326A1
Fully-differential programmable gain amplifier
US20200099353A1
