×

Discussion Board

Results 1 to 11 of 11

Thread: Reboot device

  1. #1
    Regular Contributor
    Join Date
    May 2007
    Posts
    56

    Reboot device

    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 11:34.

  2. #2
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Reboot device

    hello ,

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

    Happy pythoning

    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  3. #3
    Regular Contributor
    Join Date
    May 2007
    Posts
    56

    Re: Reboot device

    I write
    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

  4. #4
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Reboot device

    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 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  5. #5
    Regular Contributor
    Join Date
    May 2007
    Posts
    56

    Re: Reboot device

    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

  6. #6
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Reboot device

    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 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  7. #7
    Regular Contributor
    Join Date
    Sep 2005
    Location
    Finland, Helsinki
    Posts
    323

    Re: Reboot device

    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. :-)

  8. #8
    Regular Contributor
    Join Date
    May 2007
    Posts
    56

    Re: Reboot device

    THANK YOU!!!!
    e32.start_exe(u'Z:\\System\\Programs\\Starter.exe', '')
    It works very well.

  9. #9
    Registered User
    Join Date
    Jan 2007
    Posts
    2

    Re: Reboot device

    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 16:29.

  10. #10
    Registered User
    Join Date
    Feb 2008
    Posts
    8

    Re: Reboot device

    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

  11. #11
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Reboot device

    hi gunnrosebutpeace
    you can look at this thread this can help you a bit.

Similar Threads

  1. Microchip Embeded Bluetoth device.
    By megaady in forum Bluetooth Technology
    Replies: 0
    Last Post: 2006-01-23, 11:15
  2. Installing Ethernet Plugin on a second device
    By chenfi in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-12-19, 11:40
  3. Bluetooth Security: What exactly is an untrusted device?
    By rahulmcs in forum Bluetooth Technology
    Replies: 1
    Last Post: 2005-12-02, 06:26
  4. Problem of POPUP String Item on Nokia S60 Device
    By lkihk in forum Mobile Java General
    Replies: 0
    Last Post: 2005-08-30, 11:12
  5. Replies: 1
    Last Post: 2004-09-15, 13:48

Posting Permissions

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