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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 248
» Latest member: AlexRegev
» Forum threads: 250
» Forum posts: 1,163

Full Statistics

Latest Threads
netPI stops working (502 ...
Forum: Software
Last Post: Andi
Yesterday, 03:58 PM
» Replies: 3
» Views: 25
Docker issues
Forum: Docker & Containers
Last Post: AlexRegev
June-18th-2019, 06:49 PM
» Replies: 6
» Views: 176
Ready-to-deploy: full fea...
Forum: Docker & Containers
Last Post: AlexRegev
June-18th-2019, 02:45 PM
» Replies: 3
» Views: 48
RS232 extension
Forum: Docker & Containers
Last Post: Patrick@netPI
June-13th-2019, 10:24 AM
» Replies: 3
» Views: 33
docker timing
Forum: Docker & Containers
Last Post: Patrick@netPI
June-13th-2019, 08:57 AM
» Replies: 2
» Views: 32
CAN module released
Forum: News & Announcements
Last Post: Armin@netPI
June-11th-2019, 01:38 PM
» Replies: 0
» Views: 4
Storing data in a (remote...
Forum: Projects & Use Cases & Stories
Last Post: Armin@netPI
June-11th-2019, 11:30 AM
» Replies: 16
» Views: 108
Driver for RS485 (netPI)
Forum: Software
Last Post: Armin@netPI
June-7th-2019, 11:01 PM
» Replies: 4
» Views: 26
[INFO] Support for MTConn...
Forum: Projects & Use Cases & Stories
Last Post: Armin@netPI
June-7th-2019, 03:16 PM
» Replies: 2
» Views: 124
Launching multi-container...
Forum: Docker & Containers
Last Post: Armin@netPI
June-4th-2019, 04:11 PM
» Replies: 0
» Views: 18

 
  Docker issues
Posted by: AlexRegev - June-18th-2019, 03:03 PM - Forum: Docker & Containers - Replies (6)

Hi,

I'm having trouble installing new containers on my NetPI RTE plarform.
I'm getting errors such as 
"Unexpected token < in JSON at positions 1"

and 

"Cannot read property 'replace' of null

It keeps on happening with different containers but sometimes the installation is successful.
I am following your installation instructions exactly. 

Appreciate your help on this.

Alex


In addition i have constant red LED set on the NetPI (Err NS) I'm not sure if this is related but i'm wondering what is causing that.


  Ready-to-deploy: full featured Node-RED container
Posted by: Armin@netPI - June-13th-2019, 08:18 PM - Forum: Docker & Containers - Replies (3)

I am pleased about to announce you today the release of a full featured Node-RED container that includes all ever developed netPI specific Node-RED nodes (until now they were offered in separate containers). Those are

  • netpi-nodered-npix-rs232
  • netpi-nodered-npix-rs485
  • netpi-nodered-npix-io
  • netpi-nodered-npix-ai
  • netpi-nodered-user-leds
  • netpi-nodered-nxpix-leds
  • node-red-contrib-fieldbus (on netPI RTE 3 only)
  • node-red-contrib-fram (on netPI RTE 3 only)
Additionally it includes some community maintained nodes we feel they are a must have on netPI in case Node-RED is the choice. Those are

  • node-red-contrib-generic-ble
  • node-red-contrib-modbus
  • node-red-contrib-opcua
  • node-red-dashboard
As usual we are offering the container ready for your deployment on our netPI repository here.

Have fun with it.


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

Hello,

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

Thanks
BR

Madhumati



Attached Files Thumbnail(s)
   

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

Hi,

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)
   

  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,
Andi



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

  CAN module released
Posted by: Armin@netPI - June-11th-2019, 01:38 PM - Forum: News & Announcements - 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.

Armin


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

Englisch/English

Hello,

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.

Deutsch/German:

Hallo!

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:
"https://forum.hilscher.com/Thread-niot-e-npi3-51-en-RS485-Industrial-Ethernet"
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: Docker & Containers - 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:

Code:
version: "2"
 
services:
 codesys:
   image: hilschernetpi/netpi-codesys-basis:latest
   network_mode: "host"
   restart: always
   devices:
     - "/dev/vcio:/dev/vcio"
   privileged: true
 
 nodered:
   image: nodered/node-red-docker:rpi
   ports:
     - "1880:1880"
   networks:
     - bridgeNetwork
   restart: always
   user: root
 
 influxdb:
   image: influxdb
   restart: always
   ports:
     - "8086:8086"
   networks:
     - bridgeNetwork
   environment:
     - INFLUXDB_DB=db0
     - INFLUXDB_ADMIN_ENABLED=true
     - INFLUXDB_ADMIN_USER=admin
     - INFLUXDB_ADMIN_PASSWORD=12345678
     - INFLUXDB_USER=user
     - INFLUXDB_USER_PASSWORD=12345678
 
 grafana:
   image: grafana/grafana
   restart: always
   ports:
     - "3000:3000"
   networks:
     - bridgeNetwork
 
networks:
   bridgeNetwork:
       driver: bridge
       ipam:
           driver: default
           config:
               - subnet: 172.30.0.0/24
                 gateway: 172.30.0.1
               
The example above configures and starts 4 containers in a single step:
  • CODESYS Soft PLC
  • 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 & Use Cases & Stories - 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:

    Code:
    [ 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:

    Code:
    [data]  
    # 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:

    Code:
    [http]
    # 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).

       
Code:
[{"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":"10.11.5.52","port":"8086","protocol":"http","database":"MyTest","name":"","usetls":false,"tls":""}]


  Storing data in a (remote) database
Posted by: MGharat - May-28th-2019, 07:03 AM - Forum: Projects & Use Cases & Stories - 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?

BR
Madhumati