From bdd62a21ce56cacb4859402565866f1d93694d48 Mon Sep 17 00:00:00 2001 From: laforge Date: Fri, 17 Aug 2007 10:02:02 +0000 Subject: 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) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2735 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/gsmd/gsmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gsmd/gsmd.c b/src/gsmd/gsmd.c index d428bd8..a94a664 100644 --- a/src/gsmd/gsmd.c +++ b/src/gsmd/gsmd.c @@ -45,7 +45,7 @@ #include #include -#define GSMD_ALIVECMD "ATE0" +#define GSMD_ALIVECMD "AT" #define GSMD_ALIVE_INTERVAL 5*60 #define GSMD_ALIVE_TIMEOUT 30 @@ -238,7 +238,7 @@ int gsmd_initsettings(struct gsmd *gsmd) 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; -- cgit v1.2.3