Smartreader+ integraters manual

* Smartreader modes

	The Smartreader+ had two modes, command mode and data mode.
	Till the CMD mode is entered the smartreader+ is working as a phoenix device at 3,57Mhz. 
	After entering CMD mode and returning to DATA mode the reader is configured as Smartreader+ 
	and will probably not work as a phoenix till the next time it's cold started by removing the device from the USB port. 
	In the CMD mode it's possible to program the settings like frequency, protocol, etu, N and inversion.

* Mode selection

	To enter the CMD mode set the reader to 5 databits.
	
	example:

		/* set smartreader in CMD mode */
		struct termios term;
		tcgetattr(deviceFd, &term);
		term.c_cflag &= ~CSIZE;
		term.c_cflag |= CS5;
		tcsetattr(deviceFd, TCSANOW, &term);

	To enter the DATA mode set the reader to 8 databits.

	example:

		/* set smartreader in DATA mode */
		struct termios term;
		tcgetattr(deviceFd, &term);
		term.c_cflag &= ~CSIZE;
		term.c_cflag |= CS8;
		tcsetattr(deviceFd, TCSANOW, &term);

	The Smartreader+ doesn't switch by itself so it's to the user to make sure that setting all the right values
	you exit CMD mode and enter DATA mode for receiving/sending data to the smartcard.

	note: Settings are activated by leaving CMD mode!

* Settings

	setting nr		payload			response
	1			FF FF DD		sets Fi and Di factors
	2			FR EQ			sets the frequency
	3			NN			sets the N value
	4			PR			sets the protocol
	5			IN			sets inversion on(1)/off(0)

	there is no response from the Smartreader+ after accepting the settings.

	Example: Smartreader+ settings for ISO7816 t=0 smartcards:

		sr+ <-- CMD MODE
		sr+ <-- 01 01 74 01 
		sr+ <-- 02 0D FB  
		sr+ <-- 03 00  
		sr+ <-- 04 00  
		sr+ <-- 05 00 
		sr+ <-- DATA MODE
		sr+ <-- toggle reset
		sr+ --> ATR

* Available frequencies

	3.20, 3.43, 3.69, 4.00, 4.36, 4.80, 5.34, 6.00, 6.86, 8.00, 9.61, 12.0 and 16.0 MHz

The user can selected any freqency. The Smartreader+ will selected the nearest available.


Official distribution: http://www.satellietland.nl/cat_diversen.htm

COPYRIGHTS (c) 2007 www.satellietland.nl