Who's willing to try Blynk with GSM modules?

Thanks Marvin 7 for the advice. I tried the BlinkClient but I did not succeed in compiling either. Apparently it will have to be created from the outside the library examples.

No, the example indicated compiles fine! What board?
And check Blynk lib in library repository in Arduino IDE. I don’t know why, but it informed me about awaiting updates and among other there was a Blynk library. Updating this way helped.

Thank you again, I got it wrong, sorry. My board is Mega and module SIM800L. I updated the Blynk library inside the Arduino IDE and I compiled and received the error similar to that of Evan_Urue on ‘gsm was not declared’ in gsm.restart. I commented on this line and compiled it successfully. I’ll test tomorrow to see if it will work in the module.

@Shaymon_Alvarez , @Evan_Unrue - please change this to:

modem.restart();

Sorry I don’t know how it went through our regular build checks.

Ok, after certain problems with making SIM900 to work with Blynk, now I want to share some experience:

  1. Yes, IT DOES WORK! And this is very good information for everyone who (like me) is trying to monitor isolated destinations.

  2. Use latest available library (Our developer @vshymanskyy is still improving it. The latest available is at https://github.com/vshymanskyy/TinyGSM

  3. I have used (modified for needs) example from TinyGsm library branch (BlynkClient). The one from Blynk branch have (or had?) some errors (compile error). Keep in mind the above note from @vshymanskyy, regarding modem.restart()

  4. Handling PIN-LOCKED SIM is supported too, just call: modem.simUnlock("xxxx"); after modem.restart();

  5. When using SoftwareSerial library, do not use (defaulted) BaudRate of 115200. It does not work correctly. I lowered it to 38400 and seems to be OK now.

  6. Remember - IT IS GSM, and usually there are limited data packet. Keep it in mind when choosing updating interval (usually there is no need to update data every 1sec)

  7. I’m still testing new connection method, but using simple project results in quite stable connection, although for 3 hours running time i had 5 reconnection attempts to Blynk server.

Good Luck! :slight_smile:

3 Likes

The examples were updated:

Thank you @vshymanskyy and @marvin7 for the support. I will check these changes and apply them.

Hello,

is possible to compile BLYNKCLIENT (example for SIM800/900) on ESP8266. Im trying this, but compiler send Error.

BR Greg

Yes, it should be possible - let me check if it works…

@GsmKey - why, it built without problems for me.

OK, tnx to try.

Arduino sent this error:

BlynkClient:68: error: no matching function for call to ‘BlynkSIM::begin(char [14], TinyGsm&, char [4], char [8], char [9])’

I use original example without any changes.

BRGreg

Sorry,
my mistake. Im download latest library and compile without error.
TNX

Greg

1 Like

@vshymanskyy, did you read my message in message box (regarding the +CREG “bug”)?
Also, can you think about implementing return value of signal quality? (+CSQ) If not constantly (by means of unsolicited results +CSQN) then perhaps by calling AT+CSQ right before/after registering to network (+CREG). I’m not having any trouble currently, but it will be good to know CSQ return in unknown locations.

Don’t work with nodeMCU and sim800l: Soft WDT reset

OK
AT&FZE0
AT&FZE0

OK
AT+CPIN?

ERROR
AT+CPIN?

ERROR
AT+CPIN?

ERROR
AT+CPIN?

+CPIN: READY

OK
Waiting for network…AT+CREG?

+CREG: 0,2

OK
AT+CREG?

+CREG: 0,2

OK
AT+CREG?

+CREG: 0,2

OK
AT+CREG?

+CREG: 0,2

OK
AT+CREG?

+CREG: 0,1

OK
OK
Connecting to internetAT+CIPSHUT

SHUT OK
AT+SAPBR=3,1,“Contype”,“GPRS”

OK
AT+SAPBR=3,1,“APN”,“internet”

OK
AT+SAPBR=3,1,“USER”,“gdata”

OK
AT+SAPBR=3,1,“PWD”,“gdata”

OK
AT+CGDCONT=1,“IP”,“internet”

OK
AT+CGACT=1,1

OK
AT+SAPBR=1,1

OK
AT+SAPBR=2,1

+SAPBR: 1,1,“100.84.236.107”

OK
AT+CGATT=1

OK
AT+CIPMUX=1

OK
AT+CIPQSEND=1

OK
AT+CIPRXGET=1

OK
AT+CSTT=“internet”,“gdata”,“gdata”

OK
AT+CIICR

OK
AT+CIFSR;E0

100.84.236.107

OK
AT+CDNSCFG=“8.8.8.8”,“8.8.4.4”

OK
OK
Connecting to cdn.rawgit.comAT+CIPSTART=1,“TCP”,“cdn.rawgit.com”,80

OK

Soft WDT reset

ctx: cont
sp: 3ffef920 end: 3ffefc20 offset: 01b0

        stack>>>
        3ffefad0: 00000038 3ffee9c4 3ffefb50 40202228
        3ffefae0: 00000000 00000000 00000000 40203a28
        3ffefaf0: 3ffe8754 00000000 3ffefb50 40203a77
        3ffefb00: 00000000 3ffe84cc 3ffe84dc 00003e7d
        3ffefb10: 000124f8 00000000 3ffefb50 40203afe
        3ffefb20: 3ffe8754 3ffee9dc 0000000a 000124f8
        3ffefb30: 3ffe84bc 3ffe84cc 3ffe84dc 402022d4
        3ffefb40: 00000000 00000000 3ffee9c4 00000050
        3ffefb50: 3fff0a1c 0000004f 00000006 4020360d
        3ffefb60: 3ffee9c4 00000000 0000002c 402042ec
        3ffefb70: 00000000 3ffee960 3ffee9c4 00000050
        3ffefb80: 00000000 3ffee960 3ffee9c4 40202411
        3ffefb90: 00000000 3ffe88a0 3ffeeb44 4020360d
        3ffefba0: 00000001 3ffe8880 3ffeeb44 40203638
        3ffefbb0: 00000000 00000000 3ffeeb44 3ffe8880
        3ffefbc0: 3ffe8708 3ffee960 3ffeeb44 40202c30
        3ffefbd0: 00000000 3ffeebf8 40204004 3ffeec00
        3ffefbe0: 402010ae 00000bb8 00000bb8 3ffeebf8
        3ffefbf0: 3fffdad0 00000000 0001c200 3ffeebf8
        3ffefc00: 3fffdad0 00000000 3ffeebf0 40204050
        3ffefc10: feefeffe feefeffe 3ffeec00 40100718
        <<<stack<<<

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld
AT

OK
AT+CFUN=0

Hello.
Arduino compile without error.
Esp8266 esp12 after upload firmware just cycling at one second …
Any suggestion?

Ok, I see the problem - it will be fixed soon.
@energokom , Can you please send your full sketch to me?

Hello,
any working example for esp8266 and sim800/900?

Tnx
Greg

Sure, just try latest release - and change sketch to use SoftSerial, baud 38400

FYI - I’m using the Linksprite sim900 shield, had to use SoftwareSerial pins 7 and 8, not 2 and 3. Also 38400 baud wouldn’t work, had to use 19200. All working now !! Only slightly annoying thing is I get garbage in the serial monitor. Would be nice to get some feedback on whether it finds network, joins APN successfully and connects to Blynk server etc.

Apart from that… it’s alive !! Muhahahahahaaaa !!

I managed to get it working and did a post here going through it