Join Now
Quality Rating:
  • Currently 4.8 / 5
(4.8 / 5 - 4 votes cast)
Expertise Level:
  • Currently 4.3 / 5
(4.3 / 5 - 3 votes cast)

This page was last modified 13:51, 5 September 2008.

Sensor API

From Forum Nokia Wiki

(Redirected from S60 Sensor API)
"Danger, Will Robinson!"
The information in this page is valid only for a limited set of Nokia S60 phones. The APIs described are not part of the S60 Platform therefore they are not available on phones created by other S60 licensee.


Mobile sensor APIs (available in the Sensor plug-in for S60 SDK [1]) allow us to get the data from the embedded sensors.

That 3D accelerometer inside N95 , N93i or N82 is from STMicroelectronics (type LIS302DL). The European chip maker STMicroelectronics (STM)has also supplied the motion-control chip for the Nintendo Wii console's controller. This chip is built around a technology known as Micro Electro-Mechanical Systems (MEMS). Essentially chips with tiny moving parts like gears.

More information about it can be found in the public spec from ST web site http://www.st.com/stonline/products/families/sensors/accelerometers.htm

Contents

N95 with firmware < 20.0.015

It allows us to get notification about the phone tilt for example whether the phone is tilted 0,90,180,270 degrees.

The UID of the sensor is 0x303E. This UID can be used to get the call back notifications about the movement. The following link, sensor example, has the example for 5500 sensor.The UID of the 5500 sensor is 0x10273024. Simply changing in the file SensorTestAppui.cpp the 5500 UID to the N95 one allows us to get the call backs for N95.

Note that with N95 you can only get one sensor and it gives only 4 different values (0/90/180/270), whereas with 5500 you get lot more information as well as there is tap sensor included with 5500.

Until you can upgrade your firmware to V 20.0.015, you can also use the N95 RD Accelerometer plug-in described in Nokia Research Center's activity monitor project. This allows for a higher amount of detail to be received from the N95 accelerometer. The MovingBall example on that page also gives a good indication of what is possible with the N95 accelerometer. Please note that this R&D API is not binary compatible with the Sensor API offered by the S60 Platform.

N95 with firmware >= 20.0.015

SensorAPI example used 'out-of the-box' give you the values on the 3 axis not limited to 4 values.

Note however the SensorAPI example used with N95 V 20.0.015 (13/11/07) and the UID 0x303E still give only one axis with 4 values.

Device coverage

  • Here's a panel for matching sensor API and R&D Plugin and device supporting it.
Device Sensor API R&D Plugin
N95 firmware < 20.0.015 Tilt only v
N95 firmware >= 20.0.015 [0x303E] Tilt only v
N95 firmware >= 20.0.015 [0x10273024] v v
N95 8GB v v
N93i firmware < 20.0.084  ? v
N93i firmware >= 20.0.084 v v
N82 v v
5500 v

Applications

Several developers have announced applications that make use of 5500 , N95,N93i or N82's sensors using either the Sensor API (previouly used with only 5500) or the middleware released by the Nokia Research Center (NRC). Here are the ones known at this time:

Application Author Download link Video demo Supported API
Activity Monitor NRC Download
Plugin
MovingBall NRC Download View Plugin
Shake Control The Dude Not released. View Plugin
RotateMe 2.0 beta5 Samir Download View Plugin
Nokmote Samir Not released. View Plugin
Shutup Samir Not released. View Plugin
Inclinometer symbianyucca Download View Sensor
Lightsabre Graham Oldfield Download View Plugin or Sensor
Wattery screensaver Psiloc Download
Sensor
Groove Labyrinth Bitside Download
Sensor
Accelerinvaders Luis Valente Download View Plugin
Tunnel Run Mobile Radicals Not released. View Sensor
gBoarder FH Hagenberg
Stefan Damm and Benjamin Gmeiner
Download View Sensor
CarMeter FH Hagenberg
Alexander Erifiu, Grammer Mario and Martin Legath
Download
Sensor
ShakerRacer FH Hagenberg
Andreas Jakl, Stephan Selinger
Download View Sensor or plugin
pyWuzzler FH Hagenberg
Benjamin Gmeiner, Yen-Chia Lin
Download View Sensor
xyz2NXT : control a LEGO NXT robot car with your phone. Goodan Download View Plugin with Python wrapper
MovingBall in JAVA BjoernQ Download
Plugin with Python socket server
BallGame in JAVA BjoernQ Download View Plugin with Python socket server
emTube Sebastian Jedruszkiewicz Download
Sensor or Plugin
Channels Media Service Nokia beta labs
Download
View
Sensor or plugin
FLVPlayer OPDA Download Sensor or plugin
Glogger Glogger Download Plugin
FlipSilent Tong Reng Download View Plugin
pyPiwo Ariek Download View Sensor
pyRybka Ariek Download View Sensor
NiiMe : Mouse Control with N95 A2JSoft (Alcyone) Download View Plugin
MIRAGE-X : 3-D motion control for the N95 MobileRadicals Download View Sensor or plugin
PyAcceleREMOTER Serk01 Download View Sensor
Phone Fight lastminute.com labs Download View Plugin with Python wrapper
16 Puzzle Jouni Miettunen Download Sensor
Sensor Analyzer Jouni Miettunen Download Sensor
Rol-a-Bol Jouni Miettunen Download Sensor
MirageMoney2 MobileRadicals Download View(old version demo) Sensor or plugin
Paparazzi Attack Jouni Miettunen Download Sensor
Related Discussions
Thread Thread Starter Forum Replies Last Post
Accelerometer mikedeklerk General Symbian C++ 32 2008-04-29 15:10
JSR 234 Larry101 Mobile Java General 1 2008-09-02 15:54
Very important, about JSR 256!!! Liquidsunshine Mobile Java General 3 2006-12-24 02:40
5500 SportPhone - How do I get started? slraymond General Symbian C++ 3 2006-09-22 01:42
Applications using the N95 accelerometer djsid Python 7 2008-07-02 11:56
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZhardwareQ
     qfnZtopicQUqfnTopicZsensorQ
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX
     
    
            
            RDF Facets:
            
            
                        qfnZuserE5ftagQSxpolymorphicX