You Are Here:

Community: Developer Discussion Boards

#1 Old Reboot device - 2007-05-24, 11:18

Join Date: May 2007
Posts: 56
manugarrote
Offline
Regular Contributor
Are there any command with can I rebooth my device?

I've been looking for it on Internet and I haven't found any.

Lot of thanks.
Last edited by manugarrote : 2007-05-24 at 12:34.
Reply With Quote

#2 Old Re: Reboot device - 2007-05-24, 12:58

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
hello ,

You could restart your phone with miso module. Look at the documentation for the right statement

Happy pythoning

Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#3 Old Re: Reboot device - 2007-05-24, 13:16

Join Date: May 2007
Posts: 56
manugarrote
Offline
Regular Contributor
I write
Quote:
import miso
miso.restart_phone()
But nothing happends. I've tried this in my 6630 (2nd edition Fp2) and in the emulator. Don´t work??

Thanks
Reply With Quote

#4 Old Re: Reboot device - 2007-05-24, 14:58

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by manugarrote
I write

But nothing happends. I've tried this in my 6630 (2nd edition Fp2) and in the emulator. Don´t work??

Thanks
code is OK but restart_phone function use unsupported API so it's possible that it doesn't work with 6630
It works with 6660 although

Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#5 Old Re: Reboot device - 2007-05-24, 15:08

Join Date: May 2007
Posts: 56
manugarrote
Offline
Regular Contributor
I think that phone should restart if I kill "phone" serve, do oyu think the same? How can I kill a service or a process? Thanks
Reply With Quote

#6 Old Re: Reboot device - 2007-05-24, 15:17

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by manugarrote
I think that phone should restart if I kill "phone" serve, do oyu think the same? How can I kill a service or a process? Thanks
You could kill the phone service with an app like Taskspy but not with PyS60 (not yet !)

Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#7 Old Re: Reboot device - 2007-05-24, 17:22

Join Date: Sep 2005
Posts: 314
Location: Finland, Helsinki
aaaaapo
Offline
Regular Contributor
Quote:
Originally Posted by manugarrote
Are there any command with can I rebooth my device?
This works for me:

Code:
def reboot():
    """Reboots the phone by calling Starter.exe"""
    if appuifw.query(u"Reboot device?", 'query'):
        e32.start_exe(u'Z:\\System\\Programs\\Starter.exe', '', 0)
Try the last line in your Python scriptshell.

Buggy Nokia N70 with firmware 5.x seems to hang when calling this. :-)
Reply With Quote

#8 Old Re: Reboot device - 2007-05-25, 12:34

Join Date: May 2007
Posts: 56
manugarrote
Offline
Regular Contributor
THANK YOU!!!!
Quote:
e32.start_exe(u'Z:\\System\\Programs\\Starter.exe', '')
It works very well.
Reply With Quote

#9 Old Re: Reboot device - 2007-05-26, 16:48

Join Date: Jan 2007
Posts: 2
porfyras
Offline
Registered User
Quote:
Originally Posted by aaaaapo
Code:
e32.start_exe(u'Z:\\System\\Programs\\Starter.exe', '', 0)
Thanks a lot aaaaapo!!!
And here's the .sis installation package from me, with a nice icon
Code:
http://www.rapiduploader.com/866687
Last edited by porfyras : 2007-05-29 at 17:29.
Reply With Quote

#10 Old Re: Reboot device - 2008-07-26, 04:19

Join Date: Feb 2008
Posts: 8
gunnrosebutpeace
Offline
Registered User
Quote:
Originally Posted by aaaaapo View Post
This works for me:

Code:
def reboot():
    """Reboots the phone by calling Starter.exe"""
    if appuifw.query(u"Reboot device?", 'query'):
        e32.start_exe(u'Z:\\System\\Programs\\Starter.exe', '', 0)
Try the last line in your Python scriptshell.

Buggy Nokia N70 with firmware 5.x seems to hang when calling this. :-)
On S60 3rd Ed, my N6120c, the starter.exe is located at z:\sys\bin. This folder is inaccessible for Python App. Anyone know another way.
I use APP TRK and can access to z:\sys\bin, but when phone restart, crack needs to apply again to get access to that folder, thus, this is inconvenient
Reply With Quote

#11 Old Re: Reboot device - 2008-07-26, 06:03

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
hi gunnrosebutpeace
you can look at this thread this can help you a bit.


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Microchip Embeded Bluetoth device. megaady Bluetooth Technology 0 2006-01-23 12:15
Installing Ethernet Plugin on a second device chenfi Symbian Tools & SDKs 0 2005-12-19 12:40
Bluetooth Security: What exactly is an untrusted device? rahulmcs Bluetooth Technology 1 2005-12-02 07:26
Problem of POPUP String Item on Nokia S60 Device lkihk Mobile Java General 0 2005-08-30 12:12
Preventing voice from receiver'd device to be heard on caller's device. rave_symbian General Symbian C++ 1 2004-09-15 14:48

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia