Arduino-Library icon indicating copy to clipboard operation
Arduino-Library copied to clipboard

Using Thinger TinyGSM library with SIM7600

Open JoelMuhanguzi opened this issue 3 years ago • 1 comments

I am wondering, is it possible to connect to the thinger io dashboard using the tinygsm library but using a 4g module like the sim7600g, the example in the library just shows a few modems as shown below.

// Select your modem: #define TINY_GSM_MODEM_SIM800 //#define TINY_GSM_MODEM_SIM900 //#define TINY_GSM_MODEM_A6 //#define TINY_GSM_MODEM_A7 //#define TINY_GSM_MODEM_M590

JoelMuhanguzi avatar Aug 17 '22 08:08 JoelMuhanguzi

Not sure if it will work, but there is certainly a possibility. There are reports of it working with a SIM7000E.

But as you guessed by the definitions posted we have only tested with the above devices. Nevertheless, if you want to test it out use the following definition:

TINY_GSM_MODEM_SIM7600

You may find better support and additional information at Thinger's Community.

Please let us know if you make it work.

Good luck!

bautisflow avatar Aug 17 '22 17:08 bautisflow

I am using SIMCOM 7600G-H modem and it seems to work ok, but I have to disable SSL, which isn't the best but at least it's functional

#define _DISABLE_TLS_

reusables-official avatar Apr 12 '24 06:04 reusables-official

@JoelMuhanguzi I see you closed this issue recently, however, I'm wondering why we have to disable TLS for to use ThingerTinyGSM and if there are any plans to repair this issue?

reusables-official avatar May 21 '24 17:05 reusables-official

Hey @reusables-official I discovered that the TinyGSM library had not yet updated the functions to handle https (TLS) communication but is well implemented for the http communication

JoelMuhanguzi avatar May 21 '24 17:05 JoelMuhanguzi

Ok got it, thanks Joel, that makes sense. I have to import a whole other library to communicate with an SSL endpoint via TinyGSM so yes, their support for TLS is super limited.

reusables-official avatar May 21 '24 18:05 reusables-official

Yeap, personally I have tried SSLClient and it worked for me, https://www.arduino.cc/reference/en/libraries/sslclient/, you could try it out too

JoelMuhanguzi avatar May 21 '24 18:05 JoelMuhanguzi

Thanks for the tip! I went with https://github.com/govorox/SSLClient but the library you linked looks quite good.

reusables-official avatar May 21 '24 18:05 reusables-official