Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG Cannot change frontend type #246

Open
Saentist opened this issue Mar 31, 2019 · 10 comments
Open

BUG Cannot change frontend type #246

Saentist opened this issue Mar 31, 2019 · 10 comments

Comments

@Saentist
Copy link

Saentist commented Mar 31, 2019

Some strange case, connected with DVBAPI communication
Hauppage QuadHD DVB-T/T2/C quad tuner
by default selected frontend is set to DVB-T

# dvb-fe-tool -a 3
Device Silicon Labs Si2168 (/dev/dvb/adapter3/frontend0) capabilities:
     CAN_2G_MODULATION
     CAN_FEC_1_2
     CAN_FEC_2_3
     CAN_FEC_3_4
     CAN_FEC_5_6
     CAN_FEC_7_8
     CAN_FEC_AUTO
     CAN_GUARD_INTERVAL_AUTO
     CAN_HIERARCHY_AUTO
     CAN_INVERSION_AUTO
     CAN_MULTISTREAM
     CAN_MUTE_TS
     CAN_QAM_16
     CAN_QAM_32
     CAN_QAM_64
     CAN_QAM_128
     CAN_QAM_256
     CAN_QAM_AUTO
     CAN_QPSK
     CAN_TRANSMISSION_MODE_AUTO
DVB API Version 5.11, Current v5 delivery system: DVBT
Supported delivery systems:
    [DVBT]  <<<<<<
     DVBT2
     DVBC/ANNEX_A


# dvb-fe-tool -g -a 3
FREQUENCY = 602000000
MODULATION = QAM/AUTO
BANDWIDTH_HZ = 8000000
INVERSION = AUTO
CODE_RATE_HP = AUTO
CODE_RATE_LP = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
HIERARCHY = NONE
DELIVERY_SYSTEM = DVBT   <<<<<<

Running as this:

# mumudvb -c card3.conf -dvvvv
MuMuDVB Version 2.1.0_20181020_mumudvb2
 --- Build information ---
