|
From: Brian J. <br...@do...> - 2008-01-02 07:13:46
|
I'm trying to synchronize my text messages (sms) to/from my Nokia N80. By
default, Nokia has a sync profile called "PC Suite". I've duplicated this,
changed the identifier to "PC Suite 2" and enabled text messages (SMS)
with the database name "Messages".
I upgraded all of the opensync stuff to version 0.35, which should allow
me to create custom objtype and objformat databases instead of the normal
<contacts_db> <notes_db> etc. With that said, when using the
syncml-obex-client command line program, I get the following output (I
assume this is good):
$ syncml-obex-client -u 0 --identifier "PC Suite 2" --wbxml --sync
"text/x-vMessage" Messages
connection with device succeeded
Received an Alert for the DS Server at Messages: Type: 201, Last , Next
20080102T065600Z
Just received a new session with ID 1
Received the DevInf
Session 1 reported final. flushing
However, when using msynctool, it comes up with error 67.
Relevant config files are here:
/home/brian/.opensync/group4/1/file-sync.conf
<?xml version="1.0"?>
<config>
<directory>
<path>/home/brian/.nokia/n80/messages</path>
<objtype>data</objtype>
<objformat>plain</objformat>
</directory>
</config>
/home/brian/.opensync/group4/2/
<?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></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 2</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>5</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>
<database>
<name>Messages</name>
<objtype>data</objtype>
<objformat>plain</objformat>
</database>
</config>
I did notice that the phone responds when using the "text/x-vMessage" mime
type on syncml-obex-client, and I do not know if objtype = data, objformat
= plain corresponds to text/plain, but I somehow need to get msynctool to
use text/x-vMessage.
Any ideas? Or am I going about this all wrong?
- Brian
|