WMT-GmbH / pn532

no_std implementation of the Pn532 protocol using embedded_hal traits
Apache License 2.0
20 stars 19 forks source link

WIP add Request::initialize_as_target #9

Open dimpolo opened 1 year ago

dimpolo commented 1 year ago

I took a stab at adding a initialize_as_target Request builder.

I'm afraid I currently don't know enough about this kind of functionality so I'll leave some questions here. @averyanalex maybe you could shed some light on them?

averyanalex commented 1 year ago

What I can say about default values: with everything set to [0; N], TargetMode::PassiveOnly and TargetSelRes::PICC, my Android phone detects FeliCa: IMG_20230130_230001

When I set params to some random recommendations from stackoverflow, NFC Tools can't see pn532, but it responses to microcontroller. (so there is a connection, but chip is not recognized by phone).

Also I don't know how to emulate ISO 14443-3A (but I want to do it).

dimpolo commented 1 year ago

Just thought I'd let you know. I'm rather limited on time currently so it might take me some weeks to properly finish this.

(btw, I spent like 4 hours today on https://github.com/esp-rs/esp-hal/issues/295#issuecomment-1410885751 which you also seem to have encountered 🤣)