个人工具
登录
查看“UbuntuHelp:IrdaHowto”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:IrdaHowto”的源代码
来自Ubuntu中文
←
UbuntuHelp:IrdaHowto
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/IrdaHowto}} {{Languages|UbuntuHelp:IrdaHowto}} == IBM Thinkpad T40 IRDA Howto == This document outlines how to get the IRDA working with Ubuntu 5.04 and the FIR driver. This procedure also works for Ubuntu Breezy development release colony 3. === Pre-requisites === 1) Install the irda-utils package from the universe repository <pre><nowiki> sudo apt-get install irda-utils </nowiki></pre> 2) Install the setserial package <pre><nowiki> sudo apt-get install setserial </nowiki></pre> 3) Ensure infrared is enabled in your BIOS - if not, enable it and reboot. === Configuration === 1) Modify /etc/default/irda-utils <pre><nowiki> sudo vi /etc/default/irda-utils </nowiki></pre> * change the line reading: <pre><nowiki> DEVICE="/dev/ttyS1" </nowiki></pre> * to: <pre><nowiki> DEVICE="irda0" </nowiki></pre> * then change the line reading: <pre><nowiki> SETSERIAL="" </nowiki></pre> * to: <pre><nowiki> SETSERIAL="/dev/ttyS1" </nowiki></pre> 2) Edit /etc/modprobe.d/irda-utils <pre><nowiki> sudo vi /etc/modprobe.d/irda-utils </nowiki></pre> * add the following two lines to the end of the file: <pre><nowiki> alias irda0 nsc-ircc options nsc-ircc dongle_id=0x09 </nowiki></pre> 3) Edit /etc/modules <pre><nowiki> sudo vi /etc/modules </nowiki></pre> * add the ircomm-tty module to the modules to be loaded at boot time. Add the following line to the end of the file: <pre><nowiki> ircomm-tty </nowiki></pre> === Use === Re-starting irda: <pre><nowiki> sudo /etc/init.d/irda-utils stop sudo /etc/init.d/irda-utils start </nowiki></pre> Loading the FIR IRDA driver: <pre><nowiki> sudo modprobe irda0 </nowiki></pre> Loading the ircomm-tty module: <pre><nowiki> sudo modprobe ircomm-tty </nowiki></pre> === Testing operation === Output from dmesg should look something like: <pre><nowiki> nsc-ircc, Found chip at base=0x02e nsc-ircc, driver loaded (Dag Brattli) IrDA: Registered device irda0 nsc-ircc, Using dongle: IBM31T1100 or Temic TFDS6000/TFDS6500 irlap_change_speed(), setting speed to 9600 </nowiki></pre> If you put a mobile phone or something with an IR interface in front of the IR receiver on your laptop, the IR daemon should pick it up. You can confirm by running: <pre><nowiki> cat /proc/net/irda/discovery </nowiki></pre> Example output from this: <pre><nowiki> IrLMP: Discovery log: nickname: LGE U8xxx, hint: 0x9124, saddr: 0x00bfb934, daddr: 0x000034f6 </nowiki></pre> Confirm the link is up using irdaping: <pre><nowiki> happy@nirvana:/etc/default$ sudo irdaping 0x000034f6 IrDA ping (0x000034f6 on irda0): 32 bytes 32 bytes from 0x000034f6: irda_seq=0 time=110.12 ms. 32 bytes from 0x000034f6: irda_seq=1 time=110.15 ms. </nowiki></pre> Another useful tool to see if things are up and running is irdadump. === User applications === Gnome Phone Manager (http://usefulinc.com/software/phonemgr/) works using IRDA to send/receive SMS messages via phones. It has been tested using a Nokia 6610 and LG U8138 phone via the setup as described in this document. Install this application from the universe repository: <pre><nowiki> sudo apt-get install gnome-phone-manager </nowiki></pre> [[category:CategoryDocumentation]] [[category:CategoryCleanup]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:IrdaHowto
。