个人工具
登录
查看“UbuntuHelp:IrdaHowto”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:IrdaHowto”的源代码
来自Ubuntu中文
←
UbuntuHelp:IrdaHowto
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/IrdaHowto}} {{Languages|UbuntuHelp:IrdaHowto}} #title Using IrDA infrared devices This document outlines how to get IrDA infrared connections working with Ubuntu 5.04 and the FIR driver. This procedure also works for Ubuntu Breezy development release colony 3. It is unknown if these instructions apply to later versions of Ubuntu. Working in FIR mode with (k)ubuntu 8.10 - Toshiba laptop, smsc-ircc device with "no" BIOS setting for IrDA. Setup is similar. See smsc-ircc2. <ol><li>Install the ''irda-utils'' and ''setserial'' packages from the Universe repository </li><li>Ensure that infrared/IrDA is enabled in your BIOS; if not, enable it and reboot. Your computer's BIOS manual should have instructions on enabling infrared. </li><li>Open a Terminal and type: <code><nowiki>sudo gedit /etc/default/irda-utils</nowiki></code> </li><li>Change the line reading <code><nowiki>DEVICE="/dev/ttyS1"</nowiki></code> to <code><nowiki>DEVICE="irda0"</nowiki></code> </li><li>Change the line reading <code><nowiki>SETSERIAL=""</nowiki></code> to <code><nowiki>SETSERIAL="/dev/ttyS1"</nowiki></code> </li><li>Save the file and then open the <code><nowiki>/etc/modprobe.d/irda-utils</nowiki></code> file. </li><li>Add the following two lines to the end of the file:</li></ol> <pre><nowiki> alias irda0 nsc-ircc options nsc-ircc dongle_id=0x09 </nowiki></pre> 1.#8 Save the file and then open the <code><nowiki>/etc/modules</nowiki></code> file. <ol><li>Add the following line to the end of the file: <code><nowiki>ircomm-tty</nowiki></code> </li><li>Save the file and exit the text editor. </li><li>To restart <code><nowiki>irda</nowiki></code>, open a Terminal and type:</li></ol> <pre><nowiki> sudo /etc/init.d/irda-utils stop sudo /etc/init.d/irda-utils start </nowiki></pre> 1.#12 To load the FIR IRDA driver, type: <code><nowiki>sudo modprobe irda0</nowiki></code> <ol><li>To load the the ircomm-tty module, type: <code><nowiki>sudo modprobe ircomm-tty</nowiki></code></li></ol> ---- === smsc-ircc2 === 1. smsc-ircc2 is configured as a module in the (k)ubuntu 2.6.27-9-generic kernel. 2. Install irda-utils and setserial packages. 3. Open a terminal and type (using nano editor). <pre><nowiki> sudo nano /etc/modprobe.d/irda-utils </nowiki></pre> edit - add line: <pre><nowiki> alias irda0 smsc-ircc2 </nowiki></pre> Ctrl-X then Y then Return to save. Then: <pre><nowiki> sudo nano /etc/default/irda-utils </nowiki></pre> edit - as follows: <pre><nowiki> DEVICE="irda0" SETSERIAL="/dev/ttyS0" SMCINIT="no" </nowiki></pre> Save as before. Then: <pre><nowiki> sudo nano /etc/init.d/irda-setup </nowiki></pre> edit - under: FIR="smsc-ircc2"; - edit: <pre><nowiki> OPTIONS="--ignore-install ircc_dma=3 ircc_irq=3 ircc_fir=0x130 ircc_sir=0x3f8" </nowiki></pre> Save as before. 4. Start IrDA as in the first section. However, following subsequent bootups, IrDA may be started and stopped in a terminal, as follows. Start IrDA: <pre><nowiki> sudo irattach irda0 -s </nowiki></pre> Stop IrDA: <pre><nowiki> sudo killall irattach </nowiki></pre> Modules ircomm, ircomm-tty, etc may be loaded as required. Testing operation is the same as below. Outputs will vary of course. NOTE: Invoking smcinit or setting to "yes" in /etc/defaults/irda-utils prevents operation of the smsc-ircc device. It is only useful to probe the device using the -v (verbose) option. ---- === Testing operation === Open a Terminal and type <code><nowiki>dmesg</nowiki></code>. The output from dmesg should be similar to the following: <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 this by typing the following in a Terminal: <pre><nowiki> cat /proc/net/irda/discovery </nowiki></pre> The following is example output from the previous command: <pre><nowiki> IrLMP: Discovery log: nickname: LGE U8xxx, hint: 0x9124, saddr: 0x00bfb934, daddr: 0x000034f6 </nowiki></pre> You can confirm that the link is up by using <code><nowiki>irdaping</nowiki></code>: <pre><nowiki> $ 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 command to see if things are up and running is <code><nowiki>irdadump</nowiki></code>. === User applications === [http://usefulinc.com/software/phonemgr/ Gnome Phone Manager] works using IRDA to send/receive SMS messages via phones. It has been tested using a Nokia 6610 and LG U8138 phone using the procedure described in this document. Install the <code><nowiki>gnome-phone-manager</nowiki></code> package from the Universe repository in order to use Gnome Phone Manager. [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:IrdaHowto
。