The command smartcard.startreader is used to start the smart card reader and try to start the card.
- slot [integer]
slot that will be started:
- main: 1
- sam1: 2
- sam2: 3
- sam3: 4
- sam4: 5
- variablereturn [integer]
Return of the command, where:
- -2: Error while starting the reader or while reading the card
- -1: Invalid slot
- Reader started and command ATR successfully sent.
In the example above, the command smartcard.startreader is used to start the reader and the smartcard, and the result of the operation is stored on the variable variablereturn.
The command inttostring is used to convert the variable to stringvariable, and then displayed using the command display.