This repository has been archived by the owner on Jan 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
PLM Node
Andrew Pearson edited this page Sep 24, 2019
·
3 revisions
Request
{
"topic": "info"
}
Response
{
"topic": "info",
"payload": {
"type": 0x60,
"ID": [21,21,21],
"devcat": 3,
"subcat": 32,
"firmware": 58,
"ack": true
}
}
Request
{
"topic": "config"
}
Response
{
"topic": "config",
"payload": {
"type": 0x73,
"autoLinking": true,
"monitorMode": true,
"autoLED": true,
"deadman": true,
"ack": true
}
}
{
"topic": "links"
}
Response
{
"topic": "links",
"payload": [
[
{
"recordType": 1,
"allLinkGroup": 10,
"from": [21, 21, 21],
"linkData": [22, 22, 22],
"index": 9
}
...2 more
]
...254 more
]
}
Request
{
"topic": "syncInfo"
}
Response
{
"topic": "syncInfo",
"payload": {
"type": 0x60,
"ID": [21,21,21],
"devcat": 3,
"subcat": 32,
"firmware": 58,
"ack": true
}
}
Request
{
"topic": "syncConfig"
}
Response
{
"topic": "syncConfig",
"payload": {
"type": 0x73,
"autoLinking": true,
"monitorMode": true,
"autoLED": true,
"deadman": true,
"ack": true
}
}
{
"topic": "syncLinks"
}
Response
{
"topic": "syncLinks",
"payload": [
[
{
"recordType": 1,
"allLinkGroup": 10,
"from": [21, 21, 21],
"linkData": [22, 22, 22],
"index": 9
}
...2 more
]
...254 more
]
}
{
"topic": "setConfig",
"payload": {
"autoLinking": true,
"monitorMode": true,
"autoLED": false,
"deadman": true
}
}
Response
{
"topic": "setConfig",
"payload": {
"type": 107,
"autoLinking": true,
"monitorMode": true,
"autoLED": false,
"deadman": true,
"ack": true
}
}
{
"topic": "setCategory",
"payload": [0x03, 0x20],
"firmware": 0x3A
}
Response
{
"topic": "setCategory",
"payload": {
"type": 102,
"devcat": 3,
"subcat": 32,
"firmware": 58,
"ack": true
},
"firmware": 58
}
{
"topic": "setLed",
"payload": false
}
Response
{
"topic": "setLed",
"payload": {
"type": 109,
"ack": true
}
}
{
"topic": "sleep"
}
Response
{
"topic": "sleep",
"payload": {
"type": 114,
"cmd1": 6,
"cmd2": 0,
"ack": false
}
}
{
"topic": "sleep"
}
Response
{
"topic": "packet",
"payload": {
"type": 21
}
}
{
"topic": "close"
}
Response
{
"topic": "close"
}
{
"topic": "command",
"device": [0x21,0x21,0x21],
"payload": [0x2E, 0x00]
}
Response
{
"topic": "command",
"payload": {
"type": 98,
"extended": false,
"to": [ 21, 21, 21 ],
"flags": 15,
"cmd1": 46,
"cmd2": 0,
"ack": true
},
"device": [ 21, 21, 21 ]
}
{
"topic": "extendedCommand",
"device": [0x42,0x42,0x42],
"payload": [0x13, 0x00],
"data": [0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01]
}
Response
{
"topic": "extendedCommand",
"payload": {
"type": 98,
"extended": true,
"to": [0x42,0x42,0x42],
"flags": 31,
"cmd1": 17,
"cmd2": 255,
"ack": null,
"userData": [0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01]
},
"device": [0x42,0x42,0x42],
"data": [0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01]
}
{
"payload": [0x11, 0xFF],
"group": 12,
"topic": "groupCommand"
}
Response
{
"topic": "packet",
"payload": {
"type": 97,
"allLinkGroup": 12,
"allLinkCommand": 19,
"broadcastCommand2": 0,
"ack": true
},
}
{
"topic": "startLinking",
"type": 1,
"payload": 1
}
Response
{
"topic": "startLinking",
"payload": {
"type": 100,
"linkCode": 1,
"allLinkGroup": 1,
"ack": true
},
"type": 1
}
{
"topic": "stopLinking"
}
Response
{
"topic": "stopLinking",
"payload": {
"type": 101,
"ack": true
}
}
{
"topic": "addLink",
"device": [0x42, 0x42, 0x42],
"group": 0x00,
"type": 0x01,
}
Response
{
"topic": "addLink"
}
{
"topic": "deleteLink",
"device": [0x42, 0x42, 0x42],
"group": 0x00,
"type": 0x01,
}
Response
{
"topic": "deleteLink"
}