Skip to content

Reference — Eco Sistems gateway ​

The MUXEN devices this gateway publishes ​

DeviceFunctionInstanceWhat it carries
Watermaker20configured (InstanceNum), 0 by defaultthe watermaker: state, salinity, flow, litres, alarms; accepts start / rinse / stop / flow commands
Generic I/O17configured (InstanceNum), 255 by defaultthe box's own relays, inputs and analog inputs

MQTT topics on the Brain follow device/<function>/<instance>/<frame>.

What the watermaker publishes ​

device/20/<instance>/life, once a second, only while the unit is being heard:

FieldUnitMeaning
state / stateCodestandby (0), production (1), rinçage (2) — the unit's own state
salinityppmsalinity of the water produced; 0 outside production
productionFlowl/hflow the unit reports now
ProductLiterCmptlthe unit's litre counter, 16-bit, wraps at 65 535
FlowNowRateFromMaxFlow%flow setting, 50…100; 100 outside production
counterrolling frame counter

device/20/<instance>/state is published at the same rate but every field is zero: pressures, valve and pump states, fuses and hour meter are not available from this equipment.

Alarms ​

Republished as MUXEN faults on device/20/<instance>/error/<code>:

CodeMeaning
23pressure too high
24no flow
25salinity (TDS) too high

The unit reports one alarm at a time; when it reports none, the gateway clears the faults it holds.

Commands accepted ​

Published by the Brain on device/20/<instance>/command:

PayloadEffectAccepted when
{"produce": true}start productionunit present
{"rinsing": true}start a rinseunit present
{"off": true}stopunit present
{"productionFlowUp": true}raise the production flow one stepunit present and producing
{"productionFlowDown": true}lower the production flow one stepunit present, producing, and above the minimum flow

A payload with none of these keys is treated as stop. Commands are dropped while the unit is absent, and two commands must be at least 200 ms apart.

Parameters — watermaker (function 20) ​

ParameterTypeDefaultMeaning
InstanceNum0…620the watermaker's instance number. Unlike most CanCan applications this is not 255, so a factory box publishes immediately
BindToParc254 (auto)the energy zone this device is attributed to; stored by the box, not used by this gateway
WatermakerModelread-only in practiceEco Sistems 48 Vforced back to Eco Sistems 48 V at every start
ProductId, HardwareId, SoftwareId, SoftwareVersionread-onlysee Reference

Instance numbers are read at startup — write with --reboot.

Parameters — generic I/O (function 17) ​

The parameters common to every CanCan, described in Reference, with one difference on this firmware:

ParameterBehaviour here
EnGenIono effect — the inputs, relays and analog inputs are published as soon as the device has an instance number below 63

InstanceNum (255) and EnAnalogPwr (1) behave as documented there.

Routines ​

RoutinePayloadEffect
10001restore the instance number to its default
1any bit above bit 0restore every other parameter to its default

No other routine is implemented: muxen-uds locate is refused here.

Timings ​

Watermaker life and state published every1 s
The unit is declared absent after5 s without a frame
Minimum delay between two commands200 ms
Generic I/O publishedon change, at least every 500 ms (50 mV on the analog inputs)

The watermaker side ​

BusCAN 2, 250 kbit/s, fixed by the firmware — it overrides the 500 kbit/s of the board description at every start
Frames readthe Eco Sistems status frame: flow, litre counter, salinity, alarm, state
Frames writtenstart, rinse, stop, flow up and flow down
Filteringnone — the gateway listens to the whole second bus and picks out what it understands. Any traffic there is enough for it to consider the unit present

Known limitations ​

  • The state topic carries no real data — every field reads zero, including the high pressure the equipment measures.
  • The litre counter is 16-bit and wraps at 65 535 l; the published flow percentage is trimmed to 50…100 %; one watermaker per gateway.

Versions ​

HardwareVersionImage
CanCan v15.11010010027-app_eco_sistems-firmware.srec
CanCan v26.2010010027-V2-app_eco_sistems-firmware.srec

Source: workspace/muxen/cancan/app_eco_sistems/, product overlay boards/arm/<board>/010010027.overlay.

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