Closed argilo closed 1 week ago
I kept the changes in four separate commits, in case there are any that are problematic and need to be taken out or moved into a separate pull request.
Part of the motivation for parts 2 and 3 is to make retrieving PS & radiotext through Gqrx's remote control interface more reliable: https://github.com/gqrx-sdr/gqrx/pull/1373
Awesome, thank you!
Here I have made some improvements to the RDS Parser block, which should make the output nicer to work with:
Clear the alternate frequency string before processing each type 0 group. At present, gr-rds stores this in a static variable which is never cleared. This causes alternate frequencies from one station to appear when receiving other stations that do not specify alternate frequencies.Update: I replaced part 4 with a more complete implementation of alternate frequency parsing. At present, gr-rds processes fragments of the alternate frequency list one at a time, which causes the RDS panel to rapidly cycle between alternate frequencies whenever a station defines more than one. In addition, it does not handle "AF method B", which allows the broadcaster to distinguish between frequencies that are the same program vs. those that are regional variants. (This method is used by our national broadcaster here in Canada.) I modified the code to collect fragments of the alternate frequency list until the entire list is available, parse it (using method A or B, as appropriate), and display it as a single list. Here's what it looks like: