Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

issue with http get #60

Closed
Rothammel opened this issue Jan 17, 2023 · 3 comments
Closed

issue with http get #60

Rothammel opened this issue Jan 17, 2023 · 3 comments

Comments

@Rothammel
Copy link

i am only able to send one HTTP get, on the second try I receive: Unable to init HTTP

SIM800L : Reset
SIM800L : Prepare internal buffer of 300 bytes
SIM800L : Prepare reception buffer of 512 bytes
SIM800L : Send "AT"
SIM800L : Receive timeout
Problem to initialize AT command, retry in 1 sec
SIM800L : Send "AT"
SIM800L : End of transmission
SIM800L : Receive "AT
OK
"
Setup Complete!
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 0,0
"
SIM800L : Send "AT+CSQ"
SIM800L : End of transmission
SIM800L : Receive "AT+CSQ
+CSQ: 17,0
"
Signal OK (strenght: 17)
SIM800L : Send "AT+CREG?"
SIM800L : End of transmission
SIM800L : Receive "AT+CREG?
+CREG: 0,2
"
SIM800L : Send "AT+CREG?"
SIM800L : End of transmission
SIM800L : Receive "AT+CREG?
+CREG: 0,2
"
SIM800L : Send "AT+CREG?"
SIM800L : End of transmission
SIM800L : Receive "AT+CREG?
+CREG: 0,2
"
SIM800L : Send "AT+CREG?"
SIM800L : End of transmission
SIM800L : Receive "AT+CREG?
+CREG: 0,5
"
Network registration OK
SIM800L : Send "AT+SAPBR=3,1,"Contype","GPRS""
SIM800L : End of transmission
SIM800L : Receive "AT+SAPBR=3,1,"Contype","GPRS"
OK
"
SIM800L : Send "AT+SAPBR=3,1,"APN","pinternet.interkom.de""
SIM800L : End of transmission
SIM800L : Receive "AT+SAPBR=3,1,"APN","pinternet.interkom.de"
OK
"
GPRS config OK
SIM800L : Send "AT+SAPBR=1,1"
SIM800L : End of transmission
SIM800L : Receive "AT+SAPBR=1,1
OK
"
GPRS connected with IP SIM800L : Send "AT+SAPBR=2,1"
SIM800L : End of transmission
SIM800L : Receive "AT+SAPBR=2,1
+SAPBR: 1,1,"10.36.99.191"
"
10.36.99.191
Start HTTP GET...
http://stan.selfhost.eu:5055/?id=123456&sat=11&hdop=0&lat=50.879913&lon=13.529003&altitude=473.7&speed=0.30
GPRS connected:  SIM800L : Send "AT+SAPBR=2,1"
SIM800L : End of transmission
SIM800L : Receive "AT+SAPBR=2,1
+SAPBR: 1,1,"10.36.99.191"
"
1
SIM800L : Send "AT+HTTPINIT"
SIM800L : End of transmission
SIM800L : Receive "AT+HTTPINIT
OK
"
SIM800L : Send "AT+HTTPPARA="CID",1"
SIM800L : End of transmission
SIM800L : Receive "AT+HTTPPARA="CID",1
OK
"
SIM800L : Send "AT+HTTPPARA="URL","http://stan.selfhost.eu:5055/?id=123456&sat=11&hdop=0&lat=50.879913&lon=13.529003&altitude=473.7&speed=0.30""
SIM800L : End of transmission
SIM800L : Receive "AT+HTTPPARA="URL","http://stan.selfhost.eu:5055/?id=123456&sat=11&hdop=0&lat=50.879913&lon=13.529003&altitude=473.7&speed=0.30"
OK
"
SIM800L : Send "AT+HTTPPARA="REDIR",1"
SIM800L : End of transmission
SIM800L : Receive "AT+HTTPPARA="REDIR",1
OK
"
SIM800L : Send "ATI"
SIM800L : End of transmission
SIM800L : Receive "ATI
SIM800 R14.18
"
SIM800L : initiateHTTP() - Support of SSL enabled
SIM800L : Send "AT+HTTPSSL=0"
SIM800L : End of transmission
SIM800L : Receive "AT+HTTPSSL=0
OK
"
SIM800L : Send "AT+HTTPACTION=0"
SIM800L : End of transmission
SIM800L : Receive "AT+HTTPACTION=0
OK
"
SIM800L : End of transmission
SIM800L : Receive "
+HTTPACTION: 0,200,0
"
SIM800L : readHTTP() - HTTP status 200
SIM800L : readHTTP() - Data size received of 0 bytes
SIM800L : Send "AT+HTTPREAD"
SIM800L : End of transmission
SIM800L : Receive "AT+HTTPREAD
OK
"
HTTP GET error 705
SIM800L : Send "AT+SAPBR=2,1"
SIM800L : End of transmission
SIM800L : Receive "AT+SAPBR=2,1
+SAPBR: 1,1,"10.36.99.191"
"
SIM800L : Send "AT+SAPBR=2,1"
SIM800L : End of transmission
SIM800L : Receive "AT+SAPBR=2,1
+SAPBR: 1,1,"10.36.99.191"
"
SIM800L : Send "AT+SAPBR=2,1"
SIM800L : End of transmission
SIM800L : Receive "AT+SAPBR=2,1
+SAPBR: 1,1,"10.36.99.191"
"
SIM800L : Send "AT+SAPBR=2,1"
SIM800L : End of transmission
SIM800L : Receive "AT+SAPBR=2,1
+SAPBR: 1,1,"10.36.99.191"
"
SIM800L : Send "AT+SAPBR=2,1"
SIM800L : End of transmission
SIM800L : Receive "AT+SAPBR=2,1
+SAPBR: 1,1,"10.36.99.191"
"
SIM800L : Send "AT+SAPBR=2,1"
SIM800L : End of transmission
SIM800L : Receive "AT+SAPBR=2,1
+SAPBR: 1,1,"10.36.99.191"
"

