Problems getting Eclipse Java Debugger running to EHS8 over USB | Telit Cinterion IoT Developer Community
March 2, 2016 - 8:22am, 11227 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/mode/ASC1","gpio"
^SCFG: "Gpio/mode/DAI","gpio"
^SCFG: "Gpio/mode/DCD0","std"
^SCFG: "Gpio/mode/DSR0","std"
^SCFG: "Gpio/mode/DTR0","std"
^SCFG: "Gpio/mode/FSR","gpio"
^SCFG: "Gpio/mode/GPSANT","gpio"
^SCFG: "Gpio/mode/HSIC","gpio"
^SCFG: "Gpio/mode/PULSE","gpio"
^SCFG: "Gpio/mode/PWM","gpio"
^SCFG: "Gpio/mode/RING0","gpio"
^SCFG: "Gpio/mode/SPI","rsv"
^SCFG: "Gpio/mode/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/mode/ASC1","gpio"
^SCFG: "Gpio/mode/DAI","gpio"
^SCFG: "Gpio/mode/DCD0","std"
^SCFG: "Gpio/mode/DSR0","std"
^SCFG: "Gpio/mode/DTR0","std"
^SCFG: "Gpio/mode/FSR","gpio"
^SCFG: "Gpio/mode/GPSANT","gpio"
^SCFG: "Gpio/mode/HSIC","gpio"
^SCFG: "Gpio/mode/PULSE","gpio"
^SCFG: "Gpio/mode/PWM","gpio"
^SCFG: "Gpio/mode/RING0","gpio"
^SCFG: "Gpio/mode/SPI","rsv"
^SCFG: "Gpio/mode/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?
Hello,
i know this is a fairly old thread, but i'am experiencing very similar problems while trying to debug from Netbeans 7.2 under Windows 7SP1. Everything is installed from "ehsx_rev03.001_arn0000051_install-cd.zip" using the dafult Setup.exe. The connection to the device seems to be impossible. The IP Adress is "pingable". The used comport is busy afterward. Manual downloading/installing and executing is possible. I allready installed the complete package.
This is the console output:
Copying 1 file to K:\Martin\Java\HttpTest\dist\nbrun8582517972439676655
Copying 1 file to K:\Martin\Java\HttpTest\dist\nbrun8582517972439676655
Jad URL for OTA execution: http://localhost:8082/servlet/org.netbeans.modules.mobility.project.jam.JAMServlet/K%3A/Martin/Java/HttpTest/dist//HttpTest.jad
Starting emulator in execution mode
Using USB port COM45.
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!
End of debug session. Emulator is closed!
What am i doing wrong?
Thanks in advance,
Martin
Hello,
First thing to check is the firewall. Please make sure that it is not blocking the debug traffic (192.168.244.1 and 192.168.244.2).
Please also verify in Application Descriptor if the proper runtime is used - edit the setting and make sure that the device "IMP_NG_EHS5_REMOTE1" is set instead of "IMP_NG_EHS5".
Best regards,
Bartłomiej