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?

rebatoma
5593 gold badges12 silver badges22 bronze badges
asked Apr 1, 2016 at 14:17
3
  • Send the commands, read the responses, print the responses. What's so tricky about that? Commented Apr 1, 2016 at 14:20
  • well can u kindly give the syntax for printing those responses ?? plzz Commented Apr 1, 2016 at 14:21
  • arduino.cc/en/Reference/Serial Commented Apr 1, 2016 at 14:22

1 Answer 1

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();
 }
}
answered Apr 1, 2016 at 14:44
3
  • 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. Commented May 31, 2016 at 19:08
  • I copied the normal serial command and left in the echo by mistake. Thanks for pointing that out. Commented Jun 1, 2016 at 7:51
  • Now it produces no output and so does not achieve the goal of the question. The question requires two serial ports. Commented Jun 1, 2016 at 12:03

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.