Skip to content
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

No AP #16

Open
Ernisius opened this issue Sep 6, 2018 · 6 comments
Open

No AP #16

Ernisius opened this issue Sep 6, 2018 · 6 comments

Comments

@Ernisius
Copy link

Ernisius commented Sep 6, 2018

I don't see the ConnecttoConnect AP. Is there anything I can do to test it is running

@schollz
Copy link
Owner

schollz commented Oct 11, 2018

Can you plug in a monitor and see what happens?

@asiudoisjdfo
Copy link

asiudoisjdfo commented Feb 11, 2019

Same thing here. Doesnt show up. Boots up fine, startup.py is running as well as wpa_supplicant, dhcpd and dnsmasq. No hostapd. Am trying to troubleshoot :)

@gulliverrr
Copy link

Are you on Jessie or Stretch Raspbian? I believe raspberry-pi-turnkey is not supported in Jessie (unfortunately). @schollz is there any plan to backport it for Jessie? If not could you add some basic guidelines to look into backporting it ourselves? I promise to document and report back if I make it.
My problem is that Stretch seems too heavy for Pi Zero (Desktop needed too) and I'm thinking into going back to Jessie. Any guidance would be appreciated!

@schollz
Copy link
Owner

schollz commented Feb 16, 2019

@gulliverrr No plans to backport, unfortunately. I will happily take a PR though

@gulliverrr
Copy link

There wasn't really much of a backport as installation is identical (didn't need the optional steps so I skipped those). There must be something different for wpa_supplicant in Jessie as behaviour around line 109:

    result = subprocess.check_output(['wpa_supplicant',
                                      "-Dnl80211",
                                      "-iwlan0",
                                      "-c/" + testconf,
                                      "-f", wpalog,
                                      "-B",
                                      "-P", wpapid])

is different. So by sucrifising the unnecessary reboot if the credentials are wrong, I managed to have it running with these modifications from line 117 downwards:

    checkwpa = True
    valid_psk = True
    checkwpa = False

#    while checkwpa:
#        with open(wpalog, 'r') as f:
#            content = f.read()
#            if success in content:
#                valid_psk = True
#                checkwpa = False
#            elif fail in content:
#                valid_psk = False
#                checkwpa = False
#            else:
#                continue

This is not PR-worthy. Just a dirty hack I leave here for anyone on Jessie. My Pi Zero seems to struggle (with Desktop) on Stretch so I revert back to good old Jessie.

@Grandpa-G
Copy link

I am having similar problem (I think). Everything boots fine, all services running. status.json says hostapd status but my wifi on pc can't find ap. BTW: I am on buster on rpi4. The wlan0 ip is 192.168.4.1 as it should be.

What should I look for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants