node-red-node-serialport error "[serialconfig:e2b92f3a20e71366] serial port /dev/ttyUSB0 error: Error: Error: Permission denied, cannot open /dev/ttyUSB0"
I am using Ubuntu.
I looked through previous threads about this problem and none of the solutions in those closed topics work. My very simple flow is:
[
{
"id": "583893684f251417",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env":
},
{
"id": "d534b93de04fb7cf",
"type": "serial in",
"z": "583893684f251417",
"name": "",
"serial": "e2b92f3a20e71366",
"x": 110,
"y": 80,
"wires": [
[
"c5d4981ec4bf344c"
]
]
},
{
"id": "c5d4981ec4bf344c",
"type": "debug",
"z": "583893684f251417",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 460,
"y": 100,
"wires":
},
{
"id": "e2b04f636b69d499",
"type": "serial out",
"z": "583893684f251417",
"name": "",
"serial": "e2b92f3a20e71366",
"x": 450,
"y": 160,
"wires":
},
{
"id": "19aa0165634f8bb6",
"type": "inject",
"z": "583893684f251417",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "!SP1",
"payloadType": "str",
"x": 110,
"y": 160,
"wires": [
[
"e2b04f636b69d499",
"7c670b79f98c3d76"
]
]
},
{
"id": "4fd1653dfa1cea1d",
"type": "inject",
"z": "583893684f251417",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "!SP0",
"payloadType": "str",
"x": 110,
"y": 200,
"wires": [
[
"e2b04f636b69d499",
"7c670b79f98c3d76"
]
]
},
{
"id": "7c670b79f98c3d76",
"type": "debug",
"z": "583893684f251417",
"name": "debug 2",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 440,
"y": 200,
"wires":
},
{
"id": "e2b92f3a20e71366",
"type": "serial-port",
"serialport": "/dev/ttyUSB0",
"serialbaud": "9600",
"databits": "8",
"parity": "none",
"stopbits": "1",
"waitfor": "",
"dtr": "none",
"rts": "none",
"cts": "none",
"dsr": "none",
"newline": "\n",
"bin": "false",
"out": "char",
"addchar": "",
"responsetimeout": "10000"
}
]
I can use other serial monitors to use this port, accept node red. I see multiple closed threads that offer different fixes for this however I can not get any of them to work.
The user node red is running under is "joe"
joe@RoemerAutomation:~$ sudo usermod -a -G tty node-red
[sudo] password for joe:
usermod: user 'node-red' does not exist
joe@RoemerAutomation:~$ ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Oct 11 15:47 /dev/ttyUSB0
joe@RoemerAutomation:~$ groups
joe adm dialout cdrom sudo dip plugdev lpadmin lxd sambashare
Any thoughts?