Comments (7)
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.
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.
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.
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.
hm, interesting distribution. So what's the default currently? Don't correct, discard?
from redsea.
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.
Will reopen if it causes further problems :) The restrictions mentioned in that document seem to keep it in order.
from redsea.
Related Issues (20)
- install: cannot stat 'rtl_ais': No such file or directory HOT 2
- build ERROR: Dependency "iconv" not found HOT 5
- Warnings from jsoncpp
- Switching to nlohmann_json breaks OpenEmbedded builds HOT 6
- Cannot compile on Ubuntu 20.04: nlohmann-json3 outdated HOT 1
- Using redsea? We'd love to know! HOT 2
- JSON output of TMC location table with Unicode characters HOT 3
- 4A: wrong clock date/time calculation HOT 1
- Test suite HOT 1
- Decoder Identification bits are the wrong way around HOT 1
- AF shown too less in JSON even for error-free signals HOT 12
- Input from TEF6686 tuner HOT 9
- Migrate build system HOT 2
- `partial_alt_kilohertz` missing in Wiki HOT 1
- ASCII Binary file not working HOT 6
- Input from soundcard HOT 2
- Redsea is loosing contact? HOT 11
- Input from file only works with parameter `-f` HOT 5
- Cached PI issues
- TMC Location tables question HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redsea.