Control and measurement device for lin bus communication

By designing a measurement and control device for LIN bus communication, and using controller and transceiver control circuits to automatically monitor the LIN bus status, the problems of low efficiency and low automation level of LIN bus testing are solved, and efficient, reliable testing and rapid verification are achieved.

CN116582390BActive Publication Date: 2026-03-24TIANJIN JINGWEI HIRAIN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-19
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

LIN bus testing suffers from low efficiency, low automation, and poor reliability, which affects the efficiency of controller communication function verification.

Method used

Design a LIN bus communication measurement and control device, including a controller control circuit and a transceiver control circuit. It automatically monitors the LIN bus status, generates and receives control signals, and uses a level conversion circuit to provide appropriate voltage to support the monitoring of multiple LIN node devices.

Benefits of technology

It improves the efficiency and reliability of LIN bus testing, realizes automated monitoring, reduces the complexity and time of manual testing, and enhances the ability to quickly verify controller communication functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116582390B_ABST
    Figure CN116582390B_ABST
Patent Text Reader

Abstract

The application discloses a kind of LIN bus communication's measuring and controlling device.LIN bus communication's measuring and controlling device includes controller control circuit and transceiver control circuit;Controller control circuit and transceiver control circuit are electrically connected, and transceiver control circuit is electrically connected with LIN bus;Controller control circuit is used to generate control signal, and receive the state of LIN bus monitored by transceiver control circuit;Transceiver control circuit is used to generate the level of LIN bus transmission according to control signal, and monitor the state of LIN bus.According to the embodiment of the application, it is favorable to improve the shortcomings of low test efficiency, low automation level and poor reliability of LIN bus.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of measurement and control, in particular to a LIN bus communication measurement and control device. BACKGROUND

[0002] LIN (Local Interconnect Network) bus is a serial communication protocol bus based on universal asynchronous receiver-transmitter and serial interface, which has the advantages of low cost, high speed and high reliability.

[0003] In the automotive electronics industry, LIN bus communication has been widely used in various vehicle controller development, and has become an irreplaceable choice for most controllers for communication purposes. For example, the whole vehicle controller controls the seat position adjustment, controls the sunroof opening and closing, etc. through the LIN bus.

[0004] However, the related technology of LIN bus test has the disadvantages of low efficiency, low automation level and poor reliability. SUMMARY

[0005] The LIN bus communication measurement and control device provided by the embodiments of the present application is beneficial to improve the disadvantages of low efficiency, low automation level and poor reliability of LIN bus test.

[0006] The LIN bus communication measurement and control device provided by the embodiments of the present application includes a controller control circuit and a transceiver control circuit; the controller control circuit and the transceiver control circuit are electrically connected, and the transceiver control circuit is electrically connected with the LIN bus; the controller control circuit is used to generate a control signal and receive the state of the LIN bus monitored by the transceiver control circuit; and the transceiver control circuit is used to generate the level of the LIN bus transmission according to the control signal and monitor the state of the LIN bus.

[0007] In some optional embodiments, the LIN bus communication measurement and control device further includes:

[0008] A level conversion circuit is electrically connected with the controller control circuit and the transceiver control circuit, and is used to convert the power supply voltage provided by the power supply into the voltage required for the operation of the controller control circuit and the transceiver control circuit.

[0009] In some optional embodiments, the controller control circuit includes a first chip, and the transceiver control circuit includes a second chip;

[0010] The first chip includes a sending pin and a receiving pin;

[0011] The second chip includes a generating pin, a monitoring pin and a bus pin;

[0012] The transmit pin connects to the generate pin, the receive pin connects to the monitor pin, and the bus pin connects to the LIN bus.

[0013] The transmit pin is used to send control signals, the generate pin is used to receive control signals, the monitor pin is used to monitor the status of the LIN bus, and the receive pin is used to receive the status of the monitored LIN bus.

[0014] In some optional embodiments, the LIN bus communication measurement and control device further includes:

[0015] The external interface circuit includes multiple external pins. The bus pins of the transceiver control circuit are electrically connected to the LIN bus through the external pins.

[0016] In some alternative embodiments, the level shifting circuit includes a first regulator and a second regulator;

[0017] The power supply is connected to the input pin of the first regulator in sequence through the first diode and the inductor. At least two capacitors are connected in parallel between the connection point of the first diode and the inductor and ground. At least two capacitors are connected in parallel between the connection point of the inductor and the input pin of the first regulator and ground. A transient suppression diode is connected in series between the power supply and ground.

[0018] The output pin of the first voltage regulator is connected to the input pin of the second voltage regulator. At least three capacitors are connected in parallel between the output pin of the first voltage regulator and ground. A resistor and a capacitor are also connected in series between the output pin of the first voltage regulator and ground. The connection point of the series resistor and capacitor is connected to the enable pin of the second voltage regulator.

[0019] At least two capacitors are connected in parallel between the output pin of the second voltage regulator and ground.

[0020] A resistor and a light-emitting diode are connected in series between the output pin of the first voltage regulator and ground.

[0021] In some alternative embodiments, the first chip includes a first clock pin and a second clock pin;

[0022] A resistor and a crystal are connected in series between the first clock pin and the second clock pin, and a capacitor is connected in parallel between the crystal and ground.

[0023] In some alternative embodiments, the first chip further includes a reset pin and a debug pin;

[0024] A resistor is connected in series between the reset pin and the first voltage terminal, a capacitor is connected in series between the reset pin and ground, and a resistor is connected in series between the reset pin and the first output pin of the programmer.

[0025] A resistor is connected in series between the debugging pin and the first voltage terminal, and a resistor is connected in series between the debugging pin and the second output pin of the programmer.

[0026] In some alternative embodiments, the first chip further includes a voltage acquisition pin;

[0027] A resistor is connected in series between the voltage acquisition pin and the first voltage terminal, and the voltage acquisition pin is connected to a manual DIP switch.

[0028] In some optional embodiments, the second chip further includes a power input pin, which is connected to a second voltage terminal, and a capacitor is connected between the power input pin and ground.

[0029] The second chip also includes a mode control pin, which is connected to the mode enable pin of the first chip via a resistor.

[0030] The second chip also includes a wake-up enable pin, which is connected to the second voltage terminal through a resistor and grounded through a capacitor.

[0031] The monitoring pin of the second chip is connected to the first voltage terminal through a resistor;

[0032] The generator pin of the second chip is connected to the transmitter pin of the first chip through a resistor;

[0033] The bus pin of the second chip is grounded through a capacitor and connected to the external pin of the external connection circuit through a resistor. The external pin is electrically connected to the LIN bus.

[0034] The external pin is connected to the second voltage terminal through at least two resistors and a diode in parallel, and the external pin is grounded through a transient suppression diode.

[0035] In some optional embodiments, the LIN bus communication measurement and control device also includes an indicator light circuit;

[0036] The indicator circuit includes at least one resistor and a light-emitting diode connected in series between the voltage output pin of the first chip and the ground terminal.

[0037] The LIN bus communication measurement and control device provided in the embodiments of this application can automatically monitor the status of the LIN bus by setting a controller control circuit and a transceiver control circuit, without the need for manual testing. This helps to improve the shortcomings of low LIN bus testing efficiency, low automation level and poor reliability. Attached Figure Description

[0038] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings, in which the same or similar reference numerals denote the same or similar features, and the drawings are not drawn to scale.

[0039] Figure 1This illustration shows a structural diagram of a LIN bus communication measurement and control device provided in an embodiment of this application;

[0040] Figure 2 This illustration shows another structural diagram of the LIN bus communication measurement and control device provided in an embodiment of this application;

[0041] Figure 3 This illustration shows a schematic diagram of a level conversion circuit in a LIN bus communication measurement and control device provided in an embodiment of this application;

[0042] Figure 4 This illustration shows a schematic diagram of the controller control circuit in a LIN bus communication measurement and control device provided in an embodiment of this application;

[0043] Figure 4a Show Figure 4 Enlarged schematic diagram of a local area in the middle;

[0044] Figure 4b Show Figure 4 An enlarged view of another local area;

[0045] Figure 4c Show Figure 4 An enlarged schematic diagram of another local area;

[0046] Figure 5 This illustration shows a schematic diagram of a transceiver control circuit in a LIN bus communication measurement and control device provided in an embodiment of this application.

[0047] Figure 6 This illustration shows a schematic diagram of the external interface circuit in the LIN bus communication measurement and control device provided in an embodiment of this application;

[0048] Figure 7 This diagram illustrates a connection relationship of the transceiver control circuit in the LIN bus communication measurement and control device provided in an embodiment of this application.

[0049] Figure 8 This diagram illustrates another connection relationship of the transceiver control circuit in the LIN bus communication measurement and control device provided in this application embodiment;

[0050] Figure 9 This illustration shows a schematic diagram of an indicator light circuit in a LIN bus communication measurement and control device provided in an embodiment of this application. Detailed Implementation

[0051] The features and exemplary embodiments of various aspects of this application will now be described in detail. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain this application and are not configured to limit this application. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples of this application.

[0052] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0053] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0054] It should be noted that when a component is described as "connected" or "electrically connected" to another component, it can be directly connected to the other component, or there may be one or more intermediate components in between.

