Error while reading data from host

  • Hi together,


    I have a Pi 3 running Raspian Stretch Lite and a WS2812B LED stripe.
    I connected everything as supposed to and tested it with an external library (Strandtest.py), i guess you guys know that here. Everything works fine there.


    I then installed Hypercon, set my settings regarding the LEDs and my device and uploaded it to the Pi via SSH.


    When I then try to manually select a color in the color wheel and send it over, i get this error message:


    [INDENT]ssh out: hyperion-remote -c 1100ff
    ssh in: hyperion-remote:
    ssh in: version : V1.03.4 (brindosch-c750c41/dc6a602-1522918225
    ssh in: build time: Apr 5 2018 01:57:05
    ssh in: Connected to localhost:19444
    ssh in: Set color to 17 0 255
    ssh out: Error while reading data from host
    [/INDENT]
    It seems as if the connection is established and works, however I have no clue what the last line means.


    Do you guys have any idea?


    Thanks in advance,


    Bastian


    Edit: No LED lights up anytime here, just when I stop it the LEDS flash up for a milisecond.

  • I (and others Here) have found that WS2812B leds are better driven with an Arduino with this sketch. (Arduino nano clone is my choice).


    I'm not sure, however it seems that resent raspberry os's have made it a bit harder to do WS2812B bit bang timing.


    reference read: https://github.com/FastLED/FastLED/wiki/Interrupt-problems.


    Hope its of help.


  • Thanks for the reply. I actually am able to get the leds working with another script, it just wont work with Hyperion. That's why I am curious, I honestly have no clue what 'Error while reading data from host' means. You think that it might work with an older Raspian image?

  • On your setup what pins are the WS2812B attached to on the pi? And the contents of hyperion.config.json?


    It's been a wile since I used the Pi's gpios to drive leds directly. Going to see if I can reproduce the issue.

  • On your setup what pins are the WS2812B attached to on the pi? And the contents of hyperion.config.json?


    It's been a wile since I used the Pi's gpios to drive leds directly. Going to see if I can reproduce the issue.


    I attached an image of my setup. I used this guide: https://dordnung.de/raspberrypi-ledstrip/ws2812
    And as I said, it works perfectly with the library mentioned in the guide - however Hyperion does not work and I have no clue why.
    Thanks in advance for you help, appreciate that a lot.

  • I've just completed a test run with success. Here's what I did.
    On a Rpi3 flashed a fresh 2018-10-09-raspbian-stretch-lite to SD card (eneabled SSH and set WIFI for headless)
    Added spidev.bufsiz=32768 to the end of /boot/cmdline.txt.
    Added core_freq=250 to /boot/config.txt
    grabbed a fresh Hypercon and installed on the Pi.
    Addached test string of 27 led's data go's to pin 10, Ground to a ground pin, Positive to a 5v positive pin
    Set my hyperion.config.json Led's to "WS281x-SPI"


    My testing is working as intended.


    I think you have may have missed a step, perhaps?


    Still, what's in your hyperion.config.json and what pins are you using?


    Edit: pin 10 is a error. it should read Gpio 10 pin 19


  • I am using PINs 6 and 12 - my 5v LED channel is connected to an external power adapter.
    I'll upload my json.config in a minute.


    Could you maybe post me the exact hardware wise setup as an image or something so I can rebuild and test that? Seems as if our setups are different.

  • Yes. However my test Pi is powered from the GPIO's and not the usb. In production setup that would spell disaster as the led can draw a lot of amps and kill the Pi.


    It would be wise to remove the 5v positive pin and connect the led's directly to to 5v positive power supply.

  • Yes. However my test Pi is powered from the GPIO's and not the usb. In production setup that would spell disaster as the led can draw a lot of amps and kill the Pi.


    It would be wise to remove the 5v positive pin and connect the led's directly to to 5v positive power supply.


    Yeah that's what I thought. I am kinda new to this whole pi thing honestly tho, to avoid breaking things up: How exactly do I connect the 5V external power adapter, the LED stripe and the pi together? I know that's a totally noob question but I do not want to break the pi.
    Thanks in advance!

  • Thanks man that literary works flawless!
    You saved my day. Let me know if I can help you with any other things, I definitely owe you something.
    One last thing tho: Why should I power it with the power adapter and the Micro USB as you mentioned in your 2nd post? Does that has any advantages compared to power both with the external?

  • I usually have my Rpi's doing other stuff along with Hyperion. So when I'm not using the leds I can power down the led (lots of watts) power supply and the Rpi can still run off of the wall wart (little watts).

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!