369 lines
9.4 KiB
QML
369 lines
9.4 KiB
QML
import QtQuick 1.1
|
|
import com.victron.velib 1.0
|
|
import "utils.js" as Utils
|
|
|
|
MbPage {
|
|
id: root
|
|
property string bindPrefix
|
|
|
|
function bind(path) {
|
|
return Utils.path(bindPrefix, path)
|
|
}
|
|
|
|
MbItemText {
|
|
text: qsTr("No alarms")
|
|
show: _visibleCount === 0
|
|
style.isCurrentItem: true
|
|
}
|
|
|
|
model: VisualItemModel {
|
|
id: alarms
|
|
|
|
MbItemOptions {
|
|
description: qsTr("BMS hardware failure")
|
|
bind: root.bind("/AlarmFlags/HWFL")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("HWFL"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("BMS temperature too low")
|
|
bind: root.bind("/AlarmFlags/Tam")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("Tam"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("BMS temperature too high")
|
|
bind: root.bind("/AlarmFlags/TaM2")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("TaM2"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Battery temperature too low")
|
|
bind: root.bind("/AlarmFlags/Tbm")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("Tbm"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Battery temperature too high")
|
|
bind: root.bind("/AlarmFlags/TbM2")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("TbM2"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Bus voltage too low")
|
|
bind: root.bind("/AlarmFlags/VBm2")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("VBm2"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Bus voltage too high")
|
|
bind: root.bind("/AlarmFlags/VBM2")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("VBM2"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Discharge current too high")
|
|
bind: root.bind("/AlarmFlags/IDM2")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("IDM2"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Electrical insulation failure")
|
|
bind: root.bind("/AlarmFlags/ISOB")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("ISOB"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Main switch failure")
|
|
bind: root.bind("/AlarmFlags/MSWE")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("MSWE"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Main fuse blown")
|
|
bind: root.bind("/AlarmFlags/FUSE")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("FUSE"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Battery failed to warm up")
|
|
bind: root.bind("/AlarmFlags/HTRE")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("HTRE"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Temperature sensor failure")
|
|
bind: root.bind("/AlarmFlags/TCPE")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("TCPE"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("STRE Please insert a description!!!")
|
|
bind: root.bind("/AlarmFlags/STRE")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("STRE"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Current sensor failure")
|
|
bind: root.bind("/AlarmFlags/CME")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("CME"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Hardware protection tripped")
|
|
bind: root.bind("/AlarmFlags/HWEM")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("HWEM"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Heatsink temperature too high")
|
|
bind: root.bind("/AlarmFlags/ThM")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("ThM"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("String voltage too low")
|
|
bind: root.bind("/AlarmFlags/vsm1")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("vsm1"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Low string voltage failure")
|
|
bind: root.bind("/AlarmFlags/vsm2")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("vsm2"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("String voltage too high")
|
|
bind: root.bind("/AlarmFlags/vsM2")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("vsM2"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Charge current too high")
|
|
bind: root.bind("/AlarmFlags/iCM2")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("iCM2"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Discharge current too high")
|
|
bind: root.bind("/AlarmFlags/iDM2")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("iDM2"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("String voltage unbalance too high")
|
|
bind: root.bind("/AlarmFlags/MID2")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("MID2"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Internal charger hardware failure")
|
|
bind: root.bind("/AlarmFlags/CCBF")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("CCBF"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("AhFL Please insert a description!!!")
|
|
bind: root.bind("/AlarmFlags/AhFL")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("AhFL"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("TbCM Please insert a description!!!")
|
|
bind: root.bind("/AlarmFlags/TbCM")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("TbCM"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("BRNF Please insert a description!!!")
|
|
bind: root.bind("/AlarmFlags/BRNF")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("BRNF"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Heater fuse blown")
|
|
bind: root.bind("/AlarmFlags/HTFS")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("HTFS"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Parameters out of range")
|
|
bind: root.bind("/AlarmFlags/DATA")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("DATA"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Too many broken cells")
|
|
bind: root.bind("/AlarmFlags/CELL2")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("CELL2"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
MbItemOptions {
|
|
description: qsTr("Alarm_Bit47")
|
|
bind: root.bind("/AlarmFlags/bit47AlarmDummy")
|
|
readonly: true
|
|
possibleValues: [
|
|
MbOption { description: qsTr("Ok"); value: false },
|
|
MbOption { description: qsTr("Alarm47"); value: true }
|
|
]
|
|
show: item.value === true
|
|
}
|
|
|
|
}
|
|
}
|