|
From: Wael N. <ml...@na...> - 2008-03-23 01:00:28
|
Hello, I have tried making OpenSync to work with my Nokia 6120 Classic, but I am unable to make it work, I will detail as much as I can in the email, hopefully someone will help me figure out what is going on... First thing first, the softwares version, I'm using the latest SVN on Gentoo, I pulled today's trunk app-pda/msynctool-9999 app-pda/libsyncml-9999 app-pda/libopensync-9999 app-pda/libopensync-plugin-file-9999 app-pda/libopensync-plugin-evolution2-9999 app-pda/libopensync-plugin-google-calendar-9999 app-pda/libopensync-plugin-syncml-9999 app-pda/libopensync-plugin-vformat-9999 I added a group 'Nokia6120c' and 2 plugins, 'file-sync' and 'syncml-obex-client', here's the output of 'msynctool --showgroup Nokia6120c', And I got the configuration of the syncml-obex-client member from http://www.opensync.org/wiki/Nokia_6120_classic ------------------- --------CUT-------- ------------------- Group: Nokia6120c Member 1: file-sync Configuration : <?xml version="1.0"?> <config> <directory> <path>/home/wael/.nokia6120c</path> <objtype>data</objtype> </directory> <!-- Field objformat set the object format which should be used to store. objformat is optional - by default objformat is "file". --> <directory> <path>/home/wael/.nokia6120c/contacts</path> <objtype>contact</objtype> <objformat>vcard21</objformat> </directory> <directory> <path>/home/wael/.nokia6120c/calendar</path> <objtype>event</objtype> <objformat>vevent10</objformat> </directory> </config> Member 2: syncml-obex-client Configuration : <?xml version="1.0"?> <config> <!-- (Only for bluetooth) The bluetooth address if the bluetooth mode is selected --> <bluetooth_address>00:1D:6E:52:8B:F7</bluetooth_address> <!-- (Only for bluetooth) The bluetooth channel to use. `sdptool browse $MAC` to search for the correct channel --> <bluetooth_channel>10</bluetooth_channel> <!-- (Only for USB) The usb interface number of the SYNCML-SYNC target. use syncml-obex-client -u (you will need access to the USB raw device) to find it. --> <interface>0</interface> <!-- The string that the plugin will use to identify itself. Some devices need a special string here. --> <!-- Nokia requires PC Suite --> <identifier>PC Suite</identifier> <!-- The syncml version to use: 0 for 1.0, 1 for 1.1 and 2 for 1.2 --> <version>1</version> <!-- if the plugin should use wbxml --> <wbxml>1</wbxml> <!-- I read elsewhere that the 6120 does not support wbxml so I use 0 in my working config ti...@ti... 2008-03-16 --> <!-- The username to use. Leave empty to not require a username --> <username></username> <!-- the password for the username --> <password></password> <!-- sets the connection type to use. 5 means obex over usb, 2 means obex over bluetooth --> <type>2</type> <!-- If wbxml is enabled, defines wether the wbxml should use string tables --> <usestringtable>0</usestringtable> <!-- Never send ADD command, but send REPLACE (not needed normally) --> <onlyreplace>0</onlyreplace> <!-- Workaround around for mobile phones which only use local timestamps and _no_ UTC timestamps! --> <onlyLocaltime>0</onlyLocaltime> <!-- Sets the maximum allowed size in bytes of incoming messages (some device need this option set). Example: 10000 --> <recvLimit>10000</recvLimit> <maxObjSize>0</maxObjSize> <!-- The name of the contacts db. Must be the same as the phones sends --> <database> <name>Contacts</name> <objtype>contact</objtype> <objformat>vcard21</objformat> </database> <!-- The name of the calendar db. Must be the same as the phones sends --> <!-- <database> <name>Calendar</name> <objtype>event</objtype> <objformat>vevent20</objformat> </database> --> <!-- below works for event (ie Calendar) sync on my 6120 using opensync 0.36. Note the use of vevent10 not vevent20. Comment by Tim Richardson ti...@ti... on 2008-03-16 --> <database> <name>Calendar</name> <objtype>event</objtype> <objformat>vevent10</objformat> </database> </config> ------------------- --------CUT-------- ------------------- And off course I ran 'msynctool --discover Nokia6120c', and tried to sync, the device connected and start sending, but it sends 10 Calendar entries and stopped, I thought maybe the calendar was problematic so I removed it and tried again, Contacs syncing stuck at 20 contacts... $ msynctool --sync Nokia6120c Synchronizing group "Nokia6120c" The previous synchronization was unclean. Slow-syncing data sink of member 1 of type file-sync just connected event sink of member 1 of type file-sync just connected contact sink of member 1 of type file-sync just connected Main sink of member 1 of type file-sync just connected data sink of member 2 of type syncml-obex-client had an error: Unable to find sink for data Main sink of member 2 of type syncml-obex-client just connected event sink of member 2 of type syncml-obex-client just connected contact sink of member 2 of type syncml-obex-client just connected The sync failed: At least one object engine failed while connecting. Aborting data sink of member 1 of type file-sync just disconnected event sink of member 1 of type file-sync just disconnected contact sink of member 1 of type file-sync just disconnected Main sink of member 1 of type file-sync just disconnected event sink of member 2 of type syncml-obex-client just disconnected contact sink of member 2 of type syncml-obex-client just disconnected I went further trying to debug the problem, I tried syncml-obex-client manually and it worked: $ syncml-obex-client -b 00:1D:6E:52:8B:F7 10 --slow-sync text/x-vcard Contacts --slow-sync text/x-vcalendar Calendar --wbxml --identifier "PC Suite" connection with device succeeded Received an Alert for the DS Server at Calendar: Type: 200, Last 20080322T235852Z, Next 20080323T003528Z Slowsyncing Received an Alert for the DS Server at Contacts: Type: 200, Last 20080322T235852Z, Next 20080323T003528Z Slowsyncing Just received a new session with ID 1 Session 1 reported final. flushing Received an reply to our Alert Received an reply to our Alert Going to receive 46 changes Going to receive 193 changes And dumping starts, it worked this way, I don't understand what I'm doing wrong, if you have an idea then please tell me :) Regards, -- Wael Nasreddine http://wael.nasreddine.com PGP: 1024D/C8DD18A2 06F6 1622 4BC8 4CEB D724 DE12 5565 3945 C8DD 18A2 .: An infinite number of monkeys typing into GNU emacs, would never make a good program. (L. Torvalds 1995) :. |