New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with Raspberry Pi 3 (on-board WiFi) #33
Comments
Thanks for reporting @tlangmo - we hadn't yet tested on an RPi 3. Might be that we have to use hostapd like we did on the edison branch. |
@tlangmo I've prepared a branch that uses hostapd basing from the edison branch with a few changes. |
@pcarranzav I've tested it successfully on Rpi3 with your hostapd version. The AP comes up and I can connect to it. I have noticed a few things though: *Unfortunately, systemd (ENV INITSYSTEM on) does not work with resin-wifi-connect. This is a bummer since systemd is quite important. Whenever it is active, I get this error message:
Not sure yet whether this is Rpi3 related or generally a problem with the wifi-connect app |
@tlangmo the systemd thing is a known issue, that has a workaround that was implemented on the master branch but not the rpi3 version. It requires changing this line to:
As for the other issue, there might be a bug in how we save the credentials after a container restart (also fixed in master but not on this branch). I'll clean up and fix as soon as possible. |
@pcarranzav I think there are several issues at play which cause problems with resin-wifi-connect on Rpi3. Here is what I noticed so far in my tests:
|
@tlangmo about the systemd problem, yes, it's because this branch doesn't have this fix: I'll PR fixes for this as soon as I can. |
@tlangmo think could you try the branch rpi3-rebased to see if it fixes those issues? I interactively rebased from master so that the newest fixes are applied, but haven't been able to test it yet. |
@pcarranzav I did more testing with rpi3-rebased and found s.th. interesting. The good news, it works in principle, but not right away. Looking closer and /data/connections.json, you can see that the second entry got appended to the list. While the first network join fails, subsequent will work. Here is a print out the /data/connections.json file and the corresponding node error msgs. I added a non existing entry manually for testing.
|
@pcarranzav Actually, I had instances now where also the second time it did not work with the same |
@tlangmo maybe you've thought of this, but is it possible that the signal is just not so strong? Could you try moving closing to the router and seeing if it works more consistently? |
@pcarranzav I tried a lot already... Signal is not the issue, I tried two different location (home & office), also very close to router. I also cross checked with Rpi2, everything works fine on that device... |
@tlangmo sorry for the delay. I'll be working on debugging this throughout next week - I'll keep you updated! |
@pcarranzav I checked the wifi connection mechanism using the python test scripts of connman (https://sources.debian.net/src/connman/1.21-1.2/test/) itself. That worked without problem meaning on every start up, the wifi is joined with known credentials using dbus messages. I ran the agent in a separate process. So my guess is the problem lies somewhere in one of the node.js abstractions. |
@tlangmo thanks for digging in. I've pushed a version that adds some retries - doesn't solve the core issue but might get you going while I keep on researching. |
@pcarranzav tried it out. The SSID's never populate. Any hints as to where the issue may be? |
+1 did not work for me either. Edit: To be more specific I deployed the app to a resin project as a stand alone app. Then I tried to connect with the resulting un-provisioned access point 'Resin AP'. It wouldn't even connect. |
this is stuck until #42 is fixed |
rpi3-rebased branch works for me after recent changes. THANK YOU SO MUCH!! |
RaspberryPi 3 support is now merged to master |
Everything installs fine and the Access Point "ResinAP" shows up on other devices. But once you try to connect to it, it never succeeds and the capture portal never appears. I tested with Pi2 and USB dongle and it worked fine.
The internet suggests that the on-board wifi chip supports SoftAP, e.g. https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd/
The text was updated successfully, but these errors were encountered: