From: Alan G. <ago...@ya...> - 2003-09-30 02:37:11
|
--- Roger Binns <ro...@ro...> wrote: > > So 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. > Ok is that why current cvs is currently acting strange? When I load up bitpim, i now get an error about groupdict not being defined. This was in populatefromfs. I don't have anything in the fs yet :) Also to mention it, my phone doesn't support grouping. Yes it's a bad phonebook, not to mention the calendar, which is very basic. So i commented out all the groupdict lines. Now it loads but I get no tabs? > 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': 'dfg...@on...'}, {'email': 'fdg...@tw...'}, > {'email': 'dfgdfgfd@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. yah. > 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. > probably. > 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! > ok, will try to investigate, but my current cvs dir (fresh dir, though i backed up my older cvs dir before updating ) doesn't show any tab views like before, so i'll continue to use my old dir. > 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. > > > The 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 > > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |