gnokii-users
[Top][All Lists]
Advanced

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

Re: SMS notification in smsreader


From: Rohit Chaudhri
Subject: Re: SMS notification in smsreader
Date: Wed, 19 Aug 2009 15:06:48 +0530

On Wed, Aug 19, 2009 at 12:46 AM, Pawel Kot <address@hidden> wrote:

On Tue, Aug 18, 2009 at 7:44 PM, Pawel Kot <address@hidden> wrote:
Hi,

On Tue, Aug 18, 2009 at 11:37, Rohit Chaudhri<address@hidden> wrote:
> I am using the gnokii generic NK6510 driver to talk to cell phones. gnokii
> subscribes to various event channels (e.g. incoming/outgoing voice calla,
> sms etc) using the smsreader option. Currently gnokii receives a
> notification whenever an sms is received or sent. Is it possible to
> configure the phone such that the src/destination phone number of the
> message is also included in the notification? (Similar to the way the
> notification happens for voice calls, i.e. the phone number is included in
> the notification).

Honestly, I think it does. gnome-phone-manager takes advantage of it.
 
I get this message on the host when the phone receives an SMS. Can't quite figure out how to interpret the payload of this message to extract the phone number from it. 

1E 0C 00 02 00 30 01 1B 05 2C 00 01 11 28 00 02 82 0C 02 08 07 91 19 89 54 80 07 10 80 18 13 00 04 0C 91 19 59 53 41 86 40 00 00 90 80 81 02 10 45 22 00 00 01 44 5E 

Gnokii does decoding for you. Doesn't it?
 
The sms packet received by gnokii has a subtype 0x2c, which probably is an unknown subtype for gnokii?  Maybe this is the reason why gnokii is not decoding the sms packet? I am pasting the complete console log from gnokii below. The behaviour I've described is at the end of the log. Also pasting the last inbound fbus packet as captured by a serial port sniffer.
Would appreciate any help with this. thanks!

GNOKII Version 0.6.27
LOG: debug mask is 0x1
Config read from file gnokiirc.
phone instance config:
model = 6510
port = com8:
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
Connecting
Serial device: opening device com8:
Serial device: setting speed to 115200
Serial device: setting RTS to low and DTR to low
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
[Received Ack of type 1b, seq:  0]
[Sending Ack of type 1b, seq: 1]
Message received: 0x1b / 0x002e
01 00 00 08 00 01 58 28 00 21 56 20 34 2e 30 30 |       X( !V 4.00
0a 31 39 2d 31 30 2d 30 37 0a 52 48 2d 39 39 0a |  19-10-07 RH-99
28 63 29 20 4e 4d 50 0a 4d 47 00 00 00 00       | (c) NMP MG
Received message type 1b
model length: 5
Received model RH-99
Subscribing to various channels!
Message sent: 0x10 / 0x000a
00 01 00 10 05 01 02 14 15 17                   |
[Received Ack of type 10, seq:  1]
Entered sms reader mode...
[Sending Ack of type 02, seq: 2]
Message received: 0x02 / 0x002e
01 1b 04 2c 00 01 11 28 00 02 82 0c 02 08 07 91 |    ,   (
19 89 54 80 07 10 80 18 13 00 04 0c 91 19 59 53 |   T           YS
41 86 40 00 00 90 80 91 41 31 00 22 00 00       | A @     A1 "
Received message type 02
Frame of type 0x02 (SMS handling) received!
Unknown subtype of type 0x02 (SMS handling): 0x2c
UNHANDLED FRAME RECEIVED
request: 0x10 / 0x000a
cc cc cc cc cc cc cc cc cc cc                   |
reply: 0x02 / 0x002e
01 1b 04 2c 00 01 11 28 00 02 82 0c 02 08 07 91 |    ,   (
19 89 54 80 07 10 80 18 13 00 04 0c 91 19 59 53 |   T           YS
41 86 40 00 00 90 80 91 41 31 00 22 00 00       | A @     A1 "
Please read Docs/Bugs and send a bug report!

==============================================================
the last packet captured by a serial port sniffer :

                                                        1E 0C 00 02   ........pUU....
 00 30 01 1B 04 2C 00 01 11 28 00 02 82 0C 02 08   .0...,...(..?...
 07 91 19 89 54 80 07 10 80 18 13 00 04 0C 91 19   .?.?T?..?.....?.
 59 53 41 86 40 00 00 90 80 91 41 31 00 22 00 00   address@hidden"..
 01 42 59 26 1E 0C 00 02 00 30 01 1B 04 2C 00 01   .BY&.....0...,..
 11 28 00 02 82 0C 02 08 07 91 19 89 54 80 07 10   .(..?....?.?T?..
 80 18 13 00 04 0C 91 19 59 53 41 86 40 00 00 90   address@hidden
 80 91 41 31 00 22 00 00 01 42 59 26

 

 
_______________________________________________
gnokii-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/gnokii-users




--
वन्दे मातरम्
(Vande' Mataram)


reply via email to

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