I am attempting to debug Gammu, a "library and command line utility for mobile phones", which is "timing out" when communicating normally with the modem.
gammu identify
-> No response in specified timeout. Probably phone not connected.
Looking at the extra debug information it produces, for some reason, it's not "recognising" the response that the modem IS giving (given it has the correct responses when dialing the AT commands over a manual serial terminal).
However, my question is primarily about running the SAME PROGRAM under strace, where it has no problems, and does not timeout.
strace -e trace=open,close,read,write gammu identify
-> (whole bunch of information about the modem)
What does/would strace be doing that would be causing this difference in behaviour? How does strace affect its child processes?
(Running on Ubuntu 18.04, Gammu 1.39.0)