openwrt-node-packages icon indicating copy to clipboard operation
openwrt-node-packages copied to clipboard

Node-Red on Raspberry pi 4 GPIO & Serial Port Issue

Open Quicksilverzone opened this issue 2 years ago • 3 comments

Hi,

I prepared openwrt image including node packets in these repo. But I cannot control GPIO and serial ports over Node-Red, it gives error on debug windows when I deploy the script on Node-Red with the gpio or serial node. Is there any other point I need to change or configure I dont know. I am using raspberry pi CM4. I am a little bit newbie on openwrt platform. I'll be grateful for any help. Thank you.

Image_1

Quicksilverzone avatar Feb 26 '24 09:02 Quicksilverzone

Hi @Quicksilverzone

Sorry, but I don't know much about it and this may give you a hint. https://nodered.org/docs/faq/interacting-with-pi-gpio

~~https://www.raspberrypi.com/documentation/computers/configuration.html#serial~~

~~https://www.raspberrypi.com/documentation/computers/configuration.html#change-the-default-pin-configuration~~ Oh, the OS is OpenWrt, not raspberry os. I am sorry.

nxhack avatar Feb 26 '24 12:02 nxhack

I saw the error message in the image you attached. Try running this on the target machine.

npm install raspi-io

https://www.npmjs.com/package/raspi-io

nxhack avatar Feb 26 '24 12:02 nxhack

https://openwrt.org/docs/techref/hardware/port.gpio

https://openwrt.org/docs/techref/hardware/port.serial

nxhack avatar Feb 26 '24 13:02 nxhack