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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Recording
| | |-+  Countdown timer H320 build?
« previous next »
  • Print
Pages: [1]

Author Topic: Countdown timer H320 build?  (Read 3026 times)

Offline myotis2004

  • Member
  • *
  • Posts: 5
Countdown timer H320 build?
« on: April 18, 2009, 05:33:19 PM »
Hi, I'm doing wildlife research where my recorder must be left out in the field and must start recording at a specific time and stop recording at a specific time every day. I think the countdown timer for recording does this and I was able to apply this patch to Rockbox 2 years ago but now I am unable to do so. I guess too many things have changed since then but I really don't know anything about programming. I have an iRiver H320. I was wondering if someone would be able to help me out and send me a H320 Rockbox build that includes this patch. I would really appreciate it. It is very important that I be able to do this with my iRivers.

Thanks in advance
Logged

Offline froggyman

  • Member
  • *
  • Posts: 214
Re: Countdown timer H320 build?
« Reply #1 on: April 18, 2009, 05:50:44 PM »
Just as a heads up, I doubt someone will send you an actual build, but more or less give you help on what to do to fix it.

What kind of errors are you recieiving if you try to apply it?
Logged
iPod Video 5.5G 30GB - Now Dead :(
Sansa Fuzev2 4GB

"To prevent this day from getting worse, I'll just read ERROR as GOOD THING"

Offline myotis2004

  • Member
  • *
  • Posts: 5
Re: Countdown timer H320 build?
« Reply #2 on: April 18, 2009, 06:04:08 PM »
I tried to patch the currently available rockbox source code with cntdntimer9[1].7.1.patch. Then error I get from Cygwin is:

can't find file to patch at input line 5
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
---------------------------------
:Index: apps/recorder/icons.h
:======================================
:--- apps/recorder/icons.h        <revision 13131>
:+++ apps/recorder/icons.h     <working copy>
----------------------------------
File to patch:


I reproduced this as well as I could.  I'm not sure what the -p and --strip do. Can someone tell me what this means?
« Last Edit: April 19, 2009, 08:16:14 PM by myotis2004 »
Logged

Offline froggyman

  • Member
  • *
  • Posts: 214
Re: Countdown timer H320 build?
« Reply #3 on: April 26, 2009, 09:57:57 PM »
the patch just seems to be out of sync, I wish i could help but i am just learning C and dont have much programming expierience.

if you arent, try using the command patch --binary -p0 < patchfilename and be sure that the patch is in the same directory as the sources.

Other than that i wouldnt be able to help you any more, sorry.
Logged
iPod Video 5.5G 30GB - Now Dead :(
Sansa Fuzev2 4GB

"To prevent this day from getting worse, I'll just read ERROR as GOOD THING"

Offline myotis2004

  • Member
  • *
  • Posts: 5
Re: Countdown timer H320 build?
« Reply #4 on: April 27, 2009, 12:09:52 PM »
Thanks for the suggestion. It was a good one, but I end up with a majority of unsuccessful patches. Maybe someone with more programming skills might be able to figure it our but I'm really not sure cuz this is a pretty tough problem. This patch would be great in the official build.
Logged

Offline petur

  • Developer
  • Member
  • *
  • Posts: 769
  • wtb: time
Re: Countdown timer H320 build?
« Reply #5 on: April 28, 2009, 03:36:31 AM »
the reason the patch isn't in svn is because it is done badly (afaik). It uses the time the mainloop runs around to assume time intervals. While this is ok for shorter intervals, it is not accurate for longer times like these. It should (where possible) use the RTC.
Logged

Offline myotis2004

  • Member
  • *
  • Posts: 5
Re: Countdown timer H320 build?
« Reply #6 on: April 28, 2009, 09:06:59 AM »
Ok. Do you know by how much would it become out of sync after 3-4 days? This is how long I'd like them to run before resetting them.
Logged

Offline petur

  • Developer
  • Member
  • *
  • Posts: 769
  • wtb: time
Re: Countdown timer H320 build?
« Reply #7 on: April 28, 2009, 12:08:36 PM »
no idea...
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Recording
| | |-+  Countdown timer H320 build?
 

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

Page created in 0.072 seconds with 14 queries.