GSM hat That Works Fine Except For Sending SMS

Previous post
Since setting the baud rate over on Serial Monitor to 115200, my Simtech 9700E-H works fine except for sending SMS.

When I enter AT+CMGS="<phonenumber>", the new line would display >
Writing "test message" as the text message would result in >test message. Essentially, I'm stuck in that phase until I reconnect the USB cable. How do I get out of the loop?

Setup is as described in my previous post, except with baud rate set to 115200. PS: I also had a free trial of AT Command Tester (I sent an SMS from the module to my phone with that) but I deleted that by accident. I can't access it anymore.

The text message needs to be terminated with Control-Z (Char 26). You can't send this character from the monitor, so easiest is to just use another character (like '*')... then replace the * with Char 26 before sending to the modem.

while (Serial.available()) 
  {
    char c = Serial.read();
    if (c == '*')
      mySerial.write(26);  // Send Control Z
    else
      mySerial.write(c); //Forward what Serial received to Software Serial Port

  }

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.