More details: st_pressure: lps22hb: ===================== Temperature reading on pressure sensor LPS22HB is not correct from IIO sysfs or devfs Reading from I2C: 37.64 °C
Reading from IIO sysfs: 0 °C in_temp_raw: 0 in_temp_scale: 10 Reading from IIO devfs: -307200.0 °C "0088" is the raw output for temperature got from following output: root@caracalla:~# cat /dev/iio\:device3 | xxd - 00000000: ee14 3e66 0088 3614 3e66 0088 7914 3e66 ..>f..6.>f..y.>f 00000010: 0088 ff14 3e66 0088 ff14 3e66 0088 8214 ....>f....>f.... st_accel: lng2dm: ================= Reading of accelerometer LNG2DM is not correct from IIO devfs >From I2C: Reading of accel_x channel from I2C: 0.15298374 m/(s^2) Reading of accel_y channel from I2C: 9.9439431 m/(s^2) Reading of accel_z channel from I2C: 0.91790244 m/(s^2) >From IIO sysfs(Got by (raw + offset)*scale ): Reading of accel_x channel from IIO sysfs: 0.152983 m/(s^2) Reading of accel_y channel from IIO sysfs: 9.943895000000001 m/(s^2) Reading of accel_z channel from IIO sysfs: 0.9178980000000001 m/(s^2) >From IIO devfs: Reading of accel_x channel from IIO devfs: 0.152983 m/(s^2) Reading of accel_y channel from IIO devfs: 0.0 m/(s^2) Reading of accel_z channel from IIO devfs: 9.943895000000001 m/(s^2) Have checked channel index: 0 for x, 1 for y, 2 for z So "01" for x, "00" for y, "41" for z are the raw output got from following output: root@caracalla:/# cat /dev/iio\:device2 | xxd - 00000000: 0100 4101 0041 0100 4101 0041 0000 4101 ..A..A..A..A..A. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1676356 Title: Channel data values for IIO based st_sensors (st_accel, st_pressure) are incorrect To manage notifications about this bug go to: https://bugs.launchpad.net/hwe-next/+bug/1676356/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs