vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.91k stars 709 forks source link

LILYGO® TTGO T-PCIE ESP32-Modem7070G #448

Open schmeckm opened 3 years ago

schmeckm commented 3 years ago

56 # What are you working with?

Modem: SIM7070G Main processor board: ESP32 TinyGSM version: (0.10.8)

Here is the code, I just changes the APN to iot.1nce.net in the code. The rest is the same https://github.com/Xinyuan-LilyGO/LilyGo-T-PCIE/blob/master/examples/SIM7000G/SIM7000G.ino

2020-10-07_19-23-49 2020-10-07_21-17-18

The Hardware is this: https://de.aliexpress.com/i/4001142716386.html

Expected result

Modem should built up a connection to the NB-IoT network but it does'nt work, error code are shown. The SIM Card Vendor support Global Network support with NB-IoT access in germany.

Actual result

The modem is not able to connect the network. See code below. Error while connecting GPRS.

Debug and AT command log

OK AT+CPIN?

+CPIN: READY

OK AT+GMM

SIMCOM_SIM7070

OK [161360] Modem Name: SIMCOM SIM7070 ATI

R1951.01

OK [161364] Modem Info: R1951.01 AT+CPIN?

+CPIN: READY

OK [161370] Waiting for network... AT+CEREG?

+CEREG: 0,4

OK AT+CEREG?

+CEREG: 0,4

OK AT+CGREG?

+CGREG: 0,5

OK [167094] Network connected [167094] Connecting to iot.1nce.net AT+CIPSHUT

ERROR AT+SAPBR=3,1,"Contype","GPRS"

ERROR AT+SAPBR=3,1,"APN","iot.1nce.net"

ERROR AT+CGDCONT=1,"IP","iot.1nce.net"

OK AT+CGACT=1,1

OK AT+SAPBR=1,1

ERROR AT+SAPBR=2,1

ERROR [177359] Initializing modem... AT+CFUN=0

OK AT+CFUN=1,1

SRGDamia1 commented 3 years ago

The 7070 follows a different set of AT commands than the 7000 or 7500; sorry. I don't have one a module of the 70x0 series right now or have any current plans to get one.

Gabriellameirinhas commented 3 years ago

Is it possible to use lily t-pcie with quectel bg96?

SRGDamia1 commented 3 years ago

@Gabriellameirinhas - I assume so.

Gabriellameirinhas commented 3 years ago

@SRGDamia1 Do you know where I can find more exemplas of implementations using ttgo t-pcies?

SRGDamia1 commented 3 years ago

@Gabriellameirinhas - no, sorry.

nices0325 commented 3 years ago

Is it affordable with South korean LTE cat.m1 communication SIM card?

star297 commented 3 years ago

I'm having issues with the SIM7070G. I have also tried the fona SIM7000 library and I believe others are having issues getting this module to work.

To be sure I tried using AT commands from the official documentation, I can connect and get an IP using my Movistar general SIM card from my phone. But fails to connect to an MQTT broker or anything else tbh. I use my SIM card in a SIM7000E, SIM808E and SIM7600E without problems. I'm waiting for a dedicated IOT SIM card to test further just in case the problem is with the SIM.

However I'm not sure if I am interested because; The SIM7070G is a cut down SIM7000 and one problem is that you can not run both GNSS and Mobile Data at the same time as they share the internal rf section. So you would have to get your GPS position, switch that off by AT command then switch on the GPRS by AT command and continue.

I'm using the T-PCIE SIM7600E module which works just fine, but that's 4G LTE. Unlike my SIM808E (2G) can drop out in certain locations the 7600 remains connected.

The T-PCIE SIM7000E module works well if you want NB-IOT and you can use GNSS at the same time. Also the built in the MQTT works on this module too so you don't need the PUBSUB library. Again this works on my standard phone SIM card.

SRGDamia1 commented 3 years ago

@star297 - the SIM7000 and 7070/7080/7090 don't use the same AT commands.