Rockbox General > Rockbox General Discussion

Option to set time based on fm radio

(1/1)

greatjack:
Hello all,

I was playing around with my clip zip and I noticed on the debug menu, that on certain fm stations, part of the data being transmitted was the current date and time. Would it be possible to create a option in the date and time menu in rockbox settings that would allow you to set the time and date through this data. It can be as simple as telling the user to go to a station that has radio data and then pushing a use fm time in that date and time settings in rockbox.

Im not requesting for the devs to do work, I would actually like to implement it myself, I just want to know if such a feature would 1. Be possible. 2.be accepted to the master branch?

Thank for  your time.

pamaury:
Hi,
indeed some radio stations broadcast the time and date so it is possible to implement the functionality you are thinking about. I suspect the simplest way to do it would be to add code in the system menu that would "set date based on RDS". It would check if RDS date/time is available and if so, sets it, otherwise it tells the user to turn on the radio, seek and retry. Possibly the screen would display the RDS date to check if it's correct. I think there would be no objection accepting such a ptahc in mainline. Here are some pointers in the code if you are interested:

* debug menu code that displays RDS date/time: apps/debug_menu.c in radio_callback()
* rds function header: firmware/export/rds.h
* system menu code: apps/menus/time_menu.c

Navigation

[0] Message Index

Go to full version