STMicroelectronics / STMems_Linux_IIO_drivers

DISCONTINUED (October 2022): the maintenance for this repository has been discontinued. Please refer to https://github.com/STMicroelectronics/st-mems-android-linux-drivers-iio for the up-to-date drivers repository. This repository contains Linux Kernel (v3.10, v3.14, v3.18, v4.9, v4.14, v4.19) including STMicroelectronics MEMS IIO sensor support
Other
76 stars 43 forks source link

Reading lsm6dso32 data via libiio not possible #15

Open nilskuhn opened 2 years ago

nilskuhn commented 2 years ago

We are using lsm6dso32 accelerometer/gyroscope connected to a custom hardware (non-ST) via i2c. We are building a custom linux (kernel version 5.4) via yocto for our board and integrated this driver for lsm6dso32 support into it. I am assuming, that it is more or less the driver from this repository. I want to read lsm6dso32 data via libiio. My problem is (similar to this one for a different IMU) that I can read single values from sysfs, but there are no scan_elements folders in sysfs iio device folders. This way, I am not able, to use libiio to read measured values from a buffer. Basically, I am not able to use libiio at all, which is quite annoying.

I already created an issue in ST Microelectronics community forum: https://community.st.com/s/question/0D53W00001m9jLYSAY/read-lsm6dso32-data-via-libiio

Just wanted to increase possible attention for the issue ;)

mariotesi commented 1 year ago

it would be possible to have the kernel logs related to the device:

dmesg | grep lsm6

Moreover, have all the suggestions for the integration of the drivers reported in the README.md been carried out, especially those relating to the configuration of the interrupts (necessary in the case of IIO buffer support) ?