×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Jan 2005
    Posts
    154

    Double-Tapping sensor not working on 5800 Xpress

    Hi,

    Have been trying to have this working for a while but i failed.

    I have implemented the Sensor Framework in my application to listen to several sensor channels (accelerometer, rotation) and i am getting all working fine except for the multi-tapping.

    When i tap the phone from any direction i always get value 3 for the iDirection member of TSensrvTappingData, which is none of the predefined direction constant:

    const TUint8 KSensrvAccelerometerDirectionXplus = 0x01;
    const TUint8 KSensrvAccelerometerDirectionXminus = 0x02;
    const TUint8 KSensrvAccelerometerDirectionYplus = 0x04;
    const TUint8 KSensrvAccelerometerDirectionYminus = 0x08;
    const TUint8 KSensrvAccelerometerDirectionZplus = 0x10;
    const TUint8 KSensrvAccelerometerDirectionZminus = 0x20;

    I read on http://wiki.forum.nokia.com/index.php/Category:Sensor that this sensor channel is supported on the 5800 phone.


    This is my callback function that received the tapping data from the sensor:

    Code:
     void CTappingDataListener::DataReceived( CSensrvChannel& aChannel, 
                                   TInt /*aCount*/, 
                                   TInt /*aDataLost*/ )
        {
    	/**
    	* 7. Sensor data is received.
    	* - aChannel parameter tells which channel sent the data.
    	*/
    	TSensrvChannelInfo info = aChannel.GetChannelInfo();
    	/*TSensrvTappingData::KDataTypeId )*/ 
    	if ( info.iChannelType == KSensrvChannelTypeIdAccelerometerDoubleTappingData )
    	    {
    		/**
    		* 8. The data from the channel is received to a package.
    		* - The data is received through GetData method.
    		*/
    		TSensrvTappingData aTapData; 
    		TPckg<TSensrvTappingData> tapPackage( aTapData );
    	    aChannel.GetData( tapPackage );
    	    
    	    /**
    		* As the data is now available for the application the compass can now
    		* be drawn. The data is forwarded to the draw function.
    		*/
    	    iSensorEngine->TapData( aTapData.iTimeStamp, aTapData.iDirection );
    	    }
    	}

    Has any one experience such a problem?

    Regs
    AF

  2. #2
    Regular Contributor
    Join Date
    Jan 2005
    Posts
    154

    Re: Double-Tapping sensor not working on 5800 Xpress

    no one has any idea about this?!

  3. #3
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Double-Tapping sensor not working on 5800 Xpress

    Not all sensors are unfortunately properly calibrated for each devices so not all will work. As I remember the double tap sensor has this problem on 5800 and there is no way to solve the problem.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  4. #4
    Regular Contributor
    Join Date
    Jan 2005
    Posts
    154

    Re: Double-Tapping sensor not working on 5800 Xpress

    Thanks alot for the useful info.
    Will look at implementing the double tapping feature myself then.
    AF

  5. #5
    Registered User
    Join Date
    Nov 2009
    Posts
    9

    Re: Double-Tapping sensor not working on 5800 Xpress

    hi abolfoooud. i'm getting the value 3 as direction too. But according to sensrvtappingsensor.h file reference at library, if plus or minus information for axis is not known, both flags are set. 3 means in this situation KSensrvAccelerometerDirectionXplus | KSensrvAccelerometerDirectionXminus.

Similar Threads

  1. Timer is not working on Nokia 5800 XM
    By reteganc in forum Mobile Java General
    Replies: 1
    Last Post: 2009-03-02, 08:12
  2. Problems with getting the Sensor stuff working on the 5800
    By Spurs4ever in forum Symbian User Interface
    Replies: 7
    Last Post: 2009-02-10, 14:17
  3. Replies: 4
    Last Post: 2009-01-23, 11:07
  4. No rule to male target
    By arayappan_it in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2008-02-28, 10:49
  5. Maths - acos, asin, atan
    By xedarius in forum Mobile Java General
    Replies: 12
    Last Post: 2006-08-21, 00:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×