Raspberry pi4 rpi-gpio.status.not-available using HC-SR04 pisrf library

hi all, i'm trying using pisrf library in nodered to read the signal of ultrasonic sensor HC-SR04.
I set the pin input but following error appears:
rpi-gpio.status.not-available

can someone help me?
many thanks in advance

Do you mean a contrib node? If so then exactly which node have you installed.

thank you I'm using 3.1.8: Maintenance Release

I meant exactly what 'library' are you using? Please provide a link to it.

Which version of node-red-node-pisrf are you using?

Also please stop node red and start it again in command window and copy/paste the startup log here. Copy/paste please, not screenshot.

Also what OS do you have installed on the Pi4?

to find this, open a terminal window on the Pi and enter
lsb_release -c
and paste the response.

starting node red I obtain

10 Apr 07:57:59 - [info] Starting flows
10 Apr 07:57:59 - [info] Started flows
10 Apr 07:57:56 - [info]

Welcome to Node-RED
===================

10 Apr 07:57:56 - [info] Node-RED version: v3.1.8
10 Apr 07:57:56 - [info] Node.js  version: v18.20.1
10 Apr 07:57:56 - [info] Linux 6.6.20+rpt-rpi-v8 arm LE
10 Apr 07:57:57 - [info] Loading palette nodes
10 Apr 07:57:59 - [warn] rpi-srf : rpi-gpio.errors.ignorenode
10 Apr 07:57:59 - [info] Settings file  : /home/pi/.node-red/settings.js
10 Apr 07:57:59 - [info] Context store  : 'default' [module=memory]
10 Apr 07:57:59 - [info] User directory : /home/pi/.node-red
10 Apr 07:57:59 - [info] Projects directory: /home/pi/.node-red/projects
10 Apr 07:57:59 - [warn] No active project : using default flows file
10 Apr 07:57:59 - [info] Flows file     : /home/pi/.node-red/flows.json
10 Apr 07:57:59 - [info] Server now running at http://127.0.0.1:1880/
10 Apr 07:57:59 - [warn]

lsb_release -c output is

No LSB modules are available.
Codename:       bookworm

pisrf version:

node-red-node-pisrf
0.2.0

Are you running the 32 bit or 64 bit version of Bookworm?

If you are running the 64 bit version could you flash another SD card with the 32 bit version and test that?

If you configure a GPIO In node on another pin does it indicate any problems?

the problem persist on all pins

I asked that you tried a standard GPIO In node, in order to determine whether the problem is specific to the node you are using.

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