atinout: modem-setup script gets stuck on boot
It seems the pinephone-modem-setup.sh script gets stuck on boot while using atinout to issue AT commands to the modem:
after a bit of debugging, I found that atinout expects the modem to answer commands with OK<CR><LF>
or ERROR<CR><LF>
, but the EG-25G seems to only send OK<LF>
, this sends the atinout parser into an endless loop...
This can also be tested on the shell with just:
echo AT | atinout - /dev/EG25.AT -
which results in an endless output of retries for me.
Applying a patch similar to https://github.com/beralt/atinout/commit/133bf25ce0b7a73847aa9f84bb7d89ea7df5bbb3 seems to fix the issue for me.
Can anyone else confirm this issue, I can send a PR against atinout with my suggestion for a fix.