miegl / PiFmAdv

Advanced Raspberry Pi FM transmitter with RDS encoding
GNU General Public License v3.0
487 stars 82 forks source link

dynamic Radio data system RT causes messages to get merged #27

Closed Niall7459 closed 6 years ago

Niall7459 commented 6 years ago

My radio station changes RT every 10 seconds, with two messages one saying "Welcome to Niall FM" and the other is "Now Playing: " with the song title...

Problem is that its very likely (e.g 80%) of the time to get the messages mixed up...

"Welcome to NiaNow Playing:" or "Now Playing: Dr Dre feat SnooFM."

screen shot 2018-04-24 at 10 18 41

(The radio scrolls the text)

So of course in this picture it has cut in with the second rt has been cut off and then the now playing Rt has been inserted.

As if the RT is being transmitted then changed it continues at the same character position but with a different text.

It would be nice if this could be fixed. Im sure it wasnt in PiFMRds in 2016 not sure tho.

The script fetches the now playing from a server

miegl commented 6 years ago

That's due to the AB flag not being changed when updating your RT. If you change the AB flag everytime you update your RT the reciever will (hopefully) clear out the previous text.

just do echo "AB ON" > rds_ctl or echo "AB OFF" > rds_ctl you need to change the bit (from ON to OFF) everytime your RT updates! Let me know if it works!

Niall7459 commented 6 years ago

Wait @Miegl after the RT has been updated or before?

miegl commented 6 years ago

before, it should happen at the same time

Niall7459 commented 6 years ago

Still no luck with that.

Niall7459 commented 6 years ago

Ok @Miegl How should this be sequenced.

  1. AB ON RT text

  2. AB ON AB OFF RT text

  3. AB ON RT text AB OFF AB ON RT text ..

miegl commented 6 years ago

No, just do 1. AB ON RT TEXT 2. AB OFF RT TEXT 3. AB ON RT TEXT 4. AB OFF RT TEXT

miegl commented 6 years ago

Closing as this should be working. Just switch AB bit everytime you make changes to RT to clear out the text.