Chinaunix首页 | 论坛 | 博客
  • 博客访问: 185372
  • 博文数量: 40
  • 博客积分: 1900
  • 博客等级: 上尉
  • 技术积分: 450
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-06 21:31
文章分类
文章存档

2009年(16)

2008年(24)

我的朋友

分类: LINUX

2008-07-06 21:39:38

谁再说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

阅读(1277) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~