Closed karanmakharia closed 4 years ago
I am also facing same issue for SIM808 and SIM800C looks like commands are different for these modules. I found this link http://arduino.stackexchange.com/questions/26670/sim808-module-gsm-working-fine-gps-not-working-no-gps-ready-message-on-power-on
Stuck at +++AT means, your device (arduino) is not getting OK reply from your modem so please,
Hello nithinkurian, Thanks for reply. I am still facing issue: Serial.available() always 0 in void serialEvent() function, don't understand, why?
Tried this example getting response for all AT commands.
Verified serial connection with below code and got response for all AT commands
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(9600);
mySerial.begin(9600);
}
void loop() // run over and over
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
{
while(Serial.available())
{
mySerial.write(Serial.read());
}
mySerial.println();
}
}`
Found solution for me, I was not using hardware serial for modem.
void setup()
{
// initialize mqtt:
// GSM modem should be connected to Harware Serial
Just need to correct connections.
Ok, so the issue is resolved
I think I am also using hardware serial (which I believe are the ones with TX1 and RX0 labels) but still stuck at +++AT
Need help please
comment out the '+++' serial print statement from the library and then it works fine. Siddharth
Hi Guys, I am facing the same issue.
Still stuck at AT. Not getting OK command from the modem. One thing i observed is, RX led on arduino is not blinking.
I checked the modem by directly passing AT command and it is working. Any help is appreciated. Thanks
If you are using SoftwareSerial interface with the GSM MODULE replace all mySerial
with Serial
and vice versa at
GSM_MQTT.cpp except for the
extern SoftwareSerial mySerial;
at line no 13
@livzz could you please post somewhere full working code, I can get it working on arduino uno?
regards
Hello, @livzz can you send this code with modification? I try edit this but this not help - maybe i made mistake... Best regards
I am using arduino nano and SIM808. I tired the publish example but the serial monitor output is stucked at +++AT. Please tell me the solution. Also tell me how to attach SIM808 to software serial instead of default serial pins.