Hello World Application ASC0 Interface | Telit Cinterion IoT Developer Community
March 26, 2018 - 5:08am, 2842 views
Hai! Referring to the Hello World Application tutorial, https://iot-developer.thalesgroup.com/tutorial/hello-world-application, I have some few questions.
The configuration command AT^SCFG="Userware/Stdout","ASC0" is used to set up the Java output.
I was connecting my computer using a USB cable to gemalto ehs6 board only. Do i need to connect rs232 port using another cable to my computer?
After switching the system out to the ASC0, SYSTEM.OUT STARTED should be shown in where? Another window that connect to ACS0?
Im not a Gemalto official but I am a fellow user and may be able to help you out on this as I have successfully been able to get proper Java output working through my EHS6 board on my laptop.
Can I ask, are you using the EHS6 board for sure, that is are you using the board that has two mini USB ports on it?
Nope. Mine is like this https://uk.rs-online.com/web/p/gsm-gprs-modules/8476922/.
This terminal has 2 RS232 interfaces: ASC0 that you can access via DB9 connector and ASC1 which can be accessed via pins on GPIO connector (additional configuration is needed - by default it is not working). When you open Device Manager in Windows you should find this under ports. In Windows there will be some COM port assigned. It has also USB interface - you should find 6 ports under ports in Device Manager (USB1-USB6 in EHS6) under Ports and one modem under Modems (USB0 in EHS6).
In the default configuration you should be able to send AT commands to the module on ASC0 and USB. Please see AT^SCFG command and "Serial/Interface/Allocation" parameter in the AT Commands Specification for more. By default there should also be power saving on ASC0 and ASC1 activated - please see AT^SPOW for more details.
In case of terminal you should be using hardware flow control on RS232 interfaces. The default settings are: baudrate 115200, 8N1. If you want to execute any AT command you need to terminate it with <CR> character. You may use any serial port terminal program.
When you configure one interface for system out it will not be possible to execute AT commands on it and there will be SYSTEM.OUT STARTED thrown on it.
After few trying, i managed to receive System.out.println message in Java ME console. Is that the correct output?
If you run the application directly from IDE you get the system out to the console without any additional configuration. My explanation is for the case when you load the MIDlet to the module (for example with MES tool) and then install it and run with AT commands.
U mean by AT^SJAM=1,"a:/HelloWorld.jad","" ? I can't proceed to this line after AT^SCFG="Userware/Stdout","ASC0". I tried to change the port but no use.
Yes, that's what I meant.
The interface ASC0 is now reserved for system out only. You will not execute any AT command on it until the configuration is changed. To do this you need to use USB now. ASC1 is probably not active as it's not in the default settings.
U mean USB COM port? I'm quite blur on this. There are 3 different com port that used, which are the module disk A:, the serial port that start the terminal application to install application on the module and the ASC0 interface that show output. Only the ASC0 interface has the default com port which being told during the installation process. Do i misunderstood? because i can't open the ASC0 interface using the port.
You probably have installed the Gemalto SDK. Do you have USB on your hardware? If you connect the USB cable the drivers should be installed during SDK installation. Under Windows Device Manager you should find 6 USB ports under Ports and one modem under Modems. For accessing module's flash file system you can use MES program that should be already installed. You should right click on that and configure the proper COM port (one of the ports that you find in Device Manager - not all are possible, please choose the port that accepts AT commands). Please visit this link and download Startup Guide - you will find more details there.
For Java there is also Java User's Guide where there are many useful informations about environment and Java development.