November-13th-2020, 06:15 AM
(This post was last modified: November-13th-2020, 06:15 AM by Armin@netPI.)
Hello Alhammi,
my first question to customers faced with HW problems is always: are you using netPI's original SD card it was delivered with or are you using any own SD card with own OS like Raspian OS?
Then I have to say that every two to three month I am updating the Node-RED container to the latest Node-RED version. Last change I made last week and updated the Node-RED in the container to version 1.2.2. I cannot exclude at this time, that maybe the new Node-RED version is the root cause of your problem without trying out NPIX-DIO myself with it.
In order to make tests without Node-RED you can use the console function of the portainer Docker Web-UI in the containers overview list
Once you are in the console you can use the standard Linux "echo" or "cat" commands to read and write to the GPIOs wihtout using Node-RED
as described here
https://sites.google.com/site/semilleroa...rials/gpio
Since the Node-RED was started an export of the GPIO might not be necessary since Node-RED did that already. So a
should list you already the configured GPIOs.
The manual of the NPIX modules you find located here https://www.netiot.com/netpi/industrial-raspberry-pi-3/ to get out which pin is connected to which GPIO.
So first try the manual way.
Thx
Armin
my first question to customers faced with HW problems is always: are you using netPI's original SD card it was delivered with or are you using any own SD card with own OS like Raspian OS?
Then I have to say that every two to three month I am updating the Node-RED container to the latest Node-RED version. Last change I made last week and updated the Node-RED in the container to version 1.2.2. I cannot exclude at this time, that maybe the new Node-RED version is the root cause of your problem without trying out NPIX-DIO myself with it.
In order to make tests without Node-RED you can use the console function of the portainer Docker Web-UI in the containers overview list
Once you are in the console you can use the standard Linux "echo" or "cat" commands to read and write to the GPIOs wihtout using Node-RED
Code:
echo 1 > /sys/class/gpio/gpioxx/value
cat /sys/class/gpio/gpioxx/value
https://sites.google.com/site/semilleroa...rials/gpio
Since the Node-RED was started an export of the GPIO might not be necessary since Node-RED did that already. So a
Code:
ls /sys/class/gpio/
The manual of the NPIX modules you find located here https://www.netiot.com/netpi/industrial-raspberry-pi-3/ to get out which pin is connected to which GPIO.
So first try the manual way.
Thx
Armin
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)