gnokii-users
[Top][All Lists]
Advanced

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

SMS reading from Nokia 3120 Classic


From: John Doe
Subject: SMS reading from Nokia 3120 Classic
Date: Tue, 2 Jun 2009 23:32:40 +0000

Hi!

After a little experimentation, Ubuntu 8.10 and Nokia 3120 classic
started to partially acknowledge each other, but something is still
not right when trying to read an SMS from the phone. Connection is made
by original Nokia CA-126 cable, which, although it seems to not be
mentioned on the Wiki page (http://wiki.gnokii.org/index.php/Cables),
appears to be quite similar to CA-101. Only difference could be that
126 has the small charger plug, since 3120 Classic will not apparently
charge via its USB connector.

So, when plugged in, the corresponding device appears and, as can be
seen, that connects us to the phone. There are messages in phone, one
multimedia (or such, am not totally sure about those), one normal SMS
and even one unread SMS. Plenty to choose from, but when trying to read,
nothing works. Have tried memories ME and SM, locations 0 and 1 (are
those the right ones to try? have not seen any documentation about
memory enumeration practices - only that something should replace
'start'). I think the problems start from --showsmsfolderstatus, which
seems not to find any folders. Am I on right track?

Here we go with the session logs; updating to CVS version was easy, so
went with that - thanks for the CVS upgrade page!

      -- J.


gnokdir$ grep -v '^#' ~/.gnokiirc | grep -v '^$'
[global]
port = /dev/ttyACM0
model = AT
initlength = default
connection = serial
use_locking = yes
serial_baudrate = 19200
smsc_timeout = 10
[xgnokii]
allow_breakage = 0
[gnokiid]
bindir = /usr/local/sbin/
[connect_script]
TELEPHONE = 12345678
[disconnect_script]
[logging]
debug = on
rlpdebug = off
xdebug = off


gnokdir$ ./gnokii --version
GNOKII Version 0.6.28cvs
Copyright (C) Hugh Blemings <address@hidden>, 1999, 2000
Copyright (C) Pavel Janik ml. <address@hidden>, 1999, 2000
Copyright (C) Pavel Machek <address@hidden>, 2001
Copyright (C) Pawel Kot <address@hidden>, 2001-2009
Copyright (C) BORBELY Zoltan <address@hidden>, 2002
Copyright (C) Daniele Forsi <address@hidden>, 2004-2009
gnokii is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for gnokii.  See GPL for details.
Built 23:15:37 May 29 2009


gnokdir$ ./gnokii --identify
GNOKII Version 0.6.28cvs
LOG: debug mask is 0x1
Config read from file /home/___/.gnokiirc.
phone instance config:
model = AT
port = /dev/ttyACM0
connection = serial
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyACM0
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 3120 classic<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0023
02 41 54 2b 47 4d 4d 0d 0d 0a 4e 6f 6b 69 61 20 |  AT+GMM   Nokia
33 31 32 30 20 63 6c 61 73 73 69 63 0d 0a 0d 0a | 3120 classic
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<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: 0x63 / 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: 0x63 / 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 63
Initialisation completed
Message sent: 0x06 / 0x0007
41 54 2b 47 4d 4d 0d                            | AT+GMM
write: [AT+GMM<cr>]
read : [AT+GMM<cr><cr><lf>Nokia 3120 classic<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0023
02 41 54 2b 47 4d 4d 0d 0d 0a 4e 6f 6b 69 61 20 |  AT+GMM   Nokia
33 31 32 30 20 63 6c 61 73 73 69 63 0d 0a 0d 0a | 3120 classic
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<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: 0x06 / 0x0008
41 54 2b 43 47 4d 52 0d                         | AT+CGMR
write: [AT+CGMR<cr>]
read : [AT+CGMR<cr><cr><lf>V
09.41<cr><lf>06-11-08<cr><lf>RM-365<cr><lf>(c) Nokia
<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0042
02 41 54 2b 43 47 4d 52 0d 0d 0a 56 20 30 39 2e |  AT+CGMR   V 09.
34 31 0d 0a 30 36 2d 31 31 2d 30 38 0d 0a 52 4d | 41  06-11-08  RM
2d 33 36 35 0d 0a 28 63 29 20 4e 6f 6b 69 61 20 | -365  (c) Nokia
20 20 20 20 20 20 20 20 20 20 20 0d 0a 0d 0a 4f |                O
4b 0d                                           | K
Received message type 06
Message sent: 0x06 / 0x0008
41 54 2b 43 47 53 4e 0d                         | AT+CGSN
write: [AT+CGSN<cr>]
read : [AT+CGSN<cr><cr><lf>355723026815595<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0021
02 41 54 2b 43 47 53 4e 0d 0d 0a __ __ __ __ __ |  AT+CGSN   _____
__ __ __ __ __ __ __ __ __ __ 0d 0a 0d 0a 4f 4b | __________    OK
0d                                              |
Received message type 06
IMEI         : _______________
Manufacturer : Nokia
Model        : Nokia 3120 classic
Product name : Nokia 3120 classic
Revision     : V 09.41
Serial device: closing device


gnokdir$ ./gnokii --showsmsfolderstatus
GNOKII Version 0.6.28cvs
LOG: debug mask is 0x1
Config read from file /home/___/.gnokiirc.
phone instance config:
model = AT
port = /dev/ttyACM0
connection = serial
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyACM0
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 3120 classic<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0023
02 41 54 2b 47 4d 4d 0d 0d 0a 4e 6f 6b 69 61 20 |  AT+GMM   Nokia
33 31 32 30 20 63 6c 61 73 73 69 63 0d 0a 0d 0a | 3120 classic
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<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: 0x63 / 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: 0x63 / 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 63
Initialisation completed
Message sent: 0x1a / 0x000a
41 54 2b 43 50 4d 53 3d 3f 0d                   | AT+CPMS=?
write: [AT+CPMS=?<cr>]
read : [AT+CPMS=?<cr><cr><lf>+CPMS: (),(),()<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x1a / 0x0023
02 41 54 2b 43 50 4d 53 3d 3f 0d 0d 0a 2b 43 50 |  AT+CPMS=?   +CP
4d 53 3a 20 28 29 2c 28 29 2c 28 29 0d 0a 0d 0a | MS: (),(),()
4f 4b 0d                                        | OK
Received message type 1a
strings[0] =
strings[1] = (null)
strings[2] = (null)
strings[3] = (null)
Ignoring unknown memory type "".
No. Name                                         Id #Msg
========================================================
Serial device: closing device


gnokdir$ ./gnokii --getsms ME 1
GNOKII Version 0.6.28cvs
LOG: debug mask is 0x1
Config read from file /home/___/.gnokiirc.
phone instance config:
model = AT
port = /dev/ttyACM0
connection = serial
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyACM0
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 3120 classic<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0023
02 41 54 2b 47 4d 4d 0d 0d 0a 4e 6f 6b 69 61 20 |  AT+GMM   Nokia
33 31 32 30 20 63 6c 61 73 73 69 63 0d 0a 0d 0a | 3120 classic
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<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: 0x63 / 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: 0x63 / 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 63
Initialisation completed
Getting message #1 from ME
Message sent: 0x63 / 0x000a
41 54 2b 43 53 43 53 3d 3f 0d                   | AT+CSCS=?
write: [AT+CSCS=?<cr>]
read : [AT+CSCS=?<cr><cr><lf>+CSCS:
("UCS2","GSM","PCCP437","PCDN","IRA","8859-1","HEX")<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x63 / 0x004f
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 55 43 53 32 22 2c 22 47 53 4d | CS: ("UCS2","GSM
22 2c 22 50 43 43 50 34 33 37 22 2c 22 50 43 44 | ","PCCP437","PCD
4e 22 2c 22 49 52 41 22 2c 22 38 38 35 39 2d 31 | N","IRA","8859-1
22 2c 22 48 45 58 22 29 0d 0a 0d 0a 4f 4b 0d    | ","HEX")    OK
Received message type 63
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 4d 45 22 0d          | AT+CPMS="ME"
write: [AT+CPMS="ME"<cr>]
read : [AT+CPMS="ME"<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x00 / 0x0016
03 41 54 2b 43 50 4d 53 3d 22 4d 45 22 0d 0d 0a |  AT+CPMS="ME"
45 52 52 4f 52 0d                               | ERROR
Received message type 00
GetSMS ME 1 failed! (Unknown error - well better than nothing!!)
Serial device: closing device




reply via email to

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