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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  iriver h1x0 - RTC (real time clock) mod
« previous next »
  • Print
Pages: 1 ... 5 6 [7] 8 9 10

Author Topic: iriver h1x0 - RTC (real time clock) mod  (Read 77273 times)

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #90 on: February 20, 2007, 04:21:41 PM »
Quote from: roolku on February 19, 2007, 02:42:22 PM
...I will also have a look if it still clashes with the REP and most likely compile a new version.

I have updated the rtc patch, but I can't find  an up-to-date REP patch. :(

Logged

Offline TaperChuck

  • Member
  • *
  • Posts: 61
    • CoTapers
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #91 on: February 20, 2007, 04:29:00 PM »
http://homepage.ntlworld.com/martin.scarratt/Rockbox/rockbox.zip

Here is the link to the build in Mmmm.s sig line.  It has the new menu incorporated. Please let us know if you do patch it, I'd love to have the new menu on my RTC iRivers.
Logged
Chuck

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #92 on: February 20, 2007, 04:38:17 PM »
Quote from: roolku on February 20, 2007, 04:21:41 PM
Quote from: roolku on February 19, 2007, 02:42:22 PM
...I will also have a look if it still clashes with the REP and most likely compile a new version.

I have updated the rtc patch, but I can't find  an up-to-date REP patch. :(


There is an up to date patch in post#1 of the REP thread in the recording forum.
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #93 on: February 20, 2007, 05:38:37 PM »
Quote from: Mmmm on February 20, 2007, 04:38:17 PM
There is an up to date patch in post#1 of the REP thread in the recording forum.

