03-25-2021 12:59 PM
Hello,
how can I set sensitivity for accelerometer and generate INT1 on board movement ?
How can I clear interrupt ?
Thanks.
03-25-2021 03:59 PM
Hello joma,
Could we know your detailed application scenarios?
03-26-2021 09:33 AM
Hello BSTRobin,
in our project we are replacing old accelerometer with BMI270. This old accelerometer generates interrupts when X/Y/Z coordinate changes in certain amount.
In current phase we would like to do the same with BMI270. We are using Linux driver and have executed these commands:
cd /sys/devices/virtual/input/input1
echo 3 > load_config_stream
echo 1 > acc_enable
echo 1 > aps_enable
echo 1 > acc_fifo_enable
echo 1 > gyro_enable
echo 1 > gyro_fifo_enable
echo 1 > mag_fifo_enable
Following registers were set but IRQ is not generated:
echo 56 1 > reg_sel; echo ff > reg_val
echo 53 1 > reg_sel; echo 4 > reg_val
echo 55 1 > reg_sel; echo 1 > reg_val
Thanks.
03-30-2021 10:27 AM
Hello joma,
After executing your command, do you know which registers of BMI 270 were configured?
03-30-2021 10:54 AM
Hello BSTRobin,
here is register dump:
cd /sys/devices/virtual/input/input1
for REG in "0x00 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 0x0F 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1A 0x1B 0x1C 0x1D 0x1E 0x1F 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x2F 0x30 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49 0x4A 0x4B 0x4C 0x4D 0x4E 0x4F 0x52 0x53 0x54 0x55 0x56 0x57 0x58 0x59 0x5B 0x5C 0x5E 0x5F 0x68 0x69 0x6A 0x6B 0x6C 0x6D 0x6E 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x7C 0x7D 0x7E"; do echo REG[$REG] = `echo $REG 1 > reg_sel ; cat reg_val`; done
REG[0x00] = 24
REG[0x02] = 80
REG[0x03] = D0
REG[0x04] = 00
REG[0x05] = 00
REG[0x06] = 00
REG[0x07] = 00
REG[0x08] = 00
REG[0x09] = 00
REG[0x0A] = 00
REG[0x0B] = 00
REG[0x0C] = 8D
REG[0x0D] = F1
REG[0x0E] = 15
REG[0x0F] = F9
REG[0x10] = 98
REG[0x11] = FF
REG[0x12] = 02
REG[0x13] = FF
REG[0x14] = FA
REG[0x15] = FF
REG[0x16] = 01
REG[0x17] = FF
REG[0x18] = 26
REG[0x19] = 07
REG[0x1A] = F5
REG[0x1B] = 00
REG[0x1C] = 00
REG[0x1D] = 00
REG[0x1E] = 00
REG[0x1F] = 00
REG[0x20] = 18
REG[0x21] = 01
REG[0x22] = 00
REG[0x23] = FF
REG[0x24] = D9
REG[0x25] = 07
REG[0x26] = 40
REG[0x2F] = 01
REG[0x30] = 08
REG[0x40] = A8
REG[0x41] = 02
REG[0x42] = A9
REG[0x43] = 00
REG[0x44] = 46
REG[0x45] = 88
REG[0x46] = 00
REG[0x47] = 02
REG[0x48] = 02
REG[0x49] = F0
REG[0x4A] = 00
REG[0x4B] = 20
REG[0x4C] = 43
REG[0x4D] = 42
REG[0x4E] = 4C
REG[0x4F] = 02
REG[0x52] = 00
REG[0x53] = 04
REG[0x54] = 00
REG[0x55] = 01
REG[0x56] = FF
REG[0x57] = 00
REG[0x58] = 00
REG[0x59] = 25
REG[0x5B] = EE
REG[0x5C] = FF
REG[0x5E] = 00
REG[0x5F] = 01
REG[0x68] = 09
REG[0x69] = 00
REG[0x6A] = 00
REG[0x6B] = 20
REG[0x6C] = AA
REG[0x6D] = 00
REG[0x6E] = 00
REG[0x70] = 00
REG[0x71] = 00
REG[0x72] = 00
REG[0x73] = 00
REG[0x74] = 00
REG[0x75] = 00
REG[0x76] = 00
REG[0x77] = 00
REG[0x7C] = 00
REG[0x7D] = 07
REG[0x7E] = 00