1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED NOOB Cant get any lights to do anything

Discussion in 'Software Support' started by JMGarrett, 4 December 2017.

  1. JMGarrett

    JMGarrett New Member

    Messages:
    4
    Hardware:
    RPi3
    Been working on this about a week. Im dying here. i had LED #0 light for a minute but thats it.

    Following instruction set here: https://hyperion-project.org/threads/raspberry-pi-3-mediacenter-hyperion-ambilight-no-soldering.77/

    The iMac I was using to write RPI images to SD cards died in the middle of this project so I have another Raspberry Pi running Raspian that I am using to run the Hypercon.jar and create my config. I am then SSH into my other pi running Openelec and media center.

    config


    log


    Please help. I am about to start throwing electronics out the window.
     
  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    826
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino
    ssh in: Failed to open device('/dev/spidev0.0')

    did you enable spi? if you want help, you need to say what you try till now...

    which leds you use? do you only want to grab from openelec?
     
  3. saxesn

    saxesn New Member

    Messages:
    16
    Hardware:
    RPi2, RPi3, +Arduino, +PhilipsHue, +AtmoOrb, +nodeMCU/ESP8266
    The output looks a bit messy...:D
    it looks like spi is not enabled....
    please run
    Code:
    grep -r 'dtparam' /flash/config.txt
    to check if spi is enabled
     
  4. JMGarrett

    JMGarrett New Member

    Messages:
    4
    Hardware:
    RPi3
    Thanks for the responses. Apparently i did not have SPI on... I am not sure where I missed that in the tutorial but Im going back to see if i can find it...

    Code:
    OpenELEC (official) Version: 8.0.3
    OpenELEC:~ # grep -r 'dtparam' /flash/config.txt
    grep: /flash/config.txt: No such file or directory
    
    I found and followed this and now spi is on but still no luck.
    https://hyperion-project.org/threads/not-working.303/#post-2476

    Code:
    mount -o remount,rw /flash
    cd /flash/overlays/
    curl -L --output enable-spi-overlay.dtb --get https://dl.dropboxusercontent.com/u/3669512/temp/enable-spi-overlay.dtb
    nano /flash/config.txt
    
    device_tree_overlay=overlays/enable-spi-overlay.dtb
    dtparam=spi=on
    
    
    Now it shows this:

    Code:
    OpenELEC (official) Version: 8.0.3
    OpenELEC:~ # grep -r 'dtparam' /flash/config.txt
    dtparam=spi=on
    
    And new log

    Code:
    SSH Traffic:
    ssh connected
    sftp Send Hyperion Config - Sourcepath: /home/pi/JD Hyperion, Targetpath: /storage/.config/, Filename: hyperion.config.json
    ssh out:     /storage/.config/autostart.sh > /dev/null 2>&1 &
    ssh out:     cat /storage/logfiles/hyperion.log
    ssh in:     Hyperion Ambilight Deamon (891)
    ssh in:         Version   : V1.03.3 (brindosch-2fbbcff/2f01dfa-1495880388
    ssh in:         Build Time: Jun  3 2017 02:06:37
    ssh in:     INFO: Selected configuration file: /storage/.config/hyperion.config.json
    ssh in:     HYPERION INFO: ColorTransform 'default' => [0; 99]
    ssh in:     HYPERION INFO: ColorCorrection 'default' => [0; 99]
    ssh in:     HYPERION INFO: ColorAdjustment 'default' => [0; 99]
    ssh in:     LEDDEVICE INFO: configuration:
    ssh in:     {
    ssh in:         "colorOrder" : "rgb",
    ssh in:         "name" : "MyHyperionConfig",
    ssh in:         "output" : "/dev/spidev0.0",
    ssh in:         "rate" : 1000000,
    ssh in:         "type" : "ws2801"
    ssh in:     }
    ssh in:     Failed to open device('/dev/spidev0.0')
    ssh in:     INFO: Creating linear smoothing
    ssh in:     HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=200;updateDelay=0
    ssh in:     EFFECTENGINE INFO: 27 effects loaded from directory /storage/hyperion/effects
    ssh in:     EFFECTENGINE INFO: Initializing Python interpreter
    ssh in:     INFO: Hyperion started and initialised
    ssh in:     INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
    ssh in:     BLACKBORDER INFO: threshold set to 0 (0)
    ssh in:     BLACKBORDER INFO: mode:default
    ssh in:     started
    ssh in:     terminate called after throwing an instance of 'std::runtime_error'
    ssh in:       what():  JSONSERVER ERROR: could not bind to port
    ssh in:     Aborted (core dumped)
    ssh out:     killall hyperiond 2>/dev/null
    ssh out:     /storage/.config/autostart.sh > /dev/null 2>&1 &
    ssh out:     cd /tmp && curl -# -k -L --output install_hyperion.sh --get https://raw.github.com/hyperion-project/hyperion/master/bin/install_hyperion.sh && sh ./install_hyperion.sh HyperConInstall ; rm install_hyperion.sh
    ssh out:     ######################################################################## 100.0%
    ssh in:     *******************************************************************************
    ssh in:     This script will install/update Hyperion Ambient Light
    ssh in:     Created by brindosch - hyperion-project.org - the official Hyperion source.
    ssh in:     *******************************************************************************
    ssh in:     ---> Stop Hyperion, if necessary
    ssh in:     ---> Downloading the appropriate Hyperion release
    ssh in:     ---> Downloading Hyperion OpenELEC/LibreELEC release
    ssh out:     ###############                                                           22.0%
    ssh out:     ###############################                                           43.9%
    ssh out:     ##############################################                            63.9%
    ssh out:     ############################################################              83.9%
    ssh out:     ######################################################################## 100.0%
    ssh in:     ---> Downloading Hyperion OpenELEC/LibreELEC dependencies
    ssh out:     ##                                                                         3.5%
    ssh out:     ######                                                                     8.8%
    ssh out:     #########                                                                 13.4%
    ssh out:     ##############                                                            19.6%
    ssh out:     ####################                                                      28.0%
    ssh out:     ##########################                                                36.2%
    ssh out:     ################################                                          45.4%
    ssh out:     ########################################                                  56.9%
    ssh out:     ################################################                          67.7%
    ssh out:     #######################################################                   77.4%
    ssh out:     ###############################################################           88.2%
    ssh out:     ######################################################################    98.3%
    ssh out:     ######################################################################## 100.0%
    ssh in:     ---> Starting Hyperion
    ssh in:     *******************************************************************************
    ssh in:     Hyperion Installation/Update finished!
    ssh in:     Please download the latest HyperCon version to benefit from new features!
    ssh in:     To create a config, follow the HyperCon Guide at our Wiki (EN/DE)!
    ssh in:     Wiki: wiki.hyperion-project.org Webpage: www.hyperion-project.org
    ssh in:     *******************************************************************************
    ssh out:     cat /storage/logfiles/hyperion.log
    ssh in:     Hyperion Ambilight Deamon (977)
    ssh in:         Version   : V1.03.3 (brindosch-2fbbcff/2f01dfa-1495880388
    ssh in:         Build Time: Jun  3 2017 02:06:37
    ssh in:     INFO: Selected configuration file: /storage/.config/hyperion.config.json
    ssh in:     HYPERION INFO: ColorTransform 'default' => [0; 99]
    ssh in:     HYPERION INFO: ColorCorrection 'default' => [0; 99]
    ssh in:     HYPERION INFO: ColorAdjustment 'default' => [0; 99]
    ssh in:     LEDDEVICE INFO: configuration:
    ssh in:     {
    ssh in:         "colorOrder" : "rgb",
    ssh in:         "name" : "MyHyperionConfig",
    ssh in:         "output" : "/dev/spidev0.0",
    ssh in:         "rate" : 1000000,
    ssh in:         "type" : "ws2801"
    ssh in:     }
    ssh in:     Failed to open device('/dev/spidev0.0')
    ssh in:     INFO: Creating linear smoothing
    ssh in:     HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=200;updateDelay=0
    ssh in:     EFFECTENGINE INFO: 27 effects loaded from directory /storage/hyperion/effects
    ssh in:     EFFECTENGINE INFO: Initializing Python interpreter
    ssh in:     INFO: Hyperion started and initialised
    ssh in:     INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
    ssh in:     BLACKBORDER INFO: threshold set to 0 (0)
    ssh in:     BLACKBORDER INFO: mode:default
    ssh in:     started
    ssh in:     INFO: Json server created and started on port 19444
    ssh in:     INFO: Proto server created and started on port 19445
    ssh in:     DISPMANXGRABBER INFO: Display opened with resolution: 1920x1080
    ssh in:     BLACKBORDER INFO: threshold set to 0 (0)
    ssh in:     BLACKBORDER INFO: mode:default
    ssh in:     INFO: Frame grabber created and started
    ssh in:     BORDER SWITCH REQUIRED!!
    ssh in:     CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
    ssh in:     EFFECTENGINE INFO: effect finished
    
    RPI 3b with 5V 10A power supply

    I am using these WS2801 LEDs:
    Yaqing Lighting 16.4ft/5M WS2801 Addressable LED Strip from Amazon
    Link: http://a.co/3VOPabI
     
  5. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    826
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino
    did you reboot after the changes?
    ssh in: Failed to open device('/dev/spidev0.0')
     
  6. JMGarrett

    JMGarrett New Member

    Messages:
    4
    Hardware:
    RPi3
    Yes I sure did but still no luck.

    I decided to start over and try a previous version of OpenElec. 6 instead of 8. I followed the install instructions and now it works and I have a working config. I do not know how stable this setup is and I am kinda afraid to update the OpenElec for fear that it will stop working.

    I still have errors in my log file but at least i have lights now. Thanks for the help guys. I really appreciate it!

    Code:
    SSH Traffic:
    ssh connected
    ssh out:     /storage/.config/autostart.sh > /dev/null 2>&1 &
    ssh out:     /storage/.config/autostart.sh > /dev/null 2>&1 &
    ssh out:     cat /storage/logfiles/hyperion.log
    ssh in:     Hyperion Ambilight Deamon (3707)
    ssh in:         Version   : V1.03.3 (brindosch-2fbbcff/2f01dfa-1495880388
    ssh in:         Build Time: Jun  3 2017 02:06:37
    ssh in:     INFO: Selected configuration file: /storage/.config/hyperion.config.json
    ssh in:     HYPERION INFO: ColorTransform 'default' => [0; 99]
    ssh in:     HYPERION INFO: ColorCorrection 'default' => [0; 99]
    ssh in:     HYPERION INFO: ColorAdjustment 'default' => [0; 99]
    ssh in:     LEDDEVICE INFO: configuration:
    ssh in:     {
    ssh in:         "colorOrder" : "rgb",
    ssh in:         "name" : "MyHyperionConfig",
    ssh in:         "output" : "/dev/spidev0.0",
    ssh in:         "rate" : 1000000,
    ssh in:         "type" : "ws2801"
    ssh in:     }
    ssh in:     INFO: Creating linear smoothing
    ssh in:     HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=200;updateDelay=0
    ssh in:     EFFECTENGINE INFO: 27 effects loaded from directory /storage/hyperion/effects
    ssh in:     EFFECTENGINE INFO: Initializing Python interpreter
    ssh in:     INFO: Hyperion started and initialised
    ssh in:     INFO: Boot sequence 'Rainbow swirl' EFFECTENGINE INFO: run effect Rainbow swirl on channel 0
    ssh in:     BLACKBORDER INFO: threshold set to 0 (0)
    ssh in:     BLACKBORDER INFO: mode:classic
    ssh in:     started
    ssh in:     terminate called after throwing an instance of 'std::runtime_error'
    ssh in:       what():  JSONSERVER ERROR: could not bind to port
    ssh in:     Aborted
    
     
  7. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    826
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino
    ssh in: what(): JSONSERVER ERROR: could not bind to port
    means there is something using the same port...may hyperiond runs allready in the background
     
  8. JMGarrett

    JMGarrett New Member

    Messages:
    4
    Hardware:
    RPi3
    Ok I will look into the not binding to port. Thanks everyone for your help, now that I at least have lights working I have the necessary motivation to keep working on it. Not getting ANY lights after working on it daily for weeks was seriously frustrating!

    We can close this thread now. I will hopefully figure the rest out on my own but I will come back if necessary. THANKS AGAIN!
     
    • Like Like x 1