Serial output not working with Eltako gateway FGW14

I'm using a Eltako USB gateway to control Eltako devices in Node Red. To date, I've used a USB300. However, the bus connected gateway FGW14 would serve my purpose much better. I've come this far, incoming messages to Node Red work fine. However, the FGW14 remains dead silent on outgoing messages. Any help or suggestions how to try to figure this out would be very much appreciated.

1 Pressing Eltako wireless pushbutton generates the following radio telegram [165,90,11,5,48,0,0,0,255,231,175,192,48,197].
2 This input to Node Red by the gateway. All fine. Works exactly as it should. It can be used to e.g. trigger actions.
3 What does not work is feeding same buffer back to the gateway. Nothing happens. I’ve not been able to find aby proper documentation on how to use the gateway.

image

[
    {
        "id": "8f15da851a17f161",
        "type": "debug",
        "z": "21791ddc4a0ad0ab",
        "name": "debug 22",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 620,
        "y": 360,
        "wires": []
    },
    {
        "id": "bc888672717de93d",
        "type": "function",
        "z": "21791ddc4a0ad0ab",
        "name": "f1",
        "func": "const buf = msg.payload;\nconst esp2 = {};\nesp2.serial_node_buffer = buf;\nesp2.length = \"0b\" + buf.readUInt8(2).toString(2).substring(0, 4).padStart(4,'0');\nesp2.hseq = \"0b\" + buf.readUInt8(2).toString(2).substring(4).padStart(5, '0');\n//esp2.length = parseInt(buf.readUInt8(2).toString(2).substring(0, 4);\nesp2.org = \"0x\" + buf.readUInt8(3).toString(16).padStart(2, '0');\nesp2.data_byte3 =  \"0x\" + buf.readUInt8(4).toString(16).padStart(2, '0');\nesp2.data_byte2 = \"0x\" + buf.readUInt8(5).toString(16).padStart(2, '0');\nesp2.data_byte1 = \"0x\" + buf.readUInt8(6).toString(16).padStart(2, '0');\nesp2.data_byte0 = \"0x\" + buf.readUInt8(7).toString(16).padStart(2, '0');\nesp2.id = \"0x\" +\n    buf.readUInt8(8).toString(16).padStart(2, '0') +\n    buf.readUInt8(9).toString(16).padStart(2, '0') +\n    buf.readUInt8(10).toString(16).padStart(2, '0') +\n    buf.readUInt8(11).toString(16).padStart(2, '0');\nesp2.status = \"0x\" + buf.readUInt8(12).toString(16).padStart(2, '0');\nesp2.cheksum = \"0x\" + buf.readUInt8(13).toString(16).padStart(2, '0');\nreturn {\n    payload: {\n        idHex: esp2.id,\n        idDec: parseInt(esp2.id, 16),\n        esp2: esp2\n    }\n}\n\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 410,
        "y": 440,
        "wires": [
            [
                "8f15da851a17f161"
            ]
        ]
    },
    {
        "id": "4aef24ae60906707",
        "type": "serial in",
        "z": "21791ddc4a0ad0ab",
        "name": "",
        "serial": "c498c0f59b8c57ec",
        "x": 210,
        "y": 400,
        "wires": [
            [
                "24acff7d4348470e",
                "bc888672717de93d"
            ]
        ]
    },
    {
        "id": "a4f4870704c37208",
        "type": "inject",
        "z": "21791ddc4a0ad0ab",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "[165,90,11,5,48,0,0,0,255,231,175,192,48,197]",
        "payloadType": "bin",
        "x": 210,
        "y": 500,
        "wires": [
            [
                "bc888672717de93d",
                "c5de03e978ce6e02",
                "7806e797fa467d7a"
            ]
        ]
    },
    {
        "id": "24acff7d4348470e",
        "type": "debug",
        "z": "21791ddc4a0ad0ab",
        "name": "debug 24",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 420,
        "y": 360,
        "wires": []
    },
    {
        "id": "c5de03e978ce6e02",
        "type": "debug",
        "z": "21791ddc4a0ad0ab",
        "name": "debug 23",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 420,
        "y": 500,
        "wires": []
    },
    {
        "id": "7806e797fa467d7a",
        "type": "serial out",
        "z": "21791ddc4a0ad0ab",
        "name": "",
        "serial": "c498c0f59b8c57ec",
        "x": 430,
        "y": 560,
        "wires": []
    },
    {
        "id": "c498c0f59b8c57ec",
        "type": "serial-port",
        "serialport": "/dev/ttyUSB0",
        "serialbaud": "57600",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "waitfor": "",
        "dtr": "none",
        "rts": "none",
        "cts": "none",
        "dsr": "none",
        "newline": "14",
        "bin": "bin",
        "out": "count",
        "addchar": "",
        "responsetimeout": "100"
    }
]

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.