Any guide to get started on the PLS62 and JAVA | Telit Cinterion IoT Developer Community
February 8, 2021 - 5:00am, 5754 views
Hello,
Is there a guide on how to set up a "***** world" project in JAVA and "debug it" ?
I have installed the Gemalto SDK, JDSK 1.7.0 and 1.8.0 as required and picked Netbeans because I had issues with Eclipse not finding the JRE (error on start up). I have the Gemalto Module Manager running. Installed it on Win10x64.
Form Netbeans, what are the steps I need to configure the IDE to work with the PLS62 Terminal. The JAVA code when debugging is loaded into the module by the NEtBeans ide ?
Please forgive me is this question sound basic or I look a bit lost, until now I have been working on microcontroller IDE's, in C and C++, were you can look up your dev board or your programmer and microcontroller. This IDEs were tailored to the HW. Is the Netbeans IDE that the Gemalto SDK installed already set up to work with PLS62 terminals ?.
I read some guides but none of them shown how the basic setups is done (if any).
I have read that I need to add som plug ins through the NetBeans ide.
As I said, I just need some basic directions, just a bit of a push for one guy that is starting here :)
My application will read data from a serial device and send it to a known IP and port. Also must allow configuration of parameters via SMS. Until now I was running an init script manually (batch of AT commands). I was planing to program a microcontroller to do this, then I was told that I can use the JAVA on the PLS62 to do all of this and more, not need of an external host processor
Any help would be really appreciated !!!!
Pedro.
Hello,
If you prefer NetBeans please see this article: https://iot-developer.thalesgroup.com/tutorial/netbeans-72-offline-insta...
You need to install the plugins manually as they changed something in NB and the remote installation does not work anymore.
I suppose that you already have the Java User's Guide document. If not, please see here: https://iot-developer.thalesgroup.com/documentation/download-documentati...
Please try to build some simple MIDlet, install it and run manually first (with AT commands) to see how it works.
Best regards,
Bartłomiej
Many thanks,
Issue is ....I cant get Eclipse running. It trows an error on start "It could not create a Virtual Machine".
If I coment "vm" on the eclipse.ini (as suggested online) Eclipse starts, but it wont launch any debug activity .... when it "passes to external emulator" -> "IMP_NG_ELSx_REMOTE1" is not registered.
Tried to change to the one that does not say remote. Had not effect. On top of that after some timout, Eclipse trows an error since it is not finding the VM (not blaming it LOL).
I tried NB later, it wont crash, but it wont go, it has an error on building: "Platform Home Property not set".
I look for thei error online, it says that i could happens when emulator is not set. Which is not my case, under porject properties, the emulator looks like already configured. (Platform type CLDC, Emulator Platform: CWTK ELS, Device: IMP_NG_ELSx, Device config: CLDC-1.1)
I tried to add all the plug ins as told in the firs PDF. I have the zip with all of them but NB wont proceed due to missing dependences .... YOu can install some of them, other they wont install.
Aside from that, the "Gemalto module manager" wont find my PLS62 after scaning , but I can access from Windows from its icon (after configuring its comport). That is, I can see a "file system". Four comPorts are listed, one says not use. One modem device is listed. Just one device under "modems" on Windows Device Manager.
The install was run "online" and "automatic". I made sure to have anithing PLS-related checked.
I will have a look to the document.
Many thanks
BR,
Pedro.
I think I move a bit foward. On you second link, I didnt find a PDF, but losts of files and folders. I donwload the install CD, and let Eclipse 4.7.1 installed from a previous non working install.
Got Eclipse running. I seems to compile the code.
Got this issue, that happen to other developers here .....
Registering ip address "192.168.244.1" of remote debugging device...
Waiting for debug device registration of "IMP_NG_PLSx_REMOTE"...
Failed to connect remote debugging device!
Passing control to external device emulator...
*** Error ***
Device "IMP_NG_ELSx_REMOTE1" not registered!
End of debug session. Emulator is closed!
I made a firewall rule for LOCAL network allowing 192.168.244.1 and 192.168.244.2 as recomended here.
I have read that the person dump the module config. I dont now where to dinf this part or I need to pull it with AT commands ?.
Many thanks.
Pedro.
Hello,
Please check if the previous debug session is finished. You may try to disconnect ojmee in the system tray and also IP debug connection (in Windows network connections). You may also need to go to Windows firewall advanced settings and go to "Inbound Rules" on the left bar, find Java(TM) Platform SE binary Public Profile using TCP Protocol and go to it’s Properties. Then in a pop-up window in the General tab switch Action to "Allow the connection" and apply.
The debugging feature sometimes can be problematic on some systems. But you are also able to install and run the MIDlet without Eclipse. I hope that you have found the Java User's Guide document.
Regards,
Bartłomiej
Thanks Sir,
I dindt find it, the post you have linked, has a link to it, but once I put the password on the accespage, it drops on a FTP. I did a bit a seeking, but couldnt find it. I think it should be on the doc folder from Eclipse ?
I tried another fresh install Notebook with same results. Being my daily notebook a coporate one though it was policy related. The inbound rules were made, both, by port and by IP Actuaully Im being supported by a Gemalto Representative in Brasil but we cant get the debugger running. He show me how to load and run the applications. If possible I would prefeer to use a debugger. I worked without a debuger for another project and I learn how much time it adds to the process, even with the aid of a console output.
Please note the install steps
1) Install Gemalto JSDK, file: "Gemalto JSDK Installer_withJRE_100_016"
If I stop there, Eclipse wont launch, vm machine cannot be created.
I installed the "Setup CD" file: "pls62-w_rev02.000_arn01.000.03_install-cd.zip"
It performed driver install, it found a PLS62W, then look for a proper Eclipse install. Found the one in "Gemlto JSDK folder" and worked for some minutes over it. Eclipse is 4.7.1
This is the way I at least got Eclipse runing an compiling.
I will try to check rules for JAVA. Windows defender popped a couple of ***** and put allow.
A network connection is shown to 192.168.244.1 with a phone icon.
I have 4 ports on the USB composite site, plus one modem device.
Many thanks,
Regards,
Pedro.
I added the rule in Windows defender .... still getting the same issue.
Registering ip address "192.168.244.1" of remote debugging device...
Waiting for debug device registration of "IMP_NG_PLSx_REMOTE"...
Passing control to external device emulator...
Failed to connect remote debugging device!
Cannot create PortForwarder with necessary parameters: Failed to connect to device 2!
*** Error ***
Failed to connect to device 2!
Reason:
Emulator 2 terminated while waiting for it to register!
End of debug session. Emulator is closed!
Any other thing I can check ?.
System is W10x64. I have some comments from 2016 that this issue was due to Win10 not being supported .... is this still going ?.
Any log or diagnostic I can handle to you ?
Form other post I understand that his information can be helpful
at^scfg=?
^SCFG: "GPRS/AutoAttach",("disabled","enabled")
^SCFG: "Gpio/mode/ASC1",("std","gpio","rsv")
^SCFG: "Gpio/mode/DCD0",("std","gpio","rsv")
^SCFG: "Gpio/mode/DSR0",("std","gpio","rsv")
^SCFG: "Gpio/mode/DTR0",("std","gpio","rsv")
^SCFG: "Gpio/mode/FSR",("std","gpio","rsv")
^SCFG: "Gpio/mode/HWAKEUP",("std","gpio","rsv")
^SCFG: "Gpio/mode/PULSE",("std","gpio","rsv")
^SCFG: "Gpio/mode/PWM",("std","gpio","rsv")
^SCFG: "Gpio/mode/RING0",("std","gpio","rsv")
^SCFG: "Gpio/mode/SPI",("std","gpio","rsv")
^SCFG: "Gpio/mode/SYNC",("std","gpio","rsv")
^SCFG: "Ident/Manufacturer",(25)
^SCFG: "Ident/Product",(25)
^SCFG: "MEShutdown/Fso",("0","1")
^SCFG: "MEShutdown/sVsup/threshold",("-4","-3","-2","-1","0","1","2","3","4"),("
0")
^SCFG: "MEopMode/CFUN",("0","1"),("1","4")
^SCFG: "MEopMode/CregRoam",("0","1")
^SCFG: "MEopMode/ExpectDTR",("current","powerup"),("asc0","acm1","acm2","acm3")
^SCFG: "MEopMode/Prov/AutoSelect",("off","on")
^SCFG: "MEopMode/Prov/Cfg",("fallback","attus")
^SCFG: "MEopMode/RingOnData",("off","on")
^SCFG: "MEopMode/SoR",("off","on")
^SCFG: "MeOpMode/SRPOM",("0","1")
^SCFG: "Radio/Band/2G",("0x00000004"-"0x00000074")
^SCFG: "Radio/Band/3G",("0x00000001"-"0x0004019B")
^SCFG: "Radio/Band/4G",("0x00000001"-"0x080E08DF")
^SCFG: "Radio/Mtpl/2G",("0"-"3"),("1"-"8"),("0x00000004","0x00000010","0x0000002
0","0x00000040"),,("18"-"33"),("18"-"27")
^SCFG: "Radio/Mtpl/3G",("0"-"3"),("1"-"8"),("0x00000001","0x00000002","0x0000000
8","0x00000010","0x00000080","0x00000100","0x00040000"),,("18"-"24")
^SCFG: "Radio/Mtpl/4G",("0"-"3"),("1"-"8"),("0x00000001","0x00000002","0x0000000
4","0x00000008","0x00000010","0x00000040","0x00000080","0x00000800","0x00020000"
,"0x00040000","0x00080000","0x08000000"),,("18"-"23")
^SCFG: "Radio/OutputPowerReduction",("0","1","2","3","4")
^SCFG: "RemoteWakeUp/Ports",("current","powerup"),("asc0","acm1","acm2","acm3","
rmnet0","rmnet1")
^SCFG: "Serial/Ifc",("Current","ASC0","USB0","USB1","USB2","MUX1","MUX2","MUX3",
"0"),("0","3"),("1200","2400","4800","9600","19200","38400","57600","115200","23
0400","460800","500000","750000","921600"),("0","3"),("1200","2400","4800","9600
","19200","38400","57600","115200","230400","460800","500000","750000","921600")
^SCFG: "Serial/Interface/Allocation",("0","1"),("0","1")
^SCFG: "Serial/USB/DDD",("0","1"),("0"),(4),(4),(4),(63),(63),(4)
^SCFG: "Tcp/IRT",("1"-"60")
^SCFG: "Tcp/MR",("2"-"30")
^SCFG: "Tcp/OT",("1"-"6000")
^SCFG: "Tcp/WithURCs",("on","off")
^SCFG: "Trace/Syslog/OTAP",("0","1"),("null","asc0","asc1","usb","usb1","usb2","
file","system"),("1"-"65535"),(125),("buffered","secure"),("off","on")
^SCFG: "Urc/Ringline",("off","local","asc0","wakeup")
^SCFG: "Urc/Ringline/ActiveTime",("0","1","2")
^SCFG: "Userware/Autostart",("0","1")
^SCFG: "Userware/Autostart/Delay",("0"-"10000")
^SCFG: "Userware/DebugInterface",("0"-"255")|("FE80::"-"FE80::FFFFFFFFFFFFFFFF")
,("0"-"255")|("FE80::"-"FE80::FFFFFFFFFFFFFFFF"),("0","1")
^SCFG: "Userware/DebugMode",("off","on")
^SCFG: "Userware/Passwd",("0"-"8")
^SCFG: "Userware/Stdout",("null","asc0","asc1","usb","usb1","usb2","file","syste
m"),("1"-"65535"),("0"-"125"),("buffered","secure"),("off","on")
^SCFG: "Userware/Watchdog",("0","1","2")
OK
Many thanks
BR
Pedro
Hello,
This is something new. Have you been experimenting with the project setup? I think that this can be caused by the wrong device setup for the project. Please check and change if necessary from IMP_NG_*** to IMP_NG_***_REMOTE1. You may do it by clicking on Application descriptor on the project tree in Eclipse.
As for SCFG command by adding '=?' you display all the possible settings, to display the current configuration you need to add only the question mark (AT^SCFG?).
Regards,
Bartłomiej
Thanks you for the details. I read in the forum this issue, yes it is set to REMOTE. Im working with systemout and println for now and donwloading the jar/jad files with the MES.
I need to supply the customer a way to set / restore params (basic stuff like APN, USR, PASS, PIN, REMOTE SERVER IP and PORT ....). Can I create and retrieve a file ?. And what would be the path to do that ?.
Thanks,
Regars,
Pedro.
Hello,
Please see JSR75 API. You can access the module's file system with FileConnection interface. The root directory is referred to as "file:///a:/". Please see this simple example: https://iot-developer.thalesgroup.com/tutorial/example-how-use-flash-fil... You will probably find more in the Knowledge Base.
It is easy to update the configuration by just uploading the new config file to the module's FFS.
You can also add parameters to the jad file and read them in the MIDlet by calling getAppProperty(String key) in the MIDlet class instance. But then you need to reinstall the MIDlet each time you want to change the configuration (During the installation jar and jad files are copied to a hidden space, you can later delete them from public FFS and the MIDlet stays installed until you uninstall it with an AT command).
Best regards,
Bartłomiej
Many thanks BARTOLOME !!!!
I will check it.
When you say "UPLOADING" ... it means ... using the MES and Windows File explorer ?.
The MES service is part of Gemaltos Dev tools, I dont think is a distributable resource.
Many thanks for you patience and support !!!
Pedro.
Pages