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,308
Forum is becoming read-on...
Forum: News
Last Post: Armin@netPI
February-19th-2023, 05:04 PM
» Replies: 0
» Views: 1,248
NIOT-E-NPIX-RS485
Forum: Software
Last Post: Armin@netPI
January-21st-2023, 05:20 PM
» Replies: 6
» Views: 4,477
netPI device series is di...
Forum: News
Last Post: Armin@netPI
January-21st-2023, 08:34 AM
» Replies: 0
» Views: 859
Forum "netHAT" is being c...
Forum: News
Last Post: Armin@netPI
December-21st-2022, 01:17 PM
» Replies: 0
» Views: 917
netFIELD Compact Gateway ...
Forum: Software
Last Post: Armin@netPI
December-20th-2022, 10:34 AM
» Replies: 1
» Views: 3,326
netPI not found in networ...
Forum: Hardware
Last Post: Armin@netPI
December-13th-2022, 11:40 PM
» Replies: 1
» Views: 3,473
Proxy Settings
Forum: Software
Last Post: Armin@netPI
December-5th-2022, 06:21 PM
» Replies: 9
» Views: 7,131
Node Red configuration
Forum: Software
Last Post: Armin@netPI
November-30th-2022, 05:14 PM
» Replies: 3
» Views: 1,784
443 port issue
Forum: Software
Last Post: LucioFiam
November-21st-2022, 05:39 PM
» Replies: 5
» Views: 2,296

 
  [SOLVED] Monitoring as EtherCAT Slave
Posted by: PRingelberg - September-12th-2018, 10:01 AM - Forum: Projects - Replies (8)

Hi, for a research project I would love to find a way of running an EtherCAT Slave where the Cifx0 Interface is detected (like in the Ethernet-Lan package). With an detected interface, it's possible to capture the communication of a running PLC. The goal is to analyse the traffic and provide it to an OPC server, for IoT applications.

I have already tried to combine the Programming-examples packgage with the Ethernet-Lan package, because the first one provides me an EtherCAT slave, and the second one creates the cifx0 interface with its cifx0deamon skript. The problem that occured was that the cifx0deamon skript did not work with the EtherCAT firmware package installed.
A different approach was combining the Codesys package with the Ethernet-Lan package, with the result of having a capturable interface, but CODESYS does not support creating a EtherCAT slave. I was able to capture the PLC communication with that setup, using wireshark.

Do you think, there is a possible way to create an EtherCAT slave that can capture the network traffic of the cifx0 interface in this way?

Thank you an best regards
Philipp


  [SOLVED] How to update firmware
Posted by: philippbruhin.ch - September-10th-2018, 10:53 AM - Forum: Software - Replies (12)

How can I check if I have latest firmware installed on my device? In the control panel area on menu “System -> Info Center” I can see that V1.1.0.0 is installed. See screenshot:

[Image: m3zXW5S.png]

Is there a website where I can check the latest firmware version? I tried GitHub but without success:
https://github.com/Hilscher?utf8=%E2%9C%...q=firmware

And if there is a newer version available, how can I update? Respectively is there a website that describes the update procedure? There is no description in https://www.netiot.com/fileadmin/user_up..._01_EN.pdf regarding this topic.

Many thanks for your feedback in advance!


  Accessing netPI web UI with REST API
Posted by: Armin@netPI - September-5th-2018, 03:45 PM - Forum: Software - Replies (14)

You all know the tile Control Panel in netPI's web GUI you click on to make a basic setup.

But what is if you want to configure those settings from remote over Ethernet instead of using mouse and keyboard? Or even better from a container running on netPI ?

All you need to know is how to access the Control Panel's HTTP RESTful API. Here is the example if you want to do it from a container:

STEP 1: Load the Raspbian container from here onto netPI.

Choosing the network mode host or bridge decides on the destination IP address you have to address later

For network mode host (container shares TCP/IP stack of host) use the "localhost" IP address 127.0.0.1 as <IP address>


For network mode bridge (container has its own TCP/IP stack, bridge by a bridge) use the "docker0" bridge default IP address 172.17.0.1 as <IP address>

STEP 2: Login to this container with a terminal over SSH as described in the container's documentation.

STEP 3: Install the http CLI command (or any other command like curl supporting http requests) in the container with

$ apt-get update && apt-get install httpie

STEP 4: Login

Call

$ http --verify=no --json POST "https://<IP address>/login" username=admin password=<your admin password>

and you get a response back like this

