Could you try to run it as super user (i.e. with sudo) and check ? If you still have errors, let me know.
First run the driver and then the application and please make sure that you have the TUN/TAP driver enabled since the OPLK has to use pcap on RPi.
For the GPIOs, my best guess would be that the RPi IOs (and buttons, LEDs) are probably used to send/indicate different values of cyclic data between master and slave but it would not be critical for getting the network operation running.
Good morning everyone,
For my internship, I have to integrate Openpowerlink on a Raspberry pi 4b. In order to achieve this, I followed the tutorial https://www.kalycito.com/introduction-on-how-to-get-powerlink-working-on-raspberry-pi-2/ unfortuntly, I’m facing with 2 errors.
The only changes, that I have make and differ to the tutoriel is :
With adapting the file app .c in the path “/home/linaro/oplk_Pi2/openPOWERLINK/apps/demo_mn_console” with
if(1 == digitalRead(0))
{
pProcessImageIn_l->CN32_DigitalOutput_00h_AU8_DigitalOutPut = 1;
pProcessImageIn_l->CN110_DigitalOutput_00h_AU8_DigitalOutPut = 1;
}
Else
{
pProcessImageIn_l->CN32_DigitalOutput_00h_AU8_DigitalOutPut = 0;
pProcessImageIn_l->CN110_DigitalOutput_00h_AU8_DigitalOutPut = 0;
}
ret = oplk_exchangeProcessImageIn();
( referring to the sept 4 of Compiler and build the MN on the tutorial, and sugerated when I was saving the file)
After have done, all the instructions when I run the ./demo_cn_console or the ./demo_mn_console, I have this error (err1.png)
The second one :
When I run the “oplkmnd-pcap” for the MN only, I have this error (err2.png)
If someone, know who to resolve this 2 errors, I will be glad to know it.
Ps: if someone could enlighten me on the usefulness of using GPIOs and in particular why GPIO 17, I would be very grateful
Thank you so much,
Look forward to reading your feedback.
Hi Ribeiro,
Could you try to run it as super user (i.e. with sudo) and check ? If you still have errors, let me know.
First run the driver and then the application and please make sure that you have the TUN/TAP driver enabled since the OPLK has to use pcap on RPi.
For the GPIOs, my best guess would be that the RPi IOs (and buttons, LEDs) are probably used to send/indicate different values of cyclic data between master and slave but it would not be critical for getting the network operation running.
Best Regards,
#aeicoriiotteam