Built with CAM support.
Built with SCAM support.
Built with ATSC support.
Built with ATSC long channel names support.
Built with support for DVB API Version 5.10.
Built with support for DVB-T2.
---------
Originally based on dvbstream 0.6 by (C) Dave Chapman 2001-2004
Released under the GPL.
Latest version available from http://mumudvb.net/
Project from the cr@ns (http://www.crans.org)
by Brice DUBOST ([email protected])

Deb2:  Main:  ==== Configuration file ====
Deb2:  Main:  001 card=3
Deb2:  Main:  002 freq=802
Deb2:  Main:  003 srate=6875
Deb2:  Main:  004 port_http=8015
Deb2:  Main:  005 multicast_ipv4=0
Deb2:  Main:  006 multicast_ipv6=0
Deb2:  Main:  007 store_eit=1
Deb2:  Main:  008 sort_eit=1
Deb2:  Main:  009 dont_send_scrambled=1
Deb2:  Main:  010 filter_transport_error=1
Deb2:  Main:  011 check_cc=1
Deb2:  Main:  012 autoconfiguration=full
Deb2:  Main:  013 autoconf_radios=1
Deb2:  Main:  014 unicast=1
Deb2:  Main:  015 autoconf_scrambled=1
Deb2:  Main:  016 ring_buffer_default_size=64535
Deb2:  Main:  017 decsa_default_delay=500000
Deb2:  Main:  018 send_default_delay=1500000
Deb2:  Main:  019 scam_support=1
Deb2:  Main:  ============ done ===========
Info:  Rewrite:  You have enabled the EIT (EPG) storage for webservices
Info:  Rewrite:  You have enabled the EIT rewriting
Deb1:  SCAM_COMMON:  Ring buffer default size set to 65536
WARN:  SCAM_COMMON:  You have enabled the support for software descrambling (scrambled channels). Please report any bug/comment
Info:  Main:  Autoconfiguration, we activate SAP announces. if you want to disable them see the README.
Info:  Main:  Autoconfiguration, we activate PAT rewriting. if you want to disable it see the README.
Info:  Main:  Autoconfiguration, we activate SDT rewriting. if you want to disable it see the README.
Info:  Main:  ========== End of configuration, MuMuDVB version 2.1.0_20181020_mumudvb2 is starting ==========
Info:  Main:  Streaming. Freq 802000.000000
Info:  Tune:  Using DVB card "Silicon Labs Si2168" tuner 0
Info:  Tune:  Tuning Terrestrial to 802000000 Hz, Bandwidth: 8000000
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Deb0:  Tune:  polling....
Info:  Tune:  FE_STATUS:
Info:  Main:  Card not tuned after timeout - exiting

but when start it cannot switch frontent type to dvb-C

but if i use other software ex.

dvb-fe-tool -d DVBC/ANNEX_A -a 3
Changing delivery system to: DVBC/ANNEX_A

it switch frontend without problem and mumudvb can use DVB-C frontend


I write this script to start it correctly

#!/bin/bash
dvb-fe-tool -d DVBC/ANNEX_A -a 2
echo "DVB adapter frontend is set to DVB-C"
dvb-fe-tool -d DVBC/ANNEX_A -a 3
echo "DVB adapter frontend is set to DVB-C"
dvb-fe-tool -d DVBC/ANNEX_A -a 4
echo "DVB adapter frontend is set to DVB-C"
dvb-fe-tool -d DVBC/ANNEX_A -a 5
echo "DVB adapter frontend is set to DVB-C"
dvb-fe-tool -d DVBC/ANNEX_A -a 6
echo "DVB adapter frontend is set to DVB-C"
dvb-fe-tool -d DVBC/ANNEX_A -a 7
echo "DVB adapter frontend is set to DVB-C"
dvb-fe-tool -d DVBC/ANNEX_A -a 8
echo "DVB adapter frontend is set to DVB-C"
dvb-fe-tool -d DVBC/ANNEX_A -a 9
echo "DVB adapter frontend is set to DVB-C"

then frontend is changed correctly

# dvb-fe-tool -a 3
Device Silicon Labs Si2168 (/dev/dvb/adapter3/frontend0) capabilities:
     CAN_2G_MODULATION
     CAN_FEC_1_2
     CAN_FEC_2_3
     CAN_FEC_3_4
     CAN_FEC_5_6
     CAN_FEC_7_8
     CAN_FEC_AUTO
     CAN_GUARD_INTERVAL_AUTO
     CAN_HIERARCHY_AUTO
     CAN_INVERSION_AUTO
     CAN_MULTISTREAM
     CAN_MUTE_TS
     CAN_QAM_16
     CAN_QAM_32
     CAN_QAM_64
     CAN_QAM_128
     CAN_QAM_256
     CAN_QAM_AUTO
     CAN_QPSK
     CAN_TRANSMISSION_MODE_AUTO
DVB API Version 5.11, Current v5 delivery system: DVBC/ANNEX_A
Supported delivery systems:
     DVBT
     DVBT2
    [DVBC/ANNEX_A]   <<<<<

# dvb-fe-tool -a 3 -g
FREQUENCY = 602000000
MODULATION = QAM/AUTO
INVERSION = OFF
SYMBOL_RATE = 6875000
INNER_FEC = AUTO
DELIVERY_SYSTEM = DVBC/ANNEX_A   <<<<
@braice
Copy link
Owner

braice commented Mar 31, 2019 via email

@Saentist
Copy link
Author

delivery_system=DVBC_ANNEX_AC

Will test and report.

@Saentist
Copy link
Author

Saentist commented Apr 2, 2019

Confirm this change frontend type.
but value srate need to do this automatically

@braice
Copy link
Owner

braice commented Dec 24, 2020 via email

@Saentist
Copy link
Author

Still believe that "srate" need to be enough condition to be selected dvb-c frontend not dvb-t

@braice
Copy link
Owner

braice commented Dec 24, 2020 via email

@Saentist
Copy link
Author

It's simple IF>THEN>ELSE situation

IF "srate" exist
THEN set frontend to DVB-C
ELSE set frontend to DVB-T

@braice
Copy link
Owner

braice commented Dec 27, 2020 via email

@Saentist
Copy link
Author

Solution can be: MumuDVB v3 with web management,
Where more informative choices can be done.

@braice
Copy link
Owner

braice commented Jan 4, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants