Fxos8700 accelerometer not shown in input device event list

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

Fxos8700 accelerometer not shown in input device event list

2,113 次查看
prathamrahate
Contributor III

Hi,

I am having custom board with fxos8700 sensor. Sensor is getting probed successfully. Also using i2c-tools i am getting data from sensor. But i could not find sensor entry under /dev/input/eventX of linux. I can see /dev/FreescaleAccelerometer entry.

What could be reason for this?? Also are there any applications (games) through which i can verify accelerometer data??

Thanks,

Prathamesh

标签 (3)
标记 (3)
0 项奖励
回复
5 回复数

1,695 次查看
david_diaz
NXP Employee
NXP Employee

Hello,

I have attached a FXOS8700CQ Sensor driver compatible with Linux in case it is useful for you.

Using the file mentioned, you can read the sensor 6-axis raw data.

 

I hope it helps as a reference for your application.

Regards,

David

0 项奖励
回复

1,695 次查看
prathamrahate
Contributor III

Hi David,

Thanks for the reply. I am not using android platform. I am working on ubuntu core system.

I have gone through the driver you have shared, it looks different than the one which i have in my linux kernel.

I am using 3.14.52 kernel.

Thanks,

Prathamesh

0 项奖励
回复

1,695 次查看
brenolima
NXP Employee
NXP Employee

Hi,

You can use the evtest application for testing the senor.

Maybe it's necessary to enable the sensor, for example enabling FXOS8700 on the i.MX7D SabreSD board:

$ echo 1 > /sys/devices/virtual/misc/FreescaleAccelerometer/enable

$ echo 1 > /sys/devices/virtual/misc/FreescaleMagnetometer/enable

Best regards,

Breno Lima

0 项奖励
回复

1,695 次查看
prathamrahate
Contributor III

Hi Breno,

Thanks for your reply. But i do not have FreescaleAccelerometer under /sys/devices/virtual/misc/ path.

Do you know wt could be the reason?

Thanks,

Prathamesh

0 项奖励
回复

1,695 次查看
brenolima
NXP Employee
NXP Employee

Hi,

Are you using the driver located at drivers/misc/fxos8700.c? Check if it's enabled in kernel menuconfig and also your dts file.

Maybe the following commits can help:

linux-imx.git - i.MX Linux Kernel 

linux-imx.git - i.MX Linux Kernel 

Regards,

Breno Lima

0 项奖励
回复