Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

USB LIN Converter

by uCAN-LINversion 0.1.2i★ 94 (Stars belong to another repo)iRuns on your computerOfficial site ↗
Registry nameio.github.Lukasz-Juranek/lin-usb-converter

How to install

What it does

Sniff and reverse-engineer a car's LIN bus: capture, changing bits, speed detect, LDF decode

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Other

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 2/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install USB LIN Converter. Follow https://mcp.popnx.com/i/lukasz-juranek-lin-usb-converter.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 2/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server USB LIN Converter for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "lin-usb-converter": { "command": "uvx", "args": [ "ucan-lin-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the USB LIN Converter tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "lin-usb-converter": {
          "command": "uvx",
          "args": [
            "ucan-lin-mcp"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use USB LIN Converter and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using USB LIN Converter or shows a USB LIN Converter tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect USB LIN Converter yet

USB LIN Converter runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect USB LIN Converter

  • Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)

B · Others in Other that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server USB LIN Converter for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user lin-usb-converter -- uvx ucan-lin-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the USB LIN Converter tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user lin-usb-converter -- uvx ucan-lin-mcp
  4. Type /mcp in Claude Code

    You should see USB LIN Converter listed as connected

  5. Try it

    Use USB LIN Converter and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using USB LIN Converter or shows a USB LIN Converter tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server USB LIN Converter for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "lin-usb-converter": { "command": "uvx", "args": [ "ucan-lin-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the USB LIN Converter tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use USB LIN Converter and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using USB LIN Converter or shows a USB LIN Converter tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server USB LIN Converter for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "lin-usb-converter": { "type": "stdio", "command": "uvx", "args": [ "ucan-lin-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the USB LIN Converter tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use USB LIN Converter and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using USB LIN Converter or shows a USB LIN Converter tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use USB LIN Converter💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user lin-usb-converter -- uvx ucan-lin-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "lin-usb-converter": {
      "command": "uvx",
      "args": [
        "ucan-lin-mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "lin-usb-converter": {
      "command": "uvx",
      "args": [
        "ucan-lin-mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "lin-usb-converter": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "ucan-lin-mcp"
      ]
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

GitHub starsi
94 (Stars belong to another repo)
This listing points to someone else’s repo, so its stars are not counted in rankings
Downloads per weeki
59/wk
Licencei
GPL-3.0
Connection
Runs on your computer
Latest versioni
0.1.2
Categoryi
Other
Published to registryi
Nov 3, 2026
Code last changedi
Nov 4, 2026
Maker
uCAN-LIN
Packages
pypi: ucan-lin-mcp
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ! Caution

    Maker matches the repo

    The publisher (Lukasz-Juranek) is not the repo owner (uCAN-LIN); someone else may have listed it

  • ✓ Pass

    Still maintained

    Code last changed 15 days ago

  • ✓ Pass

    Has a licence

    Uses GPL-3.0

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for ucan-lin-mcp@0.1.2

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/lukasz-juranek-lin-usb-converter.svg)](https://mcp.popnx.com/en/servers/lukasz-juranek-lin-usb-converter)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Otheri

  • More stars than 0% of the other 20815 servers in this category
  • Published to the registry more recently than 74% of the other 20815 servers in this category
  • Basic checks equal to or better than 46% of the other 20815 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is USB LIN Converter safe?

It passed 2 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 15 days ago, and the latest version (0.1.2) reached the registry 16 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.

by koala73Widely used★ 90.9KUpdated 3 days ago

Runs in the cloud✓ service owner · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

by openstatusHQWidely used★ 9.3KUpdated 2 months ago

Runs in the cloud✓ service owner · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

by JanDeDobbeleerWidely used★ 23.8K Stars for the whole repoUpdated 30 days ago

Runs in the cloud✓ service owner · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

by Klavis-AIGrowing★ 5.8KUpdated 14 months ago

Runs in the cloudRepo archived✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

by jitsucomWidely used★ 5.1KUpdated 4 months ago

Runs in the cloud✓ service owner · jitsu.com
Compared with similar ones
This one
USB LIN Converter
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks2/34/44/44/41/44/4
LicenseGPL-3.0AGPL-3.0AGPL-3.0MITApache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

USB LIN Converter (uLC)

Open source USB ↔ LIN bus dongle. LIN 2.1 master, slave or monitor. SLCAN-compatible virtual COM port - works on Windows, Linux and macOS with no proprietary drivers.

The USB LIN Converter (uLC) is a small open-source USB dongle (STM32F042, ~31 × 18 mm) that lets a PC act as a LIN bus master, slave or passive monitor. It enumerates as a USB CDC virtual COM port and speaks an SLCAN-style ASCII protocol, so it bridges into Linux SocketCAN via slcand and works with parts of can-utils.

A commercial automotive LIN analyzer typically costs hundreds to thousands of euros. This one is around $27 on Tindie.

The LIN protocol implementation is based on openLIN.


Features

  • LIN 2.1 support
  • Monitor mode - full frame reception plus single-frame transmission
  • Master mode - up to 16 scheduled frame slots
  • Slave mode - up to 16 scheduled frame slots for slave simulation
  • 9600 / 19200 baud rate selection
  • Optical isolation between LIN and the USB / PC side
  • Software-controlled termination resistors
  • External 4.5 - 28 V powers the LIN transceiver
  • Device size 31 × 18 mm (without USB connector)
  • USB DFU bootloader for firmware updates
  • No proprietary drivers - Linux / macOS / Windows
  • MCP server so AI agents can sniff and reverse-engineer a LIN bus (see below)

Where to buy

WhereRegionLink
TindieWorldwidehttps://www.tindie.com/products/lll7/usb-lin-converter/
LectronzEUhttps://lectronz.com/stores/ucandevices
EltyPoland / EUhttps://elty.pl/
KamamiPoland / EUhttps://kamami.pl/

Quickstart

  1. Plug the device into a USB port. It enumerates as a virtual COM port (COM3 on Windows, /dev/ttyACM0 on Linux, /dev/cu.usbmodem* on macOS).
  2. No driver is needed on Windows 10/11, Linux or macOS: the built-in USB CDC driver is used. Since firmware 3.5 the device has its own USB ID from pid.codes, 1209:2779; older firmware used ST's generic 0483:5740 (on Windows 7/8 that needs the ST Virtual COM Port driver).
  3. Open the port at any baud rate (USB CDC ignores baud). Line ending must be CR (0x0D).
  4. Power the LIN side with 4.5 - 28 V on the external supply pin.
  5. Send S0 to select 19200 baud, then l to enter monitor mode. Bus traffic will start to appear.
Linux SocketCAN bridge
sudo slcand -o -s8 -t hw -S 921600 /dev/ttyACM0 slcan0

sudo ip link set slcan0 up candump slcan0

Python (pyserial) sniff snippet
import serial

ser = serial.Serial('/dev/ttyACM0', timeout=1) ser.write(b'S0\r') # 19200 baud ser.write(b'l\r') # monitor mode while True: line = ser.readline() if line: print(line.decode(errors='replace').strip())

A higher-level Python library is provided in python_lib/ (package ucanlintools).

AI agents (MCP server)

python_lib/ucanlintools/mcp_server.py is an MCP server that lets an AI agent sniff and reverse-engineer a LIN bus: capture traffic with per-id periods and changing bits, log every data change while you press a button, find the bus speed and checksum type automatically, and decode or encode signals from an LDF file. It is read-only by default; sending frames and acting as master or slave needs --allow-transmit.

uvx ucan-lin-mcp --mock             # from PyPI, no install step (Python 3.10+)

or from this repo: pip install -e "python_lib[mcp]" && ucanlin-mcp --mock

Register it with any MCP client as a stdio server:

{

"mcpServers": { "lin": {"command": "uvx", "args": ["ucan-lin-mcp", "--port", "COM3"]} } }

--mock runs a simulated bus. mcp_package/ is the ucan-lin-mcp launcher package and server.json its MCP Registry entry.

Tools: device_info, monitor_bus, detect_bus, load_ldf, decode_frame, encode_frame, and with --allow-transmit also send_frame, run_master, run_slave.


ASCII command reference

All commands are ASCII terminated with CR (0x0D). Errors return 0x07 (BEL).

CommandDescription
OOpen in master mode
LOpen in slave mode
lOpen in monitor mode
CClose LIN port
SxBaud: S2 = 9600, others = 19200
V / v / NHardware / firmware version / serial number query
tiiildd...Transmit full header + data frame (id, length, data)
r0iilHeader only request (slave answers)
r1ff0Master mode: start sending frames from schedule table
r2ff0Clear schedule table
r31 / r30Checksum for all frames: r31 classic (LIN 1.x), r30 enhanced (LIN 2.x, default). Diagnostic frames 0x3C/0x3D always use classic. Replies Z. Kept until power off; t31/t30 work too.
t04bbbbCustom LIN baud rate, bbbb = 4 hex digits (e.g. t0428B1 = 10417 baud). Send before adding frames. Replies Z.
T0iipptt0ldd... / R0iipptt0lFrame with explicit delay pp and response wait time tt (ms, hex), e.g. T00A643001A5. pp is the time from the start of the previous slot's header to this slot's header (firmware 3.4 and later; older firmware started it when the previous frame ended).
Commands are executed one at a time: wait for the reply (CR, z/Z or BEL) before sending the next one.

Full command reference and examples: https://ucandevices.github.io/ulc.html


Repository layout

DirectoryContents
embedded/STM32F042 firmware sources (STM32CubeMX project LUCEmbedded.ioc, Atollic TrueSTUDIO project under embedded/TrueSTUDIO/). USB layer generated with STM32CubeMX.
pcb/Open-hardware KiCad project for the LIN_USB_CONVERTER board, Gerbers and 1-click BOM.
python_lib/ucanlintools Python package with high-level master / slave / monitor helpers and examples.
doc/LIN 2.2A specification, MCU datasheet, LIN transceiver datasheet and supporting documents.

Build

Source is pure C. Import the Eclipse project in embedded/TrueSTUDIO/LUCEmbedded into STM32CubeIDE (tested with 1.19) and build the Debug configuration; the image is Debug/LUCEmbedded.bin. The openLIN stack is vendored in embedded/Src (open_lin_*.c/h, implementation/ST32). The USB CDC layer was generated with STM32CubeMX from embedded/LUCEmbedded.ioc.

Bootloader

The STM32F042 has an embedded ROM USB DFU bootloader. To enter it from a running device send boot\r over the virtual COM port. See this tutorial for the flashing flow.

With STM32CubeProgrammer installed, the flashing can be scripted:

python -c "import serial; serial.Serial('COM3').write(b'boot\r')"

STM32_Programmer_CLI -c port=usb1 -w LUC_0308.bin 0x08000000 -v -g 0x08000000


Testing

The test suite lives in python_lib/tests (pytest). It covers the firmware and the ucanlintools library:

FileHardwareWhat it tests
test_ldf_parser.py, test_linframe.py, test_luc_encoding.pynoneLDF parsing, signal encode/decode, frame formatting
test_luc_hardware.py1-2 donglesLibrary: version query, mode switching, monitor loopback, master → slave
test_firmware_protocol.py1-2 donglesFirmware over raw serial: malformed-command rejection, 16-row table limit, all frame lengths 1-8 in both directions with exact data check, live data update, diagnostic frames 0x3C/0x3D, unanswered headers, extended T/R row timing, custom baud rate, monitor reception (including back-to-back frames) and monitor transmit. Parametrized for 19200 and 9600 baud.
test_lib_simulation.py2 donglesScripted MasterSimulation.py / SlaveSimulation.py: LDF-encoded master frame, slave response, both changing at runtime, at both speeds

Setup: two converters on one LIN bus (LIN pins connected, external LIN supply applied). LUC_MASTER_PORT is used as LIN master, LUC_SLAVE_PORT as slave / monitor. Tests skip automatically when a port can't be opened, so the offline tests always run.

cd python_lib

pip install pyserial lark pytest LUC_MASTER_PORT=COM3 LUC_SLAVE_PORT=COM56 PYTHONPATH=. pytest tests -v

swap the ports and run again to test each converter in both roles

LUC_MASTER_PORT=COM56 LUC_SLAVE_PORT=COM3 PYTHONPATH=. pytest tests -v

On Windows PowerShell set the variables with $env:LUC_MASTER_PORT="COM3" etc.

How firmware 3.8 was tested
  • Same setup, both converters flashed with LUC_0308.bin.
  • Monitor fix: frames sent back to back (each one as soon as the previous command was acknowledged, about 4 ms apart at 19200 baud) leave less idle time than the monitor's end-of-frame timeout, so the next break reset the reception and the previous frame was lost. The monitor now reports the previous frame when the next break arrives. Before: 15 of 32 frames received; with the fix: 32 of 32, in order.
  • New regression test test_monitor_reports_back_to_back_frames (fails on 3.7, passes on 3.8); full suite run twice with the roles swapped: 66/66 passed in each direction.
  • CANgaroo uLC driver hardware test (two converters, Windows): 32/32 checks passed.
How firmware 3.7 was tested
  • Same setup, both converters flashed with LUC_0307.bin.
  • Slave fix traced byte by byte with a diagnostic build: when the slave subscribed a frame nobody answered, the next header's break byte was counted as that frame's data, and the stale count made the slave take the following frame's last data byte as its checksum and drop it. With the fix the slave receives every following frame (23 of 23 in 1.5 s, before 0).
  • New regression test test_slave_subscribed_to_unanswered_header_keeps_next_frame; full suite run twice with the roles swapped: 65/65 passed in each direction.
How firmware 3.6 was tested
  • Same setup, both converters flashed with LUC_0306.bin.
  • Clock recovery checked with a test-only build that reported the CRS registers: the CRS synchronised to the USB SOF within the first seconds (SYNCOK set, no errors afterwards) and moved the HSI48 trim from 32 to 35 on one converter, i.e. that converter's clock ran measurably slow without it.
  • Full suite run twice with the roles swapped: 63/63 passed in each direction; master slot periods unchanged from 3.4 (within about 1 ms of the configured delay).
How firmware 3.5 was tested
  • Same setup, both converters flashed with LUC_0305.bin. They enumerate as 1209:2779 and Windows 10 loads its built-in CDC driver without any installation.
  • Full suite run twice with the roles swapped: 55/55 passed in each direction. Firmware 3.5 changes only the USB ID, the LIN code is the same as 3.4.
How firmware 3.4 was tested
  • Two uLC converters (hardware V0001), both flashed with LUC_0304.bin, connected on one powered LIN bus.
  • Full suite run twice with the roles swapped: 55/55 passed in

Only the beginning is shown; read the rest in the repo