Jump to content


Photo

Problem with DVB-T usb RTL2832 on OpenPLI 8.2

openpli rtl2832 dvb usb

  • Please log in to reply
71 replies to this topic

Re: Problem with DVB-T usb RTL2832 on OpenPLI 8.2 #61 4l3x2k

  • Member
  • 24 posts

+1
Neutral

Posted 23 July 2022 - 23:09

This is all I got with logs and driver enabled / installed

 

Dexatek DK DVB-T Dongle (Logilink VG0002A)

Fitipower FC0013 tuner
 
openatv6.4
dmesg
vtunerc: registered /dev/misc/vtuner0
vtunerc: registered /dev/misc/vtuner1
vtunerc: registered /dev/misc/vtuner2

debug
23:46:59.7063 [   ] dvb/dvb.cpp:485 eDVBUsbAdapter [eDVBUsbAdapter] linking adapter1/frontend0 to vtuner0

and

openpli 8.2
dmesg
vtunerc: registered /dev/misc/vtuner0
vtunerc: registered /dev/misc/vtuner1
vtunerc: registered /dev/misc/vtuner2
...
vtunerc0: unknown IOCTL 0x3
vtunerc0: unknown IOCTL 0x4
vtunerc0: unknown IOCTL 0x6
vtunerc0: unknown IOCTL 0x5
vtunerc0: usb frontend initialized as type=0

debug
[eDVBUsbAdapter] linking adapter1/frontend0 to vtuner0


Re: Problem with DVB-T usb RTL2832 on OpenPLI 8.2 #62 orator89

  • Senior Member
  • 49 posts

0
Neutral

Posted 23 July 2022 - 23:20

 

This is all I got with logs and driver enabled / installed

 

Dexatek DK DVB-T Dongle (Logilink VG0002A)

Fitipower FC0013 tuner
 
openatv6.4
dmesg
vtunerc: registered /dev/misc/vtuner0
vtunerc: registered /dev/misc/vtuner1
vtunerc: registered /dev/misc/vtuner2

debug
23:46:59.7063 [   ] dvb/dvb.cpp:485 eDVBUsbAdapter [eDVBUsbAdapter] linking adapter1/frontend0 to vtuner0

and

openpli 8.2
dmesg
vtunerc: registered /dev/misc/vtuner0
vtunerc: registered /dev/misc/vtuner1
vtunerc: registered /dev/misc/vtuner2
...
vtunerc0: unknown IOCTL 0x3
vtunerc0: unknown IOCTL 0x4
vtunerc0: unknown IOCTL 0x6
vtunerc0: unknown IOCTL 0x5
vtunerc0: usb frontend initialized as type=0

debug
[eDVBUsbAdapter] linking adapter1/frontend0 to vtuner0

 

 

As I thought, same errors as me on OpenPLI. On OpenATV there are no errors, but maybe you missed the correct mex:

vtunerc0: setting DVB-T tuner type
vtunerc0: usb frontend initialized as type=4

Today develop build will clarify everything.



Re: Problem with DVB-T usb RTL2832 on OpenPLI 8.2 #63 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 23 July 2022 - 23:22

https://github.com/O...6bbc4a19210b1f6


Open Vision sources: https://github.com/OpenVisionE2


Re: Problem with DVB-T usb RTL2832 on OpenPLI 8.2 #64 orator89

  • Senior Member
  • 49 posts

0
Neutral

Posted 23 July 2022 - 23:36

 

 

Mmm... In this commit to avoid conflicts, I see in DVB.cpp:

#if (_IOC_NONE == 0) && (!VMSG_TYPE1)

and about this VMSG_TYPE1, i see in configure.ac:
 

if test "$STBPLATFORM" == "vu1gen" -o "$STBPLATFORM" == "vu2gen"; then
	AC_DEFINE(VMSG_TYPE1, 1,[define vtuner_message type 1])
fi

@WanWizard, take a look...

 

