Re: problem trying write phonebook to PM325
"Brent Roettger" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <[email protected]> |
Stephen, Thanks for the tips! I am off and running with scissors again. I have seen the + notation in some of the other files but did not know what it was for. This is part of the whole reason I started on this project. I wanted to learn something new and I am definitely accomplishing that goal. Brent ---------- From: Stephen Wood <[email protected]> Reply-To: [email protected] To: [email protected] Subject: Re: [BitPim-devel] problem trying write phonebook to PM325 Date: Sun, 27 Nov 2005 22:53:53 -0500 MIME-Version: 1.0 Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by mc1-f32.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Sun, 27 Nov 2005 19:54:17 -0800 Received: from sc8-sf-list2-b.sourceforge.net (sc8-sf-list2-b.sourceforge.net [10.3.1.8])by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTPid 94684F8C4; Sun, 27 Nov 2005 19:54:06 -0800 (PST) Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net)by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30)id 1Ega5T-00007L-1Efor [email protected]; Sun, 27 Nov 2005 19:53:55 -0800 Received: from xproxy.gmail.com ([66.249.82.207])by mail.sourceforge.net with esmtp (Exim 4.44)id 1Ega5S-00052j-Rffor [email protected]; Sun, 27 Nov 2005 19:53:55 -0800 Received: by xproxy.gmail.com with SMTP id h29so1976940wxd for <[email protected]>; Sun, 27 Nov 2005 19:53:53 -0800 (PST) Received: by 10.70.78.12 with SMTP id a12mr8724906wxb; Sun, 27 Nov 2005 19:53:53 -0800 (PST) Received: by 10.70.115.12 with HTTP; Sun, 27 Nov 2005 19:53:53 -0800 (PST) Brent: When you write a packet, all the fields have to be to something, otherwise you get this error. You can set the fields in your code. This is presumably what you do for fields like pbentry.ringtone, etc. The other way to set a field is to put "+" in front of the field name in the packet definition. (eg "2 UNKNOWN +unknown1") This will fill in that field with the default. The default is usually zero unless you specify otherwise inside the braces. Look at other .p files for examples and look at dev-doc/packetdescription.txt if you havn't already. Stephen On 11/27/05, Brent Roettger <[email protected] > wrote: All, I am currently working to implement the writing of the phonebook to the LG PM325 phone. When I try to write data to the phone, I get an exception that states 'pbentry' object has no attribute '_pbentry__field_unknown1'. I am confused because I have declared that field in the p_lgpm325.p file and if I change the name of it in the pbentry packet, the error message changes accordingly. Any ideas on what I am doing wrong? The full exception text is below. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click