Beiträge von caveman

    That worked!
    Well, parts of it. I did change back to /dev/ACM0 as well.
    I think it was the sketch I was using that was corrupting things, regardless of /dev/tty* setting.
    I still used the HyperCon interface to send the config and stop/start things. Don't know enough about editing in 'vi' yet.


    Thanks for all the help.
    Much appreciated.


    Definitely learned a lot by starting from scratch though.
    Works with KODI and ROKU.


    Now I need to mount the LEDs.

    My USB appears to be connecting through ttyAMA0, that is why I am choosing that connection in Hyperion. I've tried the others as well and they fail also.


    osmc@osmc:~$ dmesg | grep "tty"
    [ 0.000272] console [tty0] enabled
    [ 1.310612] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
    [ 5.971692] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device
    [ 135.712971] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device
    [ 222.233813] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device



    I've tried other rates as well. Had no effect.
    Yes. The rate in the sketch matches the config. I've test a few variants on this also.


    The only thing at this point seems to be hardware related. I am thinking the video grabber might not be working properly, even though the launch indicates the grabber was started.

    Completely rebuilt.
    New OSMC.
    Configured video drive connection.
    Installed latest Hyperion.
    Sent my config with HyperCon connection. Shows no errors like the most recent report.
    Just the initialization of the LEDs.
    Then nothing no matter the video source.
    I performed a manual reboot as it does not reboot after install of Hyperion.


    Don't know what I am missing.


    ----
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: Hyperion Ambilight Deamon (844)
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: Version : V1.03.3 (brindosch-2fbbcff/2f01dfa-1495880388
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: Build Time: Jun 3 2017 02:06:37
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: HYPERION INFO: ColorTransform 'default' => [0; 127]
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: HYPERION INFO: ColorCorrection 'default' => [0; 127]
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: HYPERION INFO: ColorAdjustment 'default' => [0; 127]
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: LEDDEVICE INFO: configuration:
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: {
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: "colorOrder" : "rgb",
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: "delayAfterConnect" : 0,
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: "name" : "MyHyperionConfig",
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: "output" : "/dev/ttyAMA0",
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: "rate" : 115200,
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: "type" : "adalight"
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: }
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: Opening UART: /dev/ttyAMA0
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: HYPERION INFO: Json forward to 127.0.0.1:19446
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: HYPERION INFO: Proto forward to 127.0.0.1:19447
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: INFO: Creating linear smoothing
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=200;updateDelay=0
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: EFFECTENGINE INFO: 27 effects loaded from directory /usr/share/hyperion/effects
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: EFFECTENGINE INFO: Initializing Python interpreter
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: INFO: Hyperion started and initialised
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: INFO: Kodi checker created and started
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: INFO: Json server created and started on port 19444
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: PROTOCONNECTION INFO: Connecting to Hyperion: 127.0.0.1:19447
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: INFO: Proto server created and started on port 19445
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: V4L2GRABBER INFO: width=720 height=480
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: V4L2GRABBER INFO: pixel format=YUYV
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: BLACKBORDER INFO: threshold set to 0 (0)
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: BLACKBORDER INFO: mode:default
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: V4L2GRABBER INFO: signal threshold set to: {0,0,0}
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: V4L2GRABBER INFO: started
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: INFO: V4L2 grabber created and started
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: KODICHECK INFO: Kodi Connected
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: KODICHECK INFO: switching to VIDEO mode
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: BORDER SWITCH REQUIRED!!
    ssh in: Oct 13 19:33:42 osmc hyperiond[844]: CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
    ----

    Changing rate did not seem to do anything.
    The LEDs still initialize on startup of Hyperion, but do not do anything when movie is playing.


    Command based on RPi3 only.
    ----
    osmc@osmc:~$ dmesg | grep "tty"
    [ 0.000274] console [tty0] enabled
    [ 1.333148] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
    ----


    Command based on RPi3 and UNO.
    ----
    osmc@osmc:~$ dmesg | grep "tty"
    [ 0.000274] console [tty0] enabled
    [ 1.333148] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
    [ 308.557234] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device
    ----


    Noticing the 'ttyACMO' I changed my sketch and reloaded it on the UNO.
    I then reloaded my configuration for Hyperion and received the same results.
    The LEDs initialize for 3 seconds and then turn off and do not identify anything on the screen afterwards.


    I've tried 2 OSMC configurations on the same RPi3 with all the previous configuration information.


    I see a lot of issues for the errors identified, but do not see any solution related to my case.
    ----
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: KODICHECK ERROR: Kodi Connection error (0)
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: BORDER SWITCH REQUIRED!!
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
    ----

    Still no luck with Hyperion. Does not seem to like the USB ports on the RPi3.


    LEDs work fine straight from UNO running test scripts. UNO and LEDs are not the failure.
    Starting everything up the LEDs run the initial startup sequence and light up as expected.
    Seems to be some type of block between HyperCon and RPi3 USB since that is the error stated.


    Built from scratch.
    New OSMC image.
    Configured HyperCon based on new IP connection.
    Installed Hyperion - No reboot occurred for me.
    Connect HyperCon
    Stop Hyperion
    Set Local Config Path
    Send Config
    Start Hyperion
    Get log


    Still shows USB error.


    -----
    ssh in: Oct 01 18:35:41 osmc systemd[1]: Stopping Hyperion Systemd service...
    ssh in: Oct 01 18:35:41 osmc hyperiond[637]: INFO: Application closed with code 0
    ssh in: Oct 01 18:35:41 osmc hyperiond[637]: V4L2GRABBER INFO: stopped
    ssh in: Oct 01 18:35:41 osmc hyperiond[637]: EFFECTENGINE INFO: Cleaning up Python interpreter
    ssh in: Oct 01 18:35:41 osmc systemd[1]: Stopped Hyperion Systemd service.
    ssh in: Oct 01 18:35:42 osmc systemd[1]: Starting Hyperion Systemd service...
    ssh in: Oct 01 18:35:42 osmc systemd[1]: Started Hyperion Systemd service.
    ssh in: Oct 01 18:35:42 osmc hyperiond[660]: Hyperion Ambilight Deamon (660)
    ssh in: Oct 01 18:35:42 osmc hyperiond[660]: Version : V1.03.3 (brindosch-2fbbcff/2f01dfa-1495880388
    ssh in: Oct 01 18:35:42 osmc hyperiond[660]: Build Time: Jun 3 2017 02:06:37
    ssh in: Oct 01 18:35:42 osmc hyperiond[660]: INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: HYPERION INFO: ColorTransform 'default' => [0; 127]
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: HYPERION INFO: ColorCorrection 'default' => [0; 127]
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: HYPERION INFO: ColorAdjustment 'default' => [0; 127]
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: LEDDEVICE INFO: configuration:
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: {
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: "colorOrder" : "rgb",
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: "delayAfterConnect" : 0,
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: "name" : "MyHyperionConfig",
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: "output" : "/dev/ttyUSB0",
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: "rate" : 500000,
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: "type" : "adalight"
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: }
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: Opening UART: /dev/ttyUSB0
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: 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.)
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: HYPERION INFO: Json forward to 127.0.0.1:19446
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: HYPERION INFO: Proto forward to 127.0.0.1:19447
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: INFO: Creating linear smoothing
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=200;updateDelay=0
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: EFFECTENGINE INFO: 27 effects loaded from directory /usr/share/hyperion/effects
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: EFFECTENGINE INFO: Initializing Python interpreter
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: INFO: Hyperion started and initialised
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: INFO: Kodi checker created and started
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: INFO: Json server created and started on port 19444
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: PROTOCONNECTION INFO: Connecting to Hyperion: 127.0.0.1:19447
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: INFO: Proto server created and started on port 19445
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: V4L2GRABBER INFO: width=720 height=480
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: V4L2GRABBER INFO: pixel format=YUYV
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: BLACKBORDER INFO: threshold set to 0 (0)
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: BLACKBORDER INFO: mode:default
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: V4L2GRABBER INFO: signal threshold set to: {0,0,0}
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: V4L2GRABBER INFO: started
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: INFO: V4L2 grabber created and started
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: Opening UART: /dev/ttyUSB0
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: 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.)
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: Device blocked for 3000 ms
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: KODICHECK ERROR: Kodi Connection error (0)
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: BORDER SWITCH REQUIRED!!
    ssh in: Oct 01 18:35:43 osmc hyperiond[660]: CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
    -----

    Updated operations seems to resolve the USB error and configuration upload, but LEDs are not functioning.


    - Open Hypercon
    - Validate Device settings
    - Save settings and Config again
    - Open SSH tab
    - Connect
    - Show Traffic - shows connected
    - Stop Hypercon
    - GetLog shows no error but is stopped
    - Set local config file
    - Send Config
    - <no message regarding completion. assuming uploaded>
    - Start Hypercon
    - Get Log (indicates the most recent config settings being displayed)
    - LEDs are not displaying

    After restarting HyperCon several times, it now seems that it loads partial configuration into the UI.
    The initial top block for Device on Hardware seems to only retain Type:. All other settings revert to default.
    Grabber/External and SSH seems to load with previous saved information.


    Tested the following to validate.
    - Cleared all current config files
    - Closed Hypercon
    - Opened Hypercon
    - Set and Saved configuration and settings files
    - Closed Hypercon
    - Opened Hypercon
    - Device block is reset except for Type: value


    So the main Device block does not load in saved values, but all other panels appear to be ok.

    No. That didn't work.
    The log still indicates an error for /dev/ttyUSB0
    The configuration jcon file indicates the change /dev/ttyACM0.


    Looks like HyperCon is not identifying the correct configuration file even though it was identified using [Local Config Path]. Unless I am reading the error incorrectly.
    Or does this error indicate a problem at the USB port on the RPi?
    I have changed ports also to test that as well.


    Current error;
    ----
    Opening UART: /dev/ttyUSB0
    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.)
    ----


    Current loaded configuration on SSH panel;
    ----
    "device" :
    {
    "name" : "MyHyperionConfig",
    "type" : "adalight",
    "output" : "/dev/ttyACM0",
    "rate" : 500000,
    "delayAfterConnect" : 0,
    "colorOrder" : "rgb"
    },
    ----

    Error in log.
    ----
    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.)
    ----


    Hardware;
    RPi-3
    Arduino UNO
    LEDs WS2812B


    Essentially using this setup from 'The Mad Scientist' from YouTube regarding any configuration questions.

    Externer Inhalt www.youtube.com
    Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
    Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.


    OSMC installed and running.
    OSMC Wifi configured and connected. Verified on network configuration also.
    KODI running.


    Appears to connect based on network configuration. I had also tested with an incorrect IP as well and it indicated a failure as expected so does not appear to be a connection issue.
    Also tested different USB ports on the RPi. No difference.


    Get Log indicates error listed.
    No error if I just [Send Config]. Does not appear to do anything or end any operation/function. Unsure if it does indicate a complete of the action.


    PDF of HyperCon configuration attached.


    FYI - LEDs do work. Tested direct from Arduino example sketches.