I am using AT commands to send SMS from my computer using a java program.
When I send a message, the recipient receives the message but with additional AT commands embedded that were used on my side to send the message.
What do I need to do in order to ensure that only the message is sent and no additional AT commands go along.
This is the code segment that i use to send the message
//Put the GSM modem/phone in text mode
//Enable extended error codes
//Clear the outputstream of any characters unwanted in SMS to be sent
gsm.send("AT+CMGS=\"" + phoneNumber + "\"\r\n");
//Add a whitespace character
gsm.send(message + '\032');