It gave me 3 failed hunks when patching current svn which seemed easy enough to fix, but the resulting code wouldn't compile for h120... I don't have the time to investigate further at the moment unfortunately. :(
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #94 on: February 21, 2007, 01:14:44 PM »
Ah, yes...it's gone out of date already  ::)

Just those #ifs and#ifdefs by the look of it......

Should be ok now.... Try the same link for the updated version
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline x1jmp

  • Member
  • *
  • Posts: 7
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #95 on: February 21, 2007, 01:57:50 PM »
Yesterday I did my first soldering ever (we don't do this at school >:().

After some hours of difficult soldering under the microscope (at first connected Vcc to SDA...) the chip worked perfectly.

I had to use the "deprecated" DS1339c chips, because I first read about the DS3231 after I received the samples.

So the difficult part after the soldering was to disable the sqare wave, as I wasn't able set the alarm in advance because of the autodetect feature.

Unfortunately I have no soldering gun at home and forgot to take the remote with me. It ended up in switching the hold switch off, pressing a button and switching it on again very fast hoping there's no signal from th RTC chip  ;D
After some minutes I finally managed to get into settings menu for setting an alarm.
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #96 on: February 21, 2007, 02:41:12 PM »
Quote from: Mmmm on February 21, 2007, 01:14:44 PM
Ah, yes...it's gone out of date already  ::)

Just those #ifs and#ifdefs by the look of it......

Should be ok now.... Try the same link for the updated version

Hi Mmmm,

I got the same compile errors as last night and on closer inspection it appears that I am missing the files user_action.c and user_action.h. Is it possible you forgot to include them in the patch?

EDIT:

I pinched the two files from an older version of the patch and it seems to work now. You could append the file below to your patch.

There are two minor clashes between our patches that were easily resolved. I have put a compiled build at the URL below. Please report any problems.

http://roolku.pwp.blueyonder.co.uk/rockbox_rep_rtc_r12213.zip





[attachment deleted by admin, too old]
« Last Edit: February 21, 2007, 03:11:02 PM by roolku »
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #97 on: February 21, 2007, 02:48:50 PM »
Quote from: x1jmp on February 21, 2007, 01:57:50 PM
Yesterday I did my first soldering ever (we don't do this at school >:().

After some hours of difficult soldering under the microscope (at first connected Vcc to SDA...) the chip worked perfectly.

This is really impressive. Congratulations. And under a microscope as well.

I'll add you to the "Hall of successful Modders" :)

Quote from: x1jmp on February 21, 2007, 01:57:50 PM
After some minutes I finally managed to get into settings menu for setting an alarm.

Once you got over the initial hurdle you should be fine. During normal operation the battery will never discharge enough to fail the backup supply.
Logged

Offline stripwax

  • Developer
  • Member
  • *
  • Posts: 84
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #98 on: February 21, 2007, 05:48:43 PM »
It should be possible to have the firmware autodetect the square wave too and automatically disable the alarm if the alarm has never actually ever been set before  (i.e. on the first reboot after installing the mod).  Has anyone looked into that or is it not really worth it?
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #99 on: February 21, 2007, 06:05:56 PM »
Quote from: stripwax on February 21, 2007, 05:48:43 PM
It should be possible to have the firmware autodetect the square wave too and automatically disable the alarm if the alarm has never actually ever been set before  (i.e. on the first reboot after installing the mod).  Has anyone looked into that or is it not really worth it?

I think it should be possible. In fact I expected it to work like that, considering it can disable a 'real' alarm. However since it is only a minor inconvenience after the initial installation I haven't looked into it again, especially as it would require me to power down the chip in order to test it.

EDIT:

I just had a look at the code and realised that I had in fact optimised away the functionality that was there originally in an attempt to save an I2C write. There is a new patch with it restored on the tracker - untested, but should work. Thank you stripwax for making me check again and apologies for the unnecessary grief that has caused.
« Last Edit: February 21, 2007, 06:52:15 PM by roolku »
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #100 on: February 22, 2007, 05:51:14 AM »
Quote from: roolku on February 21, 2007, 02:41:12 PM
Quote from: Mmmm on February 21, 2007, 01:14:44 PM
Ah, yes...it's gone out of date already  ::)

Just those #ifs and#ifdefs by the look of it......

Should be ok now.... Try the same link for the updated version

Hi Mmmm,

I got the same compile errors as last night and on closer inspection it appears that I am missing the files user_action.c and user_action.h. Is it possible you forgot to include them in the patch?

EDIT:

I pinched the two files from an older version of the patch and it seems to work now. You could append the file below to your patch.

There are two minor clashes between our patches that were easily resolved. I have put a compiled build at the URL below. Please report any problems.

http://roolku.pwp.blueyonder.co.uk/rockbox_rep_rtc_r12213.zip
oops..yeah that'll be it! :D
I'm always forgetting that one!
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #101 on: February 28, 2007, 09:33:49 AM »
Good news: driver with runtime detection is now in svn! No more patching rquired.

Sorry Mmmm - that means you need to adapt the REP again. Should be a simple fix though.

EDIT:

I have changed the wiki page a bit to clarify the two options and add the fact that the code is now in SVN. Please feel free to correct or improve it if you think something is not clear.
« Last Edit: February 28, 2007, 10:58:54 AM by roolku »
Logged

Offline mlind

  • Member
  • *
  • Posts: 179
  • Recording Pro
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #102 on: February 28, 2007, 04:11:32 PM »
Anybody outside the US who managed to get your hands on the D3231 chip?
Sweden?
Logged
iRiver H120

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #103 on: February 28, 2007, 04:16:18 PM »
Quote from: roolku on February 28, 2007, 09:33:49 AM
Good news: driver with runtime detection is now in svn! No more patching rquired.

Sorry Mmmm - that means you need to adapt the REP again. Should be a simple fix though.


Consider it fixed! :)
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline x1jmp

  • Member
  • *
  • Posts: 7
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #104 on: March 01, 2007, 02:30:07 PM »
Quote from: mlind on February 28, 2007, 04:11:32 PM
Anybody outside the US who managed to get your hands on the D3231 chip?
Sweden?
Not the D3231, but I received some DS1339c within a few days without any problems.
The Chips were shipped from Belgium.
Logged

  • Print
Pages: 1 ... 5 6 [7] 8 9 10
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  iriver h1x0 - RTC (real time clock) mod
 

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

Page created in 0.108 seconds with 15 queries.