Auto On/Off For windows CE5.0   

Postby Fatboyfun » Thu Apr 26, 2012 9:24 pm

Sorry for the delay, I've been busy at work a lot recently...

Image

Here you go... 4121

As above application but with 30 second dialog...

Remove power and either wait 30 seconds or tap OK to shutdown...
Or tap Cancel to continue on battery...
Or restore power to close dialog box...

Run Auto Power Off to start/stop process!

To personalise the message or change the timer open Select.mscr and edit the bold text

ChoiceDefault ("Device will shutdown soon...", "External power disconnected, Device will shutdown soon...", 1, 30, "Tap OK to shutdown now or Cancel to continue...")

The text may not wrap on to the next line so keep it short!
Currently sleeping...
Fatboyfun offline


User avatar Ex Moderator



 
Joined: Mon May 17, 2010 5:34 pm
Posts: 5782
Has thanked: 2 times
Been thanked: 407 times

Postby raimax » Sat Apr 28, 2012 8:01 am

wow, excellent, thank you very much for it. I changed messages to my language, and is there way to make bigger button [OK] [Cancel]?
raimax offline


Junior Member



 
Joined: Wed Apr 25, 2012 10:23 am
Posts: 3
Has thanked: 0 time
Been thanked: 0 time

Postby Fatboyfun » Sat Apr 28, 2012 10:18 am

No the buttons are a fixed size and can't be changed.
Fatboyfun offline


User avatar Ex Moderator



 
Joined: Mon May 17, 2010 5:34 pm
Posts: 5782
Has thanked: 2 times
Been thanked: 407 times

Postby gdc2john » Tue Apr 09, 2013 5:01 am

Hi Fatboyfun, I am using this script on my Navman MY50 with Igo Primo, it works great, but when I turn the power back on again after the script has shut the Navman down
it alaways come up with an error Autorun.exe not found, I hve looked through the scripts attached to the Auto Off Exe you wrote but cant find any reference to autorun.exe,
can you throw any light on this for me? Best thanks GDC
gdc2john offline


Junior Member



 
Joined: Mon Oct 03, 2011 6:59 pm
Posts: 9
Has thanked: 1 time
Been thanked: 0 time

Postby Fatboyfun » Tue Apr 09, 2013 6:54 am

Does this happen if you shut the device down manually?
Fatboyfun offline


User avatar Ex Moderator



 
Joined: Mon May 17, 2010 5:34 pm
Posts: 5782
Has thanked: 2 times
Been thanked: 407 times

Postby gdc2john » Tue Apr 09, 2013 7:31 am

No I cant get it to do it if I use the switch to shut down.
gdc2john offline


Junior Member



 
Joined: Mon Oct 03, 2011 6:59 pm
Posts: 9
Has thanked: 1 time
Been thanked: 0 time

Postby gdc2john » Tue Apr 09, 2013 8:51 am

I have modified the power switch so the unit powers back on automatically when power is applied to the usb plug. for your info
gdc2john offline


Junior Member



 
Joined: Mon Oct 03, 2011 6:59 pm
Posts: 9
Has thanked: 1 time
Been thanked: 0 time

Postby Fatboyfun » Tue Apr 09, 2013 9:18 am

If this is the three position power switch, (on, off, reset) these devices don't like being powered off with mortscript.

Mine just turns back on again after a few seconds.

Might be worth placing an Autorun.exe in the root of the device, possibly in a 2577 folder, use an exefile that does nothing, like the little daemon that comes with mortscript with a script that just has "Exit" in it.

Might be enough to suppress the error.
Fatboyfun offline


User avatar Ex Moderator



 
Joined: Mon May 17, 2010 5:34 pm
Posts: 5782
Has thanked: 2 times
Been thanked: 407 times

Postby gdc2john » Tue Apr 09, 2013 7:28 pm

I have put a copy of Autorun.exe from mortscript in all folders on the navman, as well as creating a 2577 folder with it in, no change.
I s there anyway of finding what program is calling for autorun in the navman perhaps?:think: Thanks for your help so far.
gdc2john offline


Junior Member



 
Joined: Mon Oct 03, 2011 6:59 pm
Posts: 9
Has thanked: 1 time
Been thanked: 0 time

Postby Fatboyfun » Tue Apr 09, 2013 7:53 pm

Explain how you unlocked the device...

It might not be possible to find out what process is calling Autorun.exe, It could be something to do with the unlock, ie, a rogue mortscript RunOnPowerOn entry, Or it could be a combination of AppStartupSec.exe and not shutting down gracefully.
Currently sleeping...
Fatboyfun offline


User avatar Ex Moderator



 
Joined: Mon May 17, 2010 5:34 pm
Posts: 5782
Has thanked: 2 times
Been thanked: 407 times

Postby gdc2john » Tue Apr 09, 2013 9:20 pm

I thought I replied to this but it seemed to disappear, I used Mio Moov unlock for unlocking the device. Thanks
gdc2john offline


Junior Member



 
Joined: Mon Oct 03, 2011 6:59 pm
Posts: 9
Has thanked: 1 time
Been thanked: 0 time

Postby Fatboyfun » Tue Apr 09, 2013 9:31 pm

It fell foul of the anti-spam plugin, I've seen it so don't worry about it.

It's likely to be an issue with appstartupsec.exe, there is a little app that powers off the device if the switch no longer works after unlocking, I'll see if it's possible to use it manually...
Fatboyfun offline


User avatar Ex Moderator



 
Joined: Mon May 17, 2010 5:34 pm
Posts: 5782
Has thanked: 2 times
Been thanked: 407 times

Postby gdc2john » Tue Apr 09, 2013 10:45 pm

The mod I did to the switch was place an NPN BC548 transistor with its base connected thru a resister to the USB +5v, the collector to the switch on side and the emmitter to Ground,
this effectively when the switch is in the off pos turns the unit on when usb power is applied, this seems to work fine,
with no usb connected the unit switch performs as per normal, ie you have to slide it to on to get it to work. FYI
gdc2john offline


Junior Member



 
Joined: Mon Oct 03, 2011 6:59 pm
Posts: 9
Has thanked: 1 time
Been thanked: 0 time

Postby Fatboyfun » Wed Apr 10, 2013 8:14 pm

The device is going from off -> on -> off, The actual switch position marked 'off' is actually suspend/hibernate, the 'reset' position is completely off, these devices can be a bit funny about powering off when on and vice-versa.

I'd try and wire the device so it goes from suspend (off) to on, rather than off (reset) to on, so the switch is in the middle for automatic operation.
Currently sleeping...
Fatboyfun offline


User avatar Ex Moderator



 
Joined: Mon May 17, 2010 5:34 pm
Posts: 5782
Has thanked: 2 times
Been thanked: 407 times

Postby gdc2john » Wed Apr 10, 2013 9:04 pm

Sorry I think you got my description a bit wrong, the way you say is the way it now works. My bad describing, i have found a neat unlock for the MY series called "navman-my30-unlock"
It just sits on the external SD card and doesnt require installing, it has a customisable menu that looks like the Navman one, and it seems to have cured the problem, I dont need to run your auto off on program anymore, its worth a look. Thanks for all your assistance in this, it been a pleasure dealing with you.:) GDC
gdc2john offline


Junior Member



 
Joined: Mon Oct 03, 2011 6:59 pm
Posts: 9
Has thanked: 1 time
Been thanked: 0 time

PreviousNext

Return to General Discussion

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest