|
From: Simon J. <si...@jo...> - 2008-02-06 16:19:57
|
Evgeni Golov <sar...@di...> writes:
> Hi,
>
> On Tue, 05 Feb 2008 20:06:31 +0100 Simon Josefsson wrote:
>
>> Hi! I just got a Nokia E51 and wanted to sync it over Bluetooth. The
>> phone uses channel 10 for SyncML [1], and requires a identifier "PC
>> Suite". Syncing contacts and notes using syncml-obex-client works fine
>> (as 'Contacts' and 'Notes' respectively). I've also set up 'msynctool',
>> and it can sync contacts between syncml-obex-client and file-sync
>> successfully. I'm using packages from Debian.
>
> Could you please share your config? As my E51 do not want to sync, and
> opensync just says "String Table generation disabled: can't encode
> Literal" and I just don't understand why :(
Hi! This command works fine:
syncml-obex-client -b $MAC $CHANNEL --slow-sync text/x-vcard Contacts --wbxml --identifier "PC Suite"
Replace $MAC with your bluetooth MAC, and $CHANNEL with 10. This prints
my 153 contacts.
I don't believe it is reading any config files?
I'm using the latest phone software: '100.34.20 29-09-2007 rm-244 Nokia
E51 (03.1)'. Btw, be careful about updating software if your warranty
is void, I got this E51 because I bricked my old N80 when running Nokia
Software Update. The N80 phone is completely dead.
The msynctool config file I'm using is below. I didn't have to disable
stringtable generation, or touch any of the other parameters.
This is with libsyncml 0.4.5 (0.4.6 also seems to work), and opensync
0.35 from debian.
Good luck,
/Simon
<?xml version="1.0"?>
<config>
<!-- (Only for bluetooth) The bluetooth address if the bluetooth mode is selected -->
<bluetooth_address>...</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. -->
<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>
<!-- 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>0</recvLimit>
<maxObjSize>0</maxObjSize>
<!-- XXX: Currently you need to write this by your own.
Later it's planned to create such entries on the fly during
the discovery() call. Example database field:
-->
<database>
<name>Contacts</name>
<objtype>contact</objtype>
<objformat>vcard21</objformat>
</database>
</config>
|