-
Notifications
You must be signed in to change notification settings - Fork 13
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
Time to off TTGO T-Display #192
Comments
I was able to reproduce it. Looks like it's affecting all CO2 Gadget flavours. I will look into it soon. Thank you for reporting. |
I just uploaded a new beta fixing this issue. You can install Beta v.0.12.010 from web installer at: https://emariete.com/en/co2-meter-gadget/#CO2_Gadget_Version_Beta-Desarrollo Please, report if it's fixed to close the issue. Thank you. |
Hi , sorry for the late replay I just seen this. |
Hi Ola. Please, let me do some more tests with this. I just tested it again (flashed a TTGO T-Display Sandwich with firmware Beta v.0.12.010 as yours) and it's working fine connected to USB. Tested with a "Time to of" of 15, 30 and 60 seconds. @Coscolin, please 🙏, can you test this also to see if it's happening on your side? Beta v.0.12.010 is still available at https://emariete.com/en/co2-meter-gadget/#CO2_Gadget_Version_Beta-Desarrollo |
I can send a video o telegram maybe I'm doing something wrong, but I've never seen the screen off with latest firmware on mine. |
Let's try first with a new beta I will upload later today. So we have a clean code base. If it's not very complicated for you to configure it again, please install it with the option to clean the memory on install. I will drop here a message when the new beta is available. |
A new beta (Beta v0.12.016) has been uploaded to: It includes additional debug information about changes on display brightness on the serial log. You will see lines like:
Maybe this can give us a clue to what is happening. Just make sure to have a time configure to turn off the display: And select to turn off the display also on external power: You can set it on the menu or on the preferences.html web page. |
No turning off on battery or usb power. And nothing coming on serial, not even the co2,temp,humidity like usual. |
I've set it on 10 sec |
Nothing at all? Not even something like this at ESP32 start (for example pressing the reset button on the board)?
This output is done by the ESP32 boot strapping sequence. Even before the CO2 Gadget firmware is loaded. If you don't see that output a very weird thing is happening. I would have said a hardware error, possibly a USB cable without data connections (only power) but if you have installed the firmware with that same cable that cannot be... I would suggest trying with another serial terminal (for example the one in the Arduino IDE). |
Yes If I press reset serial information is working: rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) -->[STUP] CO2 Gadget Version: 0.12.016 Flavour: TTGO T-Display -->[IMPR] Init Improv -->[MENU] Use keys + - * / -->[STUP] Ready. I've installed 0.12.019 , I'll test some more tomorrow but for screen I can't see it turning off. |
Yeah it's definitely something changed with this turning off function. |
I will definitely be interesting if you can try different versions to know in with version it stopped working for you. v0.12.019 has some additional debug information to try to give a clue on what can be happening. You should see come entries like:
Can you please look at these and paste here some of these blocks (with some lines before and after go give context)? I'm really clueless at what can be happening here. 🤔 Thank you. |
So in 0.12 the display is turning off just fine. So from [v0.12.001] onward something broke. Also I don't get those messages in serial only by pressing connect, I have to force them to be displayed by restarting the device. |
Please, confirm, in version 0.12.000 it works fine and in version 0.12.001 does not?
While the menu is active it should not turn off the display. I guess for you even if you exit the menu, it doesn't turn off anymore?
May be its dependant on the exact OS and drivers you are using. I already saw some differences with different OS/boards/drivers combinations. If it's working after restarting the board it's fine, it's a minor fault. Anyway, I'll try to find out the reason. Please, don't forget to put the logs. #192 (comment) |
Yes
Yes but after a while it gets out of the menu by itself anyway if i don't press any button.
Yes, exactly.
I use Linux Mate with built-in drivers
Ok later when I get to the laptop. |
also I have to upload only the firmware.bin? |
I think the last change in partitions was between v9 and v10, so if you don't install v9 or older you don't need to write the partitions file (maybe I'm wrong and was between v10 and v11). Probably you also have to flash spiffs.bin as it contains the web interface as there may be changes or new options or fixes (probably you only have to flash it when upgrading, as from v12.0.000 to v12.0.001 and not when downgrading from v12.0.001 to v12.0.000). |
I just uploaded a new beta reverting the change done between v0.12.000 and v0.12.001 You can install Beta v0.12.021 from the web installer at: https://emariete.com/en/co2-meter-gadget/#CO2_Gadget_Version_Beta-Desarrollo Let's see if it fixes the issue. Thank you. |
Yes I confirm that with v0.12.021 the screen is turning off as expected. ->[SENS] CO2: 621 CO2temp: 29.20 CO2humi: 29.82 H: 0.00 T: 0.00 -->[TFT ] DisplayBrightness (user setting) value at: 100 -->[TFT ] DisplayBrightness (user setting) value at: 100 -->[TFT ] DisplayBrightness (user setting) value at: 100 CO2 Gadget Information CO2 Gadget -->[TFT ] DisplayBrightness (user setting) value at: 100 -->[TFT ] DisplayBrightness (user setting) value at: 100 |
Hi Ola. I'm glad it's fixed now. And yes, I also found the reason why serial log was not working. In fact, the serial console log also stopped working for everybody after entering and exiting the menu: CO2 Gadget stops most logging output while the menu is active (to avoid interrupting it and filling the serial terminal with information while you are inside the menu. A bug caused this "in-menu" detection to malfunction). Surprisingly nobody reported it. |
CO2 Gadget version and flavour
-->[STUP] CO2 Gadget Version: 0.12.006-beta Flavour: TTGO T-Display
-->[STUP] Version compiled: Feb 29 2024
The text was updated successfully, but these errors were encountered: