Gemalto is now part of the Thales Group, find out more.

You are here

Problems getting Eclipse Java Debugger running to EHS8 over USB | Thales IoT Developer Community

March 2, 2016 - 8:22am, 10274 views

I am trying to setup Eclipse Java development environment for EHS8 on custom board.

I am trying to run On Device Debugging using the HelloWorld demo.

It seems to be close but problems with debugger connecting to EHS8.

 

I have copied the HelloWorld.jar and HelloWorld.jad files to the EHS8 using MES and successfully run it using:

AT^SCFG="Userware/Stdout","usb5"

AT^SJAM=0,"a:/HelloWorld.jad",""

AT^SJAM=1,"a:/HelloWorld.jad",""

 

I am using Windows 8.1 64-bit

I have installed JDK 7U25 using jdk-7u25-windows-i586.exe from “install CD” zip file

ehsx_rev03.001_arn0000014_install-cd.zip

 

I have installed Eclipse Juno SR2 from eclipse-mobile-juno-SR2-win32.zip.

I have run  Setup file from install CD zip file, this has installed the Gemalto SDK and examples.

  

The PPP Modem is at COM4

The USB Com ports to EHS8 are on COM15-COM20.

I CAN issue AT commands over COM4 or other COM ports

 

Powered up board.

Plug in usb to EHS8

Waited at least 15 seconds

Open another Teraterm for Output and change Setup->Serial Port to COM19 115200 8N1 to match USB5 serial port from EHS8.

Open Another Teraterm for AT Command Console and change Setup->Serial Port to COM17 115200 8N1

In COM17 window:

at

OK

ati

Cinterion

EHS8

REVISION 03.001

 

OK

at^SCFG?

^SCFG: "Audio/Loop","0"

^SCFG: "Call/ECC","0"

^SCFG: "Call/Speech/Codec","0"

^SCFG: "GPRS/AutoAttach","enabled"

^SCFG: "Gpio/****/ASC1","gpio"

^SCFG: "Gpio/****/DAI","gpio"

^SCFG: "Gpio/****/DCD0","std"

^SCFG: "Gpio/****/DSR0","std"

^SCFG: "Gpio/****/DTR0","std"

^SCFG: "Gpio/****/FSR","gpio"

^SCFG: "Gpio/****/GPSANT","gpio"

^SCFG: "Gpio/****/HSIC","gpio"

^SCFG: "Gpio/****/PULSE","gpio"

^SCFG: "Gpio/****/PWM","gpio"

^SCFG: "Gpio/****/RING0","gpio"

^SCFG: "Gpio/****/SPI","rsv"

^SCFG: "Gpio/****/SYNC","gpio"

^SCFG: "Ident/Manufacturer","Cinterion"

^SCFG: "Ident/Product","EHS8"

^SCFG: "MEShutdown/Fso","0"

^SCFG: "MEShutdown/sVsup/threshold","0","0"

^SCFG: "MEopMode/CFUN","0","1"

^SCFG: "MEopMode/SoR","off"

^SCFG: "Radio/Band","511"

^SCFG: "Radio/Mtpl","0"

^SCFG: "Radio/OutputPowerReduction","4"

^SCFG: "Serial/Interface/Allocation","0","0"

^SCFG: "Serial/USB/DDD","0","0","0409","1E2D","0058","Cinterion Wireless Modules","EHx",""

^SCFG: "Tcp/IRT","3"

^SCFG: "Tcp/MR","10"

^SCFG: "Tcp/OT","6000"

^SCFG: "Tcp/WithURCs","off"

^SCFG: "Trace/Syslog/OTAP","0"

^SCFG: "URC/Ringline","local"

^SCFG: "URC/Ringline/ActiveTime","2"

^SCFG: "Userware/Autostart","1"

^SCFG: "Userware/Autostart/Delay","0"

^SCFG: "Userware/DebugInterface","0.0.0.0","0.0.0.0","0"

^SCFG: "Userware/DebugMode","on"

^SCFG: "Userware/Passwd",

^SCFG: "Userware/Stdout","null",,,,"off"

^SCFG: "Userware/Watchdog","0"

 

OK

at^SCFG="Userware/Stdout","usb5"

^SCFG: "Userware/Stdout","usb5",,,,"off"

 

OK

Start Eclipse

Select HelloWorld project

Run->Debug as->Emulated Java ME Midlet

 

Popup Window:

Problem Occurred

‘Launching HelloWorld’ has encountered a problem.

Couldn’t connect to virtual machine

Debugger launch time-out exceeded

 

Console Window:

Using USB port COM4.

 

Connecting to module...

Initializing module for debugging...

Establishing "IP connection for remote debugging of EHSx"...

Registering ip address "192.168.244.1" of remote debugging device...

Waiting for debug device registration of "IMP_NG_EHS5_REMOTE"...

Passing control to external device emulator...

 

