Gmenu2x displayed time


Todespreis

Member
Joined
Jun 16, 2021
Messages
87
Hey there! I'm just wondering, is it possible to display the unix time in Gmenu2x and not the time, how long the handheld is on? Is there a setting for it somewhere?
 
I don't have a GP2x sadly, but I think the GP2X is lacking an RTC (Real-Time Clock) so it doesn't remember the actual time. Classic handheld design, as an RTC costs battery.
And I assume that is the reason it only shows the time it's on instead of the actual time.

I think there was a discussion on adding an RTC add-on in the past: https://pyra-handheld.com/boards/threads/possibility-for-a-realtime-clock.26160/
 
Hey! Thanks for the answer, yes, i know, the batteries... GP2X gets hard resetted every time, it goes off. But finally i found the layout of the EXT connection on the device and now i know, where all the pins are lying. And my idea is basically to put a microcontroller with an RTC and let the GP2X "ask" the microcontroller every time, the handheld goes on - what time it is? :) I want to connect them via UART and the microcontroller would work with RTC via I²C. I just don't want to mess it up with recompiling the gmenu2x ^^"
 
  • Like
Reactions: rSl
If you're going to such lengths, you could always try to see if VDDRTC/VSSRTC/XTIRTC/XTORTC on the MMSP2 are exposed anywhere on the board and splice a coin cell/crystal in... Chapter 6 of the MMSP2 databook details the relevant registers.
 
@TeDaDeS thats actually the problem - the CPU is capable of I²C, but there are no drivers for it, at least i could'nt find any. And i'm not that good at c coding, that i could write one by myself and that leads me to the second problem
@Orkie to solder an rtc module to the cpu directly would be a much more ellegant solution, but i'm just not capable of doing that and i'm too afraid to damage my unit.

My solution may be not the accurate one, but in my opinion it's the safest way to add anything. I thoughd already about it, just to make some kind of external attachement via the EXT connection, but there should be more, than just an RTC to justify an external device. Maybe i should draw it to show my thoughts in a better way
 
@TeDaDeS thats actually the problem - the CPU is capable of I²C, but there are no drivers for it, at least i could'nt find any. And i'm not that good at c coding, that i could write one by myself and that leads me to the second problem
@Orkie to solder an rtc module to the cpu directly would be a much more ellegant solution, but i'm just not capable of doing that and i'm too afraid to damage my unit.

My solution may be not the accurate one, but in my opinion it's the safest way to add anything. I thoughd already about it, just to make some kind of external attachement via the EXT connection, but there should be more, than just an RTC to justify an external device. Maybe i should draw it to show my thoughts in a better way
It was an example, there are many RTC modules available. If you want to use UART it exists also.

@Orkie did anyone attempt this mod before? I can understand soldering directly to the board might feel risky compared to an external add-on.
 
I've never heard of anybody doing it, I'm not sure anybody has ever been desperate for an RTC before. I2C is definitely exposed though, the serial number and LCD settings are stored on an I2C EERPOM - you could probably daisy chain something off that (might need a buffer): http://wiki.gp2x.org/articles/i/2/c/I2C.html
I could imagine RTC was designed into the product at one point but wasn't important enough compared to battery life or cost. So it was removed again.
 
Oh, how cool is that! Thanks Orkie! Now it is a completely different thing and definitely worth trying
 
Back
Top