Endnodes communication via Node-Red on IOT Edge Computer not working

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

Hi,

Can you please provide your online order number(s) so I can see what hardware you have and what options were selected when purchasing?

Also On the Address the last two octets should be FF
00:13:A2:00:00:00:FF:FF

Order #512604

@jacob Thanks; will try that.

Edit: the corrected broadcast address didn’t make any difference. I did try with specific device MACs too ofc.

The debug node should be connected to the lower output connection on the Gateway Node because technically EndNode is an unknown device(ncd-red-wireless, does not know how to parse responses from EndNode Devices).

Still no EndNode output after putting the debug node on the second gateway output connection. Endnodes don’t show any activity, just a green light. Other sensor data is received by the IoT Edge Computer and Node/ncd-red-wireless

I have tried sending other commands to the endnodes as well via this gateway code, but no change in relay or voltage is observed via USB control/alpha station.

Updated Node-Red Flow:

[{"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.payload = {};\nmsg.payload.data = [0xFE,0x21];\nmsg.payload.address = \"00:13:A2:00:00:00:FF:FF\"; // broadcast\n//msg.payload.address = \"00:13:a2:00:41:db:85:b6\"; // 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"],["e10b641d.f6c548"]]},{"id":"e10b641d.f6c548","type":"debug","z":"88420285.c1e28","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":787.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":461.3333740234375,"y":200.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}]

I see you have a Co2 sensor as well. Are you seeing data from that sensor on the Edge Computer?

Try setting the address to 00:00:00:00:00:00:FF:FF

Yes, the CO2 sensor data is being received just fine.

I just tried changing address to 00:00:00:00:00:00:FF:FF, and it worked for both ASM1-5 units. I am totally puzzled as to what changed, but addressing both of those devices directly seems to work now, and the status light flashes and I can change the voltage as expected.

However, the ASM1-3 unit seems to have another problem. It was ordered with 900mhz wireless, but Alpha Station shows “Wireless 2.4Ghz” under Device Configuration:
ASM1-3EndNode

Can you open the box and share the radio module picture? it just might be a glitch in the alpha station UI

It is an XBee Pro S3B as expected, so I am pretty puzzled why it won’t communicate when the other endnodes are working now (have one controlling a bank of lights already).

I was wracking my brain when I realized that I had connected both ESM 1-5 units via USB and Alpha Station, and set the encryption key (to the default NCD key), but I had not done the same with the 1-3 because “Wireless 2.4Ghz” threw me off. I tried the same thing - setting the encryption key - on the 1-3 unit, and it’s now communicating with Node-Red and the Edge Computer.

Looks like everything is working now.