botletics / SIM7000-LTE-Shield

Botletics SIM7000 LTE CAT-M1/NB-IoT Shield for Arduino
https://www.botletics.com/products/sim7000-shield
GNU General Public License v3.0
478 stars 216 forks source link

Could'nt find FONA for the LTE example #272

Open howdoyoudoit opened 2 years ago

howdoyoudoit commented 2 years ago

Hi Timothy, I have connect the Battery Lipo with the SIM7000 but it seem the data show 'could'nt not find FONA'. Can you please help me? ⸮FONA basic test Initializing....(May take several seconds) Configuring to 9600 baud Attempting to open comm with ATs ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- ---> AT <--- Timeout: No response to AT... last ditch attempt. ---> AT <--- ---> AT <--- ---> AT <--- ---> ATE0 <--- ---> ATE0 <--- Couldn't find FONA

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Soft WDT reset

stack>>>

ctx: cont sp: 3ffffde0 end: 3fffffc0 offset: 01a0 3fffff80: 3ffee930 3ffee7fc 3ffeeac8 40201335 3fffff90: feefeffe feefeffe feefeffe 3ffeeb30 3fffffa0: 3fffdad0 00000000 3ffeeb1c 40206568 3fffffb0: feefeffe feefeffe 3ffe85d8 401011e1 <<<stack<<<

Also, if the battery lipo is connected the SIM7000 is On LED right? but the data shows error.

Here is the pictures of SIM7000 of mine connected with lipo battery with using the usb cables of esp8266 and vice versa.

without USB Cables.pdf Connected-USB-Cables.pdf

but sir, as you said that the wire polarity is reversed but the wire connector JST of mine is black on the left and red on the right. While my Lipo Battery has red and black wire. So, I'm using the terminal block to change the flow which is the Red wire from Lipo battery connected to the black wire on JST connector which is on the left and the black wire from Lipo Battery connected to the red wire of connector JST on the right through the terminal block. Supposedly it should be ok right? But I still got the errors. Or is it because I'm not enable the ESP8266 in the coding?

// ESP8266 + SIM7000 shield

define FONA_PWRKEY 14 // D5 on NodeMCU

define FONA_RST 12 // D6 on NodeMCU

define FONA_TX 4 // D2 on NodeMCU, microcontroller RX

define FONA_RX 5 // D1 on NodeMCU, microcontroller TX

// For botletics SIM7000 shield //#define FONA_PWRKEY 6 //#define FONA_RST 7 //#define FONA_DTR 8 // Connect with solder jumper //#define FONA_RI 9 // Need to enable via AT commands //#define FONA_TX 10 // Microcontroller RX //#define FONA_RX 11 // Microcontroller TX //#define T_ALERT 12 // Connect with solder jumper

// We default to using software serial. If you want to use hardware serial // (because softserial isnt supported) comment out the following three lines // and uncomment the HardwareSerial line

include

SoftwareSerial fonaSS = SoftwareSerial(FONA_TX, FONA_RX);

// Use the following line for ESP8266 instead of the line above (comment out the one above) //SoftwareSerial fonaSS = SoftwareSerial(FONA_TX, FONA_RX, false, 256); // TX, RX, inverted logic, buffer size

SoftwareSerial *fonaSerial = &fonaSS;

But as for the define I have enable for the esp8266 as for the softwareserial if I enable the esp8266 line it shows errors.

LTE_Demo:86:68: error: no matching function for call to 'SoftwareSerial::SoftwareSerial(int, int, bool, int)' 86 | SoftwareSerial fonaSS = SoftwareSerial(FONA_TX, FONA_RX, false, 256); // TX, RX, inverted logic, buffer size | ^ In file included from C:\Users\HP\AppData\Local\Temp\arduino_modified_sketch_875339\LTE_Demo.ino:82: C:\Users\HP\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:93:5: note: candidate: 'SoftwareSerial::SoftwareSerial(int8_t, int8_t, bool)' 93 | SoftwareSerial(int8_t rxPin, int8_t txPin = -1, bool invert = false); | ^~~~~~ C:\Users\HP\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:93:5: note: candidate expects 3 arguments, 4 provided C:\Users\HP\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:89:5: note: candidate: 'SoftwareSerial::SoftwareSerial()' 89 | SoftwareSerial(); | ^~~~~~ C:\Users\HP\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:89:5: note: candidate expects 0 arguments, 4 provided Multiple libraries were found for "SoftwareSerial.h" Used: C:\Users\HP\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial Not used: C:\Users\HP\Documents\Arduino\libraries\espsoftwareserial-master Not used: C:\Users\HP\Documents\Arduino\libraries\EspSoftwareSerial exit status 1 no matching function for call to 'SoftwareSerial::SoftwareSerial(int, int, bool, int)'

I don't know either the polarity as you said or the coding enabling for ESP8266. Can you please help me sir? Thanks

ss4adam commented 2 years ago

I'm having this same problem on the Arduino Uno after following the github instructions

botletics commented 2 years ago

You need to make sure the LiPo battery has the red wire on the left side of the connector when you plug it into the board. There is a "+" sign printed on the board on the left pin of the connector.