[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnokii getsms fails and requires phone restart
From: |
Vieri |
Subject: |
Re: gnokii getsms fails and requires phone restart |
Date: |
Thu, 23 Jul 2009 00:24:22 -0700 (PDT) |
--- On Tue, 7/21/09, Daniele Forsi <address@hidden> wrote:
>
> > I noticed that --getsms would repeatedly fail with:
> > TP-Parameter-Indicator: 0xcb
>
> there was a bug in the code handling status reports (a ++
> in the wrong
> line made the code read data from the wrong places)
>
> if you want to test it:
> http://git.savannah.gnu.org/cgit/gnokii.git
> if you want to retrofit this fix in your current version
> (not
> recommended), you can find a patch attached to this
> message
Hi,
I applied the patch and verified the code. Recompiled and installed. Now I'm
running the patched version but stumbled on another TP-PI error.
Here's the debug log:
# 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: 1,30,1,30,1,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 31 2c 33 30 2c 31 2c 33 30 | +CPMS: 1,30,1,30
2c 31 2c 33 30 0d 0a 0d 0a 4f 4b 0d | ,1,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,,28<cr><lf>07914306090909F906F1098126697260F3907032906171809070329061918000E72036BB<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x18 / 0x006a
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 38 0d 0a 30 37 39 31 34 | GR: 1,,28 07914
33 30 36 30 39 30 39 30 39 46 39 30 36 46 31 30 | 306090909F906F10
39 38 31 32 36 36 39 37 32 36 30 46 33 39 30 37 | 98126697260F3907
30 33 32 39 30 36 31 37 31 38 30 39 30 37 30 33 | 0329061718090703
32 39 30 36 31 39 31 38 30 30 30 45 37 32 30 33 | 29061918000E7203
36 42 42 0d 0a 0d 0a 4f 4b 0d | 6BB OK
Received message type 18
07914306090909F906F1098126697260F3907032906171809070329061918000E72036BB
SMS-STATUS-REPORT found
TP-Parameter-Indicator: 0xe7
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?
Thanks,
Vieri