I have a node red installed om a RPI3. I'a new to node red so maybe this is easy...
I try to use node-red-node-serialport to send serial request. When i hit deploy i get this debug message: "serial port /dev/ttyS0 error: Error: Error: Permission denied, cannot open /dev/ttyS0"
And when i try to run my flow the serial request node i get this: {"_msgid":"405525b5.e8422c","topic":"","request_payload":"A100","request_msgid":"405525b5.e8422c","port":"/dev/ttyS0","status":"ERR_TIMEOUT"}
My flow:
[{"id":"753a664c.ef994","type":"inject","z":"323daace.0f9796","name":"","topic":"","payload":"A100","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":310,"y":480,"wires":[["5ae185b8.cf4aa4"]]},{"id":"5ae185b8.cf4aa4","type":"serial request","z":"323daace.0f9796","name":"","serial":"a94ce253.ff6bd","x":440,"y":480,"wires":[["9b09df4b.b7662"]]},{"id":"9b09df4b.b7662","type":"debug","z":"323daace.0f9796","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":570,"y":480,"wires":[]},{"id":"a94ce253.ff6bd","type":"serial-port","z":"","serialport":"/dev/ttyS0","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1","newline":"\\n","bin":"false","out":"char","addchar":false,"responsetimeout":"10000"}]
This python script works, so i know serial works in my pi:
`#!/user/bin/python
import serial
ser = serial.Serial('/dev/ttyS0',9600)
while True:
ser.write('A100')`