How can i set a specific UID to PN7150 when i run in HCE mode?

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

How can i set a specific UID to PN7150 when i run in HCE mode?

2,913 次查看
1443281858
Contributor II

   when i run the libnfc-nci demoapp in share mode,the reader device shows that the uid of  pn7150 is "040302010400",but how can i set a specific UID to PN7150?

   what document i can reference?

标签 (1)
标记 (3)
0 项奖励
回复
3 回复数

2,139 次查看
Izzy
Contributor I

Thanks @IvanRuiz . I don't seem to be able to find said "config" values anywhere inside the folder where the demo app and driver lives.

I'm so close to getting where I want to be (changing UIDs programmatically) but I'm lacking a concrete example. Instead of `04:03:02:01`, I'd like it to be, for example, `08:07:06:05` or whatever. NOTE that I'm using the USB dongle https://rlx.sk/en/development-tools/6919-nfc-usb-dongle-mikroe-2540-nfc-reader-writer-nxp-pn7150.htm...

 

0 项奖励
回复

2,409 次查看
Izzy
Contributor I

Hi,

I don't suppose that there is a way to control the uid?. I'm looking for a solution to perform the emulation with a given uid, not random.

Thanks beforehand,

Israel

0 项奖励
回复

2,799 次查看
IvanRuiz
NXP Employee
NXP Employee

Hello,

A random Id can be enabled in this case. -Random ID can be set when PN7150 is configured in HCE

- in type A, LA_NFCID1 (NCI parameter Tag 0x33) must be set as zero length (while otherwise it is set as 4, 7 or 10 bytes length)

   CORE_SET_CONFIG = "20 02 03 01 33 00"

- in type B, LB_NFCID0 (NCI parameter Tag 0x39) must be set as zero length (while otherwise it is set 4 bytes length)

   CORE_SET_CONFIG = "20 02 03 01 39 00"

Hope this helps!

BR,

Ivan.

0 项奖励
回复