robin icon indicating copy to clipboard operation
robin copied to clipboard

semaphore timeouts before read or write

Open spasoye opened this issue 3 years ago • 1 comments

Hello, I successfully implemented robin in melodic ROS container on my Toradex Verdin board. I run Codesys runtime in other container and managed to import example project .xml in CODESYS V3.5 SP16 Patch 4 that is running on my Windows machine. After running start_update.py, building loging into Codesys I realized this.

Semaphore in the Codesys program timeouts on every read and write and nothing is written to shared memory. When I commented semaphore checking in robin library write and read function I was able to read and write data to shared memory and echo them in ROS container. When I uncommented the semaphore checks in read and write functions but this time SysSemProcessEnter returned ERR_OK and everything worked as it should. This happens after every reset.

Any idea what am I doing wrong ?

spasoye avatar Jun 15 '21 15:06 spasoye