Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
diseqc problem: not changing #169
Comments
|
Hello
Indeed this is not normal. Can you give me the output of both scan-s2 and
mumudvb in very very verbose mode (-vvv) it will help me to compare the
diseqc messages.
Also can you try with delivery system set to DVB-S2?
Thank you
Brice
…
|
SourceDoctor
commented
Apr 9, 2017
|
I confirm this Problem. |
dorijan
commented
Apr 10, 2017
|
Hi, |
|
Thank you
I see two possible issues, malformed message and timing.
Logs will definitely help
Brice
2017-04-10 7:48 GMT-04:00 dorijan <notifications@github.com>:
…
|
m0yellow
commented
Apr 16, 2017
•
|
I have a machine doing the same on spare (and power). like ...
The same if you want it with gdb. I'm on Astra 19.2E / and sometimes have a receiver on Hotbird 13E free. |
dorijan
commented
Apr 20, 2017
|
finally, a log from scan-s2: `sudo ./scan-s2 ../toscan.conf -s 0 -a 4 -vvv
0x01/0x40b 10993:hC56M5O35S1:S19.2E:22000: 0x01/0x449 12343:hC23M5O20S1:S19.2E:30000: 0x01/0x02 11758:hC910M2O35S1:S19.2E:27500: 0x01/0x10 11797:hC910M2O35S1:S19.2E:27500: 0x01/0x08 12070:hC910M2O35S1:S19.2E:27500: 0x01/0x406 11656:vC23M5O35S1:S19.2E:22000: 0x02 0xB0 0x17 0x01 0x2D 0xC5 0x00 0x00 0xE0 0x21 0xF0 0x00 0x24 0xE0 0x21 0xF0 0x00 0x0F 0xE0 0x24 0xF0 0x00 0x37 0xFF 0x7D 0x7E
sudo ./scan-s2 ../toscan.conf -s 1 -a 4 -vvv
dumping lists (3 services) sudo ./scan-s2 ../toscan.conf -s 2 -a 4 -vvv
|
dorijan
commented
Apr 20, 2017
|
and this is the log from MuMuDVB `sudo mumudvb -d -c mmumu04s.conf --card 4 -vvv
|
dorijan
commented
Apr 30, 2017
|
Anyone have any idea about this problem? Is the sequence wrong or the timing? |
dorijan
commented
May 5, 2017
|
Done some further testing:
scan sat 1
scan sat 0
mumu sat 3 mumu sat 2 mumu sat 1 as you can see, mumu sends correct diseqc message for sat 3(same as scan for sat 2) and for sat 2(same as scan for sat 1), but it is not working. |
|
Hello
Can you try the diseqc_repeat option ?
Otherwise it can be the timings, you can tweak them in tune.c
But from a first look the timing looks exactly the same
Below the code of scan s2 and here MuMuDVB code
https://github.com/braice/MuMuDVB/blob/mumudvb2/src/tune.c#L693
int diseqc_send_msg (int fd, fe_sec_voltage_t v, struct diseqc_cmd
**cmd, fe_sec_tone_mode_t t, fe_sec_mini_cmd_t b){ int err; if
((err = ioctl(fd, FE_SET_TONE, SEC_TONE_OFF))) return err; if ((err =
ioctl(fd, FE_SET_VOLTAGE, v))) return err; msleep(15); while (*cmd)
{ debug("DiSEqC: %02x %02x %02x %02x %02x
%02x\n", (*cmd)->cmd.msg[0],
(*cmd)->cmd.msg[1], (*cmd)->cmd.msg[2],
(*cmd)->cmd.msg[3], (*cmd)->cmd.msg[4], (*cmd)->cmd.msg[5]); if
((err = ioctl(fd, FE_DISEQC_SEND_MASTER_CMD, &(*cmd)->cmd))) return
err; // msleep((*cmd)->wait); cmd++; } //debug(" %s ", v ==
SEC_VOLTAGE_13 ? "SEC_VOLTAGE_13" : // v == SEC_VOLTAGE_18 ?
"SEC_VOLTAGE_18" : "???"); //debug(" %s ", b == SEC_MINI_A ?
"SEC_MINI_A" : // b == SEC_MINI_B ? "SEC_MINI_B" :
"???"); //debug(" %s\n", t == SEC_TONE_ON ? "SEC_TONE_ON" : // t ==
SEC_TONE_OFF ? "SEC_TONE_OFF" : "???"); msleep(15); if ((err =
ioctl(fd, FE_DISEQC_SEND_BURST, b))) return err; msleep(15); err =
ioctl(fd, FE_SET_TONE, t); msleep(15); return err;}
2017-05-05 18:45 GMT-04:00 dorijan <notifications@github.com>:
…
|
dorijan
commented
May 7, 2017
|
Hi, |
dorijan
commented
May 8, 2017
|
Ok, I have done some further testing, and tried dvblast. I have managed to tune using dvblast but only if I have specified both diseqc (satellite number for diseqc (0: no diseqc, 1-4, A or B) ) and uncommitted (port number for uncommitted DiSEqC switch (0: no uncommitted DiSEqC switch, 1-16)). I suppose dvblast then sends 2 commands, first for uncommited then commited. Same thing happens with scan-s2 since it sends 2 diseqc commands: DiSEqC: uncommitted switch pos 0 this is command that is working
so, maybe this would be the solution, to send both commands |
|
Hello
This is strange as a switch should ignore commands for the other type
Did you switched the switch type in mumu ?
Sending both commands is definitely doable.
Brice
…
|
dorijan
commented
May 11, 2017
|
yes, I tried all possible combination in mumudvb :( |
|
Hello
I will do a two command for you
Brice
2017-05-11 13:11 GMT-04:00 dorijan <notifications@github.com>:
…
|
dorijan
commented
May 20, 2017
|
Great! Thank you! |
dorijan
commented
Jun 5, 2017
|
Did you make the changes? How can I try it? |
|
Hello
Please put this tune.c in your src directory and use switch_type = 'B'
(like both)
Tell me if you see the message "DiseqC Switch: Sending Uncommitted and
Committed messages" and if it works
Brice
2017-06-05 5:51 GMT-04:00 dorijan <notifications@github.com>:
…
|
dorijan
commented
Jun 6, 2017
|
Thank you, but I dont see the file? Maybe I am missing something? |
dorijan
commented
Jun 9, 2017
|
Can you please send me the file so I can test it? Thank you |
|
Sorry, github remove the attachments |
dorijan
commented
Jun 12, 2017
|
Yes! It is working! :) sudo mumudvb -d -c mmumu04s.conf --card 4
|
dorijan commentedApr 9, 2017
Hi,
I would like to thank you first for making this great app :)
But I have issue with my new TurboSight TBS 6904 card. It seems not able to change diseq when using MuMuDVB, but when I change it with their scan it works.
So this is the issue:
in scan file I have
S1 10721000 H 27500000 3/4 AUTO QPSKand when I scan it with their sw
`
./scan-s2 ../toscan.conf -s 0
API major 5, minor 3
scanning ../toscan.conf
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
initial transponder DVB-S 10721000 H 27500000 3/4 AUTO QPSK
----------------------------------> Using DVB-S
`./scan-s2 ../toscan.conf -s 1
API major 5, minor 3
scanning ../toscan.conf
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
initial transponder DVB-S 10721000 H 27500000 3/4 AUTO QPSK
----------------------------------> Using DVB-S
`./scan-s2 ../toscan.conf -s 2
API major 5, minor 3
scanning ../toscan.conf
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
initial transponder DVB-S 10721000 H 27500000 3/4 AUTO QPSK
----------------------------------> Using DVB-S
But when I try with MuMuDVB I allways tune to this
`#delivery_system=DVBS
freq=10721
pol=H
srate=27500
#coderate=3/4
sat_number=2
#switch_input=2
#switch_type=C
#rolloff=auto
#diseqc_repeat=1
#modulation=QPSK
autoconfiguration=full
autoconf_ip4=239.100.4.%number
mumudvb -d -c mmumu04s.confMuMuDVB Version 2.1.0_20170408_mumudvb2
--- Build information ---
Built without CAM support.
Built without SCAM support.
Built with ATSC 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.braice.net/
Project from the cr@ns (http://www.crans.org)
by Brice DUBOST (mumudvb@braice.net)
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_20170408_mumudvb2 is starting ==========
WARN: Main: Can't create /var/run/mumudvb/channels_streamed_adapter2_tuner0: No such file or directory
WARN: Main: Can't create /var/run/mumudvb/channels_unstreamed_adapter2_tuner0: No such file or directory
Info: Main: Streaming. Freq 10721000
Info: Tune: Using DVB card "TurboSight TBS 6904 DVBS/S2 frontend" tuner 0
Info: Tune: Tuning DVB-S to Freq: 971000 kHz, LO frequency 9750000 kHz Pol:H Srate=27500000, LNB number: 2
Info: Tune: LNB voltage 18V
Info: Tune: DISEQC SETTING SUCCEDED
Info: Tune: FE_STATUS:
Info: Tune: FE_STATUS:
Info: Tune: FE_HAS_SIGNAL : found something above the noise level
Info: Tune: FE_HAS_CARRIER : found a DVB signal
Info: Tune: FE_HAS_VITERBI : FEC is stable
Info: Tune: FE_HAS_SYNC : found sync bytes
Info: Tune: FE_HAS_LOCK : everything's working...
Info: Tune: Event: Frequency: 10721000 (or 8779000)
Info: Tune: SymbolRate: 23500000
Info: Tune: FEC_inner: 2051
Info: Tune: Bit error rate: 67108863
Info: Tune: Signal strength: 27526
Info: Tune: SNR: 51117
Info: Main: Card 2, tuner 0 tuned
main 0x7ffc60452d50
Info: Common chan: Looking through all services to update their filters
Info: Autoconf: Autoconfiguration is now ready to work for you !
Info: Autoconf: The PAT version changed, channels have changed
Info: Autoconf: New PAT we force SDT update after all sections seen
WARN: Autoconf: Channel 0 SID 301 Force PMT update
WARN: Autoconf: Channel 1 SID 302 Force PMT update
Info: Autoconf: The NIT version changed, channels number could have changed !
Info: Autoconf: The SDT version changed, channels description have changed
Info: Autoconf: We update the channel names
Info: Autoconf: We update the channel status
Info: Autoconf: Looking through all channels to see if they are ready for streaming
Info: Autoconf: We update the channel filters
Info: Common chan: Looking through all services to update their filters
Info: Autoconf: We update the channel networking
Info: Common chan: We open the channel 0 multicast IPv4 socket address 239.100.4.0:1234
Info: Common chan: We open the channel 1 multicast IPv4 socket address 239.100.4.1:1234
Info: Main: Channel "HLG teststream" down.Card 2
Info: Main: Channel "Test technique UHD NRJ" down.Card 2
Info: Common chan: Looking through all services to update their filters
Info: Autoconf: We update the channel CAM support
Info: Autoconf: Diffusion 2 channels
Info: Autoconf: Channel number : 0, service id 301 name : "HLG teststream"
Info: Autoconf: Multicast4 ip : 239.100.4.0:1234
Info: Autoconf: Channel number : 1, service id 302 name : "Test technique UHD NRJ"
Info: Autoconf: Multicast4 ip : 239.100.4.1:1234
Info: Common chan: Looking through all services to update their filters
Info: Autoconf: We update the channel CAM support
Info: Autoconf: Diffusion 2 channels
Info: Autoconf: Channel number : 0, service id 301 name : "HLG teststream"
Info: Autoconf: Multicast4 ip : 239.100.4.0:1234
Info: Autoconf: Channel number : 1, service id 302 name : "Test technique UHD NRJ"
Info: Autoconf: Multicast4 ip : 239.100.4.1:1234
Info: Main: Channel "HLG teststream" back.Card 2
Info: Main: Channel "Test technique UHD NRJ" back.Card 2
`
But nothing changes if I change sat_number or switch_input, I tried all combinations
p.s. scan that works I got from
here
I was using v170330
Please help.
Thank you