Serial Snatcher
by ifoundreverse from LinuxQuestions.org on (#5N8ZP)
Hi,
I was using bCNC today (but has also happened before whilst using UGS) when my CNC machine froze, so did bCNC. It happened a few times, all at different places in the gcode execution, so I ran bCNC from a terminal, after it froze again and eventually returned output (I didn't copy it, but will next time) it looked like the python script erred out because it lost its handle to the serial device it was using (/dev/usb0). On restarting after a crash, the handle to the device is still there and another device had been used, and so on until after a restart.
- How do I track down what else may be taking over the serial device?
- What logs should I be looking at?
- Do I remember something about being able to assign a priority when starting an application, if so how?
... I'm currently using a Fedora 32 desktop for this task...
Many thanks


I was using bCNC today (but has also happened before whilst using UGS) when my CNC machine froze, so did bCNC. It happened a few times, all at different places in the gcode execution, so I ran bCNC from a terminal, after it froze again and eventually returned output (I didn't copy it, but will next time) it looked like the python script erred out because it lost its handle to the serial device it was using (/dev/usb0). On restarting after a crash, the handle to the device is still there and another device had been used, and so on until after a restart.
- How do I track down what else may be taking over the serial device?
- What logs should I be looking at?
- Do I remember something about being able to assign a priority when starting an application, if so how?
... I'm currently using a Fedora 32 desktop for this task...
Many thanks