Hello everyone,
I am on a project with Arduino Mega and other stuff. I read some values with sensor and send sms the data. I tried several sim modules like sim808, sim800l, sim900, siemens mc35i and all of them are sent sms correctly! But I want to check if my sim module is ready for send a sms, and then send data. And i know which AT command is usefull for me or not. But i never get any response from sim module to serial monitor.
For example if i send AT commands from arduino, i want to see "OK" or "ERROR" ob the serial monitor. I know the DEC codes etc so i would not shock if see some numbers on the monitor BUT SERIALSIM.avaiable RETURNS ONLY -1 although i send some AT commands to module! I looked for all topics, watched all videous on youtube etc about this issue. People can get some values when they try to getting response BUT i never got. I will share with you some simple code for example and what returns on Serial monitor. What it's wrong? Please help me...
Thank you everyone...
#include <SoftwareSerial.h>
SoftwareSerial cell(17, 16);
int i=0;
void setup()
{
cell.begin(9600);
Serial.begin(9600);
}
void loop(){
Serial.print("Loop: ");
Serial.println(i); //number of this loop
cell.println("AT\r\n");
delay(300);
Serial.println(cell.read());
delay(300);
Serial.println("End loop.");
i++;
delay(3000);
}