Avalpa Community

The place where we can talk freely about Avalpa product and services
It is currently Wed Aug 21, 2019 3:32 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  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group