I also see in DVB.cpp :

#include <linux/ioctl.h>

instead in OpenPLI there is only:

#include <sys/ioctl.h>

Edited by orator89, 23 July 2022 - 23:40.


Re: Problem with DVB-T usb RTL2832 on OpenPLI 8.2 #65 Dimitrij

  • PLi® Core member
  • 10,323 posts

+350
Excellent

Posted 24 July 2022 - 08:16

Yes need add

+#include <linux/ioctl.h>

#include <sys/ioctl.h>


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Problem with DVB-T usb RTL2832 on OpenPLI 8.2 #66 orator89

  • Senior Member
  • 49 posts

0
Neutral

Posted 24 July 2022 - 14:37

IT WORKS FINALLY!!!!!!

 

@WanWizard, I tried the develop image of today with the modification we made, and now it works!!! First of all, in dmesg, when system starts, I see this output without errors:

vtunerc0: setting DVB-T tuner vtype
vtunerc0: frontend initialized as type=4
DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))...
vtunerc0: usb frontend initialized as type=4
DVB: registering adapter 0 frontend 0 (RTL2832U)...

only strange thing is that it registers frontend two times, but no more errors :D :D

and then, when I try to scan DVB-T in transponders with SNR and AGC, it finds channels :D No more error IOCTL loop, no more :D


Edited by orator89, 24 July 2022 - 14:45.


Re: Problem with DVB-T usb RTL2832 on OpenPLI 8.2 #67 WanWizard

  • PLi® Core member
  • 70,491 posts

+1,810
Excellent

Posted 24 July 2022 - 16:12

I can see the benefit of the #if that OpenVision is using.

 

But is the initial header file needed or not, as it is working now?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Problem with DVB-T usb RTL2832 on OpenPLI 8.2 #68 4l3x2k

  • Member
  • 24 posts

+1
Neutral

Posted 24 July 2022 - 16:52

 

IT WORKS FINALLY!!!!!!

 

@WanWizard, I tried the develop image of today with the modification we made, and now it works!!! First of all, in dmesg, when system starts, I see this output without errors:

vtunerc0: setting DVB-T tuner vtype
vtunerc0: frontend initialized as type=4
DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))...
vtunerc0: usb frontend initialized as type=4
DVB: registering adapter 0 frontend 0 (RTL2832U)...

only strange thing is that it registers frontend two times, but no more errors :D :D

and then, when I try to scan DVB-T in transponders with SNR and AGC, it finds channels :D No more error IOCTL loop, no more :D

 

 

That are great news!

 

Could you please set the topic on the other forum to solved?

 

 

I can see the benefit of the #if that OpenVision is using.

 

But is the initial header file needed or not, as it is working now?

 

It may work because one of the other header files include linux/ioctl.h. Maybe direct or indirect by including another linux/....h file.


Edited by 4l3x2k, 24 July 2022 - 16:57.


Re: Problem with DVB-T usb RTL2832 on OpenPLI 8.2 #69 orator89

  • Senior Member
  • 49 posts

0
Neutral

Posted 24 July 2022 - 17:03

I can see the benefit of the #if that OpenVision is using.

 

But is the initial header file needed or not, as it is working now?

 

I don't know... I can tell you that now it works perfectly!!!
If someone has the Astrometa DVB-T2 RTL2832P (not the 2018 version that has Sony CXD2837 demodulator, but previous version with Panasonic MN88473 demod) and wants to test the DVB-T2 part (I cannot test DVB-T2, only DVB-T, because In Italy DVB-T2 will be in 2023), he has to install the "MN88473" driver from OpenATV feeds, because OpenPLI feeds there isn't kernel and right firmwares... But if WanWizard wants, I can attach to this post all the packages I extracted from OpenATV feeds that are necessaries (in addition to the ordinary "RTL2832" driver), so the developers can add to the OpenPLI feeds directly...
After installed those packages, with the usb device inserted and system restarted, you have to do the following commands to switch and to have the "DVB-T2/DVB-C" part of RTL2832P working:
 

init 4
mv /dev/dvb/adapter0/frontend2 /dev/dvb/adapter1/frontend3
mv /dev/dvb/adapter1/frontend1 /dev/dvb/adapter0/frontend2
init 3

ATTENTION! This code in my test is valid only for OpenPLI 8.2, in my decoder.

In OpenATV 6.4/7.0, to get the DVB-T2 part working, instead, you have to do this code:
 

init 4
mv /dev/dvb/adapter1/frontend0 /dev/dvb/adapter1/frontend8
mv /dev/dvb/adapter1/frontend1 /dev/dvb/adapter1/frontend0
init 3

After that, you can test if it finds DVB-T2 channels ;)

 

And if you want to permanently add this code to your system to have automatic recognition DVB-T2, simply add the code (without the "init 4" and "init 3" options) to "enigma2_pre_start.sh" file ;)


Edited by orator89, 24 July 2022 - 17:09.


Re: Problem with DVB-T usb RTL2832 on OpenPLI 8.2 #70 orator89

  • Senior Member
  • 49 posts

0
Neutral

Posted 24 July 2022 - 17:30

 

 

That are great news!

 

Could you please set the topic on the other forum to solved?

 

 

 

I posted mex on the other thread, marking as solved. 



Re: Problem with DVB-T usb RTL2832 on OpenPLI 8.2 #71 Dimitrij

  • PLi® Core member
  • 10,323 posts

+350
Excellent

Posted 20 July 2023 - 14:43

this only develop

https://github.com/O...4ace4dbbf87bd30


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Problem with DVB-T usb RTL2832 on OpenPLI 8.2 #72 free70

  • New Member
  • 1 posts

0
Neutral

Posted 26 November 2023 - 03:42

 

I can see the benefit of the #if that OpenVision is using.

 

But is the initial header file needed or not, as it is working now?

 

I don't know... I can tell you that now it works perfectly!!!
If someone has the Astrometa DVB-T2 RTL2832P (not the 2018 version that has Sony CXD2837 demodulator, but previous version with Panasonic MN88473 demod) and wants to test the DVB-T2 part (I cannot test DVB-T2, only DVB-T, because In Italy DVB-T2 will be in 2023), he has to install the "MN88473" driver from OpenATV feeds, because OpenPLI feeds there isn't kernel and right firmwares... But if WanWizard wants, I can attach to this post all the packages I extracted from OpenATV feeds that are necessaries (in addition to the ordinary "RTL2832" driver), so the developers can add to the OpenPLI feeds directly...
After installed those packages, with the usb device inserted and system restarted, you have to do the following commands to switch and to have the "DVB-T2/DVB-C" part of RTL2832P working:
 

init 4
mv /dev/dvb/adapter0/frontend2 /dev/dvb/adapter1/frontend3
mv /dev/dvb/adapter1/frontend1 /dev/dvb/adapter0/frontend2
init 3

ATTENTION! This code in my test is valid only for OpenPLI 8.2, in my decoder.

In OpenATV 6.4/7.0, to get the DVB-T2 part working, instead, you have to do this code:
 

init 4
mv /dev/dvb/adapter1/frontend0 /dev/dvb/adapter1/frontend8
mv /dev/dvb/adapter1/frontend1 /dev/dvb/adapter1/frontend0
init 3

After that, you can test if it finds DVB-T2 channels ;)

 

And if you want to permanently add this code to your system to have automatic recognition DVB-T2, simply add the code (without the "init 4" and "init 3" options) to "enigma2_pre_start.sh" file ;)

Hello orator89,
I have the same USB receiver.
Even though I installed the drivers, it doesn't work at all.
"enigma2_pre_start.sh"
Is there any chance you can send me this file? I don't quite understand the edit.
But I can send via FTP
I would be happy if you help me



3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users