gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnokii-0.6.1 and Nokia AT


From: BORBELY Zoltan
Subject: Re: gnokii-0.6.1 and Nokia AT
Date: Sun, 19 Dec 2004 18:00:01 +0100
User-agent: Mutt/1.4.1i

Hi,

On Sun, May 16, 2004 at 12:01:01AM +0200, Hadmut Danisch wrote:
> connnection   = dlr3p
> model         = AT
> 
> 
> then it works like this:
> 
> % gnokii --getphonebook ME 1 end
> GNOKII Version 0.6.1
> write: [ATZ<cr>]
> read : [ATZ<cr><cr><lf>OK<cr><lf>]
> write: [ATE1<cr>]
> read : [ATE1<cr><cr><lf>OK<cr><lf>]
> write: [AT+CGMM<cr>]
> 
> 
> (takes some time)
> Telephone interface init failed: Command timed out.
> Quitting.
> 
> 
> 
> Tracing the last command shows
> 
> write(2, "write: [AT+CGMM<cr>]\n", 21)  = 21
> write(5, "AT+CGMM\r", 8)                = 8
> gettimeofday({1084658569, 528287}, NULL) = 0
> select(6, [5], NULL, NULL, {0, 100000}) = 1 (in [5], left {0, 69000})
> read(5, "AT+CGMM\r", 255)               = 8
> gettimeofday({1084658569, 558791}, NULL) = 0
> select(6, [5], NULL, NULL, {0, 100000}) = 1 (in [5], left {0, 88000})
> read(5, "\r\r\nNokia 6310i\r\n\r", 255) = 17

Quite strange. Maybe your modem profile contains ATQ1, which prohibits
result code messages (but the previous commands got an OK answer, so
I'm confused). You can try issue the following AT commands:

    ATZ
    ATQ0
    AT&W

or apply the following patch to 0.6.4:

--- 8< ---
diff -ru --exclude=CVS gnokii-cvs/common/phones/atgen.c gnokii-devel/common/phon
es/atgen.c
--- gnokii-cvs/common/phones/atgen.c    2004-10-01 14:31:32.000000000 +0200
+++ gnokii-devel/common/phones/atgen.c  2004-12-19 17:40:05.000000000 +0100
@@ -345,7 +345,7 @@
 
 static gn_error SetEcho(gn_data *data, struct gn_statemachine *state)
 {
-       if (sm_message_send(5, GN_OP_Init, "ATE1\r", state)) return 
GN_ERR_NOTREADY;
+       if (sm_message_send(9, GN_OP_Init, "ATE1Q0V1\r", state)) return 
GN_ERR_NOTREADY;
        return sm_block_no_retry(GN_OP_Init, data, state);
 }

--- 8< ---

Bye,
Bozo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]