vshymanskyy / TinyGSM

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

Problem connecting to APN SIM5320E #581

Open tkralj opened 3 years ago

tkralj commented 3 years ago

Hello, i'm trying to connect to APN using SIM5320E but i cannot. Can someone please help?.

Debugger shows following output:

AT+NETOPEN? AT+NETOPEN?

+NETOPEN: 0,0

OK GSM not connected. Reconnecting. AT+CIPCLOSE=1 AT+CIPCLOSE=1

+IP ERROR: 8

ERROR AT+CIPCLOSE=2 AT+CIPCLOSE=2

+IP ERROR: 8

ERROR AT+NETCLOSE AT+NETCLOSE

+IP ERROR: 5

ERROR AT+CGDCONT=1,"IP","em","0.0.0.0",0,0 AT+CGDCONT=1,"IP","em","0.0.0.0",0,0

OK AT+CGSOCKCONT=1,"IP","em" AT+CGSOCKCONT=1,"IP","em"

OK AT+CSOCKSETPN=1 AT+CSOCKSETPN=1

OK AT+CIPMODE=0 AT+CIPMODE=0

OK AT+CIPSENDMODE=0 AT+CIPSENDMODE=0

ERROR AT+CIPCCFG=10,0,0,0,1,0,75000 AT+CIPCCFG=10,0,0,0,1,0,75000

OK AT+CIPTIMEOUT=75000,15000,15000 AT+CIPTIMEOUT=75000,15000,15000

ERROR AT+NETOPEN AT+NETOPEN

ERROR AT+NETOPEN? AT+NETOPEN?

+NETOPEN: 0,0

tkralj commented 3 years ago

Hello, i figured out why modem could not connect. The reason is that AT+NETOPEN should be called as AT+NETOPEN ,,1 But here's another problem now. I get bad request from server now.

I create request is this way: http.get(url);

  http.sendHeader("firmware-ver", FIRMWARE_VER);
  http.sendHeader("Authorization", basicAuthStringB64.c_str());
  http.sendHeader("Content-length", 0);
  http.sendHeader("Content-Type", "text/plain");

  http.endRequest();

Here is AT debug code:

OK AT+CIPSEND=1,12 AT+CIPSEND=1,12

firmware-verfirmware-ver OK

+CIPSEND: 12,12 AT+CIPSEND=1,2 AT+CIPSEND=1,2

: : OK

+CIPSEND: 2,2

RECV FROM:212.92.212.113:80

+CIPRXGET: 1,1

+IPCLOSE: 1, 1, 212.92.212.113, 80 AT+CIPSEND=1,3 AT+CIPSEND=1,3

+IP ERROR: 11

ERROR AT+CIPSEND=1,2 AT+CIPSEND=1,2

+IP ERROR: 11

ERROR AT+CIPSEND=1,13 AT+CIPSEND=1,13

+IP ERROR: 11

ERROR AT+CIPSEND=1,2 AT+CIPSEND=1,2

+IP ERROR: 11

ERROR AT+CIPSEND=1,34 AT+CIPSEND=1,34

+IP ERROR: 11

ERROR AT+CIPSEND=1,2 AT+CIPSEND=1,2

+IP ERROR: 11

ERROR AT+CIPSEND=1,14 AT+CIPSEND=1,14

+IP ERROR: 11

ERROR AT+CIPSEND=1,2 AT+CIPSEND=1,2

+IP ERROR: 11

ERROR AT+CIPSEND=1,1 AT+CIPSEND=1,1

+IP ERROR: 11

ERROR AT+CIPSEND=1,2 AT+CIPSEND=1,2

+IP ERROR: 11

ERROR AT+CIPSEND=1,12 AT+CIPSEND=1,12

+IP ERROR: 11

ERROR AT+CIPSEND=1,2 AT+CIPSEND=1,2

+IP ERROR: 11

ERROR AT+CIPSEND=1,10 AT+CIPSEND=1,10

+IP ERROR: 11

ERROR AT+CIPSEND=1,2 AT+CIPSEND=1,2

+IP ERROR: 11

ERROR AT+CIPSEND=1,2 AT+CIPSEND=1,2

+IP ERROR: 11

ERROR AT+CIPRXGET=4,1 AT+CIPRXGET=4,1

+CIPRXGET: 4,1,505

What could be the problem ?

SRGDamia1 commented 2 years ago

Has this issue been resolved?

tkralj commented 2 years ago

Hello, no it has not. I switched to other SIMCOM 4G modem and i am willing to pay you for the implementation. Let me Know if you're interested.

Regards, Tomislav

Poslano iz programa Poštahttps://go.microsoft.com/fwlink/?LinkId=550986 za Windows

Pošiljatelj: Sara @.> Poslano:24. studenog 2021. 16:45 Primatelj: @.> Kopija: @.>; @.> Predmet: Re: [vshymanskyy/TinyGSM] Problem connecting to APN SIM5320E (#581)

Has this issue been resolved?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/vshymanskyy/TinyGSM/issues/581#issuecomment-977998264, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH6ST2WPT2XGYHNZ2LAZ4ODUNUCBTANCNFSM5C5SQE6A. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

SRGDamia1 commented 2 years ago

I'm sorry, I just don't have any time available for this.