Skip to content

Motor (function 7) ​

An electric propulsion motor and its controller. It reports what it is doing — driving, regenerating, or holding a speed or power setpoint — along with voltage, current, temperature and a signed RPM where a negative value means turning the other way. The command selects the mode and its setpoint.

  • state enum: off, regeneration, drive, regulator-speed, regulator-power, error.

Published ​

device/7/<i>/life ​

metadata adds counter; expireAfterSec: 30.

data fieldTypeUnitDescription
statestring—Motor state (enum)
stateCodeint—Raw state
voltagenumber (1 dec)VVoltage
currentnumber (1 dec)ACurrent (signed)
temperatureint°CTemperature
rpmintrpmMotor RPM (signed; negative = reverse/regen)
json
{
  "data": {
    "state": "drive",
    "stateCode": 2,
    "voltage": 48.6,
    "current": 85.2,
    "temperature": 52,
    "rpm": 2400
  },
  "metadata": {
    "rxdate": "2026-06-17T14:30:45.123Z",
    "rxTimestamp": 1781793045,
    "expireAfterSec": 30,
    "counter": 4
  }
}
bash
mosquitto_sub -h 127.0.0.1 -t 'device/7/+/#' -v

Command — device/7/<i>/command ​

Regex ^device/7/([[:digit:]]+)/command$. Exactly one mode flag is expected: if no flag is set the motor is turned off; if more than two flags are set the command is forced to off and setpoint cleared.

FieldTypeDescription
requestOffboolStop motor
requestDriveboolDrive
requestRegenerationboolRegenerative braking
requestRegulatorSpeedboolSpeed regulation
requestRegulatorPowerboolPower regulation
setpointintSetpoint (speed or power, per mode)
bash
mosquitto_pub -h 127.0.0.1 -t 'device/7/0/command' -m '{"requestDrive":true,"setpoint":1000}'
mosquitto_pub -h 127.0.0.1 -t 'device/7/0/command' -m '{"requestRegeneration":true}'
mosquitto_pub -h 127.0.0.1 -t 'device/7/0/command' -m '{"requestOff":true}'

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