无法使用ADB在/sys/class/input或android中的getevent中找到传感器数据 [英] Cannot find sensor data in /sys/class/input or getevent in android using adb

查看:172
本文介绍了无法使用ADB在/sys/class/input或android中的getevent中找到传感器数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试捕获由加速度计和陀螺仪传感器生成的事件,并将其放入日志文件中.但是我看不到任何事件.仅显示6个事件,但这些传感器均不显示.

I am trying to capture the events generated by accelerometer and gyroscope sensors and put them into a log file. But I am not able to see any events for them. Only 6 events are being shown, but none is for these sensors.

getevent显示这些值.我还检查了sys/class/input里面的内容,它显示了相同的内容

getevent is showing these values. I also checked inside sys/class/input which shows the same thing

/sys/class没有用于我的移动设备的任何传感器目录.那么我在哪里可以找到sysfs或devfs中的传感器数据?

The /sys/class don't have any sensors directory as such for my mobile. So where can I look for the sensor data in sysfs or devfs?

推荐答案

所有单独的传感器都直接连接到主AP(应用程序处理器)并因此具有单独的设备驱动程序的旧架构效率极低(AP具有醒来以接收传感器事件).在许多更新的设备中,它已被新的架构取代,该架构将传感器连接到

The old architecture where all separate sensors were connected directly to the main AP (application processor) and therefore had separate device drivers has been extremely power inefficient (the AP had to be awake in order to receive the sensor events). In many newer devices it has been replaced with the new architecture where sensors are connected to the SensorHub instead which manages the event queues now.

这篇关于无法使用ADB在/sys/class/input或android中的getevent中找到传感器数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