[0055] Various modifications and variations can be made to this application without departing from its spirit or scope, which will be apparent to those skilled in the art. Therefore, this application is intended to cover modifications and variations falling within the scope of the corresponding claims (the claimed technical solutions) and their equivalents. It should be noted that the embodiments provided in this application can be combined with each other without contradiction.

[0056] Before describing the technical solutions provided in the embodiments of this application, in order to facilitate understanding of the embodiments of this application, this application first specifically explains the problems existing in the related technologies:

[0057] In related technologies, LIN bus testing methods include manual testing. However, manual testing products are bulky, complex, inefficient, have low automation levels, and poor reliability, which seriously affects the verification of the controller's LIN bus communication function in a short period of time. This makes efficient and accurate testing of the LIN bus a bottleneck restricting the rapid verification of the controller.

[0058] This application provides a measurement and control device for LIN bus communication, which helps to improve the shortcomings of LIN bus testing, such as low efficiency, low level of automation, and poor reliability.

[0059] like Figure 1 As shown, the LIN bus communication measurement and control device provided in this application embodiment may include a controller control circuit 11 and a transceiver control circuit 12.

[0060] The controller control circuit 11 and the transceiver control circuit 12 are electrically connected, and the transceiver control circuit 12 is electrically connected to the LIN bus.

[0061] The controller control circuit 11 generates control signals and receives the LIN bus status monitored by the transceiver control circuit 12. The transceiver control circuit 12 generates the LIN bus transmission level based on the control signals and monitors the LIN bus status.

[0062] For example, a low level transmitted on the LIN bus indicates that the LIN bus is in a dominant state; a high level transmitted on the LIN bus indicates that the LIN bus is in a recessive state.

[0063] The transceiver control circuit 12 generates the LIN bus transmission level based on the control signal. In other words, the control signal generated by the controller control circuit 11 can be used to indicate the target state of the LIN bus. For example, if the target state is dominant, the transceiver control circuit 12 generates a low level for LIN bus transmission based on the control signal and monitors the actual state of the LIN bus. Conversely, if the target state is recessive, the transceiver control circuit 12 generates a high level for LIN bus transmission based on the control signal and monitors the actual state of the LIN bus.

[0064] The transceiver control circuit 12 feeds back the monitored LIN bus status to the controller control circuit 11. The controller control circuit 11 can monitor whether the LIN bus is malfunctioning based on the LIN bus status monitored by the transceiver control circuit 12.

[0065] Understandably, if the control signal generated by the controller control circuit 11 can be used to indicate that the target state of the LIN bus is recessive, and the state of the LIN bus monitored by the transceiver control circuit 12 is recessive, it indicates that the LIN bus is normal. If the state of the LIN bus monitored by the transceiver control circuit 12 is dominant, it indicates that the LIN bus is abnormal.

[0066] Similarly, if the control signal generated by the controller control circuit 11 can be used to indicate that the target state of the LIN bus is dominant, and the state of the LIN bus monitored by the transceiver control circuit 12 is dominant, it indicates that the LIN bus is normal. If the state of the LIN bus monitored by the transceiver control circuit 12 is recessive, it indicates that the LIN bus is abnormal.

[0067] According to the LIN bus communication measurement and control device provided in the embodiments of this application, by setting the controller control circuit 11 and the transceiver control circuit 12, the status of the LIN bus can be automatically monitored without manual testing, which helps to improve the shortcomings of low LIN bus testing efficiency, low automation level and poor reliability.

[0068] In some embodiments, such as Figure 2 As shown, the LIN bus communication measurement and control device may also include a level conversion circuit 13. The level conversion circuit 13 is electrically connected to the controller control circuit 11 and the transceiver control circuit 12, and is used to convert the power supply voltage provided by the power supply 20 into the voltage required for the operation of the controller control circuit 11 and the transceiver control circuit 12.

[0069] In this way, if the power supply voltage provided by the power supply 20 does not meet the operating voltage required by the controller control circuit 11 and the transceiver control circuit 12, the power supply voltage provided by the power supply 20 can be converted to meet the operating requirements of the controller control circuit 11 and the transceiver control circuit 12.

[0070] As an example, such as Figure 3 As shown, the level conversion circuit 13 may include a first regulator U101 and a second regulator U102. The regulator may include an LDO (low dropout regulator).

[0071] For example, the controller control circuit 11 requires a working voltage of 5V, the transceiver control circuit 12 requires a working voltage of 12V, the first voltage regulator U101 can be used to convert the power supply voltage provided by the power supply PWR into a 12V voltage output, and the second voltage regulator U102 can be used to convert the input 12V voltage into a 5V voltage output.

[0072] As an example, the first regulator U101 may include an LDO chip of model LM2940S-15. The second regulator U102 may include an LDO chip of model TLE42664G.

[0073] For example, a transient suppression diode D101 is connected in series between the power supply PWR and ground GND. The transient suppression diode D101 can be used to provide a discharge path for surges and static electricity, protecting the circuitry behind the transient suppression diode D101.

[0074] The transient suppression diode D101 can be of model number SMBJ33CA.

[0075] For example, the power supply PWR can be connected to the input pin 1 of the first regulator U101 in sequence through the first diode D102 and the inductor L101. At least two capacitors, such as capacitor C101 and capacitor C102, are connected in parallel between the connection point of the first diode D102 and the inductor L101 and ground GND.

[0076] At least two capacitors, such as capacitors C103 and C104, are connected in parallel between the connection point of inductor L101 and the input pin1 of the first voltage regulator U101 and ground GND.

[0077] Capacitor C101 can be used to stabilize the power supply voltage provided by the PWR power supply. The capacitance value of capacitor C101 can be 1μF.

[0078] Capacitor C102, inductor L101, and capacitor C103 can form a Π-type low-pass filter, which can be used to smooth the voltage input to pin 1 of the first regulator U101. The capacitance values ​​of capacitors C102 and C103 can be 470nF. The inductance value of inductor L101 can be 100μH.

[0079] Pins 2 and 4 of the first voltage regulator U101 can be grounded to GND.

[0080] The output pin 3 of the first voltage regulator U101 is connected to the input pin 1 of the second voltage regulator U102.

[0081] At least three capacitors, such as C105, C106, and C107, are connected in parallel between the output pin 3 of the first voltage regulator U101 and ground. These capacitors are used to stabilize the output voltage of the first voltage regulator U101. For example, C105, C106, and C107 can be used to stabilize a 12V voltage. The capacitance of each capacitor can be 10μF.

[0082] A resistor and capacitor can be connected in series between the output pin 3 of the first voltage regulator U101 and ground (GND). The connection point of the series resistor and capacitor is connected to the enable pin of the second voltage regulator U102. For example, resistor R101 and capacitor C108 are connected in series between the output pin 3 of the first regulator U101 and ground (GND). This series connection can be used to enable the second regulator U102. Resistor R101 can have a resistance of 10KΩ. Resistor R101 can be a 0603 package. Capacitor C108 can have a capacitance of 4.7nF.

[0083] At least two capacitors, such as capacitors C109 and C110, can be connected in parallel between the output pin 3 of the second voltage regulator U102 and ground GND. Capacitors C109 and C110 can be used to stabilize the output voltage of the second voltage regulator U102. The capacitance values ​​of both capacitors C109 and C110 can be 22μF.

[0084] A resistor and an LED can be connected in series between the output pin 3 of the first voltage regulator U101 and ground (GND). For example, a resistor R102 and an LED D103 can be connected in series. If the LED D103 lights up normally, it indicates that the output voltage of the first voltage regulator U101 is normal. The resistor R102 can be a 5.1kΩ, 0805 packaged surface mount resistor.

[0085] In some embodiments, such as Figure 4 and Figure 5 As shown, the controller control circuit 11 may include a first chip U201, and the transceiver control circuit 12 may include a second chip U301.

[0086] The first chip U201 may include a transmit pin TXD0_PS1_MCU53 and a receive pin RXD0_PS0_MCU52.

[0087] The second chip U301 may include a generation pin TXD, a monitoring pin RXD, and a bus pin LIN.

[0088] The transmit pin TXD0_PS1_MCU53 is connected to the generation pin TXD, the receive pin RXD0_PS0_MCU52 is connected to the monitoring pin RXD, and the bus pin LIN is electrically connected to the LIN bus.

[0089] The transmit pin TXD0_PS1_MCU53 is used to transmit control signals, the generate pin TXD is used to receive control signals, the monitor pin RXD is used to transmit the status of the monitored LIN bus, and the receive pin RXD0_PS0_MCU52 is used to receive the status of the monitored LIN bus.

[0090] In this embodiment, different signals are transmitted through different pins to avoid interference between signals.

[0091] The controller control circuit 11 can be used to control the transceiver control circuit 12 to realize logic reading and writing. The transceiver control circuit 12 can be used to generate and monitor the LIN bus level.

[0092] For example, in conjunction with the reference Figure 4 as well as Figure 4a , Figure 4b , Figure 4c The first chip U201 can be a chip with model number S9S12G128F0MLHR. The first chip U201 may include 64 pins from pin 1 to pin 64. For example, the I / O interface of the first chip U201 for signal acquisition and output may include pins 37, 39, 41, 43, 52, 53, 54, 55, 48, 57, 59, 62, 63, 30, 31, and 32.

[0093] Pins 5, 6, 50, and 49 of the first chip U201 can be used as 5V power input pins, and pins 7, 9, 51, and 11 of the first chip U201 can be used as 5V power ground pins.

[0094] At least one capacitor can be connected in series between each 5V power input pin and the power ground pin. The series capacitors can be used for ESD (Electro-Static Discharge) protection.

[0095] For example, the capacitors connected in series between the four 5V power input pins and the power ground pins can be capacitors C202, C203, C204, and C205, respectively. The capacitance value of capacitors C202, C203, C204, and C205 can all be 100nF.

[0096] In some embodiments, the controller control circuit 11 may further include a clock circuit.

[0097] Reference Figure 4 as well as Figure 4a , Figure 4b , Figure 4c A resistor R203 and a crystal oscillator Y201 can be connected in series between the first clock pin EXTAL and the second clock pin XTAL of the first chip U201. A capacitor is connected in parallel between the crystal oscillator Y201 and ground GND. For example, two capacitors C206 and C207, each with a value of 22pF, are connected in parallel between the crystal oscillator Y201 and ground GND.

[0098] For example, the first clock pin EXTAL can be pin 8 of the first chip U201, and the second clock pin XTAL can be pin 10 of the first chip U201. Pins 8 and 10 can be used to construct a clock circuit to generate a bus clock.

[0099] In some embodiments, the controller control circuit 11 may further include a reset circuit and a communication debugging circuit.

[0100] Reference Figure 4 as well as Figure 4a , Figure 4b , Figure 4c The first chip U201 may include a reset pin. And debug pin BKGD.

[0101] reset pin A resistor R201 is connected in series with the first voltage terminal VCC5V0. The resistance value of resistor R201 can be 4.7kΩ, and the package of resistor R201 is 0603. It can be understood that resistor R201 is a pull-up resistor.

[0102] reset pin A capacitor C201 is connected in series with ground (GND). The capacitance of capacitor C201 can be 4.7nF.

[0103] reset pin A resistor R205 is connected in series with the first output pin 4 of the BDM programmer. The resistance of resistor R205 is 100Ω, and resistor R205 can be packaged as 0603.

[0104] A resistor R202 is connected in series between the debugging pin BKGD and the first voltage terminal VCC5V0. The resistance value of resistor R202 can be 10kΩ, and resistor R202 can be packaged as a 0603.

[0105] A resistor R204 is connected in series between the debug pin BKGD and the second output pin (pin1) of the programmer BDM. The resistor R204 has a resistance of 100Ω and can be packaged as a 0603.

[0106] For example, the reset pin Pin 4 of the first chip U201 can be used to form a low-active reset circuit. The debug pin BKGD can be pin 16 of the first chip U201. Pin 16 serves as a debug communication pin, used to select the operating mode during reset. For example, the operating mode may include normal operation mode or sleep mode.

[0107] The program can be programmed into the first chip U201 using a programmer (BDM). For example, the programmer (BDM) may include six pins, pins 1 through 6. Pin 2 of the programmer (BDM) can be grounded (GND), and pin 6 can be connected to the first voltage terminal VCC5V0. Pins 3 and 5 of the programmer (BDM) may be unused.

[0108] In some embodiments, the controller control circuit 11 may further include a DIP switch that supports manual setting of LIN messages.

[0109] Reference Figure 4 as well as Figure 4a , Figure 4b , Figure 4c The first chip U201 also includes a voltage acquisition pin. A resistor is connected in series between the voltage acquisition pin and the first voltage terminal VCC5V0. The voltage acquisition pin is connected to the manual DIP switch DIP_SW4.

[0110] For example, pins 37, 39, 41 and 43 of the first chip U201 can be used as the chip's four voltage acquisition pins, so that the controller control circuit 11 can support manually filling one byte of LIN message format for verification.

[0111] Each voltage acquisition pin can be connected in series with a resistor. The four voltage acquisition pins can be connected in series with resistors R206, R207, R208, and R209 respectively. The resistance values ​​of resistors R206, R207, R208, and R209 can be 10K, and the package can be 0603.

[0112] Each voltage acquisition pin can be connected in parallel to the manual DIP switch DIP_SW4, which is grounded (GND).

[0113] In some embodiments, such as Figure 2 and Figure 6 As shown, the LIN bus communication measurement and control device may also include an external interface circuit 14. The external interface circuit 14 may include multiple external pins, such as three external pins LIN1, LIN2, and LIN3. The bus pins of the transceiver control circuit 12 can be electrically connected to the LIN bus through the external pins.

[0114] When there are N LIN buses, the measurement and control device for LIN bus communication may include N transceiver control circuits 12, where N is an integer greater than or equal to 2. The bus pins of the transceiver control circuit 12 can be connected one-to-one with the external pins of the external interface circuit 14.

