r2744 - in trunk/src/target/gsm: . src/gsmd

mickey at sita.openmoko.org mickey at sita.openmoko.org
Sun Aug 19 23:03:58 CEST 2007


Author: mickey
Date: 2007-08-19 23:03:58 +0200 (Sun, 19 Aug 2007)
New Revision: 2744

Added:
   trunk/src/target/gsm/ChangeLog
Modified:
   trunk/src/target/gsm/src/gsmd/gsmd.c
Log:
gsmd: make it slightly more forgiving:
1.) remove early-alive trigger
2.) don't use AT as initial command since TI firmware errors out


Added: trunk/src/target/gsm/ChangeLog
===================================================================

Modified: trunk/src/target/gsm/src/gsmd/gsmd.c
===================================================================
--- trunk/src/target/gsm/src/gsmd/gsmd.c	2007-08-19 21:02:38 UTC (rev 2743)
+++ trunk/src/target/gsm/src/gsmd/gsmd.c	2007-08-19 21:03:58 UTC (rev 2744)
@@ -143,8 +143,6 @@
 	if (!gsmd_timer_create(&tv, &alive_interval_tmr_cb, gsmd))
 		return -1;
 
-	gsmd_modem_alive(gsmd);
-
 	return 0;
 }
 
@@ -208,8 +206,9 @@
 
 	if (strcmp(resp, "OK") &&
 	    (!(gsmd->flags & GSMD_FLAG_V0) || resp[0] != '0')) {
-		gsmd_log(GSMD_FATAL, "response '%s' to initial command invalid", resp);
-		exit(5);
+		// temporarily changed to GSMD_ERROR instead of GSMD_FATAL + commented out exit(4) :M:
+		gsmd_log(GSMD_ERROR, "response '%s' to initial command invalid", resp);
+		//exit(4);
 	}
 
 	firstcmd_response = 1;
@@ -241,13 +240,9 @@
 	struct gsmd_atcmd *cmd;
 	struct timeval tv;
 
-	cmd = atcmd_fill("AT", strlen("AT")+1, &firstcmd_atcb, gsmd, 0);
+	cmd = atcmd_fill("ATZ", strlen("ATZ")+1, &firstcmd_atcb, gsmd, 0);
 	if (!cmd)
 		return -ENOMEM;
-	
-	tv.tv_sec = GSMD_ALIVE_TIMEOUT;
-	tv.tv_usec = 0;
-	gsmd_timer_create(&tv, &firstcmd_tmr_cb, NULL);
 
 	return atcmd_submit(gsmd, cmd);
 }





More information about the commitlog mailing list