locked
WinCE5.0 system time delay while updating minutes from rtc. RRS feed

  • Question

  • In WinCE5.0 , PXA270 processor board , the minutes of system time getting updated after some seconds delay RTC, how can i rectify this issue? how can i make it change simultaneously???

     

    PLZ reply it ASAP!!! PLZ do the needful , thanx in advance.

     

    thawheed.


    thawheed
    Tuesday, August 23, 2011 5:24 AM

All replies

  • I answered to your previous thread http://social.msdn.microsoft.com/Forums/en-US/winembplatdev/thread/5d49608f-66cc-49b5-9cf5-2af3722ad87b.

    The taskbar is in charge of updating the clock at the lower right of the screen (because it's part of the taskbar) and it's updating every 30'' - which is reasonable since the clock does not display seconds but only hour and minutes.

    If you want to change the update period you have to clone the explorer shell (the taskbar component actually) and change the

    #define ADMIN_TIMER_PERIOD   30*1000
    
    

    to a smaller value.

    As a starting point about cloning see Bruce Eitman's blog: http://geekswithblogs.net/BruceEitman/archive/2008/07/02/platform-builder-clone-public-code.aspx

    About cloning the explorer shell there's a previous thread here: http://social.msdn.microsoft.com/Forums/en-US/winembplatdev/thread/5df40987-9bca-4b18-9595-0901e2ea392a/

     

     


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    Tuesday, August 23, 2011 6:10 AM
  • hi luca ,

             after made modification in taskbar.cpp, we need to give sysgen?? or Build sysgen?


    thawheed
    Tuesday, August 23, 2011 6:26 AM
  • *Do not modify the public code* in  %_WINCEROOT%\PUBLIC\SHELL\OAK\HPC\EXPLORER\TASKBAR\taskbar.cpp , clone it then modify it.

    In your BSP SRC\APP create a folder named EXPLORER with this structure (folder are uppercase):

    EXE

    TASKBAR

    dirs

    The EXE folder must include a standard makefile and a source file with the following content:

    TARGETNAME=explorer
    
    TARGETTYPE=PROGRAM
    RELEASETYPE=PLATFORM
    SYNCHRONIZE_DRAIN=1
    
    EXEENTRY=WinMainCRTStartup
    
    SOURCELIBS=
    
    TARGETLIBS=\
      $(_SYSGENSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib \
      $(_PUBLICROOT)\shell\oak\lib\$(_CPUINDPATH)\explorer.lib \
      $(_PUBLICROOT)\shell\oak\lib\$(_CPUINDPATH)\explorer.res \
      $(_PUBLICROOT)\shell\oak\lib\$(_CPUINDPATH)\explorer_ie.lib \
      $(_SYSGENSDKROOT)\lib\$(_CPUINDPATH)\uuid.lib \
      $(_SYSGENSDKROOT)\lib\$(_CPUINDPATH)\ole32.lib \
      $(_SYSGENSDKROOT)\lib\$(_CPUINDPATH)\oleaut32.lib \
      $(_SYSGENSDKROOT)\lib\$(_CPUINDPATH)\commctrl.lib \
      $(_SYSGENSDKROOT)\lib\$(_CPUINDPATH)\ceshell.lib \
      $(_SYSGENOAKROOT)\lib\$(_CPUINDPATH)\shcore.lib \
      $(_PUBLICROOT)\shell\oak\lib\$(_CPUINDPATH)\aygutils.lib \
      $(_PUBLICROOT)\shell\oak\lib\$(_CPUINDPATH)\favorites.lib \
      $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\taskbar.lib \
      $(_SYSGENOAKROOT)\lib\$(_CPUINDPATH)\ieceext.lib \
      $(_PUBLICROOT)\shell\oak\lib\$(_CPUINDPATH)\shellaygfuncs.lib \
      $(_PUBLICROOT)\shell\oak\lib\$(_CPUINDPATH)\shellpslayg.lib
    
    SOURCES=

    The TASKBAR folder must include all the files from %_WINCEROOT%\PUBLIC\SHELL\OAK\HPC\EXPLORER\TASKBAR. Change the sources file with the following:

    TARGETNAME=taskbar
    TARGETTYPE=LIBRARY
    RELEASETYPE=PLATFORM
    WINCEOEM=1
    
    INCLUDES=$(INCLUDES); \
    	$(_WINCEROOT)\PUBLIC\SHELL\OAK\HPC\EXPLORER\INC;	\
    	$(_WINCEROOT)\PUBLIC\SHELL\OAK\HPC\INC;\
    	$(_WINCEROOT)\PUBLIC\SHELL\OAK\INC;	\
    	$(_WINCEROOT)\PUBLIC\SHELLSDK\SDK\INC; \
    	$(_WINCEROOT)\PUBLIC\IE\SDK\INC
    	
    
    
    SOURCES= \
     fsmenu.cpp \
     idlist.cpp \
     inputlang.cpp \
     sip2.cpp \
     stmenu.cpp \
     taskbar.cpp \
     tbdrop.cpp \
     taskmandlg.cpp \
     rundlg.cpp \
     extrasmenu.cpp \
     taskbaritem.cpp \
     taskbarbubble.cpp \
     taskbarnotification.cpp \
     taskbarappbutton.cpp \
     taskbarhelpers.cpp \
     power.cpp \

    The dirs file content is:

    dirs=taskbar exe


    From PB right click the EXPLORER folder and select build: you should see a brand new explorer.exe file in your %_FLATRELEASEDIR%.

    Once you're sure that you can rebuild the standard shell, modify the BSP taskbar code as you need, rebuild an simply run a makeimg.

    As the final step add the EXPLORER folder to the directories listed in the upper level dirs file so it will build with the rest of the BSP code


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    Tuesday, August 23, 2011 7:21 AM
  • hi luca,

             Thanx for ur concern, after i changed #define ADMIN_TIMER_PERIOD , the system time getting updated without any delay.

     

    JST


    thawheed
    Tuesday, August 23, 2011 9:35 AM