@kl3m3n Hi!
Thanks, that makes sense.
Regarding Ethernet connection, does it follow the steps outlined in Fig.7 Direct device pairing procedure of the manual?. Is that how it connects to the designer tool too?.
Regards,
Denes
@kl3m3n Hi!
Thanks, that makes sense.
Regarding Ethernet connection, does it follow the steps outlined in Fig.7 Direct device pairing procedure of the manual?. Is that how it connects to the designer tool too?.
Regards,
Denes
@kl3m3n Hi!
It occurred to me last night, can you have ALP 3 and 4 instead of LALP 1 and 2?. Simpler?.
Regards,
Denes
@kl3m3n Hi!
This is my first time playing with mosquitto so I started it with a simple one listener, no security, log everything setup, so mosquitto.conf contains:
allow_anonymous true
connection_messages true
listener 61000
log_dest file C:/Program Files/mosquitto/log.txt
log_type all
per_listener_settings false
socket_domain ipv4
Since I had already configured gui-o to connect to the gui-o designer over Ethernet on port 61000 I tried to connect to mosquitto using the same settings and that's when the error pops up:
1676564413: New connection from 10.0.0.11:42662 on port 61000.
1676564413: Client <unknown> disconnected due to malformed packet.
Even after going over the manual several times I am still not sure why it happens, there is no more detail in the log file.
What is the protocol detail for an Ethernet connection?.
Then I tried with the Standalone IoT aka Add IoT (Create device).
After entering the same mosquitto server & port it connects and creates both UUID topics, even without having SSL (?), with or without specifying a user and/or client id.
So I should be able to simulate an IoT device just by having a mosquitto client as a master pub, as in Fig.8 in the manual.
More to come.
Regards,
Denes
@DenesL Hi!
The error is with WiFi.
With Standalone IoT, it does connect and adding a device creates the 2 UUIDs described in the manual (with or without user and/or client id).
Regards,
Denes
@kl3m3n Hi!
It works like a charm!
Thanks,
Denes
@kl3m3n Hi!
I asked my wife to try the calendar (she has smaller fingers) but same thing happens to her, the widget keeps picking the date before the one she taps on.
Regards,
Denes
@kl3m3n Hi!
I noticed gui-o version 1.0.41 is out, does it contain the fixes?
Regards,
Denes
Hi!
I have setup a mosquitto 2.0.15 broker on Win11 and pub/sub from other PCs works fine but when I try to connect with gui-o I get:
1676564413: New connection from 10.0.0.11:42662 on port 61000.
1676564413: Client <unknown> disconnected due to malformed packet.
Any hints appreciated.
Thanks,
Denes
@kl3m3n Hi!
It sounds like a good solution but when I tried to test it I got:
Invalid component parameter LALP (lb3)
running gui-o 1.0.40
Regards,
Denes
@kl3m3n Hi!
Nope.
The problem is that ALP 1 aligns the text to the left of the center point i.e. the text ends at the center point, so the texts only seem to left align when they all have equal length (using monospaced fonts).
You would have to do a lot of trial an error positioning for each widget to get all texts to appear to line up on the left while ending at a different center point. And then reposition the background boxes too. Same issue with any other ALP value.
I hope I am being clear. I believe things look better when aligned, either on the left edge or the right one (same issue, just on the other side of the center point).
Regards,
Denes
@kl3m3n Hi!
It only works when the label texts have the same length, like in your example.
Try it with different text lengths.
Regards,
Denes
@kl3m3n Hi!
LB BGC works now!.
Now let me paint a scenario. I want all my labels to have the same BGC (so same width) and have their texts start from the left side.
How can you achieve this when their texts have varying lengths?.
Neither ALP:1 nor any other ALP value does it.
I tried sending TI ALP with the "Send custom command" from the designer but it does not seem to work, other commands such as changing TXT do work.
And please update the designer to include the ALP in TI and NI.
Regards,
Denes
@kl3m3n Hi!
Sure, no rush. Thanks for replying.
Regards,
Denes
@kl3m3n Hi!
It happens at any size, I just made it larger to see if that would make it go away.
Regards,
Denes
@kl3m3n Hi!
Same issue using a Huawei P30 lite running Android 10 EMUI 10 or an old Moto G with Android 5.1, but I think the problem is that it is selecting the previous day always, so to get a date on the far right of the screen I have to tap the next day on the far left, and if I tap on the first day of a month it picks the last day of the previous month e.g. Feb.1 picks Jan.31
Regards,
Denes
Hi!
Continuing with the tests (on Poco F3 phone), trying to understand widget positioning & alignment.
Mandatory position parameters X and Y do not specify the top left corner of the widget but its centre point, e.g. ti0 in the code below ( X:60 Y:20 W:60 ), the top left corner would be at 60-60/2=30 (x), and 20-h/2 (y), where h depends on font size, font family, and other factors.
Text in text input widgets is always centre aligned (no parameter to change it), except when it doesn't fit the width and then it behaves as right aligned, see pic.
Label text can be aligned (ALP parameter) but it is relative to the widget's centre (cp) : 0 center, 1 to the right of cp, 2 to the left of cp (as Label1 in pic). By the way, label BGC does not change the color.
A few questions arise:
Code used:
"|LB UID:lb0 X:15 Y:20 BGC:#FF99FF FGC:#6DE6C5 TXT:\"Label1\" ALP:2\r\n"
"|TI UID:ti0 X:60 Y:20 W:60 BGC:#FF99FF FGC:#6DEFC5 TXT:\"C30000\"\r\n"
"|TI UID:ti1 X:60 Y:25 W:60 BGC:#FFFFFF TXT:\"Intentionally very long text\"\r\n"
"|BSR UID:bsr0 X:20 Y:10 H:5\r\n"
"|GRID UID:grid0 X:0 Y:0 XSTP:10 YSTP:5\r\n"
screenshot <- click on this link doesn't work, copy & paste does (?)
Also tested on 2 other phones with Android 10 and 5.1
LB BCG does not change the color.
Regards,
Denes
@kl3m3n
Hi!
It must be my phone, it is a Xiaomi Poco F3 with MIUI.
I was unable to find a way to display the taps as you did.
The calendar is just the default but larger
"|CA UID:ca0 X:50 Y:50 W:100 H:50\r\n"
Tomorrow I will try with another phone and report back, I think that one is standard Android, just a bit older.
Regards,
Denes
Hi
While testing the calendar widget I noticed that it kept selecting the day before the date I was tapping on and that it was almost impossible to select a Sunday date (far right).
It seems that the tap detection point is off to the right of the day number, as if it was between two days
e.g. in Feb 2023, if I tap on 8 it will pick 7, I have to tap between 8 and 9 to get 8, and I can't get 5 or 12 or any Sunday to work.
Maybe it is my phone but the same happens even if I make it larger, W 100%.
Regards,
Denes
@kl3m3n
Thanks for the response.
No mobile data or Bluetooth here just WiFi on the same network.
I changed the firewall rule to allow the specific program (guiodesigner.exe) using domain & private profiles only and when I retried the connection I got a firewall pop-up asking if I wanted to allow it, so after the obvious reply it worked.
Regards,
Denes
Hi
gui-o designer installed on Win11home.
Configured TCP/IP connection with the IP address of the PC and port 61000. Server started.
gui-o app installed on the phone.
Configured new ethernet connection to the IP and port above.
Connection device fails with:
Ethernet connection error. (Connection timed out).
Tried adding firewall inbound rule to allow connection.
Same results.
Not sure how to diagnose/proceed.
Thanks,
Denes