I want to read the on board sensor in im8qmmek boark using yacto platform

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I want to read the on board sensor in im8qmmek boark using yacto platform

469 次查看
Velan
Contributor I

Hi ,

I'm using the imx8qm-mek for development. As per the board specification it has the multiple sensor on board.. so i want to read those sensor data on yacto platform..

1.  i was try to change the device tree file to  enable and read the data  by writing c file..

2. but don't have the prepare guides to follow and read  the data from the on board sensor..

3. Another one method of reading data by using yacto sdk platform this method how to use.. please guide me to interface and read data..

#imx8

0 项奖励
回复
1 回复

435 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Please make sure these configs are enabled in kernel defconfig.

 

 

Snipaste_2025-02-10_10-40-35.jpg

To read the sensor data, please refer this case, access /sys/bus/iio/devices/iio\:device0/ node in sysfs.

https://community.nxp.com/t5/i-MX-Processors/How-to-read-iio-device-in-user-space/m-p/733081

 



Best Regards,
Zhiming

0 项奖励
回复