Largeintervaltimer

Last post 03-19-2008 16:29 by SaucerBoy. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 03-03-2008 14:35

    Largeintervaltimer

     I'm having a strange problem with the large interval timer in opennetcf.windowsce. I have an array of these timers that initiate a variety of time based functions in my application. If I only have 1 timer in the array it seems to be OK but when more than one timers are added and enabled it interferes with the system clock causing it to run fast. I have an hourly event that runs about 11 minutes early every time! It is a continuous error - I can see it gaining minute by minute, so it doesn't get corrupted when the time interval elapses.

     If anyone has any ideas I'd be happy to hear about it.

     Thanks in advance

    Richard Sinek
     

  • 03-03-2008 14:50 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 1,890

    Re: Largeintervaltimer

    Wow - that's freaky behavior.  All the LIT does is register for a system notification with a named event and then spawns a worker thread that block on that event, so it's not doing anything with the clock specifically.  We didn't test with multiple LITs running at once and you might want to check that the names being created are unique so you don't get misfired (though IIRC we use a GUID for the name, so you should be ok).  What specific platform are you targeting?  Is it a real device (not an emulator)?  If so, all I can recommend offhand is that you try a simple test with native code that does the same thing and see if the clock issue persists.  If it does then your OEM has an implementation error in the OAL.

    Filed under:
  • 03-03-2008 16:31 In reply to

    Re: Largeintervaltimer

     I'm targeting CE 6.0 R2 on an x86 compatible board from ICOP (not the Ebox) and running on the hardware not the emulator. I looked at the SDF source and couldn't see anything that would shed light on the matter. I'm going to test more tomorrow enabling different members of the array to see if I can determine if it is related to the number of timers active or just to specific timers.

  • 03-04-2008 15:55 In reply to

    Re: Largeintervaltimer

     Further investigation reveals that it is not the array of timers that is causing the problem. Instead, each time a time interval elapses the clock skips ahead a second or 2 - I can see it by watching the system clock! Since most of the timers have long intervals the effect was not noticeable except on the timer that runs every minute or so........

     

    Richard 

  • 03-04-2008 19:07 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 1,890

    Re: Largeintervaltimer

     Smells even more like a bug in the OAL.

  • 03-19-2008 11:23 In reply to

    Re: Largeintervaltimer

    I'm seeing this same behavior on a Symbol MC70. Does anyone have any further ideas about how to deal with this? 

    Filed under:
  • 03-19-2008 16:29 In reply to

    Re: Largeintervaltimer

    More experimentation indicates this seems to happen when I listen to the PowerManagement.PowerDown, PowerUp, etc. events as well.

     I'm new to OpenNETCF so it's possible I'm doing something wrong. If anyone has any suggestions that would be great. Thanks.
     

Page 1 of 1 (7 items)