GithubHelp home page GithubHelp logo

sim800l's Introduction

Library SIM800l Module for Arduino UNO

The Purpose of This library is to use the module in the most easy way and transparent.
Website: Sim800l library

Download and Install.

Go to 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

Go to arduino IDE Sketch >> Import Library >> add library... Select the folder Sim800l

OR

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

Arduino Uno Sim800l Notes
+5v (3.8v)~(4.4v)! Power supply input
10 RX_PIN TX
11 TX_PIN RX
2 RESET_PIN RST Reset Pin
GND GND

Methods and functions

Name Return Notes
begin() None Initialize the library
reset() None Reset the module,and wait to Sms Ready.
sendSms(number,text) true or false parameters must be Strings.
readSms(index) String index is the position of the sms in the prefered memory storage
getNumberSms(index) String returns the number of the sms.
delAllSms() true or false Delete all sms
answerCall() true or false
callNumber(number) None
hangoffCall() true or false
getCallStatus() uint8_t Return the call status, 0=ready,2=Unknown(),3=Ringing,4=Call in progress
setPhoneFunctionality() None Set at to full functionality
activateBearerProfile() None
deactivateBearerProfile() None
RTCtime(int *day,int *month, int *year,int *hour,int *minute, int *second) None Parameters must be reference ex: &day
dateNet() String Return date time GSM
updateRtc(utc) true or false Return if the rtc was update with date time GSM.

You can regulate the voltage to the desired with this, is not the best, but for start it's easy.

alt text

For the reset pin they need NPN transistor, this is an example circuit that you can use.

alt text

sim800l's People

Contributors

cristiansteib avatar marabesi avatar per1234 avatar smtylmzx 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  avatar  avatar  avatar  avatar

Watchers

 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

sim800l's Issues

Not compile

In file included from C:\Users\ANURAG\Documents\Arduino\libraries\Sim800l-master\examples\sendSms\sendSms.ino:32:0:

C:\Users\ANURAG\Documents\Arduino\libraries\Sim800l-master/Sim800l.h:33:28: fatal error: SoftwareSerial.h: No such file or directory

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

Using HardwareSerial

SIM800L module and it run perfectly fine with SoftwareSerial. I need to expand I/O so I need to use HardwareSerial. Please teach me how to use HardwareSerial for this module.
Thank you so much.

Compatible with Sim800A?

Is this library compatible with the SIM800A? I wanted to recommend this library to a friend and I'm unable to test it on it.

callNumber()

Function callNumber didn't work.
My solution is add semicolon after the called number or better edit cpp file and add semicolon directly into method declaration before \r\n.

void Sim800l::callNumber (char* number){ SIM.print (F("ATD ")); SIM.print (number); SIM.print (F(";\r\n")); }

Decoding DTMF if tones is not hearable

Hi everyone,
It's not an issue for SIM800L itself. I'm going to buy it as soon as being sure that it will work.

I also will use DTMF decoder module with GSM phone (AT commands support), Before getting started I tested a normal call to check if DTMF tones will be received between the 2 parties but I couldn't hear any tones or keypad pressing and tested with many phones smart and old.

I read many from google and couldn't understand well about in-band signals and DTMF improvements history.

Can SIM800L/DTMF modules decode incoming signals through that different channel? Or it means any DTMF project can't be done at all even using Sim800L or any else? Is this forbidden only in my country's mobile operators so?

I was working as Call center representative and remember there were some calls I received and I asked the customer to lock his screen because I heard annoying dial pad tones and this happened too while a normal call with a friend about one year ago.

I also done this below with a lot of confusions:

  1. I tried to call from mobile to a landline and DTMF worked well in landline but also not with all mobiles.
  2. Tried many troubleshooting like in/decreasing volume and check after reading this article also I checked this and this.
  3. Tried to disable dial pad tones in android and calling any IVR service and It still work with no Issues.
  4. Tried to call cross net or on net mobile numbers and there is no new.
  5. Tried to enable DTMF detection on GSM phone using AT+VTD? but it returns ERROR as same as SIM900's AT command AT+DDET.

Thanks in advance.

Delete SMS Messages Not working on SIM800L module

