miegl / PiFmAdv

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

How can I make cars switch to my station #19

Closed Niall7459 closed 6 years ago

Niall7459 commented 6 years ago

I want cars to be able to switch to my station maybe using some combination of RDS TA and EON on other stations.... Or maybe rds EAS pty 31 the Emergency Alert System but I think it only works in America.

So basically I want the cars to switch to my station as soon as there in range. Just for testing thanks

miegl commented 6 years ago

You can't make a car switch to your station (thankfully).

The closest thing possible is to transmit on a freq that is in AF of some other station and as soon as that station looses signal the cars tuned to that particular station will (or should) switch to your station. For that to work though your stations PI must be matching the PI of the station.

But for that the other station must loose its signal (or at least the RDS reception has to get worse), which will probably involve jamming. And no, I wouldn't do that, even for "testing" purposes.

Niall7459 commented 6 years ago

I want to build a relay of transmitters like so 1 pi transmits then PI2 recieves and re-transmits

HOME ) ) ) ) ) ) ) ) ) PI ) ) ) ) ) ) ) ) PI ) ) ) ) ) ) ) PI ) ) ) ) )))

Niall7459 commented 6 years ago

But I need something to recieve FM for the other pis, and power and that would be cool Except music might be out of sync slightly.

miegl commented 6 years ago

I would you use wifi ptp for that

sm3ulc commented 6 years ago

The normal way is to use RDS and AF-lists (alternative frequencies). Check the RDS specification and add some rows to transmits the extra RDS-groups.

// David

On Sun, Jan 21, 2018 at 12:11 PM, Josef Miegl notifications@github.com wrote:

I would you use wifi ptp for that

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Miegl/PiFmAdv/issues/19#issuecomment-359240532, or mute the thread https://github.com/notifications/unsubscribe-auth/ARdPKQq7HEcNuBCtZ8ZkvUG9SXZg1rDaks5tMxtsgaJpZM4RlZJ4 .

miegl commented 6 years ago

@sm3ulc Yeah I will add AF. This will not make the cars switch to a PiFmAdv station though, as @Niall7459 wants.

ghost commented 6 years ago

On Jan 21 2018, Josef Miegl wrote:

@sm3ulc Yeah I will add AF. This will not make the cars switch to a PiFmAdv station though, as @Niall7459 wants.

https://en.wikipedia.org/wiki/Traffic_announcement_(radio_data_systems)

Changing PS, RT and TA at run-time

You can control PS, RT and TA (Traffic Announcement flag) at run-time using a named pipe (FIFO). For this run Pi-FM-RDS with the -ct l argument.

Example:

mkfifo rds_ctl
sudo ./pi_fm_rds -ctl rds_ctl

Then you can send "commands" to change PS, RT and TA:

cat >rds_ctl
PS MyText
RT A text to be sent as radiotext
TA ON
PS OtherTxt
TA OFF
...
miegl commented 6 years ago

TA will not make a car switch to your station from another station. It will only switch to your station if you are tuned to your station but using lets say CD player.

sm3ulc commented 6 years ago

Some documentation about the RDS system for reference:

https://www.iz3mez.it/wp-content/library/ebook/RDS%20-%20The%20Radio%20Data%20System.pdf (added working url) Kind regards,

// David

Den 21 jan. 2018 17:57 skrev "Naich Roolz" notifications@github.com:

On Jan 21 2018, Josef Miegl wrote:

@sm3ulc Yeah I will add AF. This will not make the cars switch to a PiFmAdv station though, as @Niall7459 wants.

https://en.wikipedia.org/wiki/Traffic_announcement_(radio_data_systems)

Changing PS, RT and TA at run-time

You can control PS, RT and TA (Traffic Announcement flag) at run-time using a named pipe (FIFO). For this run Pi-FM-RDS with the -ct l argument.

Example:

mkfifo rds_ctl
sudo ./pi_fm_rds -ctl rds_ctl

Then you can send "commands" to change PS, RT and TA:

cat >rds_ctl
PS MyText
RT A text to be sent as radiotext
TA ON
PS OtherTxt
TA OFF
...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Miegl/PiFmAdv/issues/19#issuecomment-359262839, or mute the thread https://github.com/notifications/unsubscribe-auth/ARdPKQzXucIiVBiC2fNMuyS-sM1ShQ5Vks5tM2xugaJpZM4RlZJ4 .

sm3ulc commented 6 years ago

Yes and switching to another fq on TA is with EON. Not to confuse. :)

// David

Den 21 jan. 2018 18:00 skrev "Josef Miegl" notifications@github.com:

TA will not make a car switch to your station from another station. It will only switch to your station if you are tuned to your station but using lets say CD player.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Miegl/PiFmAdv/issues/19#issuecomment-359263087, or mute the thread https://github.com/notifications/unsubscribe-auth/ARdPKaH60MxK61YUA8MjWrrO3wPiDSJ7ks5tM200gaJpZM4RlZJ4 .

sm3ulc commented 6 years ago

Pretty broken url, trying again:

https://www.iz3mez.it/wp-content/library/ebook/RDS%20-%20The%20Radio%20Data%20System.pdf

// David

On Sun, Jan 21, 2018 at 7:51 PM, David Lundberg sm3ulc@gmail.com wrote:

Some documentation about the RDS system for reference:

https://www.iz3mez.it/wp-content/library/ebook/RDS% 2520-%2520The%2520Radio%2520Data%2520System.pdf&ved= 2ahUKEwiguNuA3OnYAhXEkiwKHajgBssQFjAJegQICBAB&usg= AOvVaw0v97QQ3UraQUq5pV3Dnz7W

Kind regards,

// David

Den 21 jan. 2018 17:57 skrev "Naich Roolz" notifications@github.com:

On Jan 21 2018, Josef Miegl wrote:

@sm3ulc Yeah I will add AF. This will not make the cars switch to a PiFmAdv station though, as @Niall7459 wants.

https://en.wikipedia.org/wiki/Traffic_announcement_(radio_data_systems)

Changing PS, RT and TA at run-time

You can control PS, RT and TA (Traffic Announcement flag) at run-time using a named pipe (FIFO). For this run Pi-FM-RDS with the -ct l argument.

Example:

mkfifo rds_ctl
sudo ./pi_fm_rds -ctl rds_ctl

Then you can send "commands" to change PS, RT and TA:

cat >rds_ctl
PS MyText
RT A text to be sent as radiotext
TA ON
PS OtherTxt
TA OFF
...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Miegl/PiFmAdv/issues/19#issuecomment-359262839, or mute the thread https://github.com/notifications/unsubscribe-auth/ARdPKQzXucIiVBiC2fNMuyS-sM1ShQ5Vks5tM2xugaJpZM4RlZJ4 .

sm3ulc commented 6 years ago

Also, maybe worth to add in documentaion. This easy software by Oona is very good for decoding/testing/analyzing RDS:

https://github.com/windytan/redsea

// David

On Sun, Jan 21, 2018 at 7:51 PM, David Lundberg sm3ulc@gmail.com wrote:

Some documentation about the RDS system for reference:

https://www.iz3mez.it/wp-content/library/ebook/RDS% 2520-%2520The%2520Radio%2520Data%2520System.pdf&ved= 2ahUKEwiguNuA3OnYAhXEkiwKHajgBssQFjAJegQICBAB&usg= AOvVaw0v97QQ3UraQUq5pV3Dnz7W

Kind regards,

// David

Den 21 jan. 2018 17:57 skrev "Naich Roolz" notifications@github.com:

On Jan 21 2018, Josef Miegl wrote:

@sm3ulc Yeah I will add AF. This will not make the cars switch to a PiFmAdv station though, as @Niall7459 wants.

https://en.wikipedia.org/wiki/Traffic_announcement_(radio_data_systems)

Changing PS, RT and TA at run-time

You can control PS, RT and TA (Traffic Announcement flag) at run-time using a named pipe (FIFO). For this run Pi-FM-RDS with the -ct l argument.

Example:

mkfifo rds_ctl
sudo ./pi_fm_rds -ctl rds_ctl

Then you can send "commands" to change PS, RT and TA:

cat >rds_ctl
PS MyText
RT A text to be sent as radiotext
TA ON
PS OtherTxt
TA OFF
...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Miegl/PiFmAdv/issues/19#issuecomment-359262839, or mute the thread https://github.com/notifications/unsubscribe-auth/ARdPKQzXucIiVBiC2fNMuyS-sM1ShQ5Vks5tM2xugaJpZM4RlZJ4 .

miegl commented 6 years ago

@sm3ulc thanks for your recommendation. I have to (finally) buy some cheap rtl-sdr ;) There's also another useful tool called RDS Spy (http://rdsspy.com/). It's for Windows, but it runs jsut great under wine.

miegl commented 6 years ago

Ok, so finally I have done implementing AF ;) https://github.com/Miegl/PiFmAdv/commit/25f7dc5b556c4009d7b64f7e8f8c05410384f5dd

AF