Sending SMS in Java not sending to my handset | Telit Cinterion IoT Developer Community
February 24, 2018 - 9:44am, 2271 views
Hi There,
As Im on working on EHS6T terminal, I did not receive any sample code to show me fully how to send a basic SMS message.
What I have been able to do is attempt to write one based on examples on the forum and also from the ATCommand demo program available on my EHS6T resource CD.
You can see the entire midlet here:
It seems correct just no message seems to be sent to my mobile?
Do you have any hints or could someone kindly point me in the right direction as to why this may not be sending any messages?
Thanks so much for all your help as always.
Kind regards,
N.
UPDATE - I have got it working. Just had to send command AT^SCFG="Userware/Stdout","null".
I foolishly had output set to USB, when I already have the USB port reserved by the physical modem connection :).
Hello,
You should have more USB interfaces visible in the system, so you can redirect System.out to one of them to see the MIDlet output.
Regards,
Bartłomiej
Hi,
Do you mean like if we hook up a USB hub between the modem and PC so the modem can have an extra USB profile to send output? I mean like if we had usb reserved, then we could assign "USB1" to assign output to?
So sorry about this. In which program or testing tool can we see the result of an assigned output from USB? This is what I need clarification for, after attemtping to understand the Java user guide.
Thanks.
Nick.
If you are using Windows PC you will find all COM ports in device manager: one is modem (USB0), and the rest you'll find under Ports in Device Manager - for EHS6 that would be USB1 - USB6.
Regards,
Bartłomiej
Ahhhh got it ;) Thanks! So the numerous ports that represent a USB connection's serial handshake can be used as outputs?
Is that correct? No usb hub needed? Thanks ;)
Hello,
Yes, with one physical connection you get multiple ports.
Some of them may not be accessible - please see "Serial/Interface/Allocation" parameter in AT^SCFG? output.
Please use AT^SCFG="Userware/Stdout" command to configure one of the ports and check if the debug is printed.
If you would like to use one of the USB ports in Java MIDlet for any input/output you can use this: System.getProperty("microedition.commports"); to check which ones are available.
Regards,
Bartłomiej