USB serial port Error: Inappropriate ioctl for device setting custom baud rate of 115200

Hello together,

when I try to setup my USB serial port device with the serial node I receive following error:
"[serialconfig:f60377cd5b554771] Serieller Port /dev/bus/usb/001/005 FEHLER: Error: Error: Inappropriate ioctl for device setting custom baud rate of 115200"

The lsusb output is:
Bus 001 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT 232 Serial (UART) IC

Any ideas what is wrong here ?

Welcome to the forum @DirkB

Show us how you have configured the serial node please.
Also, what OS are you running on?

Hello Colin,

here the serial node:
[
{
"id": "c0246fe75db28af3",
"type": "serial in",
"z": "994738dfd61d62cb",
"name": "USBport1-6",
"serial": "f60377cd5b554771",
"x": 330,
"y": 140,
"wires": [

]
},
{
"id": "f60377cd5b554771",
"type": "serial-port",
"serialport": "/dev/bus/usb/001/006",
"serialbaud": "115200",
"databits": "8",
"parity": "none",
"stopbits": "1",
"waitfor": "63",
"dtr": "none",
"rts": "none",
"cts": "none",
"dsr": "none",
"newline": "100",
"bin": "false",
"out": "interbyte",
"addchar": "",
"responsetimeout": "10000"
}
]

My OS is raspberry PI 4. node-red version is:
Starting as a systemd service.
21 Feb 12:38:40 - [info]
Willkommen bei Node-RED

21 Feb 12:38:40 - [info] Node-RED Version: v3.0.2
21 Feb 12:38:40 - [info] Node.js Version: v16.19.1
21 Feb 12:38:40 - [info] Linux 5.15.84-v8+ arm64 LE
21 Feb 12:38:41 - [info] Paletten-Nodes werden geladen
21 Feb 12:38:43 - [info] Einstellungsdatei: /home/pi/.node-red/settings.js
21 Feb 12:38:43 - [info] Kontextspeicher: default [module=memory]
21 Feb 12:38:43 - [info] Benutzerverzeichnis: /home/pi/.node-red
21 Feb 12:38:43 - [warn] Projekte deaktiviert: editorTheme.projects.enabled=false
21 Feb 12:38:43 - [info] Flow-Datei: /home/pi/.node-red/flows.json
21 Feb 12:38:43 - [warn] Verschlüsselte Credentials nicht gefunden
21 Feb 12:38:43 - [info] Server wird jetzt auf http://127.0.0.1:1880/ ausgeführt
21 Feb 12:38:43 - [info] Flows werden gestartet
21 Feb 12:38:43 - [info] Flows sind gestartet
21 Feb 12:38:43 - [error] [serialconfig:f60377cd5b554771] Serieller Port /dev/bus/usb/001/006 FEHLER: Error: Error: Inappropriate ioctl for device setting custom baud rate of 115200

I hope that helps.

Many greetings
Dirk

I don't know whether that should work or not, it is certainly not the usual way of doing it. Normally one would use something like /dev/ttyUSB0 but the best way is usually to use /dev/serial/by-id/<device id> where you can find the id by running ls /dev/serial/by-id. That is better than using ttyUSB0 as you might find that suddenly it changes to ttyUSB1. So for example, for my serial port dongle is
/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0.

Hello Colin,

Thank you very much!
It is working fine with /dev/serial/by-id/.....

"that was a hard nut for me that I would never have cracked alone" (direcly translated german saying)

Many greetings
Dirk

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