HTTP/1.1 302 Found

Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: X-Requested-With, X-HTTP-Method-Override, Content-Type, Accept
Access-Control-Allow-Methods: GET,POST,DELETE
Access-Control-Allow-Origin: undefined
Connection: keep-alive
Content-Length: 47
Content-Type: text/plain; charset=utf-8
Date: Wed, 05 Sep 2018 12:50:52 GMT
Location: /content/?page=infocenter
Server: nginx/1.12.1
Vary: Accept, Accept-Encoding
X-Powered-By: Express
set-cookie: sessionGWManager=s%3A7GsIC0es7HyUv1LfwhZStCPlsvqzVYao.Jk6c4PGDGnJeRW9yTKZDeV6JPQqjYF%2FyIa0P%2FnyJ1LU; Path=/; HttpOnly

Found. Redirecting to /content/?page=infocenter

The most important part of the response is the value set-cookie that has to be used for all subsequent http commands as session token.

STEP 5: Get Info Center HTML page

Call

$ http --verify=no --json GET  "https://<IP address>/content/?page=infocenter" 'Cookie:sessionGWManager=s%3A7GsIC0es7HyUv1LfwhZStCPlsvqzVYao.Jk6c4PGDGnJeRW9yTKZDeV6JPQqjYF%2FyIa0P%2FnyJ1LU'

and you get a response back like this

HTTP/1.1 200 OK

Accept-Ranges: bytes
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: X-Requested-With, X-HTTP-Method-Override, Content-Type, Accept
Access-Control-Allow-Methods: GET,POST,DELETE
Access-Control-Allow-Origin: undefined
Cache-Control: public, max-age=0
Connection: keep-alive
Content-Encoding: gzip
Content-Type: text/html; charset=UTF-8
Date: Wed, 05 Sep 2018 14:36:11 GMT
ETag: W/"72d-1653d845b68"
Last-Modified: Wed, 15 Aug 2018 12:16:49 GMT
Server: nginx/1.12.1
Transfer-Encoding: chunked
Vary: Accept-Encoding
X-Powered-By: Express

<!-- Copyright © 2016 Hilscher Gesellschaft fuer Systemautomation mbH See Hilscher_Source_Code_License.txt -->
<!DOCTYPE HTML>
<html>
<head>
  <title>Control Panel</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta http-equiv='Content-Type' content='text/html;charset=UTF-8' />
  <script type="text/javascript" src="netIOTAccessPages/js/zxcvbn.js"></script>
  <script src="../../resources/sap-ui-core.js"
          id="sap-ui-bootstrap"
          data-sap-ui-libs="sap.ui.commons,sap.ui.table,sap.ui.unified, sap.ui.core, sap.m"
          data-sap-ui-theme="sap_goldreflection">
  </script>

  <!-- add sap.ui.table,sap.ui.ux3 and/or other libraries to 'data-sap-ui-libs' if required -->
  <link rel="stylesheet" type="text/css" href="css/animate.css">
  <link rel="stylesheet" type="text/css" href="css/WebCommissioning.css">
  <link rel="stylesheet" type="text/css" href="css/OpenUI5Hilscher.css">
  <script src="../../socket.io/socket.io.js"></script>
  <script type="text/javascript" src="lib/jquery.noty.packaged.min.js"></script>
  <!--<script src="lib/logger.min.js"></script>-->
  <script type="text/javascript" src="DataModel/dataModels.js"></script>
  <script type="text/javascript" src="Structures/CommissioningStructs.js"></script>
  <script type="text/javascript" src="Helper/PasswordHelper.js"></script>
  <script type="text/javascript" src="Helper/DataTypeHelper.js"></script>
  <script type="text/javascript" src="Helper/DataValidationHelper.js"></script>
  <script type="text/javascript" src="Helper/IPTextFieldHelper.js"></script>
  <script type="text/javascript" src="WebCommissioning.js"></script>
</head>
<body class="sapUiBody" role="application">
  <div id="content"></div>
  <!--<div id="container"></div>
  <div id="log_messages"></div>-->
</body>
</html>

STEP 6: LAN network settings

Call

$ http --verify=no --json POST "https://<IP address>/set/networkSettings/LANSettings" 'Cookie:sessionGWManager=s%3A7GsIC0es7HyUv1LfwhZStCPlsvqzVYao.Jk6c4PGDGnJeRW9yTKZDeV6JPQqjYF%2FyIa0P%2FnyJ1LU'  'networksettings=[{"name":"eth0","macaddress":"b8:27:eb:23:7a:c1","dhcp":true,"ipaddress":["10","11","5","18"],"networkmask":["255","255","0","0"],"gateway":["10","11","0","10"],"dns":[["192","168","100","21"],["192","168","100","22"],"192.168.100.50"]}]' 'category=LAN'

and you get a response back like this

