diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2015-02-11 18:24:50 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-02-11 19:58:12 +0100 |
commit | f4ec32e6335b20c22db5b964ec5e667bbb8f8c39 (patch) | |
tree | f808e82cb8a9cf602437307e487fa92d88bd43dd /.gitignore | |
parent | 7133d72f698c551d01cbc8f35102dc4d61148e20 (diff) |
test: new 'mmtty' utility
The new tester allows to play with the AT-capable TTY using the same code as
ModemManager itself.
$ sudo ./test/mmtty -d /dev/ttyHS0 --verbose
opening serial port '/dev/ttyHS0'...
(ttyHS0) opening serial port...
(ttyHS0): port attributes not fully set
(ttyHS0) device open count is 1 (open)
flashing serial port '/dev/ttyHS0'...
ready
> AT+GCAP
(ttyHS0): --> 'AT+GCAP<LF><CR>'
(ttyHS0): <-- '<CR><LF>+GCAP: +CGSM,+DS,+ES<CR><LF><CR><LF>OK<CR><LF>'
+GCAP: +CGSM,+DS,+ES
> AT+GMI
(ttyHS0): --> 'AT+GMI<LF><CR>'
(ttyHS0): <-- '<CR><LF>Option N.V.<CR><LF><CR><LF>OK<CR><LF>'
Option N.V.
> ^C
cancelling the main loop...
(ttyHS0) device open count is 0 (close)
(ttyHS0) closing serial port...
(ttyHS0) serial port closed
(ttyHS0) forced to close port
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -30,7 +30,6 @@ libtool org.freedesktop.ModemManager.service org.freedesktop.ModemManager.conf callouts/mm-modem-probe -test/lsudev include/ModemManager-version.h @@ -165,6 +164,9 @@ plugins/test-modem-helpers-icera* plugins/test-modem-helpers-mbm* plugins/test-service-* +test/lsudev +test/mmtty + TAGS ABOUT-NLS |