File: irsend.html

package info (click to toggle)
lirc 0.7.1pre2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,852 kB
  • ctags: 2,924
  • sloc: ansic: 31,205; sh: 12,021; makefile: 631
file content (147 lines) | stat: -rw-r--r-- 4,102 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!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%">&#160;<BR>
	  <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
	    <TR>
	      <TD WIDTH="15%">&#160;<BR></TD>
	      <TD WIDTH="70%" ALIGN="LEFT" VALIGN="TOP">&#160;<BR>

<!-- Text ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<H1>IRSEND</H1>
<HR>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

irsend - basic LIRC program to send infra-red commands
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>irsend</B>

[<I>options</I>] <I>DIRECTIVE REMOTE CODE </I>[<I>CODE</I>...]
<A NAME="lbAD">&nbsp;</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
</DL>
</PRE>

<P>
<DL COMPACT>
<DT><I>REMOTE</I> is the name of a remote, as described in the <B>lircd</B><DD>
configuration file.
<P>
<DT><I>CODE</I> is the name of a remote control key of <I>REMOTE</I>, as it<DD>
appears in the <B>lircd</B> configuration file.
<P>
</DL>
<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>   &quot;&quot;    &quot;&quot;   - list all configured remote names
<B>LIST</B> <I>REMOTE</I>  &quot;&quot;   - 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>

<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]
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>EXAMPLES</H2>

<PRE>
<DL COMPACT><DT><DD>irsend LIST DenonTuner &quot;&quot;
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
</DL>
</PRE>

<A NAME="lbAF">&nbsp;</A>
<H2>FILES</H2>

<DL COMPACT>
<DT><B>/etc/lircd.conf</B>

<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">&nbsp;</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>
&quot;irsend: could not connect to socket&quot;
&quot;irsend: Connection refused&quot; (or &quot;Permission denied&quot;).
</PRE>

<A NAME="lbAH">&nbsp;</A>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

		<BR><BR>
		<CENTER>[<A HREF="http://www.lirc.org/">LIRC homepage</A>]<BR>
		  <I>The LIRC Manual, last update: 12-Sep-2002</I></CENTER>
		<BR><BR>
	      </TD>
	      <TD WIDTH="15%">&#160;<BR></TD>
	    </TR>
	  </TABLE>
	</TD>
      </TR>
      <TR>
	<TD CLASS="menu" WIDTH="100%">&#160;<BR>
	</TD>
      </TR>
    </TABLE>
  </BODY>
</HTML>