gnokii-users
[Top][All Lists]
Advanced

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

gnokii getsms fails and requires phone restart


From: Vieri
Subject: gnokii getsms fails and requires phone restart
Date: Tue, 21 Jul 2009 04:46:22 -0700 (PDT)

Hi,

I don't have a "real phone" but an SMS GSM "trac" with 1 SIM card.

gnokii --getsms has been working fine for a week but today it started failing. 
However, --sendsms kept working just fine.

I noticed that --getsms would repeatedly fail with:
TP-Parameter-Indicator: 0xcb

I tried changing serial port, baud rates, etc, but it didn't make any 
difference.

I had to physically reboot the GSM device (--reset hard|soft does not work) and 
all started working properly again and received TP-Parameter-Indicator: 0x00.

Here's the debug BEFORE rebooting the device:

# gnokii --phone usb0 --getsms SM 1
GNOKII Version 0.6.27
Couldn't read /root/.gnokiirc config file.
Couldn't read /root/.gnokiirc config file.
LOG: debug mask is 0x1
Config read from file /etc/gnokiirc.
phone instance config:
model = AT
port = /dev/ttyUSB0
connection = serial
initlength = default
serial_baudrate = 115200
serial_write_usleep = 5000
handshake = hardware
require_dcd = 0
smsc_timeout = 60
rfcomm_channel = 0
sm_retry = 0
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyUSB0
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 / 0x0007
41 54 2b 47 4d 4d 0d                            | AT+GMM
write: [AT+GMM<cr>]
read : [AT+GMM<cr><cr><lf>Nokia Card Phone RPM-3 
GSM900/1800<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0033
02 41 54 2b 47 4d 4d 0d 0d 0a 4e 6f 6b 69 61 20 |  AT+GMM   Nokia
43 61 72 64 20 50 68 6f 6e 65 20 52 50 4d 2d 33 | Card Phone RPM-3
20 47 53 4d 39 30 30 2f 31 38 30 30 0d 0a 0d 0a |  GSM900/1800
4f 4b 0d                                        | 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 Mobile Phones<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0025
02 41 54 2b 43 47 4d 49 0d 0d 0a 4e 6f 6b 69 61 |  AT+CGMI   Nokia
20 4d 6f 62 69 6c 65 20 50 68 6f 6e 65 73 0d 0a |  Mobile Phones
0d 0a 4f 4b 0d                                  |   OK
Received message type 06
Message sent: 0x61 / 0x0009
41 54 2b 43 53 43 53 3f 0d                      | AT+CSCS?
write: [AT+CSCS?<cr>]
read : [AT+CSCS?<cr><cr><lf>+CSCS: "PCCP437"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x0023
02 41 54 2b 43 53 43 53 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCS?   +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 61
Initialisation completed
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>+CSCS: 
("GSM","HEX","IRA","PCCP437","PCDN","8859-1")<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x0048
02 41 54 2b 43 53 43 53 3d 3f 0d 0d 0a 2b 43 53 |  AT+CSCS=?   +CS
43 53 3a 20 28 22 47 53 4d 22 2c 22 48 45 58 22 | CS: ("GSM","HEX"
2c 22 49 52 41 22 2c 22 50 43 43 50 34 33 37 22 | ,"IRA","PCCP437"
2c 22 50 43 44 4e 22 2c 22 38 38 35 39 2d 31 22 | ,"PCDN","8859-1"
29 0d 0a 0d 0a 4f 4b 0d                         | )    OK
Received message type 61
Message sent: 0x00 / 0x000e
41 54 2b 43 53 43 53 3d 22 47 53 4d 22 0d       | AT+CSCS="GSM"
write: [AT+CSCS="GSM"<cr>]
read : [AT+CSCS="GSM"<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0014
02 41 54 2b 43 53 43 53 3d 22 47 53 4d 22 0d 0d |  AT+CSCS="GSM"
0a 4f 4b 0d                                     |  OK
Received message type 00
Message sent: 0x00 / 0x000d
41 54 2b 43 50 4d 53 3d 22 53 4d 22 0d          | AT+CPMS="SM"
write: [AT+CPMS="SM"<cr>]
read : [AT+CPMS="SM"<cr><cr><lf>+CPMS: 2,30,2,30,2,30<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x002c
02 41 54 2b 43 50 4d 53 3d 22 53 4d 22 0d 0d 0a |  AT+CPMS="SM"
2b 43 50 4d 53 3a 20 32 2c 33 30 2c 32 2c 33 30 | +CPMS: 2,30,2,30
2c 32 2c 33 30 0d 0a 0d 0a 4f 4b 0d             | ,2,30    OK
Received message type 00
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: 
1,,27<cr><lf>07914306090909F906E1098126806313F9907012907241809070120150038000CBEEF3<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x18 / 0x0068
02 41 54 2b 43 4d 47 52 3d 31 0d 0d 0a 2b 43 4d |  AT+CMGR=1   +CM
47 52 3a 20 31 2c 2c 32 37 0d 0a 30 37 39 31 34 | GR: 1,,27  07914
33 30 36 30 39 30 39 30 39 46 39 30 36 45 31 30 | 306090909F906E10
39 38 31 32 36 38 30 36 33 31 33 46 39 39 30 37 | 98126806313F9907
30 31 32 39 30 37 32 34 31 38 30 39 30 37 30 31 | 0129072418090701
32 30 31 35 30 30 33 38 30 30 30 43 42 45 45 46 | 20150038000CBEEF
33 0d 0a 0d 0a 4f 4b 0d                         | 3    OK
Received message type 18
07914306090909F906E1098126806313F9907012907241809070120150038000CBEEF3
SMS-STATUS-REPORT found
TP-Parameter-Indicator: 0xcb
Phone gave as poisonous (too short?) reply, either phone went crazy or 
communication went out of sync
GetSMS SM 1 failed! (Problem occurred internal to model specific code.)
Serial device: closing device

Any ideas as to how to fix this without physically rebooting the device?

Thanks for your help,

Vieri



      




reply via email to

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