Closed mitsumaui closed 7 years ago
I will get the nightly coming out hopefully tomorrow, the wifi in my house has been acting up and breaking the build server.
Thanks for the response! I saw this in the Raspbian rel notes so assume it's mostly ready to go:
2017-03-02:
I've just installed octoprint on the latest Raspbian Lite image manually to see how it goes! Once you have this into nightlies - let me know (along with a brief instruction on how I can load to SD card for testing) and I can do some testing.
Huh, they changed it. It said "initial" a few days ago. Oh well, @foosel already got errors when trying the camera. And we are on the move for 0.14.0 RC, when we are ready.
Some more infos on the errors I encountered...
Utilizing actual bandwidth on the WiFi interface (as in, streaming from the webcam in the "Control" tab in OctoPrint and also directly via /webcam/
plus doing a simple speed test for downloading something via wget
) I saw huge CPU consumption by kworker
and irq
in the output of top
. And printing a tri spinner (lots of curves) and trying to watch the webcam resulted in endless stuttering thanks to the above mentioned processes eating up ~50% of all available CPU resources and the constant swapping between processes not leaving enough air to breathe for OctoPrint to feed data fast enough to the printer.
That was still against the "initial support" image, aka 2017-02-16 though. I did a manual rpi-update
on that which pushed the kernel version to 4.9 and reduced the CPU load during WiFi usage to something around 25%. Still some stuttering but at least better.
I then installed the SnapStream plugin and used that configured for 4fps instead of the actual webcam stream. That brought the CPU usage down to 15% and the print went through.
Still... a decidedly "meh" experience so far. As a side note, I also tested against a Pi3 then out of curiousity: same behaviour but doesn't matter thanks to four cores being available.
tldr: Actually using the WiFi of the RPi Zero W to transfer data (= watching a webcam stream of a print) eats a lot of CPU and can severly impact achievable print quality.
Some quick shots:
This is only one browser connected to http://octopi.local/webcam/stream.html
. OctoPrint server isn't even running.
And this is a simple wget -O /dev/null http://somehost:someport/somelargefile.gcode
executed on the Pi.
And look at that load average. Hilarious. As a reminder, we are not doing anything computational intensive here. Just pumping some data through the wifi interface.
I see similar things with RPI B. I don't know how anybody successfully uses Wifi and a camera with only one core. I have to use Ethernet.
On 7 March 2017 at 16:23, Gina Häußge notifications@github.com wrote:
Some quick shots:
[image: image] https://cloud.githubusercontent.com/assets/83657/23665870/fecaa7a8-0359-11e7-8760-05b50aad71ec.png
This is only one browser connected to http://octopi.local/webcam/ stream.html. OctoPrint server isn't even running.
[image: image] https://cloud.githubusercontent.com/assets/83657/23666103/926ea81a-035a-11e7-9b7b-6afb7a43a8ed.png
And this is a simple wget -O /dev/null http://somehost:someport/ somelargefile.gcode executed on the Pi.
And look at that load average. Hilarious. As a reminder, we are not doing anything computational intensive here. Just pumping some data through the wifi interface.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/guysoft/OctoPi/issues/318#issuecomment-284771956, or mute the thread https://github.com/notifications/unsubscribe-auth/AAijhcNxSkdtSkdFN1yAl6nED0cUmYMWks5rjYSSgaJpZM4MTFtP .
@nophead I think I already mentioned that once, but I never had such issues with USB wifi dongles. This mmc stuff though...
Now testing one of my dongles with the RPi Zero W.
@nophead now I finally see what you mean with CPU load by haproxy
;)
That's a running print with the Control tab (and hence the webcam stream) open. USB dongle, internal NIC is disabled. Slight stuttering but only at the start. Couldn't let it run (appointment) so no idea how that would develop over time. Next to no lag though (same setup with internal nic had lots of lag).
That is only streaming from /webcam/
, OctoPrint server is disabled. USB nic, internal one disabled.
And wget
.
Needs more tests but current gut feeling based on observed print behaviour: USB WiFi dongle performs better than built in interface.
Next nightly would be with the latest base image
Newest build works for me with the new raspberry Pi zero W with Pi camera.
Any additional testing needed on this? I've got a Pi Zero W doing nothing (but no Pi cam, still in the mail).
More testing is always good!
@guysoft i released OctoPrint 1.3.2 yesterday, so that is now ready for inclusion in 0.14 as well (and might have already made it into this night's nightly? Not sure if that is build against master, would make sense though)
nightly build is against master. If you got it in before midnight UTC it should be there
Ah, great. I wasn't sure anymore if the nightlies were master or devel branch. Release was 3pm CET/2pm UTC so that should have made it in :)
hey guys,
it's my first time use of the octopi. I am using a Zero W and downloaded this nightly build
2017-03-17_2017-03-02-octopi-jessie-lite-0.14.0.zip 2017-03-17 01:11:01 UTC
and change the wifi settings in the .txt file and boom got everything working! I did my first print too. My camera was a black screen and did not undestand why until I went in the basement to check my printer and saw that the camera felt face down on the table! hahaha!!
thanks! I just wanted to tell you that I got it working on the Zero W since I saw some people having difficulty. I also tried the 0.13 until I came in this thread and tried the nightly build.
my questions are: When do I know octoprint release a stable version for the Zero W? I can't find the release # here? http://gnethomelinux.com/OctoPi/nightly/#rpi-stable EDIT this is what I was looking for https://github.com/foosel/OctoPrint/releases/
if I want to update my nightly once in a while, I need to use these scripts? https://github.com/guysoft/OctoPi/tree/devel/src/nightly_build_scripts basically I need to use github commands to find that folder and execute those script?
Thanks
@robomaniac Hey, So
I confirm that debian jessie lite 2017-03-02 does run on pi zero w.
Hey @robomaniac so are you able to run octopi on the ZeroW, access remotely and watch the camera without much hassle? I don't need 60fps video feed, just quick checks to see steady temps and no spaguetti incidents should be enough ;)
wdy say? :)
yes sir, It's been running since Mars. I had weird bug that I can not reach the Zero via my laptop but works with my ipad and iphone. It's been stable for a few weeks now and that bug did not appear again.
there is lots of great plug-in that makes the experience even better!
Go for it!
On Fri, May 5, 2017 at 6:20 PM, bolsoncerrado notifications@github.com wrote:
Hey @robomaniac https://github.com/robomaniac so are you able to run octopi on the ZeroW, access remotely and watch the camera without much hassle? I don't need 60fps video feed, just quick checks to see steady temps and no spaguetti incidents should be enough ;)
wdy say? :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/guysoft/OctoPi/issues/318#issuecomment-299588998, or mute the thread https://github.com/notifications/unsubscribe-auth/AFi6VzdEtJbEzwCiogT6gdn7I0PHFgydks5r26DJgaJpZM4MTFtP .
-- Jérôme Demers www.JeromeDemers.com
Great! Thanks for letting me know.
2017-05-07 0:57 GMT+02:00 Jerome notifications@github.com:
yes sir, It's been running since Mars. I had weird bug that I can not reach the Zero via my laptop but works with my ipad and iphone. It's been stable for a few weeks now and that bug did not appear again.
there is lots of great plug-in that makes the experience even better!
Go for it!
On Fri, May 5, 2017 at 6:20 PM, bolsoncerrado notifications@github.com wrote:
Hey @robomaniac https://github.com/robomaniac so are you able to run octopi on the ZeroW, access remotely and watch the camera without much hassle? I don't need 60fps video feed, just quick checks to see steady temps and no spaguetti incidents should be enough ;)
wdy say? :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/guysoft/OctoPi/issues/318#issuecomment-299588998, or mute the thread https://github.com/notifications/unsubscribe-auth/ AFi6VzdEtJbEzwCiogT6gdn7I0PHFgydks5r26DJgaJpZM4MTFtP .
-- Jérôme Demers www.JeromeDemers.com
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/guysoft/OctoPi/issues/318#issuecomment-299670956, or mute the thread https://github.com/notifications/unsubscribe-auth/AKe9EnjbGAXBNr-CS0JHM8Ntp855SgWVks5r3PrfgaJpZM4MTFtP .
--
Nos encantan los árboles. No me imprimas si no es necesario. // We love trees! Don't print me unless it's really needed.
Closing, 0.14 released
@foosel did you tried Pizero with USB dongle? Same performance problems ?
@jalopezsuarez see this comment. TLDR: No. Dongles perform way better. Kinda defeats the purpose though, especially on something as IO limited as the 0w. Use a Pi3.
Uhm... Is this "solved" now since it's closed? Can you use the Zero W now with the latest 0.14 release?
Works fine on all mine?
Thanks
Dave
Sent from my iPhone
On 8 Feb 2018, at 03:41, EpicLPer notifications@github.com<mailto:notifications@github.com> wrote:
Uhm... Is this "solved" now since it's closed? Can you use the Zero W now with the latest 0.14 release?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/guysoft/OctoPi/issues/318#issuecomment-363993085, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbON6Nuvkesg57WmQAsDrJ_fxlXUWBQHks5tSmzvgaJpZM4MTFtP.
Is this still an issue? I have a Pi Zero W running OctoPrint without issue. It can be a little slow to boot but it works. Now I am worried cause I want to rebuild the darn thing.
@iaglet the issue is closed
Can anyone confirm or disprove that Raspberry Pi Zero W is powerful enough if you run a Raspberry Pi Camera but not good enough if you run a USB web cam?
I see in this thread some responses where people say its fine and other complain. Based on previous reading the Raspberry Pi Cam decoding is done right on the GPU vs USB cam will load up the CPU hence the huge performance hit some users are seeing. Link below where a similar discussion happened. https://www.raspberrypi.org/forums/viewtopic.php?p=607023
The Wifi on the Zero W gobbles up CPU cycles for breakfast when bandwidth is utilized. Webcams utilize bandwidth. Don't use the Zero W for OctoPrint, especially if you plan on using a webcam with it.
I have been using for months, including watching video stream while printing. Although not the fastest, it has proven to be extremely reliable.
On Tue 8 May 2018, 08:48 Gina Häußge, notifications@github.com wrote:
The Wifi on the Zero W gobbles up CPU cycles for breakfast when bandwidth is utilized https://github.com/guysoft/OctoPi/issues/318#issuecomment-284762963. Webcams utilize bandwidth. Don't use the Zero W for OctoPrint, especially if you plan on using a webcam with it.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/guysoft/OctoPi/issues/318#issuecomment-387315733, or mute the thread https://github.com/notifications/unsubscribe-auth/ABUm-PBUjs5ez14v0x79X3CSLuHwvzejks5twU3FgaJpZM4MTFtP .
I knew someone would chime in and say "It works perfectly for me!!1!". Be happy if it does. It certainly didn't in all tests that I did and I also got a lot of confirmation from other people in the community that it simply grinds to a halt. Anyone deciding on using that device, be my guest, but don't be surprised when you run into (predictable) performance issues left and right.
So some behavior is making sense. I haven't had any full fledged failures but some of the strange behaviors make more sense. While I can't say that it is related, it is horribly slow rebooting.
The board is not fast by nature... So, things are usually quite slow
On Tue 8 May 2018, 23:43 iaglet, notifications@github.com wrote:
So some behavior is making sense. I haven't had any full fledged failures but some of the strange behaviors make more sense. While I can't say that it is related, it is horribly slow rebooting.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/guysoft/OctoPi/issues/318#issuecomment-387565525, or mute the thread https://github.com/notifications/unsubscribe-auth/ABUm-NvD7zQqq5owsOM-XMXY_rg2pP28ks5twh-HgaJpZM4MTFtP .
In latest version booting is slow as hell (not usable). Using older version boots much faster with Zero W.
@iLLiac4 what version? Please open a seprate issue withthe full details
Not recommended install on PiZeroW, because of the performance. Anyway you should do a clean fresh install and try again. Please create a new post for details.
Even though I have a PiZeroW running Octopi and had success with it, I am now realizing that I was still having performance issues and would recommend against it. I would not do that over again. It's too bad.. it's a very elegant form factor but all the issues being described, I observed.
I too have been using my spare Pi0W (heatsinked) driving my Rostock Delta almost perfectly for approx 6 months. Mainly due to the tiny form factor, but will be migrating to the Pi3B, once I design a housing for it to replace one of the current side covers, thus integrating my pi into the printer.
I have only had one (1) serious lockup using the zero, as it stays online for months at a time. Rebooting is painfully slow though, taking approx 6 minutes before the webpage is available. You do notice the printer slow down and get 'jittery' if you upload files with the webcam running. That said, if they ever release a quad-core Zero, I think I'll put it back. I like the size!
Yes I have had some lag with Pi Zero too - it was better on older OctoPi releases, but recent ones seem to have slowed down further. @DarthKegRaider - If you are interested, Banana Pi do a 4-core 512Mb Pi Zero on the same footprint on Amazon? I'm tempted to try one of these!
@mitsumaui Did you try the Banana Pi? Interested in getting a webcam working with this method as well.
So reading through this whole thread - it sounds safe to assume that a zero-w running octoprint will be fine for me since I have no intention of connecting any kind of camera to it - just don't upload new gcode files (use significantly bandwidth) while a print is in progress.
@Cova , Give it a go if you have one laying around. It might work fine for you, your SD card might be faster than mine :)
For anyone finding this page through the octopi warning - I have been using Octopi v0.15.1 successfully for about a year now, I do have the 1080p camera hooked up to it, streams work pretty well, the cpu does spike to 75% while printing and watching a stream though. im on wifi, not even that strong of a connection. Printer is a prusa i3, great quality now with several printer mods. CPU usage hovers around 15% on idle and 25-30% average during printing without watching the camera.
Maybe H.264 encoding instead of MJPEG might help, as the bandwidth requirements are lower. The Pis can also hardware-encode H.264, so the CPU utilization should be lower too. I tested this a long time ago, maybe someone is willing to make this work in OctoPi...
I see a lot of people saying that using the Pi Zero W + Camera (either Pi Cam or USB Camera) is not recommended. But what about using the Pi Zero W just to replace an unreliable SD Card slot? Is it still bad even for just printing without straming video?
I believe, though admittedly I could be explaining this incorrectly, the issue stems from how the Wi-Fi function is driven by the CPU. Functions that would typically be offloaded from that CPU, or run on this card. So when you have high throughput streaming, such as with a WebCam, it affects performanceYou potentially have issues with the serial communication.
-Stephen on Harmon
From: estcap2 notifications@github.com Sent: Saturday, August 8, 2020 8:05:44 AM To: guysoft/OctoPi OctoPi@noreply.github.com Cc: iaglet s.r.willson@outlook.com; Mention mention@noreply.github.com Subject: Re: [guysoft/OctoPi] OctoPi 0.13 does not work with Pi Zero W (#318)
I see a lot of people complaining that using the Pi Zero W + Camera (either Pi Cam or USB Camera) is not recommended. But what about using the Pi Zero W just to for example replace an unreliable SD Card slot? Is it still bad even for just printing without straming video?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fguysoft%2FOctoPi%2Fissues%2F318%23issuecomment-670921250&data=02%7C01%7C%7C3832f405ae33401244d008d83b93613f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637324851455572777&sdata=ABsqs9ehK8WmxRIJHdnGqxFOOXPSuhfm5KrnSvOPWNE%3D&reserved=0, or unsubscribehttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAILNGQP72TMPGKYAWXJ6ON3R7U5RRANCNFSM4DCMLNHQ&data=02%7C01%7C%7C3832f405ae33401244d008d83b93613f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637324851455572777&sdata=c%2FyWqnlqlazG3uylS0XRg0U5mDJ%2BdHK76EdxujpsMNs%3D&reserved=0.
But what about using the Pi Zero W just to replace an unreliable SD Card slot?
I ran a Pi Zero W with newer OctoPrint releases just fine up till about 6 months ago. It was fine for printing providing you don’t do too much on the Web Interface while it’s printing, i.e install plugins etc. as that will hang up printing. I never noticed any pauses with 115200 baud and no webcam. I could use the ‘layer progress’ tab comfortably without maxing the CPU, but that was as far as I could push it.
I switched out to an Orange Pi Zero as wanted to use a webcam which is fine aside having to install OctoPrint manually vs. just flashing an image.
@tparenti
I do have the 1080p camera hooked up to it, streams work pretty well
Do you use a Pi camera connected to the camera port or just a USB Webcam? Also do you use a external USB WiFi adapter or just the on-board one?
Wondering if using ethernet instead of wifi on the Zero W via this ethernet hat would lighten up the load on the CPU. I've got both of these lying around, so I may attempt to try it (along with a Pi Cam).
Wondering if using ethernet instead of wifi on the Zero W via this ethernet hat would lighten up the load on the CPU. I've got both of these lying around, so I may attempt to try it (along with a Pi Cam).
After reading about this HAT, I would say not. It gets all it's functionality from the micro USB, not the GPIO pins, so essentially be the same as plugging in a USB hub and USB an dongle.
When installing OctoPi 0.13 to SD card, no Wifi adapter is detected on the Pi Zero W. This is built in now, so expect an updated Raspbian image is required? Will test further with Raspbian.