PN7160 无响应

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

PN7160 无响应

跳至解决方案
15,644 次查看
chenyuansen
Contributor III

在使用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

 

是否可以协助分析下是相关流程存在问题还是其他原因呢?

 

0 项奖励
回复
1 解答
15,591 次查看
danielchen
NXP TechSupport
NXP TechSupport

which system clock source you are using?  PLL or XTAL?   This configuration is in file libnfc-nxp.conf

在原帖中查看解决方案

0 项奖励
回复
18 回复数
12,692 次查看
zengmin
Contributor I

zengmin_0-1719215570716.png

zengmin_1-1719215722034.png

 

你好 我在Android12上也是类似问题。使用的外部晶振,配置如截图,示波器测量晶振可以输出27.12的波形。

0 项奖励
回复
14,696 次查看
全林林
Contributor I

请教下,我也遇到类似问题,这个问题解决了吗?

0 项奖励
回复
15,451 次查看
Tomas_Parizek
NXP Employee
NXP Employee

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 

 

0 项奖励
回复
15,634 次查看
danielchen
NXP TechSupport
NXP TechSupport

是按照AN13189, PN7160 Android Porting Guider来移植的吗? i2c驱动是  https://github.com/NXPNFCLinux/nxpnfc 吗?

0 项奖励
回复
14,694 次查看
全林林
Contributor I

你好,我也遇到类似问题,安卓13使用pn7160,有部分机器会出现这种情况,请教一下如何排查。

0 项奖励
回复
14,693 次查看
全林林
Contributor I

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

0 项奖励
回复
14,654 次查看
Tomas_Parizek
NXP Employee
NXP Employee

Hello @全林林 , 

 

Please check the following document -> https://www.nxp.com/docs/en/application-note/AN13892.pdf 

Especially chapter 9 ->TXLDO check 

BR

 

Tomas 

 

0 项奖励
回复
14,608 次查看
全林林
Contributor I

已经解决感谢支持

0 项奖励
回复
12,708 次查看
zengmin
Contributor I
能具体说明一下 解决方法吗?
0 项奖励
回复
14,545 次查看
Tomas_Parizek
NXP Employee
NXP Employee

Ok, Perfect ! 

Let us know if you need further assistance! 

BR

Tomas 

0 项奖励
回复
15,619 次查看
chenyuansen
Contributor III

是的,客户是按照这份文档跟驱动进行移植的,目前从log看一直会有以下提示信息,是否是正常现象呢,又或者是协议栈部分还存在问题?

chenyuansen_0-1701829883885.png

 

0 项奖励
回复
15,611 次查看
danielchen
NXP TechSupport
NXP TechSupport

协议栈不会有问题, 很多客户都在使用。 可能是I2C的问题,  接收的包PN7160 无法识别

0 项奖励
回复
15,598 次查看
chenyuansen
Contributor III

但是从log看i2c已经下载固件成功了,且读写正常

chenyuansen_0-1701927843651.png

 

0 项奖励
回复
15,593 次查看
danielchen
NXP TechSupport
NXP TechSupport

please also attach the configuration file here.

标记 (1)
0 项奖励
回复
15,590 次查看
chenyuansen
Contributor III

配置文件如附加所示

0 项奖励
回复
15,579 次查看
danielchen
NXP TechSupport
NXP TechSupport

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 

标记 (1)
0 项奖励
回复
15,572 次查看
chenyuansen
Contributor III

目前配置的是PLL的,27.12M 的晶体输入,请问需要配置成多少呢?

chenyuansen_0-1701935148547.pngchenyuansen_1-1701935154699.png

 

 

0 项奖励
回复
15,592 次查看
danielchen
NXP TechSupport
NXP TechSupport

which system clock source you are using?  PLL or XTAL?   This configuration is in file libnfc-nxp.conf

0 项奖励
回复