On-Device Debugging with the Siemens TC65 and the NetBeans Mobility Pack 5.0

There are devices that don't have a display. These devices are used for machine-to-machine communications applications in the field such as fleet management, security, remote control. remotely control, and perform many other tasks that don't require a high resolution display or fancy keyboard. They utilize serial and I/O ports and A/D converters to control remote processes, grab status reports and other information, guard objects, and perform many other functions. That's where industrial modules like the TC65 become useful.

Petr Suchomel will describe you how to connect the device to computer, how to debug on it and more in his new tutorial. There is even nice flash demo. It will shows you what you can do with the TC65 and Mobility Pack even when you don't have the TC65 on your desk.

I saw it on Petr's desk. It is absolutelly uninteresting board with a few inputs and LED diods and chips. I can only imagine where ever it can be used.



TAGs:
Comments:

Hi, i would like to know, whether TC65 applications can be developed using C/C++. If so please post some information regarding thins thanks, prajeesh

Posted by Prajeesh on May 07, 2006 at 02:20 AM CEST #

According to official siemens description of TC65 it is based on Java. It means NO c/c++
http://www.siemens.com/tc65

Posted by Lukas on May 09, 2006 at 01:16 AM CEST #

I have a Siemens TC65. Who can help me make tis: 1- somebody send a sms to the tc65 whit text 'open' of send 'close'. The TC65 send it to my computer of webpage en there wil change a sign. Swimpoll is: OPEN or Swimpool is: CLOSE 2- people may send mms of sms to the tc65. received image wil be directly placed on a webpage. (html or php) 3- i make a list of members of our foorbalclub with there mobile numbers. Someday football is canceld and i can send a message(afther i have logged in at my webpage) that the football is cancelled. (prefer free text to send) Who can help me? Please react. Thanxs, Hans

Posted by Hans on September 13, 2006 at 08:18 AM CEST #

I don't know why do you need TC65 for that. TC65 is more industrial module for managing an external devices (like a machine) than a sms receiver/sender.

Posted by Lukas on September 14, 2006 at 07:47 AM CEST #

There is no problem to make such application. You can either periodicaly use at+cmgl=ALL (in at+cmgf=1) to get all messages, parse them and then delete parsed ones by at+cmgd=[index]. You can also register for URC events and be notified when a new message is available, then follow by later instructions. Make sure, you delete messages, if you use at+cmgl=all otherwise you may get errors when answer is longer than 1024 (?) bytes. The way the result is delivered to server differs. You can either use serial port a do the delivery to server on cable or sockets/http to deliver through air (gprs).

Posted by Suchys on September 14, 2006 at 09:47 AM CEST #

Hi, I own the DSB75 and using the TC65 module.
I can write and run programs from the PC,
I can use the flash on the TC65
Everything is working great.
The only problem I have is that I can not debug my programs …
I've been reading the article http://www.netbeans.org/kb/50/tutorial-tc65-odd.html

I'm using:
Software for the Siemens Mobility ToolKit (SMTK) TC65
Module Exchange Software (MES)
NetBeans 5.0 with the Mobility pack 5.0 installed.

When I try to Debug my applications I get the next error and I have no idea why,

I hope you can help me.

The Error:

Starting emulator in debug server mode on port 1617
============================================================
Starting emulator for debugging. Please wait ...
============================================================
Set baud rate for the module to "115200 baud"..
>>> Starting Download of .jar and .jad file... <<<
nbdebug:
Wrong initialization response received from the module.
No initialization for module debugging is possible!
KdpDebugTask connecting to debugger 1 ..
KdpDebugTask connecting to debugger 2 ..
KdpDebugTask connecting to debugger 3 ..
KdpDebugTask connecting to debugger 4 ..
KdpDebugTask connecting to debugger 5 ..
Connecting JPDA Debugger to emulator timed out after 5 attempts and 36 seconds.
F:\\MobileApplication\\nbproject\\build-impl.xml:303:
Execution failed with error code -1.
The following error occurred while executing this line:
F:\\MobileApplication\\nbproject\\build-impl.xml:311: Connecting JPDA Debugger to emulator timed out after 5 attempts and 36 seconds.<br? BUILD FAILED (total time: 47 seconds)

