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

Support for WT32-ETH01 board #399

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Support for WT32-ETH01 board #399

wants to merge 2 commits into from

Conversation

bgcngm
Copy link

@bgcngm bgcngm commented Feb 19, 2024

Successfully tested on WT32-ETH01 board connected to a ROTEX HPSU compact unit.

@swalsh11
Copy link

schematics WT32

Might be helpful to show people how to connect & Flash the WT32

@swalsh11
Copy link

Could pin 33 (RS485) control the relay?
schematics WT32_1

@bgcngm
Copy link
Author

bgcngm commented Feb 21, 2024

I don't think so, but IO2, IO4, IO12, IO14 and IO15 for sure. Note that IO35, IO36 and IO39 can only be used as inputs.

image

@swalsh11
Copy link

Modified the Drawing to use IO2,
schematics WT32_1

@swalsh11
Copy link

I do not appear to be able to get OTA updates to Work, , It could be Worthwhile Removing the OTA lines in PlatformIO.ini Until that is resolved.

 ; Uncomment this line to allow for remote upgrade. If name resolution does not work for you, replace with the IP of ESPAltherma
; upload_port = ESPAltherma.local
; Uncomment this line if you want to define the protocol. Autodetected otherwise.
; upload_protocol = espota

@bgcngm
Copy link
Author

bgcngm commented Feb 22, 2024

Why is that? I have my WT32-ETH01 already in production and OTA updates work flawlessly. I suppose you're referring to the ESPOE32 board?

@Alibloke
Copy link

OTA updates worked for me after I allowed access between vlans, perhaps that could be your issue?

@bgcngm
Copy link
Author

bgcngm commented Feb 22, 2024

Yes, make sure that the computer where you upload the new OTA is in the same VLAN as the device or allow the traffic to flow back to the computer IP address (assuming you have VLANs and you already allow it from the normal VLAN to IoT VLAN).

@swalsh11
Copy link

swalsh11 commented Feb 22, 2024 via email

@swalsh11
Copy link

My 10 year old Laptop with no VLAN uploaded the code with no problem, Thanks for the Tip

@ce3a
Copy link

ce3a commented May 30, 2024

@bgcngm thanks a lot for your pull request, works like a charm with my WT32-ETH01.

However, I am don't receive logs via MQTT. I think we need to adopt MQTTSerial::write(). Maybe something like that;

     M5.Lcd.print((const char*) buffer);
 #endif
 #ifndef DISABLE_LOG_MESSAGES
-    if (WiFi.status() == WL_CONNECTED && _client!=nullptr &&_client->connected()){
-        _client->publish(_topic,buffer,size);
+#ifdef WT32_ETH01
+    if (ETH.linkUp()) {
+#else
+    if (WiFi.status() == WL_CONNECTED) {
+#endif
+        if (_client!=nullptr &&_client->connected()){
+            _client->publish(_topic,buffer,size);
+        }
     }
     Serial.write(buffer,size);
 #endif

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

Successfully merging this pull request may close these issues.

4 participants