gnokii-users
[Top][All Lists]
Advanced

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

Re: Can I change the SMS sender number to a string


From: Ajay Pal Singh Atwal
Subject: Re: Can I change the SMS sender number to a string
Date: Mon, 19 Jun 2006 00:15:56 +0530 (IST)

Hi coming up the Debug logs.

On a Nokia 3310 NHM-5 SW 05.79, HW 1023, 
on kernel 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 i686 i386 
GNU/Linux
using gnokii 0.6.12


Coming up output of
 
cat /etc/gnokiirc
-------- snip ------------
[global]
port = /dev/ttyS0
#I guess the behavious of putting 3310 or any of 6110 family is same
model = 6110
initlength = default
connection = serial
use_locking = no
serial_baudrate = 19200
smsc_timeout = 10

[gnokiid]
bindir = /usr/sbin/

[connect_script]
[disconnect_script]

[logging]
debug = on
rlpdebug = off
xdebug = off
-------- snip ------------

Now the output of

gnokii --getsmsc

-------- snip ------------
GNOKII Version 0.6.12
LOG: debug mask is 0x1
phone instance config:
model: 6110
port_device: /dev/ttyS0
connection_type: 0
init_length: 0
serial_baudrate: 19200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script:
disconnect_script:
rfcomm_cn: 1
sm_retry: off
Serial device: opening device /dev/ttyS0
Serial device: setting speed to 115200
Serial device: setting RTS to low and DTR to high
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
SM_Block: exiting the retry loop
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
[Received Ack of type 40, seq:  1]
[Sending Ack of type 40, seq: 7]
Message received: 0x40 / 0x000c
01 01 64 03 01 4f 0d 01 01 01 1b 58             |   d  O     X
Received message type 40
Message: Extended commands enabled.
Message sent: 0x40 / 0x0003
00 01 66                                        |   f
[Received Ack of type 40, seq:  2]
[Sending Ack of type 40, seq: 0]
Message received: 0x40 / 0x0014
01 01 66 01 33 35 30 36 39 39 36 30 36 35 31 36 |   f 350699606516
39 39 30 00                                     | 990
Received message type 40
IMEI: 350699606516990
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
[Received Ack of type 40, seq:  3]
[Sending Ack of type 40, seq: 1]
Message received: 0x40 / 0x000c
01 01 64 03 01 4f 0d 01 01 01 1b 58             |   d  O     X
Received message type 40
Message: Extended commands enabled.
Message sent: 0x40 / 0x0004
00 01 c8 01                                     |
[Received Ack of type 40, seq:  4]
[Sending Ack of type 40, seq: 2]
Message received: 0x40 / 0x0025
01 01 c8 01 00 56 20 30 35 2e 37 39 0a 31 31 2d |      V 05.79 11-
31 31 2d 30 32 0a 4e 48 4d 2d 35 0a 28 63 29 20 | 11-02 NHM-5 (c)
4e 4d 50 2e 00                                  | NMP.
Received message type 40
Received SW 05.79
Received model NHM-5
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
[Received Ack of type 40, seq:  5]
[Sending Ack of type 40, seq: 3]
Message received: 0x40 / 0x000c
01 01 64 03 01 4f 0d 01 01 01 1b 58             |   d  O     X
Received message type 40
Message: Extended commands enabled.
Message sent: 0x40 / 0x0004
00 01 c8 05                                     |
[Received Ack of type 40, seq:  6]
[Sending Ack of type 40, seq: 4]
Message received: 0x40 / 0x000a
01 01 c8 05 00 31 30 32 33 00                   |      1023
Received message type 40
Received SW 05.79, HW 1023
comparing "NHM-5" and ""
comparing "NHM-5" and "?????"
comparing "NHM-5" and "?????"
comparing "NHM-5" and "TFF-3"
comparing "NHM-5" and "RX-2"
comparing "NHM-5" and "TME-2"
comparing "NHM-5" and "TME-1"
comparing "NHM-5" and "TME-3"
comparing "NHM-5" and "THX-9L"
comparing "NHM-5" and "THF-9"
comparing "NHM-5" and "NHX-8"
comparing "NHM-5" and "THF-11"
comparing "NHM-5" and "THF-10"
comparing "NHM-5" and "THF-13"
comparing "NHM-5" and "THF-12"
comparing "NHM-5" and "TFE-4R"
comparing "NHM-5" and "NHE-2"
comparing "NHM-5" and "RH-18"
comparing "NHM-5" and "RH-38"
comparing "NHM-5" and "RH-36"
comparing "NHM-5" and "NKC-1"
comparing "NHM-5" and "NKW-1"
comparing "NHM-5" and "NKW-1C"
comparing "NHM-5" and "NHE-5"
comparing "NHM-5" and "NHE-5NX"
comparing "NHM-5" and "NHE-5"
comparing "NHM-5" and "NHE-5NA"
comparing "NHM-5" and "NHE-5NX"
comparing "NHM-5" and "NHE-5SA"
comparing "NHM-5" and "NHE-3"
comparing "NHM-5" and "NAM-2"
comparing "NHM-5" and "NHE-1"
comparing "NHM-5" and "NHE-4"
comparing "NHM-5" and "NHE-4"
comparing "NHM-5" and "NHK-1XA"
comparing "NHM-5" and "NHK-1"
comparing "NHM-5" and "NHK-4"
comparing "NHM-5" and "NHC-4NE/HE"
comparing "NHM-5" and "NHC-4NE/HE"
comparing "NHM-5" and "NHP-4"
comparing "NHM-5" and "NHD-4X"
comparing "NHM-5" and "NHB-3NB"
comparing "NHM-5" and "RH-40"
comparing "NHM-5" and "RH-42"
comparing "NHM-5" and "RH-39"
comparing "NHM-5" and "RH-41"
comparing "NHM-5" and "RH-3P"
comparing "NHM-5" and "RH-3DNG"
comparing "NHM-5" and "RH-17"
comparing "NHM-5" and "RH-3"
comparing "NHM-5" and "RM-4"
comparing "NHM-5" and "RM-5"
comparing "NHM-5" and "RH-19"
comparing "NHM-5" and "RH-50"
comparing "NHM-5" and "RH-48"
comparing "NHM-5" and "RH-6"
comparing "NHM-5" and "NHE-8"
comparing "NHM-5" and "0310"
comparing "NHM-5" and "RH-19"
comparing "NHM-5" and "RH-50"
comparing "NHM-5" and "RH-30"
comparing "NHM-5" and "RH-31"
comparing "NHM-5" and "NSE-8"
comparing "NHM-5" and "NSE-9"
comparing "NHM-5" and "NSD-1A"
comparing "NHM-5" and "NEM-1"
comparing "NHM-5" and "NEM-2"
Found model "NHM-5"
Message sent: 0x02 / 0x0006
00 01 00 33 64 01                               |    3d
[Sending Ack of type 02, seq: 5]
Message received: 0x02 / 0x0022
01 08 00 34 01 f1 00 00 00 00 00 00 00 00 00 00 |    4
00 00 00 00 00 07 91 19 89 41 40 17 50 00 00 00 |          A@ P
00 00                                           |
Received message type 02
No. 1: "Set 1" (default name)
SMS center number is 5
Default recipient number is
Messages sent as Text
Message validity is Unknown
Message sent: 0x02 / 0x0006
00 01 00 33 64 02                               |    3d
[Received Ack of type 02, seq:  0]
[Sending Ack of type 02, seq: 6]
Message received: 0x02 / 0x0005
01 08 00 35 01                                  |    5
Received message type 02
Error: The given location is empty.
Serial device: closing device
-------- snip ------------


