-
Notifications
You must be signed in to change notification settings - Fork 238
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
WT32-ETH01 does not work via wired ethernet connection #1079
Comments
@bartbutenaers – The fact that it is disconnecting and reconnecting to xsbug-log suggests that the WT32-ETH01 is rebooting. If it was failing with a JavaScript exception, the exception would appear in the log. That implies the restart is caused by a crash in native code. But that's a lot of speculation. ;) I've definitely seem Ethernet work on the WT32-ETH01 but I don't use one every day. Either @andycarle or I will take a look. |
@phoddie,
Shouldn' I see a stacktrace in my xsbug-log if I power off/on the board while listening to it? Similar to how I saw stacktraces last week, when my Sensor node couldn't read my proximity sensor. BTW is there a way to increase the log level perhaps, while being serial connected? I mean that the MCU sends e.g. trace level logging. |
Correct. The "disconnected" messages mean that the debugger connection was lost. The "connected" messages mean that it was re-established, which happens when a new virtual machine is created -- which is what happens immediately after reboot.
xsbug is a JavaScript debugger. It cannot see crashes in native code (that would require gdb, which is really different adventure). Your Sensor node experience last week was generating JavaScript exceptions, so xsbug was able to see them. |
To make sure the Ethernet support for the WT32-eth01 board is working, I ran the httpget example:
The output is as expected:
If I run a Node-RED flow from the command line using mcconfig, I see the same result as you:
Running an instrumented build (passing -I to mcconfig in place of -d) shows where it is failing:
It is a little late to debug that tonight, but I should be able to track it down tomorrow. The Node-RED MCU Edition runtime overrides the default setup/network module that initializes Wi-Fi. That maybe conflicting with the Ethernet support. |
This should be working now. 🤞 You just need to update your Moddable SDK. In all of our projects, we enable either Wi-Fi or Ethernet, never both. The Node-RED MCU Edition runtime enabled both (even though you didn't configure a Wi-Fi SSID, it still initializes the Wi-Fi stack.... as a workaround for a bug in the ESP-IDF....). Having them both enabled is unexpected, but shouldn't crash. That's now fixed (no changes to the Node-RED MCU runtime). In theory, it is possible now to run with both Ethernet and Wi-Fi connected (I did!). But, that requires some additional set-up code, that's not currently enabled. |
Kids have holidays, so me having 100% me-time during breakfast. SDK updated and done the test. Everything works fine! Thanks a lot!!!!! |
@bartbutenaers – thank you for using your free time to verify the fix. Glad to have this fixed in the Moddable SDK. |
Build environment: Linux
Target device: WT32-ETH01
Description
Some time ago @andycarle has been so kind to add support for the WT32-ETH01 board. And it works fine when I use WIFI.
When I skip the WIFI password and SSID (in the sidebar for Node-RED), then I see in the xsbug-log output that it keeps polling for an ethernet connection:
But when I plug my CAT cable into the WT32-ETH01, it just keeps polling and nothing happens.
Would be nice if you could give me some pointers of things I could try...
If you need extra information from me, please let me know where I can find that info!!
Kind regards,
Bart
The text was updated successfully, but these errors were encountered: