72 上 M-sensor mag3110 调试 请求帮助
时间:10-02
整理:3721RD
点击:
新增加了一个地磁传感器,mag3110 打印log 显示 IIC 通信正常
[ 1.205554] (0)[1:swapper/0]<HWMSEN> hwmsen_probe
[ 1.206184] (0)[1:swapper/0]<HWMSEN> hwmsen_alloc_object
[ 1.207173] (0)[1:swapper/0]<HWMSEN> hwmsen_create_attr
[ 1.207850] (0)[1:swapper/0]hwmon_sensor device!
[ 1.212635] (1)[1:swapper/0]<HWMSEN> hwmsen_attach
[ 1.213287] (1)[1:swapper/0]sensor_gsensor device!MSENSOR mag3110 hwmsen_read_byte_sr
[ 1.215162] (1)[1:swapper/0]MSENSOR MAG3110_WHO_AM_I = c4
[ 1.216314] (1)[1:swapper/0]MSENSOR mag3110 hwmsen_read_byte_sr
[ 1.217484] (1)[1:swapper/0]<HWMSEN> hwmsen_attach
[ 1.218080] (1)[1:swapper/0]<HWMSEN> hwmsen_attach
[ 1.218674] (1)[1:swapper/0]MSENSORmag3110_I2C_probe: OK
[ 1.219373] (1)[1:swapper/0]sensor_msensor device!sensor_osensor device!
.......
[ 25.796016] (0)[576:system_server]<HWMSEN> hwmsen_open
[ 25.797712] (1)[576:system_server]<HWMSEN> update_workqueue_polling_rate
[ 25.798562] (1)[576:system_server]<HWMSEN> set old fastest sensor delay as workqueue base time=200
[ 25.799688] (1)[576:system_server]<HWMSEN> sensor(0), flag(0)
[ 25.800481] (1)[576:system_server]<HWMSEN> hwmsen_enable 514 : the sensor (7) is not attached!
[ 25.801774] (1)[576:system_server]<HWMSEN> hwmsen_enable 514 : the sensor (4) is not attached!
[ 25.803223] (1)[576:system_server]<HWMSEN> hwmsen_enable 514 : the sensor (3) is not attached!
[ 25.804503] (1)[576:system_server]<HWMSEN> hwmsen_enable_nodata
[ 25.805427] (1)[576:system_server]<HWMSEN> hwmsen_enable_nodata
[ 25.806380] (0)[576:system_server]<HWMSEN> update_workqueue_polling_rate
[ 25.807399] (0)[576:system_server]<HWMSEN> set old fastest sensor delay as workqueue base time=200
[ 25.808530] (0)[576:system_server]<HWMSEN> sensor(2), flag(0)
[ 25.809320] (0)[576:system_server]<HWMSEN> update_workqueue_polling_rate
[ 25.810307] (0)[576:system_server]<HWMSEN> set old fastest sensor delay as workqueue base time=200
[ 25.811437] (0)[576:system_server]<HWMSEN> sensor(1), flag(0)
开机后运行APK M-sensor 没有反应 log 显示为
312.812160] (1)[576:system_server]<HWMSEN> ioctl delay handle=0,delay =66
[ 312.813768] (1)[576:system_server]<HWMSEN> update_workqueue_polling_rate
[ 312.814599] (1)[576:system_server]<HWMSEN> set old fastest sensor delay as workqueue base time=66
[ 312.815706] (1)[576:system_server]<HWMSEN> update_workqueue_polling_rate,set delayCountSet=0 delay =66 handle=0
[ 312.815880] (0)[1973:kworker/0:3][power/WMT_Thermal] [wmt_thz_get_temp] temp = 0
[ 312.818406] (1)[587:Binder_1]<HWMSEN> ioctl delay handle=0,delay =10
[ 312.819941] (1)[587:Binder_1]<HWMSEN> update_workqueue_polling_rate
[ 312.820717] (1)[587:Binder_1]<HWMSEN> set old fastest sensor delay as workqueue base time=10
[ 312.821769] (1)[587:Binder_1]<HWMSEN> update_workqueue_polling_rate,set delayCountSet=0 delay =10 handle=0
[ 312.823254] (1)[1037:Binder_8]<HWMSEN> sensor(1), flag(1)
[ 312.823938] (1)[1037:Binder_8]<HWMSEN> ioctl delay handle=1,delay =200
[ 312.824745] (1)[1037:Binder_8]<HWMSEN> update_workqueue_polling_rate
[ 312.825536] (1)[1037:Binder_8]<HWMSEN> set old fastest sensor delay as workqueue base time=10
[ 312.826633] (1)[1037:Binder_8]<HWMSEN> update_workqueue_polling_rate,set delayCountSet=0 delay =10 handle=0
[ 312.827859] (1)[1037:Binder_8]<HWMSEN> update_workqueue_polling_rate:set delayCountSet=20 delay =200 handle=1
[ 312.829519] (1)[883:Binder_3]<HWMSEN> ioctl delay handle=1,delay =10
[ 312.830311] (1)[883:Binder_3]<HWMSEN> update_workqueue_polling_rate
[ 312.831090] (1)[883:Binder_3]<HWMSEN> set old fastest sensor delay as workqueue base time=10
[ 312.832143] (1)[883:Binder_3]<HWMSEN> update_workqueue_polling_rate,set delayCountSet=0 delay =10 handle=0
[ 312.833506] (1)[883:Binder_3]<HWMSEN> update_workqueue_polling_rate,set delayCountSet=0 delay =10 handle=1
[ 312.836871] (0)[890:Binder_5]<HWMSEN> ioctl delay handle=0,delay =10
[ 312.838593] (1)[890:Binder_5]<HWMSEN> update_workqueue_polling_rate
[ 1.205554] (0)[1:swapper/0]<HWMSEN> hwmsen_probe
[ 1.206184] (0)[1:swapper/0]<HWMSEN> hwmsen_alloc_object
[ 1.207173] (0)[1:swapper/0]<HWMSEN> hwmsen_create_attr
[ 1.207850] (0)[1:swapper/0]hwmon_sensor device!
[ 1.212635] (1)[1:swapper/0]<HWMSEN> hwmsen_attach
[ 1.213287] (1)[1:swapper/0]sensor_gsensor device!MSENSOR mag3110 hwmsen_read_byte_sr
[ 1.215162] (1)[1:swapper/0]MSENSOR MAG3110_WHO_AM_I = c4
[ 1.216314] (1)[1:swapper/0]MSENSOR mag3110 hwmsen_read_byte_sr
[ 1.217484] (1)[1:swapper/0]<HWMSEN> hwmsen_attach
[ 1.218080] (1)[1:swapper/0]<HWMSEN> hwmsen_attach
[ 1.218674] (1)[1:swapper/0]MSENSORmag3110_I2C_probe: OK
[ 1.219373] (1)[1:swapper/0]sensor_msensor device!sensor_osensor device!
.......
[ 25.796016] (0)[576:system_server]<HWMSEN> hwmsen_open
[ 25.797712] (1)[576:system_server]<HWMSEN> update_workqueue_polling_rate
[ 25.798562] (1)[576:system_server]<HWMSEN> set old fastest sensor delay as workqueue base time=200
[ 25.799688] (1)[576:system_server]<HWMSEN> sensor(0), flag(0)
[ 25.800481] (1)[576:system_server]<HWMSEN> hwmsen_enable 514 : the sensor (7) is not attached!
[ 25.801774] (1)[576:system_server]<HWMSEN> hwmsen_enable 514 : the sensor (4) is not attached!
[ 25.803223] (1)[576:system_server]<HWMSEN> hwmsen_enable 514 : the sensor (3) is not attached!
[ 25.804503] (1)[576:system_server]<HWMSEN> hwmsen_enable_nodata
[ 25.805427] (1)[576:system_server]<HWMSEN> hwmsen_enable_nodata
[ 25.806380] (0)[576:system_server]<HWMSEN> update_workqueue_polling_rate
[ 25.807399] (0)[576:system_server]<HWMSEN> set old fastest sensor delay as workqueue base time=200
[ 25.808530] (0)[576:system_server]<HWMSEN> sensor(2), flag(0)
[ 25.809320] (0)[576:system_server]<HWMSEN> update_workqueue_polling_rate
[ 25.810307] (0)[576:system_server]<HWMSEN> set old fastest sensor delay as workqueue base time=200
[ 25.811437] (0)[576:system_server]<HWMSEN> sensor(1), flag(0)
开机后运行APK M-sensor 没有反应 log 显示为
312.812160] (1)[576:system_server]<HWMSEN> ioctl delay handle=0,delay =66
[ 312.813768] (1)[576:system_server]<HWMSEN> update_workqueue_polling_rate
[ 312.814599] (1)[576:system_server]<HWMSEN> set old fastest sensor delay as workqueue base time=66
[ 312.815706] (1)[576:system_server]<HWMSEN> update_workqueue_polling_rate,set delayCountSet=0 delay =66 handle=0
[ 312.815880] (0)[1973:kworker/0:3][power/WMT_Thermal] [wmt_thz_get_temp] temp = 0
[ 312.818406] (1)[587:Binder_1]<HWMSEN> ioctl delay handle=0,delay =10
[ 312.819941] (1)[587:Binder_1]<HWMSEN> update_workqueue_polling_rate
[ 312.820717] (1)[587:Binder_1]<HWMSEN> set old fastest sensor delay as workqueue base time=10
[ 312.821769] (1)[587:Binder_1]<HWMSEN> update_workqueue_polling_rate,set delayCountSet=0 delay =10 handle=0
[ 312.823254] (1)[1037:Binder_8]<HWMSEN> sensor(1), flag(1)
[ 312.823938] (1)[1037:Binder_8]<HWMSEN> ioctl delay handle=1,delay =200
[ 312.824745] (1)[1037:Binder_8]<HWMSEN> update_workqueue_polling_rate
[ 312.825536] (1)[1037:Binder_8]<HWMSEN> set old fastest sensor delay as workqueue base time=10
[ 312.826633] (1)[1037:Binder_8]<HWMSEN> update_workqueue_polling_rate,set delayCountSet=0 delay =10 handle=0
[ 312.827859] (1)[1037:Binder_8]<HWMSEN> update_workqueue_polling_rate:set delayCountSet=20 delay =200 handle=1
[ 312.829519] (1)[883:Binder_3]<HWMSEN> ioctl delay handle=1,delay =10
[ 312.830311] (1)[883:Binder_3]<HWMSEN> update_workqueue_polling_rate
[ 312.831090] (1)[883:Binder_3]<HWMSEN> set old fastest sensor delay as workqueue base time=10
[ 312.832143] (1)[883:Binder_3]<HWMSEN> update_workqueue_polling_rate,set delayCountSet=0 delay =10 handle=0
[ 312.833506] (1)[883:Binder_3]<HWMSEN> update_workqueue_polling_rate,set delayCountSet=0 delay =10 handle=1
[ 312.836871] (0)[890:Binder_5]<HWMSEN> ioctl delay handle=0,delay =10
[ 312.838593] (1)[890:Binder_5]<HWMSEN> update_workqueue_polling_rate
估计服务没有跑起来。
他的线程没有工作。