gnokii-users
[Top][All Lists]
Advanced

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

Re: Images with --getphonebook (Unknown phonebook block 33)


From: Martin Samuelsson
Subject: Re: Images with --getphonebook (Unknown phonebook block 33)
Date: Thu, 6 Jan 2005 00:11:40 +0100
User-agent: Mutt/1.3.28i

For what it's worth.

I've learned today that gammu has the functionality I was asking about
in my previous two posts.

Obviously what I thought were memory pointers were more some record for
the file's number in the filesystem.

My commandline for getting the picture for a contact called contactname
became:

gammu --getfiles $[ `gammu --searchmemory "contactname"|grep "Picture ID"|awk 
'{ print $4 }'` - 1]|awk '$1=="Saving"{print $3}'

Cheers,
--
/Martin

On Sun, Dec 12, 2004 at 03:32:46AM +0100, Martin Samuelsson wrote:
> On Sun, Nov 28, 2004 at 01:24:28AM +0100, Martin Samuelsson wrote:
> > Hi list,
> > 
> > I recently got gnokii working with my Nokia 6820 and must start by thanking 
> > all
> > wonderful developers who might be reading this.
> > 
> > Many things do work, but one thing that doesn't, and that I use to a high
> > degree is images linked to contacts. (I'm using CVS gnokii and debian sarge)
> > 
> > Below is a sample run with a contact showing exactly the same behavior as 
> > all
> > my contact that have linked images. An error about Unknown block 33 is 
> > shown.
> > 
> > I do understand that 0x005e is the lenght of the message block and I would
> > expect a path to the Image there somewhere among the name and number, but 
> > there
> > isn't, as one can see.
> > 
> > The meaning of Blockstart is more than I can figure out.
> > 
> > I havn't gotten any further than to see that common/nokia-decoding.c has
> > something to do with this.
> > 
> > Could anyone please hint me on where to look and what to do?
> 
> I've been poking around a bit more with this know, but am still quite
> clue less. :/
> 
> A few things are understood though. Blockstart fully decide what kind of
> data the block is. And obviously the byte 0x10 on position 0x51 in my
> dump below states how big the block is.
> 
> With this knowledge and by comparing different records dumped from the
> phone i realize that the pay load must be: 0x01 0x01 0x29 (with or
> without a few surrounding 0x00).
> 
> Clearly this can't be a string path in the phone's file system, more
> likely it is a pointer somewhere in the memory?
> 
> There should be either a raw jpg block or a string saying
> "Images/Bild001.jpg" at the memory adress I suspect.
> 
> But how do those pointers work? What should I try to access the data?
> 
> I have still not digged to deep into the source code, but at least all
> the files in Docs/ have been read by now.
> 
> Is there anyone with more knowledge on Gnokii and Nokia internals who
> please could help me out?
> 
> > leka% gnokii --getphonebook ME 69 --raw    
> > GNOKII Version 0.6.4
> > LOG: debug mask is 0x1
> > LOG: rlpdebug mask is 0x1
> > phone instance config:
> > model: 6820b
> > port_device: XX:XX:XX:XX:XX:XX
> > connection_type: 5
> > 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
> > Connecting
> > Serial device: opening device XX:XX:XX:XX:XX:XX
> > Getting model...
> > Message sent: 0x1b / 0x0006
> > 00 01 00 07 01 00                               |                 
> > Message received: 0x1b / 0x002e
> > 01 3b 00 08 00 01 58 28 00 23 56 20 34 2e 32 35 |  ;    X( #V 4.25
> > 0a 32 37 2d 30 35 2d 30 34 0a 4e 48 4c 2d 39 0a |  27-05-04 NHL-9 
> > 28 63 29 20 4e 6f 6b 69 61 2e 0a 42 00 00       | (c) Nokia. B    
> > Received message type 1b
> > model length: 5
> > Received model NHL-9
> > Reading phonebook location (69)
> > Message sent: 0x03 / 0x0012
> > 00 01 00 07 01 01 00 01 02 05 00 00 00 00 00 45 |                E
> > 00 00                                           |                 
> > Message received: 0x03 / 0x005e
> > 01 64 00 08 00 01 01 00 00 10 00 05 00 45 00 00 |  d           E  
> > 00 49 00 00 00 03 07 00 00 14 01 0e 00 47 00 6e |  I           G n
> > 00 6f 00 6b 00 69 00 69 00 00 0b 00 00 24 02 00 |  o k i i     $  
> > 00 00 00 1a 00 2b 00 31 00 35 00 35 00 35 00 31 |      + 1 5 5 5 1
> > 00 32 00 33 00 34 00 35 00 36 00 37 00 00 33 00 |  2 3 4 5 6 7  3 
> > 00 10 03 00 00 00 00 01 01 29 00 00 00 01       |          )      
> > Received message type 03
> > Received phonebook info
> > Blockstart: 0x07
> >    Name: Gnokii
> > Blockstart: 0x0b
> >    Type: 0 (00)
> >    Number: +15551234567
> > Blockstart: 0x33
> > Unknown phonebook block 33
> > Gnokii;+15551234567;ME;69;5;11;0;2;+15551234567
> > Serial device: closing device
> > leka% 
> --
> /Martin
> 
> 
> _______________________________________________
> gnokii-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/gnokii-users




reply via email to

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