JVital2013 / RoadApplePi

An elegent "Black Box" solution that can be retrofitted into any car with an OBD(II) port for minimal cost.
GNU General Public License v3.0
240 stars 67 forks source link

Access Point mode not working #5

Open cdaugherty82 opened 5 years ago

cdaugherty82 commented 5 years ago

I've tried this on a Pi 3, Pi Zero W, and a Pi 2 with USB Wifi adapter and none of them work in Access Point mode. I cannot discover the device from my phone or laptop once I've enabled it. I also tried reimaging the SD card with Raspbian Stretch Lite a few different times and running the script all from scratch (once on each of my Pi's)

benberrydhs commented 5 years ago

Same here

de-mon commented 5 years ago

having the same issue

ardell commented 5 years ago

There seems to be a bug in the web interface that causes the ssid and password to not be saved to hostapd-rap.conf.

  1. In the directory where you cloned RoadApplePi from Github, there's a hostapd-rap.conf file. Edit that (e.g. vi hostapd-rap.conf). Update the ssid and wpa_passphrase lines to whatever you'd like your access point config to be, then save the file.

  2. Copyhostapd-rap.conf to the hostapd config directory: sudo cp hostapd-rap.conf /etc/hostapd

  3. Test the config to make sure there aren't any errors: sudo /usr/sbin/hostapd /etc/hostapd/hostapd-rap.conf. Check on another device to make sure your access point network shows up, then hit ctrl+c to stop the command.

  4. Restart hostapd. NOTE: the hostapd service is masked, so we have to unmask it before we can enable/start it.

sudo systemctl stop hostapd
sudo systemctl unmask hostapd
sudo systemctl enable hostapd
sudo systemctl start hostapd
de-mon commented 5 years ago

Just tried it on a fresh install and it worked perfectly! Thanks so much for your help!

f321x commented 4 years ago

Thank you, had the same issue.

takis741 commented 2 years ago

@ardell I followed all your steps got to where I see the AP, but it dose not show up all the time. the times it did show up I followed the rest of the steps

sudo systemctl stop hostapd sudo systemctl unmask hostapd sudo systemctl enable hostapd sudo systemctl start hostapd

The problem is once I get to "sudo systemctl start hostapd" I am greeted with an error. Every single time I do it I get the same error. I did the process of reinstalling the operating system (tried older and newer versions of Raspbian Buster), installing the github file, and following your steps.I did that over 5 times, still ended up with the same result. I attached a picture of the error bellow hope anyone can assist me.

error