Jump to content
  • 0

LIN bus / Bus Analyzer, Protocol Analyzer


Jonas007

Question

I am working with the Analog Discovery 2 for some time.
Till now I used it only for simple measurements of signals, no busses, no protocols.

But now I have the idea to analyze a LIN bus.
Unfortunately, I can not find an approach to realize this with the waveforms Software. There is some information about the CAN bus protocol but nothing about LIN.

Is there somewhere information about how to analyze this with the Analog Discovery 2?

Thanks for help!

Jonas

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @Jonas007,

I'll state up front that the Analog Discovery 2, at least as is without any adapters or external hardware, will not be able to readily interface with a LIN device as LIN operates at 12 V and the digital I/O lines on the Analog Discovery 2 operate at 3.3 V (but are 5 V input tolerant which is why there is some CAN support). Consequently, there has not been any work done on Digilent's side to facilitate LIN support.

I'm not certain how different LIN is from CAN aside from the voltage difference and the different frame lengths, but since google tells me that LIN is deterministic rather than event driven, you might (again, I'm not certain of the protocol differences) be able to use the existing CAN examples, https://forum.digilent.com/topic/25714-sniff-fdcan-with-the-waveforms-sdk/#comment-76767, within the Script tool to be able receive data to a variable and then do whatever calculations you need on the resulting array since LIN operates at a much slower rate than CAN so the AD2 will be able to keep up with the external system without issue.

Alternatively if the protocol is drastically different you can set up a custom pattern in the Patterns tool, though it would likely be more work to get that set up exactly as you desire.

Thanks,
JColvin

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...