Linux DVB driver = success

HDHomeRun development

Moderator: Moderators

Postby tfylliv » Sun Jul 17, 2011 3:32 pm

wilagobler wrote:The problem is in the upstart script /etc/init/dvbhdhomerun-utils.conf

Code: Select all
start on (filesystem and net-device-up and started udev)


The net-device-up event is emitted as soon as lo is up, before the real network has started. userhdhome then runs a discover when only the lo interface is running which of course fails.

To fix it change /etc/init/dvbhdhomerun-utils.conf to
Code: Select all
 start on (filesystem and net-device-up IFACE!=lo and started udev)


Which means at least one real interface is configured before running userhdhomerun.


Good point, I'll add that in the next release.
tfylliv
Expert
 
Posts: 107
Joined: Sat Sep 04, 2010 3:08 pm

Postby tfylliv » Sun Jul 17, 2011 3:44 pm

rmoliner wrote:Hello,

I am trying to install dvbhdhomerun to be used with "tvheadend + xbmc.pvr"
Currently, I am running tvheadend + xbmc.pvr with some USB DVB-S2 devices without any problems.
To be able to use these USB DVB-S2 hardware, I installed S2-liplianin (http://www.linuxtv.org/wiki/index.php/S2-liplianin)


Hey rmoliner, I've recently commited instructions for building with S2-liplianin - if you checkout the latest source code

cvs -z3 -d:pserver:anonymous@dvbhdhomerun.cvs.sourceforge.net:/cvsroot/dvbhdhomerun co -P dvbhdhomerun

And then follow these instructions, you should be in business:

http://dvbhdhomerun.cvs.sourceforge.net ... lianin.txt

The problem (as far as I can interpret) is that the dvb_core module that get loaded via the S2-liplianin drivers doesn't match the dvbhdhomerun driver because dvbhdhomerun is build against the standard kernel headers - dvbhdhomerun need to use the S2-liplianin headers too to "match". Above instructions build using S2-liplianin headers.
tfylliv
Expert
 
Posts: 107
Joined: Sat Sep 04, 2010 3:08 pm

Postby mrmachine » Sun Jul 17, 2011 5:22 pm

Thanks for the help. I did start it one time before changing /etc/dvbhdhomerun to specify DVB-T.

In /home/hts/.hts/tvheadend there were no dvb* folders. There was in ~/.hts/tvheadend, though. But nothing in those folders looks like it is related to dvbhdhomerun.

I deleted it all, anyway. But when I restarted, there was no change. It still shows HDHomeRun ATSC and I can't add a network by location. The dvbhdhomerun log shows:

Code: Select all
Name of device: 1110D57C-0
Auto detecting tuner type
Type of device: hdhomerun3_dvbt
Tuner: 0
Set initial pass-all filter for tuner: 1

Name of device: 1110D57C-1
Auto detecting tuner type
Type of device: hdhomerun3_dvbt
Tuner: 1
Set initial pass-all filter for tuner: 1

Registered tuner, id from kernel: 0 name: 1110D57C-0
Registered tuner, id from kernel: 1 name: 1110D57C-1


The log looks slightly different from what you quoted. It says "Auto detecting tuner type" followed by "Type of device: hdhomerun3_dvbt".

So I tried deleting my whole ~/.hts folder. I had to run tvheadend -C to create a new user, and a new ~/.hts folder was created. When I go to Configuration > TV Adapters, it still shows HDHomeRun ATSC and I can't add networks by location.

What else can I try?

Cheers.
mrmachine
 
Posts: 7
Joined: Sun Jul 17, 2011 5:56 am

Postby tfylliv » Sun Jul 17, 2011 5:33 pm

Code: Select all
Name of device: 1110D57C-0
Auto detecting tuner type
Type of device: hdhomerun3_dvbt
Tuner: 0
Set initial pass-all filter for tuner: 1

Name of device: 1110D57C-1
Auto detecting tuner type
Type of device: hdhomerun3_dvbt
Tuner: 1
Set initial pass-all filter for tuner: 1

Registered tuner, id from kernel: 0 name: 1110D57C-0
Registered tuner, id from kernel: 1 name: 1110D57C-1


This means you must have made a mistake in the /etc/dvbhdhomerun configuration file - since the driver is auto detecting instead of using the values from the configuration file, so double check that, it ought to look like this:

Code: Select all
[1110D57C-0]
tuner_type=DVB-T

[1110D57C-1]
tuner_type=DVB-T


The log looks slightly different from what you quoted. It says "Auto detecting tuner type" followed by "Type of device: hdhomerun3_dvbt".


And just a FYI - the reason it ain't auto-detecting correctly as DVB-T is that I haven't done the auto-detect for the new HDHomerun's yet (http://www.silicondust.com/forum/viewtopic.php?t=10044) default is ATSC, which is why yours end up with that.
tfylliv
Expert
 
Posts: 107
Joined: Sat Sep 04, 2010 3:08 pm

Postby mrmachine » Sun Jul 17, 2011 6:32 pm

D'uh. I'm an idiot. I thought the device ID in the config file was already correct (auto detected), so I just changed the device type and not the ID. Once I changed the device ID and restarted everything, it shows up as HDHomeRun DVB-T in Tvheadend.

Thanks again!
mrmachine
 
Posts: 7
Joined: Sun Jul 17, 2011 5:56 am

Postby mrmachine » Mon Jul 18, 2011 6:34 pm

Now that the HDHomeRun is visible to Tvheadend, it seems that when Tvheadend does it's initial scan of the 6 muxes added by location, it only finds 19 sevices. The same HDHomeRun when used with EyeTV finds 27, and an HVR2250 PCI-e card in the Tvheadend box finds 26.

Any idea what could cause these discrepencies? My signal strength and quality are good. I don't have any problem tuning or watching all 27 services with the HDHomeRun and EyeTV, or with the HVR2250 and Windows 7. No problems watching 26 services with the HVR2250 and Tvheadend (XBMC Live install).
mrmachine
 
Posts: 7
Joined: Sun Jul 17, 2011 5:56 am

Postby rmoliner » Tue Jul 19, 2011 2:22 am

Hi tfylliv,

I have followed your instructions and ... It works !!!!

Now, TVHeadEnd detects 2 HDHomerun tunners and the DVB-S2 USB device.
Using XBMC, I can see & zap a mix of DVB-T and DVB-S2 channels.

Yes. The "standard" dvb API differs from s2-liplianin and v4l-dvb (linuxtv.org)
I was struggling my mind about how to "add" your source code to the liplianin tree. But you have done a brilliant job!!
IMHO, maybe it is a good idea to commit your sources to liplianin & v4l-dvb repositories. I am not sure, but I think these projects are candidates to be included in future linux's kernels.

I repeat. Many thanks and congratulations about your job.

Regards,
rmoliner
 
Posts: 7
Joined: Thu Dec 17, 2009 12:15 pm

Postby tfylliv » Tue Jul 19, 2011 5:13 am

mrmachine wrote:Now that the HDHomeRun is visible to Tvheadend, it seems that when Tvheadend does it's initial scan of the 6 muxes added by location, it only finds 19 sevices. The same HDHomeRun when used with EyeTV finds 27, and an HVR2250 PCI-e card in the Tvheadend box finds 26.

Any idea what could cause these discrepencies?


Sounds like you are missing a mux or two. Is "Autodetect muxes" enabled?

Also the "by location" muxes aren't necessarily up to date - you can find the latest ones here though:

http://linuxtv.org/hg/dvb-apps/file/tip ... can/dvb-t/

See if your muxes matches those (Configuration -> TV adapters -> hdhomerun -> multiplexes), add the missing manually.
tfylliv
Expert
 
Posts: 107
Joined: Sat Sep 04, 2010 3:08 pm

Postby mrmachine » Tue Jul 19, 2011 6:35 am

tfylliv wrote:Sounds like you are missing a mux or two. Is "Autodetect muxes" enabled?

Also the "by location" muxes aren't necessarily up to date - you can find the latest ones here though:

http://linuxtv.org/hg/dvb-apps/file/tip ... can/dvb-t/

See if your muxes matches those (Configuration -> TV adapters -> hdhomerun -> multiplexes), add the missing manually.


Wouldn't it be the same for both adapters though? The HVR2250 and the HdHomeRun? 6 muxes are added, and scanned, but only 19 services are found. On the muxes screen for the HDHomeRun, it has 6 muxes, but two have no value for "Network" and "MuxID" fields. I added the network by location, muxes and mapped channels to service the same way for both adapters.
mrmachine
 
Posts: 7
Joined: Sun Jul 17, 2011 5:56 am

Postby tfylliv » Tue Jul 19, 2011 8:50 am

mrmachine wrote:
tfylliv wrote:Sounds like you are missing a mux or two. Is "Autodetect muxes" enabled?

Also the "by location" muxes aren't necessarily up to date - you can find the latest ones here though:

http://linuxtv.org/hg/dvb-apps/file/tip ... can/dvb-t/

See if your muxes matches those (Configuration -> TV adapters -> hdhomerun -> multiplexes), add the missing manually.


Wouldn't it be the same for both adapters though? The HVR2250 and the HdHomeRun? 6 muxes are added, and scanned, but only 19 services are found. On the muxes screen for the HDHomeRun, it has 6 muxes, but two have no value for "Network" and "MuxID" fields. I added the network by location, muxes and mapped channels to service the same way for both adapters.


It should be the same yes.

The easiest way to verify the hdhomerun's is to use the cmd line tool w_scan, which scans everything and print out a list of services when done:

http://sourceforge.net/apps/trac/dvbhdh ... ing#w_scan

Remember to change -c to your country and you'll need to add -a to indicate which adapter you will use.

Oh, and you will need to stop tvheadend before trying - it "locks" the tuners.
tfylliv
Expert
 
Posts: 107
Joined: Sat Sep 04, 2010 3:08 pm

Postby mrmachine » Fri Jul 29, 2011 1:54 am

I am trying to get this driver working on my unRAID server. It seems to be working (make run finds the devices, haven't tested in tvheadend yet), but how do I get the kernel module to load on boot, and the userhdhomerun program to run on boat as a daemon? make run seems to run indefinitely rather than forking?
mrmachine
 
Posts: 7
Joined: Sun Jul 17, 2011 5:56 am

Dvbhdhomerun, Debian Squeeze, Armel install

Postby jjhdtv » Wed Aug 10, 2011 10:38 am

Hello, like others on this thread I'm attempting to configure a TVHeadend on a backend server for use with XBMC pvr frontend.

I can not get past first base in getting the dvbhomerun driver installed on a Debian squeeze, ARMEL processor, plug computer (hacked dockstar/pogoplug). I have been somewhat successful with MythTV. (Was able to scan QAM channels)

My linux knowledge basically stops at "apt-get install " The repositories for dvbhomerun do not work for the Debian. So I assumed I need to build my own form source. (please correct if I'm wrong).

Not familiar with building my own drivers, I have failed multiple times. I would appreciate some guidance/instructions on how to get dvbhomerun installed. (perhaps it is not possible on a Debian Squeeze - Armel box). Thanks in advance.
jjhdtv
 
Posts: 2
Joined: Wed Aug 10, 2011 8:10 am

Re: Dvbhdhomerun, Debian Squeeze, Armel install

Postby tfylliv » Sun Aug 14, 2011 5:03 am

Hey jjhdtv,

jjhdtv wrote:My linux knowledge basically stops at "apt-get install " The repositories for dvbhomerun do not work for the Debian. So I assumed I need to build my own form source. (please correct if I'm wrong).

Not familiar with building my own drivers, I have failed multiple times. I would appreciate some guidance/instructions on how to get dvbhomerun installed. (perhaps it is not possible on a Debian Squeeze - Armel box). Thanks in advance.


I have heard from one other user which got it working on a Dockstar (not really familiar with them myself), so it is definately possible. And you are correct you need to build it yourself, it is not trivial, but not extremely complicated either - a good exercise actually if you want to know a little more about debian/linux. ;-)

Anyway, I put together some instructions for building under Debian:

https://sourceforge.net/apps/trac/dvbhd ... i/Building

Have fun. :)
tfylliv
Expert
 
Posts: 107
Joined: Sat Sep 04, 2010 3:08 pm

dvbhdhomerun

Postby jjhdtv » Tue Aug 23, 2011 2:28 pm

tfylliv, I followed your directions and got the dvbhdhomerun drivers running on my Debian Dockstar. I also was successful getting tvheadend to work with my hdhomerun.

I still have some issues that I could use more hand holding with.
1) every time I stop the SSH session, tvheadend stops. I end up having to remake the driver and run (make, make run). Similarly, if I close the ssh session, I have to restart tvheadend (tvheadend -d)

I need to have the dvbhdhomerun driver installed and tvheadend started at boot. How is this accomplished?

Also, not really an hdhomerun issue, but I can't seem to get high-def tv to play on xbmc-pvr live TV (standard def plays). I'm thinking the graphics acceleration does not work in xbmc-pvr. High-def stream (strm) files from hdhomerun play perfectly using xbmc. I'm using a crystall graphics card in my apple tv.
jjhdtv
 
Posts: 2
Joined: Wed Aug 10, 2011 8:10 am

Postby kurosan » Sat Aug 27, 2011 6:45 am

Hi all,
I've just received my new hdhomerun dvb-t eur and I'm experimenting a bit.

Many thanks for this fantastic driver, it was really needed.

I've setup a tvheadend machine under archlinux, installed the driver, scanned the mux without problems, all working.

The problem is that even if tvheadend finds two physical adapters /dev/dvb/adapter0 and /dev/dvb/adapter1 when i setup two recording in the same timeframe it assigns the job to only one device, without sending it to the second tuner even if it's detected.

I didn't have time to test it with mythtv.

Thanks again. bye
kurosan
 
Posts: 2
Joined: Sat Aug 27, 2011 6:26 am

PreviousNext

Return to Development - HDHomeRun

Who is online

Users browsing this forum: No registered users and 0 guests