Static tuner assignment with multiple receivers for each tuner.

Want to write your own code to work with a HDHomeRun or work with the HDHomeRun DVR? We are happy to help with concepts, APIs, best practices.
Post Reply
MattCohen
Posts: 2
Joined: Thu Jul 30, 2020 3:21 pm

Static tuner assignment with multiple receivers for each tuner.

Post by MattCohen »

Hi,

Im sure this is an already discussed topic but Im hoping to get the answer quickly.
I was hoping it would be possible to statically assign the four tuners of a quatro to channels and then have multiple clients receiving the multicast streams of each tuner.
I have had a look through the HTTP API and it would seem possible to use something like http://10.0.1.77:5004/tuner0/v70 to fix the tuner to a channel but this doesn't work. Is there some other way via JSON cmd strings to statically set the tuner? If so how could I then discover the individual tuners multicast stream?

Thanks in advance.

Mathew Cohen.

NedS
Silicondust
Posts: 1383
Joined: Mon Dec 10, 2018 12:38 pm

Re: Static tuner assignment with multiple receivers for each tuner.

Post by NedS »

The hdhomerun_config can be used for setting up multicasting, but you would need something to watchdog/monitor if the stream gets interrupted or of the unit reboots/looses power, so that it can re-issue the commands.

Check out the multicasting section of the TECH manual: https://www.silicondust.com/hdhomerun/h ... n_tech.pdf

Consumer units don't have bootscript support (or static IP support), so the example commands will need to be issued from another device with the hdhomerun_config utility. So this example

Code: Select all

/tuner0/channelmap us-bcast
/tuner0/channel 19
/tuner0/program 3
/tuner0/target rtp://239.255.1.1:59001 ttl=64
Would actually look like this

Code: Select all

hdhomerun_config DEVICEID set /tuner0/channelmap us-bcast
hdhomerun_config DEVICEID set /tuner0/channel 19
hdhomerun_config DEVICEID set /tuner0/program 3
hdhomerun_config DEVICEID set /tuner0/target rtp://239.255.1.1:59001 ttl=64
Where "DEVICEID" should be the 8 digit device ID of your HDHomeRun unit. If there is only one unit on the network, you can use FFFFFFFF as the device ID.

MattCohen
Posts: 2
Joined: Thu Jul 30, 2020 3:21 pm

Re: Static tuner assignment with multiple receivers for each tuner.

Post by MattCohen »

Thanks for the information.

Would it also be possible for an automation controller to monitor and reissue these commands in place of the hdhomerun_config utility?
Could you please link to the protocol information to make this happen?

Many Thanks

Matt

jasonl
Expert
Posts: 15306
Joined: Sun Oct 28, 2007 9:23 pm

Re: Static tuner assignment with multiple receivers for each tuner.

Post by jasonl »

Multicast is not a supported feature of HDHomeRun devices. Silicondust not attempt to block you from using the devices for that, but anything you do with it is entirely on your own and they're not going to provide you with support on how to utilize it with your particular application. All of the control information for the device is available through the libhdhomerun C library, which is open-source (LGPL) and provided by Silicondust to be utilized with outside software for control of the device. You can get it from the Linux downloads page at https://www.silicondust.com/support/linux/, but that same library is used for all supported platforms (Windows/Mac/Linux/FreeBSD/etc.).

Post Reply