Results 1 to 3 of 3
Discuss Accelerometer usage at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; Hi everybody! I have a problem with work a accelerometer in sleep mode on iPhone. ...
  1. #1
    Rookie Array

    Join Date
    Jan 2008
    Posts
    13
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Accelerometer usage

    Hi everybody!
    I have a problem with work a accelerometer in sleep mode on iPhone.
    I need get data from accelerometer for a long time. As we know screen need many battery power. How can I turn off screen and still get data from accelerometer? Standard Protocol from SDK(UIAccelerometerDelegate) doesn't work in sleep mode, although sound functions work perfectly in sleep mode.
    Also I tried use nonSDK functions: from here
    but this method did not called on my 2.1 device (i think this nonSDK method for old device version)
    And I tried use low level function
    from here
    but I don't understand how it's work and what data i get from this functions. - may be somebody can advice to me how it's work (I can't find documentations for these functions)?
    How it's possible use accelerometer in sleep mode?
    or maybe somebody know how we can wake up our device from sleep mode?
    Thank you.



  2. #2
    Senior Professional Array

    Join Date
    Sep 2007
    Posts
    370
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    29

    Default

    Spooky, i'm also looking for the exact same thing.

    You are correct. As soon as the device returns to the homescreen or the slide to unlock screen the accelerometer stops responding. But once you return to the application it's fine again.

    Please post back here if you find a solution.

  3. #3
    Rookie Array

    Join Date
    Jan 2008
    Posts
    13
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I successfully get accelerometer data from nonSDK function (from first link), but this method doesn't called in sleep mode. Our application not get any events in sleep mode (handleEvent: withNewEvent: doesn't called).
    Maybe somebody know how we can get new events in sleep mode?

    upd: maybe incorrectly speak about sleep mode. Maybe correctly speak about locked mode. Phone automatically go to sleep mode from locked mode after 40 secs inactivity, but I can prevent this.
    I really need to get application events in locked mode (I can use Wi-Fi or Audio functions in this mode).
    Last edited by venture; 12-01-2008 at 02:40 PM.

 

 

Similar Threads

  1. 3GS Accelerometer
    By sincro13 in forum iPhone 3GS
    Replies: 1
    Last Post: 02-20-2010, 05:11 PM
  2. [1.1.4][Usage] When do the usage stats reset?
    By geestring in forum General
    Replies: 1
    Last Post: 07-10-2008, 10:42 PM
  3. Replies: 1
    Last Post: 03-08-2008, 01:51 PM
  4. EDGE Usage Counter Not Showing Correct Usage ?
    By davgoust in forum General
    Replies: 5
    Last Post: 01-08-2008, 11:52 AM
  5. Need new Accelerometer, what and where?
    By infra in forum Hardware
    Replies: 3
    Last Post: 12-01-2007, 06:04 AM

Tags for this Thread

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 01:18 AM.
twitter, follow us!