Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIM800l sleep mode #10

Open
wants to merge 19 commits into
base: devoloping
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
## Library SIM800l Module for Arduino UNO
The Purpose of This library is to use the module in the most easy way and transparent.
The Purpose of This library is to use the module in the most easy way and transparent.
Website: [Sim800l library](https://cristiansteib.github.io/Sim800l)

##To download and Install.
## Download and Install.
Go to [Releases](https://github.com/cristiansteib/Sim800l/releases) click the " Source Code (zip) " button, then rename the uncompressed folder to **Sim800l**.
Check that the *Sim800l* folder contains Sim800l.cpp and Sim800l.h

Expand All @@ -13,7 +14,7 @@ Place the Sim800l library folder your arduinosketchfolder/libraries/ folder.
You may need to create the libraries subfolder if its your first library. Restart the IDE.


## connections & pinouts
## Connections & pinouts
Arduino Uno | Sim800l | Notes
-------------|-------------|------------
+5v| (3.8v)~(4.4v)!| Power supply input
Expand Down
5 changes: 3 additions & 2 deletions Sim800l.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ bool Sim800l::answerCall(){
void Sim800l::callNumber(char* number){
SIM.print (F("ATD"));
SIM.print (number);
SIM.print (F("\r\n"));
SIM.print(F(";\r\n"));
}


Expand Down Expand Up @@ -194,7 +194,8 @@ bool Sim800l::sendSms(char* number,char* text){
_buffer=_readSerial();
SIM.print (text);
SIM.print ("\r");
delay(100);
//change delay 100 to readserial
_buffer=_readSerial();
SIM.print((char)26);
_buffer=_readSerial();
//expect CMGS:xxx , where xxx is a number,for the sending sms.
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-cayman
4 changes: 2 additions & 2 deletions examples/readSms/readSms.ino
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <Sim800l.h>
#include <SoftwareSerial.h> //is necesary for the library!!
Sim800l Sim800l; //to declare the library
String text; // to almacenate the text of the sms
String text; // to storage the text of the sms
uint8_t index; // to indicate the message to read.


Expand All @@ -47,4 +47,4 @@ void setup(){

void loop(){
//do nothing
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ void loop(){

}
}


26 changes: 13 additions & 13 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ Sim800l KEYWORD1

# Methods for calling (KEYWORD2)
#######################################
answerCall KEYWORD2
callNumber KEYWORD2
hangoffCall KEYWORD2
answerCall KEYWORD2
callNumber KEYWORD2
hangoffCall KEYWORD2


# Methods for Sms (KEYWORD2)
#######################################
sendSms KEYWORD2
readSms KEYWORD2
delAllSms KEYWORD2
getNumberSms KEYWORD2
readSms KEYWORD2
delAllSms KEYWORD2
getNumberSms KEYWORD2

# Methods for Module (KEYWORD2)
#######################################
begin KEYWORD2
reset KEYWORD2
begin KEYWORD2
reset KEYWORD2
activateBearerProfile KEYWORD2
deactivateBearerProfile KEYWORD2
RTCtime KEYWORD2
dateNet KEYWORD2
updateRtc KEYWORD2
setPhoneFunctionality KEYWORD2
deactivateBearerProfile KEYWORD2
RTCtime KEYWORD2
dateNet KEYWORD2
updateRtc KEYWORD2
setPhoneFunctionality KEYWORD2