Avalpa Community
http://www.avalpa.com/forum/

nordig LCN / 14 bit vs 10 bit
http://www.avalpa.com/forum/viewtopic.php?f=11&t=255
Page 1 of 1

Author:  jules [ Tue Sep 06, 2016 7:34 pm ]
Post subject:  nordig LCN / 14 bit vs 10 bit

Hi guys,

I found the following code in the descriptors declarations:

class lcn_service_descriptor_loop_item(DVBobject):

def pack(self):
fmt = "!HH"
return pack(fmt,
self.service_ID,
((self.visible_service_flag << 15) | 0x7C00 | self.logical_channel_number),
)

However for nordig LCN, the logical_channel_number field is expected to be 14 bit, not 10 bit. Has anyone done any alterations to this which allow nordig compliant LCN generation?

Thanks! Jules

Author:  jules [ Wed Sep 07, 2016 10:16 am ]
Post subject:  Re: nordig LCN / 14 bit vs 10 bit

Don't worry, cracked it. Made a new descriptor as follows:

class lcn_service_descriptor_14_loop_item(DVBobject):

def pack(self):
fmt = "!HH"
return pack(fmt,
self.service_ID,
((self.visible_service_flag << 15) | 0x4000 | self.logical_channel_number),
)

Now the LCN is respected when 14 bit logical_channel_number field is expected... :-)

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/