Results 1 to 4 of 4
Discuss Wake iphone like MobileMail.app does? #Bash Script at the iPhone Developer Exchange - Hackint0sh.org; ...
  1. #1
    Newbie Array

    Join Date
    May 2009
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Question Wake iphone like MobileMail.app does? #Bash Script

    Hi there,

    i search for 3 days now to find a solution.

    I wrote a simple Bash Script so use Relocatable all 15 minutes.
    Until the iphone is not in sleep it work like a charm.
    But if it in sleep mode...the whole script stop working.
    Now i tried pingwifi but doesnīt work (Maybe cuz 2.2.1??)

    So the big question...is there any way without Insomnia?
    I donīt find a solution to wake the iPhone "on Demand" or every 30 Minutes or so like MobileMail.app does.

    PLEASE help me...i canīt sleep because i donīt want to accept that there is no Way to do it.

    Thank you

    Greets from Germany
    Dennis



  2. #2
    Newbie Array

    Join Date
    May 2009
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    You can use insomnia to wake the iphone at a certain interval. Check here: iphone-insomnia - Google Code

    Though this would probably require you to create a small application instead of a bash-script.

  3. #3
    Newbie Array

    Join Date
    May 2009
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Hi,

    i tried to figure out how this works.
    Sadly im an C/ObjC noob.

    Did anybody made a little prog that use this code and wake the Phone on a specific Interval?

    NSCalendarDate *nextWake = [[NSCalendarDate calendarDate] dateByAddingYears:0 months:0 days:0 hours:0 minutes:25 seconds:0];
    CPSchedulePowerUpAtDate((CFDateRef)nextWake); // From AppSupport framework

    Have no clue how to implement...

    Who can help me?

  4. #4
    Newbie Array

    Join Date
    May 2009
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by katanapod View Post
    Code:
    NSCalendarDate *nextWake = [[NSCalendarDate calendarDate] dateByAddingYears:0 months:0 days:0 hours:0 minutes:25 seconds:0];
    CPSchedulePowerUpAtDate((CFDateRef)nextWake); // From AppSupport framework
    That code is complete. Just enter it where ever needed and compile it with the AppSupport framework.

    I use makefiles, so I just add "-framework AppSupport" to my LDFLAGS. Have no idea how to do it with Xcode, probably some click and done.

 

 

Similar Threads

  1. Wake on Lan Script?
    By jaybee16 in forum AppleTV 1
    Replies: 1
    Last Post: 07-17-2009, 04:00 AM
  2. Passing Bash Script Command?
    By raziiq in forum iPhone Developer Exchange
    Replies: 1
    Last Post: 07-16-2009, 05:07 AM
  3. Replies: 4
    Last Post: 01-14-2008, 04:46 AM
  4. bash instead of sh
    By speci in forum General
    Replies: 3
    Last Post: 12-19-2007, 07:58 PM
  5. bash instead of sh for ssh
    By elbarlo in forum General
    Replies: 4
    Last Post: 07-31-2007, 08:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 02:53 PM.
twitter, follow us!