I have been trying to interface a SIM300 GSM module to my Arduino UNO R3.
I'm using AT commands to interface the SIM300 to make a call to a specified number. But I have been unsuccessful in making the call.
The connections I have made are Rx of the GSM to Tx of Arduino and Tx of the GSM to the Rx of arduino and GND of GSM to the ground of Arduino. I even tried swapping the Rx and Tx pin connections
The flow of the code is to call the number specified [Using ATDphone;] and then to hang up the call after 10seconds using ATH command. I have used the println after ATD to carriage return.
But I haven't been able to make the call.
I tried using a Hyperterminal to establish a serial connection to the SIM300 GSM board and giving the same command i.e.,
AT
ATD8892665366;
ATH
and astonishingly I'm successful in doing so, I get a call on my number and then i use ATH to hang the call.
MY SUSPECT : [If I'm not wrong]
Actually when the arduino program is run the output in the serial monitor is kind of doubtful
I get the output as
AT
ATD8892665366;
ATH
I get a space before the AT command which is undesirable. I think if the space before the AT doesn't come then the code should work fine.
I'm not sure if this is the answer or not but I noticed you used Serial.println("AT"); and on the other lines you ues Serial.print(); would it make any differance if you used Serial.print("AT"); or maybe Serial.println("\nAT");
That actually removed the space. But i think that didn't solve the problem either, the call wasn't made...Really sad about that. I've been finding solutions the whole day but none worked.
I'm not sure but it looks like the tx pin should hook to tx and rx to rx. I really don't have any experience with the GSM board. I'll keep looking and post back if I find anything else useful. in the mean time good luck. and let me know if you figure it out.
is there any way to verify that the message is getting sent to or received by the GSM?