Giter VIP home page Giter VIP logo

Comments (7)

windytan avatar windytan commented on August 24, 2024

Weird indeed. I'll need to write tests for the error detector.

This much is said about the RDS error protection scheme:

  • Detects all single and double bit errors in a block.
  • Detects any single error burst spanning 10 bits or less.
  • Detects about 99.8% of bursts spanning 11 bits and about 99.9% of all longer bursts.

Maybe it could be a long error burst (like 11000000011)?

from redsea.

flux242 avatar flux242 commented on August 24, 2024

I let my computer record the bit stream tonight for 5-6 hours but I couldn't reproduce the problem unfortunately. This is somehow related to the noise introduced by the usb cable, dongle, computer and antenna constellation.

I have recorded samples with cases when the radiotext message is not fully displayed first, then more symbols are shown and then the full message is shown. Maybe it's somehow related but maybe it's ok

I will try to record more bit stream samples trying to catch similar cases.

from redsea.

windytan avatar windytan commented on August 24, 2024

I tested the error detector with a million known error vectors, and it works as advertised. (However, error correction doesn't do anything for some reason. Erroneous blocks are discarded however).

This means that 0.1 - 0.2 % of long error bursts go undetected, so there will inevitably be some errors when the signal is very noisy.

from redsea.

windytan avatar windytan commented on August 24, 2024

Just for the record - this is affected by the correction algorithm.

Here's a test run to measure error detection rates for errors of different length when correction is disabled vs. enabled for 1-2 bit errors:

burstLen don't correct correct 1bit correct 1-2bit
1 100.0 % 100.0 % 100.0 %
2 100.0 % 100.0 % 100.0 %
3 100.0 % 100.0 % 100.0 %
4 100.0 % 100.0 % 100.0 %
5 100.0 % 100.0 % 100.0 %
6 100.0 % 97.4 % 89.0 %
7 100.0 % 99.8 % 98.6 %
8 100.0 % 98.2 % 98.3 %
9 100.0 % 99.0 % 98.1 %
10 100.0 % 97.3 % 96.5 %
11 99.8 % 97.1 % 94.6 %
12 99.9 % 97.5 % 95.7 %
13 99.9 % 97.5 % 95.7 %
...

This shows that error detection rates are somewhat impacted by enabling error correction. This will result in some errors slipping through. I think it's an expected tradeoff of the error protection scheme used.

from redsea.

flux242 avatar flux242 commented on August 24, 2024

hm, interesting distribution. So what's the default currently? Don't correct, discard?

from redsea.

windytan avatar windytan commented on August 24, 2024

Currently (at least in the latest commit) errors of 1 or 2 bits will be corrected, and uncorrectable blocks are discarded. I based this on Kopitz & Marks 1999: "RDS: The Radio Data System", p. 224: "...the error-correction system should be enabled, but should be restricted by attempting to correct bursts of errors spanning one or two bits."

1-bit errors should not be very common because of delta encoding; perhaps 2-bit errors only would suffice.

from redsea.

windytan avatar windytan commented on August 24, 2024

Will reopen if it causes further problems :) The restrictions mentioned in that document seem to keep it in order.

from redsea.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.