Node-Red Speed issues with pac tags


#1

Node-red is an amazing tool to be included with the EPIC, but there needs to be more optimization on the controllers.

Once the queue gets filled up, it doesn’t seem to empty very well. It just keeps adding and adding to the queue, and then sometimes it will catch up.

I notice that when I have refresh rate faster then every 5 seconds, this problem happens quite easily. I can’t imagine that the Snap Pac or the Epic processors can’t handle this, they are able to deal with more complex issues and data transfer. Is this an artificial limitation or a problem with internal webserver /API.

I have started a support issue, but just wondering if anyone else using node-red has seen this or not?

I am using tables to transport my data to be efficient, but there are still times where I need to check individual tags and this where it really seems to pile up with queue events.

I am using node-red to communicate with up to 11 other EPIC/R2’s. Overall not many issues, except when needing faster refresh rate and queue issues after that.

Thanks!
Dan


#2

I’ve seen queue overflow in some pretty extreme Node-RED flows as well – it has been a while though, I forget what refresh rate I was using at the time. Also what PAC firmware and Node-RED versions are you running?


#3

Thanks for the reply,

I am using Snap-pac R2 with firmware version R9.5G and node-red version 0.18.7 (Epic PR1 latest firmware)

These things are making me more efficient grabbing data and sharpening my JS skills.

[
{
    "id": "d255dab4.99e188",
    "type": "inject",
    "z": "e7fdcfec.2e6f5",
    "name": "Get Local Data",
    "topic": "",
    "payload": "",
    "payloadType": "date",
    "repeat": "3",
    "crontab": "",
    "once": true,
    "onceDelay": 0.1,
    "x": 103.5714225769043,
    "y": 373.99999046325684,
    "wires": [
        [
            "697f9c81.dc65c4",
            "87dbe5ea.febc78",
            "432fe65c.1a5618"
        ]
    ]
},
{
    "id": "432fe65c.1a5618",
    "type": "pac-read",
    "z": "e7fdcfec.2e6f5",
    "device": "2c250c1b.4828f4",
    "dataType": "int32-table",
    "tagName": "slave_enabled",
    "tableStartIndex": "",
    "tableLength": "",
    "value": "",
    "valueType": "msg.payload",
    "topic": "",
    "topicType": "none",
    "name": "",
    "x": 102.71427917480469,
    "y": 421.71430587768555,
    "wires": [
        [
            "48215924.93f948"
        ]
    ]
},
{
    "id": "48215924.93f948",
    "type": "change",
    "z": "e7fdcfec.2e6f5",
    "name": "",
    "rules": [
        {
            "t": "set",
            "p": "payload.Value",
            "pt": "msg",
            "to": "msg.payload",
            "tot": "str"
        }
    ],
    "action": "",
    "property": "",
    "from": "",
    "to": "",
    "reg": false,
    "x": 121.85713195800781,
    "y": 469.2857360839844,
    "wires": [
        [
            "dfc41dea.bd283"
        ]
    ]
},
{
    "id": "dfc41dea.bd283",
    "type": "split",
    "z": "e7fdcfec.2e6f5",
    "name": "",
    "splt": "\\n",
    "spltType": "str",
    "arraySplt": 1,
    "arraySpltType": "len",
    "stream": false,
    "addname": "",
    "x": 74.71427154541016,
    "y": 514.2857398986816,
    "wires": [
        [
            "9b12f0b7.8e1d6"
        ]
    ]
},
{
    "id": "9b12f0b7.8e1d6",
    "type": "switch",
    "z": "e7fdcfec.2e6f5",
    "name": "",
    "property": "parts.index",
    "propertyType": "msg",
    "rules": [
        {
            "t": "eq",
            "v": "1",
            "vt": "str"
        },
        {
            "t": "eq",
            "v": "2",
            "vt": "str"
        },
        {
            "t": "eq",
            "v": "3",
            "vt": "str"
        },
        {
            "t": "eq",
            "v": "4",
            "vt": "str"
        },
        {
            "t": "eq",
            "v": "5",
            "vt": "str"
        },
        {
            "t": "eq",
            "v": "6",
            "vt": "str"
        }
    ],
    "checkall": "true",
    "repair": false,
    "outputs": 6,
    "x": 328.71428298950195,
    "y": 441.7857093811035,
    "wires": [
        [
            "dd6ddcbc.85b95"
        ],
        [
            "c903c6f2.3380e8"
        ],
        [
            "d8b012f0.42ded"
        ],
        [
            "934eebfa.82cd08"
        ],
        [
            "8b1eca1c.1deb28"
        ],
        [
            "3c6121bc.26169e"
        ]
    ]
},
{
    "id": "2c250c1b.4828f4",
    "type": "pac-device",
    "z": "",
    "address": "10.100.100.15",
    "protocol": "http"
}

]