• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPIX-4DI4DO and NetPi-Nodered container issues
#2
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

Code:
echo 1 > /sys/class/gpio/gpioxx/value
cat /sys/class/gpio/gpioxx/value
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
Code:
ls /sys/class/gpio/
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
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
NPIX-4DI4DO and NetPi-Nodered container issues - by alhammi - November-13th-2020, 02:14 AM
RE: NPIX-4DI4DO and NetPi-Nodered container issues - by Armin@netPI - November-13th-2020, 06:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  NIOT-E-NPIX-RS485 LucioFiam 6 4,608 January-21st-2023, 05:20 PM
Last Post: Armin@netPI
  https certificate issues in new nodered docker image Dipro 1 1,757 May-4th-2022, 05:46 AM
Last Post: Armin@netPI
  HTTP Request using Nodered DSongra 6 3,650 August-20th-2021, 11:44 AM
Last Post: Armin@netPI
  TOSILOCK for CONTAINER COswald 3 2,330 July-13th-2021, 11:32 AM
Last Post: Armin@netPI
  Access to RTC from my own container application tad 1 3,634 March-19th-2021, 02:58 PM
Last Post: Armin@netPI
  [SOLVED] Starting services/commands/scripts at startup of a container Jonas.Sellmann@outlook.de 9 6,439 March-9th-2021, 08:47 AM
Last Post: WalterSchaefer
  OpenVPN container Armin@netPI 0 1,696 January-3rd-2021, 12:13 PM
Last Post: Armin@netPI
  operating Console of a container on netPI connected to Wi-Fi tethering tad 3 2,770 December-3rd-2020, 12:32 PM
Last Post: tad
  NIOT-E-NPIX-4DI4DO with netpi-netx container WalterSchaefer 3 6,911 November-25th-2020, 01:06 PM
Last Post: zen89
  Get host MAC via REST API inside container bschandra 4 3,813 November-16th-2020, 09:26 AM
Last Post: bschandra

Forum Jump:


Users browsing this thread: 1 Guest(s)