lirc on Raspberry Pi Zero W with gpio-ir

Joshua Post <[email protected]> Thu, 7 Mar 2019 16:26:24 +0000
Newsgroups gmane.comp.hardware.lirc
Message-ID <BL0PR02MB568120D3CE9D2D2DC5F70D31C94C0@BL0PR02MB5681.namprd02.prod.outlook.com>
I used the guide found here to setup a RPi Zero W with a VS/1838B receiver and IR LED emitter with lirc-0.9.4c
https://www.instructables.com/id/Amazon-Echo-Controlled-IR-Remote/

Using Stretch with kernel 4.14 and dtoverlay=lirc-rpi,gpio_in_pin=23,gpio_out_pin=22 along with driver=default, everything works fine, I can record new remotes and send codes.
After upgrading the kernel to 4.19 I found that lirc-rpi was removed and the suggested replacement was
dtoverlay=gpio-ir,gpio_pin=23
dtoverlay=gpio-ir-tx,gpio_pin=22

After doing this, I was able to send codes correctly with /dev/lirc0 and I saw a new device for receiving under /dev/lirc1
irw and mode2 both receive codes and display on the screen with existing remote files, but irrecord no longer works.  I tried reinstalling Stretch with kernel 4.14 using gpio-ir and I have the same problems with irrecord so it isn’t specific to the new kernel, but that entry for dtoverlay.

When I try to record, I get the following errors:

irrecord -f -d /dev/lirc1

….

Now hold down button "KEY_POWER".
Something went wrong: Signal length is 0
That's weird because the signal length must be odd!
Please try again. (28 retries left)

Now hold down button "KEY_POWER".
Something went wrong: Something went wrong.Please try again. (27 retries left)

Now hold down button "KEY_POWER".
Something went wrong: Something went wrong.Please try again. (26 retries left)

I also tried creating a new service for /dev/lirc1 with no improvement

At this point I’m lost as what to try next and prevents me from being able to upgrade to the newest kernel since I can’t use lirc-rpi anymore.  Where do I go from here?