Comments (5)
I just can only suggest you start over from the examples written specifically for WT32-ETH01 in WT32_ETH01 examples and move forward gradually from there.
Check SimpleServer_WT32_ETH01 on WT32-ETH01 with ETH_PHY_LAN8720 and see it has been working OK.
I'm closing the issue now unless you can prove there is a bug of the library after correctly following the examples.
from upnp_generic.
I can see that the WT32_ETH01 is using my LAN_8720 chip.
If i define it like this:
#define UPNP_USING_WT32_ETH01 true
I got a compiler error:
.pio\build\esp32dev\src\main.cpp.o:(.literal._ZN4UPnP16testConnectivityEm+0x4): undefined reference to
WT32_ETH01_eth_connected`
from upnp_generic.
Managed to compile by removed the ETH.h lib from my includes and replaced with
//#include <ETH.h>
#include <WebServer_WT32_ETH01.h>
after that i got an other compile error because iam using an other webserver lib from Me_no_dev and i had to comment out the
webserver lib like this : //#include <WebServer.h> // Introduce corresponding libraries
from the WebServer_WT32_ETH01.h
header.
Now it is compiled but can't make it to work.
Serial outout:
[UPnP] UDP_TX_PACKET_MAX_SIZE= 1000
[UPnP] UDP_TX_RESPONSE_MAX_SIZE= 8192
[UPnP] newUpnpRule= 0.0.0.0
Add Port Forwarding, Try # 1
[UPnP] Testing WT32_ETH01 Ethernet connection for IP : 192.168.10.110
....................................................................................................................................................[UPnP] ==> Timeout verify WT32_ETH01 Ethernet connection
[UPnP] ERROR: not connected to Ethernet Network, can't continue
Add Port Forwarding, Try # 2
[UPnP] Testing WT32_ETH01 Ethernet connection for IP : 192.168.10.110
.........................................................................................................E (67767) esp_littlefs: Failed to opendir "/users.json". Error (-2)
............................Generated admin Code: 95100816
....[W][esp32-hal-i2c.c:1419] i2cCheckLineState(): invalid state sda(32)=0, scl(33)=1
...........[UPnP] ==> Timeout verify WT32_ETH01 Ethernet connection
[UPnP] ERROR: not connected to Ethernet Network, can't continue
Add Port Forwarding, Try # 3
[UPnP] Testing WT32_ETH01 Ethernet connection for IP : 192.168.10.110
....................................................................................................................................................[UPnP] ==> Timeout verify WT32_ETH01 Ethernet connection
[UPnP] ERROR: not connected to Ethernet Network, can't continue
Add Port Forwarding, Try # 4
[UPnP] Testing WT32_ETH01 Ethernet connection for IP : 192.168.10.110
....................................................................................................................................................[UPnP] ==> Timeout verify WT32_ETH01 Ethernet connection
[UPnP] ERROR: not connected to Ethernet Network, can't continue
[UPnP] isGatewayInfoValid : 0.0.0.0 , port : 0
[UPnP] Path : , actionPort : 0
[UPnP] actionPath : , serviceTypeName :
[UPnP] Gateway info not valid
[UPnP] Invalid router info, can't continue
UPnP done
it says that the esp not connected to Ethernet network. But this is not true because i can reach my webserver and everything else fine.
from upnp_generic.
Okay. I found the issue.
It checked a boolean variable from the lib's callback. I added this boolean to my ETH callback and it is working. I also had to increase the stack depth of my task because it restarted my esp every time it tried to connect.
Now it is failing and restarting my esp.
Last Serial outputs:
[UPnP] UDP_TX_PACKET_MAX_SIZE= 1000
[UPnP] UDP_TX_RESPONSE_MAX_SIZE= 8192
[UPnP] newUpnpRule= 0.0.0.0
Add Port Forwarding, Try # 1
[UPnP] Testing WT32_ETH01 Ethernet connection for IP : 192.168.10.110
==> GOOD
[UPnP] Internet connection GOOD
[UPnP] isGatewayInfoValid : 0.0.0.0 , port : 0
[UPnP] Path : , actionPort : 0
[UPnP] actionPath : , serviceTypeName :
[UPnP] Gateway info not valid
[UPnP] GW IP = 192.168.10.1
[UPnP] Sending M-SEARCH to : 239.255.255.250 , Port : 1900
[UPnP] Received packet, size = 335 , IP = 192.168.10.1
[UPnP] Port = 1900
[UPnP] IGD found
[UPnP] IGD location found : http://192.168.10.1:1900/igd.xml
[UPnP] 192.168.10.1
[UPnP] 1900
[UPnP] /igd.xml
[UPnP] Connecting to IGD with host : 192.168.10.1 , port : 1900
[UPnP] Connected to IGD
[UPnP] called getIGDEventURLs
[UPnP] deviceInfo->actionPath : , deviceInfo->path : /igd.xml
[UPnP] urn:schemas-upnp-org:service:WANIPConnection:1 service found!
[UPnP] controlURL tag found! Setting actionPath to : /ipc
[UPnP] Port : 1900 , actionPort : 1900
[UPnP] isGatewayInfoValid : 192.168.10.1 , port : 1900
[UPnP] Path : /igd.xml , actionPort : 1900
[UPnP] actionPath : /ipc , serviceTypeName : urn:schemas-upnp-org:service:WANIPConnection:1
[UPnP] Gateway info valid
[UPnP] Verify port mapping for rule : Hitec Smart Home
[UPnP] Apply action : GetSpecificPortMappingEntry on port mapping : Hitec Smart Home
[UPnP] Connecting to IGD with host : 192.168.10.1 , port : 1900
[UPnP] Connected to IGD
[UPnP] Host: 192.168.10.1:1900
[E][WiFiClient.cpp:395] write(): fail on fd 59, errno: 104, "Connection reset by peer"
[UPnP] Called addPortMappingEntry
[UPnP] Connecting to IGD with host : 192.168.10.1 , port : 1900
[UPnP] Connected to IGD
[UPnP] deviceInfo->actionPath : /ipc , deviceInfo->serviceTypeName : urn:schemas-upnp-org:service:WANIPConnection:1
[E][WiFiClient.cpp:439] read(): fail on fd 60, errno: 104, "Connection reset by peer"
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.Core 1 register dump:
PC : 0x400f172c PS : 0x00060130 A0 : 0x800f1b3c A1 : 0x3ffec990
A2 : 0x00000000 A3 : 0x3ffec9ef A4 : 0x00000001 A5 : 0x00000001
A6 : 0x3ffc6464 A7 : 0x00000068 A8 : 0x00000000 A9 : 0x00000000
A10 : 0x00000000 A11 : 0x40089a04 A12 : 0x00000050 A13 : 0x00000000
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x0000000a EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000008 LBEG : 0x4008ca60 LEND : 0x4008ca7c LCOUNT : 0xffffffff
ELF file SHA256: 0000000000000000
Backtrace: 0x400f172c:0x3ffec990 0x400f1b39:0x3ffec9b0 0x401c4c3d:0x3ffec9e0 0x40113fe9:0x3ffeca10 0x40114089:0x3ffeca30 0x400edc97:0x3ffeca50 0x400ef50d:0x3ffecab0 0x400ef69d:0x3ffecae0 0x40090912:0x3ffecb30
#0 0x400f172c:0x3ffec990 in WiFiClientRxBuffer::read(unsigned char*, unsigned int) at C:\Users\Pc\.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src/WiFiClient.cpp:572
#1 0x400f1b39:0x3ffec9b0 in WiFiClient::read(unsigned char*, unsigned int) at C:\Users\Pc\.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src/WiFiClient.cpp:572
#2 0x401c4c3d:0x3ffec9e0 in WiFiClient::read() at C:\Users\Pc\.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src/WiFiClient.cpp:572
#3 0x40113fe9:0x3ffeca10 in Stream::timedRead() at C:\Users\Pc\.platformio\packages\framework-arduinoespressif32\cores\esp32/Stream.cpp:76
#4 0x40114089:0x3ffeca30 in Stream::readStringUntil(char) at C:\Users\Pc\.platformio\packages\framework-arduinoespressif32\cores\esp32/Stream.cpp:76
#5 0x400edc97:0x3ffeca50 in UPnP::addPortMappingEntry(_gatewayInfo*, _upnpRule*) at src/Own_Headers/upnp.h:7
#6 0x400ef50d:0x3ffecab0 in UPnP::commitPortMappings() at src/Own_Headers/upnp.h:7
#7 0x400ef69d:0x3ffecae0 in UPNP_Task(void*) at src/Own_Headers/upnp.h:7
(inlined by) UPNP_Task(void*) at src/Own_Headers/upnp.h:36
#8 0x40090912:0x3ffecb30 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)
Rebooting...
ets Jul 29 2019 12:21:46
from upnp_generic.
Finally i'm at a stage where nothing is rebooting and it's just trying the UPNP to my router.
So far it's always timeout or connection reset by peer..
Serial output:
[UPnP] UDP_TX_PACKET_MAX_SIZE= 1000
[UPnP] UDP_TX_RESPONSE_MAX_SIZE= 8192
[UPnP] newUpnpRule= 0.0.0.0
[UPnP] Testing WT32_ETH01 Ethernet connection for IP : 192.168.10.110
==> GOOD
[UPnP] Internet connection GOOD
[UPnP] isGatewayInfoValid : 0.0.0.0 , port : 0
[UPnP] Path : , actionPort : 0
[UPnP] actionPath : , serviceTypeName :
[UPnP] Gateway info not valid
[UPnP] GW IP = 192.168.10.1
[UPnP] Sending M-SEARCH to : 239.255.255.250 , Port : 1900
[UPnP] Received packet, size = 335 , IP = 192.168.10.1
[UPnP] Port = 1900
[UPnP] IGD found
[UPnP] IGD location found : http://192.168.10.1:1900/igd.xml
[UPnP] 192.168.10.1
[UPnP] 1900
[UPnP] /igd.xml
[UPnP] Connecting to IGD with host : 192.168.10.1 , port : 1900
[UPnP] Connected to IGD
[UPnP] called getIGDEventURLs
[UPnP] deviceInfo->actionPath : , deviceInfo->path : /igd.xml
[UPnP] urn:schemas-upnp-org:service:WANIPConnection:1 service found!
[UPnP] controlURL tag found! Setting actionPath to : /ipc
[UPnP] Port : 1900 , actionPort : 1900
[UPnP] isGatewayInfoValid : 192.168.10.1 , port : 1900
[UPnP] Path : /igd.xml , actionPort : 1900
[UPnP] actionPath : /ipc , serviceTypeName : urn:schemas-upnp-org:service:WANIPConnection:1
[UPnP] Gateway info valid
[UPnP] Verify port mapping for rule : Hitec Smart Home
[UPnP] Apply action : GetSpecificPortMappingEntry on port mapping : Hitec Smart Home
[UPnP] Connecting to IGD with host : 192.168.10.1 , port : 1900
[UPnP] Connected to IGD
[UPnP] Host: 192.168.10.1:1900
[E][WiFiClient.cpp:395] write(): fail on fd 59, errno: 104, "Connection reset by peer"
[UPnP] Timeout adding a port mapping
[UPnP] Internet connection GOOD
[UPnP] isGatewayInfoValid : 192.168.10.1 , port : 1900
[UPnP] Path : /igd.xml , actionPort : 1900
[UPnP] actionPath : /ipc , serviceTypeName : urn:schemas-upnp-org:service:WANIPConnection:1
[UPnP] Gateway info valid
[UPnP] Port : 1900 , actionPort : 1900
[UPnP] isGatewayInfoValid : 192.168.10.1 , port : 1900
[UPnP] Path : /igd.xml , actionPort : 1900
[UPnP] actionPath : /ipc , serviceTypeName : urn:schemas-upnp-org:service:WANIPConnection:1
[UPnP] Gateway info valid
[UPnP] Verify port mapping for rule : Hitec Smart Home
[UPnP] Apply action : GetSpecificPortMappingEntry on port mapping : Hitec Smart Home
[UPnP] Connecting to IGD with host : 192.168.10.1 , port : 1900
[UPnP] Connected to IGD
[UPnP] Host: 192.168.10.1:1900
[E][WiFiClient.cpp:395] write(): fail on fd 57, errno: 104, "Connection reset by peer"
Tried on port 80 , 8080, 1900. Once it was successfull with port 80. But nothing ever since.
from upnp_generic.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from upnp_generic.