-
-
Notifications
You must be signed in to change notification settings - Fork 368
Connection Refused #165
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
Comments
Nope, it seems global...
|
Hello, |
To fix (requires a recompile): Replace certificate identifier in main.cpp line 253: from Compile and it works again... |
In the future, this will have to be automated. @lmarzen : need an update and feature :) |
That can only be done at build time. You'd still be required to recompile. Of course, feel free to contribute to this open source project ;) |
The certificate validation feature is on by default for enhanced security, but yes, it does require occasional manual updates for now. If you wish to not have this trouble in the future, you can disable it in config.h, uncomment esp32-weather-epd/platformio/include/config.h Lines 149 to 151 in 0dc305e
I have pushed an updated certificate to the git repository. cert.h |
i have now downloaded and reconfigured the whole project and now it works again, thank you very much! |
I chose to |
Fix -1: Connection Refused, updated certificate lmarzen#165
Hello, |
@minigl Can you please copy and paste the terminal monitor output you get after you press the reset button? (the terminal output can be seen by pressing the terminal output button near the upload button in platformio/vscode). This should give us insight into how long the esp32 is deciding to sleep for. Also if you could share your sleep duration, and bed/wake time settings from config.cpp, that would be helpful in assisting troubleshooting your issue. |
Yes, of course: --- Terminal on COM4 | 115200 8-N-1 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) const int SLEEP_DURATION = 30; const int BED_TIME = 00; |
There should be a little bit more to the terminal output. after '_PowerOn: 186997' |
No, unfortunately not, that's all. |
Oh, I guess that's the issue then. And the display finishes updating!? The log you shared cuts off as the display is powered on. Have you double checked that the display and driver board selected in config.h match your hardware? |
Since I have a three-color display it is this setting: #define DISP_3C_B #define DRIVER_WAVESHARE // 3 COLOR E-INK ACCENT COLOR |
Another message appeared: ets Jul 29 2019 12:21:46 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) |
That's the start of the esp32 beginning execution again. It's odd that it stops after Power On of the display. I haven't seen this before. |
At some point in the history of this project, I changed the default pinout. Maybe it's possible your display is wired using a different pins than what are assigned in config.cpp. Double check that your display wiring to your esp32 matches the pin definitions in config.cpp. |
The display wiring matches the confi.cpp. |
I reloaded everything and made only the necessary adjustments. Here's the output on the monitor: --- Terminal on COM4 | 115200 8-N-1 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) |
That looks promising. Looks like in should refresh in 30 minutes :). See if that works. If it does work let me know if you are able to determine what setting causes this bug. |
Unfortunately, there's no update after 30 minutes. What's going wrong here? I don't understand. When I first built the weather station, everything worked right away. |
I missed this... Busy Timeout! did your display update this time after pressing the reset button and waiting 20 seconds? The log seems to suggest the display isn't configured correctly and timed out without updating. |
Yes, the display has been updated correctly. All data is displayed properly. |
If you change SLEEP_DURATION to 2 minutes. It may speed up our troubleshooting. We want to know whether the esp32 is waking up at all after the sleep period ends. To do this you need to have the serial monitor open, press the reset button, then wait 2ish minutes and see if it prints anything at all to the monitor around 2 minutes. |
I get this message: Reading from BME280...Success |
You got that message after 2 minutes? So the display updated then? Looks like after that it is trying to sleep for 6 hours, maybe it is encountering it's bedtime (or maybe a bug). The timezone is used to help determine the bedtime. Im not sure what timezone your in, but let's try disabling the bedtime mechanic all together and see if that fixes it. set BED_TIME and WAKE_TIME to 0. |
BED_TIME and WAKE_TIME are set to 0. Still no weather data updates. If I press the reset button for about 5-10 seconds, the display updates correctly to the current weather conditions. Then it stays dead. |
First of all, thank you very much for your patience. Since I'm writing from Germany, I'd like to ask if we can continue tomorrow? It's 0:37 CET here right now. |
Hello Imarzen, |
If you read this at some point, do you have a link where I can download the older project? I'd like to know if I can restore it to its original state. |
You can either use git to checkout an older commit using the commit hash, or you can view the commits, select browse files and then I think you can download a .zip that way. |
I found your project from April 22, 2024, on my hard drive. It again links directly to the error: I'm starting to suspect a hardware defect. I'll have to order a new FireBeetle and get back to you. |
Probably got that due to an expired certificate. Work around this by disabling cert verification or updating the cert...
|
This is exactly what my config.h looks like. Still no proper functionality. |
Is there any way you can test the current project yourself with a new Firebeetle? Someone in the forum posted that they downloaded and recompiled the project. Everything worked afterward. |
I have tested it on my hardware and it's working (firebeetle esp32-e and despi-c02). If you share your configuration files config.h and config.cpp (BE SURE TO REDACT SENSITIVE INFORMATION), I will try running them on my hardware. |
Can I send the two files by email? |
That's fine |
Hello,
here is the configs...
regards Michael
Gesendet: Donnerstag, 20. März 2025 um 19:07
Von: "Luke Marzen" ***@***.***>
An: lmarzen/esp32-weather-epd ***@***.***>
CC: minigl ***@***.***>,Mention ***@***.***>
Betreff: Re: [lmarzen/esp32-weather-epd] Connection Refused (Issue #165)
That's fine
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
lmarzen left a comment (lmarzen/esp32-weather-epd#165)
That's fine
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I have sent on email. |
You can't send attachments by responding to the github issue email chain. You can find my email on the website under my profile. |
I have sent on email. |
I've sent both files again via email. Just to be safe ;) |
My unit has been failing for several hours this morning with
Is this a broader issue that others are seeing, or is it something specific to my network?
The text was updated successfully, but these errors were encountered: