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,992件の閲覧回数
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,218件の閲覧回数
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,488件の閲覧回数
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,878件の閲覧回数
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 件の賞賛
返信