×

Discussion Board

Page 1 of 3 123 LastLast
Results 1 to 15 of 35
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    30

    How to turn on the phone?

    Hello.

    I make a program which must turn off and turn on the phone. I use CTimer class to rise events. In SDK documentation is written about At() method: "if the machine is in a turned off state at that time, the machine will be turned on again".

    So I try to use this method to turn on the phone. But it is not work.

    May be there is another way to turn on the phone?

    Because the alarm can do it, I guess that exists programm interface for it.

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: How to turn on the phone?

    Hi,

    I suppose you can restart the phone but there is no any public API avaible to turn ON the phone after its goes OFF.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    30

    Re: How to turn on the phone?

    Quote Originally Posted by kkrish View Post
    Hi,

    I suppose you can restart the phone but there is no any public API avaible to turn ON the phone after its goes OFF.
    What mean, in this case, phrase: "if the machine is in a turned off state at that time, the machine will be turned on again"?

    May be "turn off state" is some like standby mode?

  4. #4
    Registered User
    Join Date
    Dec 2006
    Location
    Noida, India
    Posts
    150

    Re: How to turn on the phone?

    Are u Talking about "Offline Mode" & phone on mode.. in which device u r trying your process..

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: How to turn on the phone?

    That sentence in the SDK Help is simply nonsense (actually it also appears in RTimer::At). When the device is switched off, your application is shut down, so does its connection to the timer. Thus the request itself can not exist any more, even if the timer service would have the ability to power on the device.
    You can try if RScheduler is capable of booting the device (the Wiki has many hits, however I have no experience with it).
    If it does not work, you can still try combining RScheduler and RASCliSession (the Alarm Server client), and see if Task Scheduler can launch your code when the Alarm Server wakes up the device.

  6. #6
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: How to turn on the phone?

    Hi BETEP.OK,

    What you exactly want, you want to reboot the phone or switch off the phone that will on after some time autometically? you should describe it.
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to turn on the phone?

    Quote Originally Posted by wizard_hu_ View Post
    That sentence in the SDK Help is simply nonsense (actually it also appears in RTimer::At). When the device is switched off, your application is shut down, so does its connection to the timer. Thus the request itself can not exist any more, even if the timer service would have the ability to power on the device.
    You can try if RScheduler is capable of booting the device (the Wiki has many hits, however I have no experience with it).
    If it does not work, you can still try combining RScheduler and RASCliSession (the Alarm Server client), and see if Task Scheduler can launch your code when the Alarm Server wakes up the device.
    RScheduler does not boot the device for me. need to check RASCliSession

  8. #8
    Registered User
    Join Date
    Jun 2008
    Posts
    30

    Re: How to turn on the phone?

    Quote Originally Posted by aamitgupta View Post
    Hi BETEP.OK,

    What you exactly want, you want to reboot the phone or switch off the phone that will on after some time autometically? you should describe it.
    Yes, I want to switch off phone and switch it on later.
    I write code to switch off the phone, and now I want to now how to switch on the phone.

  9. #9
    Registered User
    Join Date
    Jun 2008
    Posts
    30

    Re: How to turn on the phone?

    Quote Originally Posted by wizard_hu_ View Post
    That sentence in the SDK Help is simply nonsense (actually it also appears in RTimer::At). When the device is switched off, your application is shut down, so does its connection to the timer. Thus the request itself can not exist any more, even if the timer service would have the ability to power on the device.
    You can try if RScheduler is capable of booting the device (the Wiki has many hits, however I have no experience with it).
    If it does not work, you can still try combining RScheduler and RASCliSession (the Alarm Server client), and see if Task Scheduler can launch your code when the Alarm Server wakes up the device.
    O!
    I guess this right way.
    Usualy, when alarm happen, the phone play the sound(I going to do silent alarm). Later, if press "stop" button, phone ask you, should he turn on the phone. So, I going to force the "yes" answer by the alarms's settings.

  10. #10
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to turn on the phone?

    Both RScheduler or RASCliSession did not boot device at specified time.

  11. #11
    Regular Contributor
    Join Date
    Dec 2008
    Location
    india
    Posts
    179

    Re: How to turn on the phone?

    ok frds......

    but can ny 1 tell me tht there is two events which works when phone is switched off.

    first is....Alarm and

    second is .... charger progress bar(when charger pin is connected)

    so if tht event works........thn is it not possible to on the phone in switched off state.?

  12. #12
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: How to turn on the phone?

    Quote Originally Posted by manmay.gupta View Post
    ok frds......
    but can ny 1 tell me tht there is two events which works when phone is switched off.
    first is....Alarm and
    second is .... charger progress bar(when charger pin is connected)
    so if tht event works........thn is it not possible to on the phone in switched off state.?
    AFAIK, there are no public APIs for doing that.

  13. #13
    Registered User
    Join Date
    Nov 2007
    Posts
    5

    Re: How to turn on the phone?

    Wiki have this article:
    TSS001128 - Using alarms to power up an S60 device.
    Anybody know something about it?

  14. #14
    Registered User
    Join Date
    Jun 2008
    Posts
    30

    Re: How to turn on the phone?

    Quote Originally Posted by serg71 View Post
    Wiki have this article:
    TSS001128 - Using alarms to power up an S60 device.
    Anybody know something about it?
    Finaly, I've used this way.
    But it does't completely satisfy end users.

    User must hear an alarm sound, press a couple of keys and might be enter a pin code to get the phone switched on.

  15. #15
    Registered User
    Join Date
    Nov 2007
    Posts
    5

    Re: How to turn on the phone?

    In SDK documentation written:
    "ClientFlags()
    inline TBitFlags16 &ClientFlags();
    Description
    Returns a writable version of the alarm's client flags.
    The client flags may be used for any client-specific data - the alarm server does not use them."
    Test application (UID3 from 0xE... range, certification online) work right in power-on mode, but don't work in power-off mode (model phone N73).
    Is method in TSS001128 really work?

Similar Threads

  1. Replies: 13
    Last Post: 2008-01-16, 17:25
  2. Replies: 2
    Last Post: 2007-11-10, 13:19
  3. Replies: 0
    Last Post: 2007-07-15, 23:06
  4. 7610 Contacts - Formatted Phone Numbers
    By padlon in forum General Development Questions
    Replies: 2
    Last Post: 2004-11-12, 18:02
  5. Phone Lock-Up Using Bluetooth (requires battery pull!!)
    By cyberabi in forum Bluetooth Technology
    Replies: 1
    Last Post: 2003-05-05, 18:40

Posting Permissions

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