Using GNU screen for AT commands
Aleksander Morgado
aleksander at aleksander.es
Fri Apr 14 22:22:21 UTC 2017
On Tue, Apr 11, 2017 at 3:30 PM, Tim Harvey <tharvey at gateworks.com> wrote:
>> Is ModemManager able to talk to the TTY? Or not even that?
>
> Yes, ModemManager works and to debug this I looked at its code to see
> what it was doing the other day:
> https://cgit.freedesktop.org/ModemManager/ModemManager/tree/src/mm-port-serial.c#n1055.
> I didn't see anything there that surprised me but I haven't compared
> with what screen/minicom were doing.
BTW; if you build ModemManager yourself you'll get a test utility that
allows to interactively send commands to the tty using the same code
ModemManager is using:
ModemManager/test:(master)$ ./mmtty --help
Usage:
lt-mmtty [OPTION...] - ModemManager TTY testing
Help Options:
-h, --help Show help options
Application Options:
-d, --device=[PATH] Specify device path
--no-flash Avoid flashing the port while opening
--no-echo-removal Avoid logic to remove echo
--send-delay=[DELAY] Send delay for each byte in microseconds
(default=1000)
-v, --verbose Run action with verbose logs
-V, --version Print version
--
Aleksander
https://aleksander.es
More information about the libqmi-devel
mailing list