Re: Forward LIRC from one machine to another via UDP over the network?

Sean Young <[email protected]> Sun, 8 Jun 2025 11:01:34 +0100
Newsgroups gmane.comp.hardware.lirc
Message-ID <[email protected]>
On Sat, May 31, 2025 at 06:51:00PM -0400, Paul Fox wrote:
> patrick wrote:
>  >    I cobbled together this command on the RPi, hoping it would send the IR
>  >    signals to the MythTV computer in the same way the HDHR did but it doesn't
>  >    seem to be working.  I'm running irw on the 192.168.1.2 computer but it's
>  >    not receiving any signals.
>  > 
>  >    /usr/bin/mode2 -d /dev/lirc0 | irtext2udp | socat -
>  >    udp-datagram:[1]192.168.1.2:5000,broadcast
>  > 
>  >    I'm hoping someone else has done this or has experience with it and could
>  >    offer me some assistance please.
> 
> Unless something has changed recently (and I doubt it), irtext2udp
> is broken, because it matches the documentation of the UDP protocol, which
> is also broken.  I submitted patches for these issues in March 2022:
>     https://sourceforge.net/p/lirc/tickets/370/
> I also sent mail to the (this) list about it at the same time -- I'm sure
> it's in the archives.  So that's probably at least part of your problem.

I've applied a fix. I think it's easier to simply fix plugins/udp.c rather
than making everything compatible with something that is clearly a bug.


Sean