Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Option to set time based on fm radio
« previous next »
  • Print
Pages: [1]

Author Topic: Option to set time based on fm radio  (Read 840 times)

Offline greatjack

  • Member
  • *
  • Posts: 26
Option to set time based on fm radio
« on: October 31, 2017, 02:06:32 PM »
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.
Logged

Offline pamaury

  • Developer
  • Member
  • *
  • Posts: 508
Re: Option to set time based on fm radio
« Reply #1 on: November 08, 2017, 02:41:11 PM »
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
Logged
Please don't PM me, use our IRC channel instead.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Option to set time based on fm radio
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.062 seconds with 15 queries.