You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-36Lines changed: 29 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,28 @@
1
1
# Ping Pong Edge application implemented in Python
2
2
3
-
Application example how to communicate over MQTT broker (called Databus in case of Industrial Edge) using IE Flow Creator ([NodeRED fork](https://nodered.org/)) and Python.
3
+
Application example how to communicate over MQTT broker (called Databus in case of Industrial Edge) using IE Flow Creator and Python.
4
4
5
5
-[Ping Pong Edge application implemented in Python](#ping-pong-edge-application-implemented-in-python)
6
+
-[QuickStart](#quickstart)
6
7
-[Description](#description)
7
8
-[Overview](#overview)
8
9
-[Requirements](#requirements)
9
10
-[Used components](#used-components)
11
+
-[Further requirements](#further-requirements)
10
12
-[Installation](#installation)
11
13
-[Direct Import steps](#direct-import-steps)
12
-
-[Manual Build](#manual-build)
14
+
-[Complete Installation](#complete-installation)
13
15
-[Usage](#usage)
14
16
-[Dependencies](#dependencies)
15
17
-[Playing ping pong](#playing-ping-pong)
16
18
-[Documentation](#documentation)
17
19
-[Contribution](#contribution)
18
20
-[Licence and Legal Information](#licence-and-legal-information)
19
21
22
+
## QuickStart
23
+
24
+
If you want to run everything locally with single command just run `docker-compose up -d` and open webpage on [localhost:1880](http://localhost:1880) and import [flows](SFC-flows/Pingpong-testing.json).
25
+
20
26
## Description
21
27
22
28
This application example demonstrates how Industrial Edge application can communicate with Databus using MQTT protocol. The goal is to send a string "Ping" message to Databus (MQTT broker) to a topic "topic1" and subscribe to MQTT topic "topic2" which should return "Pong python". The return message is generated by this python application. You can play virtual ping pong using this application!
@@ -35,40 +41,41 @@ A picture bellow shows the application data flow and architecture from the docke
35
41
36
42
## Requirements
37
43
38
-
In order for this use case to work the following apps needs to be present and configured on the Edge device
39
-
40
-
- IE Databus
41
-
- IE Flow Creator (Can be replaced by any app that can send, receive and display MQTT messages)
42
-
- IEM ready to deploy app
43
-
- One available onboarded IE Device with enough memory available
44
-
- Configured user and user rights on the Databus MQTT broker
45
-
46
44
### Used components
47
45
48
-
This application was created and tested using these components
46
+
This application version 1.1.x was created and tested using these components
49
47
50
-
- Industrial Edge App Publisher V1.0.8
51
-
- Docker Engine 19.03.8
48
+
- Industrial Edge App Publisher V1.1.5
49
+
- Docker Engine 20.10.2
52
50
- Docker Compose V2.4
53
-
- IE Databus V 1.0.11
54
-
- IE Flow Creator V 1.0.4
55
-
- Industrial Edge Management Version 1.0.11
56
-
- Industrial Edge Device V 1.0.0-34
51
+
- Industrial Edge Device V1.1.0-39
52
+
- IE Databus Configurator V1.1.44
53
+
- IE Databus V1.1.23
54
+
- IE Flow Creator V1.0.4
55
+
- IE Management System V1.1.0-48
56
+
57
+
### Further requirements
58
+
59
+
- IE Device is onboarded to a IE Management
60
+
- IE Databus Configurator is deployed to the IE Management
61
+
- IE Databus is deployed to the IE Device
62
+
- IE Flow Creator is deployed to the IE Device
57
63
58
64
## Installation
59
65
60
-
You have two options how to install this app into Industrial Edge Management system. You can either use the [Direct Import section](#direct-import) to use .app we build for you or you can follow the [Manual Build](#manual-build) section to build the .app yourself.
66
+
You have two options how to install this app into Industrial Edge Management system. You can either use the [Direct Import section](#direct-import) to reuse .app we build for you or you can follow the [Complete Installation](#complete-installation) section to create the .app yourself.
61
67
62
68
### Direct Import steps
63
69
64
70
1. Import .app application available at [GitHub](https://github.com/industrial-edge/ping-pong-python/releases) to your Industrial Edge Management using one of the two options
65
71
1. Industrial Edge App Publisher (recommended)
66
72
2. Catalog import functionality
67
73
2. Install the imported app to onboarded Industrial Edge Device
74
+
3. Follow the configuration steps in [Installation guide](docs/Installation.md).
68
75
69
-
### Manual Build
76
+
### Complete Installation
70
77
71
-
More comprehensive instructions for building and installing this application is available in the [Installation guide](docs/Instalation.md).
78
+
Comprehensive instructions for building and installing this application is available in the [Installation guide](docs/Installation.md).
72
79
73
80
## Usage
74
81
@@ -79,25 +86,11 @@ In order for this application to run properly on Industrial Edge Device (IED), t
79
86
- Databus application
80
87
- IE Flow Creator application
81
88
82
-
For detailed explanation have a look at the [Installation guide](docs/Instalation.md).
89
+
For detailed explanation have a look in the [Installation guide](docs/Installation.md) in the Testing section.
83
90
84
91
### Playing ping pong
85
92
86
-
1. Navigate to IED web interface home page
87
-
2. Open IE Flow Creator UI
88
-
3. Create MQTT Input node in Flow Creator
89
-
4. Configure MQTT Broker
90
-
1. IP address is "ie_databus", port is 1883, password and user must be configured by you in advance
91
-
5. As topic write "topic2" to node
92
-
6. Deploy the flow to check whether the connection is working. You should see green "connected" indicator after deploying
93
-
7. Repeat the same process for MQTT output node
94
-
8. Use Inject node as input to MQTT output node. Input text message should be "Ping"
95
-
9. Use Debug node as output to MQTT input node
96
-
10. Click on Inject to send message to broker. In the debug window you should see response.
97
-
98
-
The end flow should look like this.
99
-
100
-

93
+
Have a look in the [Installation guide testing section](docs/Installation.md) on how to play ping pong in Industrial Edge. :D
0 commit comments