Git Product home page Git Product logo

vittorioexp / sim800l-arduino-library-revised Goto Github PK

View Code? Open in Web Editor NEW
96.0 7.0 45.0 110 KB

The SIM800L Arduino Library is a simple and easy-to-use library for the SIM800L module, allowing for quick and efficient communication with the module using the Arduino platform.

License: GNU General Public License v3.0

C++ 100.00%
sim800 arduino arduino-library gsm arduino-sketch arduino-uno arduino-ide arduino-firmware transmission sim900

sim800l-arduino-library-revised's Introduction

  • ๐Ÿค— Welcome to my GitHub profile!
  • ๐Ÿ’ป My name is @vittorioexp and I am passionate about software.
  • ๐ŸŒฑ I am constantly seeking to expand my knowledge, and currently learning about React.
  • ๐Ÿ“š I believe in sharing my knowledge and experiences with others, which is why I publish project samples on my GitHub profile.
  • ๐Ÿ™Œ If you would like to connect with me, please feel free to reach out on LinkedIn. Thank you for visiting my profile!

sim800l-arduino-library-revised's People

Contributors

njh avatar per1234 avatar sekyhc avatar vittorioexp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

sim800l-arduino-library-revised's Issues

Keypad

I noticed that sim800l provides keypad interface. Is this supported? is there any tutorial how to connect 5x5 key matrix?

dtmf

Detection of DTMF tones - SIM800L module.

I get "OK" when I send 'AT+DDET=1,1000,1,1* ' over uart .
But it doesnt seem to detect anything afterwards.
Perhaps I am doing something wrong.
Would appreciate some feedback.

regards
Atul
ref : *SIM800 Series_AT Command Manual_V1.09

callNumber() function issue

In a function
void Sim800L::callNumber(char* number)
{
this->SoftwareSerial::print (F("ATD"));
this->SoftwareSerial::print (number);
this->SoftwareSerial::print (F("\r\n"));
}
in a line this->SoftwareSerial::print (F("\r\n")); should be a semicolon before \r\n.
it should be:
this->SoftwareSerial::print (F(";\r\n"));

Now it's really making a call :)

Sim800l does not work (power supply problem)

I've connected my arduino nano to sim800l in a correct order but the LED on sim800l didn't turn on, and also the sim800l was heated a little.
(I used a 12V-15A power source with a Module LM2596 to lower the voltage)
Please help me, thank you

Send AT commands with the library

Hi,
The library does not support all the functions I'd like to implement.
How can I interact with the SIM800 by sending AT commands and geting the answsers back ?

GSM Coordinates issue

Hi, Im a student and im new to ardiuno. I have a module SIM800L with me and i'm using your library to Send SMS and Get GSM coordinates. I used sendSms Example in your library, Its working Great.. but when i try GSM_Coordinates Example, i get these outputs in my serial monitor.. Can you explain it and tell me that where am i wrong?

Location Calculated
Location Code: AT+CIPGSML
Longgitude: AT+CIPGSML
Latitude: AT+CIPGSML

i fixed the board as the instruction 5v to 5v, GND to GND, VDO to none, SIM TXD to RX10, SIMRXD to TX11, GND to GND, RST to none. and i have to admit Sim800L-Arduino-Library-revised is a great library.. thank you very much for it

fatal error: SoftwareSerial.h: No such file or directory

Hello I've the following Code:

#include <SoftwareSerial.hpp>
#include <Sim800L.h>
#define RX 15
#define TX 14
Sim800L GSM(RX, TX);

void setup(){
Serial.begin(9600);
GSM.begin(9600);
Serial.println("GET PRODUCT INFO: ");
Serial.println(GSM.getProductInfo());
}
void loop(){
}

but I get everytime this error:

In file included from /tmp/sketch_jan10a/sketch_jan10a.ino:1:0:
/home/slush/Arduino/libraries/Sim800L_Library_Revised/Sim800L.h:62:10: fatal error: SoftwareSerial.h: No such file or directory
 #include <SoftwareSerial.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
Multiple libraries were found for "Sim800L.h"
 Used: /home/slush/Arduino/libraries/Sim800L_Library_Revised
 Not used: /home/slush/Arduino/libraries/Sim800L-Arduino-Library-revised-1.1.9
exit status 1
Error compiling for board Raspberry Pi Pico.

Someone know how I can fix that

getNumberSms function issue

Hello.

Function getNumberSms not working for me.
When i uncomment 497 line:
//Serial.println(_buffer.length());
always get : 0

How to get calling number?

Hello :)

Is there a plan to add a function that will show which number is ringing?
That would be very helpful.

Thank you!

Getting bits of the AT commands from sendSMS() in the message text.

I used the included example today:

GSM.begin(9600);     
text="Testing Sms";     //text for the message. 
number="+49171326*******";    //change to a valid number.
error=GSM.sendSms(number,text);

Instead of just:

Tesing Sms

I intermittendly get something like this in the SMS I receive:

Testing Sms
AT+CMGF=1
AT#CMGs="+49171326*******"
Testing Sms

Sometimes the Sms gets sent twice. I removed country code +49 from the number, thought the + character would do some concatenation, but it didnt do any good.
What could cause this?

Can it be made to work with ESP32? request / not an issue

I'm searching for a library that can be used with ESP32 and a gsm module (not a real sim900l, but seems to work like it).
Your library seems to make esp talk with my module, but not in the correct way.
Example. getInformation.ino. It pulls some response from the module , but in a fragmented way. get product info prints ATI (the AT command sent to device), operator list prints one word from the response and operator the other word.
I've tried to change readSerial from char by char reading to readStringUntil, but with no succes.
I'm using one of the hardware ports of esp.

Thanks!

setPIN is not working

Perhaps just a personal issue, but I get wrong responses from setPin.
When I enter the correct pin it returns false and everything works fine. But when I enter the wrong pin it also returns false (and not true as you state in the description).
if ( (_readSerial(5000).indexOf("ER")) == -1)
{
return false;
}
else return true;

When I type the AT-Commands in by hand everything works fine. I hope that there is a solution. Thank you :-)

Here my code:

#include <Sim800L.h>
#include <SoftwareSerial.h>
#define RX 5
#define TX 4

Sim800L GSM(RX, TX);

void setup(){
pinMode(11, OUTPUT);
digitalWrite(11,HIGH); //turns on the Sim800L module

Serial.begin(9600);
GSM.begin(4800);
String pin = "4311";
delay(5000);

if (GSM.setPIN(pin)) Serial.println("Pin set");
else Serial.println("Pin NOT set");

}

void loop(){

}

getNumberSMS() is not working

Hi,
I am trying to get the SMS number of Sim800l but the function is not working.
All the other function are OK
the code is simple ::::

String SMSBody, SMSNum
.
.
void loop()
.
byte index = GSM.checkForSMS();
SMSBody=GSM.readSms(index);
SMSNum=GSM.getNumberSms(index);

Serial.println((String)"SMSBody :"+SMSBody);
Serial.println((String)"SMSNum :"+SMSNum);

and the results are
SMSBody :Turnon
SMSNum :

Can you help me?
Can you please edit the README.md comments?

readSms() function not working for me

The readSms() function(example code) does not display any response on the serial monitor. Anything inside other Serial.print() functions are appearing correctly. Any thing i might be missing?

Not working? (fixed)

Perhaps a personal issue, but I can't get the library to work.

I have a MEGA that talks via SoftwareSerial (10,11) to my SIM800L on 9600 using AT commands. So HW and SW Serial is OK.

I uploaded your library in IDE and tried several examples. It does not work. In the example below it does not even print normal text to monitor.

I really like the functionality you created. So it was a little disappointment that it did not work. Not sure what it is. I have used libraries many times, normally it works (almost) out of the box.

Any suggestion?

KR, Jan

#include <Sim800L.h>
#include <SoftwareSerial.h>
#define RX 10
#define TX 11
Sim800L GSM(RX, TX);

void setup(){
Serial.begin(9600);
GSM.begin(9600);
Serial.println("GET PRODUCT INFO: ");
Serial.println(GSM.getProductInfo());
}
void loop(){
}

USSD support?

Hi, great library! I was wondering if you've considered adding USSD support for things like checking balances and such?

Regards,
Brandon

Using this library with arduino nano rp2040

Arduino nano rp2040 foes not have software serial library implementation. How can use this library witj Serial1?

The main problem is that sim800 is a class derived from softwareserial...

sendSms problem

hi,
when I get the number it's ok but when I send to that number it didn't work

numberSms = gsm.getNumberSms(nSms);
gsm.sendSms(numberSms,sms);

error : no known conversion for argument 1 from 'String' to 'char*'

How to make a call to join a Zoom meeting

Hello,
Thanks for the library for the SIM900.
But I have a question and I hope you can help me.
I want to join a meeting at Zoom (https://zoom.us/) via the SIM900.
To do this I have to enter (paste) the following (in Android phone) to automatically call:

Phone Number+Pause(2 seconds)+MeetingID+#+Pause(4 seconds)+HostID+#+Pause(4 seconds)+Password+#
(MeetingID and Password as an example)
+31207946519,,83411719839#,,,,#,,,,*999999#

callNumber(number) does not connect.
Only accepts a phone number.

Any idea how I get that to work?
Thank you very much for the effort.
Sincerely,
Arie van den Berg

problem with GSM.sendSMS

error=GSM.sendSms(numberSms, text);

This line of code gives me this error:
no matching function for call to 'Sim800L::sendSms(String&, char*&)'

The number is set up as a string, and the text as a char* array.

Any idea what the problem might be?

(The whole code is pretty similar to the library's example one)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.