Playing around with Diseqc

Asked by Skip D. on 2012-05-15

Hello,
I played around a little with Diseqc. I made a very few small alterations in the source code and for me it seems to work now for two LNBs:

1)
Channels.conf for LNB#0:
PHOENIX(ARD):10744:h:0:22000:501:502:28725
2)
Channels.conf for LNB#1:
BBC THREE(BSkyB):10773:h:1:22000:5200:5201:6319

Notice the difference in the 4th column. I changed it by hand from 0 to 1 for LNB 1 because w_scan did not provide the information into channels.conf. I am not completely sure, if this column is really dedicated for this.

3)
I took the server's source 1.4.0-0-34 as base, changed the following:
me-tv-server.cc
170,171c170
< table_channel.columns.add("sat_number", Data::DATA_TYPE_INTEGER, 0, true);

dvb_frontend.cc
90c90
< diseqc(transponder.satellite_number, transponder.polarisation, hi_band); // Note that satellite_number is constant 0. Maybe this should be configurable? I don't fully understand it's use, but it has something to do with being able to tune to different satellites.
---
> diseqc(0, transponder.polarisation, hi_band); // Note that satellite_number is constant 0. Maybe this should be configurable? I don't fully understand it's use, but it has something to do with being able to tune to different satellites.
102c102
< g_debug("Diseqc: SatNr: %d, Hiband: %d, polarisation: %d - new freq: %d", transponder.satellite_number, hi_band, transponder.polarisation, parameters.frequency);
---
> g_debug("Diseqc: Hiband: %d, polarisation: %d - new freq: %d", hi_band, transponder.polarisation, parameters.frequency);

channel_manager.cc
180d178
< row["sat_number"].int_value = channel.transponder.satellite_number;

This generates a new column in the sql database with the information which satellite to use.
As I said, for me it works with two LNBs and a multiswitch on Astra 19.2 and 28.2. I only needed to recompile the server.

Regards, Skip

Question information

Language:
English Edit question
Status:
Solved
For:
Me TV Edit question
Assignee:
No assignee Edit question
Solved by:
Frédéric Côté
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Skip D. (good-old-skip) said :
#2

Well,

this solution still works for me, maybe it could be integrated into me-tv. I could provide diff files on request although the alterations to the source are minimal, just as I enclosed in my message.

Thanks in advance,

Skip

Revision history for this message
Best Frédéric Côté (frederic-cote) said :
#3

I've include your code into the code in the PPA. So from version 1.4.0.10 it should work just fine.

Thanks,
Fred

Revision history for this message
Skip D. (good-old-skip) said :
#4

Thanks Frédéric Côté, that solved my question.

Revision history for this message
Skip D. (good-old-skip) said :
#5

Hi,

I have just download the new version - it works.

Again, thank you!