Page 1 of 1

Raspberry Pi Zero W (OctoPi OctoPrint)

Posted: Thu Jul 05, 2018 10:21 pm
by holytoledo
Hi, my only issue boils down to the pi not connecting to my network.

I flash the Octopi image. Modify the network configuration with Notepad++ and then hook it up.

Looking through my router's logs tells me this.

Jul 5 10:46:41 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 10:46:41 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 11:10:50 miniupnpd[588]: HTTP Connection from 192.168.1.29 closed unexpectedly
Jul 5 11:10:50 miniupnpd[588]: HTTP Connection from 192.168.1.29 closed unexpectedly
Jul 5 11:16:48 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 11:16:48 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 11:46:58 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 11:46:58 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 12:17:08 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 12:17:08 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 12:47:18 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 12:47:18 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 13:17:28 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 13:17:28 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 13:47:38 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 13:47:38 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 14:17:48 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly
Jul 5 14:17:48 miniupnpd[588]: HTTP Connection from 192.168.1.99 closed unexpectedly

It starts as soon as the pi is connected and stops after it is disconnected.

The pi does not want to make a connection to my router. Any help would be greatly appreciated.

I know a pi zero w is not recommended if you want a webcam, but I do not need one. Just want basic interfacing with my printer. Any help is greatly appreciated.

I have been unable to get it to work. Am even thinking of just doing a reset on my router but don't want to go to that length unless I have to. Plus something tells me it's not my router. Everything else connects perfectly well.

I have it set to the wpa 2 setting and that is the field I modify in the txt file.

I don't know why it is doing this. If anyone can help it would be greatly appreciated.

Re: Raspberry Pi Zero W (OctoPi OctoPrint)

Posted: Fri Jul 06, 2018 8:17 am
by mutrised
Hi,

So you are trying to connect your pi using WIFI/WPA2

Could you post your /etc/wpa_supplicant/wpa_supplicant.conf file ? (not sure of typo, but close to it).
Change SSID and pass key. It may be a auth failing.

I'm not an expert (yet ^^).

Re: Raspberry Pi Zero W (OctoPi OctoPrint)

Posted: Sat Jul 07, 2018 2:00 am
by holytoledo
Erm. I cannot do that. I already removed the sd card and files and formatted it. Had to use it to do an os x re install. I have an 8gb lying around I am going to use now for this. I reflashed it multiple times and started fresh thinking it would help me figure out what was wrong.

What I did though:


WPA/WPA2 secured
network={
ssid="MySSID"
psk=MyPW"
}

And I also tried it by leaving the very first line "WPA/WPA2 secured" with one # and even unedited with both ##.

I always uncommented the Country line.

Like so:

country=US # United States

Thinking back I never uncommented the "# United States" bit. Should I have?

Would the arduino ide be useful for modifying the text file?

I want to make sure it's not my version of notepad++ that is messing with it. Not that I've done extensive editing to notepad settings or anything. It's all stock.

And thank you very much for your help! I greatly appreciate it.

Side note: This is my first pi. I have an arduino lying around, but I was told the pi was best for octoprint and purchased it from the manufacturer's site. I emailed them and they sent me here. It's crazy what ebay wants for one of these little things given they retailed for 5 (Zero) and 10 (Zero W).

Re: Raspberry Pi Zero W (OctoPi OctoPrint)

Posted: Tue Jul 10, 2018 3:03 pm
by mutrised
Here is one of my wpa_supplicant.conf working

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=FR

network={
    ssid="xxxx"
    psk="xxxx"
    id_str="home"
}
And what I got into /etc/network/interfaces

Code: Select all

auto wlx086a0a9753e8
allow-hotplug wlx086a0a9753e8
iface wlx086a0a9753e8 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
The code you pasted misses a double quote, chekc if it is not the case on you file too. psk=MyPW" > psk="MyPW"
I followed some article I found on the Internet to set it up.

Re: Raspberry Pi Zero W (OctoPi OctoPrint)

Posted: Wed Jul 11, 2018 5:03 am
by holytoledo
Hmm. I have been using the double quotes. That must have been when I modified it to remove my SSID and PSWD from the txt file.

I have it open once again and this time it does not even endlessly try to connect to my router. I already reset my router BTW, hoping that would fix it.

Next I want to try and use WEP tbh. But first I am going to try and connect it to the wifi network using a gui os, instead of a headless one.

I will use the retropie image. Always did want to check it out anyway. If it can connect to a network I am golden. If it cannot I think there is a problem with my pi. I already received a mini hdmi to hdmi adapter in the mail. So I'm all set to try it out.

Re: Raspberry Pi Zero W (OctoPi OctoPrint)

Posted: Wed Jul 11, 2018 6:20 am
by holytoledo
Just want to say my issue was resolved simply by running another image. I ran retropie. And didn't even connect to wifi, just set up a gamepad. Pulled the plug, then I re inserted the octopi image. It is now connected to my network. I will see the next step from here for interfacing from my printer. Already changed the passwd (first step).

It's working! It's working!!!

Didn't change any of my previous steps, what I had done before. And it worked!

Thank you so much for posting and trying to help me kind user. Adafruit said they would help me but they never did get back to me on their forums. Regardless it's solved now and I can move on!

Wonderful community. Thanks!!!