Page 2 - Strictly confidential / Released; Strictly confidential / Released; General Notes
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 2 of 90 26.09.2005 Document Name: TC65 JAVA User's Guide Version: 05 Date: September 26, 2005 DocId: TC65 JAVA User's Guide_V05 Status: Strictly confidential / Released General Notes Product is deemed accepted ...
Page 3 - Table of Contents
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 3 of 90 26.09.2005 Table of Contents 1 Preamble ........................................................................................................................ 8 2 Overview ...............................
Page 6 - Figures
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 6 of 90 26.09.2005 11.4 Structure and Description of the Java Security Commands ................................ 76 11.4.1 Structure of the Java Security Commands ............................................ 77...
Page 7 - Tables
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 7 of 90 26.09.2005 Figure 22: Sun Java Studio Mobility 6 - Switching Emulators ................................................ 55 Figure 23: Sun Java Studio Mobility 6 - Project Manager ..........................
Page 8 - Preamble
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 8 of 90 26.09.2005 1 Preamble This document is also valid for the TC65 Terminal with the main exception that the terminal does not feature the USB, ASC1, DAC and DAI interface. For other exceptions and differen...
Page 9 - Overview; Customer Application; Documents
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 9 of 90 26.09.2005 2 Overview The TC65 module features an ultra-low profile and low-power consumption for data (CSD and GPRS), voice, SMS and fax. Java technology and several peripheral interfaces on the module...
Page 10 - Terms and Abbreviations; Abbreviation
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 10 of 90 26.09.2005 2.2 Terms and Abbreviations Abbreviation Description API Application Program Interface ASC Asynchronous Serial Controller CLDC Connected Limited Device Configuration CSD Circuit-Switched Dat...
Page 11 - Installation; Requirements
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 11 of 90 26.09.2005 3 Installation 3.1 System Requirements The Siemens Mobility Toolkit (SMTK) TC65 requires that you have: 1. Windows 2000 or Windows XP installed 2. 40Mbytes free disk space for SMTK 3. Admini...
Page 12 - Module Exchange Suite
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 12 of 90 26.09.2005 3.2.1 Components 3.2.1.1 Module Exchange Suite The Module Exchange Suite allows the developer to access the Flash file system on the cellular engine from the development environment over a s...
Page 13 - Siemens Mobility Toolkit Installation; Environment Variables; Installing the SMTK Environment
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 13 of 90 26.09.2005 3.3 Siemens Mobility Toolkit Installation The SMTK comes with an installation CD. The installation program automatically installs the necessary components and IDE integrations. Software can ...
Page 14 - Installing Sun Java Studio Mobility 6; . A customized version of this plug-in also comes with TC65 SMTK. It is; Installing Borland JBuilder X and 2005
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 14 of 90 26.09.2005 7. If the SDK and one or more Java IDEs are found, you will be asked to choose which IDE you want integrated into the TC65 development environment. Once an IDE has been found and selected, p...
Page 15 - Uninstall; Control Panel
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 15 of 90 26.09.2005 3.4 SMTK Uninstall The TC65 SMTK install package comes with an uninstall facility. The entire SMTK or parts of the package can be removed. To start the uninstall facility, open the Control P...
Page 16 - Software; Architecture
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 16 of 90 26.09.2005 4 Software Platform In this chapter, we discuss the software architecture of the SMTK and the interfaces to it. 4.1 Software Architecture The SMTK enables a customer to develop a Java applic...
Page 17 - ASC0 - Serial Device
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 17 of 90 26.09.2005 4.2 Interfaces 4.2.1 ASC0 - Serial Device ASC0, an Asynchronous Serial Controller, is a 9-wire serial interface. It is described in the Hardware Interface Description [4]. Without a running ...
Page 18 - Interfaces; File API; Connected Limited Device Configuration (CLDC); Figure 2: Interface Configuration; . Documentation for the other APIs is found; Networking
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 18 of 90 26.09.2005 4.2.7 JVM Interfaces IMP-NG File API AT Command API Connected Limited Device Configuration (CLDC) J2ME Figure 2: Interface Configuration J2ME, CLDC and MIDP were implemented by SUN. IMP-NG i...
Page 19 - Data Flow of a Java Application Running on the Module; Figure 3: Data flow of a Java application running on the module.
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 19 of 90 26.09.2005 4.3 Data Flow of a Java Application Running on the Module JVM Flash File System File I/O API IMP-NG AT Command API ASC0 GPIO DAI AT Parser TCP/IP system.out ASC1 I2C/SPI DAC/ADC Figure 3: Da...
Page 20 - Handling Interfaces and Data Service Resources; Color legend for the following figures
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 20 of 90 26.09.2005 4.4 Handling Interfaces and Data Service Resources To develop Java applications the developer must know which resources, data services and hardware access are available. • There are three AT...
Page 21 - State 1: Default – No Java Running; Figure 4: Module State 1; by; Figure 5: Module State 2; or; Figure 6: Module State 3; State 4: Default – Java Application Active; Figure 7: Module State 4
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 21 of 90 26.09.2005 4.4.1.1 State 1: Default – No Java Running This is the default state. The Java application is inactive and there is an AT interface with CSD on ASC0 as well as ASC1. All HW interface pins ar...
Page 22 - State 5: Java Application Active, General Purpose I/O and I2C; The; Figure 8: Module State 5; State 6: Java Application Active, General Purpose I/O and SPI; Figure 9: Module State 6
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 22 of 90 26.09.2005 4.4.1.5 State 5: Java Application Active, General Purpose I/O and I2C The Java application is active, ASC1 is used as System.out and the Java instance of the RS-232 serial interface is conne...
Page 23 - Module State Transitions; Figure 10: Module State Transition Diagram
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 23 of 90 26.09.2005 4.4.2 Module State Transitions State 1: Default, no Java appl. running State 6: Java active, using SPI switch on State 3: no Java appl. running, using SPI no Java autostart Java autostart st...
Page 24 - Maintenance; Service; uses up resources and may deteriorate the overall performance.
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 24 of 90 26.09.2005 5 Maintenance The basic maintenance features of the TC65 are described below. Explicit details of these functions and modes can be found in the AT Command Set [3] and the Hardware Interface ...
Page 25 - Saving
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 25 of 90 26.09.2005 5.2 Power Saving The module supports several power saving modes which can be configured by the AT command at+cfun [3]. Power saving affects the Java application in two ways. First, it limits...
Page 26 - Mode
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 26 of 90 26.09.2005 5.4 Airplane Mode The main characteristic of this mode is that the RF is switched off and therefore only a limited set of AT commands is available. The mode can be entered or left using the ...
Page 28 - Configuration of Serial Interface; There is a small set of special Java AT commands:; Flash File System
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 28 of 90 26.09.2005 5.7.4 Configuration of Serial Interface While a Java application is running on the module, only the AT Command API is able to handle AT commands. All AT commands referring to a serial interf...
Page 29 - Measurement and calculation were done using:; duration of each loop; frequencyB; as measured with a universal counter; TC65 module in IDLE mode / Not connected
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 29 of 90 26.09.2005 5.9 Performance The performance study was focused on comparable performance values under various circumstances. 5.9.1 Java This section gives information about the Java command execution thr...
Page 30 - Data Rates on RS-232 API; be used for reading
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 30 of 90 26.09.2005 5.9.2 Pin I/O The pin I/O test was designed to find out how fast a Java MIDlet can process URCs caused by Pin I/O and react to these URCs. The URCs are generated by feeding an input pin with...
Page 31 - Plain Serial Interface; Figure 13: Scenario for testing data rates on ASC1; Voice Call in Parallel
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 31 of 90 26.09.2005 5.9.3.1 Plain Serial Interface Scenario: A device is connected to ASC0 (refer to 4.2.4). The Java application must handle data input and output streams. A simple Java application (with only ...
Page 32 - Scenarios with GPRS Connection; Table 1: Download data rate with different number of timeslots, CS2; Table 2: Download data rate with different number of timeslots, CS4; Upload data rate with x timeslots
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 32 of 90 26.09.2005 5.9.3.3 Scenarios with GPRS Connection The biggest challenges to the module performance are setting up a GPRS connection, receiving data on javax.microedition.io interfaces and sending or re...
Page 33 - Table 3: Download data rate with different number of timeslots, CS2; Table 4: Download data rate with different number of timeslots, CS4; Download data rate with x timeslots
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 33 of 90 26.09.2005 5.9.3.3.2 Download The data rate for downloading data over GPRS depends on the number of assigned timeslots and the coding schemes given by the net. Since TC65 supports GPRS class 12, the nu...
Page 34 - MIDlets; Documentation; Paused
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 34 of 90 26.09.2005 6 MIDlets The J2ME™ Mobile Information Device Profile (MIDP) provides a targeted Java API for writing wireless applications. The MIDP runs on top of the Connected Limited Device Configuratio...
Page 35 - Application Management Software
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 35 of 90 26.09.2005 Table 5: A typical sequence of MIDlet execution Application Management Software MIDlet The application management software creates a new instance of a MIDlet . The default (no argument) cons...
Page 36 - Hello World MIDlet
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 36 of 90 26.09.2005 6.3 Hello World MIDlet Here is a sample HelloWorld program. /** * HelloWorld.java */ package example.helloworld; import javax.microedition.midlet.*; import java.io.*; public class HelloWorld...
Page 37 - File Transfer to Module; . The tools included in this suite are
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 37 of 90 26.09.2005 7 File Transfer to Module 7.1 Module Exchange Suite The Module Exchange Suite allows you to view the Flash file system on the module as a directory from Windows Explorer. Make sure that the ...
Page 38 - Over the Air Provisioning; A password should be used to update with OTA (SMS Authentication)
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 38 of 90 26.09.2005 7.2 Over the Air Provisioning See Chapter 8 for OTA provisioning. 7.3 Security Issues The developer should be aware of the following security issues. Security aspects in general are discusse...
Page 39 - Introduction to OTAP; SMS; Figure 17: OTAP Overview; Install/Update: A new JAR and JAD file are downloaded and installed.
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 39 of 90 26.09.2005 8 Over The Air Provisioning (OTAP) 8.1 Introduction to OTAP OTA (Over The Air) Provisioning of Java Applications is a common practice in the Java world. OTAP describes mechanisms to install,...
Page 40 - Parameters
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 40 of 90 26.09.2005 8.3 OTAP Parameters There is a set of parameters that control the OTAP procedures. These parameters can either be set by AT command ( at^sjotap , refer to AT Command Set [ 7 ]) during the pr...
Page 41 - Short Message Format
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 41 of 90 26.09.2005 The length of the string parameters in the AT command is limited (see Table 6), the length in the SM is only limited by the maximum SM length. The minimum set of required parameters depends ...
Page 42 - that; Java File Format
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 42 of 90 26.09.2005 The values of APPDIR, BEARER and START are used internally and must be lower case. The password (PWD) is case sensitive. The case sensitivity of the other parameter values depends on the ser...
Page 44 - Figure 19: OTAP: Delete Information Flow
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 44 of 90 26.09.2005 When an SM with keyword START:install is received and there is a valid parameter set for the operation, the module always reboots either when the operation completed, an error occurred or th...
Page 45 - Time Out Values and Result Codes
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 45 of 90 26.09.2005 8.7 Time Out Values and Result Codes Timeouts: • Closedown Timeout: 10 seconds • Safety Timeout: 10 minutes Result Codes: Supported status codes in body of the http POST request: • 900 Succe...
Page 46 - Tracer; application then status code 910 is returned
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 46 of 90 26.09.2005 8.9 OTAP Tracer For easy debugging of the OTAP scenario, the OTAP procedure can be traced over the serial interface. The trace output shows details of the OTAP procedure and the used paramet...
Page 47 - To; servers access log can give you a hint as to what went wrong:
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 47 of 90 26.09.2005 8.11 How To This chapter is a step-by-step guide for using OTAP. 1. Do you need OTAP? Is there any chance that it might be necessary to update the Java application, install a new one or dele...
Page 48 - Compile and Run a Program without a Java IDE; Results
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 48 of 90 26.09.2005 9 Compile and Run a Program without a Java IDE This chapter explains how to compile and run a Java application without a Java IDE. 9.1 Build Results A JAR file must be created by compiling a...
Page 49 - Command Prompt; Run on the Module with Manual Start
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 49 of 90 26.09.2005 9.2 Compile • Launch a Command Prompt . This can be done from the Programs menu or by typing “cmd” at the Run… prompt in the Start menu. • Change to the directory where the code to be compil...
Page 50 - Switch on Autostart
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 50 of 90 26.09.2005 9.4.1 Switch on Autostart • There is an AT command, at^scfg , for configuring the autostart functionality. Please refer to the AT Command Set [3]. • Restart the module. 9.4.2 Switch off Auto...
Page 51 - Environment; Data Flow of a Java Application in the Debug Environment; Module; Figure 20: Data flow of a Java application in the debug environment
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 51 of 90 26.09.2005 10 Debug Environment Please note that this section is not intended as a tutorial in debugging or how to use Sun Java Studio, Borland JBuilder or Eclipse. Documents for these IDEs can be foun...
Page 53 - IDE
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 53 of 90 26.09.2005 10.3 Java IDE The SMTK is integrated into your Java IDE during installation. Please note that the IDE integration is intended to create MIDlets suitable for TC65 module and for debugging usi...
Page 54 - Figure 21: Sun Java Studio Mobility 6 - The installed emulators
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 54 of 90 26.09.2005 10.3.1 Sun Java Studio Mobility 6 2004Q3 This section indicates the changes to your IDE you will see after integrating the SMTK and describes how to exploit these features to build and debug...
Page 55 - emulators; , see Figure 22. Any projects built and run when the; Figure 22: Sun Java Studio Mobility 6 - Switching Emulators
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 55 of 90 26.09.2005 10.3.1.1 Switching emulators You can easily switch to the SMTK emulator by using the combo box in the main menu bar and choosing IMP_NG_DefaultDevice , see Figure 22. Any projects built and ...
Page 56 - Figure 23: Sun Java Studio Mobility 6 - Project Manager
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 56 of 90 26.09.2005 10.3.1.2 Projects After integration, there is a new project in the Project Manager . This project contains the example and the additional libraries. The Project Manager is accessed through t...
Page 57 - Figure 24: Sun Java Studio Mobility 6 - Selecting a template
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 57 of 90 26.09.2005 10.3.1.3 Templates Templates for a Siemens MIDlet can be found in the file explorer and under File->New. The MIDlet template provides the skeleton of a MIDlet application. Figure 24: Sun ...
Page 58 - Borland JBuilder X; Figure 25: JBuilderX – JDK settings; Tools; Figure 26: JBuilderX – Siemens Library
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 58 of 90 26.09.2005 10.3.2 Borland JBuilder X If you want to use JBuilderX and it is not installed, first install JBuilderX and follow the installation wizard instructions. Run the TC65 SMTK the installation pr...
Page 59 - Figure 27: JBuilderX – Sample Projects
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 59 of 90 26.09.2005 10.3.2.1 Examples There are sample projects provided with the TC65 SMTK. These projects can be found in the JBuilderSamples directory of the TC65 SMTK installation directory. This directory ...
Page 60 - Figure 28: JBuilderX – Starting the debugging session
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 60 of 90 26.09.2005 Open the Project (e.g. “HelloWorld.jpx”), rebuild the sources and start the debugger using the micro edition (context menu “HelloWorld.jad” Æ Micro Debug using “HelloWorld” ). Figure 28: JBu...
Page 61 - Figure 30: JBuilderX – Siemens Library
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 61 of 90 26.09.2005 10.3.3 Borland JBuilder 2005 If JBuilder2005 is not installed, run the JBuilder2005 install program and follow the installation wizard instructions. Use the TC65 SMTK installation routine in...
Page 62 - Figure 31: JBuilder2005 – Sample Projects; . As long as the customizations necessary for TC65 are not part of an
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 62 of 90 26.09.2005 10.3.3.1 Examples There are sample projects provided with the TC65 SMTK. These projects can be found in the JBuilderSamples directory of the TC65 SMTK installation directory. This directory ...
Page 63 - Figure 32: Eclipse – Plug-in installation; Window
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 63 of 90 26.09.2005 Figure 32: Eclipse – Plug-in installation If the installation of the plugin was successful you need to restart your IDE. (see figure below). Figure 33: Eclipse – Plug-in installation, restar...
Page 64 - Set the timeout under Windows; Emulators; Figure 35: Eclipse – J2ME platform
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 64 of 90 26.09.2005 Figure 34: Eclipse – IMP-NG component Set the timeout under Windows Æ Preferences Æ J2ME Æ Debug Server Delay to 15000. If you develop an extremely large application you may have to increase...
Page 65 - Figure 36: Eclipse – Project import
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 65 of 90 26.09.2005 10.3.4.3 Example After the integration you can import one example. Open menu: File Æ Import Æ Existing Project into Workspace and choose the root directory of the example. (see figure below)...
Page 67 - Figure 38: Eclipse – Create package; Run
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 67 of 90 26.09.2005 10.3.4.4 Compile and debug To build the jar and jad files you have rebuild the project with the “create package” function. Open the context menu of the project and go to J2ME Æ Create Packag...
Page 69 - Security; execution of signed MIDlets (see chapter 11.2 Execution Control )
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 69 of 90 26.09.2005 11 Java Security The Java Security Model follows the specification of IMP 2.0 but does not integrate the protection domain concept. The protection domain concept is not needed. If the softwa...
Page 70 - Secure Data Transfer; Figure 40: Mode 1 - Java Security not activated
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 70 of 90 26.09.2005 11.1 Secure Data Transfer This feature makes it possible for MIDlets to use safe data links to external communications partners. The specification IMP 2.0 defines two java classes with this ...
Page 71 - Figure 41: Mode 2 - Java Security activated; Figure 42: Mode 2 - Java Security activated
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 71 of 90 26.09.2005 HTTPS Server public key fromowner of thecertificate (CA) CA Root Certificate (X.509) self singned TCP/IP Connection Module private key from owner of the certificate as s erv er c erti fica t...
Page 72 - Create a Secure Data Transfer Environment Step by Step
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 72 of 90 26.09.2005 11.1.1 Create a Secure Data Transfer Environment Step by Step The following steps describe the creation of the configuration: • Java Security Mode is activated ( see 11.2.1 Change to Secured...
Page 73 - Control; secured mode
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 73 of 90 26.09.2005 -keyfile ./democa/private/cakey.der -certfile ./democa/cacert.der 6. Export private key from server certificate - The private key is needed for the (HTTPS or Secure Connection)server configu...
Page 74 - Change to Secured Mode Concept; generate key pair; private key; generate customer root; binary data of certificate; build binary data for AT; Figure 43: Switch to Security Mode
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 74 of 90 26.09.2005 11.2.1 Change to Secured Mode Concept generate key pair private key public key Customer Environment generate customer root certificate public key from issuer ofthe certificate Customer Root ...
Page 75 - Concept for the Signing the Java MIDlet; encoded JAR-File HASH
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 75 of 90 26.09.2005 11.2.2 Concept for the Signing the Java MIDlet private key Customer Environment g ener a te H A S H Java-MIDlet JAR-File Java-MIDlet JAD-File JAR-File HASH (SHA1) e n c odi n g w it h pr iv ...
Page 76 - Application and Data Protection; makes it possible to send binary data to the module. After
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 76 of 90 26.09.2005 11.3 Application and Data Protection In addition to the Java secured mode it is possible to prevent the activation of the Module Exchange Suite. When Module Exchange Suite access is deactiva...
Page 77 - Structure of the Java Security Commands
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 77 of 90 26.09.2005 11.4.1 Structure of the Java Security Commands UINT16 cmd total len UINT16 UINT16 parameter unit signature unit ... General structure Set Customer Root Certificate total len 0x0001 0x0003 pa...
Page 78 - Build Java Security Command; Figure 45: Build Java Security Command
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 78 of 90 26.09.2005 11.4.2 Build Java Security Command gene ra te HA SH private key Customer Environment enco d in g w it h private key HASH (SHA1) signature build t o tal c o mmand cmd len cmd parameter unit s...
Page 79 - Send Java Security Command to the Module; wait for the answer:
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 79 of 90 26.09.2005 11.4.3 Send Java Security Command to the Module Use a terminal program. enter: at^sjsec wait for the answer: CONNECT JSEC READY: SEND COMMAND ... Now you can send the binary data of the comm...
Page 80 - Create a Java Security Environment Step by Step
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 80 of 90 26.09.2005 11.5 Create a Java Security Environment Step by Step 11.5.1 Create Key store The key store contains the key pairs for signing data. For producing the key store with keys the tool “keytool.ex...
Page 81 - Sign a MIDlet; The central element of Java Security is the; . If Java Security is activated and you; module is destroyed; . You do not have a possibility of; secure the private key
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 81 of 90 26.09.2005 Command: switch on module exchange functionality java -jar jseccmd.jar -cmd ObexActivationOn –imei 012345678901234 -alias keyname -storepass keystorepassword -keypass keypassword -keystore c...
Page 82 - Tutorial; Using the AT Command API
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 82 of 90 26.09.2005 12 Java Tutorial This small tutorial includes explanations on how to use the AT Command API and suggestions for programming MIDlets. The developer should read about MIDlets, Threads and AT c...
Page 83 - Connections; If a data connection is created with the
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 83 of 90 26.09.2005 12.1.1.2 Sending an AT Command to the Device, the send() Method An AT command is sent to the device by using the send() method. The AT command is sent as a string which must include the fina...
Page 85 - Interface; ATCommandResponseListener
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 85 of 90 26.09.2005 12.1.1.4 Synchronization For performance reasons no synchronization is done in the ATCommand class. If an instance of this class has to be accessed from different threads ensure that the sen...
Page 86 - ATCommandListener
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 86 of 90 26.09.2005 12.1.3 ATCommandListener Interface The ATCommandListener interface implements callback functions for: • URCs • Changes of the serial interface signals RING, DCD and DSR • Opening and closing...
Page 88 - Programming the MIDlet; Thread
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 88 of 90 26.09.2005 12.2 Programming the MIDlet The life cycle and structure of MIDlets are described in Chapter 6. Since the MIDlets will run on J2ME™, all of J2ME™’s features, including threads, are available...
Page 90 - Differences from the TC45; share any pins, so the selection mechanism no longer exists.
TC65 JAVA User's Guide Strictly confidential / Released s TC65 JAVA User's Guide_V05 Page 90 of 90 26.09.2005 13 Differences from the TC45 For those who are familiar with the Siemens WM TC45 product this is an overview of the main differences between TC45 and TC65. • “real” TCP and UDP access interf...