Hi,
I tried create my own .json for PM Janitza UMG-103 device I have, can somebody a little more explain my error and some parameters?? I use notepad++ and JSON viewer plugin:
{
"product_code": "UMG-103",
"mapping": [{
"bus_datatype": 14,
"address": 19000,
"value_nan": [65472,
0],
"type": "register",
"units": "V",
"value_multiplier": 1,
"name": "Voltage L1-N",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19002,
"value_nan": [65472,
0],
"type": "register",
"units": "V",
"value_multiplier": 1,
"name": "Voltage L2-N",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19004,
"value_nan": [65472,
0],
"type": "register",
"units": "V",
"value_multiplier": 1,
"name": "Voltage L3-N",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19006,
"value_nan": [65472,
0],
"type": "register",
"units": "V",
"value_multiplier": 1,
"name": "Voltage L1-L2",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19008,
"value_nan": [65472,
0],
"type": "register",
"units": "V",
"value_multiplier": 1,
"name": "Voltage L2-L3",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19010,
"value_nan": [
65472,
0],
"type": "register",
"units": "V",
"value_multiplier": 1,
"name": "Voltage L3-L1",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19012,
"value_nan": [65472,
0],
"type": "register",
"units": "A",
"value_multiplier": 1,
"name": "Apparent current, L1",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19014,
"value_nan": [
65472,
0],
"type": "register",
"units": "A",
"value_multiplier": 1,
"name": "Apparent current, L2",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19016,
"value_nan": [65472,
0],
"type": "register",
"units": "A",
"value_multiplier": 1,
"name": "Apparent current, L3",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19018,
"value_nan": [65472,
0],
"type": "register",
"units": "A",
"value_multiplier": 1,
"name": "Vector sum; IN=I1+I2+I3",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19020,
"value_nan": [65472,
0],
"type": "register",
"units": "W",
"value_multiplier": 1,
"name": "Real power L1",
"datatype": "float32"
}],
"manufacturer": "Janitza",
"name": "UMG-103",
"product_range": "PM",
"description": "Power meter UMG-103"
}
When I try upload profile to LM - I see error: "Expected comma or array end but found T_OBJ_BEGIN at character 234"
Questions:
1. Bus_datatype 14 What is it for? Not found in documentation for LM json creation;
2. Value_nan When to add/use such parameter? At Janitza found nothing..
Below some addresses I tried to add from Janitza UMG-103 manual:
Address List
Address Type RD/WR Designation Unit Remark
19000 float RD _ULN[0] V Voltage L1-N
19002 float RD _ULN[1] V Voltage L2-N
19004 float RD _ULN[2] V Voltage L3-N
19006 float RD _ULL[0] V Voltage L1-L2
19008 float RD _ULL[1] V Voltage L2-L3
19010 float RD _ULL[2] V Voltage L3-L1
19012 float RD _ILN[0] A Apparent current, L1
19014 float RD _ILN[1] A Apparent current, L2
19016 float RD _ILN[2] A Apparent current, L3
19018 float RD _I_SUM3 A Vector sum; IN=I1+I2+I3
19020 float RD _PLN[0] W Real power L1
19022 float RD _PLN[1] W Real power L2
19024 float RD _PLN[2] W Real power L3
19026 float RD _P_SUM3 W Sum; Psum3=P1+P2+P3
19028 float RD _SLN[0] VA Apparent power L1
Big thanks for helping
Hi again,
Found my errors by myself Should be comma after every data massive Good tool found for yourself checking of new .json file - JSON validator: https://jsonlint.com/
So questions are remained:
1. Bus_datatype 14 What is it for? Not found in documentation for LM json creation;
2. Value_nan When to add/use such parameter? At Janitza found nothing..
I tried create my own .json for PM Janitza UMG-103 device I have, can somebody a little more explain my error and some parameters?? I use notepad++ and JSON viewer plugin:
{
"product_code": "UMG-103",
"mapping": [{
"bus_datatype": 14,
"address": 19000,
"value_nan": [65472,
0],
"type": "register",
"units": "V",
"value_multiplier": 1,
"name": "Voltage L1-N",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19002,
"value_nan": [65472,
0],
"type": "register",
"units": "V",
"value_multiplier": 1,
"name": "Voltage L2-N",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19004,
"value_nan": [65472,
0],
"type": "register",
"units": "V",
"value_multiplier": 1,
"name": "Voltage L3-N",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19006,
"value_nan": [65472,
0],
"type": "register",
"units": "V",
"value_multiplier": 1,
"name": "Voltage L1-L2",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19008,
"value_nan": [65472,
0],
"type": "register",
"units": "V",
"value_multiplier": 1,
"name": "Voltage L2-L3",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19010,
"value_nan": [
65472,
0],
"type": "register",
"units": "V",
"value_multiplier": 1,
"name": "Voltage L3-L1",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19012,
"value_nan": [65472,
0],
"type": "register",
"units": "A",
"value_multiplier": 1,
"name": "Apparent current, L1",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19014,
"value_nan": [
65472,
0],
"type": "register",
"units": "A",
"value_multiplier": 1,
"name": "Apparent current, L2",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19016,
"value_nan": [65472,
0],
"type": "register",
"units": "A",
"value_multiplier": 1,
"name": "Apparent current, L3",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19018,
"value_nan": [65472,
0],
"type": "register",
"units": "A",
"value_multiplier": 1,
"name": "Vector sum; IN=I1+I2+I3",
"datatype": "float32"
}
{
"bus_datatype": 14,
"address": 19020,
"value_nan": [65472,
0],
"type": "register",
"units": "W",
"value_multiplier": 1,
"name": "Real power L1",
"datatype": "float32"
}],
"manufacturer": "Janitza",
"name": "UMG-103",
"product_range": "PM",
"description": "Power meter UMG-103"
}
When I try upload profile to LM - I see error: "Expected comma or array end but found T_OBJ_BEGIN at character 234"
Questions:
1. Bus_datatype 14 What is it for? Not found in documentation for LM json creation;
2. Value_nan When to add/use such parameter? At Janitza found nothing..
Below some addresses I tried to add from Janitza UMG-103 manual:
Address List
Address Type RD/WR Designation Unit Remark
19000 float RD _ULN[0] V Voltage L1-N
19002 float RD _ULN[1] V Voltage L2-N
19004 float RD _ULN[2] V Voltage L3-N
19006 float RD _ULL[0] V Voltage L1-L2
19008 float RD _ULL[1] V Voltage L2-L3
19010 float RD _ULL[2] V Voltage L3-L1
19012 float RD _ILN[0] A Apparent current, L1
19014 float RD _ILN[1] A Apparent current, L2
19016 float RD _ILN[2] A Apparent current, L3
19018 float RD _I_SUM3 A Vector sum; IN=I1+I2+I3
19020 float RD _PLN[0] W Real power L1
19022 float RD _PLN[1] W Real power L2
19024 float RD _PLN[2] W Real power L3
19026 float RD _P_SUM3 W Sum; Psum3=P1+P2+P3
19028 float RD _SLN[0] VA Apparent power L1
Big thanks for helping
Hi again,
Found my errors by myself Should be comma after every data massive Good tool found for yourself checking of new .json file - JSON validator: https://jsonlint.com/
So questions are remained:
1. Bus_datatype 14 What is it for? Not found in documentation for LM json creation;
2. Value_nan When to add/use such parameter? At Janitza found nothing..