Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nini1026

macrumors newbie
Original poster
Oct 29, 2011
26
0
Hi, guys.
Does somebody know how iphone-4s activate Siri when you put it to your ear?
Which sensor that it has really make it work?

I was trying to figure out that, but get frustrated..
Proximity sensor, magnetometer,illuminance sensor,gyroscope ...

Can somebody simply explain which sensor it use and how it works in S/W aspect?
 

Slix

macrumors 68000
Mar 24, 2010
1,588
2,360
It's most likely the combination of proximity sensor and accelerometer.
 

Julien

macrumors G4
Jun 30, 2007
11,847
5,441
Atlanta
The same way the iPhone (from the original) knows how to cut off the screen when you rase it to your ear.;)
 

nini1026

macrumors newbie
Original poster
Oct 29, 2011
26
0
Do you know what an interrupt is in hardware/software?

I guess so.
I did learn it.
Let me take a proximity case as an example,
if you put your ear over the proximity sensor when you get a call,
the sensor an H/W interrupt to iPhone's AP chip(A5).
Then iOS would call ISR(interrupt service routine) that it maps with that H/W interrupt, which would be turning off the screen.

Now am I ready to hear your lesson???

----------

The same way the iPhone (from the original) knows how to cut off the screen when you rase it to your ear.;)


It should only happen when you get a call.
Normally(for Smartphone) mobile only wake up a proximity sensor when you get a call to find out right timing to switch off the screen.

But I'm not really sure how the Smart iPhone really use the the sensor.....

----------

iPhone 4S Incorporates Revamped IR Sensor for Siri's 'Raise to Speak' Feature
https://www.macrumors.com/2011/11/0...d-ir-sensor-for-siris-raise-to-speak-feature/


Thank you so much.
I've just go through it.
But still not really get it.
If IR sensor is the core part, siri also has to be activated if you put your parm
on the device.

Plz, somebody let me know this puzzle..:confused:
 

Jimbo47

macrumors 6502a
Jun 21, 2010
728
3
It has to use the accelerometer too. You're right, when you cover the sensor it doesn't activate. It takes the phone being pulled up (forcefully for it to work for me) then covering the sensor for it to activate.
 

thelatinist

macrumors 603
Aug 15, 2009
5,937
51
Connecticut, USA
When it was first announced it was explained as a combination of IR proximity sensor and accelerometer data. When you swing your phone up to your ear, it moves in a characteristic arc in three dimensions. Combine that arc with sudden proximity to an IR-opaque object and the software interprets it as raising the phone to your ear.

I can duplicate it against my palm, but it takes effort.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.