Fxos8700 accelerometer not shown in input device event list

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Fxos8700 accelerometer not shown in input device event list

2,102件の閲覧回数
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,684件の閲覧回数
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,684件の閲覧回数
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,684件の閲覧回数
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,684件の閲覧回数
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,684件の閲覧回数
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 件の賞賛
返信