1 / 22

Sm@rtCafé Professional Toolkit 2.0

Sm@rtCafé Professional Toolkit 2.0. Contents. Java Card Development What does the user expect? Java Card development life cycle Sm@rtCafé Professional Description of all Windows OPT Wizard Add Package Card Access. Java Card Development. What does the user expect from a developer tool?.

yetta
Download Presentation

Sm@rtCafé Professional Toolkit 2.0

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sm@rtCafé Professional Toolkit 2.0

  2. Contents • Java Card Development • What does the user expect? • Java Card development life cycle • Sm@rtCafé Professional • Description of all Windows • OPT Wizard • Add Package • Card Access

  3. Java Card Development • What does the user expect from a developer tool?

  4. Java Card Development Life Cycle Java Compiler Editor *.java Files *.class Files Converter Sm@rtCafé Simulator Scripts *.cap File

  5. Characteristics of Sm@rtCafé Professional • Integrated Development Environment for Debugging and Testing of Java Card Applets • Complete Simulation of the Java Card VM (Virtual Machine) • Supports Development of Applets based on a Java Card 2.1 Simulation • Open Platform Card Specification, Version 2.1 • Symbolic and Source Code Debugging (Byte Code / JAVA) • Single-Step, Run and Breakpoint Functionality • Windows for View of Heap, Locals and Stack • Supports Download of Applets on a real Java Card • Command APDU Generator

  6. Sm@rtCafé Professional GUI

  7. Project Window • Name of project • Visualization of Framework • Java • Java Card • VOP • Loaded User Packages • One or more user packages • AID of applet • Imported Packages • Classes • Scripts with command APDU’s • One or more user defined APDU scripts • Logbooks • Logging of APDU communication

  8. Source Editor • Editing of Java files • Syntax highlighting • Mixed view Java and byte code possible • Workbook mode • Document window tabs • Setting of Breakpoints • F9 or double click or menu • Bookmarks • Toggle, next, previous, clear all bookmarks • Program counter

  9. Heap Window (1) • Shows all objects of simulated card • Editing of objects possible • Shows memory resources of simulated card • Memory resources per package • Memory resources per object • Objects of package

  10. Heap Window (2) • Symbols ofHeap window

  11. Stack Window • Stack window shows: • Method / Operand • Class / Type • Value • Parent and child task view • Editing of values • Double click opens source file • Coloring of values • green = new value • red = changed value • black = no change

  12. Locals Window • Local variables in subroutines • Stackframe list with call stack • Select methods and their locals • Editing of values • Parent and child task view • Go to reference jumps to the object in heap window

  13. Watch Window • Inspection of variables and heap objects • References • Data members • Arrays • Elements of arrays • Remark to every entry possible • Editing of values • Go to reference jumps to the object in heap window green = new value red = changed value black = no change

  14. Breakpoint Window • Breakpoint window shows • Class name • Method signature • PC (program counter) • Toggle Breakpoint • Function key: F9 • Double click in edit window • Menu Debug: Toggle BP • Remove All Breakpoints • Double click jumps to corres-ponding line in edit window

  15. Logbook Window • Logs all Command APDUs • Logs all Response APDUs • Logs VM error messages • Logbooks field • One or more logbooks • Change of several logbooks

  16. Script Editor • Command APDUs are stored in scripts • Script field • One or more scripts per project • Script editing • Copy, Paste, Insert, Delete • Different formats of input • Hex, Decimal, Character, Prompt (Ask for a value) • Sending command APDUs • Target: Simulation or Real Card • Send APDU (F4) • Run Script (Ctrl+F4) • Run Script to next Tag

  17. Output Window • Shows output of compiler and converter • Window cleared whenever the compiler is called

  18. Exception Handling • Configuration of Exceptions • Counter for Exceptions • Type and Reason of Exception

  19. OPT Wizard • OPT file: Configuration file for the Converter • Package name • Applet name • Package and applet AID • Path to class file and export file • Converter settings

  20. Add Package • Add User Packages to project • Add with OPT file or CAP file • SUN converter (*.opt) • Convert class files to cap files with SUN converter • CAP file reader (*.cap) • Load existing cap files

  21. Card Access • Create new project • Select template “Sm@rtCafe Card Access” • Start CAP File Loader • Connect to Card Terminal • Choose CAP file • Edit parameters • C6=4000, C7=30, C8=500 • Start Download

  22. Getting Started with Sm@rtCafé Professional Applet development cycle

More Related