Gnokii with Nokia 5500

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Gnokii with Nokia 5500

Casper Gripenberg

Hi,

Is there any way to get gnokii to work with the Nokia 5500 model?
I only need SMS functionality, but it doesn't seem to want to
cooperate :(

Debug session below:

 > gnokii --version
GNOKII Version 0.6.31

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

 > gnokii --identify
GNOKII Version 0.6.31
IMEI         : *****************
Manufacturer : Nokia
No flags section in the config file.
Model        : Nokia
Product name : Nokia
Revision     : V  03.55

 > gnokii --showsmsfolderstatus
GNOKII Version 0.6.31
No. Name                                         Id #Msg
========================================================
(...nothing else shown...)

 > gnokii --getsms IN 1
GNOKII Version 0.6.31
Getting SMS failed (location 1 from IN memory)! (Unknown error - well
better than nothing!!)

===================================================================
With debugging turned on:
===================================================================

 > gnokii --showsmsfolderstatus
GNOKII Version 0.6.31
LOG: debug mask is 0x1
Config read from file /home/casper/.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<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0016
02 41 54 2b 47 4d 4d 0d 0d 0a 4e 6f 6b 69 61 0d |  AT+GMM   Nokia
0a 0d 0a 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


 > gnokii --getsms IN 1
GNOKII Version 0.6.31
LOG: debug mask is 0x1
Config read from file /home/casper/.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<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0016
02 41 54 2b 47 4d 4d 0d 0d 0a 4e 6f 6b 69 61 0d |  AT+GMM   Nokia
0a 0d 0a 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 IN
Message sent: 0x00 / 0x000d
41 54 2b 43 50 4d 53 3d 22 49 4e 22 0d          | AT+CPMS="IN"
write: [AT+CPMS="IN"<cr>]
read : [AT+CPMS="IN"<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x00 / 0x0016
03 41 54 2b 43 50 4d 53 3d 22 49 4e 22 0d 0d 0a |  AT+CPMS="IN"
45 52 52 4f 52 0d                               | ERROR
Received message type 00
Getting SMS failed (location 1 from IN memory)! (Unknown error - well
better than nothing!!)
Serial device: closing device

Thx..

Casper




_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users
Reply | Threaded
Open this post in threaded view
|

Re: Gnokii with Nokia 5500

Daniele Forsi-2
2015-11-28 21:34 GMT+01:00 Casper Gripenberg:

> Is there any way to get gnokii to work with the Nokia 5500 model?

only if you implement the missing parts

the developer's pages at nokia.com are gone and I don't know an
official way check what kind of phone is this, I think it's a Series
60 3rd which is different from everything came before it

your options are:
1. search the file system of your phone for SMS or see if you can do a
backup on the SD card, if you are lucky, the format will be easy to
decode (I don't know if it was a backup or the regular location but I
definitely saw SMS stored on files on a N73)

or
2. see if you can read SMS with Nokia PC Suite (I think it worked with
said N73), be happy with that or dump the USB data exchange and
reverse engineer the protocol, you probably need to reverse only 2
frames: the request for a specific message and the corresponding
response, most other frames should be already known or irrelevant for
you, so if you have 100 SMS you would probably see some random data
and then some kind of pattern repeating 100 times

or
3. avoid gnokii and see if you can find a solution using SyncML

or
4. avoid gnokii and see if Python for S60 can read your SMS

> I only need SMS functionality, but it doesn't seem to want to
> cooperate :(

Nokia removed most useful functionality from their AT interfaces about
10 years ago and changed once again their proprietary interface

--
Daniele Forsi

_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users