Giter Site home page Giter Site logo

Comments (14)

EricHigdon avatar EricHigdon commented on July 30, 2024

@Gnizten that sounds a lot like a timing issue. Did you set the core frequency?

from octoprint-rgb_status.

dexer12 avatar dexer12 commented on July 30, 2024

I tried the new version too. Thank you a lot to put effort into this again @EricHigdon !
But it seems to me that he is playing the pattern and after playing it once, switching back to just white. I think this should be running in a loop.

Whats curious to me, that the WS2811_STRIP_GBR is preselected, whats fine. But it seems that there is no difference in selecting the WS2812_STRIP, what i think you fit the LEDs i'm using.

I also checked that the entry for the core_freq=250 in th /boot/config.txt exists, but seems to be fine for me.

edit
and some strange seem that the pi is playing an effect as soon as i open or close settings, with cancel or save makes no difference.

from octoprint-rgb_status.

EricHigdon avatar EricHigdon commented on July 30, 2024

@dexer12 Can you share your OctoPrint.log file?

from octoprint-rgb_status.

dexer12 avatar dexer12 commented on July 30, 2024

The hint with the core_freq was good. I took some research and it looks like the PI4 is ignoring this setting in the /boot/config.txt. Dont ask me why.
I found an issue somewhere else, where the core_freq was locked down to 250, because there was an entry in the /boot/config.txt called enable_uart=1 .
I now added this entry and the LEDs are working like expected. So i think, now the core_freq is really 250 because the activated uart forcing the PI to this.

I added the octoprint.log as txt file. Its just a new clean setup, with just rgbstatus plugin.

octoprint.txt

from octoprint-rgb_status.

EricHigdon avatar EricHigdon commented on July 30, 2024

@dexer12 oh. That sounds really familiar. Thanks for the info.

from octoprint-rgb_status.

dexer12 avatar dexer12 commented on July 30, 2024

I need to check this as soon as i get some time to. But is it really neccessary to set the core_freq?
As i played with plugin and the rpi_ws281x library the test script from the library seems to work fine, as i might know now, the core_freq=250 settings didn't do anything.
But i really need to check if it was working 100% or just run into the same issue.
Just trying to understand these things and behaviour.

from octoprint-rgb_status.

EricHigdon avatar EricHigdon commented on July 30, 2024

It is necessary to set the core frequency to 250MHz. Otherwise the timing is not consistent and you get things like the white flashing described here.

According to the UART docs, setting enable_uart_1 also sets core_freq=250. So if you did that, you don’t need the explicit core_freq setting.

from octoprint-rgb_status.

Gnizten avatar Gnizten commented on July 30, 2024

from octoprint-rgb_status.

Gnizten avatar Gnizten commented on July 30, 2024

from octoprint-rgb_status.

EricHigdon avatar EricHigdon commented on July 30, 2024

@Gnizten Awesome. Glad it's working out for you.

As for your performance question, the name core_freq is a bit misleading. That setting is actually changing the GPU core frequency, not the CPU core frequency (which is set with arm_freq).

Changing the GPU frequency could affect the CPU performance because it also controls the memory bus, but the difference on the pi2 and up is minor.

That said, part of the pi4 upgrade was the better GPU and "4k Monitor Support" If you are trying to actually run octopi and high resolution graphics, you will probably have issues with setting your GPU core to half of the default of 500.

Now I just need to decide how to move forward. On the pi4, a core_freq value of 250 is ignored, because the only accepted options are 500 (default) or 600. The enable_uart=1 setting is a workaround, but I'm not sure I want to build that into the setup wizard since it is a bit hacky.

from octoprint-rgb_status.

edsai avatar edsai commented on July 30, 2024

I attempted the enable_uart fix and the LEDs did the rainbow startup a few times and then shut off. Without it they would do the same white flashing behavior. I do have the enclosure plugin installed before and I'm not sure if there's some dependency conflict that happens when enable_uart is configured. I noticed in the other issue you mentioned to run the setup wizard again but I'm not sure how to do that since there doesn't seem to be a web ui method to do it. Uninstalling the plugin and reinstalling did not yield any different results.

from octoprint-rgb_status.

EricHigdon avatar EricHigdon commented on July 30, 2024

@edsai Can you please share your OctoPrint.log?

from octoprint-rgb_status.

edsai avatar edsai commented on July 30, 2024

Sure. Here you go.
octoprint.log

from octoprint-rgb_status.

edsai avatar edsai commented on July 30, 2024

For some reason it's working now. I rebooted multiple times after making my settings changes to try to get it to work. I didn't do any updates but I was showing my daughter the other octoprint enclosure work I had done and all of the sudden the LEDs were working.

from octoprint-rgb_status.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.