Comments (8)
Hi,
i'm sorry for the response delay but i was busy due to school exams.
My gsm module has broken, so we should ask @jankluiver (in the other issue page) which became an expert of this library :D.
from sim800l-arduino-library-revised.
I already had my SIM800L working before I found the library and in the end I did not implement the library in my project. You can send SMS, so unit is working. I think we have a different board, because my board does not have a VDO pin. I use 4 V to power the SIM800L (or 3,7V from LiPo battery), because my board does not have a voltage regulator. 5V for power supply is outside the spec of the SIM800L. Perhaps your board has. Regarding coordinates. I could not get it to work in the library. Best first check if the SIM800L is providing data using AT commands. Connect the SIM800L as you have it now, load a simple serial comms program to write commands to SIM800L and read returned output. The command AT+CIPGSMLOC= 1 should give allo coordinates. For full instruction set : https://www.elecrow.com/download/SIM800%20Series_AT%20Command%20Manual_V1.09.pdf
from sim800l-arduino-library-revised.
from sim800l-arduino-library-revised.
Hi Vittorio
I have tried to use the GSM_Coordinates Example, but any data is returned
I think that it's required first to activate the GPRS (and to set the APN) before invoking AT+CIPGSML
Please could you check
from sim800l-arduino-library-revised.
Should i write "AT+CGATT=1\r\n" (referring to page 208 of https://www.elecrow.com/download/SIM800%20Series_AT%20Command%20Manual_V1.09.pdf ) before invoking "AT+CIPGSML=1,1\r\n"(line 264 of Sim800L.cpp) ?
from sim800l-arduino-library-revised.
I suggest to take a look at https://www.elecrow.com/download/SIM800%20Series_GSM%20Location_Application%20Note_V1.01.pdf
At page 9 of 12 there is an example.
from sim800l-arduino-library-revised.
So should i send AT+CLBS=1,1 instead of AT+CIPGSMLOC=1,1 to the sim800 module?
Should be this the function calculateLocation() ?
bool Sim800L::calculateLocation()
{
String tmp = "AT+AT+CLBS=1,1";
tmp = tmp + "\r" + "\n";
this->SoftwareSerial::print(tmp);
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.
In this moment I haven't the Sim800 to do a test (I'm working in a collaborative project with my AUG)
But at page 288 of 380 and 366 of 380 of https://www.elecrow.com/download/SIM800%20Series_AT%20Command%20Manual_V1.09.pdf there is a further example using AT+CIPGSMLOC
Take a look at http://www.instructables.com/id/How-to-make-a-Mobile-Cellular-Location-Logger-with/
I don't know which is the real difference between AT+CIPGSMLOC (GSM Location) and AT+CLBS (Base Station Location)
Do you have a Sim800?
if yes, I suggest to do some tests using a USB to TTL converter and a PC terminal to understand how the Sim800 responds to the AT commands.
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.