powersync-plugins-modbus/libnymea-sunspec/tools/models/json/model_1.json

88 lines
2.6 KiB
JSON

{
"group": {
"desc": "All SunSpec compliant devices must include this as the first model",
"label": "Common",
"name": "common",
"points": [
{
"desc": "Model identifier",
"label": "Model ID",
"mandatory": "M",
"name": "ID",
"size": 1,
"static": "S",
"type": "uint16",
"value": 1
},
{
"desc": "Model length",
"label": "Model Length",
"mandatory": "M",
"name": "L",
"size": 1,
"static": "S",
"type": "uint16"
},
{
"desc": "Well known value registered with SunSpec for compliance",
"label": "Manufacturer",
"mandatory": "M",
"name": "Mn",
"size": 16,
"static": "S",
"type": "string"
},
{
"desc": "Manufacturer specific value (32 chars)",
"label": "Model",
"mandatory": "M",
"name": "Md",
"size": 16,
"static": "S",
"type": "string"
},
{
"desc": "Manufacturer specific value (16 chars)",
"label": "Options",
"name": "Opt",
"size": 8,
"static": "S",
"type": "string"
},
{
"desc": "Manufacturer specific value (16 chars)",
"label": "Version",
"name": "Vr",
"size": 8,
"static": "S",
"type": "string"
},
{
"desc": "Manufacturer specific value (32 chars)",
"label": "Serial Number",
"mandatory": "M",
"name": "SN",
"size": 16,
"static": "S",
"type": "string"
},
{
"access": "RW",
"desc": "Modbus device address",
"label": "Device Address",
"name": "DA",
"size": 1,
"type": "uint16"
},
{
"desc": "Force even alignment",
"name": "Pad",
"size": 1,
"static": "S",
"type": "pad"
}
],
"type": "group"
},
"id": 1
}