The MUM (Melexis Universal Master) adapter is the current default; the
BabyLIN SDK adapter is retained only for backward compatibility with
existing rigs.
Code:
- Emit DeprecationWarning when BabyLinInterface is instantiated and
when tests/conftest.py routes interface.type=='babylin' to it.
- Update module/class docstrings in ecu_framework/{__init__,config,
lin/__init__,lin/babylin}.py to label BabyLIN-specific fields and
paths as deprecated.
Config / scripts / pytest:
- pytest.ini: relabel the babylin marker as deprecated.
- config/{babylin.example,examples,test_config}.yaml: add deprecation
banners and field comments.
- scripts/99-babylin.rules and scripts/pi_install.sh: annotate the
udev-rule install block as legacy-only.
Documentation:
- TESTING_FRAMEWORK_GUIDE.md, docs/08_babylin_internals.md, and
vendor/README.md: prepend explicit "DEPRECATED" banners.
- docs/{README,01,02,04,05,07,09,10,12,13,14,15,18,DEVELOPER_COMMIT_
GUIDE}.md: relabel "legacy" to "deprecated" where babylin is
mentioned, present MUM as the primary path, and steer new work
toward the MUM examples.
No tests, configs, or modules were deleted; existing BabyLIN setups
keep working but now produce a clear DeprecationWarning at runtime.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
46 lines
1.6 KiB
YAML
46 lines
1.6 KiB
YAML
interface:
|
|
# MUM (Melexis Universal Master) is the current default. Switch type to
|
|
# 'mock' for hardware-free runs, or to 'babylin' for the DEPRECATED legacy
|
|
# SDK flow (kept only so existing BabyLIN rigs can keep running).
|
|
type: mum
|
|
host: 192.168.7.2 # MUM IP (USB-RNDIS default)
|
|
lin_device: lin0 # MUM LIN device name
|
|
power_device: power_out0 # MUM power-control device (built-in PSU)
|
|
bitrate: 19200 # LIN baudrate
|
|
boot_settle_seconds: 0.5 # Wait after power-up before sending the first frame
|
|
# Path to an LDF (LIN description file). When set, tests can use the
|
|
# `ldf` fixture to pack/unpack frames by signal name, and the MUM adapter
|
|
# auto-populates frame_lengths from the LDF (any keys you add below
|
|
# override the LDF on a per-frame-id basis).
|
|
ldf_path: ./vendor/4SEVEN_color_lib_test.ldf
|
|
frame_lengths: {} # leave empty unless you need a non-LDF override
|
|
|
|
# --- BabyLIN (DEPRECATED) settings, used only when type: babylin ---
|
|
channel: 0
|
|
node_name: ECU_TEST_NODE
|
|
sdf_path: .\vendor\4SEVEN_color_lib_test.sdf
|
|
schedule_nr: -1 # -1 = don't auto-start a schedule
|
|
|
|
flash:
|
|
enabled: false
|
|
hex_path:
|
|
|
|
# Owon PSU is independent of the LIN interface. The MUM provides its own
|
|
# power on power_out0, so leave the PSU disabled unless you specifically
|
|
# need to drive an external supply for over/under-voltage scenarios.
|
|
power_supply:
|
|
enabled: false
|
|
# port: COM4
|
|
baudrate: 115200
|
|
timeout: 2.0
|
|
eol: "\n"
|
|
parity: N
|
|
stopbits: 1
|
|
xonxoff: false
|
|
rtscts: false
|
|
dsrdtr: false
|
|
# idn_substr: OWON
|
|
do_set: false
|
|
set_voltage: 13.0
|
|
set_current: 1.0
|