question

PrasannaMayekar-4673 avatar image
0 Votes"
PrasannaMayekar-4673 asked Sean-Liming commented

Event Viewer

Hi,
In have a unique problem in Windows Embedded 7 standard. The time goes back or forward by 1 hrs randomly.
The system is not connected to the internet. It runs a dedicated application, which controls a lab instrument's hardware.
The Event Viewer shows the time change, some times the Kernel General IS 1 shows the time changed in few micro seconds.

The Event viewer log is it stored sequential ?

If yes the in some service like the "Event Log" the time does not match e.g.
Some times its offset by some minutes.
The below table I have copied from the Event Viewer without sorting for time

Information 14-12-2020 10:51:51 Kernel-General 13 None
Information 14-12-2020 10:51:48 Service Control Manager 7036 None
Information 14-12-2020 10:47:24 EventLog 6013 None
Information 14-12-2020 10:47:24 EventLog 6005 None
Information 14-12-2020 10:47:24 EventLog 6009 None
Information 14-12-2020 10:51:48 Kernel-Power 109 (103)
Information 14-12-2020 10:51:45 Service Control Manager 7036 None

As you can see from the table the Event "EventLog" is 4 min offset.
At times the offset is in hours.

Why does this happen.




windows-embedded
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Is the image setup to use the CMOS clock as the time source?

0 Votes 0 ·

Hi, Sean,
The image is setup for the CMOS clock as I am not getting this problem in my other production units.
At the present its happening in 4 systems. So not able to figure out if the RTC has gone bad or what is causing the problem.
Randomly the time changes. I have checked the CMOS time and it matches with the system time.
Motherboard kept On for 12 hrs in BIOS menu Time change is not observed.
The CMOS battery voltage is also proper.
I would like to know how the Event Viewer log is written ??
multiple processes are writing to one event log, is it possible that one of the processes wrote it later hence the discrepancy in the time?
Information 14-12-2020 10:47:10 Kernel-General 1 None The system time has changed
NewTime 2020-12-14T05:17:10.5000000Z
OldTime 2020-12-14T06:17:10.5027231Z
change in time here is in micro seconds.
So I am not able to figure out if there is a RTC problem or OS ???

Regards
Prasanna

0 Votes 0 ·
DSPatrick avatar image
0 Votes"
DSPatrick answered PrasannaMayekar-4673 commented

Might double check the sort column. Look for the ⋁⋀ caret at the top of column, or also try Action\Properties\General\Restore Defaults

--please don't forget to Accept as answer if the reply is helpful--






· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HI Patrick

I would like to know how the Event Viewer log is written ??
multiple processes are writing to one event log, is it possible that one of the processes wrote it later hence the discrepancy in the time?

I dont want to sort the Time, but how did it happen or got logged in real time.

Information 14-12-2020 10:51:51 Kernel-General 13 None
Information 14-12-2020 10:51:48 Service Control Manager 7036 None
Information 14-12-2020 10:47:24 EventLog 6013 None
Information 14-12-2020 10:47:24 EventLog 6005 None
Information 14-12-2020 10:47:24 EventLog 6009 None
Information 14-12-2020 10:51:48 Kernel-Power 109 (103)
Information 14-12-2020 10:51:45 Service Control Manager 7036 None

0 Votes 0 ·
ShoebMohammed-0435 avatar image
0 Votes"
ShoebMohammed-0435 answered PrasannaMayekar-4673 commented

Hi Prasanna,
I am assuming write-filters are enabled on the system. Please try by configuring the system so that the CMOS clock is in UTC and not the local-time. I think that will resolve the issue. Please check and confirm if that worked.

In order to configure the system so that the CMOS clock is in UTC, first disable the write-filters, restart the system and then create the following registry key and set the DWORD value to 1:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal

Enable Write-Filters again
Restart the system
See if the issue is resolved?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HI,
I have around 300 units installed in India I am facing this problem in 4 machines where the time goes back.
UTC or local time it should increment not change randomly.

The is no application changing the time so I am not able to understand if it is hardware RTC probelem or software OS related.

Regards
Prasanna

0 Votes 0 ·
Sean-Liming avatar image
0 Votes"
Sean-Liming answered PrasannaMayekar-4673 commented

If the time is not effecting anything else in the system, this might be a cache or threading issue when the event is actually written to the log, which would make this an interesting non-issue.

I would look at the Windows Internals books for more information on even log operation.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Sean,
The system is based on Intel Atom board and Windows Embedded Standard 7. Its a Lab instrument where the single Application controls the instrument.
The Application controls multiple valves, motors, optical readings in the instrument so the problem we are facing is when the time changes. The sequence and the data acquired against time gets garbled up.

The system is not connected to the network so the time setting from web site is not a possibility.
I have checked the RTC battery its working fine in our LAB. We have kept the machine on without running the application, we did find the time change.
also scanned for anti virus but found none.
The time changing is quite random.

thanks
Regards
Prasanna

0 Votes 0 ·
PrasannaMayekar-4673 avatar image
0 Votes"
PrasannaMayekar-4673 answered Sean-Liming commented

Hi Sean,
I have now tried Windows 7 Pro for testing this Event Viewer issue.
I got the following in the Event Viewer.
I am attaching the File for your reference.

In this the log has skipped days in the sequence.
I am not able to understand is it RTC or its Event Viewer logging issue.57593-eventdata.pdf

thanks
Prasanna



eventdata.pdf (47.9 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Days! That is not right. I recommend contacting Microsoft support directly to get an answer.

0 Votes 0 ·