[0115] In this embodiment, an external interface circuit is set as a connector to enable connection with external devices. The external interface circuit includes multiple external pins, which can simultaneously support the monitoring of multiple LIN node devices, and has many conveniences such as good scalability and portability.

[0116] For example, such as Figure 6 As shown, the external interface circuit can be a terminal block connector with 8 pins. Pin 2 can be used as the power input interface and can be connected to the power supply PWR. Pins 1, 3, 5, and 7 are ground interfaces, and pins 4, 6, and 8 are external LIN bus interfaces. For example, pin 8 is connected to the LIN1 bus, pin 6 is connected to the LIN2 bus, and pin 4 is connected to the LIN3 bus.

[0117] In some embodiments, such as Figure 5 As shown, the second chip U301 can be a physical layer chip with the model number MC33662BLEFR2LIN.

[0118] The second chip U301 may include a power input pin BAT, which is connected to the second voltage terminal VCC120. A capacitor C302 is connected between the power input pin BAT and ground (GND). Capacitor C302 acts as a voltage regulator. The capacitance of capacitor C302 can be 100nF. The second voltage terminal VCC120 can provide a 12V level.

[0119] The second chip U301 also includes a mode control pin NSLP, which is connected to the mode enable pin PAD15_MCU48 of the first chip U201 via a resistor R303. The mode control pin NSLP can control the operating mode of the second chip U301. The resistance value of resistor R303 can be 1K, and resistor R303 can be packaged as a 0603.

[0120] The mode enable pin PAD15_MCU48 acts as an enable bit, sending an enable signal to the mode control pin NSLP. When the signal received by the mode control pin NSLP is 0, the first chip U201 enters sleep mode. When the signal received by the mode control pin NSLP is 1, the first chip U201 operates normally.

[0121] The second chip U301 also includes a wake-up enable pin NWAKE. NWAKE is connected to the second voltage terminal VCC120 via resistor R304, and to ground (GND) via capacitor C301. NWAKE is responsible for the wake-up function. It can be connected to a 12V input via a 47kΩ resistor (0603 package) R304 to ensure a high voltage level can wake up the second chip U301. NWAKE is also connected to ground (GND) via a 47nF capacitor C301, serving as DC-blocking and AC-passing protection, and providing electrostatic discharge protection.

[0122] The monitoring pin RXD is connected to the receiver pin RXD0_PS0_MCU52 of the first chip U201. The monitoring pin RXD can be connected to the first voltage terminal VCC5V0, which provides a 5V level, through a 2kΩ resistor R301 with a 0603 package.

[0123] The monitoring pin RXD can be mainly used to monitor the LIN bus status. When RXD=0, it indicates that the LIN bus is dominant. When RXD=1, it indicates that the LIN bus is recessive. When RXD is high impedance, it indicates that the second chip U301 has entered sleep mode.

[0124] The generated pin TXD can be externally connected to the transmit pin TXD0_PS1_MCU53 of the first chip U201 via a 1K resistor R302 (0603 package). The generated pin TXD can be used to control the level output of the second chip U301. When TXD=0, the LIN bus is dominant; when TXD=1, the LIN bus is recessive; when TXD is floating, the LIN bus is recessive due to an internal pull-up design.

[0125] The LIN bus pin of the second chip U301 is a single-wire transmit / receive path for the LIN bus. The LIN bus pin can be connected to ground (GND) via a 1nF capacitor C303. Capacitor C303 helps stabilize the LIN bus voltage level.

[0126] The bus pin LIN can be connected to the external pin LIN1 of the external connection circuit through a series resistor R305 with a value of 10R.

[0127] The external pin LIN1 can be connected in parallel with resistors R306 and R307, which have a resistance of 2.2kΩ and are packaged as 1206. A diode D301 of type BAW56LT1G is connected in series with the second voltage terminal VCC120, which provides a 12V level input.

[0128] A transient voltage suppressor diode D302 (model MMBZ27VCLT1G) can be connected in parallel between the external pin LIN1 and ground GND. The transient voltage suppressor diode D302 provides ESD protection. The INH pin of the second chip can be left unused.

[0129] The LIN bus communication measurement and control device provided in this application embodiment may include multiple transceiver control circuits 12, thus enabling the ability to monitor the status of multiple LIN buses at the same time.

[0130] For example, a measurement and control device using LIN bus communication may include three transceiver control circuits 12.

[0131] The connection relationship between the first transceiver control circuit 12, the controller control circuit, and the external interface circuit can be found in [reference]. Figure 5 .

[0132] The first transceiver control circuit 12 can be used to monitor the LIN1 bus. The second transceiver control circuit 12 can be used to monitor the LIN2 bus. The third transceiver control circuit 12 can be used to monitor the LIN3 bus.

[0133] like Figure 7 As shown, the second chip of the second transceiver control circuit 12 is labeled U302. Figure 7 and Figure 5 The similarities will not be repeated here; the differences are:

[0134] The generator pin TXD of chip U302 is connected to the transmitter pin TXD1_PS3_MCU55 of the first chip U201. The receiver pin RXD of chip U302 is connected to the receiver pin RXD1_PS2_MCU54 of the first chip U201. The mode control pin NSLP of chip U302 can be connected to the mode enable pin PS5_MCU57 of the first chip U201.

[0135] like Figure 8 As shown, the second chip of the third transceiver control circuit 12 is labeled U303. Figure 8 and Figure 5 The similarities will not be repeated here; the differences are:

[0136] The generator pin TXD of chip U303 is connected to the transmitter pin TXD2_PM3_MCU63 of the first chip U201. The monitor pin RXD of chip U302 is connected to the receiver pin RXD2_PM2_MCU62 of the first chip U201. The mode control pin NSLP of chip U302 can be connected to the mode enable pin PS7_MCU59 of the first chip U201.

[0137] In some embodiments, such as Figure 2 andFigure 9 As shown, the LIN bus communication measurement and control device provided in this application embodiment may further include an indicator light circuit 15. The indicator light circuit 15 may include at least one resistor and a light-emitting diode connected in series between the voltage output pin of the first chip U201 and ground GND.

[0138] For example, the indicator circuit 15 may include three resistors and light-emitting diodes connected in series, wherein resistor R401 and light-emitting diode D401 are connected to the voltage output pin IOC2_MCU30 of the first chip U201, resistor R402 and light-emitting diode D402 are connected to the voltage output pin IOC1_MCU31 of the first chip U201, and resistor R403 and light-emitting diode D403 are connected to the voltage output pin IOC0_MCU32 of the first chip U201.

[0139] The LEDs D401, D402, and D403 can be designated as 19-217 / BHC-ZL1M2TY / 3T. The resistors R401, R402, and R403 can have a resistance value of 6.2KΩ and can be packaged as 0603.

[0140] When the first chip U201 is powered normally, the LED will light up. The status of the LED's illumination can be used to determine whether the first chip U201 is powered normally.

[0141] Please refer to Figures 1 to 6 The operation process of a measurement and control device using LIN bus communication may include:

[0142] When the LIN bus communication measurement and control device is in power supply state, the voltage provided by the power supply is input to the first voltage regulator U101 through the reverse polarity protection diode D102 and the Π-type filter circuit. The first voltage regulator U101 outputs a 12V voltage to light up the onboard LED light-emitting diode D103 and to provide the voltage for the transceiver control circuit 12 to work normally.

[0143] The 12V voltage output by the first voltage regulator U101 is input to the second voltage regulator U102, which generates a 5V output voltage to provide the voltage for the first chip U201 and some components of the controller control circuit 11 to operate normally.

[0144] The first chip U201 of the controller control circuit 11 can read the LIN bus status monitored by pin 6 of the second chip U301 of the transceiver control circuit through pins RXD0_PS0_MCU52, RXD1_PS2_MCU54 and RXD2_PM2_MCU62 into the internal register, thus completing the LIN bus level identification.

[0145] The first chip U201 of the controller control circuit 11 can write to pin 4 TXD of the second chip U301 of the transceiver control circuit through pins TXD0_PS1_MCU53, TXD1_PS3_MCU55 and TXD2_PM3_MCU63 to complete the LIN bus level transmission.

[0146] For example, on the LIN bus, the high level is 12V and the low level is 0V.

[0147] It should be noted that the chip and component models and parameters in the above embodiments are merely examples. Other models or parameters can also be used to achieve the same function.

[0148] It should be noted that in the embodiments shown in the figures above, the resistor is presented as a single resistor, and the capacitor as a single capacitor. In other embodiments, the resistor may be an integrated combination of series, parallel, or mixed resistors, and the capacitor may be an integrated combination of series, parallel, or mixed capacitors. The specific parameters of each device can be set according to actual needs, and this application does not limit this.

[0149] The electrical connection described in this application can be a direct connection, i.e., a connection between two components, or an indirect connection, i.e., an indirect connection between two components that can be formed through one or more elements.

[0150] The embodiments described above are not exhaustive, nor do they limit the application to the specific embodiments described herein. Clearly, many modifications and variations can be made based on the above description. These embodiments are selected and specifically described in this specification to better explain the principles and practical applications of this application, thereby enabling those skilled in the art to effectively utilize this application and its modifications. This application is limited only by the claims and their full scope and equivalents.

Claims

