gnokii-users
[Top][All Lists]
Advanced

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

[PATCH] Nokia Cardphone 2.0 and GNOKII Version 0.4.0pre20 (half success)


From: Friedrich Lobenstock
Subject: [PATCH] Nokia Cardphone 2.0 and GNOKII Version 0.4.0pre20 (half success)
Date: Wed, 15 May 2002 01:09:34 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; ast-ES; rv:1.0rc1) Gecko/20020417

Hi!

As I've got a nokia cardphone 2.0 I tried gnokii today. I had to make the 
following
patches to get it to run "properly".

  ftp://ftp.fl.priv.at/pub/gnokii/0.4.0pre20/01-patch-gnokii-0.4.0pre20
  ftp://ftp.fl.priv.at/pub/gnokii/0.4.0pre20/02-patch-for-nokia-cardphone

The first patch is essentially a bugfix and adding a more verbose debug 
reporting.
The second adds the needed line to the phone database.

What works:
  * it identifies the phone

  * handshake works either with "software" or "hardware"

  * there's no possiblity in gnokii to enter the PIN - had to use a terminal 
program
      and send
        AT+CPIN="1234"
      to unlock the phone

  * can read the content of the phonebook (only SIM contained data, so
     don't know if the on-card phonebook entries can be read, at least
     it said it did :)

  * sending SMS does not work - manual via terminal program it does!

      AT+CMGF=1
      OK
      AT+CMGS="+436647958xxx"
      > another TEST-SMS
      >
      +CMGS: 10

      OK

    also see trace at the end of this mail. It might have to do that it can not 
read
    the SMSC from the SIM as my current provider seems to have locked that 
feature.
    I can not even change the SMSC with my normal phone what was possible with 
my
    previous provider.

  * making a voice call does not work - manual via terminal programm it does!
      eg:  ATD+43316123456;        (NOTE the trailing semicolon!)



