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




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] 2 3 ... 10

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

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
iriver h1x0 - RTC (real time clock) mod
« on: December 07, 2006, 11:41:38 AM »
I have added an RTC chip to my player and documented the process http://www.rockbox.org/twiki/bin/view/Main/RTCModH1x0 in case anyone is interested in doing the same.

Logged

Offline Genre9mp3

  • Artist
  • Member
  • *
  • Posts: 146
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #1 on: December 07, 2006, 11:47:15 AM »
I'm really impressed by this mod! I wasn't even aware that this could be possible!

Great job! Congratulations!
Logged

Offline Peter200lx

  • Member
  • *
  • Posts: 45
    • A site about another Great Device
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #2 on: December 07, 2006, 12:00:26 PM »
SWEET! This is something that I've wanted for a while now. Just a quick question, would this make recording time stamp the files with the correct time? If so, this could be very valuable.



ps. Having rockscrobbler have the time would be fun as well!
Logged
peter.olson [at] gmail {dot} com

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #3 on: December 07, 2006, 12:12:11 PM »
Quote from: Peter200lx on December 07, 2006, 12:00:26 PM

Just a quick question, would this make recording time stamp the files with the correct time?


Yes it does. Not only does rockbox use date and time, but also the FAT time stamps are set. :)

Quote

ps. Having rockscrobbler have the time would be fun as well!


I don't use last fm and haven't checked it, but if it is implemented correctly (i.e. uses the RTC_CONFIG define) than it should add the time to the log file like it does for the other targets with an RTC.
Logged

Offline Peter200lx

  • Member
  • *
  • Posts: 45
    • A site about another Great Device
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #4 on: December 08, 2006, 11:26:08 AM »
Just curious of the safety issues with this, would it hurt the device if I had the timer installed and was running with an unpatched version of Rockbox? Or would it just not have the clock functionality?

Logged
peter.olson [at] gmail {dot} com

Offline Davide-NYC

  • Member
  • *
  • Posts: 429
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #5 on: December 08, 2006, 11:52:01 AM »
OH MY GOD!  :o

I only dreamed that this was possible.  Only in my dreams could this be done.   :D
I will attempt this as soon as it has totally matured. This is truly amazing to me.

Thank you so much.
Logged
Currently: iRiver H132-RTC-CFMod

Offline matnik

  • Member
  • *
  • Posts: 10
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #6 on: December 08, 2006, 07:40:52 PM »
The mod looks mature enough to me :-) Kudos to roolku.

I went on Maxim's web site and I got confused about what part number to select.  I wondered what was the difference between DS1339C-2/DS1339C-3/DS1339C-33 and then I figured that "-2"/"-3"/"-33" was standing for the voltage supply required by the chip ... ::) As indicated by roolku's wiki, you need to get a 3.3V compatible chip and DS1339C-33 should fill the bill.
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #7 on: December 08, 2006, 10:11:59 PM »
I am glad you all like my little addition to the h120 rockbox. :)

I have now added the missing wake-up alarm function (optional - one additional connection) and will see if my h120 will wake me up tomorrow.  ;)

Wiki and patch tracker have been updated.

Quote
I will attempt this as soon as it has totally matured.


I'll keep testing and working on it, but I doubt the hardware bit will change. Both, my h120 and my h140, are now modded.

Quote
Just curious of the safety issues with this, would it hurt the device if I had the timer installed and was running with an unpatched version of Rockbox? Or would it just not have the clock functionality?


Without the optional wake-up alarm part, the hardware is completely dormant and has no impact. OF or unpatched rockbox run without problems (and without clock functionality).

With the alarm mod you will need to run a patched rockbox at least once after each power loss (i.e. battery dead).

Logged

Offline Peter200lx

  • Member
  • *
  • Posts: 45
    • A site about another Great Device
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #8 on: December 09, 2006, 12:47:46 AM »
 ;D Request for samples sent into the company! Hopefully by this time next week I can post how my attempt went. Thank you so much for doing the research into this very useful mod!
Logged
peter.olson [at] gmail {dot} com

Offline JdGordon

  • Global Moderator
  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #9 on: December 10, 2006, 07:32:47 PM »
Congrats, that hack looks awesome.
Now you need to nag the swedes to have it commited and put on the cvs build page (the 8mb ram hack for the archos models is there so you have a chance :)
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3360
  • creature
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #10 on: December 11, 2006, 03:09:53 AM »
wouldn't it be nice to have Rockbox autodetect this? That way it could get in the standard builds ... on h100 I believe there is no problem with code size, so adding a few bytes shouldn't hurt anyone.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #11 on: December 11, 2006, 06:49:58 AM »
Quote from: jdgordon on December 10, 2006, 07:32:47 PM

Congrats, that hack looks awesome.
Now you need to nag the swedes to have it commited and put on the cvs build page (the 8mb ram hack for the archos models is there so you have a chance :)


Yes, it would be good to have it in cvs, so I don't need to worry about the patch getting out of sync. I believe Linus is doing the mod (albeit with a different clock chip) so it is looking promising. :)

Quote from: bluebrother on December 11, 2006, 03:09:53 AM

wouldn't it be nice to have Rockbox autodetect this? That way it could get in the standard builds ... on h100 I believe there is no problem with code size, so adding a few bytes shouldn't hurt anyone.


Yes, it could be done like with the radio chip detection, but there are a few issues, e.g.
 
- while one could detect the presence of the chip, the alarm mod can not be detected
- people might want to use different rtc chips requiring different drivers?
- some other compile-time options depend on RTC_CONFIG (i.e. filename generation for recording) which would need to be changed to run-time detection as well

If only a few people are using it I don't think it is worth the effort. Let's see how many people will do the mod.
« Last Edit: December 11, 2006, 06:52:52 AM by roolku »
Logged

Offline IpaqMan

  • Member
  • *
  • Posts: 13
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #12 on: December 13, 2006, 01:56:40 PM »
I just received a couple of the RTC chips and hope to do the mod later this week.  I plan to skip the alarm function.  I would like to see more information about the battery voltage issue with VCC on the chip.

BTW, this chip is very small.  This is the first surface mount chip project for me.  Fortunately, I have a very small soldering iron.  I will need to scavenge for some very small gauge wires.
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #13 on: December 13, 2006, 03:49:50 PM »
Quote from: IpaqMan on December 13, 2006, 01:56:40 PM

I just received a couple of the RTC chips and hope to do the mod later this week.


Great. You must be in the US - it took nearly a month to arrive in the UK.

Quote

 I plan to skip the alarm function.


Fair enough if you don't need it. I just had to try it. :)

Quote

I would like to see more information about the battery voltage issue with VCC on the chip.


No problems with VCC - it's rated at 2.97 to 5.5V. However for some reason Vbackup max is: 3.7V and a fully charged battery will be just above 4V (say 4.1V). To be on the safe side you could use a resistor in series between the battery and the Vbackup, maybe

(4.1-3.7)V /400nA = 1MOhm or so.

But personally I don't think this is a problem. I have done my h140 and my h120 and both work perfectly.

Quote

BTW, this chip is very small.  This is the first surface mount chip project for me.  


It was my first SMD IC as well. It is easier than it looks. Just make sure you cover the wire tip nicely with solder, fix the position of the wire precisely above the pin and give it a dip with the iron to make the bonding.

Good luck.
Logged

Offline IpaqMan

  • Member
  • *
  • Posts: 13
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #14 on: December 13, 2006, 05:17:03 PM »
Thanks for the soldering tips and yes, I am in the USA.

I was wondering what value resistor would work.  I figured a small silicon diode in series would give me a 0.6 volt drop from the max of 4.3 for the battery.

For me, the RTC was the last missing feature.  Date-time stamped recordings are important.  

**EDIT**

I just read in the data sheet that a diode in series with the VCC backup should NOT be used or improper operation will result.    The data sheet also stated that the supply voltage MUST be held between 1.3 and 3.7 volts, so I will choose either the resistor or a small lithium button cell.
« Last Edit: December 13, 2006, 05:37:22 PM by IpaqMan »
Logged

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

  • SMF 2.0.6 | SMF © 2013, Simple Machines
  • XHTML
  • RSS
  • WAP2

Page created in 0.107 seconds with 73 queries.