espressif / esp-iot-bridge

A smart bridge to make both ESP and the other MCU or smart device can access the Internet.
Apache License 2.0
141 stars 49 forks source link

Can't open Web page on 192.168.4.1 (AEGHB-91) #17

Closed x893 closed 1 year ago

x893 commented 1 year ago

Hello i use ESP32 with SDIO interface (not connected now to host). Connect to ESP-Bridge AP from windows computer and receive 192.168.4.2 address. Try open web page from 192.168.4.1 and see status 192.168.4.1 refused to connect. Previous version esp-gateway open web page for wifi uplink settings.

How can i resolve it ? Thanks Mitek

tswen commented 1 year ago

What are the versions of IDF and ESP-Bridge (branch and commit id) In addition, how many data_forwarding_netifs are open in total, is there only softap, please make sure to open the BRIDGE_USE_WEB_SERVER configuration. In addition, if there is another network card or wired connection on the computer side, it is recommended to disconnect the other network card and try again.

x893 commented 1 year ago

IDF 5.0 master ESP-Bridge master priv_src latest

CONFIG_BRIDGE_USE_WEB_SERVER=y SDIO not connected to ESP32-WROVER, only one computer connect to bridge ping 192.168.4.1 works from computer

tswen commented 1 year ago

Due to the particularity of the SDIO driver, SDIO needs to communicate with the MCU during initialization, otherwise it will be blocked. StartWebServer() is enabled after the SDIO netif is initialized and is not enabled, so the Web page cannot be accessed. Do you have to configure the network first and then connect to SDIO?

x893 commented 1 year ago

OK, i connect SDIO later. Now in progress connection to Zynq 7000 system. Initially i use SPI interface and Web start normally. Notify about results later. Thanks P.S. May be change software logic so StartWeb independs from SDIO interface. It may be more helpfull (if SDIO not works).

xcguang commented 1 year ago

Hello, Any update about this?