A lin automatic addressing system and method incorporating single wire bi-directional protocol

By combining a single-wire bidirectional protocol controller and a LIN physical layer transceiver, automatic addressing on the LIN bus is achieved, solving the addressing difficulties caused by ground drift and node disconnection in existing technologies, and reducing design complexity and cost.

CN115658583BActive Publication Date: 2026-04-28TINYCHIP MICROELECTRONICS (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TINYCHIP MICROELECTRONICS (SHANGHAI) CO LTD
Filing Date
2022-10-24
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

Existing LIN addressing schemes suffer from ground drift tolerance affecting the number of connectable device nodes, increasing design complexity and cost, and cannot automatically address devices after a slave node is disconnected.

Method used

A single-wire bidirectional protocol controller and a LIN physical layer transceiver are used. The host broadcasts an initialization request frame, and the bidirectional port and the single-wire bidirectional protocol controller are used to realize automatic addressing of slave nodes, avoiding the need to add an additional pull-up current source and ADC module.

Benefits of technology

It enables automatic addressing of slave nodes, reduces design complexity and cost, solves the addressing problem after a node disconnects, and supports more node connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115658583B_ABST
    Figure CN115658583B_ABST
Patent Text Reader

Abstract

The application discloses a LIN automatic addressing system and method combined with a single-wire bidirectional protocol, wherein the automatic addressing system comprises a host, a slave module and a LIN bus; the slave module comprises a plurality of slave nodes; each slave node comprises a LIN physical layer transceiver, two bidirectional ports PIN0 and PIN1, and a LIN protocol controller; the LIN physical layer transceiver serves as a receiving end and a transmitting end of the slave node and is in bidirectional communication with the LIN protocol controller through control signal lines TXD and RXD; when the first slave node and the second slave node are disconnected, the whole system still performs automatic addressing; and when the link between the last slave node and the previous slave node is disconnected, the last slave node can still complete address allocation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of LIN technology, specifically to a LIN automatic addressing system and method that combines a single-wire bidirectional protocol. Background Technology

[0002] LIN is an abbreviation for Local Interconnect Network, which can be used in various fields such as automobiles, home appliances, and office equipment. It is a low-cost serial communication protocol based on UART / SCI (Universal Asynchronous Receiver-Transmitter / Serial Communication Interface). It adopts a single master / multiple slave mode. The slaves on the LIN bus link determine their addresses through bus automatic addressing, so that the address of each slave does not need to be determined in advance during the design and production process, thereby reducing design and production costs.

[0003] refer to Figure 1 The current LIN addressing scheme connects the LIN input and output ports of each slave node through a shunt resistor. During the address allocation sequence, the relative position is determined by measuring the current in the shunt resistor, thereby achieving address addressing. This technical scheme has a certain impact on ground drift tolerance, which affects the number of slave device nodes that can be connected. In addition, this scheme requires an additional pull-up current source and ADC module to measure the current value, which increases additional cost and design complexity.

[0004] Currently, LIN automatic addressing technology still has the following two problems: when the connection between the first slave node and the second slave node is lost, the entire system can no longer automatically address; when the last slave node is disconnected from the link with the previous slave node, the last slave node cannot complete address allocation.

[0005] Existing technologies can no longer meet people's current needs, and based on the current situation, there is an urgent need to reform existing technologies. Summary of the Invention

[0006] The purpose of this invention is to provide a LIN automatic addressing system and method that combines a single-wire bidirectional protocol to solve the problems mentioned in the background art.

[0007] On one hand, the present invention provides the following technical solution: a LIN automatic addressing system combining a single-wire bidirectional protocol, comprising: a master, a slave module, and a LIN bus;

[0008] The slave module includes multiple slave nodes, and the master is connected to each slave node in parallel via a LIN bus. Each slave node includes: a LIN physical layer transceiver, a bidirectional port PIN0, a bidirectional port PIN1, and a LIN protocol controller. The LIN protocol controller is further equipped with a single-wire bidirectional protocol controller 0 and a single-wire bidirectional protocol controller 1.

[0009] The LIN physical layer transceiver serves as both the receiver and transmitter of the slave node, and communicates bidirectionally with the LIN protocol controller via control signal lines TXD and RXD.

[0010] Preferably, bidirectional ports PIN0 and PIN1 are coupled to single-wire bidirectional protocol controller 0 and single-wire bidirectional protocol controller 1 respectively via control signal lines;

[0011] Preferably, the single-line bidirectional protocol controller 0 is used to receive the connection confirmation request command sent by the previous slave node through the bidirectional port PIN0, and the single-line bidirectional protocol controller 0 is also used to send the connection confirmation response to the previous slave node through the bidirectional port PIN0.

[0012] Preferably, the single-line bidirectional protocol controller 1 uses the bidirectional port PIN1 to send a connection confirmation request command to the next slave node; the single-line bidirectional protocol controller 1 also uses the bidirectional port PIN1 to receive a connection confirmation response from the next slave node.

[0013] On the other hand, the present invention also provides another technical solution: a method for LIN automatic addressing combined with a single-wire bidirectional protocol, the specific steps of which include:

[0014] S1, Host broadcasts an autoaddressing initialization request frame;

[0015] S2, the slave node sends a connection confirmation request to the next slave node;

[0016] S3, the next slave node sends a connection confirmation response to the previous slave node;

[0017] S4, the previous slave node receives the connection confirmation response from the next slave node through the single-wire bidirectional protocol controller 1;

[0018] S5, determine the first slave node on the LIN bus link;

[0019] S6, The host sends address information;

[0020] S7, the slave node sends an address response frame to the master within a specified time. After the next slave node receives the selected information, it receives the address information frame sent by the master and sets the address to its own address. At the same time, it sends the selected information to the next slave node through the single-wire bidirectional protocol controller 1 and sends an address response frame to the master within a specified time T1 through the LIN bus.

[0021] S8. Repeat step S7 in a loop until all slave nodes are assigned addresses.

[0022] The present invention has the following beneficial effects:

[0023] (1) The present invention realizes LIN automatic addressing by providing a LIN physical layer transceiver and a LIN protocol controller that supports two single-line bidirectional protocol controller communication between slave nodes;

[0024] (2) This invention does not require additional pull-up current source and ADC module, and has fewer requirements for host and PCB circuit board design, resulting in lower cost and design complexity;

[0025] (3) The present invention solves the problem that the entire system can no longer automatically address when the connection between the first slave node and the second slave node is broken;

[0026] (4) The present invention solves the problem that the last slave node cannot complete address allocation after the link between the last slave node and the previous slave node is broken; Attached Figure Description

[0027] Figure 1 A schematic diagram of the existing technology architecture for LIN addressing;

[0028] Figure 2 This is a schematic diagram of the automatic addressing system of the present invention;

[0029] Figure 3 This is a flowchart illustrating the automatic addressing method of the present invention;

[0030] Figure 4 This is a schematic diagram of the automatic address allocation process of the automatic addressing method of the present invention;

[0031] Figure 5 This is a schematic diagram illustrating the automatic address allocation process of the automatic addressing method of the present invention when the connection between the first slave node and the second slave node (or the last node and the previous node) is broken or a failure occurs. Detailed Implementation

[0032] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the present invention without creative effort are within the scope of protection of the present invention.

[0033] refer to Figure 2 On the one hand, the present invention provides the following technical solution: a LIN automatic addressing system combining a single-wire bidirectional protocol, comprising a master, a slave module, and a LIN bus. The slave module includes multiple slave nodes, and the master is connected in parallel to each slave node through the LIN bus. Each slave node includes: a LIN physical layer transceiver, two bidirectional ports: PIN0 and PIN1, and a LIN protocol controller. The LIN protocol controller is further provided with two single-wire bidirectional protocol controllers: single-wire bidirectional protocol controller 0 and single-wire bidirectional protocol controller 1.

[0034] The LIN physical layer transceiver serves as both the receiver and transmitter of the slave node, communicating bidirectionally with the LIN protocol controller via control signal lines TXD and RXD. On one hand, the LIN physical layer transceiver receives commands sent by the host and transmits them to the LIN protocol controller via control signal line RXD. On the other hand, it receives data responses returned by the LIN protocol controller via control signal line TXD and sends them to the host via the LIN bus.

[0035] The bidirectional ports PIN0 and PIN1 are coupled to the single-wire bidirectional protocol controller 0 and the single-wire bidirectional protocol controller 1 respectively via control signal lines; the single-wire bidirectional protocol controller 0 is used to receive the connection confirmation request command sent by the previous slave node through the bidirectional port PIN0, and the single-wire bidirectional protocol controller 0 is also used to send the connection confirmation response to the previous slave node through the bidirectional port PIN0.

[0036] The single-line bidirectional protocol controller 1 uses bidirectional port PIN1 to send a connection confirmation request command to the next slave node; the single-line bidirectional protocol controller 1 also uses bidirectional port PIN1 to receive a connection confirmation response from the next slave node.

[0037] In this embodiment, for the single-wire bidirectional protocol controller 0 and bidirectional port PIN0 in slave node 1, since slave node 1 is the first slave node and no slave node before it has sent a connection request command, the single-wire bidirectional protocol controller 0 in slave node 1 does not need to receive the connection confirmation request command sent by the previous slave node. Figure 2It can be seen that in the LIN bus connection from slave node 1 to slave node n, the first slave node is not necessarily slave node 1. When the bidirectional port PIN1 of slave node 1 to the bidirectional port PIN0 of slave node 2 is disconnected or malfunctions, or when slave node 1 cannot work properly, slave node 2 may be the first slave node. Therefore, the first slave node needs to make a judgment: when a slave node's single-wire bidirectional protocol controller 0 does not receive the connection confirmation request command sent by the previous slave node through the bidirectional port PIN0 within the specified time, this slave node is judged to be the first slave node on the LIN bus link; if, under the condition that everything is working normally, the single-wire bidirectional protocol controller 0 in slave nodes after slave node 2 can receive the connection confirmation request command sent by the previous slave node through the bidirectional port PIN0, only the single-wire bidirectional protocol controller 0 in slave node 1 does not receive the connection confirmation request command sent by the previous slave node through the bidirectional port PIN0, so slave node 1 is judged to be the first slave node;

[0038] During the addressing process, slave node 1 sends a connection confirmation request command to slave node 2 through bidirectional port PIN1 controlled by single-line bidirectional protocol controller 1. Then, slave node 2 sends a connection confirmation response to slave node 1 through bidirectional port PIN0 controlled by single-line bidirectional protocol controller 0. Slave node 1 receives the connection confirmation response from slave node 2 through bidirectional port PIN1 controlled by single-line bidirectional protocol controller 1. Then, slave node 2 sends a connection confirmation request command to slave node 3 through bidirectional port PIN1 controlled by single-line bidirectional protocol controller 1, and so on, which can realize the connection judgment of all slave node chain addressing.

[0039] refer to Figure 3 On the other hand, the present invention also provides another technical solution: a method for LIN automatic addressing combined with a single-wire bidirectional protocol, the specific steps of which include:

[0040] S1, Host broadcasts an autoaddressing initialization request frame;

[0041] Before LIN's automatic addressing, the master broadcasts an automatic addressing initialization request frame via the LIN bus and sends it to the slave node;

[0042] S2, the slave node sends a connection confirmation request to the next slave node;

[0043] Upon receiving the initialization request frame command, each slave node sends a connection confirmation request to the next slave node through its internal single-wire bidirectional protocol controller 1.

[0044] S3, the next slave node sends a connection confirmation response to the previous slave node;

[0045] The next slave node receives the connection confirmation request command through the single-line bidirectional protocol controller 0, and sends a connection confirmation response to the previous slave node through the single-line bidirectional protocol controller 0;

[0046] S4, the previous slave node receives the connection confirmation response from the next slave node through the single-wire bidirectional protocol controller 1;

[0047] S5, determine the first slave node on the LIN bus link;

[0048] When a slave node does not receive a connection confirmation request from the previous slave node within a specified time, this slave node becomes the first slave node on the LIN bus link and is selected to be assigned an address.

[0049] S6, The host sends address information;

[0050] refer to Figure 4 The master sends the first address information frame to the LIN bus. All slaves will receive this address information frame, but only the first selected slave node will receive the address information frame sent by the master and set this address as its own address. At the same time, the selected information is sent to the next slave node through the single-wire bidirectional protocol controller 1, and the corresponding address frame is sent to the master through the LIN bus.

[0051] S7, the slave node sends an address response frame to the master within a specified time;

[0052] After receiving the selection information, the next selected slave node receives the address information frame sent by the host, sets the address to its own address, and sends the selection information to the next slave node through the single-wire bidirectional protocol controller 1. It also sends an address response frame to the host through the LIN bus within a specified time T1.

[0053] S8. Repeat step S7 in a loop until all slave nodes are assigned addresses;

[0054] Once all slave nodes have completed address allocation, the host will send a new address information frame. If no address response frame is received within the specified time T2, the automatic addressing is considered to have ended.

[0055] refer to Figure 5, in the embodiment, during the re-addressing process, if a connection is disconnected or a connection failure occurs between the first slave node and the second slave node or between the last slave node and its previous slave node, for example, slave node 2 receives an automatic addressing initialization request frame broadcast by the host through the LIN bus and does not receive a connection confirmation request from slave node 1 within the specified time; at this time, slave node 2 will determine that it is the first slave node on the link, and according to steps S6, S7, and S8, all nodes on the LIN bus link starting from slave node 2 will be sequentially assigned addresses;

[0056] If a slave node neither receives a connection confirmation request from the previous slave node nor receives a connection confirmation response from the next slave node, it will determine that it is disconnected from the next slave node and will continuously detect the information on the LIN bus. When the host sends an address information frame, if no slave node sends an address response frame within the specified time T1, this address information will be received by this slave node and assigned as its own node address, and at the same time, the address response frame will be sent within time T2; where T1 < T2; when the host sends a new address information frame again and does not receive an address response frame within the specified time T2, it will determine that the automatic addressing has ended.

[0057] Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or perform equivalent replacements for some of the technical features. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A LIN automatic addressing system combining a single-wire bidirectional protocol, comprising: The system comprises a master unit, a slave unit module, and a LIN bus. The slave unit module includes multiple slave nodes. The master unit is connected to each slave node in parallel via the LIN bus. The system is characterized in that: when the connection between the first slave node and the second slave node is broken, the entire system still performs automatic addressing, and when the link between the last slave node and the previous slave node is broken, the last slave node can still complete address allocation. Each slave node includes: a LIN physical layer transceiver, two bidirectional ports: PIN0 and PIN1, and a LIN protocol controller; The LIN protocol controller is further equipped with two single-wire bidirectional protocol controllers: single-wire bidirectional protocol controller 0 and single-wire bidirectional protocol controller 1. The LIN physical layer transceiver serves as both the receiver and transmitter of the slave node, and communicates bidirectionally with the LIN protocol controller via control signal lines TXD and RXD. The bidirectional ports PIN0 and PIN1 are coupled to the single-wire bidirectional protocol controller 0 and the single-wire bidirectional protocol controller 1 respectively via control signal lines. The system also includes a LIN automatic addressing method, the specific steps of which include: S1, Host broadcasts an autoaddressing initialization request frame; Before LIN's automatic addressing, the master broadcasts an automatic addressing initialization request frame via the LIN bus and sends it to the slave node; S2, the slave node sends a connection confirmation request to the next slave node; Upon receiving the initialization request frame command, each slave node sends a connection confirmation request to the next slave node through its internal single-wire bidirectional protocol controller 1. S3, the next slave node sends a connection confirmation response to the previous slave node; The next slave node receives the connection confirmation request command through the single-line bidirectional protocol controller 0, and sends a connection confirmation response to the previous slave node through the single-line bidirectional protocol controller 0; S4, the previous slave node receives the connection confirmation response from the next slave node through the single-wire bidirectional protocol controller 1; S5, determine the first slave node on the LIN bus link; When a slave node does not receive a connection confirmation request from the previous slave node within a specified time, this slave node becomes the first slave node on the LIN bus link and is selected to be assigned an address. S6, The host sends address information; The host sends the first address information to the first slave node. After receiving the address information frame sent by the host, the first slave node sets this address as its own address. At the same time, it sends the selected information to the next slave node through the single-wire bidirectional protocol controller 1, and sends the address response frame to the host through the LIN bus. S7, the slave node sends an address response frame to the master within a specified time; After the next slave node receives the selected information, it receives the address information frame sent by the host, sets the address to its own address, and sends the selected information to the next slave node through the single-wire bidirectional protocol controller 1. It also sends the address response frame to the host through the LIN bus within the specified time T1. S8. Repeat step S7 in a loop until all slave nodes are assigned addresses.

2. The LIN automatic addressing system combining a single-wire bidirectional protocol according to claim 1, characterized in that: The LIN physical layer transceiver receives commands sent by the host and sends the commands to the LIN protocol controller via the control signal line RXD; The LIN physical layer transceiver receives the data response returned by the LIN protocol controller via the control signal line TXD and sends it to the host via the LIN bus.

3. The LIN automatic addressing system combining a single-wire bidirectional protocol according to claim 1, characterized in that: The single-line bidirectional protocol controller 0 uses bidirectional port PIN0 to receive connection confirmation request commands sent by the previous slave node.

4. The LIN automatic addressing system combining a single-wire bidirectional protocol according to claim 1, characterized in that: The single-line bidirectional protocol controller 0 is also used to send a connection confirmation response to the previous slave node via the bidirectional port PIN0.

5. The LIN automatic addressing system combining a single-wire bidirectional protocol according to claim 1, characterized in that: The single-line bidirectional protocol controller 1 uses bidirectional port PIN1 to send a connection confirmation request command to the next slave node.

6. The LIN automatic addressing system combining a single-wire bidirectional protocol according to claim 1, characterized in that: The single-line bidirectional protocol controller 1 is also used to receive the connection confirmation response from the next slave node via the bidirectional port PIN1.

7. The LIN automatic addressing system combining a single-wire bidirectional protocol according to claim 1, characterized in that: Once all slave nodes have completed address allocation, the master sends a new address information frame. If no address response frame is received within the specified time T2, the automatic addressing is considered to have ended. (T1...) <T2。 8. The LIN automatic addressing system combining a single-wire bidirectional protocol according to claim 1, characterized in that: If a slave node does not receive a connection confirmation request from the previous slave node, it is determined that the slave node is disconnected from the previous node, or it is determined that the slave node is the first slave node on the LIN link.

9. The LIN automatic addressing system combining a single-wire bidirectional protocol according to claim 1, characterized in that: If a slave node does not receive a connection confirmation response from the next slave node, it is determined that the slave node is disconnected from the next node, or that the slave node is the last slave node on the LIN link.

Citation Information

Patent Citations

  • Method and system for automatically addressing nodes on communication bus

    CN114270326A

  • LIN bus system and slave automatic addressing method thereof

    CN115086278A