Node-red-node-pi-gpio: open collector output

"node-red-node-pi-gpio" can not use the open collector output.
I think it is useful for industrial equipments.

for workaround, I used the exec node and write shell command to implement corrector output.

I wasn't aware the Pi had any open collector outputs. Which are they ? Can you share your workaround ?

Do you mean you want an open collector output on the pi, or do you mean you want to connect an open collector output on another device to a pi input?

For example, using 26 pin as open collector output.
In exec node, write following shell command:


# Enable to use gpio pin
echo 26 > /sys/class/gpio/export
# Setup pin as open collector output
echo in > /sys/class/gpio/gpio26/direction
echo 0 > /sys/class/gpio/gpio26/value

Output Low:

echo out > /sys/class/gpio/gpio26/direction

Output Hi-Z:

echo in > /sys/class/gpio/gpio26/direction

I mean I want an open collector output on the pi.

What I really wanted to do was output from the Raspberry Pi to a 24V open collector input device, but this didn't work...
Perhaps due to the electrical characteristics of the Raspberry Pi, 24V could not be pulled.
I've tried and it seems to work fine with 5V.