Closed Be-Virtual closed 1 year ago
The Autoconf is for the Display https://www.makerfabs.com/sunton-esp32-s3-4-3-inch-ips-with-touch.html Yours is a different one. Probably not just the screen size is different.
Have you defined the touch SDA SCL GPIOS in Tasmota Template? with this settings used in Open Hasp
#define TOUCH_SCL 20
#define TOUCH_SDA 19
Yes, here a copy of the template installed from the autoconf
Touch model seems to be OK: 00:00:00.802 I2C: GT911 found at 0x5d 00:00:01.395 LVG: LVGL initialized 00:00:02.161 DSP: Configured display 'ST7262' I can write to the screen but no touch at all, only error is 00:00:00.120 TFS: File '.drvset003' not found Not sure it is related
Have you defined the touch SDA SCL GPIOS in Tasmota Template? with this settings used in Open Hasp
#define TOUCH_SCL 20 #define TOUCH_SDA 19
To be precise, this is not from openhasp but from arduino definitions
Do you have any idea where the openhasp config for the screens/touch are stored on github. Francis made different files for each of the sunton screens but cannot find where the display/touch is configured
@gemu2015 Tried latest Tasmota version with the sunton 4.3 inch rgb display with the GT911 touch controller. Get this error at startup
00:00:00.000 HDW: ESP32-S3 (PSRAM)
00:00:00.011 UFS: FlashFS mounted with 10284 kB free
00:00:00.017 CFG: Loaded from File, Count 6
00:00:00.018 FRC: Some settings have been reset (2)
00:00:00.020 SPI: Hardware using GPIO12(CLK), GPIO11(MOSI) and GPIO13(MISO)
00:00:00.033 TFS: File 'mcp23x.dat' not found
00:00:00.073 BRY: Berry initialized, RAM used=5354 bytes
00:00:00.086 TFS: File '.drvset003' not found
00:00:00.087 CFG: Energy use defaults as file system not ready or file not found
00:00:00.695 Project sonoff - Tasmota Version 12.5.0.2(lvgl-haspmota)-2_0_9(2023-05-06T14:23:56)
00:00:00.751 I2C: GT911 found at 0x5d
00:00:01.834 TI: GT911 failed
00:00:02.464 RSL: RESULT = {"POWER":"ON"}
00:00:02.465 RSL: POWER = ON
00:00:02.469 LVG: LVGL initialized
00:00:03.235 DSP: Configured display 'ST7262'
00:00:07.079 WIF: Connecting to AP1 Jason_Home_WLAN Channel 9 BSSId 8C:53:C3:85:17:96 in mode 11n as sonoff-E12400-1024...
00:00:09.513 WIF: Connected
00:00:09.760 HTP: Web server active on sonoff-E12400-1024 with IP address 192.168.2.104
14:35:56.346 MQT: Attempting connection...
14:35:56.358 MQT: Connected
14:35:56.360 MQT: tele/sonoff-E12400/LWT = Online (retained)
14:35:56.362 MQT: cmnd/sonoff-E12400/POWER =
14:35:56.366 MQT: tele/sonoff-E12400/INFO1 = {"Info1":{"Module":"SUNTON","Version":"12.5.0.2(lvgl-haspmota)","FallbackTopic":"cmnd/sonoff-E12400_fb/","GroupTopic":"cmnd/sonoffs/"}}
14:35:56.378 MQT: tele/sonoff-E12400/INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"sonoff-E12400-1024","IPAddress":"192.168.2.104","IP6Global":"fd4d:d9a8:7683::f612:faff:fee1:2400","IP6Local":"fe80::f612:faff:fee1:2400"}}
14:35:56.402 MQT: tele/sonoff-E12400/INFO3 = {"Info3":{"RestartReason":"Software reset CPU","BootCount":3}}
14:35:56.415 MQT: stat/sonoff-E12400/RESULT = {"POWER":"ON"}
14:35:56.418 MQT: stat/sonoff-E12400/POWER = ON
So the touch controller can not work. Display works.
i just reflashed with latest dev and got no error, touch working
however self compiled no BERRY no LVGL but don't think that this is the reason
can not find an obvious error in the code.
:TI1,5d,*,*,-1,38
@gemu2015 Weird. Which compile flags do you use in platformio.ini / user_config_override.h ? I dont manage to compile with rules without LVGL
/Users/hans/Git/Tasmota/tasmota/tasmota_xdrv_driver/xdrv_55_touch.ino: In function 'void TS_RotConvert(int16_t*, int16_t*)':
/Users/hans/Git/Tasmota/tasmota/tasmota_xdrv_driver/xdrv_55_touch.ino:512:7: error: 'renderer' was not declared in this scope
if (renderer) renderer->TS_RotConvert(x, y);
^~~~~~~~
/Users/hans/Git/Tasmota/tasmota/tasmota_xdrv_driver/xdrv_55_touch.ino:512:7: note: suggested alternative: 'Renderer'
if (renderer) renderer->TS_RotConvert(x, y);
^~~~~~~~
Renderer
@Jason2866 among others these are the relevant ones i think
Nope, still the same compile error. Anyways it does not work with LVGL
very strange. i created a new setup exactly with the defines above and no compile error ? renderer is declared in xdrv13_display.ino und should be known. probably another strange platform io error
try to insert extern Renderer *renderer; in file xdrv55_touch.ino
@Jason2866 i now compiled with berry and lvgl and touch works as expected
just a remark, there are 2 messages related to GT911
initialize GT911 gives either TI: GT911 or TI: GT911 failed
if seconds message is missing GT911 is not compiled into binary
From the OP the TI: GT911
message is missing. So the driver seems missing.
I always get TI: GT911 failed
in my tries when building with LVGL haspmota.
LVGL and haspmota does work. "Only" the touch driver is not working -> TI: GT911 failed
@gemu2015 will do later a build with a vanilla fresh setup. Txh so far
@Be-Virtual In unofficial build the driver for GT911 was missing. Just added now.
available from the https://tasmota.github.io/install/ or do I have to download a specific bin ?
Yep, latest build is now available from there.
Thanks Jason Now I have the error on touch: 00:00:00.000-271/15 CMD: Using USB CDC 00:00:00.001-271/15 HDW: ESP32-S3 (PSRAM) 00:00:00.052-269/14 UFS: FlashFS mounted with 12572 kB free 00:00:00.071 CFG: Loaded from File, Count 16 00:00:00.077 QPC: Count 1 00:00:00.079 SPI: Hardware using GPIO12(CLK), GPIO11(MOSI) and GPIO13(MISO) 00:00:00.084 TFS: File 'mcp23x.dat' not found 00:00:00.236 BRY: Berry initialized, RAM used=5386 bytes 00:00:00.270 TFS: File '.drvset003' not found 00:00:00.270 CFG: Energy use defaults as file system not ready or file not found 00:00:00.882 Project tasmota - Tasmota Version 12.5.0.2(lvgl-haspmota)-2_0_8(2023-05-06T16:36:13) 00:00:00.995 I2C: GT911 found at 0x5d
00:00:02.649 LVG: LVGL initialized 00:00:03.415 DSP: Configured display 'ST7262' 00:00:04.442 BRY: Successfully loaded 'autoexec.be'
@gemu2015
Could you provide me the bin you compiled and worked to test if it can also work on the Sunton ESP32-8048S050.
Thanks in advance.
PS: For now I have the same working as @Jason2866. all work except touch screen but I know and tested touch with openhasp.
ok, this is my console log, and attached the binary i use, just for testing if the error disappears
00:00:00.001 HDW: ESP32-S3 (PSRAM)
00:00:00.028 UFS: FlashFS mounted with 10288 kB free
00:00:00.042 CFG: Loaded from File, Anzahl 242
00:00:00.047 QPC: Count 1
00:00:00.048 SPI: Hardware using GPIO12(CLK), GPIO11(MOSI) and GPIO13(MISO)
00:00:00.073 I2C: GT911 found at 0x5d
00:00:00.192 TI: GT911
00:00:00.835 DSP: Configured display 'ST7262'
00:00:05.393 Projekt tasmota - sunton Version 12.5.0.2(tasmota)-2_0_6(2023.05.06 17:01:46)
00:00:05.393 UFILESYSTEM OK!
00:00:06.035 WIF: verbinden mit AP1 WLAN-7490 Channel 1 BSSId 50:E6:36:24:8C:EF in Modus 11n als sunton...
00:00:07.935 WIF: verbunden
00:00:08.188 HTP: Web-Server aktiv bei sunton mit IP-Adresse 192.168.188.104
00:00:08.189 RSL: INFO1 = {"Info1":{"Module":"SUNTON","Version":"12.5.0.2(tasmota)","FallbackTopic":"cmnd/sunton_fb/","GroupTopic":"cmnd/tasmotas/"}}
00:00:08.200 RSL: INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"sunton","IPAddress":"192.168.188.104","IP6Global":"fd12:100f:5027:4b8a:f612:faff:fee1:22d4","IP6Local":"fe80::f612:faff:fee1:22d4"}}
00:00:08.221 RSL: INFO3 = {"Info3":{"RestartReason":"Software reset CPU","BootCount":95}}
00:00:08.232 RSL: RESULT = {"POWER":"ON"}
00:00:08.233 RSL: POWER = ON
08:43:51.567 QPC: Reset
I flashed your bin into my Sunton ESP32-80148S050, reconfigured network and restarted.
It seems another version of tasmota without berry and the autoconf for lvgl
Template {"NAME":"SUNTON","GPIO":[1,1,1,1,1,1,1,1,1,1,6720,704,736,672,1,1,1,1,1,640,608,1,0,0,0,0,0,6210,1,1,1,1,1,1,1,1,1,1],"FLAG":0,"BASE":1} Module 0 DisplayDimmer 70
:H,ST7262,800,480,16,RGB,40,41,39,42,2,15,16,4,45,48,47,21,14,8,3,46,9,1,5,6,7,14 :S,2,1,1,0,40,20 :V,0,8,4,8,0,8,4,8,1 :0,00 :1,01 :2,02 :3,03 :TI1,5d,,,-1,38 #
if !tasmota.memory().contains("psram") print("HSP: Error: OpenHASP demo requires PSRAM") return end
import lv_tasmota_log import lv_tasmota_info import lv_wifi_graph
import haspmota haspmota.start()
No error on touch screen but also nothing on the screen. Not even the blue screen with tasmota (showing the screen is working)
Will try with only lvgl code without haspmota to see if screen start up
00:00:00.001 HDW: ESP32-S3 (PSRAM) 00:00:00.014 UFS: FlashFS mounted with 12588 kB free 00:00:00.022 CFG: Loaded from File, Anzahl 39 00:00:00.028 QPC: Count 1 00:00:00.029 SPI: Hardware using GPIO12(CLK), GPIO11(MOSI) and GPIO13(MISO) 00:00:00.041 I2C: GT911 found at 0x5d 00:00:00.160 TI: GT911 00:00:00.789 DSP: Configured display 'ST7262' 00:00:01.365 Projekt tasmota - sunton Version 12.5.0.2(tasmota)-2_0_6(2023.05.07 09:06:00) 00:00:01.365 UFILESYSTEM OK! 00:00:02.035 WIF: verbinden mit AP1 Wifi208 Channel 1 BSSId 68:D7:9A:48:D2:43 in Modus 11n als sonoff-4776... 00:00:03.892 WIF: verbunden 11:56:30.003 HTP: Web-Server aktiv bei sonoff-4776 mit IP-Adresse 192.168.254.135 11:56:30.143 MQT: Verbindungsversuch... 11:56:31.658 MQT: verbunden 11:56:31.660 MQT: tele/sonoff/LWT = Online (beibehalten) 11:56:31.661 MQT: cmnd/sonoff/POWER = 11:56:31.664 MQT: tele/sonoff/INFO1 = {"Info1":{"Module":"SUNTON","Version":"12.5.0.2(tasmota)","FallbackTopic":"cmnd/sunton_fb/","GroupTopic":"cmnd/tasmotas/"}} 11:56:31.675 MQT: tele/sonoff/INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"sonoff-4776","IPAddress":"192.168.254.135","IP6Global":"","IP6Local":"fe80::f612:faff:fee1:d2a8"}} 11:56:31.697 MQT: tele/sonoff/INFO3 = {"Info3":{"RestartReason":"RTC Watch dog reset digital core and rtc module","BootCount":16}} 11:56:31.709 MQT: stat/sonoff/RESULT = {"POWER":"ON"} 11:56:31.709 MQT: stat/sonoff/POWER = ON
Sorry was closed by error (wrong doing) STILL OPEN
ok, this proves that something is wrong with the tasmota provided binary. currently i have no guess what is wrong there
i may compile a version with berry + lvgl and autoconf for you
but we have to find out what goes wrong in @Jason2866s build
I see some diff in our files !
00:00:00.695 Project sonoff - Tasmota Version 12.5.0.2(lvgl-haspmota)-2_0_9(2023-05-06T14:23:56)
bin from gemu2015 on my EPS32-8048S050 00:00:01.365 Projekt tasmota - sunton Version 12.5.0.2(tasmota)-2_0_6(2023.05.07 09:06:00) From new install with latest unofficial build 00:00:02.483 Project tasmota - Sunton Version 12.5.0.2(lvgl-haspmota)-2_0_8(2023-05-06T16:36:13)
@Jason2866 where did your get the 2_0_9 version as I have with latest build only 2_0_8
Thanks gemu2015,
00:00:00.000 HDW: ESP32-S3 (PSRAM) 00:00:00.051 UFS: FlashFS mounted with 12580 kB free 00:00:00.067 CFG: Loaded from File, Anzahl 10 00:00:00.068 FRC: Some settings have been reset (2) 00:00:00.069 SPI: Hardware using GPIO12(CLK), GPIO11(MOSI) and GPIO13(MISO) 00:00:00.214 BRY: Berry initialized, RAM used=4796 bytes 00:00:00.269 I2C: GT911 found at 0x5d 00:00:01.301 TI: GT911 failed 00:00:01.930 DSP: Configured display 'ST7262' 00:00:02.538 Projekt tasmota - Sonoff Version 12.5.0.2(tasmota)-2_0_6(2023.05.07 12:18:05) 00:00:02.539 UFILESYSTEM OK! 00:00:02.544 RSL: RESULT = {"POWER":"ON"} 00:00:02.544 RSL: POWER = ON 00:00:02.548 LVG: LVGL initialized 00:00:03.377 CFG: skipping 'display.ini' because already present in file-system 00:00:03.715 BRY: Successfully loaded 'autoexec.be' 00:00:05.699 WIF: verbinden mit AP1 Wifi208 Channel 1 BSSId 68:D7:9A:48:D2:43 in Modus 11n als sonoff-4776... 00:00:10.575 WIF: verbunden 12:42:47.118 HTP: Web-Server aktiv bei sonoff-4776 mit IP-Adresse 192.168.254.135 12:42:47.667 QPC: Reset
ERROR ON Touch In your first build the touch driver worked, not anymore! Could be linked be to haspmota? when hasp is present touch not working ... (definition different in some hasp definition
You are also still on Version 12.5.0.2(tasmota)-2_0_6 also on the build how did you add hasp and berry? # My build from last unofficial build (asmota32-S3 (QIO Flash/OPI PSRAM)) 00:00:02.483 Project tasmota - Sunton Version 12.5.0.2(lvgl-haspmota)-2_0_8(2023-05-06T16:36:13)
@Be-Virtual I do the the framework builds for Tasmota. Tasmota core 2.0.9 is ahead. There are just minor changes like in official espressif core from 2.0.8. to 2.0.9
@gemu2015 Same error with your firmware
00:00:00.001 HDW: ESP32-S3 (PSRAM)
00:00:00.022 UFS: FlashFS mounted with 10284 kB free
00:00:00.032 CFG: Loaded from File, Anzahl 20
00:00:00.033 FRC: Some settings have been reset (2)
00:00:00.035 SPI: Hardware using GPIO12(CLK), GPIO11(MOSI) and GPIO13(MISO)
00:00:00.103 BRY: Berry initialized, RAM used=4764 bytes
00:00:00.732 Projekt tasmota - Sonoff Version 12.5.0.2(tasmota)-2_0_6(2023.05.07 12:18:05)
00:00:00.733 UFILESYSTEM OK!
00:00:00.793 I2C: GT911 found at 0x5d
00:00:01.861 TI: GT911 failed
00:00:02.491 RSL: RESULT = {"POWER":"ON"}
00:00:02.491 RSL: POWER = ON
00:00:02.495 LVG: LVGL initialized
00:00:03.260 DSP: Configured display 'ST7262'
Ok this latest build was without my undefines ( I exclude nearly everything) So I guess an incompatibility with one of these additional drivers
i guess i found the reason, please try this
i just downloaded my last binary from above and flashed
with this result
00:00:00.001 HDW: ESP32-S3 (PSRAM)
00:00:00.042 UFS: FlashFS mounted with 10288 kB free
00:00:00.059 CFG: Loaded from File, Anzahl 262
00:00:00.060 FRC: Some settings have been reset (3)
00:00:00.061 SPI: Hardware using GPIO12(CLK), GPIO11(MOSI) and GPIO13(MISO)
00:00:00.167 BRY: Berry initialized, RAM used=4729 bytes
00:00:00.209 I2C: GT911 found at 0x5d
00:00:00.328 TI: GT911
00:00:00.971 DSP: Configured display 'ST7262'
00:00:00.983 UFS: SDCard mounted (SPI mode) with 15555040 kB free
00:00:00.986 Projekt tasmota - sunton Version 12.5.0.2(tasmota)-2_0_6(2023.05.07 14:00:51)
00:00:00.996 UFILESYSTEM OK!
00:00:00.022 LVG: LVGL initialized
00:00:02.412 WIF: verbinden mit AP1 WLAN-7490 Channel 1 BSSId 50:E6:36:24:8C:EF in Modus 11n als sunton...
00:00:04.290 WIF: verbunden
00:00:04.544 HTP: Web-Server aktiv bei sunton mit IP-Adresse 192.168.188.104
00:00:04.545 RSL: INFO1 = {"Info1":{"Module":"SUNTON","Version":"12.5.0.2(tasmota)","FallbackTopic":"cmnd/sunton_fb/","GroupTopic":"cmnd/tasmotas/"}}
00:00:04.557 RSL: INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"sunton","IPAddress":"192.168.188.104","IP6Global":"","IP6Local":"fe80::f612:faff:fee1:22d4"}}
00:00:04.569 RSL: INFO3 = {"Info3":{"RestartReason":{"Exception":29,"Reason":"StoreProhibited","EPC":"40377ef5","EXCVADDR":"00000000","CallChain":["40377ef2","4037d55d","40383da1","420a2acb","4207cf3d","42078ee1","4206b259","4208a8f2","42094d74","4201b842"]},"BootCount":104}}
00:00:04.601 RSL: RESULT = {"POWER":"ON"}
00:00:04.602 RSL: POWER = ON
14:19:15.924 QPC: Reset
@gemu2015 Your last uploaded firmware does int the GT911 👍
00:00:00.001 HDW: ESP32-S3 (PSRAM)
00:00:00.048 UFS: FlashFS mounted with 10284 kB free
00:00:00.066 CFG: Loaded from File, Anzahl 16
00:00:00.068 FRC: Some settings have been reset (2)
00:00:00.069 SPI: Hardware using GPIO12(CLK), GPIO11(MOSI) and GPIO13(MISO)
00:00:00.192 BRY: Berry initialized, RAM used=4764 bytes
00:00:00.255 I2C: GT911 found at 0x5d
00:00:00.374 TI: GT911
00:00:00.003 DSP: Configured display 'ST7262'
00:00:01.543 Projekt tasmota - Sonoff Version 12.5.0.2(tasmota)-2_0_6(2023.05.07 14:00:51)
00:00:01.544 UFILESYSTEM OK!
00:00:01.549 RSL: RESULT = {"POWER":"ON"}
00:00:01.549 RSL: POWER = ON
00:00:01.553 LVG: LVGL initialized
ok, reason was double initialization of i2c, will do a pr
@gemu2015 There is still "something" wrong. Compiled a version with the change and still get
00:00:00.001 HDW: ESP32-S3 (PSRAM)
00:00:00.004 UFS: FlashFS mounted with 10284 kB free
00:00:00.007 CFG: Loaded from File, Count 5
00:00:00.008 FRC: Some settings have been reset (2)
00:00:00.010 SPI: Hardware using GPIO12(CLK), GPIO11(MOSI) and GPIO13(MISO)
00:00:00.023 TFS: File 'mcp23x.dat' not found
00:00:00.048 BRY: Berry initialized, RAM used=5354 bytes
00:00:00.056 TFS: File '.drvset003' not found
00:00:00.057 CFG: Energy use defaults as file system not ready or file not found
00:00:00.664 Project sonoff - Tasmota Version 12.5.0.2(lvgl-haspmota)-2_0_9(2023-05-07T14:52:11)
00:00:00.704 I2C: GT911 found at 0x5d
00:00:01.796 TI: GT911 failed
00:00:02.427 RSL: RESULT = {"POWER":"ON"}
strange it solved the issue for me and i get the blue LVGL screen and not touch error
my usual setup did never produce this error, as said i exclude every not needed driver may be there is a clush with another i2c driver
@Jason2866
to test if any other i2c driver is involved, undefine i2c pins in Tasmota GUI and define SDA,SCL pins in display.ini.
so only GT911 will be addressed
:TI1,5d,20,19,-1,38
@gemu2015 disabled all other i2c with i2cdriver
and GT911 does init now.
So just need to find which one of this "I2CDriver":"!7,!8,!9,!10,!58,!59,!77" is it
It is driver No. 8 USE_SHT | xsns_07 | SHT1X
`
temporary solution is to simply disable it with gt911 used.
sht1 devices are completely outdated not really i2c compatible, should be removed.
had to reinstall haspmota manually but get it working with @gemu2015's firmware.
@Jason2866 ,Happy to test the full std version if needed
Discussed in https://github.com/arendst/Tasmota/discussions/18565