gnokii-users
[Top][All Lists]
Advanced

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

smsd and Sagem RT30


From: Alastair Watts
Subject: smsd and Sagem RT30
Date: Tue, 08 Jul 2008 21:57:53 +0930

Hi guys,

I have a Sagem RT30 GSM device which talks AT commands to itself to read
status information from the GSM module.

The result is that this causes smsd to lose communication with the unit,
as smsd thinks that its commands are not getting through.

Is it possible to flush the serial input before sending each command
from smsd? Or parse all the input before throwing an error?

Gnokii version is 0.6.26, built from FreeBSD ports

Debug output from smsd (showing the conversation the unit has with
itself in the middle before the "lowlevel.c:461 error: 1, Command
failed." messages start):

Message sent: 0x61 / 0x000a
41 54 2b 43 53 43 53 3d 3f 0d                   | AT+CSCS=?       
write: [AT+CSCS=?<cr>]
read : [AT+CSCS=?<cr><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x0010
02 41 54 2b 43 53 43 53 3d 3f 0d 0d 0a 4f 4b 0d |  AT+CSCS=?   OK 
Received message type 61
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,30<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x0022
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d |  AT+CPMS?   +CPM
53 3a 22 53 4d 22 2c 30 2c 33 30 0d 0a 0d 0a 4f | S:"SM",0,30    O
4b 0d                                           | K               
Received message type 12
GN_OP_GetSMSStatus returned (number, unread) 0, 0
phoneMonitor 0
Message sent: 0x61 / 0x000a
41 54 2b 43 53 43 53 3d 3f 0d                   | AT+CSCS=?       
write: [AT+CSCS=?<cr>]
read : [AT+CSCS=?<cr><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x0010
02 41 54 2b 43 53 43 53 3d 3f 0d 0d 0a 4f 4b 0d |  AT+CSCS=?   OK 
Received message type 61
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,30<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x0022
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d |  AT+CPMS?   +CPM
53 3a 22 53 4d 22 2c 30 2c 33 30 0d 0a 0d 0a 4f | S:"SM",0,30    O
4b 0d                                           | K               
Received message type 12
GN_OP_GetSMSStatus returned (number, unread) 0, 0
phoneMonitor 0
Message sent: 0x61 / 0x000a
41 54 2b 43 53 43 53 3d 3f 0d                   | AT+CSCS=?       
write: [AT+CSCS=?<cr>]
read : [AT+CCFC=0,2<cr>AT+CCFC=0,2<cr>AT+CSCS=?<cr><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x0028
02 41 54 2b 43 43 46 43 3d 30 2c 32 0d 41 54 2b |  AT+CCFC=0,2 AT+
43 43 46 43 3d 30 2c 32 0d 41 54 2b 43 53 43 53 | CCFC=0,2 AT+CSCS
3d 3f 0d 0d 0a 4f 4b 0d                         | =?   OK         
Received message type 61
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,30<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x0022
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d |  AT+CPMS?   +CPM
53 3a 22 53 4d 22 2c 30 2c 33 30 0d 0a 0d 0a 4f | S:"SM",0,30    O
4b 0d                                           | K               
Received message type 12
GN_OP_GetSMSStatus returned (number, unread) 0, 0
phoneMonitor 0
Message sent: 0x61 / 0x000a
41 54 2b 43 53 43 53 3d 3f 0d                   | AT+CSCS=?       
write: [AT+CSCS=?<cr>]
read : [AT+CSCS=?<cr><cr><lf>+CCFC: 0<cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x001a
02 41 54 2b 43 53 43 53 3d 3f 0d 0d 0a 2b 43 43 |  AT+CSCS=?   +CC
46 43 3a 20 30 0d 0a 4f 4b 0d                   | FC: 0  OK       
Received message type 61
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d                      | AT+CPMS?        
write: [AT+CPMS?<cr>]
read : [OK<cr><lf>]
Message received: 0x12 / 0x0004
02 4f 4b 0d                                     |  OK             
Received message type 12
lowlevel.c:461 error: 1, Command failed.
Message sent: 0x61 / 0x000a
41 54 2b 43 53 43 53 3d 3f 0d                   | AT+CSCS=?       
write: [AT+CSCS=?<cr>]
read : [AT+DEC=0<cr>AT+CMER?<cr>APA=AT+CMER?<cr><cr><lf>+CMER:
1,1,0,2,0<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x0039
02 41 54 2b 44 45 43 3d 30 0d 41 54 2b 43 4d 45 |  AT+DEC=0 AT+CME
52 3f 0d 41 50 41 3d 41 54 2b 43 4d 45 52 3f 0d | R? APA=AT+CMER? 
0d 0a 2b 43 4d 45 52 3a 20 31 2c 31 2c 30 2c 32 |   +CMER: 1,1,0,2
2c 30 0d 0a 0d 0a 4f 4b 0d                      | ,0    OK        
Received message type 61
read : [AT+CIND?<cr>AT
+CIND?<cr><cr><lf>+CIND:5,5,1,0,0,0<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x002d
02 41 54 2b 43 49 4e 44 3f 0d 41 54 2b 43 49 4e |  AT+CIND? AT+CIN
44 3f 0d 0d 0a 2b 43 49 4e 44 3a 35 2c 35 2c 31 | D?   +CIND:5,5,1
2c 30 2c 30 2c 30 0d 0a 0d 0a 4f 4b 0d          | ,0,0,0    OK    
Received message type 61
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d                      | AT+CPMS?        
write: [AT+CPMS?<cr>]
read : [AT+CSCS=?<cr>AT+CPMS?<cr><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x0019
02 41 54 2b 43 53 43 53 3d 3f 0d 41 54 2b 43 50 |  AT+CSCS=? AT+CP
4d 53 3f 0d 0d 0a 4f 4b 0d                      | MS?   OK        
Received message type 12
lowlevel.c:461 error: 1, Command failed.
Message sent: 0x61 / 0x000a
41 54 2b 43 53 43 53 3d 3f 0d                   | AT+CSCS=?       
write: [AT+CSCS=?<cr>]
read : [+CPMS:"SM",0,30<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x0017
02 2b 43 50 4d 53 3a 22 53 4d 22 2c 30 2c 33 30 |  +CPMS:"SM",0,30
0d 0a 0d 0a 4f 4b 0d                            |     OK          
Received message type 61
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d                      | AT+CPMS?        
write: [AT+CPMS?<cr>]
read : [AT+CSCS=?<cr>AT+CPMS?<cr><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x0019
02 41 54 2b 43 53 43 53 3d 3f 0d 41 54 2b 43 50 |  AT+CSCS=? AT+CP
4d 53 3f 0d 0d 0a 4f 4b 0d                      | MS?   OK        
Received message type 12
lowlevel.c:461 error: 1, Command failed.
Message sent: 0x61 / 0x000a
41 54 2b 43 53 43 53 3d 3f 0d                   | AT+CSCS=?       
write: [AT+CSCS=?<cr>]
read : [+CPMS:"SM",0,30<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x0017
02 2b 43 50 4d 53 3a 22 53 4d 22 2c 30 2c 33 30 |  +CPMS:"SM",0,30
0d 0a 0d 0a 4f 4b 0d                            |     OK          
Received message type 61
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d                      | AT+CPMS?        
write: [AT+CPMS?<cr>]
read : [AT+CSCS=?<cr>AT+CPMS?<cr><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x0019
02 41 54 2b 43 53 43 53 3d 3f 0d 41 54 2b 43 50 |  AT+CSCS=? AT+CP
4d 53 3f 0d 0d 0a 4f 4b 0d                      | MS?   OK        
Received message type 12
lowlevel.c:461 error: 1, Command failed.
^CInserting Event: 2
Message sent: 0x61 / 0x000a
41 54 2b 43 53 43 53 3d 3f 0d                   | AT+CSCS=?       
write: [AT+CSCS=?<cr>]
read : [+CPMS:"SM",0,30<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x0017
02 2b 43 50 4d 53 3a 22 53 4d 22 2c 30 2c 33 30 |  +CPMS:"SM",0,30
0d 0a 0d 0a 4f 4b 0d                            |     OK          
Received message type 61
Message sent: 0x12 / 0x0009
41 54 2b 43 50 4d 53 3f 0d                      | AT+CPMS?        
write: [AT+CPMS?<cr>]
read : [AT+CSCS=?<cr>AT+CPMS?<cr><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x0019
02 41 54 2b 43 53 43 53 3d 3f 0d 41 54 2b 43 50 |  AT+CSCS=? AT+CP
4d 53 3f 0d 0d 0a 4f 4b 0d                      | MS?   OK        
Received message type 12
lowlevel.c:461 error: 1, Command failed.
Processing Event: 2
Serial device: closing device

Thanks!

Al





reply via email to

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