Posted by Oblisc on October 12, 2006 at 01:08 AM CEST #

Oblisc, could you look at this bug report? IMO, the patch attached in the bug could solve your debuging problem. Please, let me know if it didn't help.

Posted by Lukas on October 15, 2006 at 10:00 AM CEST #

Hello, I'm trying to receive SMS's over the ATListener interface, included in the tc65 SDK. I can receive Ring events, but not others. Someone can help me to configure tc65 module to receive this event?? Thanks

Posted by Ariel on March 01, 2007 at 05:47 AM CET #

I would like to look at this in more detail, but I need to know what you are exactly doing. Could you provide snap of code which does the registration for SMS listening?

Posted by Suchys on March 01, 2007 at 06:00 AM CET #

Suchys: This class implements ATcommandlistener interface and trap the ring but not the urc event for SMS's //#ifdef DefaultConfiguration import com.siemens.icm.io.\*; //#endif public class Main extends Thread implements com.siemens.icm.io.ATCommandListener { boolean bState=false; private Thread th=null; private RS232 oRS232; //#ifdef DefaultConfiguration private ATCommand ATCmd = null; private ATListener lt = null; com.siemens.icm.io.ATCommandListener Listener; //#endif public Main() { //#ifdef DefaultConfiguration try { lt = new ATListener(); ATCmd = new ATCommand(false); ATCmd.addListener(this); } catch (ATCommandFailedException e) { Commons.sendHTTPmessage(e.toString()); } catch (Exception ee) { Commons.sendHTTPmessage(ee.toString()); } //#endif oRS232=new RS232("pp"); th=new Thread(oRS232); System.out.println("Main+Start"); } public void run(){ Commons.sendHTTPmessage("Main+Start"); System.out.println("Main+Start"); } public void ATEvent(String Event) { System.out.println("URC-Event: " + Event); Commons.sendHTTPmessage("URCEvent" + Event); } public void RINGChanged(boolean SignalState) { System.out.println("RING-Event: " + SignalState); Commons.sendHTTPmessage("RINGEvent" + SignalState); if(bState==false) { bState=true; Commons.sendHTTPmessage("Init+RS232"); try { th.run(); } catch (Exception ee) { Commons.sendHTTPmessage("ThreadFails" + ee.toString()); } } } public void DCDChanged(boolean SignalState) { System.out.println("DCD-Event: " + SignalState); Commons.sendHTTPmessage("DCD-Event:"); } public void DSRChanged(boolean SignalState) { System.out.println("DSR-Event: " + SignalState); Commons.sendHTTPmessage("DSR-Event:"); } public void CONNChanged(boolean SignalState) { System.out.println("CONN-Event: " + SignalState); Commons.sendHTTPmessage("CONN-Event:"); } }

Posted by Ariel on March 01, 2007 at 11:29 AM CET #

Hi, I also have some problems with my TC65. First, communication using USB port (the only one I can use) doesn't work very well (it crashes regulary). But the most important point, is how can I use the "AT\^SSPI" command ? I need it to connect to the GPS chip that is connected with it.

Posted by Florent on March 03, 2007 at 06:30 AM CET #

Hi, I need to do the following two things: 1) recording a signal from the analog input of the AD converter of the TC65 2) sending an MMS to another TC65 containg some derived information of the signal acquired How can I acquire the signal and send the MMS? Is the class MessageConnection supported by the TC65? Do I need to import specific library? Thank Tou

Posted by federica censi on March 12, 2007 at 09:38 AM CET #

Hi, I have a similar problem than Suchys, but I am using:
Software for the Siemens Mobility ToolKit (SMTK) TC65
Module Exchange Software (MES)
Eclipse 3.2.0
EclipseMe 1.6.6

For debugging I am working with USB port (its creates the COM3 virtual port). Others ports doesn't work.
When I try to debug my applications I get the next error:

============================================================
Starting emulator for debugging. Please wait ...
============================================================

Set baud rate for the module to "115200 baud"..
Set the COM-Port for MES functions to "COM3".

>>> Starting Download of .jar and .jad file... <<<

Downloading "C:\\DOCUME~1\\nogusajo\\CONFIG~1\\Temp\\_eclipseme.tmpnogusajo\\launch_9072.j2me\\Preprocessing.jad"..

Downloading "C:\\DOCUME~1\\nogusajo\\CONFIG~1\\Temp\\_eclipseme.tmpnogusajo\\launch_9072.j2me\\Preprocessing.jar".

Initialize module for debugging ..
Wrong initialization response received from the module.

No initialization for module debugging is possible!
Debugging aborted!

CAN YOU HELP ME?
The configuration of the WM_Debug_config.ini file is:

#
# This ini file is used to configure emulator.exe
#
# Hints:
# ------
# Store this ini file into the directory where the emulator.exe is located!

[Module type]
# Define the used module type
ModuleType=TC65

[COM parameter]
# Define the COM-Port used for MES functions and debug initial string
# Define the Baudrate used for the debug initial string
# all other setting are fixed: 8 bits, no parity, 1 stopbits
Port=COM3

#possible range: 110 ... 256000
Baudrate=115200

[AT command]
# These AT commands are used for initialising the module for debugging!
# Hints:
# ------
# The IP address range 10.x.x.x is not supported for configuration of debugging!
AT-Cmd1=S:ATE1
AT-Cmd2=R:OK
AT-Cmd3=S:at+cpin?
AT-Cmd4=R:+CPIN: READY
AT-Cmd5=R:OK
AT-Cmd6=S:at\^scfg=userware/debuginterface,"192.168.0.2","192.168.0.1","0"
AT-CMd7=R:\^SCFG: "Userware/DebugInterface","192.168.0.2","192.168.0.1","0"
AT-Cmd8=R:OK
AT-Cmd9=S:at\^scfg=userware/mode,"debug","a:/","2000"
AT-Cmd10=R:\^SCFG: "Userware/Mode","debug","a:/"," 2000"
AT-Cmd11=R:OK
#Esto lo añado para poder hacer el System.out
AT-Cmd12=S:at\^scfg=userware/stdout,UDP,
AT-Cmd13=R:\^SCFG: "Userware/Stdout","UDP","
AT-Cmd14=R:OK

Posted by Joxean Nogales Usarraga on April 02, 2007 at 03:28 AM CEST #

Hello! I have just received a XT75 module with the DSB75 and I haven't been able to comunicate the module with Internet because my mobile network has a proxy server and I don't see any configuration to make it work. I have been able to connect the XT75 to the GPRS network and even get an IP address. Can't I use the HTTP service profile with a proxy server? Do I have to make a socket connection to the proxy and implement the HTTP protocol by myself? I know this isn't the topic but I haven't found much information about XT75 on the web and since TC65 is similar in GPRS mode maybe someone can help me.

Posted by Mauricio on April 08, 2007 at 01:39 PM CEST #

Hi, I'm braziliam, i need one project to TC65, simple conect to IP e send date port serial, you help me??? thanks

Posted by Deijair on June 07, 2007 at 02:42 PM CEST #

I am trying to upload my my Java programme on an XT75 Siemens module (GPS/GSM receiver). It gives me problem below. Can anyone help me on what to do?

=========================================================================
Starting XT75 emulator for running application. Please wait ...
=========================================================================

COM port used for "emulator session": COM5

Used baud rate for the module "115200 baud".....
Unable to use selected baud rate for the module.
Please check, if "COM5" is set to "115200 baud" or is used from another device!
Please use "at+ipr=115200" to set correct baud rate!
Communication problems to the module.
Please check the COM port and the connections!
No initialization for module debugging is possible!

Posted by Robert on December 20, 2007 at 01:19 AM CET #

