Connect GPRS Failed with SIM 800A and Arduino nano

Hard to tell… apn is correct? User/pass usually not needed but check your case. The same sim card works fine with GPRS mode on another modem/cell phone? (check modem’s network settings) The 38400 works with SSerial, but on my experience it is “a roof” for Atmega 328 (Arduino). One step down should be safer.

Yes same simcard works fine with GPRS Mode on another cell phone, APN used is also correct.
Is there any problem with Atmega 328?

One USART and too slow for fast SSerial. You can try with more capable MEGA and it’s hardware USART’s. But I was using GSM long time ago with SS baud rate 33600 and it was fine. My recent “design” was using hardware serial though.
All that said, I think your problem is not SS related.

I have sim800l and Atmega 328 programs running.

#define BLYNK_PRINT Serial

#define TINY_GSM_MODEM_SIM800

#include <TinyGsmClient.h>
#include <BlynkSimpleSIM800.h>

BlynkTimer timer;

char auth[] = "";
char apn[]  = "";
char user[] = "";
char pass[] = "";

#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 4); // RX, TX

TinyGsm modem(SerialAT);

void setup()
{

  Serial.begin(9600);

  delay(10);

  SerialAT.begin(9600);

  Serial.println("Initializing modem...");

  modem.restart();
  modem.init();

  Blynk.begin(auth, modem, apn, user, pass);
}

void loop()
{
  Blynk.run();
  timer.run();

}
1 Like

OK… I will try with other arduino board.

I have also used same code… In my case it is not working…
which blynk version have you used?

Tried version 2.27.4; 2.27.5; 2.27.6 at all works. Arduino Pro Mini 328.

I am asking Blynk Library Version…
I have tried Blynk v0.5.4 and v0.6.1 with Arduino Nano Both are not working…
and tiny GSM++ library v0.6.2 , which is not working in my case.

I use this library.
v0.6.1.zip

Have you tried SIM card in another device? Maybe a phone or usb dongle modem? To confirm it is working.

Even if the SIM works in another device doesn’t necessarily mean much. This topic makes an interesting read:

Pete.

2 Likes

I also wonder if the SIM card truly is 2G/GPRS.

In the UK I can’t find any 2G SIM cards as I looked at using sim800 for another project and it appears these only work on 2G, not 3G/4G.

Yes it is working…

SIM CARD supports 2G and working on GPRS i checked it

Ah not that then.
Was worth checking though.

Did you read the topic I posted above?

Pete.

2 Likes

Have you tried turning on all your debugging?
Please post your serial debugging (set up in IDE)
Lets have a look at those LWIP and IP client debugs.

In my case Vodacom SA issue above, I determinded that it was my Cellular operator dropping PCH IP packets on my HTTP login process.
I just got another providers SIM and all good.

P

1 Like

Yes.

I didn’t get what is LWIP and IP client debugs.
I found that in my case Blynk.begin(auth, modem, apn, user, pass) function is not working perfectly. I am not understanding what is the problem.
The same modem i checked for gprs connection with AT Commands with Serial Port Utility Software it is working perfectly fine but it is creating problem while using blynk and TinyGsm Library.

“bsnlnet” is it working ??

For me Docomo sim is working for same Hardware (TATA.DOCOMO.INTERNET)
But it is not working for BSNL sim