No response from LEDs but everything else seems ok

  • I am using WS2812b, the single data wire type.


    Config was generated by HyperCon: [MEDIA=pastebin]yuZuj7Eq[/MEDIA]


    Type values seem broken as WS2801 and few other types available in hyperCon throw an error in hyperiond complaining that type is not valid. Only with type: adalight could I even start hyperiond.


    I used exact arduino code from here:
    https://hyperion-project.org/t…-ws2801-ws2812b-apa102.8/


    Here is the output after running hyperiond: sudo hyperiond /etc/hyperion/hyperion.config.json



    I get a rainbow when arduino is reset AND when hyperiond is started or stopped. I do not however get a different boot effect if I set it in the hyperiond config so hyperiond isn't actually controlling arduino, it's just the default boot effect programmed in arduino. Serial data is being sent as I can see flashing TX/RX lights on the ftdi programmer connected to Arduino. If I stop hyperiond I get a notification in kodi from the Add-on. I also see "Switching to PAUSE" or "VIDEO mode" when I pause/resume in Kodi so it seems it is connected to the hyperiond service properly. It is also sending serial data so unless the date being sent is invalid in some way then it leave the issue with Arduino code.


    Should arduino code wait for the magic word? I tried commenting the wait section out but it did not make a difference. Maybe someone can see an issue with the code or provide a working sample?


    Why aren't the LEDs turning on? What am I missing?

  • Mind posting the arduino sketch with the edit you have made for your leds?


    Nice, 436 leds I see you have in your config. must be a massive TV or 144/meter leds?

  • Nah, it's only 42", I just went with very dense LED strips, 144 per 1m. It will be bit less to leave room for wires. and it's a good thing as Arduino is running out of memory with 436 LEDs.


    Here is the Arduino code, I commented the magic word parts afterwards for troubleshooting:


  • Hmm. Give his sketch a try (https://github.com/hyperion-pr…ino/adalight/adalight.ino), and edit to your needs. I've had better results with that sketch.


    The led numbers between the posted config and sketch don't match up. In the config 436 and sketch 432. However that would not prevent Hyperion from controlling the leds at all.

  • Tried it now with the new code only changing the following:


    Code
    #define MAX_LEDS 50
    #define LED_PINS 2
    #define serialRate 115200


    Still the same issue, arduino boot sequence but not a different boot sequence set in hyperiond config or any other output. Any other ideas what could be causing this?


    In Kodi debug log I see only these messages relating to hyperion:


    Code
    DEBUG: ### [Hyperion Ambilight] - Reading settings
    DEBUG: ### [Hyperion Ambilight] - Entering disconnected state
    DEBUG: ### [Hyperion Ambilight] - Entering connected state
    DEBUG: ### [Hyperion Ambilight] - Entering error state
    DEBUG: ### [Hyperion Ambilight] - Entering disconnected state
    DEBUG: ### [Hyperion Ambilight] - Entering connected state
    DEBUG: ### [Hyperion Ambilight] - Entering error state
    DEBUG: ### [Hyperion Ambilight] - Entering disconnected state


    Connected/disconnected states correspond to pause/play, I also do see an error notif in Kodi sometimes but not 2 times like in the log.

  • Not sure, a couple of thoughts however.
    Make sure the arduino is on ttyUSB0, it could be on another port.


    #define MAX_LEDS 50


    From 436 leds to 50?


    #define serialRate 115200


    you need to match the "rate" in your hyperion.config.json, It was 460800 in the first config.



  • That's just for testing, LED count shouldn't matter anyways. I tried both 115200 and 460800 (matches config) baud rate. ttyUSB0 is definitely correct as like I mentioned before I see data leds blinking on the ftdi programmer when I run hyperiond.

  • Hmm. whats the [WIKI="Android Remote"]Android Remote app[/WIKI] do when trying to connect or control Hyperion.


    Can you post a Hyperion log?

  • Hmm. whats the [WIKI="Android Remote"]Android Remote app[/WIKI] do when trying to connect or control Hyperion.


    Can you post a Hyperion log?


    Forgot about the app, but still no luck. I see JSON connected in hyperiond log when app starts but nothing else.


    When I use HyperCon to connect via SSH and hit Get Log I only get this. Same if hyperiond is started or not.
    ssh out: sudo journalctl -u hyperion.service 2>/dev/null


    Running command manually from the terminal I get the following log:



    First 5 lines repeat ~20k times. btw, the hardcoded home dir is a bug in hyperiond. I have systemd service disabled since a couple of days ago and have been running hyperiond manually to see the log so that's expected. I don't see much difference between this log and what I get from hyperiond. Is there a way to specify any debug options when running hyperiond? Help page indicates that the only option is the config path.


    Also is it expected behavior for arduino to reset on hyperiond start and stop? I am assuming arduino is resetting as it runs the boot effect.

  • Make sure the arduino is on ttyUSB0, it could be on another port.


    Apr 03 13:44:02 Server hyperiond[31108]: Unable to open RS232 device (IO Exception (2): No such file or directory, file /home/sascha/hyperion/dependencies/build/serial/src/impl/unix.cc, line 100.)


    Please read: https://hyperion-project.org/t…n-rs232-device-issue.677/


    I think it well help.

  • No, that's a different problem. I only get that error when I disconnect the USB cable. I also see RX/TX leds light up when hyperiond is started so it is sending data to the correct device.

Jetzt mitmachen!

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