smartcard2 2.1.0.0
|
Smart Card 2 Click is a compact add-on board for reading smart cards. This board features Microchip’s SEC1210, a low-power single-chip Smart Card controller with a UART interface. The SEC1210 bridge controller uses a combination of hardware and software to deliver high-performance and flexible design customization options. It is fully compliant with standards like ISO/IEC 7816, EMV 4.2/4.3, ETSI TS 102 221, and PC/SC, utilizing TrustSpan™ technology that enables digital systems to communicate securely, process, move and store information. With its onboard card holder, it supports data processing with 2FF smart cards, and with an additional connector for external connection, it also allows the processing of a standard 1FF card.
We provide a library for the Smart Card 2 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Smart Card 2 Click driver.
smartcard2_cfg_setup
Config Object Initialization function. smartcard2_init
Initialization function. smartcard2_send_ccid
This function sends the CCID command message by using UART serial interface. smartcard2_read_ccid
This function reads a CCID response or event message by using UART serial interface. smartcard2_icc_power_on
This function activates the card by performing an ICC power ON command. The device will respond with a data block containing ICC ATR (Answer to Reset) message. This example demonstrates the use of Smart Card 2 click board by checking the SIM card presence and activating the card on insert. The card should respond with an ATR (Answer to Reset) message.
The demo application is composed of two sections :
Initializes the driver and enables the device.
Reads and parses all CCID messages received from the device. Checks the SIM card presence
and activates it if it's inserted. The card should respond with an ATR (Answer to Reset) message. All data is being logged on the USB UART where you can track their changes.
This example doesn't parse ATR messages.
There are some online ATR parsers which could be used for decoding those messages. For example: https://smartcard-atr.apdu.fr/
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.