I'd like to run openPOWERLINK master and slave each on a mininet host to simulate connection and do some tests. I have Ubuntu 16.04.1 running on a VM, so I'd need to have both slave and master on that machine. However I don't know if this is possible, I really don't understand how openPOWERLINK works and I didn't find much material available on the internet. I think that it's possible if I have two different openPOWERLINK compiled apps running one on each mininet host.
So I'd like to know if this is a feasible idea and if there is any document, site or tip that could help me.
I have tried following the steps 6 and 8 of this tutorial to create the openPOWERLINK slave, but I got a segmentation fault error.
sudo ./oplkcnd-pcap
output:
~/slave_openPOWERLINK_V2.7.0/bin/linux/x86_64/oplkd-pcap$ sudo ./oplkcnd-pcap
----------------------------------------------------
openPOWERLINK kernel stack daemon
Using openPOWERLINK stack: V2.7.0
----------------------------------------------------
Running...
Segmentation fault (core dumped)
sudo ./demo_cn_console
output:
~/slave_openPOWERLINK_V2.7.0/bin/linux/x86_64/demo_cn_cle$ sudo ./demo_cn_console
----------------------------------------------------
openPOWERLINK console CN DEMO application
Using openPOWERLINK stack: V2.7.0
----------------------------------------------------
2020/02/07-15:22:22 INFO GENERIC demo_cn_console: Stack version:V2.7.0 Stack configuration:0x0000004A
Initializing openPOWERLINK stack...
2020/02/07-15:22:22 INFO CONTROL Initializing openPOWERLINK stack
2020/02/07-15:22:22 INFO GENERIC Select the network interface
--------------------------------------------------
List of Ethernet cards found in this system:
--------------------------------------------------
1. lo
lo
2. enp0s3
enp0s3
3. enp0s8
enp0s8
4. ovs-system
ovs-system
--------------------------------------------------
Select the interface to be used for POWERLINK (1-4):4
--------------------------------------------------
oplk_create() failed with "Initialization error" (0x0013)
2020/02/07-15:22:24 FATAL CONTROL oplk_create() failed with "Initialization error" (0x0013)
Stack is in state off ... Shutdown
2020/02/07-15:22:24 INFO CONTROL Stack is in state off ... Shutdown openPOWERLINK
The seg fault on the first terminal occurs when I select the interface 4 (ovs-system) in the second one. What am I doing wrong here?
After the slave works properly, I am thinking about following the process described in this file from sourceforge to configure the master.
Thank you.
User contributions licensed under CC BY-SA 3.0