如何使用IIO子系统读取陀螺仪数据

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

如何使用IIO子系统读取陀螺仪数据

Jump to solution
2,494 Views
jy03909656
Contributor II

你好,

kernel : linux 3.10.17

使用iio子系统驱动陀螺仪mpu6050,现在遇到的问题是如何使用iio子系统去读取数据,请高人指点,谢谢。

Labels (1)
Tags (2)
0 Kudos
1 Solution
1,422 Views
jy03909656
Contributor II

Thanks a lot. I also found other information and tell me how to setup the continuous mode. But, into the problem, it is not successful for me to setup the continuous mode. I show my work:

cd /sys/bus/iio/devices

echo 123 > iio_sysfs_trigger/add_trigger

View solution in original post

0 Kudos
3 Replies
1,422 Views
jimmychan
NXP TechSupport
NXP TechSupport

you may get some idea from this:

https://community.nxp.com/thread/315448

0 Kudos
1,423 Views
jy03909656
Contributor II

Thanks a lot. I also found other information and tell me how to setup the continuous mode. But, into the problem, it is not successful for me to setup the continuous mode. I show my work:

cd /sys/bus/iio/devices

echo 123 > iio_sysfs_trigger/add_trigger

0 Kudos
1,421 Views
jy03909656
Contributor II

sorry, wrong operation.

After that, I can find the new trigger named trigger1.

So, I tried to configure the trigger in file of "iio:deviceX/trigger/" by  cmd of "ech0 sysfstrig123 > current_trigger", however, return the error with "echo:write error: Invalid argument".I dont know what happen? 

0 Kudos