From my understanding of the device docs, the below flow should send a broadcast message to all endNodes, and get a response, but all 3 of our new endNodes (ASM1-3 and 2x ASM1-5) don’t respond at all.
Yes, they work over USB… Any help getting this working until I get can a USB modem?
[
{
"id": "88420285.c1e28",
"type": "tab",
"label": "Test EndNodes",
"disabled": false,
"info": ""
},
{
"id": "8d16ff76.0b349",
"type": "inject",
"z": "88420285.c1e28",
"name": "Test",
"props": [],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 118.33328628540039,
"y": 102.33333206176758,
"wires": [
[
"b5764960.8ff5e8"
]
]
},
{
"id": "b5764960.8ff5e8",
"type": "function",
"z": "88420285.c1e28",
"name": "Test Communications with all Endnodes",
"func": "msg = {};\nmsg.payload = {};\nmsg.payload.data = [0xFE,0x21];\n//msg.payload.address = \"00:13:A2:00:00:00:00:FF\"; // broadcast\nmsg.payload.address = \"00:13:A2:00:41:DB:87:7C\"; // ASM1-3#1\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 418.99993896484375,
"y": 101.33334827423096,
"wires": [
[
"3601ef33.081a1"
]
]
},
{
"id": "5a96b2c6.919adc",
"type": "ncd-gateway-node",
"z": "88420285.c1e28",
"name": "Gateway TTY",
"connection": "3a674906.5b9e76",
"unknown_devices": true,
"outputs": 2,
"x": 792.9999504089355,
"y": 142.3333625793457,
"wires": [
[
"e10b641d.f6c548"
],
[]
]
},
{
"id": "e10b641d.f6c548",
"type": "debug",
"z": "88420285.c1e28",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 807.9998931884766,
"y": 256.3333969116211,
"wires": []
},
{
"id": "3601ef33.081a1",
"type": "function",
"z": "88420285.c1e28",
"name": "doNcdEncode",
"func": "var command = msg.payload.data;\ncommand.unshift(0xAA, command.length);\nvar sum = 0x00;\nfor(i = 0; i < command.length; i++){\n sum+=command[i];\n}\ncommand.push(sum&0xFF);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 454.3333740234375,
"y": 196.33334922790527,
"wires": [
[
"e10b641d.f6c548",
"5a96b2c6.919adc"
]
]
},
{
"id": "3a674906.5b9e76",
"type": "ncd-gateway-config",
"name": "",
"comm_type": "serial",
"ip_address": "",
"tcp_port": "2101",
"port": "/dev/ttyS1",
"baudRate": "115200",
"pan_id": "7FFF",
"rssi": false
}
]