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

RPi + Other Software RPI3/Zero + Raspbian Stretch + Hyperion + WS2812b

Discussion in 'Software Support' started by Epe, 11 September 2018.

  1. Epe

    Epe New Member

    Messages:
    5
    Hardware:
    RPi1/Zero, RPi2, RPi3
    Hi,
    I have RPi3 with updated Raspbian Stretch and WS2812b LED strip connected to GPIO18. Wiring is ok. I am able to control LEDs over python script (rpi_ws281x - https://github.com/jgarff/rpi_ws281x ).

    When i started hyperion daemon, all LEDs are turned off. I used logical analyzator to show state of GPIO18. Output of GPIO is still on low level. When i stop daemon, sometimes LEDs blink for few miliseconds! I see 24bits of data (for one LED) on logical analyzator!

    What is wrong with hyperion?

    State of GPIO on starting and stopping hyperion:
    hyperion1.jpg

    Detail "hyperion end"
    hyperion2.jpg


    Output of hyperiond:
    Code:
    Sep 11 09:08:54 raspberrypi systemd[1]: Started Hyperion Systemd service.
    Sep 11 09:08:54 raspberrypi hyperiond[824]: Hyperion Ambilight Deamon (824)
    Sep 11 09:08:54 raspberrypi hyperiond[824]:  Version  : V1.03.4 (brindosch-c750c41/dc6a602-1522918225
    Sep 11 09:08:54 raspberrypi hyperiond[824]:  Build Time: Apr  5 2018 01:57:25
    Sep 11 09:08:54 raspberrypi hyperiond[824]: INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
    Sep 11 09:08:54 raspberrypi hyperiond[824]: HYPERION INFO: ColorTransform 'default' => [0; 59]
    Sep 11 09:08:54 raspberrypi hyperiond[824]: HYPERION INFO: ColorCorrection 'default' => [0; 59]
    Sep 11 09:08:54 raspberrypi hyperiond[824]: HYPERION INFO: ColorAdjustment 'default' => [0; 59]
    Sep 11 09:08:54 raspberrypi hyperiond[824]: LEDDEVICE INFO: configuration:
    Sep 11 09:08:54 raspberrypi hyperiond[824]: {
    Sep 11 09:08:54 raspberrypi hyperiond[824]:  "colorOrder" : "grb",
    Sep 11 09:08:54 raspberrypi hyperiond[824]:  "leds" : 1,
    Sep 11 09:08:54 raspberrypi hyperiond[824]:  "name" : "MyHyperionConfig",
    Sep 11 09:08:54 raspberrypi hyperiond[824]:  "type" : "ws281x"
    Sep 11 09:08:54 raspberrypi hyperiond[824]: }
    Sep 11 09:08:54 raspberrypi hyperiond[824]: whiteAlgorithm ::
    Sep 11 09:08:54 raspberrypi hyperiond[824]: INFO: Creating linear smoothing
    Sep 11 09:08:54 raspberrypi hyperiond[824]: HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=200;updateDelay=0
    Sep 11 09:08:54 raspberrypi hyperiond[824]: EFFECTENGINE INFO: 27 effects loaded from directory /usr/share/hyperion/effects
    Sep 11 09:08:54 raspberrypi hyperiond[824]: EFFECTENGINE INFO: Initializing Python interpreter
    Sep 11 09:08:54 raspberrypi hyperiond[824]: INFO: Hyperion started and initialised
    Sep 11 09:08:54 raspberrypi hyperiond[824]: INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
    Sep 11 09:08:54 raspberrypi hyperiond[824]: BLACKBORDER INFO: threshold set to 0 (0)
    Sep 11 09:08:54 raspberrypi hyperiond[824]: BLACKBORDER INFO: mode:default
    Sep 11 09:08:54 raspberrypi hyperiond[824]: started
    Sep 11 09:08:54 raspberrypi hyperiond[824]: INFO: Json server created and started on port 19444
    Sep 11 09:08:54 raspberrypi hyperiond[824]: INFO: Proto server created and started on port 19445
    Sep 11 09:08:54 raspberrypi hyperiond[824]: DISPMANXGRABBER INFO: Display opened with resolution: 640x480
    Sep 11 09:08:54 raspberrypi hyperiond[824]: BLACKBORDER INFO: threshold set to 0 (0)
    Sep 11 09:08:54 raspberrypi hyperiond[824]: BLACKBORDER INFO: mode:default
    Sep 11 09:08:54 raspberrypi hyperiond[824]: INFO: Frame grabber created and started
    Sep 11 09:09:09 raspberrypi hyperiond[824]: INFO: Application closed with code 0
    Sep 11 09:09:09 raspberrypi hyperiond[824]: EFFECTENGINE INFO: Cleaning up Python interpreter
    Sep 11 09:09:09 raspberrypi systemd[1]: Stopping Hyperion Systemd service...
    Sep 11 09:09:09 raspberrypi hyperiond[824]: Shutdown WS281x PWM and DMA channel
    Sep 11 09:09:09 raspberrypi hyperiond[824]: *** Error in `/usr/bin/hyperiond': munmap_chunk(): invalid pointer: 0x00365bb0 ***
    Sep 11 09:09:09 raspberrypi systemd[1]: hyperion.service: Main process exited, code=killed, status=6/ABRT
    Sep 11 09:09:09 raspberrypi systemd[1]: Stopped Hyperion Systemd service.
    Sep 11 09:09:09 raspberrypi systemd[1]: hyperion.service: Unit entered failed state.
    Sep 11 09:09:09 raspberrypi systemd[1]: hyperion.service: Failed with result 'signal'.
    
    Config:
    Code:
    // Automatically generated configuration file for Hyperion ambilight daemon
    // Notice: All values are explained with comments at our wiki: wiki.hyperion-project.org (config area)
    // Generated by: HyperCon (The Hyperion deamon configuration file builder)
    // Created with HyperCon V1.03.3 (22.10.2017)
    
    {
       // DEVICE CONFIGURATION
       "device" :
       {
         "name"  : "MyHyperionConfig",
         "type"  : "ws281x",
         "leds"  : 1,
         "colorOrder" : "grb"
       },
    
       // COLOR CALIBRATION CONFIG
       "color" :
       {
         "channelAdjustment" :
         [
           {
             "id"  : "default",
             "leds" : "*",
             "pureRed" :
             {
               "redChannel"     : 255,
               "greenChannel"     : 0,
               "blueChannel"     : 0
             },
             "pureGreen" :
             {
               "redChannel"     : 0,
               "greenChannel"     : 255,
               "blueChannel"     : 0
             },
             "pureBlue" :
             {
               "redChannel"     : 0,
               "greenChannel"     : 0,
               "blueChannel"     : 255
             }
           }
         ],
         "temperature" :
         [
           {
             "id"  : "default",
             "leds" : "*",
             "correctionValues" :
             {
               "red"    : 255,
               "green"   : 255,
               "blue"    : 255
             }
           }
         ],
         "transform" :
         [
           {
             "id"  : "default",
             "leds" : "*",
             "hsl" :
             {
               "saturationGain"   : 1.0000,
               "luminanceGain"     : 1.0000,
               "luminanceMinimum"     : 0.0000
             },
             "red" :
             {
               "threshold"    : 0.0000,
               "gamma"     : 2.5000
             },
             "green" :
             {
               "threshold"    : 0.0000,
               "gamma"     : 2.5000
             },
             "blue" :
             {
               "threshold"    : 0.0000,
               "gamma"     : 2.5000
             }
           }
         ],
       // SMOOTHING CONFIG
         "smoothing" :
         {
           "type"  : "linear",
           "time_ms"  : 200,
           "updateFrequency" : 20.0000,
           "updateDelay"  : 0
         }
       },
    
       // NO V4L2 GRABBER CONFIG
       // FRAME GRABBER CONFIG
       "framegrabber" :
       {
         "width" : 64,
         "height" : 64,
         "frequency_Hz" : 10.0,
         "priority" : 890
       },
    
       // BLACKBORDER CONFIG
       "blackborderdetector" :
       {
         "enable" : true,
         "threshold" : 0.0,
         "unknownFrameCnt" : 600,
         "borderFrameCnt" : 50,
         "maxInconsistentCnt" : 10,
         "blurRemoveCnt" : 1,
         "mode" : "default"
       },
    
       // BOOTEFFECT CONFIG
       "bootsequence" :
       {
         "color" : [0,0,0],
         "effect" : "Rainbow swirl fast",
         "duration_ms" : 3000,
         "priority" : 700
       },
    
       // JSON SERVER CONFIG
       "jsonServer" :
       {
         "port" : 19444
       },
    
       // PROTO SERVER CONFIG
       "protoServer" :
       {
         "port" : 19445
       },
    
       // EFFECT PATH
       "effects" :
       {
         "paths" :
         [
           "/storage/hyperion/effects",
           "/usr/share/hyperion/effects"
         ]
       },
    
       // NO KODI CHECK CONFIG
       // NO BOBLIGHT SERVER CONFIG
       // NO JSON/PROTO FORWARD CONFIG
    
       // LED CONFIGURATION
       "leds" :
       [
         {
           "index" : 0,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0667 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         },
         {
           "index" : 1,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.9333, "maximum" : 1.0000 }
         },
         {
           "index" : 2,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.8667, "maximum" : 0.9333 }
         },
         {
           "index" : 3,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.8000, "maximum" : 0.8667 }
         },
         {
           "index" : 4,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.7333, "maximum" : 0.8000 }
         },
         {
           "index" : 5,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.6667, "maximum" : 0.7333 }
         },
         {
           "index" : 6,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.6000, "maximum" : 0.6667 }
         },
         {
           "index" : 7,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.5333, "maximum" : 0.6000 }
         },
         {
           "index" : 8,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.4667, "maximum" : 0.5333 }
         },
         {
           "index" : 9,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.4000, "maximum" : 0.4667 }
         },
         {
           "index" : 10,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.3333, "maximum" : 0.4000 }
         },
         {
           "index" : 11,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.2667, "maximum" : 0.3333 }
         },
         {
           "index" : 12,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.2000, "maximum" : 0.2667 }
         },
         {
           "index" : 13,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.1333, "maximum" : 0.2000 }
         },
         {
           "index" : 14,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.0667, "maximum" : 0.1333 }
         },
         {
           "index" : 15,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0667 }
         },
         {
           "index" : 16,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0667 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 17,
           "hscan" : { "minimum" : 0.0667, "maximum" : 0.1333 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 18,
           "hscan" : { "minimum" : 0.1333, "maximum" : 0.2000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 19,
           "hscan" : { "minimum" : 0.2000, "maximum" : 0.2667 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 20,
           "hscan" : { "minimum" : 0.2667, "maximum" : 0.3333 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 21,
           "hscan" : { "minimum" : 0.3333, "maximum" : 0.4000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 22,
           "hscan" : { "minimum" : 0.4000, "maximum" : 0.4667 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 23,
           "hscan" : { "minimum" : 0.4667, "maximum" : 0.5333 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 24,
           "hscan" : { "minimum" : 0.5333, "maximum" : 0.6000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 25,
           "hscan" : { "minimum" : 0.6000, "maximum" : 0.6667 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 26,
           "hscan" : { "minimum" : 0.6667, "maximum" : 0.7333 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 27,
           "hscan" : { "minimum" : 0.7333, "maximum" : 0.8000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 28,
           "hscan" : { "minimum" : 0.8000, "maximum" : 0.8667 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 29,
           "hscan" : { "minimum" : 0.8667, "maximum" : 0.9333 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 30,
           "hscan" : { "minimum" : 0.9333, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
         },
         {
           "index" : 31,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0667 }
         },
         {
           "index" : 32,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.0667, "maximum" : 0.1333 }
         },
         {
           "index" : 33,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.1333, "maximum" : 0.2000 }
         },
         {
           "index" : 34,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.2000, "maximum" : 0.2667 }
         },
         {
           "index" : 35,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.2667, "maximum" : 0.3333 }
         },
         {
           "index" : 36,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.3333, "maximum" : 0.4000 }
         },
         {
           "index" : 37,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.4000, "maximum" : 0.4667 }
         },
         {
           "index" : 38,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.4667, "maximum" : 0.5333 }
         },
         {
           "index" : 39,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.5333, "maximum" : 0.6000 }
         },
         {
           "index" : 40,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.6000, "maximum" : 0.6667 }
         },
         {
           "index" : 41,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.6667, "maximum" : 0.7333 }
         },
         {
           "index" : 42,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.7333, "maximum" : 0.8000 }
         },
         {
           "index" : 43,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.8000, "maximum" : 0.8667 }
         },
         {
           "index" : 44,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.8667, "maximum" : 0.9333 }
         },
         {
           "index" : 45,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.9333, "maximum" : 1.0000 }
         },
         {
           "index" : 46,
           "hscan" : { "minimum" : 0.9333, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         },
         {
           "index" : 47,
           "hscan" : { "minimum" : 0.8667, "maximum" : 0.9333 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         },
         {
           "index" : 48,
           "hscan" : { "minimum" : 0.8000, "maximum" : 0.8667 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         },
         {
           "index" : 49,
           "hscan" : { "minimum" : 0.7333, "maximum" : 0.8000 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         },
         {
           "index" : 50,
           "hscan" : { "minimum" : 0.6667, "maximum" : 0.7333 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         },
         {
           "index" : 51,
           "hscan" : { "minimum" : 0.6000, "maximum" : 0.6667 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         },
         {
           "index" : 52,
           "hscan" : { "minimum" : 0.5333, "maximum" : 0.6000 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         },
         {
           "index" : 53,
           "hscan" : { "minimum" : 0.4667, "maximum" : 0.5333 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         },
         {
           "index" : 54,
           "hscan" : { "minimum" : 0.4000, "maximum" : 0.4667 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         },
         {
           "index" : 55,
           "hscan" : { "minimum" : 0.3333, "maximum" : 0.4000 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         },
         {
           "index" : 56,
           "hscan" : { "minimum" : 0.2667, "maximum" : 0.3333 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         },
         {
           "index" : 57,
           "hscan" : { "minimum" : 0.2000, "maximum" : 0.2667 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         },
         {
           "index" : 58,
           "hscan" : { "minimum" : 0.1333, "maximum" : 0.2000 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         },
         {
           "index" : 59,
           "hscan" : { "minimum" : 0.0667, "maximum" : 0.1333 },
           "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
         }
       ],
    
       "endOfJson" : "endOfJson"
    }
     
  2. Epe

    Epe New Member

    Messages:
    5
    Hardware:
    RPi1/Zero, RPi2, RPi3
    I made progress. I must to uncheck "smoothing enabled" and then run "/usr/share/hyperion/bin/./hyperiond /etc/hyperion/hyperion.config.json". Application will hang on "EFFECTENGINE INFO: Initializing Python interpreter". Here is output:
    Code:
    Hyperion Ambilight Deamon (1854)
      Version  : V1.03.4 (brindosch-c750c41/dc6a602-1522918225
      Build Time: Apr  5 2018 01:57:25
    INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
    HYPERION INFO: ColorTransform 'default' => [0; 59]
    HYPERION INFO: ColorCorrection 'default' => [0; 59]
    HYPERION INFO: ColorAdjustment 'default' => [0; 59]
    LEDDEVICE INFO: configuration:
    {
      "colorOrder" : "grb",
      "leds" : 256,
      "name" : "MyHyperionConfig",
      "type" : "ws281x"
    }
    
    whiteAlgorithm ::
    HYPERION INFO: Not creating any smoothing
    EFFECTENGINE INFO: 27 effects loaded from directory /usr/share/hyperion/effects
    EFFECTENGINE INFO: Initializing Python interpreter


    ...then I must press CTRL+C and after that is application started properly..


    Code:
    ^CINFO: Hyperion started and initialised
    INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
    BLACKBORDER INFO: threshold set to 0 (0)
    BLACKBORDER INFO: mode:default
    started
    INFO: Kodi checker created and started
    INFO: Json server created and started on port 19444
    INFO: Proto server created and started on port 19445
    DISPMANXGRABBER INFO: Display opened with resolution: 1920x1080
    BLACKBORDER INFO: threshold set to 0 (0)
    BLACKBORDER INFO: mode:default
    INFO: Frame grabber created and started
    KODICHECK ERROR: Kodi Connection error (0)
    BORDER SWITCH REQUIRED!!
    CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
    EFFECTENGINE INFO: effect finished
    JSONSERVER INFO: New connection
    BLACKBORDER INFO: threshold set to 0 (0)
    BLACKBORDER INFO: mode:default
    JSONSERVER INFO: Connection closed
    KODICHECK ERROR: Kodi Connection error (0)
    ^C

    Hyperiond service is hanging on "Initializing python interpreter"..
    Any suggestions? Thank you