SAR Sensor 調(diào)試完整內(nèi)容_第1頁
SAR Sensor 調(diào)試完整內(nèi)容_第2頁
SAR Sensor 調(diào)試完整內(nèi)容_第3頁
SAR Sensor 調(diào)試完整內(nèi)容_第4頁
SAR Sensor 調(diào)試完整內(nèi)容_第5頁
已閱讀5頁,還剩1頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

么是\t"file://C:\\Users\\40711\\Downloads\\SARSensorè°?èˉ?-CSDN?????¢\\_blank"SAR

SensorSAR

\t"file://C:\\Users\\40711\\Downloads\\SARSensorè°?èˉ?-CSDN?????¢\\_blank"Sensor

指的是檢測(cè)機(jī)器靠近人體的一個(gè)sensor,如果人體靠近會(huì)降低設(shè)備的發(fā)射功率,從而降低SAR。術(shù)語術(shù)語全稱seesensor

SENSORSEXECUTIONENVIRONMENT(SEE)SENSORSsscsensorSnapdragonSensorsCore參考文檔QM215平臺(tái)是sscsensor,可以閱讀如下文檔:1、80-nv610-70_g_sensors_quick_start.pdf2、80-NM328-44

SensorsOverview

80-NH058-1

SSCFeaturesfor

Linux

Android3、80-NB925-1SSCCoreCompatiableDriverSensorsDriverList4、80-NM328-74SensorsDeepDive

80-N7635-1SSCNewSensorDriverIntegrationGuideforLinuxAndroid5、80-NA811-2

AddingaCustomSensorsAlgorithmonSSCUsingSensorsAlgorithmManager(SAM)2.06、80-N7859-1,QualcommSnapdragonSensorsCore(SSC)FactoryTestFramework7、80-NA811-2,Theoem1sourcecodeexampleprovidesagoodstartingpointfordevelopingcustomsensoralgorithms.8、80-N8485-1SeeQSensorTestAndroidApplicationUserGuide.9、80-P9301-35Rev.B

80-NM328-74G

80-NK742-2A

80-n7635-1_f_snapdragon_sensors_core_(ssc)_new_sensor_driver_integration_guide_for_linux_android.pdf10、kba-190307012411_1_how_to_add_sar_sensor_hal_in_see.pdfSARSensor移植和配置以QM215項(xiàng)目需要支持SX9325SARSENSOR為例。1、\adsp_proc\Sensors\dd\qcom\inc\sns_dd.h

externsns_ddf_driver_if_ssns_dd_sx932x_if;

2、\adsp_proc\Sensors\dd\qcom\build\dd_qcom.scons

DD_SOURCES=[

"${BUILDPATH}/dd_smtc_sx932x_raw.c",

"${BUILDPATH}/dd_smtc_sx932x_raw_uimg.c",

3、\adsp_proc\Sensors\dd\qcom\src

增加如下代碼文件

dd_smtc_sx932x_raw.c

dd_smtc_sx932x_raw.h

dd_smtc_sx932x_raw_uimg.c

dd_smtc_sx932x_reg.h

4、adsp_proc\Sensors\build\Sensors.scons

env.Append(CPPDEFINES=["CONFIG_SUPPORT_SX932X"])

5、adsp_proc\Sensors\common\inc\sns_reg_common.h

#defineSNS_REG_UUID_SX932X\

{0x64,0x9d,0x2e,0x62,0x07,0x0a,0x45,0xc0,0x89,0x64,0xc4,0xca,0xd2,0xbd,0x66,0x32}

6、\Android\vendor\qcom\proprietary\sensors\dsps\sensordaemon\common\inc\sns_reg_common.h

#defineSNS_REG_UUID_SX932X\

{0x64,0x9d,0x2e,0x62,0x07,0x0a,0x45,0xc0,0x89,0x64,0xc4,0xca,0xd2,0xbd,0x66,0x32}

7、adsp_proc\Sensors\smgr\src\sns_smgr_reg.c

#ifdefCONFIG_SUPPORT_SX932X

{SNS_REG_UUID_SX932X,&sns_dd_sx932x_if},

#endif

8、adsp_proc\Sensors\ddf\inc\sns_ddf_common.h

//Addbytest@20191125forsarsensorsx932x

SNS_DDF_VENDOR_SEMTECH,

//Addend

......

}sns_ddf_vendor_e;

9、adsp_proc\Sensors\dd\qcom\src\dd_smtc_sx932x_raw.h

//Deletebeginbytest@20191125forfixbuilderror

//#include"sns_dd_daf_xm.h"

//Deleteend

10、adsp_proc\Sensors\dd\qcom\src\dd_smtc_sx932x_raw.h

//Deletebeginbytest@20191125forfixbuilderror

/*EnablethisflagwhencompilingonOpenSSCHD22builds*/

//#defineSX932X_COMPILE_FOR_HD22

//Deleteend

\t"file://C:\\Users\\40711\\Downloads\\SARSensorè°?èˉ?-CSDN?????¢\\_blank"QXDM

和reg抓日志方法adbroot

adbremount

cat/sys/bus/msm_subsys/devices/subsys1/name

echo'related'>/sys/bus/msm_subsys/devices/subsys1/restart_level

adbshellrm/mnt/vendor/persist/sensors/sns.reg//用于驗(yàn)證第一次loadsensor是否成功

adbshellsync

然后QXDM執(zhí)行send_data7537034800重啟adsp,然后抓QXDMlog

adbshellsns_regedit_ssi-r>sns_regedit_ssi.txt查看soc_id值命令:adbshellcat/sys/devices/soc0/soc_idC:\Users\aden\Desktop\adb>adbshellcat/sys/devices/soc0/soc_id386Ret=0AI寫代碼Modem/RF相關(guān)示例:QM215platfrom:

ourprojectsupportSARSensor.

M_GPIO_104/RFFE3_CLK-->TRX_TUNER_CTRL2-->V2-->MXD8545Q-->SAR_SENSOR_ANT_TRX-->ANT_TRX

M_GPIO_106/RFFE3_DATA-->TRX_TUNER_CTRL1-->V1-->MXD8545Q-->SAR_SENSOR_ANT_TRX-->ANT_TRX

M_GPIO_117--->DRX_TUNER_CTRL2-->V2-->MXD8545Q-->ANT_DRX

M_GPIO_116--->DRX_TUNER_CTRL1-->V1-->MXD8545Q-->ANT_DRXGPIO配置GPIO116and117areGRFC12and13asgrfctype.

GPIO104and106canbeusedasRFFE3CLKand

DATA.

refertoothergrfcinrfc_msm_signal_info_ag.candxmlfilesin\modem_proc\core\systemdrivers\tlmm\config\%chipsetname%.{RFC_ANT_SEL,104,0,RFC_GRFC,1,DAL_GPIO_OUTPUT,"grfc[0]"},/*Signal:RFC_MSM_RF_PATH_SEL_01,MSMPinName:GPIO_104*/

{RFC_ANT_SEL,106,2,RFC_GRFC,1,DAL_GPIO_OUTPUT,"grfc[2]"},/*Signal:RFC_MSM_RF_PATH_SEL_02,MSMPinName:GPIO_106*/

{RFC_ANT_SEL,117,13,RFC_GRFC,1,DAL_GPIO_OUTPUT,"grfc[13]"},/*Signal:RFC_MSM_RF_PATH_SEL_08,MSMPinName:GPIO_117*/

{RFC_ANT_SEL,116,12,RFC_GRFC,1,DAL_GPIO_OUTPUT,"grfc[12]"},/*Signal:RFC_MSM_RF_PATH_SEL_16,MSMPinName:GPIO_116*/針對(duì)GPIO104and106canbeusedasRFFE3CLKandDATA.是否要做改動(dòng),需要咨詢射頻關(guān)于這GPIO的功能。一般情況下,RFgpio會(huì)在

rfc_msm_signal_info_ag.c被定義作為不同的RF功能,這與rfcard中的重復(fù)使用無關(guān)。如果你細(xì)看,你也會(huì)發(fā)現(xiàn)一些gpio被重新定義了。針對(duì)grfc可以閱讀80_NE606_4。如何降DSI值從APP

側(cè)通過QMI傳給modem。QM215isJolokiamodembasedchipset.Pleaseread

80-P5282-1

carefullytounderstandtheDSIbasedSARpowerbackoffmechanism.1.YouwillneedtriggerQMImessagefromAPtomodemwhileSARsensorinputindicatesSARpowerlimitbackoffisneeded.

2.modemRFsoftwareandrelatedNVitemsarepresentinMPSS.JOsoftwarealready.

3.check80-P5282-1aboutthediagcommandforcingtoapplyDSIvalue.Relatedloganalysisisalsoenclosedinthisdoc.

4.80-P5282-1(DSIbasedSARpowerbackoff)and80-NT112-100forJolokiamodemRFNV.AP通過QMI接口將此DSI發(fā)送到modem,這塊需要OEM廠家自己寫AP側(cè)代碼實(shí)現(xiàn)。把需要做SARlimitbackoff的場(chǎng)景轉(zhuǎn)換成QMI上的DSI設(shè)置消息。因?yàn)槊考铱蛻羰褂玫腟ensor或者感興趣的場(chǎng)景都不一樣,Qualcomm只提供QMI接口。實(shí)際上,這與RFSW無關(guān)。Pleasecheck80-P5282-1forgeneralintroductionofDSIbasedSARpowerbackoff.

TheQMImessagecarryingDSIvaluefromAPtomodemisincludedinthisdocument.However,howtotranslatethe"sensoroutput"totheeventsendingQMImessage,Qualcommdoesn'thaveany

reference

code(APcode)becauseeverycustomer'simplementationisdifferentfromothers.Youneedtoimplementitbyyourself.youcancheckKBA-170705202734--how_to_set_sar_rf_state_from_ap_sideForthisKBA-170705202734RILsidejustsupporta

API

QCRIL_EVT_HOOK_SET_TRANSMIT_POWERforOEMcansettheSARinfo.

normaloemcanextendapiat

vendor/qcom/proprietary/qcrilOemHook/src/com/qualcomm/qcrilhook/QcRilHook.java

suchasbelowtempcode

publicbooleanqcRilSetTransmitPower(intpower,intphoneId){

booleanretval=false;

intrequestId=QCRIL_EVT_HOOK_SET_TRANSMIT_POWER;

byte[]request=newbyte[mHeaderSize+INT_SIZE];

ByteBufferreqBuffer=createBufferWithNativeByteOrder(request);

Log.d(LOG_TAG,"qcRilSetTransmitPowerpower:"+pow

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論