pabr / leansdr

Lightweight, portable software-defined radio
GNU General Public License v3.0
155 stars 41 forks source link

Does lenadvb support CRC for DVB-S2 reception? #26

Open VDelport opened 4 years ago

VDelport commented 4 years ago

First of all, sorry for asking this question in the issues.

Broadcast systems use FEC as error protection. However, if it is important that the data is processed without any error after receipt, CRC error protection should also be used, with which bundle errors are identified with a high degree of probability. As far as I know, there is also CRC error protection in DVB-S2. Does lenadvb support CRC for DVB-S2 reception?

pabr commented 4 years ago

leandvb checks 8-bit CRCs on S2 frame headers but not on individual TS packets. This can be a concern now that people use it near the SNR limit and errors could slip through LDPC+BCH. Let's keep this issue open as a reminder that I need to fix that.

VDelport commented 4 years ago

Thank you for your quick reply.

VDelport commented 4 years ago

I have another question that goes in the same direction. If I am correct, there is a flag in the header of a TS packet that is set by a hardware receiver if the TS packet has errors. Does leandvb set the flag too?

pabr commented 4 years ago

Not currently but the plan is indeed to set the Transport Error Indicator bit on TS packets with a bad CRC. Implementation is done, will push later this month after testing.

VDelport commented 4 years ago

Implementation is done, will push later this month after testing. That would be great. Many thanks.