Skip to content

Commit

Permalink
WB-MAI6: Add Internal 5V Bus Voltage channel (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia1S authored Dec 20, 2024
1 parent 5bcf571 commit 2e2920c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
wb-mqtt-serial (2.152.1) stable; urgency=medium

* WB-MAI6: add Internal 5V Bus Voltage channel

-- Ilia Skochilov <ilia.skochilov@wirenboard.com> Fri, 20 Dec 2024 17:13:00 +0300

wb-mqtt-serial (2.152.0) stable; urgency=medium

* Add "protocol:" prefix to type field in config/Load RPC response for schemas of custom devices.
Expand Down
18 changes: 15 additions & 3 deletions templates/config-wb-mai6.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,16 @@
"enabled": false,
"group": "hw_info"
},
{
"name": "Internal 5V Bus Voltage",
"reg_type": "input",
"address": 121,
"type": "value",
"units": "V",
"scale": 0.001,
"enabled": false,
"group": "hw_info"
},
{
"name": "Uptime",
"reg_type": "input",
Expand All @@ -1013,7 +1023,8 @@
"reg_type": "input",
"address": 123,
"scale": 0.001,
"type": "voltage",
"type": "value",
"units": "V",
"enabled": false,
"group": "hw_info"
},
Expand All @@ -1038,7 +1049,7 @@
"format": "u16",
"enabled": false,
"group": "debug"
},
},
{
"name": "ADC Loop Duration",
"reg_type": "input",
Expand All @@ -1048,7 +1059,7 @@
"scale": 0.001,
"enabled": false,
"group": "debug"
}
}
],

"translations": {
Expand Down Expand Up @@ -1191,6 +1202,7 @@
"Internal Temperature": "Температура внутри модуля",
"Serial": "Серийный номер",
"FW Version": "Версия прошивки",
"Internal 5V Bus Voltage": "Напряжение внутренней шины 5В",
"Uptime": "Время работы с момента включения",
"ADC Loop Duration": "Время цикла опроса АЦП",
"ADC Loop Counter": "Счетчик циклов опроса АЦП",
Expand Down
2 changes: 2 additions & 0 deletions test/TDeviceTemplatesTest.Validate.dat
Original file line number Diff line number Diff line change
Expand Up @@ -13750,6 +13750,7 @@ WB-MAI6
IN 6 Temperature => IN 6 Temperature
IN 6 Value => IN 6 Value
IN 6 Voltage => IN 6 Voltage
Internal 5V Bus Voltage => Internal 5V Bus Voltage
Internal Temperature => Internal Temperature
MCU Temperature => MCU Temperature
MCU Voltage => MCU Voltage
Expand Down Expand Up @@ -23584,6 +23585,7 @@ tpl1_oni_plc_w_ema_06U00
IN 6 Temperature => IN 6 Temperature
IN 6 Value => IN 6 Value
IN 6 Voltage => IN 6 Voltage
Internal 5V Bus Voltage => Internal 5V Bus Voltage
Internal Temperature => Internal Temperature
MCU Temperature => MCU Temperature
MCU Voltage => MCU Voltage
Expand Down

0 comments on commit 2e2920c

Please sign in to comment.