Saleae Local Interconnect Network (LIN) Analyzer
The following documentation describes how to build this analyzer locally. For more detailed information about the Analyzer SDK, debugging, CI builds, and more, check out the readme in the Sample Analyzer repository.
https://github.com/saleae/SampleAnalyzer
Dependencies:
Install command line tools after XCode is installed:
xcode-select --install
Then open XCode, open Preferences from the main menu, go to locations, and select the only option under 'Command line tools'.
Install CMake on MacOS:
cmake-*-Darwin-x86_64.dmg
/Applications/CMake.app/Contents/bin/cmake-gui --install
Note: Errors may occur if older versions of CMake are installed.
Build the analyzer:
mkdir build
cd build
cmake ..
cmake --build .
Dependencies:
Misc dependencies:
sudo apt-get install build-essential
Build the analyzer:
mkdir build
cd build
cmake ..
cmake --build .
Dependencies:
Visual Studio 2019
Note - newer and older versions of Visual Studio are likely to work.
Setup options:
Note - if CMake has any problems with the MSVC compiler, it's likely a component is missing.
CMake
Download and install the latest CMake release here. https://cmake.org/download/
git
Download and install git here. https://git-scm.com/
Build the analyzer:
mkdir build
cd build
cmake .. -A x64
Then, open the newly created solution file located here: build\lin_analyzer.sln
Optionally, build from the command line without opening Visual Studio:
cmake --build .
The built analyzer DLLs will be located here:
build\Analyzers\Debug
build\Analyzers\Release
For debug and release builds, respectively.
"no_frame"
Property | Type | Description |
---|
Inter-byte space
"header_break"
Property | Type | Description |
---|
Header break
"header_sync"
Property | Type | Description |
---|
Header sync
"header_pid"
Property | Type | Description |
---|---|---|
protected_id |
int | 6 bit protected Id |
Protected identifier
"data"
Property | Type | Description |
---|---|---|
data |
int | Data byte |
index |
int | Index, 0-8, of the data byte inside of the transaction |
"checksum"
Property | Type | Description |
---|---|---|
checksum |
int | LIN checksum |
Checksum byte
"data_or_checksum"
Property | Type | Description |
---|---|---|
checksum |
int | LIN checksum |
data |
int | Data byte |
index |
int | Index, 0-8, of the data byte inside of the transaction |
Unable to determine if this byte is a data byte or a checksum. It is technically valid as both. This occurs if a a data byte, at index N, is equal to what the CRC should be if the transaction is N-1 bytes.