Replies: 6 comments 5 replies
-
In a first step, I prefer idea 3. Reason: Some enthusiasts are using https://github.com/hayguen/fmlist_scan It would be good to have at least the information (for example thanks to the JSON output) that there is an additional carrier for RDS2. In a second step the authors (some radio friends of mine) need to modify his code. Like:
(Station logo is 0xFF7F in RDS2 block B), see for example:
see https://www.rds.org.uk/2010/pdf/R22_039_1_pw72.pdf (password is free of charge, but to be requested per mail from RDS forum, Mr. Kopitz) In case you are providing a first try in a separate github branch, I can test it in my lab at home, as I can generate a RDS2 signal (MPX recording of existing Radio Gioconda from Italy) as well. |
Beta Was this translation helpful? Give feedback.
-
Hi!
My suggestion would to use base64-blobs inside json for files and other
binary objects like logos etc. Just to keep it simple.
Kind regards,
// David
Den tis 20 feb. 2024 21:36Oona Räisänen ***@***.***> skrev:
… RDS2 support has been requested. Indeed it would be fun to have at some
point, albeit quite a bit of work, depending on the approach. Ideas for how
to realize the best possible UX are welcome in this thread!
Complications
- RDS2 would be a diversion from how redsea currently works.
- Currently, redsea outputs numbers or very short strings in JSON line
objects. These lines are normally < 150 characters long. Every JSON line is
self-contained.
- RDS2 can send files of 163 kB in size, according to radioworld
<https://www.radioworld.com/tech-and-gear/whats-new-with-rds2>.
Solution ideas 1. Print Base64 to terminal?
163 kB in base64 would be ~217,000 characters on a single line, over a
thousand times longer than the average redsea output line. If we print it
in terminal it's 52 times the size of a 120x35 window; arguably not very
good UX.
2. Write it on disk?
Another way would be to write the files on disk, separate from the main
JSON output. Currently there's no file output in redsea, so this would be
the most involved approach. Some things would need to be thought out first:
- Does RDS2 or the user give us file names?
- Should a newly received file always rewrite the old one?
- Or should there be a numbering scheme?
- Currently redsea does not exit on errors, except if the startup
fails. What if the write starts failing / disk becomes full?
- Should redsea avoid filling up the disk after a certain percentage?
Do we need a cross-platform way to request disk usage metrics?
- How can we reliably unit test this?
3. Limited RDS2 support?
Yet another way to realize RDS2 would be just to detect the additional
subcarriers and perhaps print some metadata, without actually decoding the
files.
—
Reply to this email directly, view it on GitHub
<#102>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AELU6KJFDTYDAGEBIGSQ2LDYUUCNPAVCNFSM6AAAAABDR2K6BKVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGI2DKOJRG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Well, I've changed Now I can at least export the 1st stream:
or
For RDS-only carriers there is no output. |
Beta Was this translation helpful? Give feedback.
-
Idea for files: for each file, exec a configurable program, pipe the file data to its stdin and if the program prints out a valid JSON object to stdout then add that to the redsea output JSON. This way everyone can make their own file processing. |
Beta Was this translation helpful? Give feedback.
-
I've added another recording from Australia to #32 |
Beta Was this translation helpful? Give feedback.
-
Oona: any comments on our suggestions? |
Beta Was this translation helpful? Give feedback.
-
RDS2 support has been requested. Indeed it would be fun to have at some point, albeit quite a bit of work, depending on the approach. Ideas for how to realize the best possible UX are welcome in this thread!
Complications
Solution ideas
1. Print Base64 to terminal?
163 kB in base64 would be ~217,000 characters on a single line, over a thousand times longer than the average redsea output line. If we print it in terminal it's 52 times the size of a 120x35 window; arguably not very good UX.
2. Write it on disk?
Another way would be to write the files on disk, separate from the main JSON output. Currently there's no file output in redsea, so this would be the most involved approach. Some things would need to be thought out first:
-c
) wish to write into a file with the same name?3. Limited RDS2 support?
Yet another way to realize RDS2 would be just to detect the additional subcarriers and perhaps print some metadata, without actually decoding the files.
Beta Was this translation helpful? Give feedback.
All reactions