summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-08-17 10:02:02 +0000
committerlaforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-08-17 10:02:02 +0000
commitbdd62a21ce56cacb4859402565866f1d93694d48 (patch)
treeee0eeb7d3e5d4dcc8e699c3dc331748940aa387c
parent5f80949dc6856f8bb16b3b2405886c5c1b7d6c91 (diff)
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
-rw-r--r--src/gsmd/gsmd.c4
1 files 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 <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 @@ 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;
personal git repositories of Harald Welte. Your mileage may vary