gnokii-users
[Top][All Lists]
Advanced

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

Re: Digicom Pocket GSM serial modem - PART III: Last famous words


From: R.C.
Subject: Re: Digicom Pocket GSM serial modem - PART III: Last famous words
Date: Tue, 12 Sep 2006 00:00:33 +0200

Dear Daniele,

checked twice the patched code but found no errors,
so I checked the .gnokiirc.

I set serial_write_usleep = 10000 for my Motorola
V360 work via BT; but this seems way too much for
the serial Digicom.
Any value between -1 and 5000 seems suitable for
the Digicom when in idle state (waiting for incoming
messages to arrive).
When a message arrives, a new error appears.
This one doesn't prevent SMSD from correctly retrieve
the message, but it's still present and makes me wonder
about a high-load situation.

Here is the log:
===========
..
---omissis---(initialization and multiple +CPMS queries)----
..
41 54 2b 43 50 4d 53 3f 0d | AT+CPMS?
write: [AT+CPMS?<cr>]
read : [AT+CPMS?<cr><cr><lf>+CPMS: "SM",0,10,"SM",0,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x002d
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d | AT+CPMS? +CPM
53 3a 20 22 53 4d 22 2c 30 2c 31 30 2c 22 53 4d | S: "SM",0,10,"SM
22 2c 30 2c 31 30 0d 0a 0d 0a 4f 4b 0d | ",0,10 OK
Received message type 12
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d | AT+CPMS?
write: [AT+CPMS?<cr>]
read : [AT+CPMS?<cr><cr><lf>+CPMS: "SM",0,10,"SM",0,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x002d
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d | AT+CPMS? +CPM
53 3a 20 22 53 4d 22 2c 30 2c 31 30 2c 22 53 4d | S: "SM",0,10,"SM
22 2c 30 2c 31 30 0d 0a 0d 0a 4f 4b 0d | ",0,10 OK
Received message type 12
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d | AT+CPMS?
write: [AT+CPMS?<cr>]
read : [+CMTI: "SM",1<cr><lf>AT+CPMS?<cr><cr><lf>+CPMS: "SM",1,10,"SM",1,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x003c
02 2b 43 4d 54 49 3a 20 22 53 4d 22 2c 31 0d 0a | +CMTI: "SM",1
41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d 53 | AT+CPMS? +CPMS
3a 20 22 53 4d 22 2c 31 2c 31 30 2c 22 53 4d 22 | : "SM",1,10,"SM"
2c 31 2c 31 30 0d 0a 0d 0a 4f 4b 0d | ,1,10 OK
Received message type 12
GN_OP_GetSMSStatus at line 400 in file lowlevel.c returns error 1
Restarting connection.Serial device: closing device
Opened configuration file /root/.gnokiirc
...
--omissis---(normal initialization sequence)---
...
Initialisation completed
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 4d 0d | AT+CGMM
write: [AT+CGMM<cr>]
read : [AT+CGMM<cr><cr><lf> MULTIBAND 900E 1800 <cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0029
02 41 54 2b 43 47 4d 4d 0d 0d 0a 20 4d 55 4c 54 | AT+CGMM MULT
49 42 41 4e 44 20 20 39 30 30 45 20 20 31 38 30 | IBAND 900E 180
30 20 0d 0a 0d 0a 4f 4b 0d | 0 OK
Received message type 06
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d | AT+CPMS?
write: [AT+CPMS?<cr>]
read : [AT+CPMS?<cr><cr><lf>+CPMS: "SM",1,10,"SM",1,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x002d
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d | AT+CPMS? +CPM
53 3a 20 22 53 4d 22 2c 31 2c 31 30 2c 22 53 4d | S: "SM",1,10,"SM
22 2c 31 2c 31 30 0d 0a 0d 0a 4f 4b 0d | ",1,10 OK
Received message type 12
Message sent: 0x00 / 0x0017
41 54 2b 43 50 4d 53 3d 22 53 4d 22 2c 22 53 4d | AT+CPMS="SM","SM
22 0d 00 00 b4 f3 da | "
write: [AT+CPMS="SM","SM"<cr>address@hidden@^�3^]
read : [AT+CPMS="SM","SM"<cr>^@<cr><lf>+CPMS: 1,10,1,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x002d
02 41 54 2b 43 50 4d 53 3d 22 53 4d 22 2c 22 53 | AT+CPMS="SM","S
4d 22 0d 00 0d 0a 2b 43 50 4d 53 3a 20 31 2c 31 | M" +CPMS: 1,1
30 2c 31 2c 31 30 0d 0a 0d 0a 4f 4b 0d | 0,1,10 OK
Received message type 00
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d | AT+CPMS?
write: [AT+CPMS?<cr>]
read : [AT+CPMS?<cr><cr><lf>+CPMS: "SM",1,10,"SM",1,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x002d
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d | AT+CPMS? +CPM
53 3a 20 22 53 4d 22 2c 31 2c 31 30 2c 22 53 4d | S: "SM",1,10,"SM
22 2c 31 2c 31 30 0d 0a 0d 0a 4f 4b 0d | ",1,10 OK
Received message type 12
Message sent: 0x63 / 0x000a
41 54 2b 43 4d 47 46 3d 30 0d | AT+CMGF=0
write: [AT+CMGF=0<cr>]
read : [AT+CMGF=0<cr><cr><lf>OK<cr><lf>]
Message received: 0x63 / 0x0010
02 41 54 2b 43 4d 47 46 3d 30 0d 0d 0a 4f 4b 0d | AT+CMGF=0 OK
Received message type 63
PDU mode set
Message sent: 0x18 / 0x000a
41 54 2b 43 4d 47 52 3d 31 0d | AT+CMGR=1
write: [AT+CMGR=1<cr>]
read : [AT+CMGR=1<cr><cr><lf>+CMGR: 0,,68<cr><lf>0791932350591211040C9193235949491600006090113232708037D332C8FD7683E0F5771A642FBBD3F232A8ECA6CBDFA0F7F99C66C1DF727AB89D06A5D9A0F1DB4D7FBB86C1E9B448A50601<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x18 / 0x00ba
02 41 54 2b 43 4d 47 52 3d 31 0d 0d 0a 2b 43 4d | AT+CMGR=1 +CM
47 52 3a 20 30 2c 2c 36 38 0d 0a 30 37 39 31 39 | GR: 0,,68 07919
33 32 33 35 30 35 39 31 32 31 31 30 34 30 43 39 | 32350591211040C9
31 39 33 32 33 35 39 34 39 34 39 31 36 30 30 30 | 1932359494916000
30 36 30 39 30 31 31 33 32 33 32 37 30 38 30 33 | 0609011323270803
37 44 33 33 32 43 38 46 44 37 36 38 33 45 30 46 | 7D332C8FD7683E0F
35 37 37 31 41 36 34 32 46 42 42 44 33 46 32 33 | 5771A642FBBD3F23
32 41 38 45 43 41 36 43 42 44 46 41 30 46 37 46 | 2A8ECA6CBDFA0F7F
39 39 43 36 36 43 31 44 46 37 32 37 41 42 38 39 | 99C66C1DF727AB89
44 30 36 41 35 44 39 41 30 46 31 44 42 34 44 37 | D06A5D9A0F1DB4D7
46 42 42 38 36 43 31 45 39 42 34 34 38 41 35 30 | FBB86C1E9B448A50
36 30 31 0d 0a 0d 0a 4f 4b 0d | 601 OK
Received message type 18
0791932350591211040C9193235949491600006090113232708037D332C8FD7683E0F5771A642FBBD3F232A8ECA6CBDFA0F7F99C66C1DF727AB89D06A5D9A0F1DB4D7FBB86C1E9B448A50601
Mobile Terminated message:
Date: 2006-09-11 23:23:07 +0200
Remote number (recipient or sender): +xxxxxxx
SMS center number: +xxxxxxxx
Default Alphabet
Se non puoi venire entro oggi,portami il conto.
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d | AT+CPMS?
write: [AT+CPMS?<cr>]
read : [AT+CPMS?<cr><cr><lf>+CPMS: "SM",1,10,"SM",1,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x002d
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d | AT+CPMS? +CPM
53 3a 20 22 53 4d 22 2c 31 2c 31 30 2c 22 53 4d | S: "SM",1,10,"SM
22 2c 31 2c 31 30 0d 0a 0d 0a 4f 4b 0d | ",1,10 OK
Received message type 12
Message sent: 0x20 / 0x000a
41 54 2b 43 4d 47 44 3d 31 0d | AT+CMGD=1
write: [AT+CMGD=1<cr>]
read : [AT+CMGD=1<cr><cr><lf>OK<cr><lf>]
Message received: 0x20 / 0x0010
02 41 54 2b 43 4d 47 44 3d 31 0d 0d 0a 4f 4b 0d | AT+CMGD=1 OK
Received message type 20
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d | AT+CPMS?
write: [AT+CPMS?<cr>]
read : [AT+CPMS?<cr><cr><lf>+CPMS: "SM",0,10,"SM",0,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x002d
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d | AT+CPMS? +CPM
53 3a 20 22 53 4d 22 2c 30 2c 31 30 2c 22 53 4d | S: "SM",0,10,"SM
22 2c 30 2c 31 30 0d 0a 0d 0a 4f 4b 0d | ",0,10 OK
Received message type 12
Message sent: 0x63 / 0x000a
41 54 2b 43 4d 47 46 3d 30 0d | AT+CMGF=0
write: [AT+CMGF=0<cr>]
read : [AT+CMGF=0<cr><cr><lf>OK<cr><lf>]
Message received: 0x63 / 0x0010
02 41 54 2b 43 4d 47 46 3d 30 0d 0d 0a 4f 4b 0d | AT+CMGF=0 OK
Received message type 63
PDU mode set
Message sent: 0x18 / 0x000a
41 54 2b 43 4d 47 52 3d 31 0d | AT+CMGR=1
write: [AT+CMGR=1<cr>]
read : [^AA+CMGR=1<cr><cr><lf>+CMS ERROR: 321<cr><lf>]
Message received: 0x18 / 0x001d
04 01 41 2b 43 4d 47 52 3d 31 0d 0d 0a 2b 43 4d | A+CMGR=1 +CM
53 20 45 52 52 4f 52 3a 20 33 32 31 0d | S ERROR: 321
Received message type 18
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d | AT+CPMS?
write: [AT+CPMS?<cr>]
read : [AT+CPMS?<cr><cr><lf>+CPMS: "SM",0,10,"SM",0,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x002d
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d | AT+CPMS? +CPM
53 3a 20 22 53 4d 22 2c 30 2c 31 30 2c 22 53 4d | S: "SM",0,10,"SM
22 2c 30 2c 31 30 0d 0a 0d 0a 4f 4b 0d | ",0,10 OK
Received message type 12
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d | AT+CPMS?
write: [AT+CPMS?<cr>]
read : [AT+CPMS?<cr><cr><lf>+CPMS: "SM",0,10,"SM",0,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x002d
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d | AT+CPMS? +CPM
53 3a 20 22 53 4d 22 2c 30 2c 31 30 2c 22 53 4d | S: "SM",0,10,"SM
22 2c 30 2c 31 30 0d 0a 0d 0a 4f 4b 0d | ",0,10 OK
Received message type 12
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d | AT+CPMS?
write: [AT+CPMS?<cr>]
read : [AT+CPMS?<cr><cr><lf>+CPMS: "SM",0,10,"SM",0,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x002d
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d | AT+CPMS? +CPM
53 3a 20 22 53 4d 22 2c 30 2c 31 30 2c 22 53 4d | S: "SM",0,10,"SM
22 2c 30 2c 31 30 0d 0a 0d 0a 4f 4b 0d | ",0,10 OK
Received message type 12
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d | AT+CPMS?
write: [AT+CPMS?<cr>]
read : [AT+CPMS?<cr><cr><lf>+CPMS: "SM",0,10,"SM",0,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x002d
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d | AT+CPMS? +CPM
53 3a 20 22 53 4d 22 2c 30 2c 31 30 2c 22 53 4d | S: "SM",0,10,"SM
22 2c 30 2c 31 30 0d 0a 0d 0a 4f 4b 0d | ",0,10 OK
Received message type 12
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d | AT+CPMS?
write: [AT+CPMS?<cr>]
read : [AT+CPMS?<cr><cr><lf>+CPMS: "SM",0,10,"SM",0,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x002d
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d | AT+CPMS? +CPM
53 3a 20 22 53 4d 22 2c 30 2c 31 30 2c 22 53 4d | S: "SM",0,10,"SM
22 2c 30 2c 31 30 0d 0a 0d 0a 4f 4b 0d | ",0,10 OK
Received message type 12
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d | AT+CPMS?
write: [AT+CPMS?<cr>]
read : [AT+CPMS?<cr><cr><lf>+CPMS: "SM",0,10,"SM",0,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x002d
...
--- etc.... ----
=====LOG END====

Thanks again for your support

Regards

Raffaello


R.C. wrote:

I have then compiled smsd but the effects of the patch
are quite strange.

Message sent: 0x00 / 0x0017
41 54 2b 43 50 4d 53 3d 22 53 4d 22 2c 22 53 4d | AT+CPMS="SM","SM
22 0d 00 00 b4 53 de                            | "    S
write: [AT+CPMS="SM","SM"<cr>address@hidden@^ôS^]

there is traling garbage

read : [AT+CPMS="SM","SM"<cr><cr><lf>+CPMS:
3,10,3,10<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x002c
02 41 54 2b 43 50 4d 53 3d 22 53 4d 22 2c 22 53 |  AT+CPMS="SM","S
4d 22 0d 0d 0a 2b 43 50 4d 53 3a 20 33 2c 31 30 | M"   +CPMS: 3,10
2c 33 2c 31 30 0d 0a 0d 0a 4f 4b 0d             | ,3,10    OK
Received message type 00
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d                      | AT+CPMS?
write: [AT+CPMS?<cr>]
read : address@hidden@^ôS^AT+CPMS?<cr><cr><lf>+CPMS:
"SM",3,10,"SM",3,10<cr><lf><cr><lf>OK<cr><lf>]

here that garbage is echoed back by the phone and the driver misses the
AT+CPMS part and reports an error

Message received: 0x12 / 0x0032
02 00 00 b4 53 de 41 54 2b 43 50 4d 53 3f 0d 0d |     S AT+CPMS?
0a 2b 43 50 4d 53 3a 20 22 53 4d 22 2c 33 2c 31 |  +CPMS: "SM",3,1
30 2c 22 53 4d 22 2c 33 2c 31 30 0d 0a 0d 0a 4f | 0,"SM",3,10    O
4b 0d                                           | K
Received message type 12
GN_OP_GetSMSStatus at line 400 in file lowlevel.c returns error 1

check the format string you changed, there must be only two %s directives:

sprintf(req, "AT+CPMS=\"%s\",\"%s\"\r", memorynames[mt], memorynames[mt]);
--
Daniele




------------------------------

_______________________________________________
gnokii-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/gnokii-users


End of gnokii-users Digest, Vol 46, Issue 12
********************************************






reply via email to

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