1

I'm looking for a solution to read/write raw data from and to mifare classic tags. On Android, there is NFC Taginfo, NXP TagInfo and MIFARE Classic Tool.

Alternatively, I would be willing to program my own macos application if somebody could point me to some good resources on how the pc/sc and nfc communications are supposed to work.

PLEASE NOTE: NDEF is NOT raw data! NDEF Apps like e.g. NFC Tools for Desktop are no use to me, because they only support reading/writing NDEF records but not raw data.

1 Answer 1

0

For programming your own macOS application, you have multiple options. As you mention Android, you might want to go the Catalyst way in order to create an app for both iOS and macOS at the same time. In that case, you want to use the Core NFC framework from Apple to access the NFC reader.

If you want really raw access without a framework, you'll want to start from a specific set of hardware. For example a popular choice is the ACR122U NFC reader/writer, which is connected through USB. It comes with Mac software, which might be enough for your needs - and if not, it can be programmed at the lowest level if need be. You can read the details in the API documentation.

Another option is to install pcsc-lite from HomeBrew and use their implementation as a stepping stone in creating your own implementation.

2
  • Actually, I don't need raw access to the reader (I have that via pc/sc), what I want is to write arbitrary data wherever I want it, e.g. "write DEADBEEFDEEBEEBEDADADEAF to block 40 and set key A=123456789ABC" instead of "place a NDEF record of type URL somewhere on the card". I do indeed have the ACR122U reader, but I'm not aware of any software that comes with it, except the old mac drivers that aren't even required any more. Do you have a link perhaps?
    – drdeath
    Commented May 12, 2021 at 7:22
  • How to write arbitrary data to a specific block is detailed on page 17 in the API documentation I linked. Regarding the software, you can buy the software on the link I provided in the answer.
    – jksoegaard
    Commented May 12, 2021 at 9:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .