Difference between revisions of "Silicondust HDHomeRun setup"

From MythTV Official Wiki
Jump to: navigation, search
m (Reverted edits by Hardaker (Talk) to last revision by Brianboonstra)
(Network Connection)
(30 intermediate revisions by 10 users not shown)
Line 1: Line 1:
[[Image:Hdhomerun.jpg|400px|right|thumb|HDHomeRun]]
+
:''For the CableCARD-based device, see [[Silicondust HDHomeRun Prime]].''
  
The HDHomeRun, by Silicondust USA (a wholly owned subsidiary of Silicondust Engineering, New Zealand), is an external HDTV tuner for personal computers.  It actually has two independent tuners, and interfaces to the computer via ethernet.  The device is supported by MythTV (since v[[Release_Notes_-_0.20|0.20]]), as well as many other PVR software packages.
+
[[Image:HDHomeRun.png|400px|right|thumb|HDHomeRun (the current HDHR3 version, without infrared sensor)]]
 +
 
 +
The HDHomeRun, by Silicondust USA (a wholly owned subsidiary of Silicondust Engineering, New Zealand), is an external HDTV tuner for personal computers.  It actually has 2, 3 or 6 independent tuners, and interfaces to the computer via ethernet.  The device is supported by MythTV (since v[[Release_Notes_-_0.20|0.20]]), as well as many other PVR software packages.
  
 
Since it tunes only digital signals (OTA HDTV as well as "Clear" QAM digital cable), which are already MPEG2 encoded, it has no MPEG encoding hardware.
 
Since it tunes only digital signals (OTA HDTV as well as "Clear" QAM digital cable), which are already MPEG2 encoded, it has no MPEG encoding hardware.
Line 13: Line 15:
 
* Ubuntu Wiki's instructions (includes screen shots) [https://help.ubuntu.com/community/HDHomeRun]
 
* Ubuntu Wiki's instructions (includes screen shots) [https://help.ubuntu.com/community/HDHomeRun]
 
* HDHomeRun [http://www.silicondust.com/hdhomerun/hdhomerun_development.pdf Development Guide].
 
* HDHomeRun [http://www.silicondust.com/hdhomerun/hdhomerun_development.pdf Development Guide].
* HDHomeRun® CableCARD™ [http://www.silicondust.com/press]
+
 
 
== Overview ==
 
== Overview ==
 
Watch over-the-air digital & unencrypted digital cable TV from all computers in your home network
 
Watch over-the-air digital & unencrypted digital cable TV from all computers in your home network
  
Single or dual tuners, depending on model - record/watch multiple channels at once
+
Two, three or six tuners, depending on model - record/watch multiple channels at once
  
IR Receiver - use most standard remotes to signal your PC
+
Gets IP address via DHCP
  
Gets IP address via DHCP
+
(White case version only) IR Receiver - use most standard remotes to signal your PC
  
 
===Compatible With===
 
===Compatible With===
Line 32: Line 34:
 
* MediaPortal - DVR for Windows (beta).
 
* MediaPortal - DVR for Windows (beta).
 
* GB-PVR - DVR for Windows (beta).
 
* GB-PVR - DVR for Windows (beta).
* MythTV - DVR for Linux.
+
* MythTV - DVR for Linux, Windows, OSX.
 
* Pluto - Home automation & media system.
 
* Pluto - Home automation & media system.
* VLC - Multi-platform media viewer.  
+
* VLC - Multi-platform media viewer.
  
 
===Detailed Specifications===
 
===Detailed Specifications===
Line 71: Line 73:
  
 
=== Setting up IR Forwarding ===
 
=== Setting up IR Forwarding ===
The HDHomeRun (HDHR) is capable of forwarding IR commands via your LAN to LIRC.  This can save you some money on purchasing an additional IR receiver for your frontend.  However, the IR receiver is very directional and may require you to aim the remote directly at the HDHR.  These instructions come from the Silicondust website.
+
The older HDHomeRun with the white case is capable of forwarding infrared (IR) commands via your LAN to LIRC.  This can save you some money on purchasing an additional IR receiver for your frontend.  However, the IR receiver is very directional and may require you to aim the remote directly at the HDHR.  These instructions come from the Silicondust website.
  
 
If you don't have them installed already, you need the hdhomerun_config tools installed.  If you're using Ubuntu or one of its derivatives, you can install this by entering the following within a terminal:
 
If you don't have them installed already, you need the hdhomerun_config tools installed.  If you're using Ubuntu or one of its derivatives, you can install this by entering the following within a terminal:
Line 79: Line 81:
 
Now that you have the HDHR software installed, you need to figure out what the <device id> of your box is.  Do this by entering the following command:
 
Now that you have the HDHR software installed, you need to figure out what the <device id> of your box is.  Do this by entering the following command:
  
  hdhomerun-config discover
+
  hdhomerun_config discover
  
 
You should get a result that follows this format:
 
You should get a result that follows this format:
Line 85: Line 87:
 
  hdhomerun device <device id> found at <device IP address>
 
  hdhomerun device <device id> found at <device IP address>
  
Now you need to tell the HDHR to send IR commands to your frontend's IP via a specific port.  Port 5000 is used below, but it can be set to any unused port.  Just make sure you remember what you set it to because we'll be using that when setting up LIRC.
+
Now you need to tell the HDHR to send IR commands to your frontend's IP address via a specific port.  Port 5000 is used below, but it can be set to any unused port.  Just make sure you remember what you set it to because we'll be using that when setting up LIRC.
  
 
  hdhomerun_config <device id> set /ir/target "<frontend IP address>:5000 no_clear"
 
  hdhomerun_config <device id> set /ir/target "<frontend IP address>:5000 no_clear"
Line 134: Line 136:
  
 
Schedules Direct
 
Schedules Direct
Create an account here. The price is 20$/year with first 7 days free.
+
Create an account here. The price is $25/year with first 7 days free.
 
http://www.schedulesdirect.org/
 
http://www.schedulesdirect.org/
  
Line 143: Line 145:
  
 
Listings grabber: North America (Schedules Direct) (Internal)
 
Listings grabber: North America (Schedules Direct) (Internal)
User id: <login name for schedulesdirect>
+
User id: <login name for Schedules Direct>
Password: <password for schedulesdirect>
+
Password: <password for Schedules Direct>
 
Retrieve lineups: <enter>
 
Retrieve lineups: <enter>
 
Data direct lineup: <select correct listing>
 
Data direct lineup: <select correct listing>
Line 151: Line 153:
  
 
== North America Digital Cable ==
 
== North America Digital Cable ==
 +
Note: you may find [[Scte65scan]] to be an alternative option that may more easily align channel numbers.
 +
 
  <nowiki>
 
  <nowiki>
 
mythtv-setup - Video sources
 
mythtv-setup - Video sources
Line 217: Line 221:
 
Finish <enter>
 
Finish <enter>
 
</nowiki>
 
</nowiki>
 +
 +
=== Running mythfillbackend ===
 +
 +
If you're replacing previous connections and channels, make sure you download a complete new listing using:
 +
 +
  mythfilldatabase --dd-grab-all
 +
 +
Without that option you'll find yourself still missing guide data.
  
 
== What to do if you get no channels ==
 
== What to do if you get no channels ==
 
If you know you for a fact that you should be getting some channels, but mythtv's scanning isn't working - you can try to fix it by doing these two things:  
 
If you know you for a fact that you should be getting some channels, but mythtv's scanning isn't working - you can try to fix it by doing these two things:  
 
# Install the hdhomerun-config utility ( For recent distributions of Ubuntu it's as simple as <code>sudo apt-get install hdhomerun-config</code> )
 
# Install the hdhomerun-config utility ( For recent distributions of Ubuntu it's as simple as <code>sudo apt-get install hdhomerun-config</code> )
# Run  <code>hdhomerun-config discover</code> and make note of the actual device ID, use this instead of FFFFFFF  
+
# Run  <code>hdhomerun_config discover</code> and make note of the actual device ID, use this instead of FFFFFFF  
 
# delete the HDHR tuners and re-add them
 
# delete the HDHR tuners and re-add them
  
 
For at least one user, the above set of steps solved the problem of getting 0 channels reported. The hdhomerun-config may be required for the scanner to work properly?
 
For at least one user, the above set of steps solved the problem of getting 0 channels reported. The hdhomerun-config may be required for the scanner to work properly?
 +
If you still get nothing try the command:
 +
hdhomerun_config DeviceID scan 0<BR>
 +
Which should do a scan on tuner 0 of the hdhomerun box and show it with output looking like:<BR>
 +
SCANNING: 653000000 (us-bcast:44)<BR>
 +
LOCK: none (ss=35 snq=0 seq=0)<BR>
 +
SCANNING: 647000000 (us-bcast:43)<BR>
 +
LOCK: 8vsb (ss=60 snq=52 seq=100)<BR>
 +
TSID: 0x0559<BR>
 +
PROGRAM 3: 44.2 World<BR>
 +
PROGRAM 4: 44.3 Create<BR>
 +
PROGRAM 5: 44.4 Kids<BR>
 +
PROGRAM 7: 44.1 WGBX-HD<BR>
 +
and so on.
  
 
== Can't Connect to HDHR? ==
 
== Can't Connect to HDHR? ==
Line 238: Line 263:
  
  
== Fixing HDHomeRun Channel Scanning in MythTV .20 ==
 
Note these instructions are seemingly obsolete, and have nothing to do with channel scanning not getting a channel because the signal was not strong enough. (mythfrontend, but surprisingly not mythtv-setup, has a configuration setting for minimum signal level to offer the channel. Default is 65%)
 
  
In order to get channel scan working correctly in MythTV .20, you need to get the RPM's that Jarod Wilson patched with the .20-fixes including the fix for HDHR. Update the following packages:  
+
== Network Connection ==
 +
 
 +
The HDHomeRun normally expects to obtain a DHCP lease. However, with the latest firmware it is also possible to configure it statically.  This is particularly convenient if you want to connect the HDHomeRun directly to a NIC on your MythTV system, rather than through a switch on your network. To do this, configure your local interface with a static IP address in the range of 169.254.x.x (eg. 169.254.1.10) with a subnet mask of 255.255.0.0 and no gateway. No need to configure routes, the HDHR's will not be accessible to devices on your existing network, but your backend should have no problem seeing them.
 +
 
 +
Alternatively add the following lines to your interfaces file ('ipv4ll' is a relatively new option, easier than using 'static'):
 +
 
 +
<pre>
 +
auto eth1
 +
iface eth1 inet ipv4ll
 +
</pre>
  
  http://dl.atrpms.net/mythdora/4.0/i386/os/MythDora/libmyth-0.20.1-156.3.md4.i386.rpm
+
The HDHomeRun uses UDP to communicate to the backend. Since UDP is connectionless, it does not retry if a packet is lost. This can cause a problem with hubs, especially with multiple HD video streams and other traffic. Any collision on the network generally results in part of the video stream being lostThis shows up as random blocks in the video being corrupt, generally with colors that stand out against the videoSwitches resolve this problem since they break up the network into more collision domains, although this problem will still appear if then network becomes fully saturated with traffic.
  http://dl.atrpms.net/mythdora/4.0/i386/os/MythDora/mythtv-setup-0.20.1-156.3.md4.i386.rpm
 
  http://dl.atrpms.net/mythdora/4.0/i386/os/MythDora/mythtv-backend-0.20.1-156.3.md4.i386.rpm
 
  
or the Easy Way:
+
== Truncated Recordings ==
  
  cat << EOF >> /etc/yum.repos.d/mythdora.repo
+
When connecting to the HDHomeRun, it is recommended that you use the Device ID and not the IP address to specify the HDHomeRun to MythTV-setup. There may be an issue with in addressing the second tuner of the HDHomeRun, which will result in existing recordings terminating aburptly when the other tuner is accessed by MythTV. See {{ticket|9247}}.
  [mythdora]
+
 
name=MythDora 4 - i386
+
Ensure that the HDHomeRun device is properly detected on the network using the <code>hdhomerun_config discover</code> command. If it is not, then resolve the connection issue before attempting to add the HDHomeRun in mythtv-setup. If things are configured correctly, the mythtv-setup program should automatically detect the device ID of the HDHomeRun when adding the tuner.
baseurl=http://dl.atrpms.net/mythdora/4.0/i386/os/
+
 
enabled=0
+
In one case, although the IP of the HDHomeRun could be pinged from the MythTV machine, different netmasks between the MythTV machine and the HDHomeRun caused mythtv-setup and hdhomerun_config not to autodetect the device. Other causes might include a firewall on the MythTV box blocking access.
gpgcheck=0
+
 
EOF
+
== Troubleshooting ==
+
 
yum --enablerepo=mythdora upgrade \*myth\*
+
=== Network buffers ===
 +
Choppy playback, trying increasing the network buffers.
 +
 
 +
<pre>
 +
sysctl -w net.core.rmem_max=1048576
 +
</pre>
 +
 
 +
=== Network loss ===
 +
Check for network loss found in silicondust FAQ [http://www.silicondust.com/forum/viewtopic.php?t=5877&start=0&postdays=0&postorder=asc&highlight=&sid=5f241e003d343fdb9350d8bb97625a82 forum]. Pasted below, you can translate the path of the binaries yourself.
 +
 
 +
Low level test for network packet loss - ATSC/QAM/DVB:
 +
 
 +
1) Run HDHomeRun Setup and go into the channel editor. Choose a physical channel number (for example CH102). This is the number before the - in the Tune column.
 +
 
 +
2) From a cmd prompt run:
 +
"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" FFFFFFFF set /tuner0/channel auto:<channel number>
 +
"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" FFFFFFFF save /tuner0 null
 +
 
 +
Replace "<channel number>" with the physical channel number from HDHomeRun Setup (e.g. 102).
 +
 
 +
If you have more than one HDHomeRun unit then replace "FFFFFFFF" with the device ID of the desired unit.
 +
 
 +
You should see a series of dots. "n" indicates network packet loss. "t" indicates a reception error. "s" is informational.
 +
 
 +
Low level test for network packet loss - PRIME:
 +
 
 +
1) From a cmd prompt run:
 +
"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" FFFFFFFF set /tuner0/vchannel <channel number>
 +
"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" FFFFFFFF save /tuner0 null
  
You should be able to scan channels using mythtv-setup now. If you have any problems (missing tables and such) try deleting all the channels first and then rescanning. I ended up getting a clean start by deleting all channels and capture cards then starting fresh with these packages.
+
Replace "<channel number>" with the channel number for an unprotected channel in your area.  
  
== Network Connection ==
+
If you have more than one HDHomeRun unit then replace "FFFFFFFF" with the device ID of the desired unit.
  
The HDHomeRun normally expects to obtain a DHCP lease. However, with the latest firmware it is also possible to configure it statically.  This is particularly convenient if you want to connect the HDHomeRun directly to a NIC on your MythTV system, rather than through a switch on your network. To do this, configure your local interface with a static IP address in the range of 169.254.x.x (eg. 169.254.1.10) with a subnet mask of 255.255.0.0 and no gateway.
+
You should see a series of dots. "n" indicates network packet loss. "t" indicates a reception error. "s" is informational.
  
[[Category:HDTV capture cards]]
+
[[Category:HDHomeRun]]
[[Category:Video capture cards]]
 

Revision as of 02:21, 11 September 2012

For the CableCARD-based device, see Silicondust HDHomeRun Prime.
HDHomeRun (the current HDHR3 version, without infrared sensor)

The HDHomeRun, by Silicondust USA (a wholly owned subsidiary of Silicondust Engineering, New Zealand), is an external HDTV tuner for personal computers. It actually has 2, 3 or 6 independent tuners, and interfaces to the computer via ethernet. The device is supported by MythTV (since v0.20), as well as many other PVR software packages.

Since it tunes only digital signals (OTA HDTV as well as "Clear" QAM digital cable), which are already MPEG2 encoded, it has no MPEG encoding hardware.


More Information

Overview

Watch over-the-air digital & unencrypted digital cable TV from all computers in your home network

Two, three or six tuners, depending on model - record/watch multiple channels at once

Gets IP address via DHCP

(White case version only) IR Receiver - use most standard remotes to signal your PC

Compatible With

  • Windows Media Center:
    • MCE 2005 (beta).
    • Vista MCE 32-bit (beta).
    • Vista MCE 64-bit (beta).
  • SnapStream BeyondTV (beta)
  • SageTV - DVR for Windows.
  • MediaPortal - DVR for Windows (beta).
  • GB-PVR - DVR for Windows (beta).
  • MythTV - DVR for Linux, Windows, OSX.
  • Pluto - Home automation & media system.
  • VLC - Multi-platform media viewer.

Detailed Specifications

  • 8-VSB (ATSC over-the-air digital HDTV)
  • QAM64/256 (unencrypted digital cable TV)
  • Single or dual HDTV tuners, depending on model
  • IR Receiver (38kHz)
  • 100baseTX high speed network

Package Includes

  • Networked Digital HDTV Tuner
  • Power supply
  • 7' RJ45 Patch Cable

Instructions (from HDHomeRun Forum)

If you are running an older version of MythTV you will need to upgrade to 0.20 (or later).

If you are using the MythTV 0.20 Ubuntu/Debian package then you will need to update /usr/lib/libmythtv-0.20.so.0.20.0 once mythtv has been installed. http://www.silicondust.com/hdhomerun/libmythtv-0.20.so.tgz

mythtv-setup - Capture device

Add a new capture card with the following configuration:
Card type: HDHomeRun DTV tuner box
Device ID: <number from back of HDHomeRun>
Tuner: 0
Finish: <enter>

Shortcut - if there is only one HDHomeRun on the local network you can use the wildcard FFFFFFFF device ID.

Repeat adding a second capture card for tuner 1:
Card type: HDHomeRun DTV tuner box
Device ID: <number from back of HDHomeRun>
Tuner: 1
Finish: <enter>

Setting up IR Forwarding

The older HDHomeRun with the white case is capable of forwarding infrared (IR) commands via your LAN to LIRC. This can save you some money on purchasing an additional IR receiver for your frontend. However, the IR receiver is very directional and may require you to aim the remote directly at the HDHR. These instructions come from the Silicondust website.

If you don't have them installed already, you need the hdhomerun_config tools installed. If you're using Ubuntu or one of its derivatives, you can install this by entering the following within a terminal:

sudo apt-get install hdhomerun-config

Now that you have the HDHR software installed, you need to figure out what the <device id> of your box is. Do this by entering the following command:

hdhomerun_config discover

You should get a result that follows this format:

hdhomerun device <device id> found at <device IP address>

Now you need to tell the HDHR to send IR commands to your frontend's IP address via a specific port. Port 5000 is used below, but it can be set to any unused port. Just make sure you remember what you set it to because we'll be using that when setting up LIRC.

hdhomerun_config <device id> set /ir/target "<frontend IP address>:5000 no_clear"

NOTE: Silicondust's website says that you can save the IR target to the HDHR's flash memory using the following command. I've had difficulty getting this to work, but here's the command. If this doesn't work either, you'll just need to issue the above command whenever your HDHR is unplugged and sometimes if your router gets reset.

hdhomerun_config <device id> set /ir/target "<frontend IP address>:5000 store" 

The last thing to do is to get LIRC listening for IR commands being sent from your HDHR. We'll kill any lircd processes first, just to be sure. Then we'll get LIRC listening on the proper port. We're using port 5000 again here, because that's what we told the HDHR to use. If you used another port, you'll need to specify that same port here.

sudo killall lircd
sudo lircd -H udp -d 5000

That's it. If mythfrontend is already running on your machine, you'll need to exit out of it and restart the frontend (just the application, not the computer) for it to work.

North America Digital Antenna

mythtv-setup - Video sources
Add a new video source with the following configuration:
Video source name: Antenna
Listings grabber: No grabber (will come back and change this later)
Channel frequency table: us-bcast

mythtv-setup - Input connections
Configure HDHomeRun Port 0 as follows:
Video source: Antenna
External channel change command: <blank>
Preset tuner to channel: <blank>
Scan for channels: <enter>

Scan for channels page:
Scan type: Full scan
Frequency table: Broadcast
ATSC modulation: Terrestrial (8-VSB)
Channel seperator: Period
Existing channel treatment: Minimal updates
Next: <enter>

Back on "Connect source to input page":
Starting channel: <choose a valid channel>
Finish <enter>

Repeat for HDHomeRun Port 1.

mythtv-setup - Channel Editor

Note list of channels for source "Antenna"

Schedules Direct
Create an account here. The price is $25/year with first 7 days free.
http://www.schedulesdirect.org/

Create a channel lineup and enable/disable channels based on channels listed in the Channel Editor in mythtv-setup.

mythtv-setup - Video sources
Change the configuration for antenna as follows:

Listings grabber: North America (Schedules Direct) (Internal)
User id: <login name for Schedules Direct>
Password: <password for Schedules Direct>
Retrieve lineups: <enter>
Data direct lineup: <select correct listing>
Finish <enter>

North America Digital Cable

Note: you may find Scte65scan to be an alternative option that may more easily align channel numbers.

mythtv-setup - Video sources
Add a new video source with the following configuration:
Video source name: Digital Cable
Listings grabber: No grabber (will come back and change this later)
Channel frequency table: us-cable

mythtv-setup - Input connections
Configure HDHomeRun Port 0 as follows:
Video source: Digital Cable
External channel change command: <blank>
Preset tuner to channel: <blank>
Select "Scan for channels" <enter>

Scan for channels page:
Scan type: Full scan
Frequency table: Cable
ATSC modulation: Cable (QAM-256)
Channel seperator: Period
Existing channel treatment: Minimal updates
Next: <enter>

Back on "Connect source to input page":
Select "Scan for channels" <enter>

Scan for channels page:
Scan type: Full scan
Frequency table: Cable
ATSC modulation: Cable (QAM-64)
Channel seperator: Period
Existing channel treatment: Minimal updates
Next: <enter>

Back on "Connect source to input page":
Starting channel: <choose a valid channel>
Finish <enter>

Repeat for HDHomeRun Port 1.

mythtv-setup - Channel Editor

Note list of channels for source "Digital Cable"

Schedules Direct
Create an account here:
http://schedulesdirect.org/

Create a channel lineup and enable/disable channels based on channels listed in the Channel
Editor in mythtv-setup. Make sure the channel name and number in Schedules Direct matches
the display channel name and number in the Channel Editor in MythTV.

Note that MythTV uses the ATSC channel numbering as specified in the transport stream, not
the remapped cable channel numbering so you will need to select OTA/Antenna as the source
in Schedules Direct. However a mapping must be made to ensure that the listings correspond
to the correct channels.

mythtv-setup - Video sources
Change the configuration for digital cable as follows:

Listings grabber: North America (Schedules Direct) (Internal)
User id: <login name for Schedules Direct>
Password: <password for Schedules Direct>
Retrieve lineups: <enter>
Schedules Direct lineup: <select correct listing>
Finish <enter>

Running mythfillbackend

If you're replacing previous connections and channels, make sure you download a complete new listing using:

 mythfilldatabase --dd-grab-all

Without that option you'll find yourself still missing guide data.

What to do if you get no channels

If you know you for a fact that you should be getting some channels, but mythtv's scanning isn't working - you can try to fix it by doing these two things:

  1. Install the hdhomerun-config utility ( For recent distributions of Ubuntu it's as simple as sudo apt-get install hdhomerun-config )
  2. Run hdhomerun_config discover and make note of the actual device ID, use this instead of FFFFFFF
  3. delete the HDHR tuners and re-add them

For at least one user, the above set of steps solved the problem of getting 0 channels reported. The hdhomerun-config may be required for the scanner to work properly? If you still get nothing try the command: hdhomerun_config DeviceID scan 0
Which should do a scan on tuner 0 of the hdhomerun box and show it with output looking like:
SCANNING: 653000000 (us-bcast:44)
LOCK: none (ss=35 snq=0 seq=0)
SCANNING: 647000000 (us-bcast:43)
LOCK: 8vsb (ss=60 snq=52 seq=100)
TSID: 0x0559
PROGRAM 3: 44.2 World
PROGRAM 4: 44.3 Create
PROGRAM 5: 44.4 Kids
PROGRAM 7: 44.1 WGBX-HD
and so on.

Can't Connect to HDHR?

You may have a firewall in the middle blocking traffic. If so, an easy solution is adding a firewall rule that permits all traffic to and from the HDHR.

The following example uses the HDHR's mac address to avoid any hassles with IP changes:

-A INPUT -m mac --mac-source HDHR:MAC:ADDRESS -j ACCEPT

It is convenient (or maybe required for your OS flavor when using a GUI to edit the rules) to store this rule in an external file. For example, on Fedora, /etc/sysconfig/iptables-hdhomerun, and add a custom rule that refers to that file.


Network Connection

The HDHomeRun normally expects to obtain a DHCP lease. However, with the latest firmware it is also possible to configure it statically. This is particularly convenient if you want to connect the HDHomeRun directly to a NIC on your MythTV system, rather than through a switch on your network. To do this, configure your local interface with a static IP address in the range of 169.254.x.x (eg. 169.254.1.10) with a subnet mask of 255.255.0.0 and no gateway. No need to configure routes, the HDHR's will not be accessible to devices on your existing network, but your backend should have no problem seeing them.

Alternatively add the following lines to your interfaces file ('ipv4ll' is a relatively new option, easier than using 'static'):

auto eth1
iface eth1 inet ipv4ll

The HDHomeRun uses UDP to communicate to the backend. Since UDP is connectionless, it does not retry if a packet is lost. This can cause a problem with hubs, especially with multiple HD video streams and other traffic. Any collision on the network generally results in part of the video stream being lost. This shows up as random blocks in the video being corrupt, generally with colors that stand out against the video. Switches resolve this problem since they break up the network into more collision domains, although this problem will still appear if then network becomes fully saturated with traffic.

Truncated Recordings

When connecting to the HDHomeRun, it is recommended that you use the Device ID and not the IP address to specify the HDHomeRun to MythTV-setup. There may be an issue with in addressing the second tuner of the HDHomeRun, which will result in existing recordings terminating aburptly when the other tuner is accessed by MythTV. See #9247.

Ensure that the HDHomeRun device is properly detected on the network using the hdhomerun_config discover command. If it is not, then resolve the connection issue before attempting to add the HDHomeRun in mythtv-setup. If things are configured correctly, the mythtv-setup program should automatically detect the device ID of the HDHomeRun when adding the tuner.

In one case, although the IP of the HDHomeRun could be pinged from the MythTV machine, different netmasks between the MythTV machine and the HDHomeRun caused mythtv-setup and hdhomerun_config not to autodetect the device. Other causes might include a firewall on the MythTV box blocking access.

Troubleshooting

Network buffers

Choppy playback, trying increasing the network buffers.

sysctl -w net.core.rmem_max=1048576

Network loss

Check for network loss found in silicondust FAQ forum. Pasted below, you can translate the path of the binaries yourself.

Low level test for network packet loss - ATSC/QAM/DVB:

1) Run HDHomeRun Setup and go into the channel editor. Choose a physical channel number (for example CH102). This is the number before the - in the Tune column.

2) From a cmd prompt run: "C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" FFFFFFFF set /tuner0/channel auto:<channel number> "C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" FFFFFFFF save /tuner0 null

Replace "<channel number>" with the physical channel number from HDHomeRun Setup (e.g. 102).

If you have more than one HDHomeRun unit then replace "FFFFFFFF" with the device ID of the desired unit.

You should see a series of dots. "n" indicates network packet loss. "t" indicates a reception error. "s" is informational.

Low level test for network packet loss - PRIME:

1) From a cmd prompt run: "C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" FFFFFFFF set /tuner0/vchannel <channel number> "C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" FFFFFFFF save /tuner0 null

Replace "<channel number>" with the channel number for an unprotected channel in your area.

If you have more than one HDHomeRun unit then replace "FFFFFFFF" with the device ID of the desired unit.

You should see a series of dots. "n" indicates network packet loss. "t" indicates a reception error. "s" is informational.