10-27-2020 05:21 PM
Hi there,
I wonder if there is any dependency between any-motion/no-motion interrupt generation and configured output data rate (ODR).
Oddly enough, but no interrupts are generated when I configure ODR down below 12.5 Hz.
Thus setting ODR in range from 6.25 Hz to 0.78 Hz cause no interrupt, no matter how long I wait or strong shake the board.
Here is sample configuration at 3.12 Hz, which causes no interrupt with bma456_v2.12.8 release;
=== Get accelerator configuration successful ===
odr = 8
range = 1
bandwidth = 2
perf_mode = 1
=== Set accelerator configuration successful ===
odr = 3
range = 1
bandwidth = 2
perf_mode = 1
=== Get any-motion configuration successful ===
axis_en = 0x0
duration = 0x5
threshold = 0xaa
=== Get no-motion configuration successful ===
axis_en = 0x0
duration = 0x5
threshold = 0xaa
=== Set any-motion configuration successful ===
axis_en = 0x7
duration = 0x5
threshold = 0x400
=== Set no-motion configuration successful ===
axis_en = 0x7
duration = 0x1f4
threshold = 0xcc
11-04-2020 01:14 AM
Hello,
Could you share your configuration part with me? 🙂
I'd like to check it.
Thank you.
11-29-2020 07:41 PM
Hi,
@Minhwan wrote:Hello,
Could you share your configuration part with me? 🙂
I'd like to check it.
Thank you.
Sorry for late response.
I just want to check with you whether configuration, that may be inferred from attached archive, is sufficient to reproduce the issue:
I will be happy to provide more information if needed.
Here is an excerpt from on of the files:
ODR := 6.25 Hz, duation = 5 s
=== Get power mode configuration successful ===
adv_power_save = 1
=== Set power mode configuration successful ===
adv_power_save = 1
=== Get power mode configuration successful ===
adv_power_save = 1
=== Get accelerator configuration successful ===
odr = 8
range = 1
bandwidth = 2
perf_mode = 1
=== Set accelerator configuration successful ===
odr = 4
range = 1
bandwidth = 2
perf_mode = 1
=== Internal status register ===
status = 0x1
=== Get accelerator configuration successful ===
odr = 4
range = 1
bandwidth = 2
perf_mode = 1
=== Get any-motion configuration successful ===
axis_en = 0x0
duration = 0x5
threshold = 0xaa
=== Get no-motion configuration successful ===
axis_en = 0x0
duration = 0x5
threshold = 0xaa
=== Set any-motion configuration successful ===
axis_en = 0x7
duration = 0x5
threshold = 0x400
=== Set no-motion configuration successful ===
axis_en = 0x7
duration = 0xfa
threshold = 0xcc
=== Get any-motion configuration successful ===
axis_en = 0x7
duration = 0x5
threshold = 0x400
=== Get no-motion configuration successful ===
axis_en = 0x7
duration = 0xfa
threshold = 0xcc
X := 8196, Y := 101, Z := -163
Shake the sensor in any direction
12-01-2020 10:44 PM
Hello,
I just check your setting, and your threshold is quite high for test.
=== Set any-motion configuration successful ===
axis_en = 0x7
duration = 0x5
threshold = 0x400
Could you test with 0xAA ( default value)
Please check my test code and also would be great you share with your code like this.
Thanks,