Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 269
» Latest member: lmarkure
» Forum threads: 267
» Forum posts: 1,247

Full Statistics

Latest Threads
NPIX-RCAN with node-red-c...
Forum: Projects
Last Post: Patrick@netPI
11 hours ago
» Replies: 0
» Views: 3
UL certified since 2018 -...
Forum: News
Last Post: Armin@netPI
August-21st-2019, 01:21 PM
» Replies: 0
» Views: 2
[SOLVED] Help with fieldb...
Forum: Software
Last Post: Armin@netPI
August-20th-2019, 07:22 AM
» Replies: 5
» Views: 38
Used Pins
Forum: Hardware
Last Post: Armin@netPI
August-17th-2019, 12:24 PM
» Replies: 1
» Views: 9
Default Gateway does not ...
Forum: Software
Last Post: Armin@netPI
August-15th-2019, 02:01 PM
» Replies: 16
» Views: 129
Sealed memory card (no mo...
Forum: Hardware
Last Post: Armin@netPI
August-13th-2019, 10:51 AM
» Replies: 1
» Views: 120
Activating Distributed Cl...
Forum: Hardware
Last Post: Armin@netPI
August-9th-2019, 06:14 AM
» Replies: 4
» Views: 32
BLE pairing problems with...
Forum: Software
Last Post: Armin@netPI
August-8th-2019, 08:51 AM
» Replies: 1
» Views: 14
normal ethernet port usin...
Forum: Software
Last Post: hannes
August-7th-2019, 10:39 AM
» Replies: 4
» Views: 22
[SOLVED] Lost physical fi...
Forum: Hardware
Last Post: Armin@netPI
August-5th-2019, 09:44 PM
» Replies: 10
» Views: 39

  docker timing
Posted by: MGharat - June-13th-2019, 08:02 AM - Forum: Software - Replies (2)


Please find attached my schreenshot..I dont understand from where the timing information is dispalyed in Docker container?
This is not matching with my system



Attached Files Thumbnail(s)

  RS232 extension
Posted by: MGharat - June-12th-2019, 12:55 PM - Forum: Software - Replies (3)


I am trying with RS232 extension module , but the container image is not getting deployed..

How we can know, if the RS232 connector is properly detected during boot by netPI? NO LED glows on extension module...

Attached Files Thumbnail(s)

  [SOLVED] netPI stops working (502 - Bad Gateway)
Posted by: Andi - June-12th-2019, 09:26 AM - Forum: Software - Replies (3)

Hey everyone,

I was facing the problem many times now, that my netPis stoped working. When I tried to reach the edge-gateway-manager than, the Error "502 - Bad Gateway" was shown. I've been using software version 1.1.4/1.1.5/1.1.6

It happened to me, when I ran a mariadb-database-server on the netPi and other containers tried to read/write data from/to it. (I know the database-sd-card-issue with 3000 w/e cycles). How can it happen, that the nginX-Server does not respond anymore? The "act"-LED keeps flashing, though.

I've attached the syslog from right before the freeze and right after it.

Best Regards,

Attached Files
.txt   syslog.txt (Size: 105.84 KB / Downloads: 0)

  [INFO] CAN module released
Posted by: Armin@netPI - June-11th-2019, 01:38 PM - Forum: News - No Replies

I am very pleased to announce the availability of the CAN extension module NIOT-E-NPIX-RCAN for netPI RTE 3 and CORE 3 today. Order it through Hilscher directly or our Web Shop (update coming soon). The part numer is #1322.063.

The module USPs are

·         CAN 2.0 A/B compatible, ISO 11898-1:2015
·         1MBaud max. transmission rate
·         Usage via SocketCAN software interface
·         With jumper for CAN bus termination
·         Kernel driver capable of accommodating highest bus loads

As usual we have a container ready to use for you at https://hub.docker.com/r/hilschernetpi/n...-npix-rcan. It shows how to turn the native CAN module into a CANopen node using an open source CANopen node stack.


Question Driver for RS485 (netPI)
Posted by: ArteLukas - June-5th-2019, 07:54 AM - Forum: Software - Replies (5)



We are currently testing the netPI (NIOT-E-NPI3-51-EN-RE) and the expansion module NIOT-E-NPIX-RS485. After installing of Raspbian and the terminal program(Minicom), we encountered a problem when it comes to communication using the RS485 expansion module.

You have to switch a GPIO-Pin to either send or receive via the RS485 interface, as mentioned in the Thread: "https://forum.hilscher.com/Thread-niot-e-npi3-51-en-RS485-Industrial-Ethernet" by Armin@netPI from April-12th-2019, 07:19 PM

On this site "https://www.netiot.shop/epages/es767660.sf/de_DE/?ObjectPath=/Shops/es767660/Products/1322.011" the product description states that "full-duplex oepration is possible".

According to the block circuit diagramm on page 21 of the hardware description "https://www.netiot.com/fileadmin/user_upload/netIOT/netMAKER/netPI/documents/netPI_Erweiterungsmodule_HW_04_DE.pdf" full-duplex is not possible, because there are only two wires. Even half-duplex is difficult to achieve because it requires its own switching driver which manages whether you want to send or recieve using the RS485 module. And I did not find such a driver after some research.

Now here is my question: Is there a such a driver for the serial port to work with standard programs? If there is none, the system would not be usable for us in its current state.



Wir testen zurzeit den netPI (NIOT-E-NPI3-51-EN-RE) und dem Erweiterungsmodul NIOT-E-NPIX-RS485, nach Installation von Raspbian und eines Terminalprogramms(Minicom) sind wir auf ein Problem gestoßen, wenn es zum Thema Kommunikation kommt.
Man muss einen GPIO-Pin umschalten, um über die RS485-Schnittstelle entweder Senden oder Empfangen zu können, laut Forumthread:
Eintrag von "Armin@netPI" am April-12th-2019, 07:19 PM
Auf dieser Seite "https://www.netiot.shop/epages/es767660.sf/de_DE/?ObjectPath=/Shops/es767660/Products/1322.011" in der Produktbeschreibung ist zu lesen, dass "Vollduplex-Betrieb möglich" sei.
Laut Blockschaltbild auf Seite 21 der Hardware-Beschreibung "https://www.netiot.com/fileadmin/user_upload/netIOT/netMAKER/netPI/documents/netPI_Erweiterungsmodule_HW_04_DE.pdf" ist Voll-Duplex nicht möglich da es nur zwei Drähte gibt. Auch Halb-Duplex ist schwer realisierbar, da dafür eine eigene Umschaltvorrichtung/ein eigener Treiber nötig ist, die/der zeitgesteuert immer hin und her schaltet oder die die Signale räumlich voneinander trennt. Und so eine Umschaltvorrichtung/so einen Treiber habe ich nach einiger Recherche nicht gefunden. 
Nun meine Frage: Gibt es einen Treiber, damit die serielle Schnittstelle mit "standard" Programmen funktioniert. Ansonsten wäre das System für uns im derzeitigen Zustand nicht benutzbar.

  Launching multi-containers at a time - Docker stacks
Posted by: Armin@netPI - June-4th-2019, 04:11 PM - Forum: Software - No Replies

The official  Docker Compose definition is: "A tool for defining and running multi-container Docker applications". The good news is: Docker composing is featured by netPI as well using the Docker stacks feature that doesn't need to have the docker-compose function installed. Lean more here about the difference between both.

For that use netPI's Docker web GUI portainer.io and its menu item "Stacks" to compose. Click "+Add stack" and check the "Web editor" feature and copy and paste the content of your compose YAML file into the web editor window. Finally click "Deploy the stack".

Since Docker compose often starts many containers at a time you have to patiently wait for downloading the container images the first time you use this function.

Here is how a typical compose file content looks like:

version: "2"
   image: hilschernetpi/netpi-codesys-basis:latest
   network_mode: "host"
   restart: always
     - "/dev/vcio:/dev/vcio"
   privileged: true
   image: nodered/node-red-docker:rpi
     - "1880:1880"
     - bridgeNetwork
   restart: always
   user: root
   image: influxdb
   restart: always
     - "8086:8086"
     - bridgeNetwork
     - INFLUXDB_DB=db0
     - INFLUXDB_USER=user
   image: grafana/grafana
   restart: always
     - "3000:3000"
     - bridgeNetwork
       driver: bridge
           driver: default
               - subnet:
The example above configures and starts 4 containers in a single step:
  • Grafana graphical tool
  • Node-RED IoT tool
  • InfluxDB database
netPI  today supports the compose file reference version 2.x. Find here the compose file reference. The version is usually the first statement in a compose file.

Information [INFO] - InfluxDB - Time series database under Windows
Posted by: Patrick@netPI - May-28th-2019, 02:10 PM - Forum: Projects - No Replies

Influx Data Time Series DB - InfluxDB

Installing InfluxDB on Windows

  1. Download InfluxDB runtime on the downloads page
    Open the link and cklick on the v1.*.* InfluxDB download button.


    In my case i use the following folder as my root directory: "c:\Program Files\InfluxDB"

  2. Extract the downloaded ZIP file
    There are no installers, all what you need is inside the ZIP file.
    Create a folder called "executables" and extract the downloaded "influx.1.*.*_windows_amd64.zip" Zfile into the folder.

  3. Configure Influx DB
    We need to edit the "influxdb.conf" before we can execute InfluxDB.
    Create a folder called "data".
    This folder contains all the data that needs to be backed up. It will make upgading and backups easier.

    Change the META dir
    Open the file "influxdb.conf" and locate the tag "[meta]".
    Chage the "meta" directory:

    [ meta ]
    # Where the metadata/raft database is stored
    dir = "C:/Program Files/InfluxDB/data/meta"

    Change the DATA + WAL dir
    Locate the tag "[data]" and change the directories:

    # The directory where the TSM storage engine stores TSM files.  
    dir = "C:/Program Files/InfluxDB/data/data"
    wal-dir = "C:/Program Files/InfluxDB/data/wal"[*]

    Enable HTTP endpoint
    Locate the tag "[data]" and change the directories:

    # Determines whether HTTP endpoint is enabled.  
    enabled = true

  4. First run - Test the configuration

    Run the "influxd.exe" from the installation directory.

    If there are no errors in the started console, you can call a browser and navigate to "http://localhost:8086/query".

    All is fine, if the broser shows this message:
    "{"error":"missing required parameter \"q\""}"

    Now the InfluxDB is running on your Windows PC.
    Here is an example Node-RED flow to create a database, delete, write value and read a value (consider to adapt the ip address settings to your local setup).

[{"id":"e1c52c5c.35463","type":"influxdb in","z":"107486a2.b32cb9","influxdb":"e68b7284.a1c8e","name":"CREATE DATABASE \"MyTest\"","query":"CREATE DATABASE MyTest","rawOutput":false,"precision":"","retentionPolicy":"","x":470,"y":600,"wires":[["e684ccca.27276"]]},{"id":"28c1de74.db3b62","type":"inject","z":"107486a2.b32cb9","name":"trigger","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":600,"wires":[["e1c52c5c.35463"]]},{"id":"e684ccca.27276","type":"debug","z":"107486a2.b32cb9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":690,"y":600,"wires":[]},{"id":"87f33759.13b298","type":"influxdb in","z":"107486a2.b32cb9","influxdb":"e68b7284.a1c8e","name":"DROP DATABASE \"MyTest\"","query":"DROP DATABASE MyTest","rawOutput":false,"precision":"","retentionPolicy":"","x":460,"y":700,"wires":[["ebc6df4c.c19d8"]]},{"id":"ebc6df4c.c19d8","type":"debug","z":"107486a2.b32cb9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":690,"y":700,"wires":[]},{"id":"65e4d10d.7aaf4","type":"influxdb in","z":"107486a2.b32cb9","influxdb":"e68b7284.a1c8e","name":"READ DATABASE","query":"SELECT value FROM myValue WHERE time > now() - 1h limit 1000;","rawOutput":false,"precision":"","retentionPolicy":"","x":430,"y":980,"wires":[["28aaeafe.920e76"]]},{"id":"28aaeafe.920e76","type":"debug","z":"107486a2.b32cb9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":690,"y":980,"wires":[]},{"id":"3427ec2d.332094","type":"inject","z":"107486a2.b32cb9","name":"trigger","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":700,"wires":[["87f33759.13b298"]]},{"id":"dfae07c1.b5a168","type":"inject","z":"107486a2.b32cb9","name":"write 0","topic":"","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":800,"wires":[["71893c52.24f9f4"]]},{"id":"bcf61aaf.421348","type":"inject","z":"107486a2.b32cb9","name":"read from database","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":980,"wires":[["65e4d10d.7aaf4"]]},{"id":"6c43917c.d18bb","type":"comment","z":"107486a2.b32cb9","name":"Create a database","info":"","x":190,"y":560,"wires":[]},{"id":"e3d1d544.7e2388","type":"comment","z":"107486a2.b32cb9","name":"Delete a database","info":"","x":190,"y":660,"wires":[]},{"id":"b8e862e1.14967","type":"comment","z":"107486a2.b32cb9","name":"Write a value","info":"","x":170,"y":760,"wires":[]},{"id":"5795be2a.21b6d","type":"inject","z":"107486a2.b32cb9","name":"write 50","topic":"","payload":"50","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":840,"wires":[["71893c52.24f9f4"]]},{"id":"77ba500f.3c23b","type":"inject","z":"107486a2.b32cb9","name":"write 99","topic":"","payload":"99","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":880,"wires":[["71893c52.24f9f4"]]},{"id":"594532ee.6fec6c","type":"comment","z":"107486a2.b32cb9","name":"Read from database (return last 5 min)","info":"","x":250,"y":940,"wires":[]},{"id":"71893c52.24f9f4","type":"influxdb out","z":"107486a2.b32cb9","influxdb":"e68b7284.a1c8e","name":"Write value","measurement":"myValue","precision":"","retentionPolicy":"","x":410,"y":840,"wires":[]},{"id":"e68b7284.a1c8e","type":"influxdb","z":"","hostname":"","port":"8086","protocol":"http","database":"MyTest","name":"","usetls":false,"tls":""}]

  [SOLVED] Storing data on a (remote) database
