Support and General Use > Recording

Automated recording times possible with H320?

<< < (8/12) > >>

pixelma:
I understood the following statement...


--- Quote from: Mmmm on January 04, 2007, 09:45:08 AM ---The patch should work fine on any of the recording capable targets!
--- End quote ---

...as "it doesn't rely on the RTC but on the user timer" - so it should be independent from the RTC. Maybe I'm wrong here but otherwise this patch wouldn't work fine on (stock) H1x0s and OndioFMs (which would be of interest to me :) ).

Mmmm:
Yes, the timer doesnt use the RTC at all. It has it's own tick task that should decrease the count by 1 every HZ ticks (ie every second). I haven't had time to look at it yet though to see why it is losing time as I've just started a new job and everything is a bit of a whirlwind about me! :)
I'll get around to it when things calm down a bit though..

cbr12:
I may have narrowed down the problem a bit with the countdown timer. I checked the file names which are time stamped to see exactly how much of delay there was between days. With the record repeat set for 1 day and a split time of 4 hours I found that the recording started exactly 12 minutes later on the next day. The recordings were exactly 4 hours, therefore the 12 minutes were lost while counting down from 20 hours. Even though I hate math, I converted everything to seconds and tried figure it out from there. 20 hours = 72,000 seconds and 12 minutes = 720 seconds. If you divide 72,000/720 you get exactly 100. Im not sure how the timer was coded, but it seems that it is 1 second off for every 100 seconds.  

I found a temporary solution to work around this, you just have to change your record repeat time to adjust for the slow timer. For example, in this case instead of setting the record repeat to 1 day you could just change it to 23 hours and 48 minutes. Then it would repeat the recording every day at the same time. I hope this helps someone, but for those who dont like to do math it would be great to see the timer fixed if its not too difficult.

Mmmm:
I've made an updated patchwhich may fix the above problem.... (it seems exact on a 2 minute timer anyway) Obviously a test with a longer timer will tell us if it has made any difference: the patch is on the tracker and here's the H1xx binary:

rockbox.iriver.H1xx

cbr12:
Thanks, Ill give the new patch a try. Do you have a binary for the H300 too? I could test that out as well.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version