这几天一直在研究这个问题,有一天看到arkar兄弟的文章:
http://www.linuxsir.com/bbs/showthr...0142#post830142
里面提到一个链接
http://www.tuxmobil.org/Infrared-HO...ared-HOWTO.html
我看了老外的这个文章,经过实验,终于连通我的红外设备了。
(管理员注:此文章作者提供的这两个地址无法打开,大家可以在http://www.linuxsir.com通过arkar为关键词搜索他的文章,看看找不的得到)
我的系统:Mandrake Linux 10.0 official
主板: Intel845G
红外线:水木行SMH-IR210(最便宜的一款,连接主板的红外)
手机:爱立信T39m
http://sourceforge.net/PRojects/openobex/ 下载安装openobex。
2,下载并安装ircp程序
http://heanet.dl.sourceforge.net/so...ircp-0.3.tar.gz下载安装ircp程序
这个程序使用openobex库,可以传文件。
3,编辑一张手机可以接受的图片
对于我的T39来说,图片要求:73×26的4色灰度gif图片,文件名为1.gif
4,发送文件
# ircp /home/xy/mydata/1.gif
Connecting...done
Sending /home/xy/mydata/1.gif...done
Disconnecting...done
发送过程用irdadump监视如下:
# irdadump
13:06:54.816367 xid:cmd a91d66a1 > ffffffff S=6 s=0 (14)
13:06:54.906269 xid:cmd a91d66a1 > ffffffff S=6 s=1 (14)
13:06:54.996255 xid:cmd a91d66a1 > ffffffff S=6 s=2 (14)
13:06:55.073243 xid:rsp a91d66a1 < 31181555 S=6 s=2 T39 hint=9124 [ PnP Modem IrCOMM IrOBEX ] (20)
13:06:55.086245 xid:cmd a91d66a1 > ffffffff S=6 s=3 (14)
13:06:55.176234 xid:cmd a91d66a1 > ffffffff S=6 s=4 (14)
13:06:55.266214 xid:cmd a91d66a1 > ffffffff S=6 s=5 (14)
13:06:55.356203 xid:cmd a91d66a1 > ffffffff S=6 s=* robocup hint=0400 [ Computer ] (23)
13:06:57.815834 xid:cmd a91d66a1 > ffffffff S=6 s=0 (14)
13:06:57.893810 xid:rsp a91d66a1 < 31181555 S=6 s=0 T39 hint=9124 [ PnP Modem IrCOMM IrOBEX ] (20)
13:06:57.905813 xid:cmd a91d66a1 > ffffffff S=6 s=1 (14)
13:06:57.995803 xid:cmd a91d66a1 > ffffffff S=6 s=2 (14)
13:06:58.085785 xid:cmd a91d66a1 > ffffffff S=6 s=3 (14)
13:06:58.175775 xid:cmd a91d66a1 > ffffffff S=6 s=4 (14)
13:06:58.265759 xid:cmd a91d66a1 > ffffffff S=6 s=5 (14)
13:06:58.355748 xid:cmd a91d66a1 > ffffffff S=6 s=* robocup hint=0400 [ Computer ] (23)
13:07:00.815376 xid:cmd a91d66a1 > ffffffff S=6 s=0 (14)
13:07:00.905359 xid:cmd a91d66a1 > ffffffff S=6 s=1 (14)
13:07:00.995345 xid:cmd a91d66a1 > ffffffff S=6 s=2 (14)
13:07:01.085330 xid:cmd a91d66a1 > ffffffff S=6 s=3 (14)
13:07:01.162318 xid:rsp a91d66a1 < 31181555 S=6 s=3 T39 hint=9124 [ PnP Modem IrCOMM IrOBEX ] (20)
13:07:01.175316 xid:cmd a91d66a1 > ffffffff S=6 s=4 (14)
13:07:01.265303 xid:cmd a91d66a1 > ffffffff S=6 s=5 (14)
13:07:01.355290 xid:cmd a91d66a1 > ffffffff S=6 s=* robocup hint=0400 [ Computer ] (23)
13:07:02.115455 snrm:cmd ca=fe pf=1 a91d66a1 > 31181555 new-ca=32
LAP QoS: Baud Rate=115200bps Max Turn Time=500ms Data Size=2048B Window Size=7 Add BOFS=0 Min Turn Time=5000us Link Disc=12s (32)
13:07:02.228157 ua:rsp ca=32 pf=1 a91d66a1 < 31181555
LAP QoS: Baud Rate=115200bps Max Turn Time=500ms Data Size=256B Window Size=3 Add BOFS=0 Min Turn Time=0us Link Disc=12s (31)
13:07:02.230059 rr:cmd > ca=32 pf=1 nr=0 (2)
13:07:02.244154 rr:rsp < ca=32 pf=1 nr=0 (2)
13:07:02.245163 i:cmd > ca=32 pf=1 nr=0 ns=0 LM slsap=32 dlsap=00 CONN_CMD (6)
13:07:02.253151 i:rsp < ca=32 pf=1 nr=1 ns=0 LM slsap=00 dlsap=32 CONN_RSP (6)
13:07:02.254165 i:cmd > ca=32 pf=1 nr=1 ns=1 LM slsap=32 dlsap=00 GET_VALUE_BY_CLASS: "OBEX:IrXfer" "IrDA:TinyTP:LsapSel" (37)
13:07:02.266149 i:rsp < ca=32 pf=1 nr=2 ns=1 LM slsap=00 dlsap=32 GET_VALUE_BY_CLASS: Success Integer: 04 (15)
13:07:02.267172 i:cmd > ca=32 pf=1 nr=2 ns=2 LM slsap=32 dlsap=00 DISC (6)
13:07:02.279149 rr:rsp < ca=32 pf=1 nr=3 (2)
13:07:02.280159 i:cmd > ca=32 pf=1 nr=2 ns=3 LM slsap=33 dlsap=04 CONN_CMD TTP credits=16 (7)
13:07:02.292146 i:rsp < ca=32 pf=1 nr=4 ns=2 LM slsap=04 dlsap=33 CONN_RSP TTP credits=6 (7)
13:07:02.293156 rr:cmd > ca=32 pf=1 nr=3 (2)
13:07:02.301147 i:rsp < ca=32 pf=1 nr=4 ns=3 LM slsap=01 dlsap=00 CONN_CMD (6)
13:07:02.302175 i:cmd > ca=32 pf=0 nr=4 ns=4 LM slsap=33 dlsap=04 TTP credits=0
OBEX CONNECT len=7 ver=1.1 flags=0 mtu=1024 (12)
13:07:02.302224 i:cmd > ca=32 pf=1 nr=4 ns=5 LM slsap=00 dlsap=01 CONN_RSP (6)
13:07:02.314144 i:rsp < ca=32 pf=1 nr=6 ns=4 LM slsap=01 dlsap=00 GET_VALUE_BY_CLASS: "Device" "DeviceName" (23)
13:07:02.315166 i:cmd > ca=32 pf=1 nr=5 ns=6 LM slsap=00 dlsap=01 GET_VALUE_BY_CLASS: Success String: robocup (20)
13:07:02.325135 i:rsp < ca=32 pf=1 nr=7 ns=5 LM slsap=04 dlsap=33 TTP credits=1
OBEX SUCCESS len=7 ver=1.0 flags=0 mtu=512 (12)
13:07:02.326154 rr:cmd > ca=32 pf=1 nr=6 (2)
13:07:02.335141 i:rsp < ca=32 pf=1 nr=7 ns=6 LM slsap=01 dlsap=00 DISC (6)
45 packets received by filter
看39的屏幕,出现了收到图片的提示,然后保存,OK。
总结:在Linux下面同步39的软件不少,但是易用性比较差,大家还要慢慢摸索。另外用ircp程序可以传vCard文件,这样就实现了增加联系人的功能。
新闻热点
疑难解答
图片精选