Avalpa Community

The place where we can talk freely about Avalpa product and services
It is currently Sun Oct 01, 2023 1:01 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Sep 06, 2016 7:34 pm 
Offline

Joined: Fri Feb 21, 2014 5:17 pm
Posts: 2
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


Top
 Profile  
 
PostPosted: Wed Sep 07, 2016 10:16 am 
Offline

Joined: Fri Feb 21, 2014 5:17 pm
Posts: 2
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... :-)


Top
 Profile  
 
Display posts from previous:  Sort by