For some of the arguments or parameters values you can use quoted strings such as "/dev/cua1", but not always. This is specified in the appropriate command description. The following commands are always available, independent of the reader that is selected. For the reader specific commands, see the page for that specific reader or try the help command.
The general commands are, in alphabetical order:
dump
This command will output any data sent by the smart card that is still left in the buffer.
flush
This command will get rid of any data sent by the smart card that is still left in the buffer.
help [ topic ]
where topic is a help topic. To see the available help topics, omit topic.
reader type
reader type ( )
reader type (
name=val
{ , name=val } )
This command sets the current reader to a type kind of reader. It is possible to specify reader parameters in a comma-separated list between the parentheses, name is the parameter name and val is the parameter value, which can be a quoted string.
Available readers are:
reset
This command will reset the smart card and display the card's ATR.
send data .
This command sends data to the smart card. If the reader that is selected (with the reader command) already implements a certain protocol, either in hardware or in software, then data should only contain the data that will be wrapped into the protocol.
data normally consists of hexadecimal numbers separated by spaces or newlines. If a quote (") is encountered, all text following the quote will be taken as an ASCII representation of the bytes, until the next quote is encountered. This last quote has to be on the same line as the first quote. It is possible to use the backslash (\) to escape a quote character or another backslash or to denote a metacharacter such as \n, \t, \a or \0, which have the same meaning as in the C programming language. The metacharacters are \0, \a, \b, \f, \n, \r, \t and \v.
settings
This command returns the reader parameter settings for the currently selected reader. The first line will contain a description of the parameters and its readers, e.g. "T=1 settings" and the next lines will contain one parameter setting per line, in the form name = value.