Hi, you refer to a debugging tutorial for the Siemens TC65 http://www.netbeans.org/kb/50/tutorial-tc65-odd.html but the page is gone, also not archived. Any chance to dig up a working link to this doc?
Thanks&regards, Ulrich

Posted by Ulrich Goluke on April 29, 2008 at 09:07 AM CEST #

The tutorial is archived at the "internet archive":

http://web.archive.org/web/20070821014017/http://www.netbeans.org/kb/50/tutorial-tc65-odd.html

Posted by Alex Kavanagh on June 10, 2008 at 04:20 AM CEST #

I have problem with debug XT75 under eclipse.

Posted by Grzegorz on September 24, 2008 at 01:03 PM CEST #

Hello

I have problem with debug program for XT75. I work in XP , install java j2sdk1.4.2_09 (from CD) , eclipse (with EclipseMEplugin_123) ,SMTK and connect terminal TC65 with XT75 module.

When I want to debug my simple Midlet HelloWorld under celipse I get error:

=========================================================================
Starting XT75 emulator for debugging application. Please wait ...
=========================================================================

COM port used for "emulator session": COM1

Used baud rate for the module "115200 baud"..

>>> Emulator is set to no download of Jar and Jad file! <<<

Initialize module for debugging ...
The module is now initialized for debugging!

>>> Establishing TCP/IP connection "IP connection for remote debugging"... <<<
Please wait ...
Done.

>>> Starting Debug Agent ... <<<

The debug agent is not started!

File WM_Debug_config.ini in WTK for XT75 is:

#
# This ini file is used to configure emulator.exe
#
# Hints:
#
# Store this ini file into the directory where the emulator.exe is located!

[Module type]
# Define the used module type
ModuleType=XT75

[AT command]
# These AT commands are used for initialising the module for debugging!
# Hints:
# # The IP address range 10.x.x.x is not supported for configuration of debugging!
AT-Cmd1=S:ATE1
AT-Cmd2=R:OK
AT-Cmd3=S:at+cpin?
AT-Cmd4=R:+CPIN: READY
AT-Cmd5=R:OK
AT-Cmd6=S:at\^scfg=userware/debuginterface,"192.168.0.21","192.168.0.22","0"
AT-CMd7=R:\^SCFG: "Userware/DebugInterface","192.168.0.21","192.168.0.22","0"
AT-Cmd8=R:OK
AT-Cmd9=S:at\^scfg=userware/mode,"debug","a:/","2000"
AT-Cmd10=R:\^SCFG: "Userware/Mode","debug","a:/","2000"
AT-Cmd11=R:OK
AT-Cmd12=S:at\^scfg=userware/stdout,UDP,2000
AT-Cmd13=R:\^SCFG: "Userware/Stdout","UDP","2000"
AT-Cmd14=R:OK

[System.out port]
# used UDP port number range: 1024 ... 65535
# comment out the following line for switching off Java "System.out" displaying in the IDE window
#UDPport=12345

[DebugAgent delay timer]
# settings for Debug Agent delay timer in ms
#DATimer=2000

I send At command to terminal AT\^SCFG? and get answer:

\^SCFG: "AutoExec","0","0","0","0",""
\^SCFG: "AutoExec","0","1","0","0","","000:00:00","000:00:00"
\^SCFG: "AutoExec","0","1","1","0","","000:00:00","000:00:00"
\^SCFG: "AutoExec","0","1","2","0","","000:00:00","000:00:00"
\^SCFG: "GPRS/ATS0/withAttach","on"
\^SCFG: "GPRS/AutoAttach","disabled"
\^SCFG: "GPRS/PersistentContexts","0"
\^SCFG: "GPRS/RingOnIncomingData","off"
\^SCFG: "MEopMode/Airplane","off"
\^SCFG: "MEopMode/Airplane/OnStart","off"
\^SCFG: "MEShutdown/OnIgnition","off"
\^SCFG: "PowerSaver/Mode9/Timeout","20"
\^SCFG: "Radio/Band","3","15"
\^SCFG: "Radio/OutputPowerReduction","3"
\^SCFG: "Serial/USB/DDD","0","0","0409","0681","0034","Siemens AG Wireless Modules","XT75",""
\^SCFG: "Tcp/BufSize","5200"
\^SCFG: "Tcp/IRT","3"
\^SCFG: "Tcp/MR","10"
\^SCFG: "Tcp/OT","6000"
\^SCFG: "Tcp/SAck","1"
\^SCFG: "Tcp/TTcp","0"
\^SCFG: "Tcp/WithURCs","on"
\^SCFG: "Trace/Syslog/OTAP","0"
\^SCFG: "Userware/Autostart","0"
\^SCFG: "Userware/Autostart/AppName",""
\^SCFG: "Userware/Autostart/Delay","0"
\^SCFG: "Userware/DebugInterface","192.168.0.21","192.168.0.22","0"
\^SCFG: "Userware/Passwd"
\^SCFG: "Userware/Mode","debug","a:/Project02.jar","2000"
\^SCFG: "Userware/Stdout","UDP","2000"
\^SCFG: "URC/CallStatus/CIEV","restricted"
\^SCFG: "URC/CallStatus/SLCC","verbose"
\^SCFG: "URC/Datamode/Ringline","off"
\^SCFG: "URC/Ringline","local"
\^SCFG: "URC/Ringline/ActiveTime","2"

OK

Please help me.

Thanks.

Posted by Grzegorz on September 24, 2008 at 01:05 PM CEST #

Dear Grzegorz,

have you solved your problem, i use TC65 and i have the same situation... ;/

regards
Michal

Posted by Michal on October 02, 2009 at 04:55 PM CEST #

It seems, I solved the problen with the message "Wrong initialization response received from the module".
The MAIN matter is so:
- The modem answer does not fit to the answer, which emulator expects.

I try to explain: in the file WM_Debug_config.ini there are TWO types of lines.
One type of lines begin with the "AT-Cmd_=S:" - this lines are SENDING to the MODEM
The other type of lines begin with "AT-Cmd_=R:" - this answer emulator EXPECTS ANSWER from the module
If the the REAL answer from the modem does not STRICTLY EQUAL the estimated answer, the message "Wrong initialization response received from the module" appears. And then all rest lines of the file by emulator are ignored .

In my case three lines of file "WM_Debug_config.ini" I had to modify:
The line AT-Cmd10=R:\^SCFG: "Userware/Mode","debug","a:/","2000" I modified to
AT-Cmd10=R:\^SCFG: "Userware/Mode","debug","a:/"," 2000" (added space before 2000)

And the lines:
AT-Cmd12=S:at\^scfg=userware/stdout,UDP,
AT-Cmd13=R:"Userware/Stdout","UDP"

were modyfier to
AT-Cmd12=S:at\^scfg=userware/stdout,UDP,12345
AT-Cmd13=R:"Userware/Stdout","UDP","12345"

All the changes were made after the expirence with the direct modem test with the such commands.

Now my TC65 debugger works!

Posted by sm on October 08, 2009 at 04:31 AM CEST #

Dear SM

After i found your reply notification in my messagebox, i have test your advice on my TC65i set. Unfortunately, there shows a new problem... :
Initialize module for debugging ....
Please insert a SIM and enter PIN.

Wrong initialization response received from the module.

No initialization for module debugging is possible!
Debugging aborted!

Of course, i have deleted lines which are connected with PIN entry block but after changes you proposed i have the pin monit again.
My ini:
# The IP address range 10.x.x.x is not supported for configuration of debugging!
AT-Cmd1=S:ATE1
AT-Cmd2=R:OK
AT-Cmd3=S:at\^scfg=userware/debuginterface,"192.168.0.2","192.168.0.1","0"
AT-CMd4=R:\^SCFG: "Userware/DebugInterface","192.168.0.2","192.168.0.1","0"
AT-Cmd5=R:OK
AT-Cmd6=S:at\^scfg=userware/mode,"debug","a:/","2000"
AT-Cmd7=R:\^SCFG: "Userware/Mode","debug","a:/"," 2000"
AT-Cmd8=R:OK
AT-Cmd9=S:at\^scfg=userware/stdout,UDP,12345
AT-Cmd10=R:\^SCFG: "Userware/Stdout","UDP","12345"
AT-Cmd11=R:OK

Maybe , somebody have the same problem ?
regards
Michal

Posted by Michal on October 08, 2009 at 01:46 PM CEST #

Hello,

Something I am missing during initialization. Any help will be appreciated.

Downloading "C:\\Documents and Settings\\sysadmin\\Test\\dist\\nbrun3717\\Test.jar"...
...finished

Initialize module for debugging...
nbdebug:

The module is now initialized for debugging!

>>> Establishing TCP/IP connection "IP connection for remote debugging"... <<<
The connection needs information from you, but the application does not allow user interaction.
Please wait ...
Debugging is aborted! Please check the COM connection, dial up network parameters
and restart module and debugging once again!

Establishment of TCP/IP connection is aborted!
End of debugging session. Emulator is closed!
KdpDebugTask connecting to debugger 1 ..
KdpDebugTask connecting to debugger 2 ..
KdpDebugTask connecting to debugger 3 ..
KdpDebugTask connecting to debugger 4 ..
KdpDebugTask connecting to debugger 5 ..
Connecting JPDA Debugger to emulator timed out after 5 attempts and 30 seconds.
C:\\Documents and Settings\\sysadmin\\Test\\nbproject\\build-impl.xml:306: The following error occurred while executing this line:
C:\\Documents and Settings\\sysadmin\\Test\\nbproject\\build-impl.xml:311: Connecting JPDA Debugger to emulator timed out after 5 attempts and 30 seconds.
BUILD FAILED (total time: 41 seconds)

Posted by tV on October 13, 2009 at 09:47 PM CEST #

Hi there,
I am looking for example code on how to send a SMS when an input is triggered on the TC65T.
Do you have anything available?
Thanks
AdelC

Posted by AdelC on October 14, 2009 at 07:05 AM CEST #

Hi everybody,
I had the same problems with TC65T debugging. I´ve tried everything:
1) disable firewall;
2) modifying WM_Debug_config.ini;
3) ...

The only solution was:
1) deinstall firstly MES and then TC65 software development tool (exactly in this order, and both);
2) make sure to use "Eclipse ME Plugin 168;
2) reinstall TC65 software development tool;
3) make sure MES is ok (by checking Hyperterminal. If it doesn´t work, the debug connection will not work);
4) in your project (under "project properties):
4.a) Platform: disable "defaut configuration" and set "Siemens IMP-NG TC65 Wireless Toolkit" - Device: "IMP_NG_Device"
4.b) everywhere (i.e, Abilities, Attributes, MIDlet,PushRegistry,APIPermission,SourceFiltering,Compiling,...): disable "Default Configuration";
4.c) in nbproject/project.properties: make sure that: javac.source=1.3 and javac.target=1.1.

This was the only combination that works ...

Moreover, if you are using serial/USB adapter for the connection to TC65, sometimes the debug cannot start. Don´t worry: stop it, possibly switch off the module, and try again.

I hope this may be helpfull for you. I spent (lost?) 3 days in solving different debugging problems ...

Bye

Posted by ema on November 04, 2009 at 09:28 AM CET #

Thank you very much for this know how and your time to figure it out. I will test it as soon as it posible on my hardware set. Of course I will give you some info about my progress.

regards!

Posted by Michał P on November 04, 2009 at 03:08 PM CET #

Great post and draw. Thank you for sharing.

Posted by links of london jewellery on November 23, 2009 at 07:39 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This is the main channel to share news, tips and other stuff related to my work. Sometimes you can find even personal stuff. Enjoy your reading...

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
news
Blogroll

No bookmarks in folder

OldNews
MyTrash
NavBar
NetBeans
LinksToBeExpanded