Ok, here are some instructions for anyone who wants to use the ir receiver function of the hdhomerun with linuxmce. I’ll report this in mantis because I think it’s a bug that udp won’t start without these minor adjustments.
First run the following from a command prompt
/usr/pluto/bin/hdhomerun_config hdhomerun_MAC_address set /ir/target "ip_address_of_the_target_MD:5000 no_clear"
That sets where the hdhomerun will send the received signals to. This should only have to be redone after reseting the hdhomerun or after a power failure.
On that note, can anyone tell me where I could add that command so it is run everytime the router is quick reloaded?
Then open the web admin
Goto Device>Configuration>Device Templates
Enter 1690 into the bottom box and press go
This should be the udp device template
Press Pick device template
In Device data section of the udp template:
Use the dropdown box next to Add a new parameter. Select serial port and press add.
Check the settings for #1 Device(string) & #62 Serial Port(string)
Make sure Allowed to modify is CHECKED
Set the Default Value for #1 Device(string) to “udp –d 5000 #” without the quotes
Set the Default Value for #62 Serial Port(string) to 1
Click save on the bottom
Now goto Wizard>Devices>Media Directors
Find the MD you want to control and select udp for the Infrared Receiver
Press the update button
Now quick reload the router and udp should start with no errors.
From here just add your remote config file with proper linuxmce mappings and you should be all set.
What this does is trick LIRC_DCE into thinking it has a valid serial port. It seems to need a serial port set to 1 or 2 if no /dev/lirc or /dev/lirc/0 exist, and this is the case if using the udp driver with lirc. The real parameters passed to lircd are in the #1 Device(string). Since the # is there, the serial port value will be ignored by lircd. Basically LIRC_DCE will run “lircd –H udp –d 5000 # -d 1”
I’m writing this from memory, if I missed something let me know. I am now happily using a remote to control my MD instead of my bulky wireless keyboard, and I figured there seems to be a lot of HDhomeruns out there, might as well use this as an extra IR receiver.