anyone using octoprint 1.2.2?

Have questions or comments about Simplify3D, Slic3r, Cura, Reptier, etc? Or wondering about which CAD software to use...discuss it here...
User avatar
jimc
Posts: 2888
Joined: Wed Apr 09, 2014 11:30 pm
Location: mullica, nj
Contact:

Re: anyone using octoprint 1.2.2?

Post by jimc » Sun Jul 26, 2015 4:34 pm

funny, did your txt file look all organized into lines like that? no matter what text editor i opened it up into it would open it as a jumbled mess with no returns, spaces or anything else. it was one big massive run on sentence. thats half the reason i couldnt make heads or tales of it. ill try and mess with this later. thx

User avatar
PcS
Posts: 667
Joined: Mon Mar 09, 2015 12:19 pm
Location: Michigan

Re: anyone using octoprint 1.2.2?

Post by PcS » Sun Jul 26, 2015 4:40 pm

yes that was exactly how it opens in windows notepad.

User avatar
jimc
Posts: 2888
Joined: Wed Apr 09, 2014 11:30 pm
Location: mullica, nj
Contact:

Re: anyone using octoprint 1.2.2?

Post by jimc » Sun Jul 26, 2015 5:04 pm

weird. i used notepad on the pc and 2 others on the mac. was just a big unreadable mess. i can atleast see what is going on now. its a little more understandable. so i basically just remove the single pound sign from in front of each line i want to use and enter the network info?

User avatar
PcS
Posts: 667
Joined: Mon Mar 09, 2015 12:19 pm
Location: Michigan

Re: anyone using octoprint 1.2.2?

Post by PcS » Sun Jul 26, 2015 5:35 pm

Yes exactly. Wonder if you got a corrupted download ?

User avatar
ednisley
Posts: 1188
Joined: Fri Apr 11, 2014 5:34 pm
Location: Halfway up the Hudson
Contact:

Re: anyone using octoprint 1.2.2?

Post by ednisley » Sun Jul 26, 2015 6:53 pm

PcS wrote:Wonder if you got a corrupted download ?
Nope, it's in Unix text file format, with line endings marked by Line Feed (hex 0A) characters.

DOS, for obscure reasons, and therefore Windows require Carriage Return (hex 0D) and Line Feed characters at the end of each line.

More than you probably want to know:
https://en.wikipedia.org/wiki/Newline#Common_problems

User avatar
jimc
Posts: 2888
Joined: Wed Apr 09, 2014 11:30 pm
Location: mullica, nj
Contact:

Re: anyone using octoprint 1.2.2?

Post by jimc » Sun Jul 26, 2015 8:08 pm

your right once again ed.

when i opened that file with notepad this is what i got.
loop.JPG
loop.JPG (118.52 KiB) Viewed 13599 times

i must have been mistaken though as to what i used to open it with because notepad looks like the pic but wordpad opens it correctly like mentioned in ed's link. also i drug it over to my mac and it opened right with textedit and text wrangler.

User avatar
jimc
Posts: 2888
Joined: Wed Apr 09, 2014 11:30 pm
Location: mullica, nj
Contact:

Re: anyone using octoprint 1.2.2?

Post by jimc » Sun Jul 26, 2015 8:57 pm

ok this is still a no go. it wont connect. let me ask you guys a question. after looking closely at the file pat posted has the jimc identifier as to wehre i put my info. of course i am running an open network so i would uncomment the three single # lines under the open section. one thing i see different is in the wpa section where pat has me marked down its marked as ssid. i realize this is just the network name. under the open section is marked as essid. what is the difference? is there any? thats just supposed to be my network name right? i looked online and it said something about that being the mac address? for the router?

User avatar
PcS
Posts: 667
Joined: Mon Mar 09, 2015 12:19 pm
Location: Michigan

Re: anyone using octoprint 1.2.2?

Post by PcS » Sun Jul 26, 2015 10:49 pm

you run a wifi connection with no security ? change it to wpa and my posted settings will work.

jsc
Posts: 1864
Joined: Thu Apr 10, 2014 4:00 am

Re: anyone using octoprint 1.2.2?

Post by jsc » Sun Jul 26, 2015 11:12 pm

Jim, run /sbin/iwconfig. Does it show your access point? Is the ESSID listed correct? Is that command even there?

If /sbin/iwconfig doesn't exist, then you need to run "sudo apt-get install wireless-tools".

Regarding the interfaces file, for reasons unknown the SSID is referred to as wpa-ssid for WPA, but wireless-essid for open networks. Who needs consistency? They both refer to the same thing, your network name.

Your desired end result will look like this:

Code: Select all

auto wlan0
iface wlan0 inet dhcp
wireless-essid "Jimc's Network Name"
wireless-mode managed
Make sure "wlan0" is one of the interfaces that shows up in iwconfig.

Reboot and make sure the ESSID listed in the output of iwconfig is your network name. Run /sbin/ifconfig and look for wlan0, it should show you an IP address under "inet addr:". From your Mac, run "ping [that IP address]", should look something like this:

Code: Select all

beaglebone% ping 192.168.1.125
PING 192.168.1.125 (192.168.1.125) 56(84) bytes of data.
64 bytes from 192.168.1.125: icmp_req=1 ttl=64 time=0.143 ms
64 bytes from 192.168.1.125: icmp_req=2 ttl=64 time=0.108 ms
...
That shows you that it's on the network and responding. Finally, try connecting to OctoPrint through a browser.

User avatar
jimc
Posts: 2888
Joined: Wed Apr 09, 2014 11:30 pm
Location: mullica, nj
Contact:

Re: anyone using octoprint 1.2.2?

Post by jimc » Sun Jul 26, 2015 11:12 pm

yeah its an open network. i am sitting on 20 acres with my dad on another 20 to the left of me and my friends on another 20 on the other side. there is no one that can get close enough to join my network. in the future i may have to do a secure network because i am thinking about putting up a high power router to beam some internet over to my dads place. that is supposed to give a mile or two radius. in any case i just got it working and even updated. here is what i had to do though. i totally deleted the network text file. i turned on one of my other pi's that are working. opened up the network interfaces file and the wpa supplicant file in nano. copied what i had there and duplicated that in the same files on the new octopi version. rebooted, opened up a terminal and typed wpa_gui. this opened the original wifi interface from older versions of raspbian. i found out its still there it just isnt running by default. i used that and did a network scan. my network popped right up, hit connect and it was a done deal. other than modding those 2 files and having to manually run the old wifi config utility it all worked the same as the old octopi 1.1.1 i had running before. it was a 2 min deal. i dont know what the issues is with the new wifi tool in raspbian and how octoprint is doing their thing with this text file but atleast with an open network it just doesnt work.

Post Reply