@vshymanskyy Dear Volodymyr,
some months ago I asked you for a SIM800L library … but it was too early !!
Since then I have been working hard on this topic and now I have a system working with this modue:
connected to a ATmel 328PU via a soft serial (D2 and D3). I’m using only AT commands.
Anyway I’m very interested in testing your library and I’ll appreciate if you could send me too all the instructions.
By the way, I experienced a lot of troubles in electrically interfacing the SIM to ATmel digital pin.
At the end I solved with this interface module:
Have you had similar problems?
Best regards and congratulations for your work,
Giancarlo
Yes please. We build a number of arduino type prototypes for customers before we start working with design houses for production and most deals we work with require GSM connectivity. Would love to use blynk for quick prototyping and have been praying for you to support GSM without having to use the user defined connection method !
@vshymanskyy, Dear Volodymyr,
I am using the icomsat 1.1 SIM900 GSM with arduino Mega. I tried the tests with AT_Debug.ino, and I did not succeed. I thought it was my SIM900.
Module does not respond!
Check your Serial wiring
Check the module is correctly powered and turned on
but I tried sending sms with another code and it worked. Do you know if you have any problems with icomsat 1.1 SIM900 GSM.
Follows the code used for sms.
#include <SoftwareSerial.h>
SoftwareSerial gsm(50, 3);
void setup()
{
gsm.begin(9600);
Serial.begin(9600);
Serial.println("Type 'a' and hit Enter to send the test sms");
Serial.println("Note: Enter only the letter without the single quotation marks.");
}
void loop() // run over and over
{
char comando = Serial.read();
if (comando == 'a') {
enviaSMS();
}
}
void enviaSMS() {
gsm.print("AT+CMGF=1\r"); // Sets sms as text mode
delay(500);
gsm.println("AT+CMGS=\"+551499326984\"\r"); // Send command + destination phone number
delay(500);
gsm.println("Teste arduino\r"); // Text for the message
delay(500);
gsm.println((char)26);// End the commands and send the sms
delay(500);
Serial.println("SMS Sent with success");
}
I already bought a sim800l module. I started compiling the sketch that already comes ready inside the “Boards_GSM” folder of the blynk library called “SIM800_SIM900” and a compilation error occurred (I’m using Arduino Mega):
Exit status 1
No matching function for call to ‘TinyGsm :: GsmClient :: GsmClient (HardwareSerial &)’
Does anyone know how to fix this?
PS:The code:
//#define BLYNK_DEBUG
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
// Default heartbeat interval for GSM is 60
// If you want override this value, uncomment and set this option:
//#define BLYNK_HEARTBEAT 30
#include <TinyGsmClient.h>
#include <BlynkSimpleSIM800.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";
// Your GPRS credentials
// Leave empty, if missing user or pass
char apn[] = "YourAPN";
char user[] = "";
char pass[] = "";
// Hardware Serial on Mega, Leonardo, Micro
#define GsmSerial Serial1
// or Software Serial on Uno, Nano
//#include <SoftwareSerial.h>
//SoftwareSerial GsmSerial(2, 3); // RX, TX
TinyGsmClient gsm(GsmSerial);
void setup()
{
// Set console baud rate
Serial.begin(115200);
delay(10);
// Set GSM module baud rate
GsmSerial.begin(115200);
delay(3000);
// Restart takes quite some time
// You can skip it in many cases
Serial.println("Restarting modem...");
gsm.restart();
Blynk.begin(auth, gsm, apn, user, pass);
}
void loop()
{
Blynk.run();
}
Try the BlynkClient from TinyGSM lib example. It compiles (it is slightly different) but for me it doesn’t work either. It can’t connect with internet after calling AT+CSTT=... I’m working on it by myself, but as for now - no joy.
ok, it compiled… it uploaded to the board… and I have a steady blink every 3 seconds on my linksprite sim900 shield which implies it found a network and joined the APN, but the Blynk app is saying the Arduino Uno is offline. How best do I go about troubleshooting this ?
Thanks Marvin 7 for the advice. I tried the BlinkClient but I did not succeed in compiling either. Apparently it will have to be created from the outside the library examples.