Here's a trace from xgnokii:
# xgnokii
Opened configuration file /home/fl/.gnokiirc
Added new section global
Adding key/value port//dev/ttyS16
Adding key/value model/AT
Adding key/value initlength/default
Adding key/value connection/serial
Adding key/value bindir//usr/local/sbin/
Adding key/value use_locking/yes
Adding key/value serial_baudrate/115200
Adding key/value handshake/software
Initializing connection...
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyS16
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: 0x42 / 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: 0x42 / 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 42
Message sent: 0x05 / 0x0008
41 54 2b 43 47 4d 4d 0d                         | AT+CGMM
write: [AT+CGMM<cr>]
read : [AT+CGMM<cr><cr><lf>Nokia Card Phone RPM-1 
GSM900/1800<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x05 / 0x0034
02 41 54 2b 43 47 4d 4d 0d 0d 0a 4e 6f 6b 69 61 |  AT+CGMM   Nokia
20 43 61 72 64 20 50 68 6f 6e 65 20 52 50 4d 2d |  Card Phone RPM-
31 20 47 53 4d 39 30 30 2f 31 38 30 30 0d 0a 0d | 1 GSM900/1800
0a 4f 4b 0d                                     |  OK
Received message type 05
Message sent: 0x05 / 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: 0x05 / 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 05
Initialisation completed
fbusinit: error 0
Message sent: 0x05 / 0x0008
41 54 2b 43 47 4d 4d 0d                         | AT+CGMM
write: [AT+CGMM<cr>]
read : [AT+CGMM<cr><cr><lf>Nokia Card Phone RPM-1 
GSM900/1800<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x05 / 0x0034
02 41 54 2b 43 47 4d 4d 0d 0d 0a 4e 6f 6b 69 61 |  AT+CGMM   Nokia
20 43 61 72 64 20 50 68 6f 6e 65 20 52 50 4d 2d |  Card Phone RPM-
31 20 47 53 4d 39 30 30 2f 31 38 30 30 0d 0a 0d | 1 GSM900/1800
0a 4f 4b 0d                                     |  OK
Received message type 05
comparing "Nokia Card Phone RPM-1 GSM900/1800" and ""
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "?????"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "?????"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NHE-5"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NHE-4"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NHK-4"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "0310"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSE-8"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSE-9"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NHM-5"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NHM-6"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NPW-6"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "0305"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSE-1"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSK-1"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSW-1"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSB-1"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSE-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSC-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSK-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSM-1"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSW-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSD-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSB-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NPE-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NHM-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NPE-4"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NPM-9"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "?????"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSE-5"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSM-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NHM-7"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSE-6"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "0423"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "0423"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "RAE-4"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "RAE-2"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "THF-10"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "THF-11"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "THF-12"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "THF-13"
Found model "Nokia Card Phone RPM-1 GSM900/1800"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and ""
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "?????"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "?????"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NHE-5"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NHE-4"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NHK-4"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "0310"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSE-8"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSE-9"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NHM-5"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NHM-6"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NPW-6"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "0305"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSE-1"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSK-1"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSW-1"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSB-1"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSE-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSC-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSK-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSM-1"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSW-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSD-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSB-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NPE-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NHM-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NPE-4"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NPM-9"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "?????"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSE-5"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSM-3"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NHM-7"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "NSE-6"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "0423"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "0423"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "RAE-4"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "RAE-2"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "THF-10"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "THF-11"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "THF-12"
comparing "Nokia Card Phone RPM-1 GSM900/1800" and "THF-13"
Found model "Nokia Card Phone RPM-1 GSM900/1800"
Message sent: 0x05 / 0x0008
41 54 2b 43 47 4d 52 0d                         | AT+CGMR
write: [AT+CGMR<cr>]
read : [AT+CGMR<cr><cr><lf>SW4.31<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x05 / 0x0018
02 41 54 2b 43 47 4d 52 0d 0d 0a 53 57 34 2e 33 |  AT+CGMR   SW4.3
31 0d 0a 0d 0a 4f 4b 0d                         | 1    OK
Received message type 05
Message sent: 0x05 / 0x0008
41 54 2b 43 47 53 4e 0d                         | AT+CGSN
write: [AT+CGSN<cr>]
read : [AT+CGSN<cr><cr><lf>449144921768300<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x05 / 0x0021
02 41 54 2b 43 47 53 4e 0d 0d 0a 34 34 39 31 34 |  AT+CGSN   44914
34 39 32 31 37 36 38 33 30 30 0d 0a 0d 0a 4f 4b | 4921768300    OK
0d                                              |
Received message type 05
Version: SW4.31
Model: RPM-1
IMEI:XXXXXXXXXXXXXXX
Revision: SW4.31
Phone connected. Starting monitoring...
Message sent: 0x09 / 0x0007
41 54 2b 43 53 51 0d                            | AT+CSQ
write: [AT+CSQ<cr>]
read : [AT+CSQ<cr><cr><lf>+CSQ: 0,99<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x09 / 0x001b
02 41 54 2b 43 53 51 0d 0d 0a 2b 43 53 51 3a 20 |  AT+CSQ   +CSQ:
30 2c 39 39 0d 0a 0d 0a 4f 4b 0d                | 0,99    OK
Received message type 09
Message sent: 0x08 / 0x0007
41 54 2b 43 42 43 0d                            | AT+CBC
write: [AT+CBC<cr>]
read : [AT+CBC<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x08 / 0x0010
03 41 54 2b 43 42 43 0d 0d 0a 45 52 52 4f 52 0d
Received message type 08
Message sent: 0x08 / 0x0007
41 54 2b 43 42 43 0d                            | AT+CBC
write: [AT+CBC<cr>]
read : [AT+CBC<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x08 / 0x0010
03 41 54 2b 43 42 43 0d 0d 0a 45 52 52 4f 52 0d
Received message type 08
Message sent: 0x09 / 0x0007
41 54 2b 43 53 51 0d                            | AT+CSQ
write: [AT+CSQ<cr>]
read : [AT+CSQ<cr><cr><lf>+CSQ: 0,99<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x09 / 0x001b
02 41 54 2b 43 53 51 0d 0d 0a 2b 43 53 51 3a 20 |  AT+CSQ   +CSQ:
30 2c 39 39 0d 0a 0d 0a 4f 4b 0d                | 0,99    OK
Received message type 09
Message sent: 0x08 / 0x0007
41 54 2b 43 42 43 0d                            | AT+CBC
write: [AT+CBC<cr>]
read : [AT+CBC<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x08 / 0x0010
03 41 54 2b 43 42 43 0d 0d 0a 45 52 52 4f 52 0d
Received message type 08
Message sent: 0x08 / 0x0007
41 54 2b 43 42 43 0d                            | AT+CBC
write: [AT+CBC<cr>]
read : [AT+CBC<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x08 / 0x0010
03 41 54 2b 43 42 43 0d 0d 0a 45 52 52 4f 52 0d
Received message type 08
Message sent: 0x09 / 0x0007
41 54 2b 43 53 51 0d                            | AT+CSQ
write: [AT+CSQ<cr>]
read : [AT+CSQ<cr><cr><lf>+CSQ: 0,99<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x09 / 0x001b
02 41 54 2b 43 53 51 0d 0d 0a 2b 43 53 51 3a 20 |  AT+CSQ   +CSQ:
30 2c 39 39 0d 0a 0d 0a 4f 4b 0d                | 0,99    OK
Received message type 09



A test to send an SMS (number scrambled ;-)

Processing Event: 13
COUNT: 1
Strlen: 15
Sending SMS to +436769629xxx via message center
Message sent: 0x43 / 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: 0x43 / 0x0010
02 41 54 2b 43 4d 47 46 3d 30 0d 0d 0a 4f 4b 0d
Received message type 43
AT mode set
Sending SMS...(30)
00 11 00 0d 00 fb 63 67 69 92 87 f9 00 00 00 0f d4 e2 94 0a b2 a7 c3 a0 a3 fb 
bd 4e a7 01
Sending initial sequence
Message sent: 0x44 / 0x000b
41 54 2b 43 4d 47 53 3d 32 39 0d                | AT+CMGS=29
write: [AT+CMGS=29<cr>]
read : [AT+CMGS=29<cr><cr><lf>> ]
Message received: 0x44 / 0x000f
01 41 54 2b 43 4d 47 53 3d 32 39 0d 0d 0a 3e    |  AT+CMGS=29   >
Received message type 44
Got response 0
Sending frame: 0011000D00FB6367699287F90000000FD4E2940AB2A7C3A0A3FBBD4EA701?
Message sent: 0x1b / 0x003d
30 30 31 31 30 30 30 44 30 30 46 42 36 33 36 37 | 0011000D00FB6367
36 39 39 32 38 37 46 39 30 30 30 30 30 30 30 46 | 699287F90000000F
44 34 45 32 39 34 30 41 42 32 41 37 43 33 41 30 | D4E2940AB2A7C3A0
41 33 46 42 42 44 34 45 41 37 30 31 1a          | A3FBBD4EA701
write: [0011000D00FB6367699287F90000000FD4E2940AB2A7C3A0A3FBBD4EA701^Z]
15
Event 13 failed with return code 4!
Address: +436769629xxx
Text: TEST via Gnokii
Delivery report: 0
SMS Center: 0



--
MfG / Regards
Friedrich Lobenstock




reply via email to

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