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
Modbus und Node-RED …

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> Real Time Data Channels (RTDC)
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 13.10.2015, 22:02    Post subject: Modbus und Node-RED … Reply with quote

Hallo Forum.

Per IGW/935 und IGW/936 lassen sich Daten aus Modbus-baiserten Datenquellen mit Hilfe von Node-RED RED (A visual tool for wiring the Internet of Things - siehe http://nodered.org/) an einen RTDC-Server übermitteln.

Node-RED wurde inzwischen in unsere Node.js-Implementierung eingefügt. Bei Interesse bitte melden und einen Update anfordern.

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



Joined: 05 May 2006
Posts: 1460

PostPosted: 07.01.2016, 18:37    Post subject: Modbus-to-Cloud … Reply with quote

Hallo Forum.

In https://ssv-embedded.de/doks/manuals/Modbus2Cloud_Intro.pdf findet man eine Beschreibung, die aufzeigt, wie einfach sich per Node-RED x-beliebige Modbus-Daten an eine Cloud- bzw. IoT-Serviceplattform weiterleiten lassen.

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



Joined: 05 May 2006
Posts: 1460

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

Hallo Forum.

Mittels Node-RED lassen sich sehr einfach Verbindungen zwischen einem SSV-Gateway und einer Cloud herstellen. Was aber ist zu tun, wenn man die Daten aus einer Cloud in der Python-Laufzeitumgebung eines Gateways 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 SSV-Gateway ü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
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> Real Time Data Channels (RTDC) 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