RESTful API: Add MTP3 Point Codes: Difference between revisions
m (Minor edits to style) |
Nicole Tan (talk | contribs) No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 8: | Line 8: | ||
=== Export the current point codes table to a json file === | === Export the current point codes table to a json file === | ||
tbconfig /configurations/main_config/point_codes pc.json -r | tbconfig /configurations/main_config/point_codes pc.json -r | ||
</br>'''Note''': Change “main_config” to the name of your configuration. | </br>'''Note''': Change “main_config” to the name of your configuration. | ||
The file pc.json will resemble the following: | The file pc.json will resemble the following: | ||
{ | |||
{ | |||
"DPC_2_2_2" : { | |||
"length" : "24bits format=8.8.8", | |||
"name" : "DPC_2_2_2", | |||
"point_code" : "2.2.2", | |||
"type" : "DPC" | |||
}, | |||
"OPC_1_1_1" : { | |||
"length" : "24bits format=8.8.8", | |||
"name" : "OPC_1_1_1", | |||
"point_code" : "1.1.1", | |||
"type" : "OPC" | |||
}, | |||
"***meta***" : { | |||
"src_path" : "", | |||
"version" : "3.2.55" | |||
} | |||
} | } | ||
=== Add the new point codes and save it as pc_new.json === | === Add the new point codes and save it as pc_new.json === | ||
Latest revision as of 17:36, 22 November 2023
Add MTP3 Point Codes using tbconfig commands
DisplayMTP3 point codes list
To show the MTP3 point codes list, in general, enter:
tbconfig -u root -p root /configurations/main_config/point_codes
Note: Change “main_config” to the name of your configuration.
Export the current point codes table to a json file
tbconfig /configurations/main_config/point_codes pc.json -r
Note: Change “main_config” to the name of your configuration.
The file pc.json will resemble the following:
{
"DPC_2_2_2" : {
"length" : "24bits format=8.8.8",
"name" : "DPC_2_2_2",
"point_code" : "2.2.2",
"type" : "DPC"
},
"OPC_1_1_1" : {
"length" : "24bits format=8.8.8",
"name" : "OPC_1_1_1",
"point_code" : "1.1.1",
"type" : "OPC"
},
"***meta***" : {
"src_path" : "",
"version" : "3.2.55"
}
}
Add the new point codes and save it as pc_new.json
Import pc_new.json
tbconfig /configurations/main_config/point_codes pc_new.json -U
Note: Change “main_config” to the name of your configuration.