@@ -2,6 +2,7 @@ Multiple ports
2
2
==============
3
3
This section describes how to configure the p-net stack, sample application
4
4
and system for multiple network interfaces or ports.
5
+ So far, multiple port has only been tested using the linux port.
5
6
6
7
7
8
Terminology
@@ -92,12 +93,40 @@ Run ``ifconfig`` to check that the bridge is up and its network interfaces are a
92
93
TX packets 0 bytes 0 (0.0 B)
93
94
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
94
95
95
- Configuration of p-net stack and sample application (TBD)
96
+ Configuration of p-net stack and sample application
96
97
---------------------------------------------------------
97
98
To run p-net and the sample application with multiple ports a couple
98
99
of things need to be done:
99
100
100
- * Reconfigure setting ``PNET_MAX_PORT `` to the actual number of physical ports available in the system.
101
- For this example ``PNET_MAX_PORT `` shall be set to 2.
102
-
103
- * TBD - update this document when multiport support is implemented
101
+ Reconfigure setting ``PNET_MAX_PORT `` to the actual number of physical ports available in the system.
102
+ For this example ``PNET_MAX_PORT `` shall be set to 2.
103
+
104
+ Example of initial log when starting the demo application with a multi port configuration::
105
+
106
+ pi@pndevice-pi:~/profinet/build $ sudo ./pn_dev -v
107
+ ** Starting Profinet demo application **
108
+ Number of slots: 5 (incl slot for DAP module)
109
+ P-net log level: 0 (DEBUG=0, FATAL=4)
110
+ App verbosity level: 1
111
+ Nbr of ports: 2
112
+ Network interfaces: br0,eth0,eth1
113
+ Button1 file:
114
+ Button2 file:
115
+ Station name: rt-labs-dev
116
+ Management port: br0 C2:38:F3: A6:0A:66
117
+ Physical port [1]: eth0 B8:27:EB: 67:14:8A
118
+ Physical port [2]: eth1 58:EF: 68:B5: 11:0F
119
+ Current hostname: pndevice-pi
120
+ Current IP address: 192.168.0.50
121
+ Current Netmask: 255.255.255.0
122
+ Current Gateway: 192.168.0.1
123
+ Storage directory: /home/pi/profinet/build
124
+
125
+ Update gsdml file
126
+ -----------------
127
+ The sample app gsdml file contains a commented out block that defines
128
+ a second physical port. In the sample application gsdml file, search for "IDS_P2"
129
+ and enable commented out lines as described in the gsdml file.
130
+
131
+ Note that you will have to the reload gsdml file in all tools you are using and
132
+ also the Automated RT tester any time the file is changed.
0 commit comments