wsbf / wsbf.net

The WSBF website.
https://wsbf.net/
8 stars 4 forks source link

PHP implementation of RDS sender #2

Open bentsherman opened 7 years ago

bentsherman commented 7 years ago

RDS (radio data system) is the technology that allows radio stations to broadcast song information in addition to audio over the radio waves. For a while we've been using an application (written in Visual Basic) to send RDS data whenever a new track is logged, but this app was running on an old Windows server that we don't use anymore. There's a PHP implementation of the same program around here somewhere, but I haven't tested it so I don't how complete it is.

From Kevin Haag, the person who wrote both programs:

It could already work. I don't know for sure, but if it does work I think it probably has a bug that should be easy to fix. I think for the live sessions and IAMADUCK scenarios it re-sends too often, it should just be once every five minutes, or however long the timeout period is set to on the RDS. Although that functionality might not work at all, I wasn't very good trying to figure out semaphores.

Anyway, the VB implementation isn't really an option anymore because all of our servers run Linux, but if we can finish this PHP implementation then we can have RDS again.

bentsherman commented 7 years ago

Also, the PHP implementation that we have uses a class called phpSerial. The latest source code for this project can be found here.