Discussion:
[BitPim-devel] PM-8200 Update
Jordan Foley
2005-12-19 19:59:46 UTC
Permalink
Were you able to dump the phone for me and I was wondering how I am able
to run that on my phone so that I can look for certain values.

Also I updated the todo code because it was making 20 blank entries if
there were no messages so now it does it correctly. The todo code should
plug into all of the sanyo phones since they share the same exact format
and I did not change any variables.
def gettodo(self, result):
gtodo = {}
self.log("Getting todo entries")
req=self.protocolclass.todorequest()
for slot in range(20):
req.slot=slot
res=self.sendpbcommand(req, self.protocolclass.todoresponse)
entry=todo.TodoEntry()
if res.entry.flag==1:
entry.summary=res.entry.todo
if res.entry.priority==2:
entry.status=4
if res.entry.priority==0:
entry.priority=5
if res.entry.priority==1:
entry.priority=1
gtodo[entry.id]=entry
result['todo']=gtodo
return result

But the sms code I changed a lot around so it would prob not load a
message correctly. So if someone could send me a dump of an sms message
from an older sms phone, I can change the packet for it so that it loads
correctly. I am also attaching my new message entry and a sample dump
from my friend so that maybe someone could identify the missing parts of
it, I am pretty sure they are not needed though.
PACKET messageentry:
1 UINT slot
1 UINT read "Is Message Read"
1 UINT counter "Message Number"
3 UNKNOWN pad1 "All Pads are zero"
1 UINT dunno1 "Changes between a few messages"
1 UINT cons1 "Stays the same on all of my messages"
1 UINT cons2 "Stays the same on all of my messages"
1 UNKNOWN pad2 "All Pads are zero"
1 UINT cons3 "Stays the same on all of my messages"
1 UINT cons4 "Stays the same on all of my messages"
1 UNKNOWN pad3 "All Pads are zero"
1 UINT message_len "Message Length"
255 STRING message "Text of the message"
1 UNKNOWN pad4 "All Pads are zero"
1 UINT year "Year"
1 UINT month "Month"
1 UINT day "Day"
1 UINT hour "Hour"
1 UINT minute "Minute"
1 UINT second "Second"
1 UINT callback_len "Callback # Length"
34 STRING callback "Callback #"
1 UINT phonenum_len "Phone # length"
35 STRING phonenum "Phone #"
1 UINT locked "Message Lock"
1 UNKNOWN pad5 "All Pads are zero"
1 UINT cons5 "Stays the same on all of my messages"
1 UINT dunno2 "100 on normal msg, 200 on sprint, 0 on moved"
3 UNKNOWN pad6 "All Pads are zero"
1 UINT dunno3 "This changes between all messages, no idea"
1 UINT dunno4 "This changes between all messages, no idea"
2 UNKNOWN pad7 "All Pads are zero"
1 UINT priority "1 on sprint messages, guessing priority"

I have edited out all of the sms information but that doesnt matter
because I only need info on 2 lines.

00000000 fa 00 02 e1 0c 00 11 01 00 00 00 81 18 3f 00 02
.............?..
81 18 3f <--- The first digit changes between some of my messages,
mostly only between ones from sprint, the 2nd and 3rd do not change for
any of my messages so I am unsure.
00000010 01 00 32 (Message Hex)
..2****** ******
00000020 (More Message Hex)
** ** ** **** **
00000030 (More Message Hex)
**** ******** *
00000040 (End Message Hex) 00 00 00 00 00 00 00 00 00 00 00 *
***...........
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
00000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
00000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
000000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
000000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
000000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
00000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
00000110 00 00 00 05 08 17 15 1c 18 0a (Callback Hex)
..........######
00000120 (Call Back) 00 00 00 00 00 00 00 00 00 00 00 00
####............
00000130 00 00 00 00 00 00 00 00 00 00 00 00 0a (Number) .............###
00000140 Phone Number 00 00 00 00 00 00 00 00 00 #######.........
00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
00000160 00 00 01 64 00 00 00 c5 9a 00 00 00 00 00 00 00
...d............
The last line is weird, the digit 64(100 decimal) changes between sprint
messages(200 decimal) and moved to another folder (0 decimal) and then
the c5 9a changes between all messages. Then on one of my messages from
sprint this last line is as follows
00000160 00 00 01 c8 00 00 00 4a 4f 00 00 01 00 00 00 00
.......JO.......
as you can see the value c8 (200) but then we have an extra flag set 4
bits down. Hopefully someone understands what I said and can help.
Stephen Wood
2005-12-19 20:53:06 UTC
Permalink
Post by Jordan Foley
Were you able to dump the phone for me and I was wondering how I am able
to run that on my phone so that I can look for certain values.
I've worked on that a bit. I'll try to get you something in a day or two.
Post by Jordan Foley
Also I updated the todo code because it was making 20 blank entries if
I'll check that in today.

I looked at the folder packet definitions. They work, but (at least for the
8200) list only the folders that the user has created.

I now understand what you were saying about needing to find the other
folders. The current code does not read and of the Sent messages.

I will get you some message packet dumps for the 4900 and 8100.

Stephen

Loading...