Skip to Main Content

Embedded Technologies

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Watchdog on Windows emulator working?

Tom McGinn-OracleDec 11 2013 — edited Dec 12 2013

Two questions:

1) Where can I see the status of bugs filed (ie: MERT-xxxx)?

2) Is the Watchdog functional for the Windows emulator on Java ME Embedded 8 EA?

This code simply exits immediately, rather than waiting the 60 seconds.  Subsequent starts indicate the

Watchdog caused the reboot.

public class WatchdogIMlet extends MIDlet {

    private WatchdogTimer watchDog;

    private final String watchDogName = "WDG";

    private final int watchDogID = 30;

    private final long watchDogTimeout = 60000; // 1 minute

    @Override

    public void startApp() {

        // Open the watch dog device

        try {

            watchDog = PeripheralManager.open(watchDogName, WatchdogTimer.class, (String[]) null);

            if (watchDog.causedLastReboot()) {

                System.out.println("Reboot was the result a watch dog timeout!");

            }

            System.out.println("Starting WatchDog Timer....");

            watchDog.start(watchDogTimeout);

        } catch (IOException ex) {

            System.out.println("IOException creating/starting watchDog: " + ex.getMessage());

        }

        new Timer().schedule(task, 30000);

    }

....

This post has been answered by Sergey.N-Oracle on Dec 12 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 9 2014
Added on Dec 11 2013
2 comments
1,486 views