From: Mariusz F. <mf...@fa...> - 2025-09-14 15:38:38
|
@Sean Thank you fro your help - moving to pwm-ir-tx for sending (receive was OK) - /boot/firmware/config.txt: dtoverlay=pwm-ir-tx,gpio_pin=18 dtoverlay=gpio-ir,gpio_pin=22 It is working for Raspbery Pi 1 - for TV Samsung, Sound Bar Creative and Air Condition! Thanks for help. It is part of bigger project: https://github.com/MariuszFerdyn/AirConditionIoTCentral - anyway you can link it to LIRC links. Mariusz On 9/13/2025 5:58 PM, Sean Young wrote: > 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 +649 >> -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 +642 >> -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 +648 >> -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 +644 >> -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 ancient. > 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 output > 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 = False >> driver = devinput >> device = auto >> output = /var/run/lirc/lircd >> pidfile = /var/run/lirc/lircd.pid >> plugindir = /usr/lib/arm-linux-gnueabihf/lirc/plugins >> permission = 666 >> allow-simulate = No >> repeat-max = 600 >> #effective-user = >> #listen = [address:]port >> #connect = host[:port] >> #loglevel = 6 >> #release = true >> #release_suffix = _EVUP >> #logfile = ... >> #driver-options = ... >> >> [lircmd] >> uinput = False >> nodaemon = False >> >> # [modinit] >> # code = /usr/sbin/modprobe lirc_serial >> # code1 = /usr/bin/setfacl -m g:lirc:rw /dev/uinput >> # code2 = ... >> >> >> # [lircd-uinput] >> # add-release-events = False >> # release-timeout = 200 >> # release-suffix = _EVUP >> >> driver = default >> device = /dev/lirc0 >> >> driver = default >> device = /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 > |