natcl / node-red-contrib-rpi-ws2801

6 stars 3 forks source link

"Error: EBADF: bad file descriptor, write" #3

Open kpagnat opened 5 years ago

kpagnat commented 5 years ago

Hi,

Thanks for your work with ws2801 leds and Node-Red ! I manage to use it with simple flows that fill the entire leds with one color.

But after playing with it to fill leds individually, I keep getting the error "Error: EBADF: bad file descriptor, write". Sometimes I also get the message that the node can't close SPI port.

Sometimes too, if I send a lot of commands (I use a for loop to reach leds individually) to the node, it seems that a delay appears on SPI because the command are executed much longer after (10 seconds).

Is there something we can do ?

Thanks for your help. Kevin

natcl commented 5 years ago

This is most likely an issue with the upstream library, you would need to fill an issue there as the Node-RED node is simply a wrapper. My guess is the upstream library doesn't use an async library to talk to the spi port. I'm on vacation but will have a look when I come back.

-- lecaude.com studioimaginaire.com

Le 22 août 2018 à 09:06, Pagnat notifications@github.com a écrit :

Hi,

Thanks for your work with ws2801 leds and Node-Red ! I manage to use it with simple flows that fill the entire leds with one color.

But after playing with it to fill leds individually, I keep getting the error "Error: EBADF: bad file descriptor, write". Sometimes I also get the message that the node can't close SPI port.

Sometimes too, if I send a lot of commands (I use a for loop to reach leds individually) to the node, it seems that a delay appears on SPI because the command are executed much longer after (10 seconds).

Is there something we can do ?

Thanks for your help. Kevin

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

RKF-FKR commented 5 years ago

Hello Kevin - I wonder if you could share your flow? I’ve tried numerous ways to get this node to dance for me without success. Not really an issue, more just my stupidity I’m guessing.