Re: FW: New developer - Trying to add Kyocera K433L support
"Roger Binns" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <011801c517d1$ce29b250$3501a8c0@rogersqyvr14d3> |
> Take a look at the save functionality in com_lgvx4400.py and you can see all > of the rewriting of entries for even a "trivial" change. Basically > everything is written back to the phone as far as I can see. That is a feature of the LG phonebook protocol. It is record oriented and has a cursor. The only operations available are to advance to the next entry (which wraps around at the end), reset to begining (which doesn't work reliably), update the entry currently at the cursor, delete the entry at the cursor, and add an entry. Deleting or adding entries causes shifts in the entry ids. Consequently the rather convoluted logic is to ensure that we always do safe things and have deterministic results, and made it work on all LG phones. > And there are comments that some of the calls cause a reset. Examples are updating the speed dials or group files. > After I got read > working I exported to vCard format and now if I screw up I can easily > restore the phone book by re-importing the vCards and using that to get my > phone back to a "last known good" state. For the LG phones you can take a backup of the pim directory and restore it later. Make sure to reboot after the restore. That gets you back to exact earlier known good state. > There is a paint problem with the log windows, Actually there isn't. It used to always used to ensure that the last output is visible (ie around a page full). That consumes significant extra CPU especially at high rates of output. Now it does the default behaviour which is to scroll the window on each page of output. It is just a plain wx.TextCtrl being used which isn't too appropriate for the task. I'd gladly replace it with a custom widget if someone cares to write one. > python analyser.py protocol.txt BTW if you don't provide a filename it will read the contents of the clipboard. That can make getting from notepad to analyser even quicker. Roger ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click