'JavaCard with DESFire emulation get Uid´s

I´ve got a JavaCard (SmartMX) with emulated DESFire EV2 and want to get both Uid´s from DESFire and JavaCard.

Therefor I´ve found the following APDU command:

0xFF, 0xCA, 0x00, 0x00, 0x00

But only get the DESFire Uid. May someone tell how to retreive the JavaCard Uid?

I´m using PCSC Lib together with C# .net5.

The documentation is saying, that the first protokoll which is called will be proceed. Therefor I´ve tried to read JavaCard free memory with APDU:

0x00, 0xB0, 0x00, 0x00, 0x02

But after again calling GetUid I´ve received again the DESFire CSN/Uid. May someone also tell which format a JavaCard´s Uid has?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source