[Error] Check Serial Connection! What throws it?

KenHorse

New Member
Joined
Mar 12, 2021
Messages
15
Reaction score
2
Credits
126


I'm trying to run a php script that uses /dev/ttyUSB0 and it basically works and I set it up using stty.

However, at times I receive the error (verbatim) in the thread title. Most of the time, it works fine

I can't seem to find what is generating it.

Is it a kernel thing?
 


NorthWest

Member
Joined
Nov 4, 2021
Messages
35
Reaction score
26
Credits
422
You could try using strace which should show you all the system calls that are being accessed when you run your command. Something like:
Code:
strace -o tracefile <your command>
Lots of output usually but the files on the system being accessed by your command will be written to the file: tracefile, and perhaps it is one of those that is messaging. Just an initial step. If you were able to get strace tracing files for both states, one where your command worked and one where the error appears, and compared them, that may be informative. The tracefile will end in 0 if there is no error, and -1 if there was an error.
 
Last edited:
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top