谁再说Linux易用我要抽他了...
1,开启手机蓝牙
2,找到蓝牙MAC和SyncMLClient的Chanel
hcitool scan
找到手机的蓝牙地址,然后运行
sdptool browser <手机蓝牙地址>
在结果中找到SyncMLClient一段:
Service Name: SyncMLClient
Service RecHandle: 0x10023
Service Class ID List:
UUID 128: 00000002-0000-1000-8000-0002ee000002
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 10
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"" (0x00000002-0000-1000-8000-0002ee000002)
Version: 0x0100
注意其中的Channel 10
3,测试:
export MAC=蓝牙地址
export CHANNEL=10
syncml-obex-client -b $MAC $CHANNEL --slow-sync text/x-vcard Contacts --wbxml --identifier "PC Suite"
syncml-obex-client -b $MAC $CHANNEL --slow-sync text/x-vcalendar Calendar --wbxml --identifier "PC Suite"
4,使用msynctool和evolution
msynctool --addgroup mysync
msynctool --addmember mysync syncml-obex-client
msynctool --addmember mysync evo2-sync
配置syncml-obex-client
msynctool --configure mysync 1
主要是修改:
填写你的蓝牙MAC
填写10
在文件最后前面填写这一段:
Contacts
contact
vcard30
Calendar
event
vevent20
evo2-plugin不需要配置,如果需要配置就用msynctool --configure mysync 2
5,发现syncobj,否则会提示错误:
msynctool --discover mysync 1
msynctool --discover mysync 2
6,同步
msynctool --sync
阅读(1296) | 评论(0) | 转发(0) |