Posted by: MGharat - May-28th-2019, 07:03 AM - Forum: Projects - Replies (16)

Hi Armin,

One of our customer wants to read data from AB PLC ( Ethernet/IP ) & store/log in to netPI & then want to export the database to a server...How we can do this with netPI? Can we use SQLite node with netPI?


  [SOLVED] Slow network connection
Posted by: Andi - May-21st-2019, 12:44 PM - Forum: Software - Replies (5)

Hey everyone,

I was setting up a mariadb-server on my netPi (knowing that the sd-card is not made for long-term/high-traffic database use). When I created the database and imported data, the connection felt quite slow.

So I made a comparisment with a standard raspberry pi and the netPi, using the same docker image and mysql-script. On my raspberry Pi, the data-import took ~1 minute, on the netPi between 15~18 minutes. I was using the following setup:

Image: linuxserver/mariadb:arm32v7-latest
netPi: NIOT-E-NPI3-EN version
Raspberry Pi: Raspberry Pi 3 Model B
Database-Client: HeidiSQL/Workbench to import a .sql-script

I already had the feeling before that it didn't work as fast as on a standard raspbi, but never tested it.
Is this a bug, or is it a system-dependent issue?

Best Regards,

  [SOLVED] netPI with Raspbian Desktop
Posted by: firefly - May-16th-2019, 02:48 AM - Forum: Software - Replies (7)


Good day,I would like ask whether netPI support raspbian desktop instead of the ssh and user pi. I have tried 3 containers : [hilschernetpi/netpi-raspbian] [hilschernetpi/netpi-desktop-hdmi] and [hilschernetpi/netpi-bluetooth] .Previously,I have my project all working fine with raspberry pi B+ with hilscher NXHAT52-RTE but since it is not in industry grade I need all of them working with netPI now. If not, is netPI-desktop-hdmi working same as raspbian desktop such as I can have bluez, python and nethat cpp running simultaneously?

Thank you and have a nice day!

Best regards,