changeset 364:ac311a48630e

fcup-smdump & fcup-smsend: send AT+CMEE=2 first
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 08 Mar 2018 00:20:42 +0000
parents 46cf847781bd
children 4378d70b146b
files uptools/atcmd/smdump.c uptools/atcmd/smsend_basic.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/uptools/atcmd/smdump.c	Mon Mar 05 02:58:13 2018 +0000
+++ b/uptools/atcmd/smdump.c	Thu Mar 08 00:20:42 2018 +0000
@@ -179,6 +179,8 @@
 		exit(ERROR_USAGE);
 	}
 	atinterf_init();
+	/* enable verbose error messages */
+	atinterf_exec_cmd_needok("AT+CMEE=2", 0, 0);
 	/* put the 07.05 modem in PDU mode */
 	atinterf_exec_cmd_needok("AT+CMGF=0", 0, 0);
 	/* HEX charset for phonebook names */
--- a/uptools/atcmd/smsend_basic.c	Mon Mar 05 02:58:13 2018 +0000
+++ b/uptools/atcmd/smsend_basic.c	Thu Mar 08 00:20:42 2018 +0000
@@ -118,6 +118,8 @@
 	}
 	/* get to work */
 	atinterf_init();
+	/* enable verbose error messages */
+	atinterf_exec_cmd_needok("AT+CMEE=2", 0, 0);
 	if (text_mode) {
 		prep_for_text_mode();
 		send_in_text_mode(dest_addr, msgtext);