How to create correct EPG reference?

B16MCC

Dreambox Gimp & Coder
My Satellite Setup
2 Dreamboxes..........
---------------------------------------------
--- DM 8000 HD PVR & DM 800 HD ---
Motek SG2100 & Triax 80cm Dual LNB
------ Fixed Dish 28e Quad LNB -------
---- Sly HD Full & 24" Apple iMAC ----
My Location
/var/tuxbox/config
Hi guys, I'm looking into how the channel reference is created in the EPG channels file. I've come across some very useful information (thanks to tomthebomb) but it doesn't seem to be correct in every case. Here's the info I've been working with.


a=download channel yes or no ( 1 or 0 )
b=channel ID
c=Channel name
d= Sly EPG number
e=SID in HEX
f=TSID in HEX
g=Network ID


So an entry in the channels.uk file (nabilo image) is for example :-
1;2102;BBC 1 N West;60;283e:7fe:2

a is OK

b is not OK - The Channel ID in this case is 2102 , how is this created or calculated ? I've seen that its made up by the last character of the CAID and the 1st, 2nd and 4th character of the SID but in this case it is obviously wrong.

c is OK

d is not OK - How is this calculated ? BBC1 EPG number is 101 and so in hex this would be 65, so why is it 60 in this working example. EDIT:- I've just noticed that this number simply increments after several channels but the question remains how do you know what number it should be ?

e is OK
f is OK
g is OK


I've asked elsewhere but thought I may aswell post here too.
Can anyone please help with this ?
 
Hi,

Why do you need to make it up ?

Can you not get it from lamedb e.g. :-

VIVA Polska.
p:MTV Networks Europe
001a:0ce42d5f:0015:0001:1:0

For 7-day epg with e2_loadepg :-
"channel name and provider name are the names of the channel and its provider in /etc/enigma2/lamedb. The provider name can be omitted if it is same as the Default Provider at the top of the list. If no provider name in lamedb then use the word noprovider."

Regards, pcd.
 
Thanks for the info but I'm still confused.
This is my entry in lamedb for the Gospel Channel.
Gospel Channel
p:BSkyB
04bf:ffff0000:0007:f020:1:0

In nabilo's channel.uk file it is
1;6548;Gospel Channel;0;cbbe:8fe:2

So my question still remains, what is 6548 and what is 0 ?
 
Looked at this also in the past.
There is no direct relation between any of the information in the settings and the EPG ID. As you already discovered, sometimes it works, and sometimes it does not.
It does work with SKy It instead, where you can extract the EPG ID from the settings, but I cannot remember which field now.
On the Nabilosat generated epg channel file, those 2 numbers represent the provider channel ID, and the EPG ID. Cannot remember which is which. Need to go back

You may want to look at this
_http://tv.sky.com/tvlistings
The number before each channel should be the EPG ID.
 
Thanks for the info mate, I have read that but again it doesn't ring true. Is there anyone on the nabilo team who might be able to explain it please ?
 
Ok I've done a lot of searching and reading and I now have a theory based loosly on other info I've found. I'm suggesting that for this to work perfectly it must be used in conjunction with Dreambox Edit as it seems the Channel Number parameter which is often not used may be important.

I'm suggesting the equation to create the channel reference is as follows :-

a=download channel yes or no ( 1 or 0 )
b=Unique Number - Doesn't matter what (So possibly EPG Number)
c=Channel name
d=Channel Number In Dreambox Edit ( Not sure if its hex or not )
e=SID (hex)
f=TSID (hex)
g=Network ID (hex)

So an example would be :-
1;1020;BBC Two;102;189E:7FD:2

I've yet to test this but someone please feel free to do so.
Bare in mind that adding a single line to an existing file may be no good as the B paramter needs to be unique and you may ofcourse duplicate an existing line.
 
Hi B16MCC Had a look at this and found E2_LoadEPG was able to find (b) Channnel ID. It was able grab the Channel ID from the stream. It needs a bit of setting up. Check the logs for your missing channel ID's after running it. (b) seems to be the most important number as it points the correct EPG data to the service reference. (d) seems to work as the EPG number. Changing this didn't seem to make much difference. Is it sometimes mixed up with the Radiotimes channel ref? Hope this helps.
 
Slightly off topic - but this guide I wrote some time ago may be of interest in this context of finding stuff from the dreambox :-

To stream currently playing channel :-

(1) Telnet command :-

wget -q -O - h**p://127.0.0.1/web/getpid

or

wget -q -O - h**p://dreambox-ip/web/getpid

The reply will be (or example):-

h**p://192.168.1.3:31339/0,200,a2,58

Start vlc media player and do :-

File -> Open File -> Network -> select HTTP and copy and paste the telnet pid reply. Press OK and streaming should start.

If streaming does not start - Restart vlc and do :-

File -> Open Network Stream -> select HTTP and copy and paste the telnet pid reply.

Select Stream/Save -> Settings -> select Play locally and Select all elementary streams -> press OK.

To Record :-

To record - in Network Stream Stream/Save - select File.

To zap to another channel :-

Find the bouquet list from /etc/enigma2/bouquet

You can also get the bouquet name by telnet :

wget -q -O - h**p://127.0.0.1/web/getservices

Then get the service ref for the channels in a bouquet by (for example for 'favourites' bouquet) telnet :-

wget -q -O - h**p://127.0.0.1/web/getservices?sRef=1:...%20BY%20bouquet

Save the channel ref (e2servicereference) list.

To zap to a channel - telnet (for example) :-

wget -q -O - h**p://127.0.0.1/web/zap?sRef=channel ref


Cheers, pcd.
 
Back
Top