A method for monitoring and compensating sending instructions using a feedback circuit
By introducing a feedback circuit into the signaling circuit of the ultrasonic distance detection system to monitor and compensate for the signal pulse width, the problem of communication failures caused by temperature changes is solved and stable communication in different environments is achieved.
Patent Information
- Application Number
- CN202210831134.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-14
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-07-14
AI Technical Summary
Under temperature changes, changes in the characteristics of the communication circuit components of the ultrasonic distance detection system lead to pulse width deformation, causing the sensor to be unable to recognize instructions, causing communication failures, and affecting the use and safety of the system.
By introducing a feedback circuit in the sending circuit, the pulse width of the sending signal is monitored and compensated, and the processor is used to calculate the difference and adjust the signal to ensure that the signal is effectively sent in different environments.
It improves the stability of the communication circuit, ensures that the sensor can correctly receive instructions under different temperature environments, avoids communication failures, and enhances the reliability and safety of the system.
Smart Images

Figure CN115208367B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for monitoring and compensating a sending instruction by using a feedback circuit. Background Art
[0002] The ultrasonic distance detection system is mainly composed of two parts, the controller and the sensor. The controller and the sensor transmit instructions or data via the communication circuit. The host sends instructions to the sensor through the communication circuit. After the sensor receives and recognizes the instructions, it executes the actions corresponding to the instructions, such as sending and receiving ultrasonic waves, receiving ultrasonic waves, parameter configuration, replying to diagnostic requests, etc. According to the communication protocol agreed upon between the controller and the sensor, there are many types of instructions, such as UART, LIN, TCI, etc., but they are all distinguished by the width or duty cycle of the high and low level pulses. Therefore, whether the correct pulse width can effectively reach the instruction receiving end, that is, the sensor end, becomes the key to the success of communication.
[0003] At normal temperature, after the host transmitter sends a command, the voltage waveform is delayed to a certain extent due to the presence of resistors, capacitors, transistors, etc. in the circuit, so the command received by the receiver will vary slightly. When developing products, most of them are designed or tested at normal temperature. Therefore, even if there are some fluctuations, communication can still be normal at normal temperature, that is, when the command reaches the receiver at normal temperature, the receiver can still recognize the command. However, the operating environment of the car is relatively complex, and it is far from enough to ensure normal operation near normal temperature. It is also necessary to ensure normal operation within a wider operating temperature range.
[0004] As the temperature changes, the characteristics of the components in the communication circuit will also change, such as the resistance of the resistor, the capacitance of the capacitor, the switching time of the transistor, the frequency of the crystal oscillator, etc. When these changes or the superposition of changes reach a certain level, the pulse width of the host command received by the sensor will also change significantly, and even exceed the range that the sensor can recognize, resulting in communication failure. For example, at a relatively low temperature, the host sends a low-level pulse of a certain width to the sensor to represent the parameter configuration instruction. However, due to the influence of temperature on the components in the circuit, when the instruction reaches the signal recognition port of the sensor, it has been deformed and exceeds the effective low-level pulse width range of the instruction that the sensor itself can recognize, and is ignored by the sensor. This leads to configuration failure and even communication failure. Such failures will inevitably affect the driver's use of the ultrasonic distance detection system, cause customer complaints, and even induce safety concerns.
[0005] When designing a product, the temperature characteristics of components are usually taken into consideration by the designer. However, even so, due to the complexity of the temperature characteristics of components and the influence of random factors, such as the tolerance of the parts themselves and the tolerance of the measuring equipment, it is still common for products to fail to communicate at certain temperatures. The impact of temperature on products is objective, and even if the designer wants to choose some parts that are less affected by temperature, the impact cannot be completely eliminated; or due to cost reasons, this approach to solving the problem is forced to be abandoned. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide a method for monitoring and compensating sending instructions using a feedback circuit, detecting the success rate of the entire signal sending through the existing signal sending circuit and the voltage signal on the feedback monitoring circuit of the traditional connection circuit, ensuring normal communication, and realizing the compensation operation of signal communication without adding original electronic components, thereby improving the stability of the communication circuit.
[0007] In order to solve the above technical problems, the technical solution of the present invention is:
[0008] A method for monitoring and compensating a sending instruction using a feedback circuit, wherein the circuit comprises a processor, a sending circuit and a feedback circuit, wherein the processor is connected to the sending circuit, the sending circuit is connected to a sensor, sends an instruction signal to the sensor, and has a sending end at one end, and the sending end is connected to the processor; the feedback circuit is connected to the sending circuit, receives a feedback signal, and has a receiving end at one end, and the receiving end is connected to the processor;
[0009] The compensation method is:
[0010] The first step is to set the pulse width standard value for issuing commands in the host, and set the maximum and minimum values;
[0011] In the second step, the feedback circuit receives the feedback signal, obtains the pulse width value of the original transmission signal, and compares the pulse width value fed back with the standard value. If the value is within the standard value range, the instruction is successfully sent; if the value is not within the standard value range, the instruction is unsuccessful and needs to be resent;
[0012] The third step is to process the difference between the pulse width value and the standard value through the processor, that is, the difference is less than the minimum value or greater than the maximum value;
[0013] The fourth step is to input the difference into the transmitting end, and to compensate the transmitted pulse signal according to the calculated difference, thereby increasing or decreasing the width of the transmitted pulse;
[0014] In the fifth step, the feedback signal is received again through the feedback circuit, and the above steps are repeated.
[0015] Furthermore, the feedback signal received by the feedback circuit is a pulse width of the circuit signal. When the sensor feedback configuration fails, the processor automatically queries the last feedback signal and processes the feedback signal.
[0016] Furthermore, the transmitting circuit is provided with a transistor for amplifying the pulse signal of the transmitting circuit; the collector of the transistor is connected to the power supply voltage, the filter capacitor and the electrode resistor, the base is connected to the transmitting end, and a transmitting resistor is provided between the transmitting end and the transistor; the emitter is connected to a ground wire, the transmitting circuit sends a command signal to the sensor through the transmitting end, and the signal is sent through the collector; the feedback circuit is connected to the collector of the transistor, and is externally connected to the processor, so as to feed back the electrical signal in the transmitting circuit to the processor.
[0017] Furthermore, in the transmitting circuit, a transmitting resistor is arranged between the transmitting end and the base of the transistor, and at least two transmitting resistors are arranged and connected in series in the transmitting circuit.
[0018] Furthermore, a signaling capacitor or a signaling safety resistor is provided on one side of the signaling resistor, and the signaling capacitor and the signaling safety resistor are respectively connected in parallel with one of the signaling resistors and are grounded.
[0019] Furthermore, a feedback resistor is provided on the feedback circuit, and the feedback resistor is connected in series between the receiving end and the collector of the transistor.
[0020] Furthermore, a voltage stabilizing diode is connected in parallel between the receiving end and the feedback resistor. The voltage stabilizing diode is grounded, and one end of the voltage stabilizing diode is connected in parallel to the feedback circuit.
[0021] Furthermore, a feedback protection resistor is connected in parallel between the receiving end and the feedback resistor, one end of the feedback protection resistor is grounded, and the other end is connected in parallel to the feedback circuit.
[0022] Furthermore, one end of the power supply voltage is connected to the positive pole of the power supply, and the other end is connected to the collector of the transistor, and is also connected to a voltage protection resistor; the filter capacitor is located on one side of the power supply voltage, and one end is grounded.
[0023] Compared with the prior art, the present invention provides a method for monitoring and compensating sending instructions using a feedback circuit. A feedback circuit is added to the sending circuit to return the voltage pulse width of the sending signal to the processor, so that the width amplitude that needs to be adjusted is calculated based on the feedback pulse width. The signal is sent using the transistor on the sending circuit, and the current and voltage released by the base are adjusted to achieve the pulse width required by the signal, thereby achieving effective signal transmission, so that the sensor can receive signals with the same pulse width in different environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Attached Figure 1 A system circuit diagram of the present invention is shown.
[0025] Attached Figure 2 A flow chart of the method of the present invention is shown.
[0026] Among them: 1. Processor, 2. Transmitting circuit, 3. Feedback circuit, 4. Transistor, 5. Power supply voltage, 6. Filter capacitor, 7. Electrode resistor, 8. Transmitting resistor, 9. Transmitting capacitor, 10. Transmitting safety resistor, 11. Feedback resistor, 12. Zener diode, 13. Voltage protection resistor. DETAILED DESCRIPTION
[0027] A method for monitoring and compensating a sending instruction using a feedback circuit, wherein the circuit comprises a processor 1, a sending circuit 2 and a feedback circuit 3, wherein the processor 1 is connected to the sending circuit 2, the sending circuit 2 is connected to a sensor, sends an instruction signal to the sensor, and has a sending end at one end, and the sending end is connected to the processor 1; the feedback circuit 3 is connected to the sending circuit 2, receives a feedback signal, and has a receiving end at one end, and the receiving end is connected to the processor 1;
[0028] The compensation method is:
[0029] The first step is to set the pulse width amplitude standard value of the command issued in the host, and set the maximum and minimum values;
[0030] In the second step, the feedback circuit 3 receives the feedback signal, obtains the pulse width value of the original transmission signal, and compares the pulse width value fed back with the standard value. If the value is within the standard value range, the instruction is successfully sent; if the value is not within the standard value range, the instruction is unsuccessful and needs to be resent;
[0031] The third step is to perform difference processing between the pulse amplitude value and the standard value through processor 1, that is, the difference is less than the minimum value or greater than the maximum value;
[0032] The fourth step is to input the difference into the transmitting end, and to compensate the transmitted pulse signal according to the calculated difference, thereby increasing or decreasing the width of the transmitted pulse;
[0033] In the fifth step, the feedback signal is received again through the feedback circuit 3, and the above steps are repeated.
[0034] Furthermore, the feedback signal received by the feedback circuit 3 is the pulse width of the circuit signal. When the sensor feedback configuration fails, the processor 1 automatically queries the last feedback signal and processes the feedback signal.
[0035] Furthermore, the transmitting circuit 2 is provided with a transistor 4 for amplifying the pulse signal of the transmitting circuit 2; the collector of the transistor 4 is connected to the power supply voltage 5, the filter capacitor 6 and the electrode resistor 7, the base is connected to the transmitting end, and a transmitting resistor is provided between the transmitting end and the transistor 4; the emitter is connected to a ground wire, the transmitting circuit 2 sends a command signal to the sensor through the transmitting end, and the signal is sent through the collector; the feedback circuit 3 is connected to the collector of the transistor 4, and is externally connected to the processor 1, so as to feed back the electrical signal in the transmitting circuit 2 to the processor 1.
[0036] Furthermore, on the transmitting circuit 2 , a transmitting resistor 8 is provided between the transmitting end and the base of the transistor 4 , and at least two transmitting resistors 8 are provided and are connected in series to the transmitting circuit 2 .
[0037] Furthermore, a signaling capacitor 9 or a signaling safety resistor 10 is provided on one side of the signaling resistor 8. The signaling capacitor 9 and the signaling safety resistor 10 are respectively connected in parallel with one of the signaling resistors 8 and are grounded.
[0038] Furthermore, a feedback resistor 11 is provided on the feedback circuit 3 , and the feedback resistor 11 is connected in series between the receiving end and the collector of the transistor 4 .
[0039] Furthermore, a voltage stabilizing diode 12 is connected in parallel between the receiving end and the feedback resistor 11 . The voltage stabilizing diode 12 is grounded, and one end of the voltage stabilizing diode 12 is connected in parallel to the feedback circuit 3 .
[0040] Furthermore, a feedback protection resistor is connected in parallel between the receiving end and the feedback resistor 11 , one end of the feedback protection resistor is grounded, and the other end is connected in parallel to the feedback circuit 3 .
[0041] Furthermore, one end of the power supply voltage 5 is connected to the positive pole of the power supply, and the other end is connected to the collector of the transistor 4, and is also connected to a voltage protection resistor 13; the filter capacitor 6 is located on one side of the power supply voltage 5, and one end is grounded.
[0042] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than a limiting technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.
Claims
1. A method for monitoring and compensating a sending instruction using a feedback circuit, wherein the circuit comprises a processor, a sending circuit and a feedback circuit, wherein the processor is connected to the sending circuit, the sending circuit is connected to a sensor, sends a command signal to the sensor, and has a sending end at one end, which is connected to the processor; the feedback circuit is connected to the sending circuit, receives a feedback signal, and has a receiving end at one end, which is connected to the processor; It is characterized in that The compensation method is: The first step is to set the pulse width standard value for issuing commands in the host, and set the maximum and minimum values; In the second step, the feedback circuit receives the feedback signal, obtains the pulse width value of the original transmission signal, and compares the pulse width value fed back with the standard value. If the value is within the standard value range, the instruction is successfully sent; if the value is not within the standard value range, the instruction is unsuccessful and needs to be resent; The third step is to process the difference between the pulse width value and the standard value through the processor, that is, the difference is less than the minimum value or greater than the maximum value; The fourth step is to input the difference into the transmitting end, and to compensate the transmitted pulse signal according to the calculated difference, thereby increasing or decreasing the transmitted pulse width value; In the fifth step, the feedback signal is received again through the feedback circuit, and the above steps are repeated.
2. The compensation method according to claim 1, characterized in that: The feedback signal received by the feedback circuit is the pulse width of the circuit signal. When the sensor feedback configuration fails, the processor automatically queries the last feedback signal and processes the feedback signal.
3. A circuit using the compensation method according to claim 1, characterized in that: The transmitting circuit is provided with a transistor for amplifying the pulse signal of the transmitting circuit; the collector of the transistor is connected to the power supply voltage, the filter capacitor and the collector resistor, the base is connected to the transmitting end, and a transmitting resistor is provided between the transmitting end and the transistor; the emitter is connected to a ground wire, the transmitting circuit sends a command signal to the sensor through the transmitting end, and the signal is sent through the collector; the feedback circuit is connected to the collector of the transistor, and is externally connected to the processor, so as to feed back the electrical signal in the transmitting circuit to the processor.
4. The circuit according to claim 3, characterized in that In the transmitting circuit, a transmitting resistor is arranged between the transmitting end and the base of the transistor, and at least two transmitting resistors are arranged and connected in series in the transmitting circuit.
5. The circuit according to claim 4, characterized in that A signaling capacitor or a signaling safety resistor is arranged on one side of the signaling resistor. The signaling capacitor and the signaling safety resistor are respectively connected in parallel with one of the signaling resistors and are grounded.
6. The circuit according to claim 3, characterized in that The feedback circuit is provided with a feedback resistor, which is connected in series between the receiving end and the collector of the triode.
7. The circuit according to claim 6, characterized in that A voltage stabilizing diode is connected in parallel between the receiving end and the feedback resistor. The voltage stabilizing diode is grounded, and one end of the voltage stabilizing diode is connected in parallel to the feedback circuit.
8. The circuit according to claim 7, characterized in that A feedback protection resistor is also connected in parallel between the receiving end and the feedback resistor. One end of the feedback protection resistor is grounded, and the other end is connected in parallel to the feedback circuit.
9. The circuit according to claim 3, characterized in that One end of the power supply voltage is connected to the positive pole of the power supply, and the other end is connected to the collector of the transistor, and is also connected to a voltage protection resistor; the filter capacitor is located on one side of the power supply voltage, and one end is grounded.
