Dobrica Pavlinušić's random unstructured stuff
lirc: Revision 2
Hints about using recent lirc ir-ctlinstall# apt install v4l-utils root@nuc2:~# ir-ctl --features Receive features /dev/lirc0: - Device can receive raw IR - Set receive carrier - Can set recording timeout min:100000 microseconds max:1000000 microseconds Send features /dev/lirc0: - Device can send raw IR - Set carrier - Set duty cycle sniffroot@nuc2:~# ir-ctl -r -m -v gpio-ir-txsend IR signals using GPIO on cubieboard https://github.com/dpavlin/linux-gpio-pinout/blob/master/device-tree/gpio-ir-tx.dts root@cubieboard:~# modinfo gpio-ir-tx filename: /lib/modules/4.19.44-sunxi/kernel/drivers/media/rc/gpio-ir-tx.ko license: GPL author: Sean Young <sean@mess.org> description: GPIO IR Bit Banging Transmitter alias: of:N*T*Cgpio-ir-txC* alias: of:N*T*Cgpio-ir-tx depends: intree: Y name: gpio_ir_tx vermagic: 4.19.44-sunxi SMP mod_unload ARMv7 thumb2 p2v8 root@cubieboard:/home/dpavlin/linux-gpio-pinout# armbian-add-overlay device-tree/gpio-ir-tx.dts Compiling the overlay Copying the compiled overlay file to /boot/overlay-user/ Reboot is required to apply the changes root@cubieboard:/home/dpavlin/linux-gpio-pinout# ./overlay-load.sh /boot/overlay-user/gpio-ir-tx.dtbo + dtb=/boot/overlay-user/gpio-ir-tx.dtbo + test -f /boot/overlay-user/gpio-ir-tx.dtbo + + awkmount { print $3 } -t configfs + config=/sys/kernel/config + basename /boot/overlay-user/gpio-ir-tx.dtbo + name=gpio-ir-tx.dtbo + dir=/sys/kernel/config/device-tree/overlays/gpio-ir-tx.dtbo + test -d /sys/kernel/config/device-tree/overlays/gpio-ir-tx.dtbo + mkdir /sys/kernel/config/device-tree/overlays/gpio-ir-tx.dtbo + cat /boot/overlay-user/gpio-ir-tx.dtbo + cat /sys/kernel/config/device-tree/overlays/gpio-ir-tx.dtbo/status applied root@cubieboard:/home/dpavlin/linux-gpio-pinout# [Sun Jun 2 19:51:10 2019] rc rc1: GPIO IR Bit Banging Transmitter as /devices/platform/irled@0/rc/rc1 [Sun Jun 2 19:51:10 2019] rc rc1: lirc_dev: driver gpio-ir-tx registered at minor = 1, no receiver, raw IR transmitter [Sun Jun 2 19:51:10 2019] rc rc1: GPIO IR Bit Banging Transmitter as /devices/platform/irled@0/rc/rc1 [Sun Jun 2 19:51:10 2019] rc rc1: lirc_dev: driver gpio-ir-tx registered at minor = 1, no receiver, raw IR transmitter root@cubieboard:~# apt-get install v4l-utils # to get ir-ctl root@cubieboard:~# ir-ctl --device /dev/lirc1 --features Receive features /dev/lirc1: - Device cannot receive Send features /dev/lirc1: - Device can send raw IR - Set carrier - Set duty cycle |