Qualcomm platform Sensor debugging skills 01

MSM8953 check modem version number

  8953_MODEM_P\MPSS.TA.3.0\modem_proc\build\ms\XXX_CUSTOM\xxxcust_prj.h
  #define IVSN_PRJ  XXX-Q02-STD-ZN-008

Sensor - Source of UUID

The Qcom debugging OK driver will contain

sensor_def_qcomdev.conf  

vendor\qcom\proprietary\sensors\dsps\reg_defaults

Open Sensor Hal Log - msm8953

 how to open hal log :
 adb root 
 adb wait-for-device 
 adb remount 
 adb shell "echo persist.debug.ar.hal=1 >> /system/build.prop" 
 adb shell "echo persist.debug.sensors.hal=1 >> /system/build.prop" 
 adb shell "echo debug.qualcomm.sns.libsensor1=1 >> /system/build.prop" 
 adb shell "echo debug.qualcomm.sns.daemon=1 >> /system/build.prop" 
 adb shell sync 
 adb reboot

View Sensor configuration file - msm8953 

adb pull vendor/etc/sensors/sensor_def_qcomdev.conf

Update Sensor configuration file - msm8953

After confirming the paths to the above files, update the sensor_def_qcomdev.conf file as follows:

 adb root
 adb wait - for - device 
 adb remount 
 adb shell rm /vendor/etc/sensors/sensor_def_qcomdev.Conf 
 adb push sensor_def_qcomdev.Conf  /vendor/etc/sensors/sensor_def_qcomdev. Conf 
 adb shell chmod 644 / vendor/etc/sensors/sensor_def_qcomdev.Conf 

 adb shell rm /mnt/vendor/persist/sensors/sns.reg  

// To update the sensor_def_qcomdev.conf file, you need to delete sns.reg and restart it, then you can generate a new sns.reg again, otherwise the old file will be loaded on the next startup
 adb shell sync
 adb reboot 

Read sensor configuration information - msm8953

adb shell sns_regedit_ssi -r 

Read the sensor device information of the current platform - msm8953

adb shell sns_dsps_tc0001

Find the adsp node of the Sensor

Find out which subsytem number is adsp 
root@apq8084:/sys/bus/msm_subsys/devices # for i in `ls`; do echo $i:; cat ./$i/name; done; 

Sensor - enable SSR

Enable SSR 
non-persistent; must do every boot - assumes subsys2 is adsp from above
(non-persistent; must do every boot - assumes subsys2 is adsp from above) 

adb root 
adb wait-for-device 
adb remount 
adb shell "echo related > /sys/bus/msm_subsys/devices/subsys2/restart_level" 
adb shell sync 

Sensor - send QXDM directory

From QXDM send the command: 
- For ADSP Targets: "send_data 75 37 03 48"

rain wet eyes

Guess you like

Origin blog.csdn.net/FANG_YISHAO/article/details/120664472