Thanks for your answers i will try the websocket node.
I have wasted the half day to talk with my Projector over IP but it wont work.
[
{
"id": "65a360cdd86bb4b4",
"type": "inject",
"z": "3994a18a.3ad7be",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 180,
"y": 4240,
"wires": [
[
"eef6e7468e6ceac7",
"feb72608bb4cdc78"
]
]
},
{
"id": "d2b61f98656d82bf",
"type": "function",
"z": "3994a18a.3ad7be",
"name": "EIN",
"func": "// Funktion für Node-RED\nconst buffer1 = Buffer.from([80, 74, 82, 69, 81]);\n\n// Erste Nachricht senden\nconst msg1 = {\n payload: buffer1,\n topic: \"ersterBufferwert\",\n};\n\nnode.send(msg1);\n\n// Wartezeit (hier 1000 Millisekunden, anpassbar)\nsetTimeout(() => {\n // Zweite Nachricht erstellen und senden\n const buffer2 = Buffer.from([33, 137, 1, 80, 87, 49, 10]);\n const msg2 = {\n payload: buffer2,\n topic: \"zweiterBufferwert\",\n };\n node.send(msg2);\n}, 1000);\n\nreturn null; // Rückgabewert für den Function-Node\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 570,
"y": 4240,
"wires": [
[
"ae5576eecdf42d4f",
"feb72608bb4cdc78"
]
]
},
{
"id": "feb72608bb4cdc78",
"type": "tcp request",
"z": "3994a18a.3ad7be",
"name": "",
"server": "192.168.1.23",
"port": "20554",
"out": "time",
"ret": "buffer",
"splitc": "0",
"newline": "",
"trim": false,
"tls": "",
"x": 610,
"y": 4180,
"wires": [
[
"7c5ac21e4e90eb5d"
]
]
},
{
"id": "d29da55d187b0a91",
"type": "comment",
"z": "3994a18a.3ad7be",
"name": "Beamer steuern",
"info": "https://support.jvc.com/consumer/support/documents/DILAremoteControlGuide.pdf",
"x": 180,
"y": 4180,
"wires": []
},
{
"id": "ae5576eecdf42d4f",
"type": "debug",
"z": "3994a18a.3ad7be",
"name": "debug 56",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 740,
"y": 4240,
"wires": []
},
{
"id": "eef6e7468e6ceac7",
"type": "delay",
"z": "3994a18a.3ad7be",
"name": "",
"pauseType": "delay",
"timeout": "1",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 380,
"y": 4240,
"wires": [
[
"d2b61f98656d82bf"
]
]
},
{
"id": "7c5ac21e4e90eb5d",
"type": "debug",
"z": "3994a18a.3ad7be",
"name": "debug 57",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 860,
"y": 4180,
"wires": []
},
{
"id": "9762d3d3b1744554",
"type": "function",
"z": "3994a18a.3ad7be",
"name": "AUS",
"func": "// Funktion für Node-RED\nconst buffer1 = Buffer.from([80, 74, 82, 69, 81]);\n\n// Erste Nachricht senden\nconst msg1 = {\n payload: buffer1,\n topic: \"ersterBufferwert\",\n};\n\nnode.send(msg1);\n\n// Wartezeit (hier 1000 Millisekunden, anpassbar)\nsetTimeout(() => {\n // Zweite Nachricht erstellen und senden\n const buffer2 = Buffer.from([33, 137, 1, 80, 87, 48, 10]);\n const msg2 = {\n payload: buffer2,\n topic: \"zweiterBufferwert\",\n };\n node.send(msg2);\n}, 1000);\n\nreturn null; // Rückgabewert für den Function-Node\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 570,
"y": 4280,
"wires": [
[
"feb72608bb4cdc78",
"f49a4b1bb8aa7eed"
]
]
},
{
"id": "2f14f192f995d4cd",
"type": "inject",
"z": "3994a18a.3ad7be",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 180,
"y": 4280,
"wires": [
[
"1dffe8fc5b0c8fcc",
"feb72608bb4cdc78"
]
]
},
{
"id": "1dffe8fc5b0c8fcc",
"type": "delay",
"z": "3994a18a.3ad7be",
"name": "",
"pauseType": "delay",
"timeout": "1",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 380,
"y": 4280,
"wires": [
[
"9762d3d3b1744554"
]
]
},
{
"id": "f49a4b1bb8aa7eed",
"type": "debug",
"z": "3994a18a.3ad7be",
"name": "debug 58",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 740,
"y": 4280,
"wires": []
}
]
I think that i am very close - but the JVC N5 wont accept my cmd