Code Monkey home page Code Monkey logo

Comments (4)

tom-2015 avatar tom-2015 commented on July 20, 2024

It seems to crash when uninitializing a previous setup. Try to call setup and init only once at startup of the program. You can use the -i command line parameter for this.
sudo ./ws2812svr -i "setup 1,150;init;"

Then only use commands to change the leds in node red see if that solves the problem.

from rpi-ws2812-server.

CampbellCrowley avatar CampbellCrowley commented on July 20, 2024

This does seem to solve the the segfaults, thanks. I was not aware that both the -i and -tcp parameters would work together.
sudo ./ws2812svr -i "setup 1,150;init;" -tcp 80 works great

However, am I right in assuming that I would not be able to change the number of LEDs that are connected without restarting the server each time they change?

This isn't a huge issue for me, but would mean that I need to update 2 devices (client and server) every time I change the number of LEDs that are connected, instead of just the client.

Thanks for making this awesome thing!

from rpi-ws2812-server.

tom-2015 avatar tom-2015 commented on July 20, 2024

Theoretically it should be possible to do multiple inits but seems like there is a bug in the mailbox.c but this is not my code. So will not be easy to fix I think...

from rpi-ws2812-server.

tillig avatar tillig commented on July 20, 2024

I tried to reproduce this because I was also noticing things hanging/crashing but haven't been able to repro it. I seem to be able to send the setup/init commands with every script/connection. However, I do seem to be having a different issue where the script length may exceed some maximum, for which I'll add a separate issue.

from rpi-ws2812-server.

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.