Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to HTTP fail #1

Open
Juatmann opened this issue Feb 11, 2020 · 4 comments
Open

Connecting to HTTP fail #1

Juatmann opened this issue Feb 11, 2020 · 4 comments

Comments

@Juatmann
Copy link

I have a TTGO Tcall V1.3 board. I filled APN data and uploaded your code.

Wifi AP is created, then I connect with my phone but says (no internet connection)

Here you have the serial monitor:
13:23:24.758 -> Programm ESP32_TTGO_T_CALL_TinyGSM
13:23:24.862 -> SYSTEM_EVENT_WIFI_READY
13:23:24.862 -> AccessPoint IP address: 192.168.4.1
13:23:24.862 -> :8083SYSTEM_EVENT_AP_START
13:23:24.862 -> WiFi Server started
13:23:24.862 -> IP5306 KeepOn OK
13:23:27.857 -> Initializing modem...
13:23:29.483 -> ModemInfo: SIM800 R14.18
13:23:29.653 -> Modemstatus: 1
13:23:33.957 -> SYSTEM_EVENT_AP_STACONNECTED
13:23:34.060 -> dhcps: send_offer>>udp_sendto result 0
13:23:34.094 -> SYSTEM_EVENT_AP_STAIPASSIGNED
13:23:34.094 -> Waiting for network... OK
13:23:36.910 -> Network connected
13:23:36.910 -> Connecting to APN: airtelwap.es OK
13:23:50.618 -> New Session.
13:23:50.618 -> GET / HTTP/1.1req_server.length(): 5
13:23:50.618 -> HTTP
13:23:50.618 -> resource: HTTP
13:23:50.618 -> Connecting to HTTP fail
13:24:01.580 -> Client Disconnected.
13:24:01.580 -> New Session.
13:24:01.580 -> GET / HTTP/1.1req_server.length(): 5
13:24:01.580 -> HTTP
13:24:01.580 -> resource: HTTP
13:24:01.580 -> Connecting to HTTP fail
13:24:12.510 -> Client Disconnected.
13:24:12.510 -> New Session.
13:24:12.613 -> GET / HTTP/1.1req_server.length(): 5
13:24:12.613 -> HTTP
13:24:12.613 -> resource: HTTP
13:24:12.613 -> Connecting to HTTP fail
13:24:23.688 -> Client Disconnected.
13:24:23.890 -> New Session.
13:24:23.890 -> GET / HTTP/1.1req_server.length(): 5
13:24:23.890 -> HTTP
13:24:23.890 -> resource: HTTP
13:24:23.890 -> Connecting to HTTP fail
13:24:34.910 -> Client Disconnected.

@SFeli
Copy link
Owner

SFeli commented Feb 15, 2020

Hello Juatmann, nice that you have found my code.
First your code is fine and will work, if you enter in the Browser something like:
http://192.168.4.1:8083/vsh.pp.ua/TinyGSM/logo.txt
Perhaps my documentation is not detailed enough. If you are fine with the hint we can close the issue. Regards SFeli

@Juatmann
Copy link
Author

Juatmann commented Feb 17, 2020

Hello SFeli. Thanks for your response.

I have checked your advice and it does not work. I have congured my wifi adapter in 2 ways:
1-Static IP 192.168.4.100. Did not work
2- DHCP IP: Did not work

Here is the log:

07:37:01.717 -> Programm ESP32_TTGO_T_CALL_TinyGSM
07:37:01.818 -> SYSTEM_EVENT_WIFI_READY
07:37:01.818 -> AccessPoint IP address: 192.168.4.1
07:37:01.818 -> :8083SYSTEM_EVENT_AP_START
07:37:01.818 -> WiFi Server started
07:37:01.818 -> IP5306 KeepOn OK
07:37:03.156 -> SYSTEM_EVENT_AP_STACONNECTED
07:37:04.824 -> Initializing modem...
07:37:09.482 -> ModemInfo: SIM800 R14.18
07:37:09.482 -> Modemstatus: 1
07:37:43.813 -> New Session.
07:37:43.813 -> GET /vsh.pp.ua/TinyGSM/logo.txt HTTP/1.1req_server.length(): 9
07:37:43.813 -> vsh.pp.ua
07:37:43.813 -> resource: /TinyGSM/logo.txt
07:37:43.813 -> Connecting to vsh.pp.ua fail
07:37:53.845 -> Client Disconnected.
07:37:53.845 -> New Session.
07:37:58.122 -> Client Disconnected.
07:38:02.308 -> New Session.
07:38:02.308 -> GET /vsh.pp.ua/TinyGSM/logo.txt HTTP/1.1req_server.length(): 9
07:38:02.308 -> vsh.pp.ua
07:38:02.308 -> resource: /TinyGSM/logo.txt
07:38:02.308 -> Connecting to vsh.pp.ua fail
07:38:12.339 -> Client Disconnected.
07:38:12.339 -> New Session.
07:38:13.328 -> Client Disconnected.
07:38:20.261 -> New Session.
07:38:20.261 -> GET /vsh.pp.ua/ HTTP/1.1req_server.length(): 9
07:38:20.261 -> vsh.pp.ua
07:38:20.261 -> resource: /
07:38:20.261 -> Connecting to vsh.pp.ua fail
07:38:30.271 -> Client Disconnected.
07:38:30.271 -> New Session.
07:38:30.304 -> Client Disconnected.
07:38:38.241 -> New Session.
07:38:38.241 -> GET /vsh.pp.ua HTTP/1.1req_server.length(): 14
07:38:38.241 -> vsh.pp.ua HTTP
07:38:38.241 -> resource: HTTP
07:38:38.241 -> Connecting to vsh.pp.ua HTTP fail
07:38:48.251 -> Client Disconnected.
07:38:48.251 -> New Session.
07:38:48.354 -> Client Disconnected.

Now I am trying to modify your code to get internet connection without needing to enter that address in Browser. I want to get internet only with power on the board.

Could you let me know how to modify it?

Thanks for your support

@SFeli
Copy link
Owner

SFeli commented Mar 14, 2020

Hello and sorry for the late response,
the board has a GPRS on board and opens an own WLAN - Accesspoint.
You have to connect to this network (name should be "T-Call" with your PC or mobile device.
Once you are connected you should open the browser and request the following webpage:
http://192.168.4.1:8083/vsh.pp.ua/TinyGSM/logo.txt
then the request will be passed over the WLAN to the AP on the ESP32 and forwarded to the GPRS into the Internet. You should receive an answer from the internet the same way back.
The program will not search for index.html or index.php you have to request for the object itself. Like the logo.txt on the folder ThinyGSM
Hope you will have success with this detailed description. I think you expect more than available.
Regards
Stefan
Pls. Close the issue if understood

@Zaurik97
Copy link

Hello,
I happen to have same problem as him, my hotspost seems to be working just fine, only problem is that when I type on the browser of the connected device to do the call it just gives me nothing and says the page doesn't work also the device tells me (No internet) on wifi settings, the code I used is very similar to yours just changed a few lines, I am using a T-Call v 1.4 board with a SIM800H paired with a thingsmobile SIM . I have tried also an example that does directly calls from esp32 (but no hotspot) and that works. also I think the problem here might be that i get this: Modemstatus: 1 which I understand it means no internet from the module. Does any of you have a solution by any chance? thanks in advance.

Kind Regards
Aurelio Roccasanta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants