beautypg.com

Figures – Siemens TC65 User Manual

Page 6

background image

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

11.4.2

Build Java Security Command...............................................................78

11.4.3

Send Java Security Command to the Module........................................79

11.5

Create a Java Security Environment Step by Step..............................................80

11.5.1

Create Key store ....................................................................................80

11.5.2

Export X.509 Root Certificate ................................................................80

11.5.3

Create Java Security Commands ..........................................................80

11.5.4

Sign a MIDlet .........................................................................................81

11.6

Attention...............................................................................................................81

12

Java Tutorial ................................................................................................................82

12.1

Using the AT Command API................................................................................82

12.1.1

Class ATCommand................................................................................82

12.1.1.1

Instantiation with or without CSD Support.........................................82

12.1.1.2

Sending an AT Command to the Device, the send() Method............83

12.1.1.3

Data Connections..............................................................................83

12.1.1.4

Synchronization.................................................................................85

12.1.2

ATCommandResponseListener Interface..............................................85

12.1.2.1

Non-blocking ATCommand.send() Method .......................................85

12.1.3

ATCommandListener Interface ..............................................................86

12.1.3.1

ATEvents...........................................................................................86

12.1.3.2

Implementation..................................................................................86

12.1.3.3

Registering a Listener with an ATCommand Instance ......................87

12.2

Programming the MIDlet ......................................................................................88

12.2.1

Threads..................................................................................................88

12.2.2

Example .................................................................................................88

13

Differences from the TC45 .........................................................................................90

Figures


Figure 1: Overview ................................................................................................................... 9
Figure 2: Interface Configuration............................................................................................ 18
Figure 3: Data flow of a Java application running on the module........................................... 19
Figure 4: Module State 1 ........................................................................................................ 21
Figure 5: Module State 2 ........................................................................................................ 21
Figure 6: Module State 3 ........................................................................................................ 21
Figure 7: Module State 4 ........................................................................................................ 21
Figure 8: Module State 5 ........................................................................................................ 22
Figure 9: Module State 6 ........................................................................................................ 22
Figure 10: Module State Transition Diagram.......................................................................... 23
Figure 11: Test case for measuring Java command execution throughput............................ 29
Figure 12: Test case for measuring Java MIDlet performance and handling pin-IO .............. 30
Figure 13: Scenario for testing data rates on ASC1............................................................... 31
Figure 14: Scenario for testing data rates on ASC1 with a voice call in parallel .................... 31
Figure 15: Scenario for testing data rates on ASC1 with GPRS data upload ........................ 32
Figure 16: Scenario for testing data rates on ASC1 with GPRS data download.................... 33
Figure 17: OTAP Overview .................................................................................................... 39
Figure 18: OTAP: Install/Update Information Flow................................................................. 43
Figure 19: OTAP: Delete Information Flow ............................................................................ 44
Figure 20: Data flow of a Java application in the debug environment.................................... 51
Figure 21: Sun Java Studio Mobility 6 - The installed emulators ........................................... 54