G
G
geebv2016-08-30 18:43:29
Arduino
geebv, 2016-08-30 18:43:29

How to debug internet connection error?

MTS operator. SMS are sent. Any network tests (complete with IDE) work - Modem is functoning properly
GSM module sim800l
robotdyn nano v2
Load the "TestGPRS" example (where you need to manually enter apn, login, pwd).
Here is the general log

Connecting GSM network...Connecting GSM network...OK
Enter your APN: mts
Now, enter your login: mts
Finally, enter your password: Attaching to GPRS with your APN...
ERROR
Connecting GSM network...OK
Enter your APN: mts.ru
Now, enter your login: mts
Finally, enter your password: Attaching to GPRS with your APN...
ERROR
Connecting GSM network...OK
Enter your APN: internet.mts.ru
Now, enter your login: mts
Finally, enter your password: Attaching to GPRS with your APN...
ERROR
Connecting GSM network...OK
Enter your APN: mts
Now, enter your login: mts
Finally, enter your password: Attaching to GPRS with your APN...
ERROR
Connecting GSM network...OK
Enter your APN:

How to get internet?
UPD: with a megaphone, a SIM card also gives ERROR (code = 2)
codegprsAccess.attachGPRS(apn, login, password);

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arthur Mikhailovich, 2016-09-08
@grymen

It's possible that you're just entering the wrong information.
Search the Internet for accurate data, at worst, you can call the operator and ask for the data, insert it into the phone, accept the data sent and read it.
And if this is a Ukrainian mts, then most likely a login password is not needed. If Russian -
Ordinary SIM-card "MTS"
◦APN: internet.mts.ru
◦Username: mts
◦Password: mts

G
geebv, 2016-09-10
@geebv

It turned out to execute an http request using the SoftwareSerial.h library and AT commands
With GSM.h, apparently something needs to be conjured. The first thought arose that there were some troubles with delays

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question