However, I’m getting the following D-Bus error when Wifi Connect tries to start an access point:
Can anyone advise on why that might be?
wifi-connect [network_manager::dbus_api:ERROR] org.freedesktop.NetworkManager::AddAndActivateConnection method call failed on /org/freedesktop/NetworkManager
wifi-connect Error: Creating the captive portal failed
wifi-connect caused by: D-Bus failure: org.freedesktop.NetworkManager::AddAndActivateConnection method call failed on /org/freedesktop/NetworkManager
wifi-connect caused by: "the device does not support Access Point mode"
Not ideal, but, can you test with a different WiFi dongle by chance Keenan? What I want to determine is, does the source of the problem exist in DBUS / WiFi-Connect, or, is the particular WiFi adapter the cause here. Thanks!
I guess the answer is extremely simple and horrifying at the same time: Version 2 vs. Version 1
TL;DR - there are different versions of this card. v1 is with Atheros, v2 with RealTek Chipset. v2 is basically not useable, I guess maybe you got this one? - maybe something to add to the Wiki page?
Ah man that’s really lame. Yeah that definitely deserves a note on the Github Readme here which doesn’t really make that plain.
Are there really no workarounds to get that chipset to work in AP mode? That chipset theoretically supports AP mode according to the docs, but I guess doesn’t play nice with Network Manager?
I had some problems with plain Raspbian back in the day with a similar issue and there was some workaround, but that was basically hacking together kernel modules. It worked in the end, but was unreliable. Trying to do something in balenaOS would probably not something you could do for production usage, if at all. You would need to build your own versions yourself - to be honest - it is not worth the hassle. I am telling you that as (see above) already burned child, in the end I changed to Atheros in my project and was very happy with that.
Ah darn. Is there a specific model you’ve been able to buy that consistently works with Wifi Connect? There was already a small list on the Wifi Connect supported docs and now I’m not sure what to actually buy to use. Thanks!
I have not yet bought anything in the last 4+ years, so no.
But in your case, I would just look for some USB Wifi Sticks with Atheros AR9271 in them and that should do the trick (I think Ebay and other sources should have them :))
Just catching up on the thread, thanks @nmaas87 ! I didn’t realize there were two versions of the WN722N, so, yes we will need to update the docs to make note of the v1 versus the v2. I wonder if there was no such thing as a v2 when we tested and documented it!
Haha yeah I would love to identify a wifi dongle that works well with Wifi connect as an access point that you can reliably buy in the US from a vendor that is not EBay haha. Any suggestions would be great
I am confused by this message. The Wifi-Connect page states the RTL8188CUS does not work and similar chipsets are not expected to work.
The recommended TL-WM725N utilizes both the RTL8188CUS and RTL8188EUS depending on the version. The ones I just purchased from Amazon are running RTL8188EUS. I can see and connect to Wifi networks, but WiFI-Connect fails to initialize an AP and the captive portal.
However, when researching why I couldn’t get WiFi-Connect to work with my TL-WN725N, I see it is a recommended adapter on the Balena page. I actually picked it after looking through the elinux list.
If you have a link you could send us where there is an official statement that they should work I would like to have this removed so that no ones get confused about this. Thank you!
I thought I was losing my mind for a while, but I think the list I used was updated shortly after I posted.
If you look at the commit history for the wifi-dongles.md in the docs it was up dated on Oct 19th. Before that I think it looked like this (wifi-dongles: update list · balena-io/docs@299c525 · GitHub) which clearly lists the TL-WN725N. I am not great with github commit history so I could be understanding the history here.
There also was a link somewhere to the Elinux Wifi Adapater page which, in the footnotes, does list the TL-WN725N as working with AP mode. That was probably a bad reach on my part to bridge the two docs and assume it would function.
As it stands now, the docs are difference than two months ago and things seem clearer than before!
Thanks so much for reporting this back.
Yeah looks like someone cleaned up the sections, which is really good, because we don’t want false informations. It also looks like the Amazon for the TP-Link went to a site which listed an older TP-Link stick, which was now somewhat replaced by the TL-WN725N (which will not worked) - and I guess this was one of the reasons that this was cleaned up (“- Remove discontinued dongles” is listed as one of the reasons).
Sorry that you had a bad experience and I hope you can find a working one now for your project.
Cheers!