comparison uptools/atcmd/smdump.c @ 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 3bcc56883b17
children b88a37d4f148
comparison
equal deleted inserted replaced
363:46cf847781bd 364:ac311a48630e
177 if (argc != optind) { 177 if (argc != optind) {
178 fprintf(stderr, "usage: %s [options]\n", argv[0]); 178 fprintf(stderr, "usage: %s [options]\n", argv[0]);
179 exit(ERROR_USAGE); 179 exit(ERROR_USAGE);
180 } 180 }
181 atinterf_init(); 181 atinterf_init();
182 /* enable verbose error messages */
183 atinterf_exec_cmd_needok("AT+CMEE=2", 0, 0);
182 /* put the 07.05 modem in PDU mode */ 184 /* put the 07.05 modem in PDU mode */
183 atinterf_exec_cmd_needok("AT+CMGF=0", 0, 0); 185 atinterf_exec_cmd_needok("AT+CMGF=0", 0, 0);
184 /* HEX charset for phonebook names */ 186 /* HEX charset for phonebook names */
185 atinterf_exec_cmd_needok("AT+CSCS=\"HEX\"", 0, 0); 187 atinterf_exec_cmd_needok("AT+CSCS=\"HEX\"", 0, 0);
186 /* main command */ 188 /* main command */