Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

PLM Node

Andrew Pearson edited this page Sep 24, 2019 · 3 revisions

Modem Commands

Info

Request

{
	"topic": "info"
}

Response

{
	"topic": "info",
	"payload": {
		"type": 0x60,
		"ID": [21,21,21],
		"devcat": 3,
		"subcat": 32,
		"firmware": 58,
		"ack": true
	}
}

Config

Request

{
	"topic": "config"
}

Response

{
	"topic": "config",
	"payload": {
		"type": 0x73,
		"autoLinking": true,
		"monitorMode": true,
		"autoLED": true,
		"deadman": true,
		"ack": true
	}
}

Links

{
	"topic": "links"
}

Response

{
	"topic": "links",
	"payload": [
		[
			{
				"recordType": 1,
				"allLinkGroup": 10,
				"from": [21, 21, 21],
				"linkData": [22, 22, 22],
				"index": 9
			}
			...2 more
		]

		...254 more
	]
}

Sync Info

Request

{
	"topic": "syncInfo"
}

Response

{
	"topic": "syncInfo",
	"payload": {
		"type": 0x60,
		"ID": [21,21,21],
		"devcat": 3,
		"subcat": 32,
		"firmware": 58,
		"ack": true
	}
}

Sync Config

Request

{
	"topic": "syncConfig"
}

Response

{
	"topic": "syncConfig",
	"payload": {
		"type": 0x73,
		"autoLinking": true,
		"monitorMode": true,
		"autoLED": true,
		"deadman": true,
		"ack": true
	}
}

Sync Links

{
	"topic": "syncLinks"
}

Response

{
	"topic": "syncLinks",
	"payload": [
		[
			{
				"recordType": 1,
				"allLinkGroup": 10,
				"from": [21, 21, 21],
				"linkData": [22, 22, 22],
				"index": 9
			}
			...2 more
		]

		...254 more
	]
}

Set Config

{
	"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
  }
}

Set Category

{
	"topic": "setCategory",
	"payload": [0x03, 0x20],
	"firmware": 0x3A
}

Response

{
  "topic": "setCategory",
  "payload": {
    "type": 102,
    "devcat": 3,
    "subcat": 32,
    "firmware": 58,
    "ack": true
  },
  "firmware": 58
}

Set LED

{
	"topic": "setLed",
	"payload": false
}

Response

{
  "topic": "setLed",
  "payload": {
    "type": 109,
    "ack": true
  }
}

Reset

Sleep

{
	"topic": "sleep"
}

Response

{
  "topic": "sleep",
  "payload": {
    "type": 114,
    "cmd1": 6,
    "cmd2": 0,
    "ack": false
  }
}

Wake

{
	"topic": "sleep"
}

Response

{
  "topic": "packet",
  "payload": {
    "type": 21
  }
}

Close

{
	"topic": "close"
}

Response

{
  "topic": "close"
}

Device Commands

Command

{
	"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 ]
}

Extended Command

{
	"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]
}

Group Commands

Group Command

{
  "payload": [0x11, 0xFF],
  "group": 12,
  "topic": "groupCommand"
}

Response

{
  "topic": "packet",
  "payload": {
    "type": 97,
    "allLinkGroup": 12,
    "allLinkCommand": 19,
    "broadcastCommand2": 0,
    "ack": true
  },
}

Linking Commands

Start Linking

{
	"topic": "startLinking",
	"type": 1,
	"payload": 1
}

Response

{
  "topic": "startLinking",
  "payload": {
    "type": 100,
    "linkCode": 1,
    "allLinkGroup": 1,
    "ack": true
  },
  "type": 1
}

Stop Linking

{
	"topic": "stopLinking"
}

Response

{
  "topic": "stopLinking",
  "payload": {
    "type": 101,
    "ack": true
  }
}

Add Link

{
	"topic": "addLink",
	"device": [0x42, 0x42, 0x42],
        "group": 0x00,
	"type": 0x01,
}

Response

{
  "topic": "addLink"
}

Delete Link

{
	"topic": "deleteLink",
	"device": [0x42, 0x42, 0x42],
        "group": 0x00,
	"type": 0x01,
}

Response

{
  "topic": "deleteLink"
}