EcoWatt Technologies Logo

MC - BMS Control

Send BMS Remote Control Strategy

  • Topic:

    • User-customized MQTT: v1/watt/${PRODUCT_KEY}/${DEVICE}/bms_control/set/command

    • Platform default MQTT: v1/user/${TENANT}/${DEVICE}/bms_control/set/command

  • Permissions: Subscribe

  • Payload Main Structure

ParameterTypeRequiredDescriptionRangeExample
midUUIDtrueMessage ID-3e681859-6917-4b9a-9afd-3f162cd185bd
typestrtrueMessage typebms_setbms_set
datadatatrueMessage content-See **Payload - data**
sub_device_uidstrtruePrimary device UID, needed only when secondary device reports to primary device-jHODSda39
sub_device_idinttruePrimary device ID, needed only when secondary device reports to primary device(0, ∞)2
device_uidstrtrueDevice UID-iYRkfVpi77
timestampinttrueMessage timestamp (in milliseconds)(0, ∞)1696837112000
  • Payload - data
ParameterTypeRequiredDescriptionRangeExample
battery_system_resetintfalseFault reset[0,1]1
high_voltage_commandintfalseContactor open/close[0,1]0
  • Payload Example
{
  "trace_id": "577f5df0-65d6-432d-8aac-0116e9530152",
  "mid": "ee2e8f09-b280-4e4d-bcb9-1529b703cfed",
  "type": "bms_set",
  "data": {
    "battery_system_reset":0,
    "high_voltage_command":1
  },
  "sub_device_uid": "${SUB_DEVICE_UID}",
  "sub_device_id": "${SUB_DEVICE_ID}",
  "device_uid": "${DEVICE_UID}",
  "timestamp": 1695265371000
}

Send BMS Remote Control Strategy Response

  • Topic:

    • User-customized MQTT: v1/watt/${PRODUCT_KEY}/${DEVICE}/bms_control/set/result

    • Platform default MQTT: v1/user/${TENANT}/${DEVICE}/bms_control/set/result

  • Permissions: Subscribe

  • Payload Main Structure

ParameterTypeRequiredDescriptionRangeExample
midUUIDtrueMessage ID-4c5b3c27-cea8-4ea1-a936-41fd3596e0e9
replyUUIDtrueReply to message's mid-3e681859-6917-4b9a-9afd-3f162cd185bd
typestrtrueMessage typebms_setbms_set
codeinttrueResponse code-See response codes
msgstrfalseFailure reason-Parameter error
sub_device_uidstrtrueSub-device UID-jHODSda39
sub_device_idinttrueSub-device ID-2
device_uidstrtrueDevice UID-iYRkfVpi77
timestampinttrueMessage timestamp (in milliseconds)(0, ∞)1696837112000
  • Payload - data
<table><thead><tr><th width="209">Parameter</th><th width="81">Type<select><option value="7a689ae99ed145e183989371bbcf21ce" label="int" color="blue"></option></select></th><th width="85" data-type="checkbox">Required</th><th>Description</th><th>Range</th><th>Example</th></tr></thead><tbody><tr><td>battery_system_reset</td><td><span data-option="7a689ae99ed145e183989371bbcf21ce">int</span></td><td>false</td><td>Fault reset</td><td>[0,1]</td><td>1</td></tr><tr><td>high_voltage_command</td><td><span data-option="7a689ae99ed145e183989371bbcf21ce">int</span></td><td>false</td><td>Contactor open/close</td><td>[0,1]</td><td>0</td></tr></tbody></table>
  • Payload Example
{
    "trace_id": "577f5df0-65d6-432d-8aac-0116e9530152",
    "mid": "4c5b3c27-cea8-4ea1-a936-41fd3596e0e9",
    "type": "bms_sync",
    "sub_device_uid": "${SUB_DEVICE_UID}",
    "sub_device_id": "${SUB_DEVICE_ID}",
    "device_uid": "${DEVICE_UID}",
    "timestamp": 1696837112000
}

Sync BMS Remote Control Strategy Response

  • Topic:

    • User-customized MQTT: v1/watt/${PRODUCT_KEY}/${DEVICE}/bms_control/sync/result

    • Platform default MQTT: v1/user/${TENANT}/${DEVICE}/bms_control/sync/result

  • Permissions: Publish

  • Payload Main Structure

ParameterTypeRequiredDescriptionRangeExample
midUUIDtrueMessage ID-3e681859-6917-4b9a-9afd-3f162cd185bd
typestrtrueMessage typebms_syncbms_sync
codeinttrueResponse code-See response codes
datadatatrueMessage content-See **Payload - data**
sub_device_uidstrtruePrimary device UID, needed only when secondary device reports to primary device-jHODSda39
device_uidstrtrueDevice UID-iYRkfVpi77
timestampinttrueMessage timestamp (in milliseconds)(0, ∞)1696837112000
  • Payload - data
<table><thead><tr><th width="209">Parameter</th><th width="81">Type<select><option value="7a689ae99ed145e183989371bbcf21ce" label="int" color="blue"></option></select></th><th width="85" data-type="checkbox">Required</th><th>Description</th><th>Range</th><th>Example</th></tr></thead><tbody><tr><td>battery_system_reset</td><td><span data-option="7a689ae99ed145e183989371bbcf21ce">int</span></td><td>false</td><td>Fault reset</td><td>[0,1]</td><td>1</td></tr><tr><td>high_voltage_command</td><td><span data-option="7a689ae99ed145e183989371bbcf21ce">int</span></td><td>false</td><td>Contactor open/close</td><td>[0,1]</td><td>0</td></tr></tbody></table>
  • Payload Example
{
    "trace_id": "577f5df0-65d6-432d-8aac-0116e9530152",
    "mid": "4c5b3c27-cea8-4ea1-a936-41fd3596e0e9",
    "type": "bms_sync",
    "sub_device_uid": "${SUB_DEVICE_UID}",
    "sub_device_id": "${SUB_DEVICE_ID}",
    "device_uid": "${DEVICE_UID}",
    "timestamp": 1696837112000
}