0

I have a GSM shield connected with my Intel Galileo board.

I intend to connect the board with serial communication at a baud rate of 115200 instead of the GSM library. I want to print the results of "at" commands in my serial window, how should I do it?

0

I have only worked with the SIMCOM series of GSM modules like the SIM900 and the SIM808. Here is a sample of the kind of code you should be looking at using. It will send one "AT" to the GSM module and then it will spit out the result in the serial monitor.

void setup()
{
  Serial.begin(115200);
  int bytesSent = Serial.write(“AT\r\n”); //send "AT" and send the end of line characters to signify end of the command
 }

 void loop()
{
   if (Serial.available() > 0) {
            // read the incoming byte:
            incomingByte = Serial.read();
    }
}
| improve this answer | |
  • This seems a bit confused and probably unworkable - the Serial Monitor and the GSM module are both serial-interfaced devices (or at least appear to be so in the Arduino world), but you only use a single serial interface and seem to somehow imagine that it is independently connected to both of them. – Chris Stratton May 31 '16 at 19:08
  • I copied the normal serial command and left in the echo by mistake. Thanks for pointing that out. – Brandon Jun 1 '16 at 7:51
  • Now it produces no output and so does not achieve the goal of the question. The question requires two serial ports. – Chris Stratton Jun 1 '16 at 12:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.