How to physically output Java StdOut to ASC0? | Telit Cinterion IoT Developer Community
March 13, 2018 - 9:26am, 1621 views
Hi,
Sorry to trouble you. So basically I just want to do like most developers are doing as I imagine, with the EHSxT series terminals and outputting Java debug output to a serial device.
Thing is I am not quite sure what physical connections are needed to actually display the output to a serial device. I know how to use the AT^SCFG command to set output to ASC), but just not what device is needed to display the output. Is it a monitor display or another PC?
Do you have any steps or advice on how to do this? And what is an example of an output device we can use to output the debug code?
Thanks ahead.
Nick.
Hello,
If you are developing your application you can see the output on your PC via RS232 or USB interface. But it could be also any device that supports RS232.
To redirect the system out to an interface you need to use AT^SCFG command. For terminal ASC0 is the DB9 interface, ASC1 pins are available in the GPIO connector and if the terminal has USB interface you can also use it - you will find the available settings in the AT Commands Specification document. You may need to configure "Serial/Interface/Allocation" parameter of AT^SCFG command for the interface other than ASC0. For RS232 only please check AT^SPOW output - by default there is a power saving on serial interfaces activated. It would be easier to deactivate it. On your Windows PC you will find the available ports in Device Manager under Ports and modem interface (if you connect USB) under Modems. To connect to a port for System.out tracing or sending AT commands you will need some serial port terminal program like Termite, Teraterm, Zoc etc. For RS232 the default setting is baudrate 112500, 8N1. You should also activate RTS/CTS flow control. To execute any AT command you need to send <CR> character in the end.
If you have installed the Gemalto SDK and try to run the MIDlet from IDE the system out should be also printed in the IDE.
Regards,
Bartłomiej
That worked great.
Fantastic now all I need to do each time is open Putty and open a connection to the serial port and it waits for the app to run and it shows Java std output.
Thanks as always :)