WiFi Won't Connect

Discussion in 'Feeding' started by Michael Stanway, May 7, 2021.

  1. Michael Stanway

    Michael Stanway New Member

    Hi. I am trying to set up a new feeder to take away to airshows and feed from there. I have downloaded and installed a clean version of the custom Pi Image and it will run fine using a LAN cable. However, I cannot get it to connect to my WiFi.

    I am familiar with the WPA_Supplicant process as I use it regularly to change the WiFi data on my Pi-Star Ham software and I am using the same files I use for that. Even when the Pi is close to the router it will not show on the list of devices. I have tried two different versions of Pi and different USB WiFi dongles which I know work. I have also tried to connect to home wifi and my MiFi Dongle.

    Other than enter data in the config file and copy the WPA_Supplicant file I have not changed anything on the install.

    Any thoughts?
     
  2. wiedehopf

    wiedehopf Administrator Staff Member

    Common issue is wrong quote characters as in something that isn't " ([​IMG])but rather
    Those quote characters will cause issues: [​IMG][​IMG]

    Other than that ... is the WiFi 5 GHz and the hardware can only do 2.4 GHz?
    That can be an issue.
    Apart from that ... no idea.
    You can also start with a default Rasbpian .... though the custom image shouldn't touch the default networking settings so it should be the same ... (https://github.com/wiedehopf/adsb-wiki/wiki/Raspbian-Lite:-ADS-B-receiver)
     
  3. Michael Stanway

    Michael Stanway New Member

    Thanks for the reply and the suggestions. I think the files have all the correct characters as the file I used was one which I know works on another Pi software. However, I have found another 'glitch'. I logged into the pi with SSH and opened raspi-config. When I tried to look at the Network Options I received a message saying "Could not communicate with wpa_supplicant". Not sure what that is telling me yet, but I'm guessing that if I can't get into it then the program can't either and so won't be able to connect to the WiFi?

    Unfortunately I am not clever enough to do much fault finding as regards the software so not sure how to proceed

    **Update**. I have asked the Pi to scan for networks and it can see mine and others so the WiFi Dongle is working:)
     
    Last edited: May 7, 2021
  4. wiedehopf

    wiedehopf Administrator Staff Member

    Be sure to set wifi country.
    Just because it worked on another pi ... doesn't mean it works with the more current software.

    The file should look like this:
    Code:
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    country=DE
    
    network={
        ssid="ssid"
        psk="password"
    }
    
    
    The appropriate code for your country can be found here: https://www.arubanetworks.com/techd...t User Guide - volumes/Country_Codes_List.htm
     
  5. Michael Stanway

    Michael Stanway New Member

    Thanks. That's what I have except for country=GB

    I may have to try the long version of install by getting the Pi to work with the wifi and then adding the ADSB elements. It's a wet and windy day so something to keep me occupied