why power off the phone during gsmd start?

Philipp Zabel philipp.zabel at gmail.com
Sun Jun 10 12:34:46 CEST 2007


Hi,

I don't see the use of having the GSM chipset powered up with CFUN=0, so
I assume that the "power off the phone" command during gsmd init is just
to get reproducible starting conditions.
As on my device the GSM chip is only powered on when gsmd opens the tty,
I already have them and powering on, off and on again the phone only
adds needless delay to gsmd/dialer startup. Could we put the AT+CFUN=0
into vendor modules where needed?

regards
Philipp

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: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");
 	/* 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