This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
steam:examples:start [2020/08/21 11:56] brinkhaus |
steam:examples:start [2021/07/11 16:22] (current) brinkhaus |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | === Laden von Steam als Container, erzeugen von Dummy-JSON-Einträgen === | + | === Loading Steam as a container, creating dummy JSON entries === |
| - | * Laden von Steam als Image im TAR-Format: | + | * Loading Steam as an image in TAR format: |
| <code> | <code> | ||
| Line 7: | Line 7: | ||
| </code> | </code> | ||
| - | * Prüfen, ob das Image real vorliegt: | + | * Check if the image is real: |
| <code> | <code> | ||
| Line 13: | Line 13: | ||
| </code> | </code> | ||
| - | * Erstellen einer einfachen docker-compose.yml: | + | * Create a simple docker-compose.yml: |
| <code> | <code> | ||
| version: '2' | version: '2' | ||
| - | services: | + | SERVICES: |
| Steam: | Steam: | ||
| image: steam:0.9 | image: steam:0.9 | ||
| Line 25: | Line 25: | ||
| </code> | </code> | ||
| - | * Installation von Mosquitto, um das Erzeugen von Einträgen zu verfolgen | + | * Installing Mosquitto to track the creation of entries. |
| <code> | <code> | ||
| sudo apt-get install mosquitto mosquitto-clients | sudo apt-get install mosquitto mosquitto-clients | ||
| </code> | </code> | ||
| - | | + | |
| - | * Erstmaliges Starten des Containers | + | * Starting the container for the first time. |
| <code> | <code> | ||
| Line 37: | Line 37: | ||
| </code> | </code> | ||
| - | * Modifikation der Einstellungs-XML-Datei (unter/var/steam/Settings/) | + | * Modification of the settings XML file (under/var/steam/Settings/). |
| <code> | <code> | ||
| - | --> <SamplingThread-type>ADAS</SamplingThread-type> | + | --> <SamplingThread-type>ADAS</SamplingThread-type> |
| - | --> <ProcessingThread-type>MQTT</ProcessingThread-type> | + | --> <ProcessingThread-type>MQTT</ProcessingThread-type> |
| <!--ETHERCAT IP :127.0.0.1 / PORT 54011--> | <!--ETHERCAT IP :127.0.0.1 / PORT 54011--> | ||
| <!--MODBUS IP :192.168.0.12 / PORT 502--> | <!--MODBUS IP :192.168.0.12 / PORT 502--> | ||
| <PhoenixIPAddress>192.168.214.152</PhoenixIPAddress> | <PhoenixIPAddress>192.168.214.152</PhoenixIPAddress> | ||
| <PhoenixPort>54011</PhoenixPort> | <PhoenixPort>54011</PhoenixPort> | ||
| - | <Packet-size>100</Packet-size> | + | <packet-size>100</packet-size> |
| - | --> <MQTT_Client_ID>ExampleClientPub</MQTT_Client_ID> | + | --> <MQTT_Client_ID>ExampleClientPub</MQTT_Client_ID> |
| - | --> <MQTT_Address>tcp://localhost:1883</MQTT_Address> | + | --> <MQTT_Address>tcp://localhost:1883</MQTT_Address> |
| <MQTT_Topic>communicationAdapter/hf</MQTT_Topic> | <MQTT_Topic>communicationAdapter/hf</MQTT_Topic> | ||
| <MQTT_UserName>testName</MQTT_UserName> | <MQTT_UserName>testName</MQTT_UserName> | ||
| - | <MQTT_Passwort>testPasswort</MQTT_Passwort> | + | <MQTT_Password>testPassword</MQTT_Password> |
| </code> | </code> | ||
| - | * Start des Auslesens von in Mosquitto geposteten Einträgen - bitte in separater Konsole starten: | + | * Start reading out entries posted in Mosquitto - please start in separate console: |
| <code> | <code> | ||
| - | paho_c_sub -t my_topic --connection tcp://localhost:1883 | + | paho_c_sub -t communicationAdapter/hf --connection tcp://localhost:1883 |
| </code> | </code> | ||
| - | * Erneuter Start des Containers | + | * Restarting the container |
| <code> | <code> | ||
| Line 66: | Line 66: | ||
| </code> | </code> | ||
| - | Hiernach sollte die oben als "separate Konsole" benannte Konsole die JSON-Nachrichten von Steam ausgeben. | + | After this, the console named above as "separate console" should output the JSON messages from Steam. |