Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User kiwifrog's Avatar
    Join Date
    Jun 2009
    Posts
    4
    Hi,

    I'm a new python user and have been having many problems writing a simple program in Python to record data from the acceleration sensor in a Nokia N95 8GB to file. I've psent the last week looking all over the site and haven't found anything that works.

    Any help would be appreciated.

    KF

  2. #2
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    Hi,

    Well you can use the axyz extension (only in PyS60 1.4.5 and earlier) to get the accelerometer values. Writing to files is the same as in standard Python (documentation is here).

    If that doesn't help, please tell us what went wrong and what you have already tried.

  3. #3
    Registered User kiwifrog's Avatar
    Join Date
    Jun 2009
    Posts
    4
    Hi,

    I've been using the sensor module rather than the axyz module as I haven't been able to get this to install without error messages. I've tried the signed and unsigned versions with no luck.

  4. #4
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    What are the error messages?

  5. #5
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,688
    Quote Originally Posted by kiwifrog View Post
    Hi,

    I've been using the sensor module rather than the axyz module as I haven't been able to get this to install without error messages. I've tried the signed and unsigned versions with no luck.
    hello kiwifrog

    if you want to use the sensor module then there is a excellent tutorial by fellow champion jouni you can have a look at that here.

    Enjoy Pythoning
    Gaba88

  6. #6
    Registered User kiwifrog's Avatar
    Join Date
    Jun 2009
    Posts
    4
    Quote Originally Posted by bogdan.galiceanu View Post
    What are the error messages?
    When I first tried to install the unsigned axyz module I got an error message related to the certificate so I couldn't complete the installation. I then installed the unsigned version of axyz. The installation was OK, but when I call the axyz module in python I get an import error permission denied (error -46).

  7. #7
    Registered User kiwifrog's Avatar
    Join Date
    Jun 2009
    Posts
    4
    Quote Originally Posted by gaba88 View Post

    if you want to use the sensor module then there is a excellent tutorial by fellow champion jouni you can have a look at that here.
    Thanks. I might be better off using the sensor module that works, rather than the axyz module.

  8. #8
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,688
    Quote Originally Posted by kiwifrog View Post
    When I first tried to install the unsigned axyz module I got an error message related to the certificate so I couldn't complete the installation. I then installed the unsigned version of axyz. The installation was OK, but when I call the axyz module in python I get an import error permission denied (error -46).
    hello kiwifrog

    i guess you need to sign the unsign version at the symbian signed to get that working and have you signed your scriptshell with all capabilities at the symbian signed.

    Regards
    gaba88

  9. #9
    Super Contributor JOM's Avatar
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976
    Quote Originally Posted by kiwifrog View Post
    Thanks. I might be better off using the sensor module that works, rather than the axyz module.
    Agree totally.

    Besides somehow I recall that the aXYZ module works only with N95 early firmware devices? Doing upgrade enables Sensor API, but disables aXYZ hack. Anyway, Sensor API is available in several devices, so whatever you develop will automatically have possibility to run in more devices.

    Cheers,

    --jouni

Similar Threads

  1. Contacts fields order??
    By timatima in forum Symbian C++
    Replies: 1
    Last Post: 2007-06-08, 13:51
  2. Could not open local link 3gp file in Nokia N95 Browser?
    By xiatao in forum Mobile Web Site Development
    Replies: 5
    Last Post: 2007-05-25, 10:00
  3. Replies: 3
    Last Post: 2007-03-07, 03:36
  4. Replies: 9
    Last Post: 2006-03-30, 08:36
  5. Replies: 1
    Last Post: 2005-05-26, 14:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved