Serial communication change value

Hi, it's my first time with node-red and it's my first time here. I would like to use a stream that I downloaded from the web to be able to communicate with my pylontech battery, I know that the stream is working because many use it, but I am having problems. when i inject the character buffer to the serial port, the receiver does not arrive as i sent it. let me explain better if I send pwr / n the receiver replies that the command xwr / n does not exist, during the sending the p was changed with x. I am using a rasperry zero w with a usb to rs232 serial adapter, the adapter works and the cable (about 10 meters) is ok because with other monitoring programs it works fine. I used the serial node of the standard installation, do I need to install some other particular serial node?

Welcome to the forum @calida82

Feed the message you are passing to the serial node into a debug node and show us what it says. Also show us how you have configured the serial node.

this is the flow

[
    {
        "id": "22034bca12682caf",
        "type": "tab",
        "label": "Flow 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "b8add8525d9bc282",
        "type": "group",
        "z": "22034bca12682caf",
        "name": "",
        "style": {
            "label": true
        },
        "nodes": [
            "717af324.4d6cbc",
            "33cbff76.f207b",
            "b44c894.e086578",
            "546456da.829698",
            "4f3f9020.ef044",
            "9e9f426.5a94cc",
            "740d3c66.42e8d4",
            "2cb13ea3.7eded2",
            "3d139ecc.224d12",
            "7050cec4.747c1"
        ],
        "x": 34,
        "y": 299,
        "w": 852,
        "h": 382
    },
    {
        "id": "22ced6e8eb2109db",
        "type": "group",
        "z": "22034bca12682caf",
        "style": {
            "stroke": "#999999",
            "stroke-opacity": "1",
            "fill": "none",
            "fill-opacity": "1",
            "label": true,
            "label-position": "nw",
            "color": "#a4a4a4"
        },
        "nodes": [
            "6c0dfdbafe3abfa1",
            "d35954d4fc8dbbe7",
            "3af3507b8a4028f9",
            "a1c3b6a194d9fa4d"
        ],
        "x": 34,
        "y": 139,
        "w": 792,
        "h": 122
    },
    {
        "id": "717af324.4d6cbc",
        "type": "comment",
        "z": "22034bca12682caf",
        "g": "b8add8525d9bc282",
        "name": "RS232-USB PL2303 or FTDI Conversor transparente (NO TTL)",
        "info": "",
        "x": 450,
        "y": 340,
        "wires": []
    },
    {
        "id": "33cbff76.f207b",
        "type": "debug",
        "z": "22034bca12682caf",
        "g": "b8add8525d9bc282",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 770,
        "y": 400,
        "wires": []
    },
    {
        "id": "b44c894.e086578",
        "type": "serial request",
        "z": "22034bca12682caf",
        "g": "b8add8525d9bc282",
        "name": "Get Pylon Batteries",
        "serial": "2353242cd4cb757b",
        "x": 550,
        "y": 400,
        "wires": [
            [
                "33cbff76.f207b"
            ]
        ]
    },
    {
        "id": "546456da.829698",
        "type": "inject",
        "z": "22034bca12682caf",
        "g": "b8add8525d9bc282",
        "name": "Pylon INFO",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "Get the Pylon values INFO",
        "payload": "[105,110,102,111,13]",
        "payloadType": "bin",
        "x": 150,
        "y": 480,
        "wires": [
            [
                "740d3c66.42e8d4"
            ]
        ]
    },
    {
        "id": "4f3f9020.ef044",
        "type": "inject",
        "z": "22034bca12682caf",
        "g": "b8add8525d9bc282",
        "name": "Pylon PWR",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "Get the Pylon values PWR",
        "payload": "[112,119,114,13]",
        "payloadType": "bin",
        "x": 150,
        "y": 520,
        "wires": [
            [
                "740d3c66.42e8d4"
            ]
        ]
    },
    {
        "id": "9e9f426.5a94cc",
        "type": "inject",
        "z": "22034bca12682caf",
        "g": "b8add8525d9bc282",
        "name": "Pylon PWRSYS",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "Get the Pylon values PWRSYS",
        "payload": "[112,119,114,115,121,115,13]",
        "payloadType": "bin",
        "x": 160,
        "y": 560,
        "wires": [
            [
                "740d3c66.42e8d4"
            ]
        ]
    },
    {
        "id": "740d3c66.42e8d4",
        "type": "link out",
        "z": "22034bca12682caf",
        "g": "b8add8525d9bc282",
        "name": "SendToSerialConverter",
        "links": [
            "2cb13ea3.7eded2"
        ],
        "x": 345,
        "y": 480,
        "wires": []
    },
    {
        "id": "2cb13ea3.7eded2",
        "type": "link in",
        "z": "22034bca12682caf",
        "g": "b8add8525d9bc282",
        "name": "GetBatteryData",
        "links": [
            "740d3c66.42e8d4"
        ],
        "x": 375,
        "y": 400,
        "wires": [
            [
                "b44c894.e086578"
            ]
        ]
    },
    {
        "id": "3d139ecc.224d12",
        "type": "inject",
        "z": "22034bca12682caf",
        "g": "b8add8525d9bc282",
        "name": "Pylon SOCD",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "Get the Pylon values SOCD",
        "payload": "[115,111,99,100,13]",
        "payloadType": "bin",
        "x": 150,
        "y": 600,
        "wires": [
            [
                "740d3c66.42e8d4"
            ]
        ]
    },
    {
        "id": "7050cec4.747c1",
        "type": "inject",
        "z": "22034bca12682caf",
        "g": "b8add8525d9bc282",
        "name": "Pylon SOH",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "Get the Pylon values SOH",
        "payload": "[115,111,104,13]",
        "payloadType": "bin",
        "x": 150,
        "y": 640,
        "wires": [
            [
                "740d3c66.42e8d4"
            ]
        ]
    },
    {
        "id": "6c0dfdbafe3abfa1",
        "type": "inject",
        "z": "22034bca12682caf",
        "g": "22ced6e8eb2109db",
        "name": "Init Long String",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "Info",
        "payload": "7E 32 30 30 31 34 36 38 32 43 30 30 34 38 35 32 30 46 43 43 33 0D",
        "payloadType": "str",
        "x": 160,
        "y": 220,
        "wires": [
            [
                "d35954d4fc8dbbe7"
            ]
        ]
    },
    {
        "id": "d35954d4fc8dbbe7",
        "type": "serial request",
        "z": "22034bca12682caf",
        "g": "22ced6e8eb2109db",
        "name": "Baterías Inicio",
        "serial": "7c4a0f6c1c870c6f",
        "x": 420,
        "y": 220,
        "wires": [
            [
                "3af3507b8a4028f9"
            ]
        ]
    },
    {
        "id": "3af3507b8a4028f9",
        "type": "debug",
        "z": "22034bca12682caf",
        "g": "22ced6e8eb2109db",
        "name": "Inicio Bateria 115200",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 680,
        "y": 220,
        "wires": []
    },
    {
        "id": "a1c3b6a194d9fa4d",
        "type": "comment",
        "z": "22034bca12682caf",
        "g": "22ced6e8eb2109db",
        "name": "Inicio Comunicación 115200",
        "info": "",
        "x": 420,
        "y": 180,
        "wires": []
    },
    {
        "id": "2353242cd4cb757b",
        "type": "serial-port",
        "serialport": "/dev/ttyUSB1",
        "serialbaud": "115200",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "waitfor": "",
        "dtr": "none",
        "rts": "none",
        "cts": "none",
        "dsr": "none",
        "newline": "$$",
        "bin": "false",
        "out": "char",
        "addchar": "",
        "responsetimeout": "2000"
    },
    {
        "id": "7c4a0f6c1c870c6f",
        "type": "serial-port",
        "serialport": "/dev/ttyUSB1",
        "serialbaud": "1200",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "waitfor": "",
        "dtr": "none",
        "rts": "none",
        "cts": "none",
        "dsr": "none",
        "newline": "$$",
        "bin": "false",
        "out": "char",
        "addchar": "",
        "responsetimeout": "2000"
    }
]

Uploading: Schermata del 2022-11-17 00-12-57.png...
Uploading: Schermata del 2022-11-17 00-13-19.png...

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