1. AC Question's Avatar
    The Accelerometer Sensor is set to a Range of 2 - 4 g on most devices.
    There is no option to turn it up to 8 or 16 G, which my sensor and most others are capable of.
    I found some Information but cant get any further how to achieve this.

    I have the LIS3DSH Sensor in my Xiaomi Device.

    There is a manual which states that in the configuration .hal file you can set
    /* ACCELEROMETER SENSOR \*/
    #define SENSOR_ACC_LABEL “LSM303DLHC 3-axis Accelerometer“
    #define SENSOR_ACC_INCLUDE_FILE_NAME “lsm303dlhc.h“
    #define SENSOR_DATANAME_ACCELEROMETER LSM303DLHC_ACC_DEV_NAME
    #define ACCEL_DELAY_FILE_NAME “pollrate_ms“
    #define ACCEL_ENABLE_FILE_NAME “enable_device”
    #define ACCEL_RANGE_FILE_NAME “range”
    #define ACCEL_MAX_RANGE 16*GRAVITY_EARTH
    #define ACCEL_MAX_ODR 400
    #define ACCEL_POWER_CONSUMPTION 0.033f
    #define ACCEL_DEFAULT_FULLSCALE 4

    But i have no idea how to do this.

    I can not Link to the manual since i dont have 10 posts, but you can google for:

    AN4156
    Application note

    would be glad about any information.
    05-19-2015 01:08 PM
  2. Rukbat's Avatar
    If you look at page 10 in http://www.st.com/st-web-ui/static/a...DM00063297.pdf you'll see how. You change the values in the file, then recompile Android. (It's not user-changeable, it's done at the development level.)
    Tolga Tezcan likes this.
    05-19-2015 04:03 PM
  3. Tolga Tezcan's Avatar
    Ah ok Thank you.
    But do i have to download the complete source of android 4.3 or can i recompile somehow the installation on my phone?
    05-19-2015 05:26 PM
  4. Tolga Tezcan's Avatar
    05-20-2015 05:17 AM
  5. Tolga Tezcan's Avatar
    Hi Rubkat, thank you for the information.
    But how does this work?
    I cant find where to download the source files.
    Or is there already a version on my phone.
    And do i compile only the sensor modules or do i recompile the whole android system.
    I am really not a pro in the os knowledge.
    im glad for any information.
    Cheers,
    Tolga
    05-21-2015 06:47 AM

Similar Threads

  1. Replies: 13
    Last Post: 05-22-2015, 10:48 AM
  2. When I start a claim how long do i have before I file it?
    By AC Question in forum Ask a Question
    Replies: 2
    Last Post: 05-19-2015, 03:30 PM
  3. How can I recover my backup password?
    By AC Question in forum General Help and How To
    Replies: 1
    Last Post: 05-19-2015, 03:23 PM
  4. How do I talk to Google Now without getting cut off?
    By Jay Rosen in forum Android Apps
    Replies: 1
    Last Post: 05-19-2015, 12:49 PM
  5. [Q] How to root mate 7 using mac ?
    By MotsCaches in forum Huawei Ascend Mate 7
    Replies: 0
    Last Post: 05-19-2015, 12:32 PM
LINK TO POST COPIED TO CLIPBOARD