Posts

Showing posts with the label Raspberry Pi

Wifi Configuration for Raspberry Pi 2 + RTL8192SU (DWA-131) with Octoprint 0.18

 I used the Raspberry Pi Imager (https://www.raspberrypi.com/software/) to install the newest version of Octoprint (https://octoprint.org/). The new version of Octoprint recommends Python 3.6, but after the re-image of the SD Card, I encountered an issue with WiFi (again...) This is what I did to resolve it:   Environment: Raspberry Pi 2 Model B Rev 1.1 D-Link System DWA-131 802.11n Wireless N Nano Adapter(rev.A1) [Realtek RTL8192SU] Octoprint version of OctoPi Symptoms: After configuring the WiFi network interface, the interface would not come up by itself. Cause: It looks like even though the card was configured correctly, it was not starting up on it's own Resolution: 1) Modify the  /boot/octopi-wpa-supplicant.txt network={   ssid="SecretNetwork"   psk="SecretPassword" } country=CA # Canada For some reason, the network wasn't coming online by itself even with the correct PSK, however, because of a lack of logging (or, me finding that logg...

Wifi Fix for OctoPi + Raspberry Pi 2 + RTL8192SU (DWA-131)

Problem Description: After setting the network information in /boot/octopi-wpa-supplicant.txt, the wlan0 card was up, but not connected. Environment: Raspberry Pi 2 Model B Rev 1.1 D-Link System DWA-131 802.11n Wireless N Nano Adapter(rev.A1) [Realtek RTL8192SU] Octoprint version of OctoPi Troubleshooting: Since the interface was up for me, it was hard to tell what the problem was other than not being able to see (or manipulate) the interface (wlan0) from ifconfig (no IPV4 address, ifdown fails, ifup fails) 1) Take down the interface with the ip command # ip link set wlan0 down 2) Observe the messages from the following command # wpa_supplicant -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -c /etc/wpa_supplicant/wpa_supplicant.conf In my case, I was getting an authentication error. Solution: This is what worked for me, AMMV. There probably is a better way as this seems like somewhat of a hackjob, but I'm betting on Cunningham's law to ...