TOP
SSV Software Systems Register  Register
Log in to check your private messages  Log in to check your private messages
Startseite FAQ Search Mitglieder Profile  Log in 
SSV Support-Forum
Node.js …

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> IGW/935
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 07.06.2013, 09:54    Post subject: Node.js … Reply with quote

Hallo Forum.

Für das Linux des IGW/935 wird eine Node.js-Portierung (v.0.10.9) entwickelt. Die Testphase ist bereits angelaufen. Falls sich jemand an den Tests beteiligen möchte, bitte melden.

Gruß

KDW
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 13.10.2015, 21:53    Post subject: Node-RED … Reply with quote

Hallo Forum.

In die Node.js-Implementierung lässt sich auch Node-RED (A visual tool for wiring the Internet of Things - siehe http://nodered.org/) einbauen. Damit lassen sich sehr einfach Daten- und Protokollkonverter erstellen.

Gruß KDW
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 21.12.2015, 22:28    Post subject: MQTT-Verbindungsunterbrechung … Reply with quote

Hallo Forum.

In den Log-Daten eines IGW/935 mit der neuen Cloud-Gateway-Firmware (Node.js, Node-Red, RTDC-API usw.) findet man Hinweise darauf, dass die Internet-Verbindung zu einem RTDC-MQTT-Broker immer wieder unterbrochen wird. Siehe zum Beispiel die folgenden Zeilen:

Code:
21 Dec 03:46:37 - … connection lost to broker tcp://mqtt.ssv-connect.de:80
21 Dec 03:46:52 - … connected to broker tcp://mqtt.ssv-connect.de:80


Dieses Verhalten ist normal. Der MQTT-Client eines IGW/935 hält eine dauerhafte TCP-Socketverbindung zum Broker. Wenn nun der Router alle paar Stunden (min. 1x alle 24 Stunden) eine Zwangstrennung zum Internet mit anschließendem Neuverbindungsbau durchführt, wird auch die MQTT-Socketverbindung unterbrochen. Der IGW/935-MQTT-Client bemerkt dies allerdings und erzeugt sofort eine neue Verbindung.

Gruß KDW
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 07.01.2016, 17:42    Post subject: Per Modbus in die Cloud … Reply with quote

Hallo Forum.

Mit einem IGW/935, Node.js und Node-RED plus die SSV-Erweiterungen für diese Laufzeitumgebungen ist es innerhalb weniger Minuten möglich, x-beliebige Modbus-Daten an einen Cloud- bzw. IoT-Server weiterzuleiten.

In https://ssv-embedded.de/doks/manuals/Modbus2Cloud_Intro.pdf ist eine Beschreibung zu einem Beispiel zu finden. Als Cloud- bzw. IoT-Serviceplattform kommt ein RTDC-Server zu Einsatz. Die Modbus-Datenquelle kann ein beliebiger Modbus/TCP- oder RTU-Slave bilden.

Gruß KDW
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 13.01.2016, 12:51    Post subject: S7-SPS-Zugriff … Reply with quote

Hallo Forum.

Durch die Node.js-Laufzeitumgebung des IGW/935 existieren natürlich auch weitere Möglichkeiten, um per LAN auf eine Siemens-S7-SPS zuzugreifen. Siehe zum Beispiel:

https://github.com/mathiask88/node-snap7

Gruß KDW
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 31.01.2016, 08:27    Post subject: Zurück in die Python-Welt … Reply with quote

Hallo Forum.

Mittels Node-Red lassen sich sehr einfach Verbindungen zwischen einem IGW/935 und einer Cloud herstellen. Was aber ist zu tun, wenn man die Daten aus einer Cloud in der Python-Laufzeitumgebung eines IGW/935 weiter bearbeiten möchte? Muss in den Python-Code ebenfalls der gesamte Code für das Cloud-Interface eingebaut werden?

Nein. Mit Hilfe eines TCP Socket Output Node lässt sich zum Beispiel eine „Brücke“ aus der Node-Red-Umgebung zur Python-Laufzeitumgebung eines SSV-Gateway schaffen.



Wir müssen lediglich einen einfachen TCP- Socket-Client in Python schreiben, der sich über 127.0.0.1:1234 (localhost) mit dem TCP Socket Output Node verbindet:

Code:
import socket
import sys

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("127.0.0.1", 1234))
data = s.recv(1024)
while len(data):
  sys.stdout.write(data)
  data = s.recv(1024)
s.close()


Dieser TCP-Socket-Client muss per Kommandozeile zur Ausführung gebracht werden. Dafür können wir per Webbrowser den Shell-in-a-Box-Service öffnen:



Bitte beachten: Der Shell-in-a-Box-Service muss auf einem IGW/935 über die WebConfig-Oberfläche eingeschaltet werden. Siehe Services => General. Im Auslieferzustand ist dieser Service deaktiviert.

Gruß KDW
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 10.02.2016, 23:28    Post subject: Modbus, MQTT und JSON ... Reply with quote

... siehe auch https://ssv-embedded.de/doks/manuals/MQTT4Sensors_Intro.pdf.

Gruß KDW
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 17.07.2016, 14:51    Post subject: Node-RED White Paper ... Reply with quote

Hallo Forum.

... siehe https://ssv-embedded.de/doks/infos/WP_NodeRED.pdf.

Gruß KDW

P.S.: Siehe auch http://www.ssv-embedded.de/doks/manuals/fs_igw936_node-red_de.pdf. Dieser Text gilt auch für ein IGW/935 mit Node.js und Node-RED.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> IGW/935 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV Software Systems GmbH

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2023 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015