×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    24

    How to use the QSensorReading's setTimestamp() function?

    I see the QAccelerometerFilter_Inherit::filter ( QAccelerometerReading * reading ) function be called every 26 milli-seconds.
    Can I change 26 milliseconds to other values using QSensorReading's setTimestamp() function?
    I already try it, but not working.

    I fear that 26 milli-seconds be changed one day.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: How to use the QSensorReading's setTimestamp() function?

    it is not changing any sensor refresh rate, its simply used for setting the time stamp value as documented: http://doc.qt.nokia.com/qtmobility/q...l#setTimestamp

  3. #3
    Registered User
    Join Date
    Mar 2012
    Posts
    24

    Re: How to use the QSensorReading's setTimestamp() function?

    Thanks, symbianyucca.

    I think that I need keep reading->timestamp() data in the QAccelerometerFilter_Inherit::filter ( QAccelerometerReading * reading ) function.
    And then calculate the delta timestamp and refresh rate.

    PS: When first time go to filter() function, I call setTimestamp(0). And dump the reading->timestamp(), the following is the log. Now I remove the setTimestamp(0) in the code.

    [Qt Message] timestamp: 0 acceleration: "1.24 4.94 7.42"
    [Qt Message] timestamp: 63504380798562750 acceleration: "1.39 5.10 7.42"
    [Qt Message] timestamp: 63504380798588750 acceleration: "1.24 5.10 7.26"
    ...

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: How to use the QSensorReading's setTimestamp() function?

    Yep, at behaves as expected indeed. anyway did you still have problem that needs solving ?

  5. #5
    Registered User
    Join Date
    Mar 2012
    Posts
    24

    Re: How to use the QSensorReading's setTimestamp() function?

    Dear symbianyucca:

    No problem for the flow!! Thank you very much!

    Another problem:
    Today(2012/05/08), I update the QtSdk to revision 8cd370e163.
    I find that qtmobility's sensors/accel sample cannot run on my Nokia 700 phone. But it can run on my C7-00 phone.
    Before updates, the two phones all can work.

    Error message in CODA:
    Executable file: 6259 2012-05-08T21:09:10 C:\QtSDK\Symbian\SDKs\SymbianSR1Qt474\\epoc32\release\armv5\urel\accel.exe
    Connecting to 192.168.11.4:1534...
    Connected.
    Launching: accel.exe
    Launch failed: Command answer [command error], 1 values(s) to request: 'C|4|Processes|start|""|"accel.exe"|[""]|[]|true'
    #0 {"Code":-5,Format="Failed to create the process (verify that the executable and all required DLLs have been transferred) (functionality is not supported)"}
    Error: 'Failed to create the process (verify that the executable and all required DLLs have been transferred) (functionality is not supported)' Code: -5
    Finished.

    Error message on phone: "Home screen: Feature not supported". (PS: this message seems happen in Janurary)

    The following is the phone model=>

    Nokia C7-00 phone:
    Release: Symbian Belle
    Software version: 111.030.0609

    Nokia 700 phone:
    Release: Symbian Belle
    Software version: 111.010.1009

    Jacky

  6. #6
    Registered User
    Join Date
    Mar 2012
    Posts
    24

    Re: How to use the QSensorReading's setTimestamp() function?

    Dear symbianyucca:

    No other flow issue need resolved. Thank you very much.

    But today(2012/05/08), I update the new QtSdk to revision 8cd370e163.
    I found that qtmobilty's accel sample cannot run on one phone. (I use two phone test.)
    Before update, the two phones all can run.

    The two phone are:
    Nokia 700: (cannot run after update sdk)
    Release: Symbian Belle
    Software version: 111.010.1009
    Nokia C7-00: (can run after update sdk)
    Release: Symbian Belle
    Software version: 111.030.0609

    Error message in CODA:
    Executable file: 6259 2012-05-08T21:09:10 C:\QtSDK\Symbian\SDKs\SymbianSR1Qt474\\epoc32\release\armv5\urel\accel.exe
    Connecting to 192.168.11.4:1534...
    Connected.
    Launching: accel.exe
    Launch failed: Command answer [command error], 1 values(s) to request: 'C|4|Processes|start|""|"accel.exe"|[""]|[]|true'
    #0 {"Code":-5,Format="Failed to create the process (verify that the executable and all required DLLs have been transferred) (functionality is not supported)"}
    Error: 'Failed to create the process (verify that the executable and all required DLLs have been transferred) (functionality is not supported)' Code: -5
    Finished.

    Error message in the phone:
    Home screen:Feature not supported

    Jacky

Similar Threads

  1. Replies: 2
    Last Post: 2009-03-09, 08:35
  2. Replies: 4
    Last Post: 2008-12-03, 20:15
  3. (Bluetooth) RSocket Write function does not call RunL function
    By ronald29 in forum Symbian Networking & Messaging (Closed)
    Replies: 13
    Last Post: 2008-10-14, 10:58
  4. Execption manipulate when C++function call C function
    By zhangpengstu in forum Open C/C++
    Replies: 1
    Last Post: 2008-05-28, 11:09
  5. Replies: 2
    Last Post: 2004-02-02, 14:47

Posting Permissions

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