449cdb7af5557f2c4598b14c5d60e8b77e47b284
nfc-writer
Small local web page that programs NFC tags through a PC/SC reader (tested with the ACS ACR1252U-M1). Type a URL or some text, put a tag on the reader, press Program.
cargo run --release # http://127.0.0.1:7252 (port: NFC_PORT)
- Browsers can't talk to a USB smart-card reader, so a small Rust server (axum +
pcsc, Windowswinscard) does the reader access; the page polls/api/statusand posts to/api/program. - Supported tags: NFC Forum Type 2: NTAG213/215/216, MIFARE Ultralight / EV1 / C. MIFARE Classic and DESFire are detected and refused.
- Input starting with
http(s)://,www.,tel:,mailto:,sms:,geo:or anyscheme://is written as an NDEF URI record (www.getshttps://in front); anything else as an NDEF text record (en). - The write empties the NDEF TLV first and writes its header last, so an interrupted write leaves an empty tag rather than a corrupt one. After writing, the data is read back and compared.
- Bound to 127.0.0.1 only.
Releases
1
NFC tag writer v0.3.0
Latest
Languages
Rust
78.2%
HTML
15.7%
Python
6.1%