在使用PN7160调试过程中,已确定I2C调通,但是读卡无响应,以下为相关log:
12-05 15:45:56.600 1221 4662 E libnfc_nci: [ERROR:nci_hrcv.cc(305)] unknown opcode:0x23
12-05 15:45:56.600 280 4656 D NxpTml : PN54X - Invoking I2C Read.....
12-05 15:45:57.093 280 4656 E NxpTml : Read _>>>>> Empty packet recieved !!
12-05 15:45:57.093 280 4656 D NxpTml : PN54X - I2C Read successful.....
12-05 15:45:57.093 280 4656 D NxpNciR : len = 3 > 612100
12-05 15:45:57.094 280 4656 D NxpTml : PN54X - Posting read message.....
12-05 15:45:57.094 280 4659 D NxpHal : read successful status = 0x0
12-05 15:45:57.094 280 4659 D NfccPowerTracker: NfccPowerTracker::ProcessNtf: Enter
12-05 15:45:57.095 1221 4662 I libnfc_nci: [INFO:nfc_ncif.cc(501)] NFC received ntf gid:1
12-05 15:45:57.095 280 4656 D NxpTml : PN54X - Read requested.....
12-05 15:45:57.095 280 4656 D NxpTml : PN54X - Invoking I2C Read.....
12-05 15:45:57.095 1221 4662 E libnfc_nci: [ERROR:nci_hrcv.cc(305)] unknown opcode:0x21
12-05 15:45:57.096 280 4656 E NxpTml : Read _>>>>> Empty packet recieved !!
12-05 15:45:57.096 280 4656 D NxpTml : PN54X - I2C Read successful.....
12-05 15:45:57.096 280 4656 D NxpNciR : len = 3 > 612300
12-05 15:45:57.096 280 4656 D NxpTml : PN54X - Posting read message.....
12-05 15:45:57.097 280 4659 D NxpHal : read successful status = 0x0
12-05 15:45:57.097 280 4659 D NfccPowerTracker: NfccPowerTracker::ProcessNtf: Enter
12-05 15:45:57.098 1221 4662 I libnfc_nci: [INFO:nfc_ncif.cc(501)] NFC received ntf gid:1
12-05 15:45:57.098 280 4656 D NxpTml : PN54X - Read requested.....
12-05 15:45:57.098 280 4656 D NxpTml : PN54X - Invoking I2C Read.....
12-05 15:45:57.098 1221 4662 E libnfc_nci: [ERROR:nci_hrcv.cc(305)] unknown opcode:0x23
是否可以协助分析下是相关流程存在问题还是其他原因呢?
Solved! Go to Solution.
which system clock source you are using? PLL or XTAL? This configuration is in file libnfc-nxp.conf
你好 我在Android12上也是类似问题。使用的外部晶振,配置如截图,示波器测量晶振可以输出27.12的波形。
请教下,我也遇到类似问题,这个问题解决了吗?
Hello chenyuansen,
What power supply are you using for VUP?
Can you check the following AN -> https://www.nxp.com/docs/en/application-note/AN13892.pdf , please?
Especially page 19 -> TXLDO check
BR
Tomas
是按照AN13189, PN7160 Android Porting Guider来移植的吗? i2c驱动是 https://github.com/NXPNFCLinux/nxpnfc 吗?
你好,我也遇到类似问题,安卓13使用pn7160,有部分机器会出现这种情况,请教一下如何排查。
03-12 16:48:06.856 1248 1453 I libnfc_nci: [INFO:nfc_ncif.cc(815)] NFC received ntf gid:1
03-12 16:48:06.857 1248 1453 E libnfc_nci: [ERROR:nci_hrcv.cc(336)] unknown opcode:0x23
03-12 16:48:06.857 326 1455 D NxpTml : PN54X - Read requested.....
03-12 16:48:06.858 326 1455 D NxpTml : PN54X - Invoking I2C Read.....
01-18 08:00:48.215 1455 1455 W pn544_dev_read: reading 3 bytes.
01-18 08:00:48.215 1455 1455 W pn544_dev_read: block in reading.
03-12 16:48:07.138 485 516 W libprocessgroup: Failed to open /dev/stune/background/cgroup.procs: No such file or directory
01-18 08:00:48.709 0 0 W : [ C0] pn544 irq enter ----
01-18 08:00:48.709 1455 1455 W pn544_dev_read: Wakeup form irq.
01-18 08:00:48.709 1455 1455 W pn544_dev_read: start i2c transfer.
03-12 16:48:07.353 326 1455 E NxpTml : _>>>>> Empty packet recieved !!
03-12 16:48:07.353 326 1455 D NxpTml : PN54X - I2C Read successful.....len = 3
03-12 16:48:07.353 326 1455 D NxpTml : PN54X - Posting read message.....
03-12 16:48:07.353 326 1455 D NxpNciR : len = 3 <= 612300
03-12 16:48:07.353 326 1458 D NxpHal : read successful status = 0x0
03-12 16:48:07.355 326 1455 D NxpTml : PN54X - Read requested.....
03-12 16:48:07.355 326 1455 D NxpTml : PN54X - Invoking I2C Read.....
01-18 08:00:48.710 1455 1455 W IFD->PC :
01-18 08:00:48.710 1455 1455 W : 61
01-18 08:00:48.710 1455 1455 W : 23
01-18 08:00:48.710 1455 1455 W : 00
01-18 08:00:48.712 1455 1455 W pn544_dev_read: reading 3 bytes.
03-12 16:48:07.355 1248 1453 I libnfc_nci: [INFO:nfc_ncif.cc(815)] NFC received ntf gid:1
01-18 08:00:48.712 1455 1455 W pn544_dev_read: block in reading.
03-12 16:48:07.357 1248 1453 E libnfc_nci: [ERROR:nci_hrcv.cc(336)] unknown opcode:0x23
Hello @全林林 ,
Please check the following document -> https://www.nxp.com/docs/en/application-note/AN13892.pdf
Especially chapter 9 ->TXLDO check
BR
Tomas
已经解决感谢支持
Ok, Perfect !
Let us know if you need further assistance!
BR
Tomas
是的,客户是按照这份文档跟驱动进行移植的,目前从log看一直会有以下提示信息,是否是正常现象呢,又或者是协议栈部分还存在问题?
协议栈不会有问题, 很多客户都在使用。 可能是I2C的问题, 接收的包PN7160 无法识别
但是从log看i2c已经下载固件成功了,且读写正常
Hi @chenyuansen
From your log, RF_PLL_UNLOCKED_NTF, it implies the clock source configuration not right. please double check the clock configuration.
Regards
Daniel
目前配置的是PLL的,27.12M 的晶体输入,请问需要配置成多少呢?
which system clock source you are using? PLL or XTAL? This configuration is in file libnfc-nxp.conf