Emulator, 2 emulator – Siemens Java TC65 User Manual
Page 52
TC65 JAVA User's Guide
Strictly confidential / Released
s
TC65 JAVA User's Guide_V05
Page 52 of 90
26.09.2005
In the debug environment the module is connected to a PC via a serial interface. This can be
a USB or an RS232 line. The application can then be edited, built, debugged or run within an
IDE on the PC. When running or debugging the MIDlet under IDE control it is executed on
the module (on-device execution) not on the PC. This can be either debugging mode, where
the midlet execution can still be controlled from the IDE (on-device debugging) or normal
mode, where the midlet is copied to the module and started normally. This ensures that all
interfaces behave the same whether debugging mode is used or not.
10.2 Emulator
The TC65 emulator is part of the SMTK and is used as the controlling entity for on-device
debugging. Before it can be used it must be configured:
The emulator accesses the module with AT commands. In order to do this, it must know the
COM port and bit rate to use. The values are configured in the file
wtk/bin/WM_Debug_config.ini. Set the “Port” and “Baudrate” parameters to the desired
values.
Debugging information between the Debugger (IDE) and the JVM is transferred over an IP
connection. In order to establish this IP connection between the PC and the module the
emulator needs a special Dial-Up-Network (DUN) connection to be configured:
• ISP name: “IP connection for remote debugging”
• Modem: either “Standard 19200 bps Modem” or “TC65 14400 bps Modem”
• Phone number: *88#
• Username and password: any will do, it is recommended that the username and password
be saved for re-usage.
• Disable the “Redial if line dropped” option.
• Enable “Connect automatically”
Make sure that the DUN uses the same COM port and bit rate as the emulator. You can use
any of the three serial interfaces (ASC0, ASC1, USB) to connect with module, but you will
lose the functionality which is normally present on the interface. Because of this loss and
because of its speed it is recommended that the USB interface be used.
If necessary, the IP addresses used for the debug connection can also be changed. This is
done in the file wtk/bin/WM_Debug_config.ini. See the documentation of
at^scfg
with
parameter userware/debuginterface for details. Please keep in mind, that the IP address
range 10.x.x.x is not supported for configuration of debugging!
During installation of TC65 SMTK some new programs are installed for handling the
debugging session in conjunction with the IDE. The installation routine of the TC65 SMTK
doesn't change any configuration of an existing firewall on your PC.
In the case, that a firewall is installed on your PC and the local configured and used IP
connection (Dial-Up-Network connection for debugging) is blocked or disturbed by this
firewall, please configure the firewall or the Dial-Up-Network connection manually to accept
the new installed programs and the port or to use another port or contact your local PC
administrator for help.