Page 1 of 1

Pi TV Hat questions

Posted: Fri Nov 23, 2018 12:46 am
by moojuiceuk
Just got a Pi TV hat working - so far so good.

Does anyone know what the 2-pin header on the PCB is used for that I've circled in red below...?
pitv.jpg
pitv.jpg (31.93 KiB) Viewed 6498 times
Is it possible to use more than 1 tuner card stacked up? Can multiple devices share an SPI bus?

Can it also receive DAB radio streams? Looking at the spec, VHF Band III is supported (174 - 230MHz) which is the same frequency allocation as DAB in the UK. If so, what software is used for that?

Has anyone managed to exploit the Sony chip as a true SDR and if so, what frequencies can it cover?

Re: Pi TV Hat questions

Posted: Sun Nov 25, 2018 12:00 pm
by noggin
I asked. It's apparently for programming the HAT ID EEPROM with the correct contents during manufacture. Nothing useful for end users.

Official HATs have an ID EEPROM that is read via I2C so that the Pi knows which HAT is connected and loads the correct drivers/device tree?

Re: Pi TV Hat questions

Posted: Fri Jan 11, 2019 9:56 am
by ViacheslavGrytsyk
Hello to All!

Can I get data from CXD2880 about Signal Quality such as MER (Modulation Error Ratio)? SNR (Signal-to-Noise Ratio) and CNR (Carrier-to-Noise Ratio) as additional parameters of quality. How if possible? Thanks!

Re: Pi TV Hat questions

Posted: Sun Jan 13, 2019 10:34 pm
by jaket91
Did anybody discover whether multiple TV hats can be connected to the GPIO of the same Pi?

Re: Pi TV Hat questions

Posted: Mon Jan 14, 2019 1:29 am
by DougieLawson
jaket91 wrote:
Sun Jan 13, 2019 10:34 pm
Did anybody discover whether multiple TV hats can be connected to the GPIO of the same Pi?
They can't work because both would use the same SPI chip select/chip enable pin unless you can change the hardware (which isn't possible for a hobbyist).

If you look in https://github.com/raspberrypi/linux/bl ... verlay.dts you'll see which pins are used.

Re: Pi TV Hat questions

Posted: Sun Jan 20, 2019 7:04 pm
by JanSyk
Hi
I´m solving similar problem with not working raspberry TV tuner
Actual configuration is:
RPi3 + hifiberry Digi+ and Raspberry TV tuner
If there is connected only RPi3 and raspberry TV tuner without hifiberry Digi + it is working, but all together I can´t see in TVheadend any tuners.
I think problem is how to switch raspberry TV tuner to second raspberry SPI port (Hifiberry also working over SPI)
My logs:
https://paste.osmc.tv/ehakidogol
Anybody have same configuration?
Thanks for your help
Jan

Re: Pi TV Hat questions

Posted: Sun Jan 20, 2019 10:26 pm
by hippy
DougieLawson wrote:
Mon Jan 14, 2019 1:29 am
jaket91 wrote:
Sun Jan 13, 2019 10:34 pm
Did anybody discover whether multiple TV hats can be connected to the GPIO of the same Pi?
They can't work because both would use the same SPI chip select/chip enable pin unless you can change the hardware (which isn't possible for a hobbyist).
I don't see why it isn't possible for a hobyist. Hardware-wise it would be easy enough to build a T-shaped strip-board / vero-board / PCB construct which routes GPIO to two or more tuners with separate SPI enable to each.. And there may be add-ons available which can do that.

As to whether any software would support that having done it; I have no idea.

Re: Pi TV Hat questions

Posted: Sat Sep 14, 2019 8:22 am
by cellipo
JanSyk wrote:
Sun Jan 20, 2019 7:04 pm
Hi
I´m solving similar problem with not working raspberry TV tuner
Actual configuration is:
RPi3 + hifiberry Digi+ and Raspberry TV tuner
If there is connected only RPi3 and raspberry TV tuner without hifiberry Digi + it is working, but all together I can´t see in TVheadend any tuners.
I think problem is how to switch raspberry TV tuner to second raspberry SPI port (Hifiberry also working over SPI)
My logs:
https://paste.osmc.tv/ehakidogol
Anybody have same configuration?
Thanks for your help
Jan
Hi,
JanSyk did you solve the problem? i am in the same situation with a pi tv hat and a hifiberry digi+ pro.
the hifiberry seems to work fine while the tv hat disappeared from tvheadend.
Anyone does know how to make these two hats working togheter?

Re: Pi TV Hat questions

