Re: pm-8200 devel

Stephen Wood <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
It is a good idea to use sync protocols for reading the sms, memo and todos,
like is done for the phonebook and calendar.  These protocols don't change
much between each Sanyo phone, while the nvm files with the SMS, etc
information likely will vary more between models.  We should only resort to
reading the NVM files if they contain information that can not be read using
the sync protocol.

I partially worked out the protocol for reading message a long time ago,
using the SCP-4900.  The packet definitions (with a lot of fields I didn't
decode), are in p_sanyo.p.  Look for PACKET definition names that start with
folder or message.

The SMS packet definitions for the 8200 won't be exactly the same as what is
in p_sanyo.p as the overall format for packets changed for models newer than
the 4900.  So at a minimum, the packet definitions for messages will need to
be copied into p_sanyonewer.p.

If you change packet definitions, make sure you "compile" the packet
defintions.  This is done by doing

python protogen.py

A good way to start understanding the format of the phones sms packets is to
add sms to the supportsyncs like Simon described and write a dummy getsms
routine and put in in the Phone class for the 8200.

    def getsms(self, result):
        req=self.protocolclass.messagerequest()
        for slot in range(200):
            req.slot=slot
            res=self.sendpbcommand(req, self.protocolclass.messageresponse)

        return result
Assuming you have the messagerequest packet defined correctly, this should
read the messages from the phone (I am just guessing that there are up to
200.) but not do anything with the results.  However, if you turn on
protocol logging, you highlight a response and hit ctrl-alt-p to bring up
the protocol analyzer.  Then you can see how good the messageresponse packet
definition picks apart the response.

Before I heard about BitPim, I wrote a perl script to explore the SCP-4900.
That script in experiments/sanyo.pl might have some marginal value in
understanding the protocol for Sanyo phones.

I am sure that this is a lot to digest, and not explained too well, so keep
asking questions.

Stephen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.