The CINT Smartcard is a a collection of tools and libraries to
communicate with smart card. It is based on CINT,
a C/C++ interpreter, written by Masaharu Goto. The main audience and user of CINT Smartcard
shall be tester and developer in smart card operating system and embedded application domain.
Besides CINT itself, the CINT Smartcard project currently consists of two
libraries. One is pcsclib, to provide smartcard reader support in CINT
environment through PC/SC interface.
The other is gsmlib, to provide GSM commands mainly for dealing with SIM card.
The initial version of gsmlib supports all
commands, I shall focus on it to add
and maybe more functionalities.
In the gsmlib implementation, a new approach is introduced for parameter
communication between main application and subroutine in C/C++. In brief,
a single string parameter, which is concatenation of parameter units in
keyword-value or keyword-variable format, is passed on to subroutine. The
string parameter is then parsed and processed in subroutine by a special
design pattern. By using this technique, main application gains significant
improvement in readability and maintainability.
More libraries or tools, which are with same or similar technique, may be
added into the project in the future.