• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Application developed with commercial Raspberry Pi
#3
You also asked me how to use NPIX-4DI4DO module in a container. All 4 DOs and 4 DIs are connected to standard GPIOs pins of the Raspberry CPU. So you need to know just how to access GPIO in general on netPI/Raspberry Pi.

Here is what you need to know. Since netPI is 100% identical to Raspberr Pi 3B all the chapters found on the Internet like https://raspberrypi-aa.github.io/session2/bash.html also apply for netPI. The example shows how to use GPIOs from command shell and bash scripts. There are also python libraries that can access GPIO signals. Also for Javascript and also for C or C++. So you need to know which language you want to use to access GPIOs.

As next you need to know that accessing hardware specific things on a machine within a container needs special container start parameter so that it can access the hardware. Accessing GPIOs in a container running on netPI needs "privileged" mode enabled and also device "/dev/gpio" mapped.

Thx
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
RE: Application developed with commercial Raspberry Pi - by Armin@netPI - June-10th-2020, 08:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Access to RTC from my own container application tad 1 3,636 March-19th-2021, 02:58 PM
Last Post: Armin@netPI
  netpi raspberry Hochschulstudent 1 2,408 August-12th-2020, 01:50 PM
Last Post: Armin@netPI
  CODESYS - Control for Raspberry Florian 1 3,879 March-18th-2019, 06:16 PM
Last Post: Armin@netPI
  Setup trusted Docker registry on a Raspberry Pi to host netPI containers Armin@netPI 12 12,850 January-31st-2019, 06:47 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)