LIRC Multiple IRToy devices
Umar Dockrat <[email protected]> Thu, 23 Sep 2021 08:30:51 +0200
| Newsgroups | gmane.comp.hardware.lirc |
|---|---|
| Message-ID | <CAE08+QbYodFNR-CAeeYsOvjE4o5nHCtrWsY+SgX-5q=WS955oQ@mail.gmail.com> |
--===============7333749601471032541== Content-Type: multipart/alternative; boundary="00000000000054084f05cca3c68e" --00000000000054084f05cca3c68e Content-Type: text/plain; charset="UTF-8" Hi, I have managed to setup 1 IRToy successfully on Ubuntu 20.04. However I have a use case where I need multiple IRToys in order to control multiple devices from the Ubuntu machine. I have ensured IRtoys are updated to latest FW v22. When connecting a second IRToy, Ubuntu assigns /dev/ttyACM1 as expected (I know and will implement correct udev rules to ensure consistent assignment). However I am unable to select a specific IRToy to communicate on. I have read the docs regarding multiple lirc instances etc and my setup was to: 1. stop the default system lircd service. 2. start 2 instances lircd from the command line on two terminals as follows: sudo /usr/sbin/lircd --driver=irtoy --device=/dev/ttyACM0 --output=/var/run/lirc/lircd0 --pidfile=/run/lirc/lircd0.pid --nodaemon sudo /usr/sbin/lircd --driver=irtoy --device=/dev/ttyACM1 --output=/var/run/lirc/lircd1 --pidfile=/run/lirc/lircd1.pid --nodaemon On another terminal if I try sending a command to device 0: irsend -d /var/run/lirc/lircd0 SEND_ONCE sumsung voldown Then both IRToy 0 (/dev/ttyACM0) and 1 (/dev/ttyACM1) transmits instead of just the one device. The same occurs when using /var/run/lirc/lircd1 i.e. both IRToy devices transmit. I read about setting transmitters however when I try this command I get an error: irsend -d /var/run/lirc/lircd0 SET_TRANSMITTERS 1 Error running command: Input/output error Im hoping someone would be able to point me in the right direction around using multiple devices and being able to send remotes codes to only a specific device. I would like to use upto 6 IRToys together. Thanks --00000000000054084f05cca3c68e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div><br></div><div>I have managed to setup 1 IRToy suc= cessfully on Ubuntu 20.04. However I have a use case=C2=A0where I need mult= iple IRToys in order to control multiple devices from the Ubuntu machine. I= have ensured IRtoys are updated to latest FW v22. When connecting a second= IRToy, Ubuntu assigns /dev/ttyACM1 as expected (I know and will implement = correct udev rules to ensure consistent assignment). However I am unable to= select a specific IRToy to communicate on.=C2=A0</div><div><br></div><div>= I have read the docs regarding multiple lirc instances etc and my setup was= to:=C2=A0</div><div>1. stop the default system lircd service.</div><div>2.= start 2 instances lircd=C2=A0from the command line on two terminals as fol= lows:</div><div><br></div><div>sudo /usr/sbin/lircd --driver=3Dirtoy --devi= ce=3D/dev/ttyACM0 --output=3D/var/run/lirc/lircd0 --pidfile=3D/run/lirc/lir= cd0.pid --nodaemon</div><div>sudo /usr/sbin/lircd --driver=3Dirtoy --device= =3D/dev/ttyACM1 --output=3D/var/run/lirc/lircd1 --pidfile=3D/run/lirc/lircd= 1.pid --nodaemon<br></div><div><br></div><div>On another terminal if I try = sending a command to device 0:</div><div>irsend -d /var/run/lirc/lircd0=C2= =A0SEND_ONCE sumsung voldown<br></div><div><br></div><div>Then both IRToy 0= (/dev/ttyACM0) and 1 (/dev/ttyACM1) transmits instead of just the one devi= ce. The same occurs=C2=A0when using /var/run/lirc/lircd1 i.e. both IRToy de= vices transmit.</div><div><br></div><div>I read about setting transmitters = however when I try this command I get an error:</div><div><br></div><div>ir= send -d /var/run/lirc/lircd0 SET_TRANSMITTERS 1<br>Error running command: I= nput/output error<br></div><div><br></div><div>Im hoping someone would be a= ble to point me in the right direction around using multiple devices and be= ing able to send remotes codes to only a specific device. I would like to u= se upto 6 IRToys together.</div><div><br></div><div>Thanks</div><div><br></= div></div> --00000000000054084f05cca3c68e-- --===============7333749601471032541== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============7333749601471032541==--