Re: lirc - Send doesn't work e.g. ir-ctl -stv.ir
Sean Young <[email protected]> Sat, 13 Sep 2025 16:58:22 +0100
| Newsgroups | gmane.comp.hardware.lirc |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Sep 13, 2025 at 11:34:59AM +0200, Mariusz Ferdyn wrote: > I am using: > = > IR Receiver + Wire - Iduino SE027 > = > IR 940nm Transmitter + Wire - Iduino SE028 > = > = > I can record: > = > ir-ctl -rtv.ir -d /dev/lirc1 > = > cat tv.ir > +4541 -4401 +603 -1622 +623 -1631 +617 -1621 +629 -494 +623 -505 +623 -506 > +622 -505 +624 -504 +627 -1620 +621 -1623 +629 -1630 +606 -507 +632 -495 > +621 -504 +623 -505 +625 -504 +622 -505 +624 -1639 +634 -480 +622 -503 +6= 49 > -481 +622 -506 +621 -506 +623 -505 +649 -1601 +624 -500 +649 -1600 +617 > -1625 +621 -1627 +619 -1623 +632 -1619 +613 -1623 +646 -24922 > +4519 -4404 +615 -1624 +618 -1626 +644 -1601 +647 -479 +648 -481 +654 -476 > +621 -504 +624 -505 +647 -1600 +647 -1599 +622 -1624 +627 -510 +646 -480 > +645 -491 +606 -508 +620 -502 +649 -477 +626 -1625 +627 -493 +652 -481 +6= 42 > -486 +630 -496 +645 -475 +622 -503 +622 -1626 +645 -482 +623 -1635 +634 > -1600 +618 -1625 +620 -1625 +640 -1606 +631 -1617 +647 -27229 > +4532 -4394 +641 -1607 +610 -1626 +622 -1626 +643 -481 +647 -480 +621 -514 > +646 -474 +647 -490 +642 -1598 +642 -1600 +643 -1601 +644 -481 +647 -483 > +657 -470 +644 -482 +648 -482 +644 -482 +647 -1601 +619 -507 +647 -481 +6= 48 > -479 +627 -502 +643 -483 +644 -485 +643 -1603 +646 -482 +645 -1601 +642 > -1613 +616 -1620 +645 -1599 +642 -1604 +642 -1603 +655 -19502 > +4556 -4370 +641 -1605 +642 -1605 +638 -1602 +643 -484 +644 -485 +645 -484 > +642 -484 +644 -483 +643 -1614 +639 -1596 +639 -1607 +639 -484 +643 -485 > +643 -484 +644 -485 +656 -472 +643 -487 +642 -1603 +647 -488 +635 -483 +6= 44 > -483 +642 -485 +643 -488 +652 -474 +643 -1604 +642 -484 +642 -1605 +641 > -1607 +640 -1615 +636 -1594 +641 -1623 +626 -1601 +640 -21768 > = > = > = > but when I execute: > = > ir-ctl -stv.ir > warning: tv.ir:4: trailing space ignored > = > = > I see that IR is working (Iduino SE028 has LED and using my mobile camera= ), > but TV is not switching ON. That's odd. = 1) The first thing that springs to mind is that you're not setting the transmit carrier. This is necx so you could try: ir-ctl -c 38400 -stv.ir = Note this should be almost equivalent: ir-ctl -S necx:0x70702 This does not repeat it for four times, but this does: ir-ctl -S necx:0x70702 -S necx:0x70702 -S necx:0x70702 -S necx:0x70702 2) What raspberry pi OS and hardware are you using? 3) Since you're using gpio-ir-tx you need a raspberry pi which isn't ancien= t. Beter to use pwm-ir-tx on a recent kernel. 4) Can you do ir-ctl -r in one window and ir-ctl -s in another? Is the outp= ut what you expect? > cat /etc/lirc/lirc_options.conf > # These are the default options to lircd, if installed as > # /etc/lirc/lirc_options.conf. See the lircd(8) and lircmd(8) > # manpages for info on the different options. > # > # Some tools including mode2 and irw uses values such as > # driver, device, plugindir and loglevel as fallback values > # in not defined elsewhere. > = > [lircd] > nodaemon=A0=A0=A0=A0=A0=A0=A0 =3D False > driver=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D devinput > device=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D auto > output=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D /var/run/lirc/lircd > pidfile=A0=A0=A0=A0=A0=A0=A0=A0 =3D /var/run/lirc/lircd.pid > plugindir=A0=A0=A0=A0=A0=A0 =3D /usr/lib/arm-linux-gnueabihf/lirc/plugins > permission=A0=A0=A0=A0=A0 =3D 666 > allow-simulate=A0 =3D No > repeat-max=A0=A0=A0=A0=A0 =3D 600 > #effective-user =3D > #listen=A0=A0=A0=A0=A0=A0=A0=A0 =3D [address:]port > #connect=A0=A0=A0=A0=A0=A0=A0 =3D host[:port] > #loglevel=A0=A0=A0=A0=A0=A0 =3D 6 > #release=A0=A0=A0=A0=A0=A0=A0 =3D true > #release_suffix =3D _EVUP > #logfile=A0=A0=A0=A0=A0=A0=A0 =3D ... > #driver-options =3D ... > = > [lircmd] > uinput=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D False > nodaemon=A0=A0=A0=A0=A0=A0=A0 =3D False > = > # [modinit] > # code =3D /usr/sbin/modprobe lirc_serial > # code1 =3D /usr/bin/setfacl -m g:lirc:rw /dev/uinput > # code2 =3D ... > = > = > # [lircd-uinput] > # add-release-events =3D False > # release-timeout=A0=A0=A0 =3D 200 > # release-suffix=A0=A0=A0=A0 =3D _EVUP > = > driver=A0=A0=A0 =3D default > device=A0=A0=A0 =3D /dev/lirc0 > = > driver=A0=A0=A0 =3D default > device=A0=A0=A0 =3D /dev/lirc0 The lirc daemon is not used at all in your way of doing this. Which makes it off-topic for this list. Sean