Skip to content

Reference ​

The identifiers a box carries ​

Every can-mdv answers with four identifiers. They are read-only.

ParameterWhat it isExample
ProductIdthe finished product — which firmware this box carries010010029
HardwareIdthe board990010058
SoftwareIdthe program990050019
SoftwareVersionthe version of that program — 6.x on the board in service6.2
sh
muxen-uds -i can0 -d <address> readconfig --only-name ProductId \
                                          --only-name SoftwareVersion

Product, software and version ​

Product IDFirmwareSoftware IDVersion
010010029battery switch9900500196.2

Versions are those released at the time of writing; the box itself is always the authority.

How a device is addressed ​

A MUXEN device is a function (what kind of thing it is) and an instance (which one). The address used by muxen-uds -d is the two packed together:

address = function × 64 + instance

Instance numbers run 0…62. 63 and above mean "not addressed."

The same device can be reached by name instead:

sh
muxen-uds -i can0 -F 25 -I 0 readconfig

The two devices on every can-mdv ​

Whatever firmware it carries, a can-mdv registers both of these:

FunctionDeviceFactory instanceAddress at instance 0
25remote battery switch255 — not addressed25 × 64 = 0x640
5battery0 — publishes immediately5 × 64 = 0x140

Remote battery switch (function 25). Publishes the position of the switch, whether the boat's supply is present, whether the power injection is on, and the current the box is injecting. Accepts commands to open and close the switch and to force the power injection on or off. Silent until it has been given an instance number.

Battery (function 5). Publishes the bank as read from the LIN sensor — its voltage and current, and the charge and discharge limits the installation was configured with — plus over- and under-voltage alarms. Its instance defaults to 0 on a factory-fresh box, which is why two unconfigured boxes on one bus collide. It publishes only while the power injection is on and a sensor is answering.

LED codes ​

RateMeaning
on 500 ms, off 500 ms (1 Hz)the battery-switch firmware is running normally
off, box poweredstandby — the switch is open and the hold-up delay has run out; the CAN and LIN buses are shut down
on 2 s, off 2 sthe hardware-test firmware is running
off, box unpowerednot running at all

Timings ​

MUXEN bus500 kbit/s, classic CAN, extended identifiers, sample point 75 %
LIN bus19200 baud, 8N1
Remote-switch frameon change, and at least every 500 ms
Battery framesonce a second, while a sensor answers
Position feedbacka change is believed after 2 s of steady state
Injected-current measurementevery 100 ms
Firmware uploadabandoned if more than 5 s pass between two chunks

Flash layout ​

AreaSize
Bootloader40 KB
Running firmware480 KB
Spare slot, where an upload lands488 KB
Settings16 KB

Settings survive resets and firmware updates. They are erased by the factory-reset routine — see Common mistakes.

Integration of multiplexed solutions
MUXEN and the MUXEN logo are trademarks of MUXEN SAS.