Siemens TC65 manual Java IDE

Page 53

TC65 JAVA User's Guide

s

Strictly confidential / Released

 

10.3Java 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 using the emulator. JAR files used in the module must be configured according to the batch file examples given. If the SMTK install succeeded, you can easily switch between the Siemens environment and Standard-JDK environment, the special libraries/APIs and emulators are available, and AT commands can be sent to the module. Regular function of the IDE for non- Siemens projects is unchanged.

Using the debugger please keep in mind that the MIDlet-URL, included in the Jad file, has to indicate and store the location where the TC65 emulator will find the corresponding Jar file. Generally the location will only be the file name for the Jar file.

If you are using Eclipse IDE the location of the Jar file is “deployed\<filename>.jar”. Please check this path name inside the Jad file before starting a debugging session with Eclipse IDE and change it manually, if the “deployed” subdirectory is missing. Please keep in mind, that the subdirectory “deployed” is used as a default setting in the Eclipse IDE and can be changed by the user within the Eclipse menu.

While using "on device debugging" the TC65 module is restarted after the end of each debugging session. This is independent of the used IDE (Eclipse 3.0.1, Eclipse 3.0.2, Sun Java Mobility Studio 6 2004Q3, JBuilder X, JBuilder 2005).

Please keep in mind, that it is not possible to use obfuscated files for a debugging session.

TC65 JAVA User's Guide_V05

Page 53 of 90

26.09.2005

Image 53 Contents
Java Users Guide TC65 Java Users Guide Document Name TC65 Java Users GuideSeptember 26 TC65 Java Users GuideV05Table of Contents 3.3.2 MaintenanceJava Security Compile and Run a Program without a Java IDEDebug Environment Differences from the TC45 Java TutorialTables Sun Java Studio Mobility 6 Switching EmulatorsPreamble Related Documents New solutionOverview Abbreviation Description Terms and AbbreviationsSystem Requirements InstallationInstallation CD Module Exchange Suite Components1.2 WTK SDK and Java StudioInstalling the Smtk Environment Siemens Mobility Toolkit InstallationInstalling the Standard Development Toolkit Installing Module Exchange Suite MES Installing Sun Java Studio MobilityInstalling Eclipse Installing Borland JBuilder X Upgrades Smtk UninstallSoftware Architecture Software PlatformGeneral Purpose I/O Interfaces 1 ASC0 Serial Device3 DAC/ADC 4 ASC1IP Networking JVM InterfacesMedia Other InterfacesADC Data Flow of a Java Application Running on the ModuleModule States Handling Interfaces and Data Service ResourcesState 4 Default Java Application Active State 1 Default No Java RunningState 2 No Java Running, General Purpose I/O and I2C State 3 No Java Running, General Purpose I/O and SPIState 5 Java Application Active, General Purpose I/O and I2C Module State Transitions IP Service MaintenanceCharging Power SavingAlarm Airplane ModeShutdown Automatic ShutdownSpecial AT Command Set for Java Applications Restart after Switch OffSwitching from Data Mode to Command Mode Mode Indication after MIDlet StartupJava Commands Configuration of Serial InterfaceRestrictions Flash File System MemoryJava PerformanceFrequencyB 1 / frequencyA Duration of each loop = 600 sData Rates on RS-232 API Pin I/OVoice Call in Parallel Plain Serial InterfaceUpload Scenarios with Gprs Connection75% 63% 55% 33% 65% 55% 33% 16%85% 78% 58% 48% Download91% 87% 81% 73% MIDlet Documentation MIDlet Life Cycle MIDletsMIDlet.destroyApp method Here is a sample HelloWorld program Hello World MIDletFile Transfer to Module Command Line BasedModule Exchange Suite Windows BasedOtap Security IssuesOver the Air Provisioning Otap Overview Over The Air Provisioning OtapIntroduction to Otap Otap Parameters Parameters Max. Length AT Keyword SM Install/update DeleteDelete operation Install operationShort Message Format Java File Format Procedures Install/Update Delete Tips and Tricks for Otap Time Out Values and Result CodesSecurity Otap TracerHow To Build Results Compile and Run a Program without a Java IDE Run on the Module with Autostart Compile Run on the Module with Manual Start Switch off Autostart Switch on AutostartData Flow of a Java Application in the Debug Environment Debug EnvironmentEmulator Java IDE Sun Java Studio Mobility 6 2004Q3 Switching emulators Projects Compile and run TemplatesExamples Borland JBuilder JBuilderX JDK settingsExamples TC65 Java Users Guide JBuilder2005 JDK settings Integration EclipseEclipse Plug-in installation Eclipse J2ME platform TC65 Java Users GuideV05 26.09.2005 Eclipse Project import ExampleEclipse Example Eclipse Create package Compile and debugBreakpoints Eclipse ConfigurationJava Security Mode Secure Data TransferJ a va C u r i t y c e r t i f i c a t e Asja VasecuritycertificateCreate CA and generate CA Root Certificate Create a Secure Data Transfer Environment Step by StepExecution Control Unsecured modeSecured mode Build binary data for AT command Atsjsec Change to Secured Mode ConceptGenerate key pair Generate customer root CertificateEncoded JAR-File Hash Concept for the Signing the Java MIDletApplication and Data Protection Structure and Description of the Java Security CommandsGeneral structure Structure of the Java Security CommandsHash SHA1 Build Java Security CommandATSJSEC? Send Java Security Command to the ModuleExport X.509 Root Certificate Create Java Security CommandsSign a MIDlet Command switch off module exchange functionalityClass ATCommand Using the AT Command APIJava Tutorial Instantiation with or without CSD SupportData Connections Sending an AT Command to the Device, the send MethodTC65 Java Users Guide Synchronization ATCommandResponseListener InterfaceNon-blocking ATCommand.send Method Implementation ATCommandListener InterfaceATEvents Registering a Listener with an ATCommand Instance Example Programming the MIDletThreads TC65 Java Users Guide Differences from the TC45
Related manuals
Manual 123 pages 53.3 Kb