I made a little C program that makes a WT41N0 with WEC 7 doing a reset.
It is done by calling
KernelIoControl() with IOCTL_HAL_REBOOT from WinAPI.
The warm boot works fine.
To initiate a cold boot, SetCleanRebootFlag() is called right before KernelIoControl(), what does not work propper.
The WT41N0 does a warm boot on any case. It seems as if the call of SetCleanReboot Flag() is ignored.
How to initiate a cold boot?
/Ulli
How to initiate a cold start on WT41N0 by software |
2 Replies
Try this:
int IOCTL_HAL_REBOOT = 0x01014668;
SetCleanRebootFlag();
KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0,NULL);
Thanks!
It works ☺
Hans-Ulrich Stocker
WITRON Logistik + Informatik GmbH
Neustädter Straße 21
D-92711 Parkstein
Tel.: +49 - (0)9602 600-723
Fax: +49 - (0)9602 600-211
e-Mail: HStocker@witron.de
Geschäftsführer: Helmut Prieschenk Handelsregister: Weiden, HRB 153
Von: Daniel Silva
Gesendet: Montag, 18. August 2014 20:54
An: Stocker, Hans
Betreff: Re: - How to initiate a cold start on WT41N0 by software
Motorola Solutions Launchpadhttps://developer.motorolasolutions.com/>
How to initiate a cold start on WT41N0 by software
reply from Daniel Silvahttps://developer.motorolasolutions.com/people/Dan.Silva%40motorolasolut... in Mobile Computing - View the full discussionhttps://developer.motorolasolutions.com/message/81206?et=watches.email.t...