Questions tagged [apple-m7]

Apple M7 is a motion co-processor used by Apple Inc. in the iPhone 5S, iPad Air, and iPad mini (2nd generation). Its function is to collect sensor data from integrated accelerometers, gyroscopes and compasses and offload the collecting and processing of sensor data from the main central processing unit (CPU).

Purpose

The Apple M7 co-processor collects, processes and stores sensor data even if the device is asleep, and applications can retrieve data when the device is powered up again. This will reduce power draw of the device and save battery life.

Usage

The M7 is accessible to applications through the Core Motion API in iOS 7. It allows for example fitness apps that track physical activity and access data from the M7 without constantly engaging the main A7 CPU. It enables applications to be aware of what type of movement the user is experiencing, such as driving, walking, running or sleeping. Another application could be the ability to do indoor tracking and mapping.

Products that include the Apple M7

  • iPhone 5S
  • iPad Air
  • iPad mini (2nd generation)

Source: Wikipedia: Apple M7

32 questions
36
votes
5 answers

CoreMotion updates in background state

With the M7 chip in the latest iOS devices one can get programmatically notified as the user goes from stationary to running, walking, etc using CMMotionActivityManager. Stava and Runkeeper have both used this to auto-pause GPS polling (shut off the…
Parrots
  • 26,658
  • 14
  • 59
  • 78
36
votes
4 answers

Detecting if a user is moving in a car

NOTICE: This question was originally posted before Apple introduced motion-detection hardware and associated APIs in the iOS SDK. Answers to this question, however, remain relevant. I'm creating an iPhone iOS app which involves tracking a user's…
Sam Spencer
  • 8,492
  • 12
  • 76
  • 133
20
votes
5 answers

Detecting when someone begins walking using Core Motion and CMAccelerometer Data

I'm trying to detect three actions: when a user begins walking, jogging, or running. I then want to know when the stop. I've been successful in detecting when someone is walking, jogging, or running with the following code: -…
Apollo
  • 8,874
  • 32
  • 104
  • 192
14
votes
3 answers

Can I require an iPhone 5S for my app?

I'm writing an app which requires the M7 Motion co-processor chip in the iPhone 5S. Since this chip isn't in any other iPhone, the app will only function properly on an iPhone 5S. Is there any way to require that a user has an iPhone 5S before…
Jackson
  • 3,555
  • 3
  • 34
  • 50
10
votes
3 answers

CMMotionActivityManager ignores cycling

I've been researching the new M7 chip's CMMotionActivityManager, for determining whether the user of the device is walking, running, in a car, etc (see Apple Documentation). This seemed like a great step forward over trying to determine this…
Miro
  • 5,307
  • 2
  • 39
  • 64
7
votes
1 answer

How to detect if M7 is present, a.k.a it is an iPhone 5S or newer?

Trying to find a way to detect M7 being present. Is it pointless to query CMStepCounter or CMMotionActivity class if M7 is not present? My guess is that on non M7 models having iOS 7.0, these classes get data but not that efficiently & use a lot…
Gamma-Point
  • 1,514
  • 13
  • 14
5
votes
1 answer

How to implement CMStepCounter CoreMotion - M7 Chip

I was wondering if anyone could show me an example of how to implement CMStepCounter. (I've looked at the documentation but am still left a little confused as to how to implemented). I'm looking to update a UILabel on my View every time a step is…
Fudgey
  • 3,793
  • 7
  • 32
  • 53
5
votes
1 answer

Testing CoreMotion APIs (which require M7) on iphone simulator with iOS 7

Has anyone successfully tested any of the new CoreMotion APIs with the simulator? It seems that those which require M7 aren't working. I've tried calling these functions on the new simulator running iOS…
jimmyC
  • 563
  • 1
  • 6
  • 20
3
votes
0 answers

CoreMotion activity tracker in background

Is it possible to use the CoreMotion M7 capabilities to track the user activity in background and based on the received events to start/stop services like : location, bluetooth? I know that the inverse operation is possible. For example, using…
Mihai Popa
  • 892
  • 1
  • 8
  • 25
3
votes
4 answers

How to use CMMotionActivityManager and receive updates?

I want to create an app that can receive and process motion updates in order to understand if the user is stationary, walking, running or is on a transport. I've seen on the reference that CMMotionActivityManager can be useful for me. The…
emattiazzi
  • 366
  • 1
  • 3
  • 12
3
votes
2 answers

What does the iOS Simulator’s “Motion Control” menu item do?

In the iOS Simulator that ships with Xcode 5, there is a menu item Window → Motion Control. Clicking it seems to have no effect. Does anyone know what it does? Is it related to either the M7 coprocessor on recent iOS devices, or the “Switch Control”…
Zev Eisenberg
  • 8,080
  • 5
  • 38
  • 82
3
votes
2 answers

Utilizing the M7 chip in the iPhone5S

I was wondering if anyone can point me in the right direction with regard to utilzing the M7 chip in the iPhone5S and above. I was wondering if it's just automagically used when you use general core motion APIs or is there a specific set of APIs to…
Woodstock
  • 22,184
  • 15
  • 80
  • 118
3
votes
1 answer

Can performFetchWithCompletionHandler be used for non-network related fetches in iOS7

I know that performFetchWithCompletionHandler is intended to be used to fetch data in the background over the network, but could I use it to fetch data that does not require a network connection instead? For example, I want to pull some step count…
Jackson
  • 3,555
  • 3
  • 34
  • 50
2
votes
2 answers

Determine authorization status of Core Motion Services (eg. M7) before prompting user?

WWDC 2014 Session 612 (45:14) highlights how to check the authorization status of Core Motion Services: - (void)checkAuthorization:(void (^)(BOOL authorized))authorizationCheckCompletedHandler { NSDate *now = [NSDate date]; [_pedometer…
Joe Masilotti
  • 16,815
  • 6
  • 77
  • 87
2
votes
2 answers

How to use the new M7 motion co-processor in an app?

My question could sound simple or stupid, but I just want to make things clear. I'm using accelerometer in an app, and I want to know how can I use the new iPhone 5S M7 motion co-processor, at the moment I'm receiving accelerometer data using…
iOS Dev
  • 4,143
  • 5
  • 30
  • 58
1
2 3