Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > eb6f01499a5d4428f90019094419e1c5 > files > 781

liblirc-devel-0.10.1-7.mga7.armv7hl.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>LIRC - Linux Infrared Remote Control</TITLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="lirc.css">
<LINK REL="shortcut icon" HREF="../images/favicon.ico">
<META NAME="description" CONTENT="LIRC - Linux Infrared Remote Control">
<META NAME="keywords" CONTENT="linux remote control, multimedia">
<META charset="UTF-8">
</HEAD>
<body>
<TABLE CLASS="menu"><TR>
<TD CLASS="menu"><IMG class="menuimg" SRC="../images/diode.gif" ALT="LIRC icon" ALIGN="LEFT"></TD>
<TD><IMG class="menuimg" SRC="../images/lirc.gif" ALT="LIRC logo" ALIGN="RIGHT"></TD>
</TR></TABLE>
<a name="irtoy"></a><hr>
    <h1>The IrToy driver</h1>
    <p>
        The irtoy driver supports the irtoy and irdroid devices. </p>


    <p>
        The <a href="http://dangerousprototypes.com/docs/USB_Infrared_Toy">IrToy</a>
        by Dangerous Prototypes is a versatile and cheap USB sender and receiver
        that can be used with Lirc. It is "open hardware" with circuit plans etc being freely available.
        Since Lirc 0.9.2, there is native driver, written by Peter
        Kooiman, contained in Lirc. Previous versions could use it utilizing the
        IrMan emulation in the IrToy.

    </p>
<p>
    The <a href="http://www.irdroid.com"> irdroid </a> device  is basically a
    stripped down irtoy with old firmware and without support for signalling
    pins. </p>

    <h2>Firmware versions</h2>
    <p> Driver supports firmware versions 2.0 and 2.2.
        For instructions, programs, and firmware, see
        <a href="http://dangerousprototypes.com/docs/USB_IR_Toy_firmware_update">this guide</a>. The support for the old 2.0 version is for irdroid.

    </p>
<h2>Device file</h2>
    <p>Linux (udev really) assigns a connected IrToy a name of the form <code>/dev/ttyACM<em>n</em></code>,
        where <code><em>n</em></code> is the smallest non-negative integer not yet taken. This can cause
        unpredicted behavior, not only when using several IrToys, but also in context
        of other device using the same names, like Arduinos. By using <code>--device=auto</code> when
        as argument to Lircd, the lowest <code>/dev/ttyACM<em>n</em></code>, that actually contains an
        IrToy, will be used.

    </p>
<h2>Debugging LEDs</h2>
    <p>There are a few GPIOs which are normally unused. Attaching LEDs to these
        is great for debugging, not only of the
        IrToy and the driver, but also of Lirc itself. For this, solder LEDs between
        the different "pins" and ground, as follows:
    </p>
<ul>
        <li>RA5, the "open" LED". This will be on whenever the device is held open from the host.
        </li>
<li>RA4, the "sending LED". Lights when IR transmission takes place.
        </li>
<li>RA3, the "receive LED". This is on whenever the device is expecting to receive IR signals.
    </li>
</ul>
    <p>This behavior is the same as in <a href="http://www.harctoolbox.org/IrScrutinizer.html">IrScrutinizer</a>.

    </p>
<p><a href="https://www.google.de/search?q=led+resistor+built-in">LEDs with
            build-in resistor</a> are recommended. Otherwise, be sure to include a
            resistor of a few hundered ohms up to a few kiloohms
            (depending to desired brightness and the type of the LED) in series with the LED.

    </p>
<h2>FAQs</h2>
    <h3>Is there a forum for the IrToy?</h3>
    <p><a href="http://dangerousprototypes.com/forum/viewforum.php?f=29">Yes.</a>
    </p>
<h3>The orange LED is permanently on, the device does not show up as /dev/ttyACMn
        any longer, and cannot be accessed from Lirc.</h3>
    <p>The device has gone into the bootloader mode, and expects to be flashed with "new" firmware.
        See <a href="http://dangerousprototypes.com/docs/USB_IR_Toy_firmware_update">this guide</a>.
    </p>
<h3>How do I find out the firmware version?</h3>
    <p>Start Lircd with loglevel 8 or higher, and search for <code>irtoy_getversion</code> in the log file. Alternatively use IrScutinizer.
    </p>
<h3>How do I use udev to get a permanent name for the device?</h3>
    <p>Put a file with the following content in, e.g., <code>/etc/udev/rules.d/11-irtoy.rules</code>.
        (Tested with Fedora)
    </p>
<pre>
SUBSYSTEMS=="usb", ATTRS{idProduct}=="fd08", ATTRS{idVendor}=="04d8", SYMLINK+="irtoy"
</pre>
    <h3>How is it supposed to look like with the present software?</h3>
    <p>When sending, the opening LED and the sending LED go on, and then out immediately.
        Note that Lirc (at in the present version) closes the device directly after sending,
        i.e. the opening LED goes out. When receiving (can be tested with <code>irw</code>),
        the opening and the receiving LEDs go on.


</p>
<p></p>
<p class="footer">
        [<A HREF="http://www.lirc.org/">LIRC homepage</A>]
      </p>
</body>
</html>