Comments (22)
I made a pull request to fix it.
The changes are only in begin() methods.
from sim800l-arduino-library-revised.
I released a new version (1.1.2). Does it work for you now?
from sim800l-arduino-library-revised.
from sim800l-arduino-library-revised.
from sim800l-arduino-library-revised.
Hi Jan,
Thanks for the work of testing and reporting you are doing.
Does it work if you try to get the product info, the operators list, or the operator you are connected to? I'm talking about "getInformations" example sketch. And what do the functions return?
To get GSM coordinates you should first calculate them with "calculateLocation()". Now i try to send the at command to get coords in a different way (see v. 1.1.3). Eventually, try to read the returns of AT+CIPGSMLOC=1,1\r\n;.
I took RTC functions from the original version of the library by Cristian Steib (https://github.com/cristiansteib/Sim800l) so we should ask him.
If you want, we can add your code ( to extract GSM coordinates, date, time, battery voltage and battery level from the SIM800L) into the library to replace the old not-working functions.
Kind regards,
Vittorio
from sim800l-arduino-library-revised.
from sim800l-arduino-library-revised.
from sim800l-arduino-library-revised.
Hi Jan,
Can you please paste here what does "get information" returns?
Where is the document you mentioned, which contains the code that can be added to the library?
Vittorio
from sim800l-arduino-library-revised.
from sim800l-arduino-library-revised.
Hi Jan,
Thank you for sending the code.
I can't understand why there are three Serial3.println ("AT+SAPBR=...);
Today i'll try to integrate this functions into the library, replacing the code of some functions.
Can you please test if the sleep mode (and functionality mode) functions of the library work?
Vittorio
from sim800l-arduino-library-revised.
from sim800l-arduino-library-revised.
I edited the function calculateLocation() adding your AT commands.
Is this right?
`bool Sim800L::calculateLocation() {
this->SoftwareSerial::print("AT+SAPBR=3,1,"CONTYPE","GPRS"");
delay(50);
this->SoftwareSerial::print("AT+SAPBR=3,1,"APN","smartsites.t-mobile"");
delay(50);
this->SoftwareSerial::print("AT+SAPBR=1,1");
delay (50);
this->SoftwareSerial::print("AT+CIPGSMLOC=1,1");
// answer format: +CIPGSMLOC: 0,4.382148,52.032688,2016/10/28,14:08:16
String data = _readSerial(20000);
if (data.indexOf("ER")!=(-1)) return false;
uint8_t indexOne;
uint8_t indexTwo;
indexOne = data.indexOf(":") + 1;
indexTwo = data.indexOf(",");
_locationCode = data.substring(indexOne, indexTwo);
indexOne = data.indexOf(",") + 1;
indexTwo = data.indexOf(",", indexOne);
_longitude = data.substring(indexOne, indexTwo);
indexOne = data.indexOf(",", indexTwo) + 1;
indexTwo = data.indexOf(",", indexOne);
_latitude = data.substring(indexOne, indexTwo);
return true;
}`
from sim800l-arduino-library-revised.
from sim800l-arduino-library-revised.
from sim800l-arduino-library-revised.
Hi,
Can you send me a picture of your hardware?
Thank you
from sim800l-arduino-library-revised.
from sim800l-arduino-library-revised.
I mean the hardware links between sim800l/arduino/battery. Because my module ever returns ERROR: SIM not inserted.
This is what i do.
AT
OK
AT+CFUN?
+CFUN: 1
OK
AT+CPIN?
+CME ERROR: SIM not inserted
from sim800l-arduino-library-revised.
from sim800l-arduino-library-revised.
from sim800l-arduino-library-revised.
Hi Jan,
I'm glad to know the sleeping functionality is working.
My module still not works, maybe the 3 SIM cards i tried are too recent. When did you buy yours?
Maybe it is because i have this component between the battery and the module: https://www.amazon.it/gp/product/B01DRT4PWY/ref=oh_aui_detailpage_o08_s00?ie=UTF8&psc=1
Vittorio.
from sim800l-arduino-library-revised.
Hi Jan,
did the example sketch "GSM_Coordinates.ino" work for you?
I remember i added your modifications about this in the last version of the library.
from sim800l-arduino-library-revised.
from sim800l-arduino-library-revised.
Related Issues (20)
- USSD support? HOT 3
- readSms() function not working for me HOT 1
- getNumberSms function issue HOT 2
- setPIN is not working HOT 1
- Send AT commands with the library HOT 2
- Sim800l does not work (power supply problem) HOT 1
- problem with GSM.sendSMS HOT 1
- sendSms problem HOT 2
- dtmf
- Change SoftSerial to HWSerial Arduino Mega HOT 1
- Can it be made to work with ESP32? request / not an issue HOT 3
- Getting bits of the AT commands from sendSMS() in the message text. HOT 1
- Using this library with arduino nano rp2040 HOT 1
- How to make a call to join a Zoom meeting HOT 1
- Keypad HOT 1
- getNumberSMS() is not working HOT 1
- Sim800L-Arduino-Library-revised
- Add Data Functions
- fatal error: SoftwareSerial.h: No such file or directory
- callNumber() function issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sim800l-arduino-library-revised.