BGS5T accepting input from terminal | Telit Cinterion IoT Developer Community
July 7, 2016 - 2:29pm, 3051 views
Hello,
I have System.out set to ASC0 however I would like to make an interactive application. Previously on the TC65 I was able to open a CommConnection to wait for input however I do not know if it is possible to do the same with the BGS5T.
Thank you.
Hello,
yes it is posible to create Java MIDlet, where you open RS232 connection and check for new data.
I have this inside thread main loop to check if data is avialabe and if it is I read it:
Hello,
I am able to use the rs-232 on the GPIO for communication, however my problem is that if I have the DB9 serial connection (ASC0) as StdOut and the USB interface is being used for AT commands am I still able to receive data from the port that is being used as StdOut?
Thanks.
Hello,
This is not the default and advised configuration but indeed it was possible for TC65.
I've checked a while ago with EHS6 and it also seems to be working.
Regards,
Bartłomiej
But how do I know which port am I speaking with? I have used CommConnection in the past but I get confused on which port to open. Also for sake of clarity, the idea is only to accept input from the terminal briefly on startup, after which there will be no more input.
My main source of consfusion is that if I have the DB9 (ASC0) as StdOut, the USB for AT commands and I am using the rs-232 on the GPIO for something else to which port do I open? I would imagine it would be the ASC0 which has StdOut. Does this having something to do with the multiplexing?
I appriciate your assistance.
Hello,
In Java you have to use COM0 to connect to ASC0 and COM1 to connect to ASC1 port of the module. Be careful - the name is case sensitive. It has nothing to do with multiplexer.
You can also list the available ports with "System.getProperty("microedition.commports")".
Regards,
Bartłomiej
Thank you!