The sms message center number is +919814047105, but only 5 is there.

Similarly, when reading an sms

gnokii --getsms SM 1


-------- snip ------------
GNOKII Version 0.6.12
LOG: debug mask is 0x1
phone instance config:
model: 6110
port_device: /dev/ttyS0
connection_type: 0
init_length: 0
serial_baudrate: 19200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script:
disconnect_script:
rfcomm_cn: 1
sm_retry: off
Serial device: opening device /dev/ttyS0
Serial device: setting speed to 115200
Serial device: setting RTS to low and DTR to high
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
[Received Ack of type 40, seq: 80]
[Sending Ack of type 40, seq: 0]
Message received: 0x40 / 0x000c
01 01 64 03 01 4f 0d 01 01 01 1b 58             |   d  O     X
Received message type 40
Message: Extended commands enabled.
Message sent: 0x40 / 0x0003
00 01 66                                        |   f
[Received Ack of type 40, seq:  1]
[Sending Ack of type 40, seq: 1]
Message received: 0x40 / 0x0014
01 01 66 01 33 35 30 36 39 39 36 30 36 35 31 36 |   f 350699606516
39 39 30 00                                     | 990
Received message type 40
IMEI: 350699606516990
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
[Received Ack of type 40, seq:  2]
[Sending Ack of type 40, seq: 2]
Message received: 0x40 / 0x000c
01 01 64 03 01 4f 0d 01 01 01 1b 58             |   d  O     X
Received message type 40
Message: Extended commands enabled.
Message sent: 0x40 / 0x0004
00 01 c8 01                                     |
[Received Ack of type 40, seq:  3]
[Sending Ack of type 40, seq: 3]
Message received: 0x40 / 0x0025
01 01 c8 01 00 56 20 30 35 2e 37 39 0a 31 31 2d |      V 05.79 11-
31 31 2d 30 32 0a 4e 48 4d 2d 35 0a 28 63 29 20 | 11-02 NHM-5 (c)
4e 4d 50 2e 00                                  | NMP.
Received message type 40
Received SW 05.79
Received model NHM-5
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
[Received Ack of type 40, seq:  4]
[Sending Ack of type 40, seq: 4]
Message received: 0x40 / 0x000c
01 01 64 03 01 4f 0d 01 01 01 1b 58             |   d  O     X
Received message type 40
Message: Extended commands enabled.
Message sent: 0x40 / 0x0004
00 01 c8 05                                     |
[Received Ack of type 40, seq:  5]
[Sending Ack of type 40, seq: 5]
Message received: 0x40 / 0x000a
01 01 c8 05 00 31 30 32 33 00                   |      1023
Received message type 40
Received SW 05.79, HW 1023
comparing "NHM-5" and ""
comparing "NHM-5" and "?????"
comparing "NHM-5" and "?????"
comparing "NHM-5" and "TFF-3"
comparing "NHM-5" and "RX-2"
comparing "NHM-5" and "TME-2"
comparing "NHM-5" and "TME-1"
comparing "NHM-5" and "TME-3"
comparing "NHM-5" and "THX-9L"
comparing "NHM-5" and "THF-9"
comparing "NHM-5" and "NHX-8"
comparing "NHM-5" and "THF-11"
comparing "NHM-5" and "THF-10"
comparing "NHM-5" and "THF-13"
comparing "NHM-5" and "THF-12"
comparing "NHM-5" and "TFE-4R"
comparing "NHM-5" and "NHE-2"
comparing "NHM-5" and "RH-18"
comparing "NHM-5" and "RH-38"
comparing "NHM-5" and "RH-36"
comparing "NHM-5" and "NKC-1"
comparing "NHM-5" and "NKW-1"
comparing "NHM-5" and "NKW-1C"
comparing "NHM-5" and "NHE-5"
comparing "NHM-5" and "NHE-5NX"
comparing "NHM-5" and "NHE-5"
comparing "NHM-5" and "NHE-5NA"
comparing "NHM-5" and "NHE-5NX"
comparing "NHM-5" and "NHE-5SA"
comparing "NHM-5" and "NHE-3"
comparing "NHM-5" and "NAM-2"
comparing "NHM-5" and "NHE-1"
comparing "NHM-5" and "NHE-4"
comparing "NHM-5" and "NHE-4"
comparing "NHM-5" and "NHK-1XA"
comparing "NHM-5" and "NHK-1"
comparing "NHM-5" and "NHK-4"
comparing "NHM-5" and "NHC-4NE/HE"
comparing "NHM-5" and "NHC-4NE/HE"
comparing "NHM-5" and "NHP-4"
comparing "NHM-5" and "NHD-4X"
comparing "NHM-5" and "NHB-3NB"
comparing "NHM-5" and "RH-40"
comparing "NHM-5" and "RH-42"
comparing "NHM-5" and "RH-39"
comparing "NHM-5" and "RH-41"
comparing "NHM-5" and "RH-3P"
comparing "NHM-5" and "RH-3DNG"
comparing "NHM-5" and "RH-17"
comparing "NHM-5" and "RH-3"
comparing "NHM-5" and "RM-4"
comparing "NHM-5" and "RM-5"
comparing "NHM-5" and "RH-19"
comparing "NHM-5" and "RH-50"
comparing "NHM-5" and "RH-48"
comparing "NHM-5" and "RH-6"
comparing "NHM-5" and "NHE-8"
comparing "NHM-5" and "0310"
comparing "NHM-5" and "RH-19"
comparing "NHM-5" and "RH-50"
comparing "NHM-5" and "RH-30"
comparing "NHM-5" and "RH-31"
comparing "NHM-5" and "NSE-8"
comparing "NHM-5" and "NSE-9"
comparing "NHM-5" and "NSD-1A"
comparing "NHM-5" and "NEM-1"
comparing "NHM-5" and "NEM-2"
Found model "NHM-5"
Message sent: 0x02 / 0x0008
00 01 00 07 02 01 01 64                         |        d
[Received Ack of type 02, seq:  6]
[Sending Ack of type 14, seq: 6]
Message received: 0x14 / 0x002f
01 08 00 08 03 02 01 00 07 91 19 89 41 40 47 50 |             address@hidden
30 32 33 00 04 00 00 04 0c 91 19 89 55 70 55 73 | 023         UpUs
4e 48 4d 2d 60 60 81 32 55 92 00 d4 f2 9c 0e    | NHM-`` 2U
Received message type 14
[01(0)][08(1)][00(2)][08(3)][03(4)][02(5)][01(6)][00(7)][07(8)][91(9)][19(10)][89(11)][41(12)][40(13)][47(14)][50(15)][30(16)][32(17)][33(18)][00(19)][04(20)][00(21)][00(22)][04(23)][0c(24)][91(25)][19(26)][89(27)][55(28)][70(29)][55(30)][73(31)][4e(32)][48(33)][4d(34)][2d(35)][60(36)][60(37)][81(38)][32(39)][55(40)][92(41)][00(42)][d4(43)][f2(44)][9c(45)][0e(46)]
Mobile Terminated message:
        Date: 0000
        Remote number (recipient or sender): 7
        SMS center number: 5
Default Alphabet
Test
1. Inbox Message (unread)
Date/time: 18/06/2006 23:55:29
Sender: 7 Msg Center: 5
Text:
Test
Serial device: closing device
-------- snip ------------

This time the sender number is 98xxxxxx37, but only 7 is shown.
Same is the case with SMS message center number.

gnokii --getphonebook 

works fine.

-- 
Sincerely

Ajay Pal Singh Atwal
Dept of CSE & IT
BBSBEC, Fatehgarh Sahib
Punjab, INDIA
--------------------------------
http://www.bbsbec.ac.in
http://www.ajaypal.com
--------------------------------
ajaypal[at]bbsbec.org, 
ajaypal[at]acm.org






reply via email to

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