[Top][All Lists]

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

Re: gnokii does not send a sms with t68i (over serial)

From: Pavel Machek
Subject: Re: gnokii does not send a sms with t68i (over serial)
Date: Tue, 15 Jul 2003 16:44:48 +0200
User-agent: Mutt/1.5.3i


> Something is wrong with the AT driver:
> address@hidden:~# gnokii --identify
> GNOKII Version 0.5.2
> IMEI         : 350371457836238
> Manufacturer : ERICSSON
> Model        : 1130202-BVT68
> Revision     : R7A013      CXC125378

More details:

SMS Send failed (Command failed.)
address@hidden:/usr/src/gnokii# gnokii/gnokii --sendsms 604343XXX "Test message"
GNOKII Version 0.5.2
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>]
read : [AT+CGMM<cr><cr><lf>1130202-BVT68<cr><lf><cr><lf>OK<cr><lf>]
write: [AT+CGMI<cr>]
read : [AT+CGMI<cr><cr><lf>ERICSSON  <cr><lf><cr><lf>OK<cr><lf>]
write: [AT+CSCS?<cr>]
read : [AT+CSCS?<cr><cr><lf>+CSCS: "GSM"<cr><lf><cr><lf>OK<cr><lf>]
write: [AT+CSCA?<cr>]
read : [AT+CSCA?<cr><cr><lf>+CSCA:
Please enter SMS text. End your input with <cr><control-D>:foo
write: [AT+CMGF=0<cr>]
read : [AT+CMGF=0<cr><cr><lf>OK<cr><lf>]
write: [AT+CMGS=16<cr>]
read : [AT+CMGS=16<cr><cr><lf>> ]
write: [07910206929009F91100098106343401F30000AA03E6F71B^Z]
SMS Send failed (Command timed out.)
address@hidden:/usr/src/gnokii# gnokii/gnokii --identify
GNOKII Version 0.5.2
write: [ATZ<cr>]
read : [<cr><lf>+CMS ERROR: 500<cr><lf>]

Phone actually tries to transmit during that command, and it takes
*unusually* long. Way longer than normal sms send. We definitely
should have longer timeout for sms send, because otherwise error is
passed on *next* run of gnokii and it breaks things there.

I'm confused. Do I need bigger state->config.smsc_timeout? It seems to
be in centiseconds, with 10sec default -- that's too low. It seems
like I'm sending to nonexistent smscenter, or something like that, and
it takes ~50 seconds for phone to realize that. May I change default
to 50 seconds? [Patch below]

And... why it does not send message at all?

Index: Docs/sample/gnokiirc
RCS file: /cvsroot/gnokii/gnokii/Docs/sample/gnokiirc,v
retrieving revision 1.13
diff -u -u -r1.13 gnokiirc
--- Docs/sample/gnokiirc        28 Apr 2003 15:08:12 -0000      1.13
+++ Docs/sample/gnokiirc        15 Jul 2003 14:38:11 -0000
@@ -84,9 +84,9 @@
 # overloaded SMSCs. The phones waits for the response from the SMSC confirming
 # that it received the short message. When the SMSC is DoSed with many requests
 # it will take more time to get the response. Adjust it to your needs. The
-# value is given in seconds to wait. Defaults to 10 seconds. Set to 0 to wait
+# value is given in seconds to wait. Defaults to 50 seconds. Set to 0 to wait
 # forever.
-smsc_timeout = 10
+smsc_timeout = 50
 # Any entries in the following two sections will be set as environment
 # variables when running the scripts.
Index: common/cfgreader.c
RCS file: /cvsroot/gnokii/gnokii/common/cfgreader.c,v
retrieving revision 1.42
diff -u -u -r1.42 cfgreader.c
--- common/cfgreader.c  28 Apr 2003 15:08:12 -0000      1.42
+++ common/cfgreader.c  15 Jul 2003 14:38:29 -0000
@@ -446,7 +446,7 @@
        /* hack to support [sms] / smsc_timeout parameter */
        if (gn_config_global.smsc_timeout < 0) {
                if (!(val = gn_cfg_get(gn_cfg_info, "sms", "timeout")))
-                       gn_config_global.smsc_timeout = 100;
+                       gn_config_global.smsc_timeout = 500;
                        gn_config_global.smsc_timeout = 10 * atoi(val);

When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

reply via email to

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