My Stoopid Stuff
  • Home
  • Projects
  • Blog
  • Lec'tronics
  • Links
  • CNC
  • Quick Recipes
  • 3D Printer Tips
  • Voron 2.4

Few Quick Notes on Wifi Troubleshooting on the Raspberry Pi (and Octoprint)

8/5/2022

0 Comments

 
I ran into a problem where one of my Pi's that has not been used in months, would not connect to my WiFi.  I found the issue was in the octopi-wpa-supplicant.txt file (which can be found when installing the microSD from the printer in a PC and browsing the files there.  For some reason I had not added the key_mgmt field (in bold below), but everything else was set correctly.  When I fix that, it worked again.  I know this Pi had worked when it was last used so it's strange that the line was missing, but in any case it's fixed now.

This is the entry from octopi-wpa-supplicant.txt that I updated on the MicroSD ( done from my PC using Notepad++, but notepad works too ):

## WPA/WPA2 secured
network={
  ssid="YOURNETWORKNAME"
  psk="YOURPassword"
  key_mgmt=WPA-PSK
}

Some other commands I found helpful to see what WiFi was doing are below (I used these while I had the Pi connected via wired Ethernet and ssh'ed in using Putty):

ifconfig -a
iwconfig
iwlist wlan0 scan | grep ESSID:


The last one clued me into the problem since I could see my network, but it was not connecting.

While I was ssh'ed into the Pi, I took the opportunity to run these as well (the 2nd one takes several minutes to complete):

sudo apt-get update
sudo apt-get upgrade


Then I rebooted and updated Octopi itself (from the browser, login to Octoprint, click the wrench at the top left, select "Software Update" and then click "Update All").  After that and blowing the dust off this neglected Pi, it's back in working order.

0 Comments



Leave a Reply.

    Picture

    Stoopid Me

    Welcome to my Stoopid corner of teh Internet.  It's mostly gonna be 3D printing stuff, but I also post some recipes, projects, and the occasional rant here as well.  More Stoopid stuff is updated regularly.

    I recently joined the Amazon Associate program, so some of the links on this site are Amazon affiliate links. This means that, at zero cost to you, I will earn an affiliate commission if you click through the link and finalize a purchase.  This will help to support this site, and pay for more Stoopid Stuff.

    Currently, there are no active authorized sellers of my designs.  If you see my stuff (such as my Dummy 13 Weapons) for sale on Amazon, Etsy or AliExpress, the seller is using my designs without permission.

    If you want to help out with my parts and filament budget, you can also "Buy Me A Coffee" using the link below.
    ​​

    Buy Me A Coffee

    Archives

    June 2025
    May 2025
    April 2025
    March 2025
    February 2025
    January 2025
    December 2024
    November 2024
    October 2024
    September 2024
    August 2024
    July 2024
    June 2024
    May 2024
    April 2024
    March 2024
    February 2024
    January 2024
    December 2023
    November 2023
    October 2023
    September 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    April 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    February 2020
    January 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    November 2017
    September 2017
    August 2017
    June 2017
    December 2016
    October 2016
    September 2016
    July 2016
    March 2016
    February 2016
    September 2015
    August 2015
    June 2015
    May 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014
    November 2014
    October 2014
    September 2014
    July 2014
    June 2014
    May 2014
    April 2014
    March 2014
    February 2014
    November 2013
    August 2013
    July 2013
    June 2013
    May 2013
    April 2013
    March 2013
    January 2013
    December 2012
    November 2012
    October 2012
    September 2012
    August 2012

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.