<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>船长日志 &#187; lirc</title>
	<atom:link href="http://www.cslog.cn/tag/lirc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cslog.cn</link>
	<description>最让我激动的是不知道下一个星球上能发现什么...</description>
	<lastBuildDate>Wed, 30 Jul 2025 16:06:05 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
		<item>
		<title>linux下使用lirc红外程序组万能遥控器拯救或远程控制家电</title>
		<link>http://www.cslog.cn/Content/lirc-remote-control/</link>
		<comments>http://www.cslog.cn/Content/lirc-remote-control/#comments</comments>
		<pubDate>Fri, 27 Sep 2013 16:39:21 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[其它]]></category>
		<category><![CDATA[lirc]]></category>
		<category><![CDATA[电子]]></category>
		<category><![CDATA[电工]]></category>
		<category><![CDATA[硬件维修]]></category>
		<category><![CDATA[遥控器]]></category>

		<guid isPermaLink="false">http://www.cslog.cn/?p=1202</guid>
		<description><![CDATA[lirc是linux平台上一个用来收发红外信号的程序包。使用它，加上带有红外硬件 &#8230; <a href="http://www.cslog.cn/Content/lirc-remote-control/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.lirc.org/">lirc</a>是linux平台上一个用来收发红外信号的程序包。使用它，加上带有红外硬件的n900可以组成强大的万能遥控器。<a href="http://lirc.sourceforge.net/remotes/">http://lirc.sourceforge.net/remotes/</a>有大量的家电遥控器代码表，可以直接使用到lirc程序上。如果家电的遥控器丢了，可以使用lirc解决问题。普通的电脑要外接红外发射器，而诺基亚手机N900自带了红外发射器，所以我使用它做实验。设置后N900变成几乎万能的遥控器，电视、音响、投影、空调、游戏机、电视接机顶收盒、风扇、红外开关等等<br />
因为n900可以使用ssh连接远程控制，这样就可以使用n900构建简便的远程遥控家电系统。</p>
<p>详细的使用方法是这样的，首先，在n900上安装lirc。 n900的源上有这个程序包。安装好之后，从<a href="http://lirc.sourceforge.net/remotes/">http://lirc.sourceforge.net/remotes/</a>下载遥控器的配置文件，以佳能350D、450D、550D、650D等单反相机的遥控器RC-1或RC-5为例，它的配置文件是<a href="http://lirc.sourceforge.net/remotes/canon/RC-1_RC-5">http://lirc.sourceforge.net/remotes/canon/RC-1_RC-5</a>。设下载后存放到n900的/home/user/MyDocs/remotes/RC-1_RC-5 路径。</p>
<p>然后编辑/etc/lircd.conf文件，加入这个配置文件的路径<br />
<code>include "/home/user/MyDocs/qtirreco/Devices/RC-1_RC-5"</code></p>
<p>然后启动lircd<br />
<code>/etc/init.d/lirc start</code><br />
现在，让n900的红外窗口对着开启遥控功能的佳能单反相机，运行<br />
<code>irsend SEND_ONCE CANON-RC1/RC5 S</code><br />
相机就会被遥控拍照了。上面命令中的CANON-RC1/RC5必须与RC-1_RC-5配置文件中的name值一致，而S将是拍照这个编码的名称。</p>
<div style="margin-top: 15px; font-style: italic">
<p>转载请注明: 转自<a href="http://www.cslog.cn/">船长日志</a>, 本文链接地址: <a href="http://www.cslog.cn/Content/lirc-remote-control/">http://www.cslog.cn/Content/lirc-remote-control/</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cslog.cn/Content/lirc-remote-control/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
