1.NFC开关能打开,深圳公交卡1%机器不能读出
开关能打开,基本就是射频问题
NFC问题分析流程:
1.I2C通信检查
pn544_test 读写/dev/pn544设备节点
示波器检查I2C波形
2.芯片上电时序检查
download pin
enable pin
3.进入download模式pin序检查
4.开机完整log
5.打开kernel中的read()/write()数据buffer的log
HD和NFCC之间的通信的数据要符合NCI SPEC
6.绿色led检查NFC电场
7.示波器线圈读NFC电场,规整的波形,频率在13.5MHz左右
8.NFC开关可以成功打开,但是读不到任何一种卡,
检查NFC的输入时钟,是否正常,更换平台8939以后,时钟域是gcc还是rpm
9.enable OMA on msm8952_64
Dear customer,\Please follow below instructions to enable OMAPI in config/makefile
and make sure to modify your DTSI to match your HW schematic and make sure not to mixed NFC SW release from NXP.
vendor/qcom/proprietary/common/<TARGET>/BoardConfigVendor.mk
- TARGET_ENABLE_PROPRIETARY_SMARTCARD_SERVICE := true
- TARGET_USES_QCA_NFC := false //这个变量的意思是qcom认证兼容的Legacy NFC设备
//在device/qcom/msm8952_64/msm8952_64.mk中也指定了这个变量为other
device/qcom/<TARGET>/<TARGET>.mk
- TARGET_USES_NQ_NFC := true //这个变量的意思是qcom新认证的NFC(NQ210)
TARGET_USES_QCA_NFC is for Qualcomm Legacy NFC code(QCA1990).
TARGET_USES_NQ_NFC is for new NQxx code.
10.how to enable OMA on msm8939?
device/qcom/common/base.mk
@@ -639,6 +639,9 @@ PRODUCT_PACKAGES := \
NfcNci \
libnfc-nci \
libnfc_nci_jni \
nfc_nci.pn54x.default \
com.android.nfc_extras \
Tag \
+ SmartcardService \ //添加这些target
+ org.simalliance.openmobileapi \
+ org.simalliance.openmobileapi.xml \
qcrilsetsn
添加SmartCardService目录,应该是M版本的代码完全一样
修改文件
/common/msm8916/BoardConfigVendor.mk
/common/msm8916_32/BoardConfigVendor.mk
修改文件common/config/device-vendor.mk
OMA添加成功的标志:
1.编译出out/target/product/msm8916_64/system/vendor/app/SmartcardService/SmartcardService.apk
2.开机进程可以跑起来
3.执行openmobile_testapplication
adb install OMAPISuite.apk
select sim1
test all cases in runner, no error reported, no content in the foler of /sdcard/OMAPISUITE/Logs/
if there's no logs in the OMAPISUITE/logs , and all the tests are green in OMAPISuite APK, it means test passes.