Post by Alan GonzalezSo what are the plans on the sync code.
I am in the final stages of moving over the VX4400 code to the new description
format. The file that deals with the 4400 is less than half of what it used
to be.
I also made a new data format for the phonebook. The way it works is this:
- Every entry has various major parts (eg phonenumbers, names, wallpapers)
- Every one of those is an ordered list.
- When writing out to the phone, it takes from the top of the list (eg
if you have seven phone numbers listed, and the phone only supports
3 then it takes the top 3).
Here is a sample entry:
{
'categories': [{'category': 'School'}],
'emails': [{'email': '***@one.com'}, {'email': '***@two.com'}, {'email': '***@3.com'}],
'flags': [{'secret': False}],
'memos': [{'memo': 'fdgdfgfdgfd'}],
'names': [{'full': 'The full name'}],
'numbers': [{'type': 'home', 'number': '1324324'}, {'type': 'home2', 'number': '1324324'}, {'type': 'office', 'number': '1324324'}],
'ringtones': [{'use': 'call', 'ringtone': 0}, {'use': 'message', 'ringtone': 17}],
'serials': [{'serial2': 237, 'serial1': 237, 'sourcetype': 'lgvx4400', 'sourceuniqueid': 'f326e2de9f3cb19a2b3c'}],
'urls': [{'url': 'www.example.com'}],
'wallpapers': [{'use': 'call', 'wallpaper': 0}],
}
I want to also finish up the TM520/VX10 code with feedback from you and Scott.
Check out the protocol traces in the examples directory. I also have one
in there for updating a 4400 phonebook. I think the algorithm for updating
the 520/10 is going to be the same.
You and Scott also need to investigate the phonebook 0x00 and 0x07 commands.
On the 4400, 0x00 makes the screen say 'PC Sync' and 0x07 reboots the phone.
If you ever send the 0x00 command, you have to reboot the phone when done.
If you don't send any data for a minute or so, it self reboots!
Needless to say I worked out how to sync without sending those commands :-)
[It doesn't help that the 4400 takes so long to reboot either]
The sync plans are pretty much as outlined in:
https://sourceforge.net/mailarchive/message.php?msg_id=6059513
I don't know if the other Alan has put anything down yet on it.
Post by Alan GonzalezThe code to go through the outlook
entries seems pretty straight forward (saw it from another code base)
Never underestimate Outlook!
You can certainly do the basics with the COM support in Python. I also investigated
the Windows Address Book (also used in Outlook Express). The latter is going to
require a DLL which someone else did volunteer to write if they get time before I
do.
Roger