2011-10-01 14:26:11 +02:00
|
|
|
.TH pn53x-tamashell 1 "September 15, 2010"
|
2010-10-08 23:31:12 +02:00
|
|
|
.SH NAME
|
|
|
|
pn53x-tamashell \- PN53x TAMA communication demonstration shell
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B pn53x-tamashell
|
2011-02-03 18:17:29 +01:00
|
|
|
.IR [script]
|
2010-10-08 23:31:12 +02:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.B pn53x-tamashell
|
|
|
|
is a simple interactive tool to send so called TAMA commands
|
|
|
|
and receive the answers.
|
|
|
|
TAMA refers to the command set supported by the PN53x family.
|
|
|
|
Messages are binary and the shell expects hexadecimal notation.
|
|
|
|
TAMA commands and responses prefixes (0xD4/0xD5), CRC and any framing above are handled transparently.
|
|
|
|
|
|
|
|
You can use the shell interactively (with readline support) or you
|
|
|
|
can write your own script file consisting in commands and
|
|
|
|
comments (anything that starts with ";", "#" or "//").
|
2011-02-18 23:05:36 +01:00
|
|
|
Spaces are ignored and can be used for readability.
|
|
|
|
|
|
|
|
Shebang is supported, simply start your script with:
|
|
|
|
#!/usr/bin/env \fBpn53x-tamashell\fP
|
|
|
|
|
|
|
|
.SH COMMANDS
|
|
|
|
|
2011-04-08 21:50:09 +02:00
|
|
|
\fIp N\fP to introduce a pause of N milliseconds.
|
2010-10-08 23:31:12 +02:00
|
|
|
|
|
|
|
\fIq\fP or \fICtrl-d\fP to quit.
|
|
|
|
|
|
|
|
.SH EXAMPLES
|
|
|
|
|
|
|
|
GetFirmware command is D4 02, so one has just to send the command "02":
|
|
|
|
|
|
|
|
$ \fBpn53x-tamashell\fP
|
|
|
|
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, with a script:
|
|
|
|
|
2011-02-18 23:05:36 +01:00
|
|
|
$ \fBpn53x-tamashell\fP << EOF
|
2010-10-08 23:31:12 +02:00
|
|
|
// 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!
|
|
|
|
|
2011-02-03 18:17:29 +01:00
|
|
|
.SH OPTIONS
|
|
|
|
.IR script
|
|
|
|
Script file with tama commands
|
|
|
|
|
2010-10-08 23:31:12 +02:00
|
|
|
.SH BUGS
|
|
|
|
Please report any bugs on the
|
|
|
|
.B libnfc
|
2011-10-01 14:26:11 +02:00
|
|
|
issue tracker at:
|
|
|
|
.br
|
2015-04-30 14:19:03 +02:00
|
|
|
.BR https://github.com/nfc-tools/libnfc/issues
|
2010-10-08 23:31:12 +02:00
|
|
|
.SH LICENCE
|
|
|
|
.B libnfc
|
2011-10-01 14:26:11 +02:00
|
|
|
is licensed under the GNU Lesser General Public License (LGPL), version 3.
|
|
|
|
.br
|
|
|
|
.B libnfc-utils
|
2010-10-08 23:31:12 +02:00
|
|
|
and
|
|
|
|
.B libnfc-examples
|
2011-10-01 14:26:11 +02:00
|
|
|
are covered by the the BSD 2-Clause license.
|
2010-10-08 23:31:12 +02:00
|
|
|
.PP
|
|
|
|
This manual page is licensed under the terms of the GNU GPL (version 2 or later).
|