红外监控摄像 linux,linux下用上T23的红外接口

BIOS下红外接口默认关闭,而linux-2.6.17前没有pnp处理,需要进入BIOS下手动开始或对内核打补丁,详细请参考:

在我使用的FC4上已经安装了irda-util,版本为0.9.16-7,然而系统自带的irda启动脚本不能正常启动irda接口,参考网上资料,采用以下启动脚本:

#!/bin/sh

#Start up the IrDA process and load necessary modules

#

case "$1" in

start)

#Start IRDA

echo -n "Starting up the IR modules"

modprobe irda

modprobe ircomm

modprobe ircomm-tty

irattach /dev/ttyS1 -s

echo "Done."

echo ""

;;

stop)

#KILL IRDA

echo -n "Stopping IRDA and removing used modules"

#Kill the irattach process and remove the modules

killall -9 irattach

rmmod ircomm-tty ircomm irda

echo "Done."

echo ""

;;

*)

echo "Usage:irdastart.sh{start|stop}"

echo ""

exit 1

esac

exit 0保存

chmod 755 myirda

chmod 755 /dev/ircomm0

开启:

./myirda start

关闭:

./myirda stop

测试:

打开手机红外线,对准接收窗口,./myirda start,运行irdadump命令,应该有数据显示,否则红外设置不成功

正常情况下可以看到类似以下信息:

16:59:12.083873 xid:cmd 9044ea60 > ffffffff S=6 s=* localhost hint=4400 [ Computer LAN Access ] (25)

16:59:12.082870 xid:rsp 9044ea60 < 0000277b S=6 s=5 Nokia 6020 hint=b125 [ PnP Modem Fax Telephony IrCOMM IrOBEX ] (27)

三下载openobex

./configure --enable-apps

make

make install

使用:Sending from computer:

irobex_palm3 /path/to/file.xxx

Recieving to computer:

irobex_palm3

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值