From: Alan G. <ago...@ya...> - 2003-09-18 00:04:39
|
--- Roger Binns <ro...@ro...> wrote: > Alan Gonzalez wrote: > > I wanted to get some help on the phonebook entry I get back. I've been > trying > > to deduce what the packet is, but still can't. I see the ff bytes, but > beyond > > that nothing makes sense to what i see on my phone > > > > I've put some print statements in extracephonebookentry > > > > i print out len(packet), then > > > > for x in range(0,len(packet)): > > item = readlsb(packet[x]); > > print str(item) > > > I recommend you use: > > print common.datatohexstring(packet) > > The way I figured out what was in an entry was by making an > entry when I entered the maximum number of characters and digits > for all fields. That soon shows you where they are. For some > remaining stuff, I would do something like change only the ringtone > and re-read the entry to see what bytes had changed. > OK doing that print, I get: length of packet is 102 00000000 13 ff 13 01 01 00 00 00 00 00 00 e7 fe 7e 00 00 .............~.. 00000010 00 00 11 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000020 00 00 00 00 00 00 00 00 00 00 c7 00 00 00 00 00 ................ 00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000040 00 00 3c 6a 2e 35 4c 47 54 4d 35 32 30 43 6f 6e ..<j.5LGTM520Con 00000050 6e 65 63 74 6f 72 5f 31 39 39 00 00 00 00 00 00 nector_199...... 00000060 00 00 00 00 00 00 ...... I can now read all 17 entries in my phonebook, but each one gives the same packet of information. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |