gnokii-users
[Top][All Lists]
Advanced

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

smsd and nokia 6310i


From: Łukasz Michalski
Subject: smsd and nokia 6310i
Date: Tue, 13 Sep 2005 09:35:19 +0200
User-agent: KMail/1.8.1

Hi,

I am using to use smsd with nokia 6310i. It works for a while, but when any 
call is received or after some time something gets wrong and every sms 
message that is delivered to phone is placed twice in database.

LOG: debug mask is 0x1
Lockfile /var/lock/LCK..ttyS0 is stale. Overriding it..
phone instance config:
model: AT
port_device: /dev/ttyS0
connection_type: 0
init_length: 0
serial_baudrate: 19200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script: 
disconnect_script: 
rfcomm_cn: 1
sm_retry: off
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyS0
Serial device: setting RTS to high and DTR to high
Message sent: 0x00 / 0x0004
41 54 5a 0d                                     | ATZ             
write: [ATZ<cr>]
read : [ATZ<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x000a
02 41 54 5a 0d 0d 0a 4f 4b 0d                   |  ATZ   OK       
Received message type 00
Message sent: 0x00 / 0x0005
41 54 45 31 0d                                  | ATE1            
write: [ATE1<cr>]
read : [ATE1<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x000b
02 41 54 45 31 0d 0d 0a 4f 4b 0d                |  ATE1   OK      
Received message type 00
Message sent: 0x00 / 0x000a
41 54 2b 43 4d 45 45 3d 31 0d                   | AT+CMEE=1       
write: [AT+CMEE=1<cr>]
read : [AT+CMEE=1<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0010
02 41 54 2b 43 4d 45 45 3d 31 0d 0d 0a 4f 4b 0d |  AT+CMEE=1   OK 
Received message type 00
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 4d 0d                         | AT+CGMM         
write: [AT+CGMM<cr>]
read : [AT+CGMM<cr><cr><lf>Nokia 6310i<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x001d
02 41 54 2b 43 47 4d 4d 0d 0d 0a 4e 6f 6b 69 61 |  AT+CGMM   Nokia
20 36 33 31 30 69 0d 0a 0d 0a 4f 4b 0d          |  6310i    OK    
Received message type 06
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 49 0d                         | AT+CGMI         
write: [AT+CGMI<cr>]
read : [AT+CGMI<cr><cr><lf>Nokia<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0017
02 41 54 2b 43 47 4d 49 0d 0d 0a 4e 6f 6b 69 61 |  AT+CGMI   Nokia
0d 0a 0d 0a 4f 4b 0d                            |     OK          
Received message type 06
Message sent: 0x5e / 0x0009
41 54 2b 43 53 43 53 3f 0d                      | AT+CSCS?        
write: [AT+CSCS?<cr>]
read : [AT+CSCS?3<cr><lf>+CSCS: "PCCP437"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x5e / 0x0023
02 41 54 2b 43 53 43 53 3f 33 0d 0a 2b 43 53 43 |  AT+CSCS?3  +CSC
53 3a 20 22 50 43 43 50 34 33 37 22 0d 0a 0d 0a | S: "PCCP437"    
4f 4b 0d                                        | OK              
Received message type 5e
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>Nokia 6310i<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x001d
02 41 54 2b 43 47 4d 4d 0d 0d 0a 4e 6f 6b 69 61 |  AT+CGMM   Nokia
20 36 33 31 30 69 0d 0a 0d 0a 4f 4b 0d          |  6310i    OK    
Received message type 06
comparing "Nokia 6310i" and ""
comparing "Nokia 6310i" and "NHX-7"

[...] //lots of "comparing Nokia 6310i and X" here

comparing "Nokia 6310i" and "SX1"
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,20,"SM",0,20,"MT",0,170<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x0038
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 32 30 2c 22 53 4d | S: "SM",0,20,"SM
22 2c 30 2c 32 30 2c 22 4d 54 22 2c 30 2c 31 37 | ",0,20,"MT",0,17
30 0d 0a 0d 0a 4f 4b 0d                         | 0    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 2c 22 4d 54 22 0d                            | ","MT"          
write: [AT+CPMS="SM","SM","MT"<cr>]
read : [AT+CPMS="SM","SM","MT"<cr><cr><lf>+CPMS: 
0,20,0,20,0,170<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0037
02 41 54 2b 43 50 4d 53 3d 22 53 4d 22 2c 22 53 |  AT+CPMS="SM","S
4d 22 2c 22 4d 54 22 0d 0d 0a 2b 43 50 4d 53 3a | M","MT"   +CPMS:
20 30 2c 32 30 2c 30 2c 32 30 2c 30 2c 31 37 30 |  0,20,0,20,0,170
0d 0a 0d 0a 4f 4b 0d                            |     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",0,20,"SM",0,20,"MT",0,170<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x0038
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 32 30 2c 22 53 4d | S: "SM",0,20,"SM
22 2c 30 2c 32 30 2c 22 4d 54 22 2c 30 2c 31 37 | ",0,20,"MT",0,17
30 0d 0a 0d 0a 4f 4b 0d                         | 0    OK         
Received message type 12

Now phone is waiting for sms messages.... all messages are properly stored in 
database until....

write: [AT+CPMS?<cr>]
read : [AT+CPMS?<cr><cr><lf>+CPMS: 
"SM",0,20,"SM",0,20,"MT",0,170<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x0038
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 32 30 2c 22 53 4d | S: "SM",0,20,"SM
22 2c 30 2c 32 30 2c 22 4d 54 22 2c 30 2c 31 37 | ",0,20,"MT",0,17
30 0d 0a 0d 0a 4f 4b 0d                         | 0    OK
Received message type 12
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d                      | AT+CPMS?
write: [AT+CPMS?<cr>]
GN_OP_GetSMSStatus at line 432 in file lowlevel.c returns error 11
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
And from this point smsd is inserting two records for every received sms 
message.

Entering dumb mode.Message sent: 0x60 / 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: 0x60 / 0x0013
02 89 89 89 41 54 2b 43 4d 47 46 3d 30 0d 0d 0a |     AT+CMGF=0
4f 4b 0d                                        | OK
Received message type 60
PDU mode set
AT+CMGR=1^MMessage 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: 0x60 / 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: 0x60 / 0x0010
02 41 54 2b 43 4d 47 46 3d 30 0d 0d 0a 4f 4b 0d |  AT+CMGF=0   OK
Received message type 60
PDU mode set


Can anyone advise me how to fix or workaround this problem?

I noticed that "entering dumb mode" occurs immediately after I call phone 
connected to smsd.

Regards,
Łukasz





reply via email to

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