Posted: Sat Jan 18, 2020 9:38 am
by tonyfixit
Same problem here. TV hat work with tvHeadEnd when installed on its own, hifiBerry works when installed on its own. When the other is added (I have tried the hifiberry first, then the TV hat and the other way round) In either case the hifiberry either disappears from the audio menu, or is on the menu, but does not work. I have searched the internet and tried the suggested 'solutions; to no avail. Not reloaded tvHeadEnd if the audio failed, so I don't know if the TV hat would still work.

Using PI4, PI TV HAT, official PSU and hifiBerry DAC+.
Buster loaded from official image, and then updated to latest version, but no other changes to software except make it "headless" (/boot/config.txt). Also set VNC, SSH, I2C and SPI active in Configuration.-> Interfaces because, as I understand it, the TV hat uses SPI and the hifiBerry uses I2C.

I have used Kodi and Plex, but these make no difference (this is where the issues showed initially as I used the TV Hat first, then bought the hifiBerry).

So why the conflict? Any ideas out there?

Tony

Re: Pi TV Hat questions

Posted: Sun Jan 19, 2020 3:49 pm
by tonyfixit
In answer to my own question, I have found that explicitly setting values for the hifiberry and the TV HAT in /boot/config.txt allow the two to work together.
My Pi 4 (1GB) is used headless, so I have included these settings:

Changes in /boot/config.txt
The headless setup (note some are possibly not required as they are from previous experiments):
hdmi_force_hotplug=1
hdmi_mode=68 (to suit my monitor)
hdmi_drive=2

The hifiBerry audio card
dtparam=i2c_arm=on (previously set by Preferences -> Configuration -> Interfaces)
dtoverlay=hifiberry-dacplus, 24db_digital_gain

The TV HAT settings
dtparam=spi=on (previously set by Preferences -> Configuration -> Interfaces)
dtoverlay=rpi-tv

The above information regarding the hifiberry and the TV Hat is derived from the following three locations,
https://www.raspberrypi.org/documentati ... /README.md
Device values in /boot/overlays/README
Options and information see http://rpf.io/configtxt

Notes:
1 - Change hifiberry line (dtoverlay=hifiberry-dacplus, 24db_digital_gain) to suit your own card.
2- The "24db digital gain" parameter is an attenuator, not an amplifier, but it allows a slider bar visible in the desktop volume control.
3 - My audio is fed to my hifi via analogue inputs from the hifi berry. I can view TV video (via VLC) on a monitor, but I could then select HDMI sound from the audio selector of the desktop.
4 - Not installed Kodi or Plex but I see no reason why these should present any problem now the software is explicitly loaded in /boot/config.txt.


/////////////////////////////////////////////////////////////////
/boot/config.txt entries are:
/////////////////////////////////////////////////////////////////
# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
hdmi_mode=68

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on

# Enable hifiBerry DAC+ and TV HAT
dtoverlay=hifiberry-dacplus, 24db_digital_gain
dtoverlay=rpi-tv

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d
///////////////////////////////////////////////////////////////////////////////////////

Hope this helps

Tony

Re: Pi TV Hat questions

Posted: Mon Jan 20, 2020 9:18 am
by 6by9
tonyfixit wrote:
Sat Jan 18, 2020 9:38 am
So why the conflict? Any ideas out there?
HATs are not intended to be stackable. In particular the EEPROM that is used to automatically load configuration will be at the same I2C address on both cards, and therefore neither will be readable.
As you've found, you can achieve the same thing by manually adding "dtoverlay=foo" lines into /boot/config.txt.

Re: Pi TV Hat questions

Posted: Mon Jan 20, 2020 9:31 am
by rpdom
6by9 wrote:
Mon Jan 20, 2020 9:18 am
tonyfixit wrote:
Sat Jan 18, 2020 9:38 am
So why the conflict? Any ideas out there?
HATs are not intended to be stackable. In particular the EEPROM that is used to automatically load configuration will be at the same I2C address on both cards, and therefore neither will be readable.
As you've found, you can achieve the same thing by manually adding "dtoverlay=foo" lines into /boot/config.txt.
Other than the PoE HAT which uses a different EEPROM address to other HATs, so you can have one PoE HAT and one other HAT on a Pi. That is the only (current) exception to the rule.

Re: Pi TV Hat questions

Posted: Mon Jan 20, 2020 11:28 am
by tonyfixit
Thanks for the reply. The lack of stacking is not made clear (to me, anyway) and I am used to the Arduino approach, so I had preconveived notions anyway. I sort of wondered about the stacking because of the way the connectorss are arranged. I assumed the eeprom held more than one 'value' or a separable board identity (ie each board has its own eeprom space within the eeprom) and so can can cope with more than one HAT. But, having spent my money, I was going to get my value from them...
Regards

Tony

Re: Pi TV Hat questions

Posted: Thu Aug 20, 2020 12:18 pm
by bugsy_malone 666
So has anyone managed to use one of these hats to receive DAB?

I was looking at getting one with the main intention of a supported device that might be able to receive DAB for something like a OSMC/Kodi media player where I could listen to Radio too, as I did try using one of the usb sticks, but it wouldnt work.

Re: Pi TV Hat questions

Posted: Thu Aug 20, 2020 12:32 pm
by 6by9
bugsy_malone 666 wrote:
Thu Aug 20, 2020 12:18 pm
So has anyone managed to use one of these hats to receive DAB?

I was looking at getting one with the main intention of a supported device that might be able to receive DAB for something like a OSMC/Kodi media player where I could listen to Radio too, as I did try using one of the usb sticks, but it wouldnt work.
https://www.linuxtv.org/wiki/index.php/Sony_CXD2820
No, it doesn't do DAB.

Re: Pi TV Hat questions

Posted: Thu Aug 20, 2020 2:55 pm
by bugsy_malone 666
6by9 wrote:
Thu Aug 20, 2020 12:32 pm
bugsy_malone 666 wrote:
Thu Aug 20, 2020 12:18 pm
So has anyone managed to use one of these hats to receive DAB?

I was looking at getting one with the main intention of a supported device that might be able to receive DAB for something like a OSMC/Kodi media player where I could listen to Radio too, as I did try using one of the usb sticks, but it wouldnt work.
https://www.linuxtv.org/wiki/index.php/Sony_CXD2820
No, it doesn't do DAB.
Thats a shame :(

I wonder though how 'digital radio' is done through TVs, if its dont through DAB signal or through the DVB one, as then you would be able to pick up some digital radio stations :)

Re: Pi TV Hat questions

Posted: Thu Aug 20, 2020 3:04 pm
by DougieLawson
bugsy_malone 666 wrote:
Thu Aug 20, 2020 2:55 pm
Thats a shame :(

I wonder though how 'digital radio' is done through TVs, if its dont through DAB signal or through the DVB one, as then you would be able to pick up some digital radio stations :)
There are some "radio stations" (actually they're TV stations with digital graphics but without any video component) on DVB-T, but there's not the collection I get on my Pace DAB radio or in my car.

Image

Re: Pi TV Hat questions

Posted: Fri Aug 21, 2020 6:39 am
by bugsy_malone 666
DougieLawson wrote:
Thu Aug 20, 2020 3:04 pm
bugsy_malone 666 wrote:
Thu Aug 20, 2020 2:55 pm
Thats a shame :(

I wonder though how 'digital radio' is done through TVs, if its dont through DAB signal or through the DVB one, as then you would be able to pick up some digital radio stations :)
There are some "radio stations" (actually they're TV stations with digital graphics but without any video component) on DVB-T, but there's not the collection I get on my Pace DAB radio or in my car.

Image
Yeah those are the ones I was thinking of, apparently there are a total of just 24 stations. Kerrang is one I actually miss thats not broadcast anymore on DAB, I wonder why when building the PI receiver they chose to not have a chip with DAB, considering DVB requires more licencing that DVB I think.

might be worth investigating, I'm basically going to use a pi3+official screen and was looking to install in addition to the standard radio in my camper, with osmc could have radio and media player, then when camping if we wanted to watch some TV, voila!

Re: Pi TV Hat questions

Posted: Fri Aug 21, 2020 6:52 am
by 6by9
bugsy_malone 666 wrote:
Fri Aug 21, 2020 6:39 am
Yeah those are the ones I was thinking of, apparently there are a total of just 24 stations. Kerrang is one I actually miss thats not broadcast anymore on DAB, I wonder why when building the PI receiver they chose to not have a chip with DAB, considering DVB requires more licencing that DVB I think.
Do you know of a chip with an SPI interface that does DVB-T2 and DAB?

Re: Pi TV Hat questions

Posted: Fri Aug 21, 2020 8:58 am
by DougieLawson
6by9 wrote:
Fri Aug 21, 2020 6:52 am
bugsy_malone 666 wrote:
Fri Aug 21, 2020 6:39 am
Yeah those are the ones I was thinking of, apparently there are a total of just 24 stations. Kerrang is one I actually miss thats not broadcast anymore on DAB, I wonder why when building the PI receiver they chose to not have a chip with DAB, considering DVB requires more licencing that DVB I think.
Do you know of a chip with an SPI interface that does DVB-T2 and DAB?
You'd probably need two chips the existing Sony one for DVB-T/DVB-T2 and one for DAB/DAB+/DMB-A.

https://www.st.com/en/automotive-infota ... ta660.html