ST AN2271 Application note

AN2271
APPLICATION NOTE
Ekey-Udisk solution
Introduction
This document describes a firmware implementation for an Ekey-Udisk device based on ST72651.
The software is divided into 3 parts:
hardware, which is not the focus in this documentation. For further information on this subject, please refer to the ST7 USB software library documentation.
NAND Flash interface: this part software is migrated from PFD solution. How to
implement it is not mentioned in this documentation.
Smart Card interface: this interface is implemented by timer and accords ISO7816-1,
2, 3.
December 2005 1/8
www.st.com
System Structure AN2271

1 System Structure

PC SIDE
PC Application Software calls 2
interfaces through different driver
HID Interface
Mass Storage
Ekey Function
Udisk Function
Microsoft HID
driver
Microsoft Mass
Storage driver
Interface
DEVICE SIDE
Full Speed USB Lib
(Based on ST7 chip)
Process HID
Protocol
Process APDU
Protocol
Process BOT
RBC Protocol
Microsoft USB driver
2/8
ISO 7816 NAND Flash
Plugin
www.st.com
AN2271 System Diagram

2 System Diagram

Main
Polling USB event
New HID data received?
Ye s
Parse APDU Request.
Set ETU timer interrupt.
Start communication with smart card.
New
BOT package
received?
Ye s
No
No
APDU
transaction is
on-going?
Ye s
APDU
transaction has
finished?
Ye s
Send back APDU result
Flash
operation has
finished?
Ye s
No
No
No
Flash operation
Send back BOT status
3/8
Loading...
+ 5 hidden pages