Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2017-03-21
Originally created by: Viacheslav Mezentsev
A temporary solution to the problem. You need to create a global Boolean flag. Use it to free the file handle manually without leaving debugging (assign a hotkey, for example). When the handle is released, you can exit debugging.
This means that the runtime cannot properly close the handle of such file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There I show a trick which will help to solve this problem, but the runtime developers should not relax and must correct the connection loss bug. I need this not for raspberry pi. This is just an example which works not only for raspberry but for other linux platforms too.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Originally created by: Viacheslav Mezentsev
RaspberryPi B, CoDeSys 3.5.10.x
Example project.
You can try keyboard for example (you need to change path, see: ls /dev/input/by-path on your device):
Steps to reproduce the problem:
Worked with all events and not only with SysFileAsync library (CAA File with the same result).
So the question: Why CoDeSys 3.5.10.x loses connection in this case?
How to restore connection:
Originally created by: Viacheslav Mezentsev
Video: https://youtu.be/bGNL8n5qV64 m
Originally created by: Viacheslav Mezentsev
A temporary solution to the problem. You need to create a global Boolean flag. Use it to free the file handle manually without leaving debugging (assign a hotkey, for example). When the handle is released, you can exit debugging.
This means that the runtime cannot properly close the handle of such file.
Originally created by: Viacheslav Mezentsev
Undocumented solution (rus).
There I show a trick which will help to solve this problem, but the runtime developers should not relax and must correct the connection loss bug. I need this not for raspberry pi. This is just an example which works not only for raspberry but for other linux platforms too.