Git Product home page Git Product logo

Comments (22)

arthurmolina avatar arthurmolina commented on May 29, 2024

I made a pull request to fix it.
The changes are only in begin() methods.

from sim800l-arduino-library-revised.

vittorioexp avatar vittorioexp commented on May 29, 2024

I released a new version (1.1.2). Does it work for you now?

from sim800l-arduino-library-revised.

jankluiver avatar jankluiver commented on May 29, 2024

from sim800l-arduino-library-revised.

jankluiver avatar jankluiver commented on May 29, 2024

from sim800l-arduino-library-revised.

vittorioexp avatar vittorioexp commented on May 29, 2024

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.

jankluiver avatar jankluiver commented on May 29, 2024

from sim800l-arduino-library-revised.

jankluiver avatar jankluiver commented on May 29, 2024

from sim800l-arduino-library-revised.

vittorioexp avatar vittorioexp commented on May 29, 2024

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.

jankluiver avatar jankluiver commented on May 29, 2024

from sim800l-arduino-library-revised.

vittorioexp avatar vittorioexp commented on May 29, 2024

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.

jankluiver avatar jankluiver commented on May 29, 2024

from sim800l-arduino-library-revised.

vittorioexp avatar vittorioexp commented on May 29, 2024

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.

jankluiver avatar jankluiver commented on May 29, 2024

from sim800l-arduino-library-revised.

jankluiver avatar jankluiver commented on May 29, 2024

from sim800l-arduino-library-revised.

vittorioexp avatar vittorioexp commented on May 29, 2024

Hi,

Can you send me a picture of your hardware?

Thank you

from sim800l-arduino-library-revised.

jankluiver avatar jankluiver commented on May 29, 2024

from sim800l-arduino-library-revised.

vittorioexp avatar vittorioexp commented on May 29, 2024

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.

jankluiver avatar jankluiver commented on May 29, 2024

from sim800l-arduino-library-revised.

jankluiver avatar jankluiver commented on May 29, 2024

from sim800l-arduino-library-revised.

vittorioexp avatar vittorioexp commented on May 29, 2024

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.

vittorioexp avatar vittorioexp commented on May 29, 2024

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.

jankluiver avatar jankluiver commented on May 29, 2024

from sim800l-arduino-library-revised.

Related Issues (20)

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.