r2735 - trunk/src/target/gsm/src/gsmd
laforge at sita.openmoko.org
laforge at sita.openmoko.org
Fri Aug 17 12:02:05 CEST 2007
Author: laforge
Date: 2007-08-17 12:02:02 +0200 (Fri, 17 Aug 2007)
New Revision: 2735
Modified:
trunk/src/target/gsm/src/gsmd/gsmd.c
Log:
Change alive check and first commands to bare "AT"
The BCM2132 responds ERROR to ATV and ATE when it is in the radio off
mode (AT+CFUN=0). This causes the alive check and first command to both
fail so this changes them both to just bare AT. (Alex Osborne)
Modified: trunk/src/target/gsm/src/gsmd/gsmd.c
===================================================================
--- trunk/src/target/gsm/src/gsmd/gsmd.c 2007-08-17 10:01:25 UTC (rev 2734)
+++ trunk/src/target/gsm/src/gsmd/gsmd.c 2007-08-17 10:02:02 UTC (rev 2735)
@@ -45,7 +45,7 @@
#include <gsmd/vendorplugin.h>
#include <gsmd/talloc.h>
-#define GSMD_ALIVECMD "ATE0"
+#define GSMD_ALIVECMD "AT"
#define GSMD_ALIVE_INTERVAL 5*60
#define GSMD_ALIVE_TIMEOUT 30
@@ -238,7 +238,7 @@
struct gsmd_atcmd *cmd;
struct timeval tv;
- cmd = atcmd_fill("ATE0V1", strlen("ATE0V1")+1, &firstcmd_atcb, gsmd, 0);
+ cmd = atcmd_fill("AT", strlen("AT")+1, &firstcmd_atcb, gsmd, 0);
if (!cmd)
return -ENOMEM;
More information about the commitlog
mailing list