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

**URL:** <https://discourse.nodered.org/t/usb-serial-port-error-inappropriate-ioctl-for-device-setting-custom-baud-rate-of-115200/75508>\
**Category:** Hardware\
**Created:** [21 February 2023 10:50 UTC](https://discourse.nodered.org/t/usb-serial-port-error-inappropriate-ioctl-for-device-setting-custom-baud-rate-of-115200/75508 "2023-02-21T10:50:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DirkB](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dirkb/32/76546_2.png) [@DirkB](https://discourse.nodered.org/u/DirkB)\
**Post date:** [21 February 2023 10:50 UTC](https://discourse.nodered.org/t/usb-serial-port-error-inappropriate-ioctl-for-device-setting-custom-baud-rate-of-115200/75508/1 "2023-02-21T10:50:18Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 February 2023 11:33 UTC](https://discourse.nodered.org/t/usb-serial-port-error-inappropriate-ioctl-for-device-setting-custom-baud-rate-of-115200/75508/2 "2023-02-21T11:33:45Z")

</div>

Welcome to the forum @DirkB

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

---

<div class="post-metadata">

**Author:** ![DirkB](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dirkb/32/76546_2.png) [@DirkB](https://discourse.nodered.org/u/DirkB)\
**Post date:** [21 February 2023 11:41 UTC](https://discourse.nodered.org/t/usb-serial-port-error-inappropriate-ioctl-for-device-setting-custom-baud-rate-of-115200/75508/3 "2023-02-21T11:41:20Z")

</div>

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/](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

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 February 2023 11:55 UTC](https://discourse.nodered.org/t/usb-serial-port-error-inappropriate-ioctl-for-device-setting-custom-baud-rate-of-115200/75508/4 "2023-02-21T11:55:58Z")

</div>

> [@DirkB](#):
>
> "serialport": "/dev/bus/usb/001/006",

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`.

---

<div class="post-metadata">

**Author:** ![DirkB](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dirkb/32/76546_2.png) [@DirkB](https://discourse.nodered.org/u/DirkB)\
**Post date:** [21 February 2023 12:14 UTC](https://discourse.nodered.org/t/usb-serial-port-error-inappropriate-ioctl-for-device-setting-custom-baud-rate-of-115200/75508/5 "2023-02-21T12:14:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [7 March 2023 12:14 UTC](https://discourse.nodered.org/t/usb-serial-port-error-inappropriate-ioctl-for-device-setting-custom-baud-rate-of-115200/75508/6 "2023-03-07T12:14:38Z")

</div>

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