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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 590
» Latest member: hussein57728
» Forum threads: 555
» Forum posts: 2,851

Full Statistics

Latest Threads
netFIELD Compact Gateway ...
Forum: Hardware
Last Post: DSongra
February-27th-2023, 08:38 AM
» Replies: 10
» Views: 3,283
Forum is becoming read-on...
Forum: News
Last Post: Armin@netPI
February-19th-2023, 05:04 PM
» Replies: 0
» Views: 1,244
NIOT-E-NPIX-RS485
Forum: Software
Last Post: Armin@netPI
January-21st-2023, 05:20 PM
» Replies: 6
» Views: 4,457
netPI device series is di...
Forum: News
Last Post: Armin@netPI
January-21st-2023, 08:34 AM
» Replies: 0
» Views: 857
Forum "netHAT" is being c...
Forum: News
Last Post: Armin@netPI
December-21st-2022, 01:17 PM
» Replies: 0
» Views: 915
netFIELD Compact Gateway ...
Forum: Software
Last Post: Armin@netPI
December-20th-2022, 10:34 AM
» Replies: 1
» Views: 3,317
netPI not found in networ...
Forum: Hardware
Last Post: Armin@netPI
December-13th-2022, 11:40 PM
» Replies: 1
» Views: 3,465
Proxy Settings
Forum: Software
Last Post: Armin@netPI
December-5th-2022, 06:21 PM
» Replies: 9
» Views: 7,101
Node Red configuration
Forum: Software
Last Post: Armin@netPI
November-30th-2022, 05:14 PM
» Replies: 3
» Views: 1,777
443 port issue
Forum: Software
Last Post: LucioFiam
November-21st-2022, 05:39 PM
» Replies: 5
» Views: 2,291

 
  [SOLVED] Pull Docker Image
Posted by: a.w.d.m. - July-8th-2019, 09:31 AM - Forum: Software - Replies (8)

When I try to pull any docker image, the only thing that happens is the name of the image and the registry disappear and nothing gets pulled.


  [SOLVED] Use larger SD-Card with original Hilscher-Image
Posted by: Andi - July-5th-2019, 10:27 AM - Forum: Hardware - Replies (9)

Hello everyone,

since Revision #2 it is possible to change the micro-sd-card of the netPi. Therefore it is possible to use larger micro-sd-cards as the original 8GB-one. Since I like the original Hilscher-Image with its security features quite a lot, I would not want to miss it on a larger sd-card.

Therefore I have backuped the original Image with win32-Disk-Imager, which worked well. I was also able to flash this image to the new card using balenaEtcher. When I inserted the new card into the netPi, everything worked well. The only problem is that I forgot to extend the filesystem/logical Volume on the new card to be able to use the additional space. So my 16 GB-card still worked like a 8 GB-one. After googeling, try and error, I actually managed to extend the Logical Volume which is used by the netPi for storing our data, with the underlying volume group and physical volume. After that I was able to use the complete 16-GBs of the new card on this netPi.

I thought "hey, now I know what to do" and wrote a quick manual of how to do the extension. Trying this at the second netPi, I wasn't able to do it again. After hours of trying, I surrendered and found a kind of a "hack" which helped me out. I flashed the Image of netPi(1), which I was able to sucessfully extend to 16GBs, to the netPI(2). After that of course the netPI(2) did not boot, since the Hardware-ID of the netPi did not match the hardware-ID written to the image by Hilscher. But I managed to change the hardware-ID wirtten to the Image by coping one Partition of the original netPi(2)'s Image to the 16-GB Image of netPI(1). Now I am able to reproduce 16GB netPi Images, but as you might guess, I can't handle e.g. 32GB cards now  Blush

To cut a long story short.....Would anyone who is trying to do the same/has done the same and is more into filesystems and logical volumes than me be willing to share his way of doing it with me (and everyone else) in form of a quick manual? Or would one of the Support-Team be that kind? Rolleyes 


Thanks in advance,
Andi


  [SOLVED] Docker issues
Posted by: AlexRegev - June-18th-2019, 03:03 PM - Forum: Software - Replies (7)

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: Software - Replies (5)

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: Software - 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: Software - 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)
   

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



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.

Armin


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

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: Software - No Replies

"A tool for defining and running multi-container Docker applications", says the Docker Compose definition and yes it is indeed a second tool named "docker-compose" that needs to be installed next to "docker" tool to participate from deploying multiple containers at a time. On native machines it is no problem to post install docker-compose but on netPI it is not there.

But the good thing is deploying a stack of applications at a time is supported by netPI as well using the "stacks" feature of standard Docker. Lean more here about the difference between stacking and composing.

To use the stacks function on netPI open the Docker web GUI portainer.io and then click the menu item "Stacks". Click "+Add stack" and check the "Web editor" feature in the middle and copy and paste the content of your compose YAML file into the web editor frame. 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:1.0.1
   network_mode: "host"
   restart: always
   devices:
     - "/dev/vcio:/dev/vcio"
   privileged: true
 
 nodered:
   image: nodered/node-red-docker:0.20.8-rpi
   ports:
     - "1880:1880"
   networks:
     - bridgeNetwork
   restart: always
   user: root
 
 influxdb:
   image: influxdb:1.7.8
   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:5.4.3
   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 at the moment 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.