<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE>LIRC - Linux Infrared Remote Control</TITLE> <LINK REL=stylesheet TYPE="text/css" HREF="../lirc.css"> <LINK REL="shortcut icon" HREF="../favicon.ico"> <META NAME="description" CONTENT="LIRC - Linux Infra-red Remote Control"> <META NAME="keywords" CONTENT="linux, kernel module, remote control, animax, multimedia"> </HEAD> <BODY BACKGROUND="../images/marb18.jpg" BGCOLOR="#FFFFFF" TEXT="#000000" ALINK="#8080FF"> <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"> <TR> <TD CLASS="menu" WIDTH="100%" HEIGHT="150"> <IMG SRC="../images/diode.gif" ALT="" WIDTH="300" HEIGHT="150" BORDER="0" HSPACE="20" VSPACE="0" ALIGN="LEFT"> <IMG SRC="../images/lirc.gif" ALT="" WIDTH="300" HEIGHT="150" BORDER="0" HSPACE="20" VSPACE="0" ALIGN="RIGHT"> </TD> </TR> <TR> <TD WIDTH="100%"> <BR> <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"> <TR> <TD WIDTH="15%"> <BR></TD> <TD WIDTH="70%" ALIGN="LEFT" VALIGN="TOP"> <BR> <!-- Text ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <H1>IRSEND</H1> <HR> <A NAME="lbAB"> </A> <H2>NAME</H2> irsend - basic LIRC program to send infra-red commands <A NAME="lbAC"> </A> <H2>SYNOPSIS</H2> <B>irsend</B> [<I>options</I>] <I>DIRECTIVE REMOTE CODE </I>[<I>CODE</I>...] <A NAME="lbAD"> </A> <H2>DESCRIPTION</H2> Asks the <B>lircd</B> daemon to send one or more CIR (Consumer Infra-Red) commands. This is intended for remote control of electronic devices such as TV boxes, HiFi sets, etc. <P> <I>DIRECTIVE</I> can be: <PRE> <DL COMPACT><DT><DD><B>SEND_ONCE</B> - send <I>CODE</I> [<I>CODE</I> ...] once <B>SEND_START</B> - start repeating <I>CODE</I> <B>SEND_STOP</B> - stop repeating <I>CODE</I> <B>LIST</B> - list configured remote items <B>SET_TRANSMITTERS</B> - set transmitters <I>NUM</I> [<I>NUM</I> ...] <B>SIMULATE</B> - simulate IR event </DL> </PRE> <P> <P> <I>REMOTE</I> is the name of a remote, as described in the <B>lircd</B> configuration file. <P> <P> <I>CODE</I> is the name of a remote control key of <I>REMOTE</I>, as it appears in the <B>lircd</B> configuration file. <P> <P> <I>NUM</I> is the transmitter number of the hardware device. <P> <P> For the <B>LIST</B> <I>DIRECTIVE</I>, <I>REMOTE</I> and/or <I>CODE</I> can be empty: <P> <PRE> <DL COMPACT><DT><DD><B>LIST</B> "" "" - list all configured remote names <B>LIST</B> <I>REMOTE</I> "" - list all codes of <I>REMOTE</I> <B>LIST</B> <I>REMOTE</I> <I>CODE</I> - list only <I>CODE</I> of <I>REMOTE</I> </DL> </PRE> <P> <P> The <B>SIMULATE</B> command only works if it has been explicitly enabled in lircd. <DL COMPACT> <DT><B>-h</B> <B>--help</B><DD> display usage summary <DT><B>-v</B> <B>--version</B><DD> display version <DT><B>-d</B> <B>--device</B><DD> use given lircd socket [/dev/lircd] <DT><B>-a</B> <B>--address</B>=<I>host[</I>:port]<DD> connect to lircd at this address <DT>-# <B>--count</B>=<I>n</I><DD> send command n times </DL> <A NAME="lbAE"> </A> <H2>EXAMPLES</H2> <PRE> <DL COMPACT><DT><DD>irsend LIST DenonTuner "" irsend SEND_ONCE DenonTuner PROG-SCAN irsend SEND_ONCE OnkyoAmpli VOL-UP VOL-UP VOL-UP VOL-UP irsend SEND_START OnkyoAmpli VOL-DOWN ; sleep 3 irsend SEND_STOP OnkyoAmpli VOL-DOWN irsend SET_TRANSMITTERS 1 irsend SET_TRANSMITTERS 1 3 4 irsend SIMULATE "0000000000000476 00 OK TECHNISAT_ST3004S" </DL> </PRE> <A NAME="lbAF"> </A> <H2>FILES</H2> <DL COMPACT> <DT><I>/etc/lircd.conf</I> <DD> Default <B>lircd</B> configuration file. It should contain all the remotes, their infra-red codes and the corresponding timing and waveform details. <P> </DL> <A NAME="lbAG"> </A> <H2>DIAGNOSTICS</H2> If <B>lircd</B> is not running (or /dev/lircd lacks write permissions) <B>rc</B> aborts with the following diagnostics: <PRE> "irsend: could not connect to socket" "irsend: Connection refused" (or "Permission denied"). </PRE> <A NAME="lbAH"> </A> <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <BR><BR> <CENTER>[<A HREF="http://www.lirc.org/">LIRC homepage</A>]<BR> <I>The LIRC Manual, last update: 17-Jan-2007</I></CENTER> <BR><BR> </TD> <TD WIDTH="15%"> <BR></TD> </TR> </TABLE> </TD> </TR> <TR> <TD CLASS="menu" WIDTH="100%"> <BR> </TD> </TR> </TABLE> </BODY> </HTML>