Have you looked at the contents of your log files yet? That would be the obvious place to start. Next obvious place would be the systemd journal.
Beyond that, your ExecStart line appears to have been truncated. We need the complete line.
You're using threads. With daemon=True.
I suspect something in your send and/or receive_data thread is throwing an exception. All your exception handler does is print to stdout so, again, check your log files.
That the led flashes is not related to whether or not data is being sent or received as it's in a separate thread.
It's been a while since I've used them but, IIRC, daemon thread do not exit when the program's main process does but continue to run in the background. That may mean the ports are not being released. It also means that one thread can die/exit without affecting the others.
Without the error/exception messages I can't offer more.
Beyond that, your ExecStart line appears to have been truncated. We need the complete line.
You're using threads. With daemon=True.
I suspect something in your send and/or receive_data thread is throwing an exception. All your exception handler does is print to stdout so, again, check your log files.
That the led flashes is not related to whether or not data is being sent or received as it's in a separate thread.
It's been a while since I've used them but, IIRC, daemon thread do not exit when the program's main process does but continue to run in the background. That may mean the ports are not being released. It also means that one thread can die/exit without affecting the others.
Without the error/exception messages I can't offer more.
Statistics: Posted by thagrol — Sun Apr 06, 2025 9:24 pm