+SAPBR: 1,1,"10.36.99.191"
"
Start HTTP GET...
http://stan.selfhost.eu:5055/?id=123456&sat=11&hdop=0&lat=50.879929&lon=13.529037&altitude=472.2&speed=0.35&timestamp=1673944815
GPRS connected:  SIM800L : Send "AT+SAPBR=2,1"
SIM800L : End of transmission
SIM800L : Receive "AT+SAPBR=2,1
+SAPBR: 1,1,"10.36.99.191"
"
1
SIM800L : Send "AT+HTTPINIT"
SIM800L : End of transmission
SIM800L : Receive "AT+HTTPINIT
ERROR
"
SIM800L : initiateHTTP() - Unable to init HTTP
HTTP GET error 701
SIM800L : Send "AT+SAPBR=2,1"
SIM800L : End of transmission
SIM800L : Receive "AT+SAPBR=2,1
+SAPBR: 1,1,"10.36.99.191"
"
SIM800L : Send "AT+SAPBR=2,1"
SIM800L : End of transmission
SIM800L : Receive "AT+SAPBR=2,1
+SAPBR: 1,1,"10.36.99.191"
"
@ostaquet
Copy link
Owner

ostaquet commented May 5, 2023

@EndruK had a communication issue with the module and it solved it by forcing the baud rate for the AT communication.

I planned to integrate his suggestion in the library when I will have a module in hands.

Can you try this : #48 (comment) ?

@Rothammel
Copy link
Author

Rothammel commented Oct 20, 2023

Unfortunately this issue still exists:

Problem to initialize AT command, retry in 1 sec
Setup Complete!
Signal OK (strenght: 17)
Network registration OK
GPRS config OK
GPRS connected with IP 10.65.225.171
Start HTTP GET...
HTTP GET error 408
HTTP GET error 701
HTTP GET error 701
GPRS disconnected !
Module in low power mode

@ostaquet
Copy link
Owner

ostaquet commented Jun 2, 2024

As mentioned in the README, the project is no longer maintained as my module is broken. Thanks for reporting the issue.

@ostaquet ostaquet closed this as completed Jun 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants