• Save
PlaySIM Project Java One 2009
Upcoming SlideShare
Loading in...5
×
 

PlaySIM Project Java One 2009

on

  • 2,771 views

Presentation given at JavaOne 2009 about the PlaySIM project an experimental hardware and softare platform for Java Card(TM) 3 applications

Presentation given at JavaOne 2009 about the PlaySIM project an experimental hardware and softare platform for Java Card(TM) 3 applications

Statistics

Views

Total Views
2,771
Views on SlideShare
2,766
Embed Views
5

Actions

Likes
3
Downloads
0
Comments
0

2 Embeds 5

http://www.slideshare.net 4
http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

PlaySIM Project Java One 2009 PlaySIM Project Java One 2009 Presentation Transcript

  • Project PlaySIM: Experimenting with Java Card™ 3 System Programming Eric Arseneau - Sun Sebastian Hans - Sun Fritjof Engelhardtsen - Telenor Steinar Brede - Telenor
  • What is PlaySIM?
    • Provide an open platform to experiment and innovate with Java Card 3.0 enabled SIM cards
    • Turn a Sun SPOT into a Java SIM card
    • NOT an emulator!!!
    • Telcos want new services and applications showcased before they commit
    • Expand the role of the SIM card in M2M domain
    • Project initiated by Telenor ASA with Sun
      • 7th largest mobile operator in the world
      • > 170M subscribers
  • Agenda
    • What is a SIM card ?
    • What is Java Card(TM) 3.0 ?
    • What is a Sun SPOT ?
    • What is PlaySIM ?
  • What is a SIM card?
    • Subscriber Identity Module (SIM) for mobile networks
    • Separates the user subscription from the terminal
    • User credentials, security data, address, sms, ...
    • Fully managed secure platform
    • Introduction of Java technology turned the SIM card into a multi application platform
    • In 2008 sold 3.2 Billion for Telcos
      • 2009 estimated at 3.6 Billion
  • Not JUST phones
  • Enables highly secure services
    • The SIM card is a secure connected service platform that you seldom leave behind
    • PKI based authentication, roaming management, ...
    • One time password generator for online banking
  • What we have today
    • SIM cards are based on ISO 7816 standards
      • Single threaded, master slave protocol
      • APDU max 255 bytes per message
      • Low speed, clock and power from the terminal
      • Slow EEPROM memory 32-128KB
      • RAM 8-16KB
      • SIM-Toolkit protocol to overcome the master-slave limitation of the ISO standards
        • Very specific to the Telco market
        • Difficult to use and to test
        • Needs a lot of GSM/UMTS domain knowledge
  • Java Card 2.x
    • Java Card 2.X has an over 10 year history
    • Defined for very constraint devices
      • < 512bytes of RAM
      • < 4KB non-volatile memory
    • Single threaded
    • Limited communication capabilities
    • No Strings, no int, no float, split VM
    • Over 6 Billion Java Card Devices
      • Most prolific Java platform to date
  • SIM card trends require more capabilities from software 16k 64k 256k 1Mb 1Gb SCWS NFC USB Multi tread IP stack Embedded short-range radios GPS Accelerometer Temperature ...
  • But we need to move ahead!
  • How to program these capabilities?
    • With these existing and new capabilities, how do we program these devices?
    • The SIM cards have been a very closed and proprietary environment
    • Java Card brings the write once run everywhere mantra to SIM cards
    • Java Card 3.x is the platform to use these new capabilities
    • 3 rd party applications and services could now be ported to different SIM cards
  • SIM Card IS the computer
    • This is a new way of thinking
    • Added computing capabilities, network integration, new sensors
    • Carriers get a viable platform that they control and are able to distribute new services more quickly
  • Java Card 3.x
    • Last year 3.0 was only the specification
    • Just released 3.0.1
      • http://java.sun.com/products/ javacard
      • Reference Implementation - Emulator
      • NetBeans Module
      • TCK
    • Classic Edition – Keeps 2.x compatibility
    • Connected Edition
  • Java Card 3 Connected Edition High Level Architecture
  • Java Card 3.0 main new Features
    • Multithreading, CLDC 1.1
    • Supports of multiple hardware and logical interfaces
    • Build in Servlet Engine, Servlets API 2.4
    • Strings, Annotations, Generics, TCP/IP Sockets, SSL/TLS, HTTP connections, GCF
    • Integrate Java Card 3.0 as a secure multi interface card platform into IP networks
    • Seamless secure connection with Browsers and Applications on the Terminal or in the Network
    • Card is a secure server in the local network
  • Some new ideas..
    • Telenor student interns loved to play with the SunSPOT platform and it is popular at the local university
    • Maybe we can leverage this enthusiasm to spur SIM card and service innovation?
  • What is a Sun SPOT?
    • Built to inspire
    • Designed for flexibility
      • Make hardware projects into software projects
      • Not designed for cost effective deployment today
      • Substitute money for time
    • We want to
      • Build a Community of Developers
      • Enable New Devices and Services
      • Engage with new potential customers
  • Sun SPOT Platform
    • Software platform to enable
      • Java Technology
      • Common driver platform
      • Common services platform
      • Ease of development
    • Intended to be ported to different devices
      • eSPOT
      • National Instrument Compact RIO
      • more...
  • Sun SPOT Platform Java VM
    • Squawk Virtual Machine
    • J2ME CLDC 1.1 IMP Profile
    • Runs on the bare metal (No OS)
    • Designed for memory constrained devices
    • Written mainly in Java
    • Runs multiple applications (isolates), can “migrate” across devices
    • Also runs on Solaris, Linux, Mac and Windows
    • Easy to port
  • Squawk VM Written in Java Standard JVM Squawk JVM Java class library Verifier Loader Garbage collector Interpreter Compiler I/O library Native code Thread Scheduler Java class library Verifier Loader Garbage collector Interpreter Compiler I/O library Native code Thread Scheduler C code Exporter Transformer Java code Device Driver Architecture
  • Split VM .class/.jar . .suite .suite Native code Serializer Loader Verifier Transformer (optimizer) Digital signer Bootloader Interpreted VM Java libraries On-device VM Suite creator
  • Sun SPOT Platform Library
    • Transducer Library
    • Built-in support for all sensors on eDemoBoard
    • Integrated power management to maximize battery life
    • Built-in Mesh Networking
    • Classes to control external devices such as servos and speakers
  • eSPOT Sun SPOT device
    • Basic device has three layers
    • User programs the device entirely in Java using standard Java tools
  • eSPOT Main board
    • 180 MHz 32 bit ARM920T core
    • 512K RAM/4M Flash
    • 802.15.4 radio
    • USB interface - mini-b connector
    • 36 µA deep sleep mode
    • “ Java on the metal”
  • edemo Daugher card
    • 2G/6G 3-axis accelerometer
    • Light sensor
    • Temp sensor
    • 2 push buttons
    • 8 RGB 24 bit LEDS, power/control LED
    • 6 analog inputs
    • 5 General Purpose I/O pins and 4 high current output pins
    • Easy to interface to servos, speakers and other devices
  • Open Source
    • Hardware
    • Software
    • http://www. sunspotworld .com
    • http://spots.dev.java.net
  • Project Structure
    • Started out as a single project
    • Now 3 Projects
      • Java Card 3 on Sun SPOT
      • PlaySIM
      • eGSM daughter card
    • Open Source
      • Hardware
      • Software
    • http://playsim.dev.java.net
  • Java Card 3 on Sun SPOT
    • Binary jar of Java Card 3 API
    • Pre&Post Adapter for Sun SPOT
    • Java Card 3 library for Sun SPOT SDK
    • Implement Java Card 3 required native services using Sun SPOT API
    • NOT a Java Card 3.x compliant implementation
  • Java 5 Syntax Support
    • Java Card 3 requires Java 5 syntax
    • Added Java 5 syntax support to Squawk
      • Adds Java 5 syntax support
    • BUT must stay Java ME CLDC 1.1 IMP 1.0 compliant
      • Requires preverifier
    • Spec however does not specify source level
      • Defines API
    • Java 5 javac -> Retroweaver -> Java 1.3 classes
  • Demo
    • [java] Sun SPOT bootloader (java5-0906021548)
    • [java] SPOT serial number = 0014.4F01.0000.3971
    • [java]
    • [java] Squawk VM Starting (&quot;java5-0906021548&quot;)...
    • [java] StartApp
    • [java] [info] : Initializing Card ...
    • [java] [info] : ClassLoaders ... Initialized
    • [java] [info] : Platform Policy ... Initialized
    • [java] [info] : ServiceRegistry ... Initialized
    • [java] [info] : TaskRegistry ... Initialized
    • [java] [info] : Crypto System ... Initialized
    • [java] [info] : Transaction Facility - Initialized
    • [java] [debug] : REALM NAME IS:JCRealm
    • [java] [debug] : org.mortbay.jetty.MimeTypes.STATIC() -> DONE
    • [java] [info] : Web Container ... Initialized
    • [java] [info] : Applet Container ... Initialized
    • [java] [debug] : servletFilterMap=null
    • [java] [debug] : servletPathMap =org. mortbay .jetty. servlet . PathMap @44
    • ...
    • [java] [info] : Card Ready.
  • Say hello to the PlaySIM daughter board
  • Connecting PlaySIM to a phone
  • PlaySIM theory of operation “ or” Authentication algorithms and secret keys GSM/UMTS terminals Inexpensive add on board to the SunSPOT Java Card ™ 3 “like” environment for prototyping SIM interface SIM emulation Application deployment flexibility SunSPOT M2M GSM module
  • PlaySIM theory of operation GSM authentication algorithms and secret keys (possibly JC 3) SIM toolkit, Java ME + JSR-177, Java ME or browser TCP/HTTP JavaCard 3.x API PlaySIM driver JavaCard 3 applications w/ extended functionality
  • PlaySIM driver / command interceptor Cmd. from terminal SunSPOT or SIM card? Cmd. to SIM card Resp. from SIM card Resp. to terminal Resp. to terminal Insert proactive commands from SunSPOT
  • Experimenation?
    • Java Card 3.x cards not available
    • How to use new sensor capabilities?
    • Rapid prototyping of new sensors
      • Add to Sun SPOT and experiment
    • Additional storage
    • New communication interfaces
    • We can't think of everything that could be done with existing and future sensors
  • Community Involvement
    • Universities
    • SIM card vendors
    • Developers
  • Status
    • We have defined a java.net project
      • http://playsim.dev.java.net
    • NO content yet :(
    • Will be able to buy these cards shortly
    • Source code, gerbers, … to be published right after Java One
  • The road ahead
    • Add support for USB enabled SIM cards and terminals.
    • Refine API for proactive commands.
    • SIM card communication tracer on a PC.
    • Add support for wireless LAN (WLANSIM).
  • eGSM daughter board
  • eGSM Motivation
    • Add GSM network capability to Sun SPOT
    • Provide a terminal for PlaySIM
      • Not all existing module support SIMtoolkit
    • Experiment with the role of the SIM card in the M2M domain
    • Experiment with connected objects
    • It was too cool NOT to do it :)
  • Recap
    • NOT an emulator
    • Portable
      • Can tape to the back of the phone :)
    • Experiment now, create the future now
    • Can actually do usability trials cheaply