Failed to connect remote debugging device!

 

*** Error ***

Device "IMP_NG_EHS5_REMOTE1" not registered!

 

End of debug session. Emulator is closed!

 

 

Opened Command Prompt

(Partial ipconfig shown)

Microsoft Windows [Version 6.3.9600]

(c) 2013 Microsoft Corporation. All rights reserved.

 

C:\Users\dpanderson>ipconfig/all

 

Windows IP Configuration

 

   Host Name . . . . . . . . . . . . : dpalap2

   Primary Dns Suffix  . . . . . . . :

   Node Type . . . . . . . . . . . . : Hybrid

   IP Routing Enabled. . . . . . . . : No

   WINS Proxy Enabled. . . . . . . . : No

 

PPP adapter IP connection for remote debugging of EHSx:

 

   Connection-specific DNS Suffix  . :

   Description . . . . . . . . . . . : IP connection for remote debugging of EH

x

   Physical Address. . . . . . . . . :

   DHCP Enabled. . . . . . . . . . . : No

   Autoconfiguration Enabled . . . . : Yes

   IPv4 Address. . . . . . . . . . . : 192.168.244.2(Preferred)

   Subnet Mask . . . . . . . . . . . : 255.255.255.255

   Default Gateway . . . . . . . . . :

   NetBIOS over Tcpip. . . . . . . . : Enabled

 

NOTE: I CAN ping the EHS8 over PPP:

C:\Users\dpanderson>ping 192.168.244.1

 

Pinging 192.168.244.1 with 32 bytes of data:

Reply from 192.168.244.1: bytes=32 time=2ms TTL=128

Reply from 192.168.244.1: bytes=32 time=2ms TTL=128

Reply from 192.168.244.1: bytes=32 time=2ms TTL=128

Reply from 192.168.244.1: bytes=32 time=2ms TTL=128

 

Ping statistics for 192.168.244.1:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip ***** in milli-seconds:

    Minimum = 2ms, Maximum = 2ms, Average = 2ms

 

RERAN  AT^SCFG? AFTER DEBUGGER

at^SCFG?

^SCFG: "Audio/Loop","0"

^SCFG: "Call/ECC","0"

^SCFG: "Call/Speech/Codec","0"

^SCFG: "GPRS/AutoAttach","enabled"

^SCFG: "Gpio/****/ASC1","gpio"

^SCFG: "Gpio/****/DAI","gpio"

^SCFG: "Gpio/****/DCD0","std"

^SCFG: "Gpio/****/DSR0","std"

^SCFG: "Gpio/****/DTR0","std"

^SCFG: "Gpio/****/FSR","gpio"

^SCFG: "Gpio/****/GPSANT","gpio"

^SCFG: "Gpio/****/HSIC","gpio"

^SCFG: "Gpio/****/PULSE","gpio"

^SCFG: "Gpio/****/PWM","gpio"

^SCFG: "Gpio/****/RING0","gpio"

^SCFG: "Gpio/****/SPI","rsv"

^SCFG: "Gpio/****/SYNC","gpio"

^SCFG: "Ident/Manufacturer","Cinterion"

^SCFG: "Ident/Product","EHS8"

^SCFG: "MEShutdown/Fso","0"

^SCFG: "MEShutdown/sVsup/threshold","0","0"

^SCFG: "MEopMode/CFUN","0","1"

^SCFG: "MEopMode/SoR","off"

^SCFG: "Radio/Band","511"

^SCFG: "Radio/Mtpl","0"

^SCFG: "Radio/OutputPowerReduction","4"

^SCFG: "Serial/Interface/Allocation","0","0"

^SCFG: "Serial/USB/DDD","0","0","0409","1E2D","0058","Cinterion Wireless Modules","EHx",""

^SCFG: "Tcp/IRT","3"

^SCFG: "Tcp/MR","10"

^SCFG: "Tcp/OT","6000"

^SCFG: "Tcp/WithURCs","off"

^SCFG: "Trace/Syslog/OTAP","0"

^SCFG: "URC/Ringline","local"

^SCFG: "URC/Ringline/ActiveTime","2"

^SCFG: "Userware/Autostart","1"

^SCFG: "Userware/Autostart/Delay","0"

^SCFG: "Userware/DebugInterface","192.168.244.1","192.168.244.2","0"

^SCFG: "Userware/DebugMode","on"

^SCFG: "Userware/Passwd",

^SCFG: "Userware/Stdout","usb5",,,,"off"

^SCFG: "Userware/Watchdog","0"

 

OK

 

NOTE: Starting up debugger automatically set IP addresses in “Userware/DebugInterface”

 

I have turned off Windows Firewall.

 

What else am I missing in setup?

Has anyone run debugger with Windows 8.1 64-bit?

Has anyone run debugger with newer Java JDK like Java 8U74 or must I stick with Java7u25 to be compatable with Cinterion SDK and setup files?