Issue with QtQuickVCP on Windows over WiFi

118 views
Skip to first unread message

Paulo Sherring

unread,
Jul 13, 2019, 6:00:36 PM7/13/19
to Machinekit
Hi, everyone!
I am running machinekit on a beaglebone. Currently, I have no issue connecting and operating my machine over OSX, android and Linux (many thanks for the beautifully developed software, everyone!).
My setup currently includes a Wireless router, used to expose beaglebone's ethernet interface to wifi.
That said, I am having an issue running machinekit client  for Windows over wifi only - it runs perfectly fine if I connect windows PC over ethernet cable.

It took me a while for being able to build QtQuickVCP, however, I finally managed to do it.
I've compiled them using MSVC2015, the only one I managed to get all the pieces, as protobuf wouldn't compile for x64 targets (at least I couldn't find a way).
While running machinekit client on debug mode, I found the following on application output:

[ SD ] trying to open network session

[ SD ] number of configs: 0

[ SD ] trying to open network session

[ SD ] number of configs: 0


I could trace it servicediscovery.cpp:


L1173 void ServiceDiscovery::openNetworkSession()

I tried different Qt versions, as it could be Qt incompatibility, but, it was not, at least with 5.9 and 5.12. I will try to poke around, however, I am afraid that my lack of expertise on this particular setup will pose a major issue.
Any input will be greatly appreciated!

Best regards.
Paulo Sherring.


Paulo Sherring

unread,
Jul 15, 2019, 11:43:27 AM7/15/19
to Machinekit
Update on the issue:
it is related to an issue with the qt framework, in which the QNetworkConfigurationManager is unable to correctly list Wifi adapters, as reported here: https://bugreports.qt.io/browse/QTBUG-66461

I found out that Qt 5.10.0 uses the a possibly unstable component that allowed the manager to show return wireless adapters as well, so, compiling QtQuickVCP against Qt5.10.0 resulted in a usable machinekit client build.
Qt5.10.0, in turns, has a header library that is likely to break builds on windows targets (qrandom.h). Undefing min and max resolves this issue, as reported here: https://bugreports.qt.io/browse/QTBUG-65414

If any further developed comes from this, I will update it here.

Best regards.

Alex Gurr

unread,
Feb 5, 2020, 8:10:06 PM2/5/20
to Machinekit
Any updates on this? I'm running on windows and am showing a "No network connection found..." error. Works on everything else! I can connect with my phone, but the interface gets a little wonky and it's pretty difficult to troubleshoot. Can't connect with unicast either.

Paulo Sherring

unread,
Feb 6, 2020, 4:12:59 AM2/6/20
to Alex Gurr, Machinekit
Hey, Alex. I found that it was a Qt related issue. I moved recently and can't help you with what version of Qt I used to solve this, but, the issue was related to a bug Qt's wifi driver, which started after some Qt release (can't tell you which, unfortunately). If you try wired interfaces, you will find out that it works.
But, what I did was to compile QtQuickVCP against an older, unbugged version of Qt framework and got a usable version of Machinekit Clinet.
FYI, it would probably run just fine on OSX and Linux clients.

Best regards,
Paulo Sherring.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to a topic in the Google Groups "Machinekit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/machinekit/gxa6LYBThk4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to machinekit+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/ce754387-2e75-479d-bbed-4a7c2954af9f%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages