@kl3m3n
Nice, thank you
Posts made by pcu
-
GUI-O Designer wish
Hi,
I think that in most cases, we need to copy the intialization array into the embedded code.
It would be nice if in the designer app we could add prefix and suffix to simply copy paste the generated array.Here an example for ESP32 in BLE, prefix is "sendMsg(" and suffix is ");"
sendMsg("|LB UID:home X:50 Y:50 FGC:#607196 SHE:1 SHC:#FFC759 FSZ:5 FFA:"font1" TXT:"HOME SCREEN"\r\n");In my case, I use an array to reach the maximum MTU, I only need a comma at the end:
static const char *initGuioStr[] = { "|CB UID:RPM X:60 Y:27 W:45 BGC:#121212 FGC:#990000 HAW:2 HAH:2 HAR:4 VAL:20 HVAL:6000 BTH:2 TXTC:#000000 XTC:6 YTC:4 STA:225 ENA:-45 SHN:1 NC:#000000 CE:0 SHT:1\r\n", "|LB UID:RPM_label X:50 Y:40 W:100 FGC:#000000 FSZ:4 FFA:\"font5\" TXT:\"RPM\"\r\n", "|SI UID:cyl1 X:10 Y:15 W:5 FGC:#00FF09\r\n" };
Thank you,
Pierre -
Drop-down box
Hi,
I have seen that Drop-down box sends its value after the "@init" which is not practical in some cases.
To avoid this issue, I replaced the drop down by a Text input widget.
Pierre
-
RE: Number of widgets limited to 28
The STM32CubeMX comes with a lot a example:
I think CableReplacement is what you're looking for.
-
RE: Number of widgets limited to 28
Hi,
Yes I have transposed the GUI-O part of my ESP32 project for the Nucleo WB55. Partially ported but enough to test. -
RE: Number of widgets limited to 28
Hi,
The extra time between frame was not effective.
Now, I had to add some widgets, what was worse.I found an indirect solution: because the MTU is set at 512 (as seen by wireshark), I concatenate the message like this method instead of send each widget one by one:
memset(initBuf, 0, sizeof(initBuf)); strcpy(initBuf, "|CB UID:TempMotor X:25 Y:55 W:25 BGC:#121212 FGC:#990000 HAW:2 HAH:2 HAR:4 VAL:20 HVAL:120 BTH:2 TXTC:#000000 XTC:6 YTC:2 STA:225 ENA:-45 SHN:1 NC:#000000 CE:0 SHT:1\r\n"); strcat(initBuf, "|LB UID:T_Mot_label X:25 Y:61 W:100 FGC:#000000 FSZ:2 FFA:\"font5\" TXT:\"Mot \u00B0C\"\r\n"); strcat(initBuf, "|CB UID:TempFuel X:75 Y:55 W:25 BGC:#121212 FGC:#990000 HAW:2 HAH:2 HAR:4 VAL:20 HVAL:60 BTH:2 TXTC:#000000 XTC:6 YTC:2 STA:225 ENA:-45 SHN:1 NC:#000000 CE:0 SHT:1 LT:-1 CHAR:-1\r\n"); sendMsg(initBuf);
I send less messages, but with more datas.
In comparison, with the STM32WB I can get a status if the notification buffer is busy, but it seems it doens't in ESP32...Pierre
-
RE: Number of widgets limited to 28
Hi,
Thank you for your answer.
The result is random. Sometimes it works, sometimes it doesn't.
What I did (and should have done at the beginning) was to sniff the BLE with my Nordic dongle and Wireshark.
And I see that sometimes the last 2 messages are not sent from @init of the ESP32Adding more time to the 'sendMsg' function doesn't change anything. However, adding a 100ms delay in the middle of the init seems to work.
I'll have a look in time...
Pierre
-
Number of widgets limited to 28
Hello,
I'm working with the pro version.
I have an app in communication with a ble ESP32 and 30 widgets, the last two widgets are not displayed.
With gui-o-designer + ethernet it works fine, but the same init code in the ESP32 (BLE mode) doesn't work well. The last two widgets are not visible.
If I removed some of the first widgets, the last two widgets are then displayed.May be there is a limitation with the number of widgets, or a time-out in the loading in the "@init" ?
Pierre