From f4ec32e6335b20c22db5b964ec5e667bbb8f8c39 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 11 Feb 2015 18:24:50 +0100 Subject: 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' (ttyHS0): <-- '+GCAP: +CGSM,+DS,+ESOK' +GCAP: +CGSM,+DS,+ES > AT+GMI (ttyHS0): --> 'AT+GMI' (ttyHS0): <-- 'Option N.V.OK' 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 --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 2ce4de06..959640e1 100644 --- a/.gitignore +++ b/.gitignore @@ -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 -- cgit v1.2.3-70-g09d2