Hi.
The Delete SMS command doesn't seem to work with my SIM800L module. If you dig into the library code, the AT command used always returns an error on this module. I've got around the issue by looking at the AT+ command standards, and discovered that the following command deletes all messages, resetting the memory index back to 1, on the SIM880L.

"AT+CMGD=1,4\r"

(The ',4' in the above command instructs the modem to ignore the index given (ie. 1) and delete ALL messages from memory.)

Hope this helps others with the same issue.

readSms return missing the sms content

i tried your example code for readSms.
it did return sms received in serial monitor but the content of the sms is missing.
what went wrong? i did not alter any of the code in your readSms example.
Pls help

DTMF

Detection of DTMF tones in my 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 be great to get some feedback.

regards
Atul
ref : *SIM800 Series_AT Command Manual_V1.09

Issue in sending sms

For who that have problem sending SMS, you can add the following line before calling sendSms method:

GSM.write("AT+CSMP=17,167,2,25\r");
delay(100);
// ... sendSms(...)

SIM800L not responding

I have made the conection between Arduino and the SIM800L and programmed it, The problem is that the SIM800L does not respond to any commands, It turns on and the green LED remains ON all the time while the red LED flashes every 5 seconds.

readSMS Not working... "'uint8_t index' redeclared as different kind of symbol"

When I try and run readSMS, I am returned with "'uint8_t index' redeclared as different kind of symbol"

//

Arduino: 1.6.9 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 160 MHz, 115200, 4M (3M SPIFFS)"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware "/Applications/Arduino.app/Contents/Java/hardware" -hardware "/Users/paulpenney/Library/Arduino15/packages" -tools "/Applications/Arduino.app/Contents/Java/tools-builder" -tools "/Applications/Arduino.app/Contents/Java/hardware/tools/avr" -tools "/Users/paulpenney/Library/Arduino15/packages" -built-in-libraries "/Applications/Arduino.app/Contents/Java/libraries" -libraries "/Users/paulpenney/Documents/Arduino/libraries" -fqbn=esp8266:esp8266:nodemcuv2:CpuFrequency=160,UploadSpeed=115200,FlashSize=4M3M -ide-version=10609 -build-path "/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/arduino_modified_sketch_910342/readSms.ino"
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware "/Applications/Arduino.app/Contents/Java/hardware" -hardware "/Users/paulpenney/Library/Arduino15/packages" -tools "/Applications/Arduino.app/Contents/Java/tools-builder" -tools "/Applications/Arduino.app/Contents/Java/hardware/tools/avr" -tools "/Users/paulpenney/Library/Arduino15/packages" -built-in-libraries "/Applications/Arduino.app/Contents/Java/libraries" -libraries "/Users/paulpenney/Documents/Arduino/libraries" -fqbn=esp8266:esp8266:nodemcuv2:CpuFrequency=160,UploadSpeed=115200,FlashSize=4M3M -ide-version=10609 -build-path "/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/arduino_modified_sketch_910342/readSms.ino"
"/Users/paulpenney/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include" "-I/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=160000000L -DLWIP_OPEN_SRC -DARDUINO=10609 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/variants/nodemcu" "/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/sketch/readSms.ino.cpp" -o "/dev/null"
"/Users/paulpenney/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include" "-I/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=160000000L -DLWIP_OPEN_SRC -DARDUINO=10609 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/variants/nodemcu" "-I/Users/paulpenney/Documents/Arduino/libraries/Sim800l" "/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/sketch/readSms.ino.cpp" -o "/dev/null"
"/Users/paulpenney/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include" "-I/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=160000000L -DLWIP_OPEN_SRC -DARDUINO=10609 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/variants/nodemcu" "-I/Users/paulpenney/Documents/Arduino/libraries/Sim800l" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/SoftwareSerial" "/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/sketch/readSms.ino.cpp" -o "/dev/null"
"/Users/paulpenney/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include" "-I/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=160000000L -DLWIP_OPEN_SRC -DARDUINO=10609 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/variants/nodemcu" "-I/Users/paulpenney/Documents/Arduino/libraries/Sim800l" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/SoftwareSerial" "/Users/paulpenney/Documents/Arduino/libraries/Sim800l/Sim800l.cpp" -o "/dev/null"
"/Users/paulpenney/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include" "-I/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=160000000L -DLWIP_OPEN_SRC -DARDUINO=10609 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/variants/nodemcu" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/SoftwareSerial" "-I/Users/paulpenney/Documents/Arduino/libraries/Sim800l" "/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/SoftwareSerial/SoftwareSerial.cpp" -o "/dev/null"
"/Users/paulpenney/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include" "-I/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=160000000L -DLWIP_OPEN_SRC -DARDUINO=10609 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/variants/nodemcu" "-I/Users/paulpenney/Documents/Arduino/libraries/Sim800l" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/SoftwareSerial" "/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/sketch/readSms.ino.cpp" -o "/dev/null"
"/Users/paulpenney/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include" "-I/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=160000000L -DLWIP_OPEN_SRC -DARDUINO=10609 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/variants/nodemcu" "-I/Users/paulpenney/Documents/Arduino/libraries/Sim800l" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/SoftwareSerial" "/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/sketch/readSms.ino.cpp" -o "/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
"/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
"/Users/paulpenney/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include" "-I/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=160000000L -DLWIP_OPEN_SRC -DARDUINO=10609 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/variants/nodemcu" "-I/Users/paulpenney/Documents/Arduino/libraries/Sim800l" "-I/Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/SoftwareSerial" "/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/sketch/readSms.ino.cpp" -o "/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/sketch/readSms.ino.cpp.o"
readSms:36: error: 'uint8_t index' redeclared as different kind of symbol
uint8_t index; // to indicate the message to read.
^
In file included from /Users/paulpenney/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/xtensa-lx106-elf/include/stdlib.h:11:0,
from /Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/Arduino.h:27,
from /var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/build06e5add411000dfcbd3a1189688005ff.tmp/sketch/readSms.ino.cpp:1:
/Users/paulpenney/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/xtensa-lx106-elf/include/string.h:55:8: error: previous declaration of 'char* index(const char_, int)'
char *EXFUN(index,(const char *, int));
^
/var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/arduino_modified_sketch_910342/readSms.ino: In function 'void setup()':
readSms:43: error: invalid conversion from 'char
()(const char, int)' to 'uint8_t {aka unsigned char}' [-fpermissive]
text=Sim800l.readSms(index);
^
In file included from /var/folders/7m/6kjjn06d4bq5s_fw_g38shhc0000gp/T/arduino_modified_sketch_910342/readSms.ino:32:0:
/Users/paulpenney/Documents/Arduino/libraries/Sim800l/Sim800l.h:70:9: error: initializing argument 1 of 'String Sim800l::readSms(uint8_t)' [-fpermissive]
String readSms(uint8_t index); //return all the content of sms
^
Using library Sim800l in folder: /Users/paulpenney/Documents/Arduino/libraries/Sim800l (legacy)
Using library SoftwareSerial at version 1.0 in folder: /Users/paulpenney/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/SoftwareSerial
exit status 1
'uint8_t index' redeclared as different kind of symbol

//

_readSerial problem

Hello,
i have a project "Wireless Sensor Network" and i need to do some operations with SIM800L, the problem is that i am using RF24 radio transceiver, and it uses 2,7,8,11,12,13 digital pins, but i opened the library and i've changed the RX and TX pins for free Arduino pins. When i'm connecting the SIM800 platform with no other periferals, it works great, but in my project I figured that the problem is in the _readSerial method. I don't know what is the problem, but actually the method SIM.available() is always 0.
And the methods without reading the buffer are working with no problem (like callNumber()).
How can i solve this problem. Thanks.

Mms

Send images

Not sending SMS while moving

Hi I am having a problem where I can send a SMS to the device and have it send me another SMS back. This works fine while stationary(takes about 10-30 seconds to get a reply). But when I put it in my car and start driving and then send it a SMS to respond to, it doesn't send a reply right away, it takes about 2-10 minutes to reply to a single text. If I send it 2 in a row while moving it seems to reply within the normal 10-30 seconds but it only replies once, not twice (as I sent 2 text messages)
Do you have any idea why this is happening? I have tested this on 3 other modules and I am having the save problem.

P.S I am not using the reset pin, but this shouldn't have anything to do with it, should it?

Unicode problem

In my country, sms is set to Unicode UTF-8 by default, when I sent a sms to my sim800l, the textSms is showed in HEX code, please support UTF-8 in your library, thanks!

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.