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
477 stars 215 forks source link

JST connector on SIM7000G #270

Open howdoyoudoit opened 2 years ago

howdoyoudoit commented 2 years ago

Hello Timothy, I got an issue about the connector on the SIM7000. I have already purchased 3 battery lipo 3.7v with JST connector but it does'nt work out. The connector is not compatible with the connector on SIM7000. Right now i'm clueless how to insert the lipo battery when the connector does not match. As for the second issue, I want to create the contenna GPS tracking system. But the coding you create is for the GPS only. If i want to add device such as magnetic sensor and load cell sensor, how do i want to add the data from the sensors into the IOT?. Do i have to insert the coding of the sensors into the IoT_sketch?. Can you help me in this matter?

Here's the battery that i've purchased and the JST connector also. Can you please have a look?

SIM7000-connector.pdf Battery-Lipo-JST-3.pdf Battery-Lipo-JST-2.pdf Battery-Lipo-JST.pdf JST-Connectror.pdf

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

botletics commented 2 years ago

Your LiPo battery polarity is reversed. Please make sure the red wire is on the left side of the connector when you plug it into the shield. The batteries from Sparkfun and Adafruit are all wired correctly, but many vendors swap it.

howdoyoudoit commented 2 years ago

but sir, 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