pn53x-tamashell(1)

πŸ’– pn53x-tamashell β€” the manual page, but make it cute πŸ’–

okay bestie, welcome to pn53x-tamashell(1) from the General Commands Manual section β€” this is the lil shell that talks TAMA to your PN53x chip and it's honestly giving main character energy. let's get into it πŸ¦‹


✨ NAME ✨

pn53x-tamashell β€” PN53x TAMA communication demonstration shell

🌸 SYNOPSIS 🌸

pn53x-tamashell [script]

πŸ’… DESCRIPTION πŸ’…

pn53x-tamashell is a lil interactive tool that sends so-called TAMA commands and receives the answers back. TAMA is the command set that the PN53x family supports, iykyk. The messages are binary and the shell wants everything in hexadecimal notation. TAMA command and response prefixes (0xD4/0xD5), the CRC, and any framing above all that? Handled transparently, no cap. You don't gotta think about it πŸ’…

You can run the shell interactively (readline support, periodt) or you can write your own script file with commands and comments β€” anything starting with ;, # or // counts as a comment. Spaces are ignored and you can use them for readability, so go off, format it cute.

Shebang is supported btw, simply start your script with:

#!/usr/bin/env pn53x-tamashell

πŸŽ€ COMMANDS πŸŽ€

  • p N β€” introduces a pause of N milliseconds. lil nap time for your commands 😴
  • q or Ctrl-d β€” quits. bye bestie 🫢

🌈 EXAMPLES 🌈

The GetFirmware command is D4 02, so you literally just have to send the command "02":

$ pn53x-tamashell
Connected to NFC reader: SCM Micro/SCL3711-NFC&RW - PN533 v2.7 (0x07)
> 02
Tx: 02
Rx: 33  02  07  07
> 40
Tx: 40
Rx: Command Not Acceptable
> q
Bye!

Same thing, but with a script this time:

$ pn53x-tamashell << EOF
// This is a comment
02 // GetFirmware
40 // Command with missing arguments
EOF

Connected to NFC reader: SCM Micro/SCL3711-NFC&RW - PN533 v2.7 (0x07)
> // This is a comment
> 02 // GetFirmware
Tx: 02
Rx: 33  02  07  07
> 40 // Command with missing arguments
Tx: 40
Rx: Command Not Acceptable
> Bye!

see how the comments just vibe there and nothing breaks? obsessed. ✨

⭐ OPTIONS ⭐

  • script β€” script file with tama commands πŸ“œ

πŸ’€ BUGS πŸ’€

Please report any bugs on the libnfc issue tracker at: https://github.com/nfc-tools/libnfc/issues

(not me asking you to snitch, but like… do snitch, it helps πŸ™ˆ)

πŸ‘‘ LICENCE πŸ‘‘

libnfc is licensed under the GNU Lesser General Public License (LGPL), version 3.

libnfc-utils and libnfc-examples are covered by the the BSD 2-Clause license.

This manual page is licensed under the terms of the GNU GPL (version 2 or later).


and that's the whole thing bestie β€” September 15, 2010, pn53x-tamashell(1), slay πŸ’–βœ¨πŸŽ€πŸ¦‹