From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

LIN error frame

I have an XNET LIN card as master. When I start to send data, I see error frames in the XNET Bus Monitor, where the payload= 0x01, 0x05, 0x3C...

 

this means, there is an error occured by transmitting frame with ID=0x3C. 

 

My question is, what can be the reason of getting 0x05 (according XNET HW/SW manual "timeout")?

 

I tried to search on the internet for this, no results...

Madottati_0-1645018536695.png

 

0 Kudos
Message 1 of 3
(1,252 Views)

I don't work with LIN too often, but I suspect this is a timeout waiting for the slave's data.  A master will send the ID for the data it wants, and then it is the responsibility of the slave to send the data for that ID.  Each ID you send should have a corresponding single device that will send that.  Some times it is the master itself, which is how the master can send data.  But most of the time the ID needs corresponds to another device on the bus, which will act as a read.

 

If the master sends the ID, and then no slave populates the data, then I'd expect a timeout error.  This might happen if the slave isn't powered, isn't connected, or the ID doesn't correspond to any slave.  Also if you want to know more about LIN I just made a blog post on it that compares it to CAN and covers some of this.

0 Kudos
Message 2 of 3
(1,247 Views)

ID 0d60 (0x3C) and 0d61(0x3D) are reserved for diagnostics. Please refer to shipping example LIN Diagnostic Frame Master.vi and LIN Diagnostic Frame Slave.vi from NI Example Finder >> Hardware Input and Output >> LIN >> NI-XNET >> Advanced.  

Senior Technical Support Engineer | CLD CTA | NI


DISCLAIMER: The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

0 Kudos
Message 3 of 3
(1,220 Views)