1. A measurement and control device using LIN bus communication, characterized in that, Includes controller control circuit and transceiver control circuit; The controller control circuit and the transceiver control circuit are electrically connected, and the transceiver control circuit is electrically connected to the LIN bus. The controller control circuit is used to generate control signals and receive the actual state of the LIN bus monitored by the transceiver control circuit. The control signals are used to indicate that the state of the LIN bus is the target state. If the actual state is different from the target state, the LIN bus is determined to be abnormal. If the actual state is the same as the target state, the LIN bus is determined to be normal. The transceiver control circuit is used to generate the level of the LIN bus transmission according to the control signal and to monitor the actual status of the LIN bus. The controller control circuit includes a first chip, and the transceiver control circuit includes a second chip; The first chip includes transmit pins and receive pins; The second chip includes generation pins, monitoring pins, and bus pins; The transmit pin is connected to the generate pin, the receive pin is connected to the monitor pin, and the bus pin is electrically connected to the LIN bus; The transmit pin is used to transmit the control signal, the generate pin is used to receive the control signal, the monitor pin is used to monitor the actual state of the LIN bus, and the receive pin is used to receive the monitored actual state of the LIN bus. The first chip also includes a voltage acquisition pin, a resistor is connected in series between the voltage acquisition pin and the first voltage terminal, and the voltage acquisition pin is connected to a manual DIP switch; The measurement and control device also includes an indicator light circuit, which includes at least one resistor and a light-emitting diode connected in series between the voltage output pin of the first chip and the ground terminal.

2. The LIN bus communication measurement and control device according to claim 1, characterized in that, The LIN bus communication measurement and control device also includes: A level conversion circuit, electrically connected to the controller control circuit and the transceiver control circuit, is used to convert the power supply voltage provided by the power supply into the voltage required for the operation of the controller control circuit and the transceiver control circuit.

3. The LIN bus communication measurement and control device according to claim 1, characterized in that, The LIN bus communication measurement and control device also includes: The external interface circuit includes multiple external pins, and the bus pins of the transceiver control circuit are electrically connected to the LIN bus through these external pins.

4. The LIN bus communication measurement and control device according to claim 2, characterized in that, The level conversion circuit includes a first voltage regulator and a second voltage regulator; The power supply is connected to the input pin of the first regulator in sequence through a first diode and an inductor. At least two capacitors are connected in parallel between the connection point of the first diode and the inductor and ground. At least two capacitors are connected in parallel between the connection point of the inductor and the input pin of the first regulator and ground. A transient suppression diode is connected in series between the power supply and ground. The output pin of the first voltage regulator is connected to the input pin of the second voltage regulator. At least three capacitors are connected in parallel between the output pin of the first voltage regulator and ground. A resistor and a capacitor are also connected in series between the output pin of the first voltage regulator and ground. The connection point of the series resistor and capacitor is connected to the enable pin of the second voltage regulator. At least two capacitors are connected in parallel between the output pin of the second voltage regulator and ground; A resistor and a light-emitting diode are connected in series between the output pin of the first voltage regulator and ground.

5. The LIN bus communication measurement and control device according to claim 1, characterized in that, The first chip includes a first clock pin and a second clock pin; A resistor and a crystal are connected in series between the first clock pin and the second clock pin, and a capacitor is connected in parallel between the crystal and ground.

6. The LIN bus communication measurement and control device according to claim 1, characterized in that, The first chip also includes a reset pin and a debug pin; A resistor is connected in series between the reset pin and the first voltage terminal, a capacitor is connected in series between the reset pin and ground, and a resistor is connected in series between the reset pin and the first output pin of the programmer. A resistor is connected in series between the debugging pin and the first voltage terminal, and a resistor is connected in series between the debugging pin and the second output pin of the programmer.

7. The LIN bus communication measurement and control device according to claim 1, characterized in that, The second chip also includes a power input pin, which is connected to a second voltage terminal, and a capacitor is connected between the power input pin and ground. The second chip also includes a mode control pin, which is connected to the mode enable pin of the first chip via a resistor; The second chip also includes a wake-up enable pin, which is connected to the second voltage terminal through a resistor and grounded through a capacitor; The monitoring pin of the second chip is connected to the first voltage terminal via a resistor; The generating pin of the second chip is connected to the transmitting pin of the first chip via a resistor; The bus pin of the second chip is grounded through a capacitor and connected to the external pin of the external connection circuit through a resistor. The external pin is electrically connected to the LIN bus. The external pin is connected to the second voltage terminal through at least two resistors and a diode connected in parallel, and the external pin is grounded through a transient suppression diode.

Citation Information

Patent Citations

  • Automatic testing arrangement of distributing type LIN bus based on CAN communication

    CN205249253U

  • LIN communication test auxiliary equipment

    CN209787193U