Namespace

The Dreambox satellite receiver uses a mysterious value called namespace in the settings files. This is a first attempt to get a little closer.

It looks like PPPPXXXX PPPP: 4 hex values about the satellite Position: Position in Degrees * 10 as Word (Hex) + 4 digit (hex)
Examples:

XXXX: usually 0000 but not always

Pjotr Rymko gave me the following information. Thank you, Pjotr:


XXXX is different from 0x0000 when: NID is 0x0000 or 0xFFFF or NID is 0x0001 and TID is 0x0000 or 0x0001. In those cases: PPPP = freq & 0xFFFF For example: nid: 0x0001 tid: 0x0001 freq: 12285000 = 0xBB7448 sat: 192 = 0xC0 namespace = 0x00c07448 And by the way, in services file p:name seems to be the package name not an original program name but I could be wrong..
And Harry (Charalampos Kalligeros) added this information, thanks again.
I digged into the source files of the enigma-tuxbox project (cvs.tuxbox.org) and I found this: 
 
inline int isValidONIDTSID(eOriginalNetworkID onid, eTransportStreamID tsid, int orbital_position) 
{ 
  switch( onid.get() ) 
  { 
  case 0: 
  case 0x1111: 
  return 0; 
  case 1: 
  return orbital_position == 192; 
  case 0x00B1: 
  return tsid != 0x00B0; 
  case 0x0002: 
  return abs(orbital_position-282) < 6; 
  default: 
  return onid.get() < 0xFF00; 
  } 
} 
 
eDVBNamespace eTransponder::buildNamespace(eOriginalNetworkID onid, eTransportStreamID tsid, int orbital_position, int freq, int pol) 
{ 
  int dvb_namespace=orbital_position<<16; 
  // on invalid ONIDs, build hash from frequency and polarisation 
  if (!isValidONIDTSID(onid, tsid, orbital_position)) 
  dvb_namespace|=((freq/1000)&0xFFFF)|((pol&1)<<15); 
  return eDVBNamespace(dvb_namespace); 
} 
 
According to the C++ code above, transponders with ONID 0, 4369 (dec), 1 (if they are on Astra 19.2) , 177 (dec) (unless they have tsid =176 dec), 2 (if position -182 < 6) are considered as invalid. 
For those, the second part (4 hex digits) of the namespace, is calculated in relation to the frequency.  

Radiovibrations.com -> Dreambox Notes