why power off the phone during gsmd start?

Philipp Zabel philipp.zabel at gmail.com
Sun Jun 10 13:39:44 CEST 2007


Am Sonntag, den 10.06.2007, 12:34 +0200 schrieb Philipp Zabel:

> --- gsm.orig/src/gsmd/vendor_ti.c	2007-06-10 12:21:41.000000000 +0200
> +++ gsm/src/gsmd/vendor_ti.c	2007-06-10 12:22:18.000000000 +0200
> @@ -280,6 +280,8 @@
>  	int rc;
>  	struct gsmd_atcmd *cmd;
>  
> +	/* power off the phone */
> +	rc |= gsmd_simplecmd(gsmd, "AT+CFUN=0");

Copy&paste error, sorry. This one is what I really meant:

Index: gsm/src/gsmd/gsmd.c
===================================================================
--- gsm.orig/src/gsmd/gsmd.c	2007-06-10 12:21:41.000000000 +0200
+++ gsm/src/gsmd/gsmd.c	2007-06-10 12:22:22.000000000 +0200
@@ -178,8 +178,6 @@
 	rc |= gsmd_simplecmd(gsmd, "AT+CLIP=1");
 	/* use +COLP: to indicate COLP */
 	rc |= gsmd_simplecmd(gsmd, "AT+COLP=1");
-	/* power off the phone */
-	rc |= gsmd_simplecmd(gsmd, "AT+CFUN=0");
 	/* configure message format as PDU mode*/
 	/* FIXME: TEXT mode support!! */
 	rc |= gsmd_simplecmd(gsmd, "AT+CMGF=0");
Index: gsm/src/gsmd/vendor_ti.c
===================================================================
--- gsm.orig/src/gsmd/vendor_ti.c	2007-06-10 12:21:41.000000000 +0200
+++ gsm/src/gsmd/vendor_ti.c	2007-06-10 12:40:25.000000000 +0200
@@ -280,6 +280,8 @@
 	int rc;
 	struct gsmd_atcmd *cmd;
 
+	/* power off the phone */
+	rc |= gsmd_simplecmd(g, "AT+CFUN=0");
 	/* use +CTZR: to report time zone changes */
 	rc |= gsmd_simplecmd(g, "AT+CTZR=1");
 	/* use %CTZV: Report time and date */




More information about the gsmd-devel mailing list