HTTP/1.1 200 OK

Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: X-Requested-With, X-HTTP-Method-Override, Content-Type, Accept
Access-Control-Allow-Methods: GET,POST,DELETE
Access-Control-Allow-Origin: undefined
Connection: keep-alive
Content-Length: 15
Content-Type: application/json; charset=utf-8
Date: Wed, 05 Sep 2018 14:31:04 GMT
ETag: W/"f-v/Y1JusChTxrQUzPtNAKycooOTA"
Server: nginx/1.12.1
Vary: Accept-Encoding
X-Powered-By: Express

{
    "status": "OK"
}

Today we have no full documentation of the RESTful API ready for you.

Instead I recommend to use web browsers like Firefox or Google Chrome to analyse the RESTful API using "development sessions" like the appended picture shows.

Both browsers can record with their embedded network traffic analyser the HTTP requests they are sending during your manual mouse click/keyboard sessions you can analyse afterwards in terms of web page, http header, cookie, parameters .... Then you can construct exactly the same requests with the http CLI command (or any other HTTP capable program) as shown above.



Attached Files Thumbnail(s)
   

  [SOLVED] MySQL Container / Server in another Container?
Posted by: paubau - September-4th-2018, 02:18 PM - Forum: Software - Replies (2)

Hello,
is it possible to run a mysql server on the netpi?
I thought it should be possible to install it in another container, but i'm always getting some errors.
In my case, its kinda difficult to understand how to install the hypriot/rpi-mysql without having a command line..
If its possible - how to connect to it from another container? (write data from node-red in a table)

best regards 
paul


  Interesting Project "OpenPLC" available on netPI
Posted by: Armin@netPI - September-4th-2018, 09:26 AM - Forum: Projects - No Replies

The OpenPLC Project is a IEC 61131-3 compatible open source PLC. We feel it fits best to the netPI concept. This is why we released a container with the OpenPLC V3 runtime included to allow users to benefit from this function in own projects.

Read on for more info in the documentation of the provided container here.

Regards
Armin


  [SOLVED] after WIFI enabled - no access
Posted by: paubau - August-30th-2018, 12:28 PM - Forum: Software - Replies (7)

hello,
since i enabled WIFI as Access Point, i cant connect to the netPI.
First (after enabled wifi), i just couldnt connect per LAN but Wifi worked (for a short time) but as soon as i tried to disable wifi - connection got lost and i was not able to reconnect (i'm still able to connect to the wifi but i cannot access gateway manager) .
The wifi connection says limited access and i get ERR_CONNECTION_TIMED_OUT when trying to access the manager.

I hope there's a way to fix it without loading a new system image..

best regards,

Paul


  Video: Setting up my first container
Posted by: Armin@netPI - August-28th-2018, 06:21 AM - Forum: News - No Replies

I know it is late to post this video since it is now one year old, but it is worth it to watch especially if you are a newbie.

Here is the link: https://youtu.be/A-asfhl7b0c


  [SOLVED] USB Serial device mapping into Container
Posted by: hannes - August-24th-2018, 08:52 AM - Forum: Software - Replies (12)

Hello,

i have two USB serial devices and i want to use them in two containers. One device is a normal arduino uno and the other device is a zebra barcode scanner.
Now i tried to connect them and i dont see the /dev/ devices in my container. 

I used the following image: hilschernetpi/netpi-debian-stretch with privileged mode enabled. 

In "dmesg" i see the devices plugged in and discovered right, but no dev device.
How can i make it work?

I already looked into this thread: https://forum.hilscher.com/thread-158-page-3.html?

Do i have to map the devices manually into the container? And how can i discover the names of that devices to map them into the container.

Thanks in advance!
BR
Hannes


  Broken SD card
Posted by: dusrma24 - August-23rd-2018, 01:26 AM - Forum: Hardware - Replies (11)

Good morning

I bought two products. (RTE3)

One product will break the image.

I think it's a problem with the SD card. How can I get an exchange?


Information Managing netPI's Docker from remote via RESTful API for netPI versions < 1.1.4.0
Posted by: Armin@netPI - August-22nd-2018, 09:15 AM - Forum: Software - Replies (4)

Outdated: New flow find HERE

You all know netPI's Docker web GUI portainer.io. But most of you haven't recognized that portainer.io offers a RESTful API to take control of it from remote. All that is needed is a HTTP capable client that is addressing the API function over REST.

To make it simple to understand how it works I created a Node-RED (includes a HTTP client) based flow, that shows how to login, how to list containers, images, how to pull an image, create a container, start and stop it and ALSO how to push a container from netPI back to Dockerhub for example.

Find appended the Node-RED flow you can test yourself: Load the flow.txt file to an editor and copy its content  to the clipboard and import it with "import/clipboard" in Node-RED's the top right menu pane. It is compatible with netPI's currently used portainer version 1.12.4.



Attached Files
.txt   flow.txt (Size: 20.25 KB / Downloads: 34)