Beiträge von Wim

    Output from udevadm info -n /dev/ttyUSB0:


    P: /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/ttyUSB0/tty/ttyUSB0
    N: ttyUSB0
    S: serial/by-id/usb-Argolis_BV_Smartreader_plus-if00-port0
    S: serial/by-path/platform-3f980000.usb-usb-0:1.5:1.0-port0
    E: DEVLINKS=/dev/serial/by-id/usb-Argolis_BV_Smartreader_plus-if00-port0 /dev/serial/by-path/platform-3f980000.usb-usb-0:1.5:1.0-port0
    E: DEVNAME=/dev/ttyUSB0
    E: DEVPATH=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/ttyUSB0/tty/ttyUSB0
    E: ID_BUS=usb
    E: ID_MODEL=Smartreader_plus
    E: ID_MODEL_ENC=Smartreader\x20plus
    E: ID_MODEL_FROM_DATABASE=FT232 USB-Serial (UART) IC
    E: ID_MODEL_ID=6001
    E: ID_PATH=platform-3f980000.usb-usb-0:1.5:1.0
    E: ID_PATH_TAG=platform-3f980000_usb-usb-0_1_5_1_0
    E: ID_REVISION=0400
    E: ID_SERIAL=Argolis_BV_Smartreader_plus
    E: ID_TYPE=generic
    E: ID_USB_DRIVER=ftdi_sio
    E: ID_USB_INTERFACES=:ffffff:
    E: ID_USB_INTERFACE_NUM=00
    E: ID_VENDOR=Argolis_BV
    E: ID_VENDOR_ENC=Argolis\x20BV
    E: ID_VENDOR_FROM_DATABASE=Future Technology Devices International, Ltd
    E: ID_VENDOR_ID=0403
    E: MAJOR=188
    E: MINOR=0
    E: SUBSYSTEM=tty
    E: TAGS=:systemd:
    E: USEC_INITIALIZED=63034

    That's the key bit of info.


    You mean the last line?


    I don't think so. Because when I had ttyUSB0 setup my oscam didn't work anymore and that's because my smargo cardreader is already setup on that port:
    2017/07/15 21:51:18 16B8AF0 r (reader) Ziggo [mouse] Reader initialized (device=/dev/ttyUSB0, detect=cd, mhz=357, cardmhz=357)
    And when I setup hyperion on another port, oscam works again.

    Thank you for helping me.


    Before:
    [ 0.168926] usbcore: registered new interface driver usbfs
    [ 0.169041] usbcore: registered new interface driver hub
    [ 0.169203] usbcore: registered new device driver usb
    [ 1.343663] usbcore: registered new interface driver smsc95xx
    [ 1.745438] dwc_otg 3f980000.usb: DWC OTG Controller
    [ 1.745494] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
    [ 1.745548] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
    [ 1.745936] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 1.745955] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 1.745972] usb usb1: Product: DWC OTG Controller
    [ 1.745988] usb usb1: Manufacturer: Linux 4.4.21-v7+ dwc_otg_hcd
    [ 1.746004] usb usb1: SerialNumber: 3f980000.usb
    [ 1.748452] usbcore: registered new interface driver usb-storage
    [ 1.803850] usbcore: registered new interface driver usbhid
    [ 1.803862] usbhid: USB HID core driver
    [ 2.122280] usb 1-1: new high-speed USB device number 2 using dwc_otg
    [ 2.322639] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
    [ 2.322668] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [ 2.602276] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
    [ 2.702715] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
    [ 2.702749] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [ 2.767245] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:f8:e8:f0
    [ 3.002350] usb 1-1.5: new full-speed USB device number 4 using dwc_otg
    [ 3.117657] usb 1-1.5: New USB device found, idVendor=0403, idProduct=6001
    [ 3.117689] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 3.117706] usb 1-1.5: Product: Smartreader plus
    [ 3.117723] usb 1-1.5: Manufacturer: Argolis BV
    [ 3.117738] usb 1-1.5: SerialNumber:
    [ 5.170676] usbcore: registered new interface driver usbserial
    [ 5.170831] usbcore: registered new interface driver usbserial_generic
    [ 5.170954] usbserial: USB Serial support registered for generic
    [ 5.181894] usbcore: registered new interface driver ftdi_sio
    [ 5.182052] usbserial: USB Serial support registered for FTDI USB Serial Device
    [ 5.184019] usb 1-1.5: Detected FT232BM
    [ 5.185053] usb 1-1.5: FTDI USB Serial Device converter now attached to ttyUSB0
    [ 5.322406] usb 1-1.4: new high-speed USB device number 5 using dwc_otg
    [ 5.423693] usb 1-1.4: New USB device found, idVendor=13fd, idProduct=1340
    [ 5.423723] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 5.423740] usb 1-1.4: Product: External
    [ 5.423756] usb 1-1.4: Manufacturer: Generic
    [ 5.423771] usb 1-1.4: SerialNumber: 57442D574D415A4135303037
    [ 5.433073] usb-storage 1-1.4:1.0: USB Mass Storage device detected
    [ 5.442904] scsi host0: usb-storage 1-1.4:1.0
    [ 1556.886350] usb 1-1.2: new full-speed USB device number 6 using dwc_otg
    [ 1557.001247] usb 1-1.2: New USB device found, idVendor=2a03, idProduct=0057
    [ 1557.001279] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
    [ 1557.001296] usb 1-1.2: Product: Arduino UNO WiFi
    [ 1557.001312] usb 1-1.2: Manufacturer: Arduino srl (www.arduino.org)
    [ 1557.001328] usb 1-1.2: SerialNumber: 556323138383517121F0
    [ 1557.132853] usbcore: registered new interface driver cdc_acm
    [ 7464.895176] usb 1-1.2: USB disconnect, device number 6
    [ 7748.811559] usb 1-1.2: new full-speed USB device number 7 using dwc_otg
    [ 7748.927248] usb 1-1.2: New USB device found, idVendor=2a03, idProduct=0057
    [ 7748.927304] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
    [ 7748.927316] usb 1-1.2: Product: Arduino UNO WiFi
    [ 7748.927327] usb 1-1.2: Manufacturer: Arduino srl (www.arduino.org)
    [ 7748.927337] usb 1-1.2: SerialNumber: 556323138383517121F0
    [ 8434.752407] usb 1-1.2: USB disconnect, device number 7
    [11702.498224] usb 1-1.2: new full-speed USB device number 8 using dwc_otg
    [11702.613218] usb 1-1.2: New USB device found, idVendor=2a03, idProduct=0057
    [11702.613250] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
    [11702.613267] usb 1-1.2: Product: Arduino UNO WiFi
    [11702.613283] usb 1-1.2: Manufacturer: Arduino srl (www.arduino.org)
    [11702.613299] usb 1-1.2: SerialNumber: 556323138383517121F0
    [31360.560954] usb 1-1.2: USB disconnect, device number 8
    [31478.062950] usb 1-1.2: new full-speed USB device number 9 using dwc_otg
    [31478.177903] usb 1-1.2: New USB device found, idVendor=2a03, idProduct=0057
    [31478.177928] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
    [31478.177938] usb 1-1.2: Product: Arduino UNO WiFi
    [31478.177949] usb 1-1.2: Manufacturer: Arduino srl (www.arduino.org)
    [31478.177975] usb 1-1.2: SerialNumber: 556323138383517121F0
    [31758.949947] usb 1-1.2: USB disconnect, device number 9



    After:
    [ 0.168926] usbcore: registered new interface driver usbfs
    [ 0.169041] usbcore: registered new interface driver hub
    [ 0.169203] usbcore: registered new device driver usb
    [ 1.343663] usbcore: registered new interface driver smsc95xx
    [ 1.745438] dwc_otg 3f980000.usb: DWC OTG Controller
    [ 1.745494] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
    [ 1.745548] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
    [ 1.745936] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 1.745955] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 1.745972] usb usb1: Product: DWC OTG Controller
    [ 1.745988] usb usb1: Manufacturer: Linux 4.4.21-v7+ dwc_otg_hcd
    [ 1.746004] usb usb1: SerialNumber: 3f980000.usb
    [ 1.748452] usbcore: registered new interface driver usb-storage
    [ 1.803850] usbcore: registered new interface driver usbhid
    [ 1.803862] usbhid: USB HID core driver
    [ 2.122280] usb 1-1: new high-speed USB device number 2 using dwc_otg
    [ 2.322639] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
    [ 2.322668] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [ 2.602276] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
    [ 2.702715] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
    [ 2.702749] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [ 2.767245] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:f8:e8:f0
    [ 3.002350] usb 1-1.5: new full-speed USB device number 4 using dwc_otg
    [ 3.117657] usb 1-1.5: New USB device found, idVendor=0403, idProduct=6001
    [ 3.117689] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 3.117706] usb 1-1.5: Product: Smartreader plus
    [ 3.117723] usb 1-1.5: Manufacturer: Argolis BV
    [ 3.117738] usb 1-1.5: SerialNumber:
    [ 5.170676] usbcore: registered new interface driver usbserial
    [ 5.170831] usbcore: registered new interface driver usbserial_generic
    [ 5.170954] usbserial: USB Serial support registered for generic
    [ 5.181894] usbcore: registered new interface driver ftdi_sio
    [ 5.182052] usbserial: USB Serial support registered for FTDI USB Serial Device
    [ 5.184019] usb 1-1.5: Detected FT232BM
    [ 5.185053] usb 1-1.5: FTDI USB Serial Device converter now attached to ttyUSB0
    [ 5.322406] usb 1-1.4: new high-speed USB device number 5 using dwc_otg
    [ 5.423693] usb 1-1.4: New USB device found, idVendor=13fd, idProduct=1340
    [ 5.423723] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 5.423740] usb 1-1.4: Product: External
    [ 5.423756] usb 1-1.4: Manufacturer: Generic
    [ 5.423771] usb 1-1.4: SerialNumber: 57442D574D415A4135303037
    [ 5.433073] usb-storage 1-1.4:1.0: USB Mass Storage device detected
    [ 5.442904] scsi host0: usb-storage 1-1.4:1.0
    [ 1556.886350] usb 1-1.2: new full-speed USB device number 6 using dwc_otg
    [ 1557.001247] usb 1-1.2: New USB device found, idVendor=2a03, idProduct=0057
    [ 1557.001279] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
    [ 1557.001296] usb 1-1.2: Product: Arduino UNO WiFi
    [ 1557.001312] usb 1-1.2: Manufacturer: Arduino srl (www.arduino.org)
    [ 1557.001328] usb 1-1.2: SerialNumber: 556323138383517121F0
    [ 1557.132853] usbcore: registered new interface driver cdc_acm
    [ 7464.895176] usb 1-1.2: USB disconnect, device number 6
    [ 7748.811559] usb 1-1.2: new full-speed USB device number 7 using dwc_otg
    [ 7748.927248] usb 1-1.2: New USB device found, idVendor=2a03, idProduct=0057
    [ 7748.927304] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
    [ 7748.927316] usb 1-1.2: Product: Arduino UNO WiFi
    [ 7748.927327] usb 1-1.2: Manufacturer: Arduino srl (www.arduino.org)
    [ 7748.927337] usb 1-1.2: SerialNumber: 556323138383517121F0
    [ 8434.752407] usb 1-1.2: USB disconnect, device number 7
    [11702.498224] usb 1-1.2: new full-speed USB device number 8 using dwc_otg
    [11702.613218] usb 1-1.2: New USB device found, idVendor=2a03, idProduct=0057
    [11702.613250] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
    [11702.613267] usb 1-1.2: Product: Arduino UNO WiFi
    [11702.613283] usb 1-1.2: Manufacturer: Arduino srl (www.arduino.org)
    [11702.613299] usb 1-1.2: SerialNumber: 556323138383517121F0
    [31360.560954] usb 1-1.2: USB disconnect, device number 8
    [31478.062950] usb 1-1.2: new full-speed USB device number 9 using dwc_otg
    [31478.177903] usb 1-1.2: New USB device found, idVendor=2a03, idProduct=0057
    [31478.177928] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
    [31478.177938] usb 1-1.2: Product: Arduino UNO WiFi
    [31478.177949] usb 1-1.2: Manufacturer: Arduino srl (www.arduino.org)
    [31478.177975] usb 1-1.2: SerialNumber: 556323138383517121F0
    [31758.949947] usb 1-1.2: USB disconnect, device number 9
    [31805.781201] usb 1-1.2: new full-speed USB device number 10 using dwc_otg
    [31805.896094] usb 1-1.2: New USB device found, idVendor=2a03, idProduct=0057
    [31805.896119] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
    [31805.896129] usb 1-1.2: Product: Arduino UNO WiFi
    [31805.896140] usb 1-1.2: Manufacturer: Arduino srl (www.arduino.org)
    [31805.896151] usb 1-1.2: SerialNumber: 556323138383517121F0



    But how do I extract the port from this data??

    I changed this:
    #define serialRate 115200 // use 115200 for ftdi based boards
    //#define serialRate 500000 // use 115200 for ftdi based boards


    to:
    #define serialRate 115200 // use 115200 for ftdi based boards
    //#define serialRate 500000 // use 115200 for ftdi based boards


    But that doesn't improve uart on my pi.



    Is this correct:
    #include <Adafruit_NeoPixel.h>


    #include "FastLED.h"


    #define ANALOG_MODE_AVERAGE 0
    #define ANALOG_MODE_LAST_LED 1


    /**************************************
    S E T U P


    set following values to your needs
    **************************************/


    #define INITIAL_LED_TEST_ENABLED true
    #define INITIAL_LED_TEST_BRIGHTNESS 32 // 0..255
    #define INITIAL_LED_TEST_TIME_MS 500 // 10..


    // Number of leds in your strip. set to "1" and ANALOG_OUTPUT_ENABLED to "true" to activate analog only
    // As of 26/1/2017:
    // 582 leaves ZERO bytes free and this
    // 410 is ok
    // tested with 500 leds and is fine (despite the warning)
    #define MAX_LEDS 300


    // type of your led controller, possible values, see below
    #define LED_TYPE WS2813


    // 3 wire (pwm): NEOPIXEL BTM1829 TM1812 TM1809 TM1804 TM1803 UCS1903 UCS1903B UCS1904 UCS2903 WS2812 WS2852
    // S2812B SK6812 SK6822 APA106 PL9823 WS2811 WS2813 APA104 WS2811_40 GW6205 GW6205_40 LPD1886 LPD1886_8BIT
    // 4 wire (spi): LPD8806 WS2801 WS2803 SM16716 P9813 APA102 SK9822 DOTSTAR


    // For 3 wire led stripes line Neopixel/Ws2812, which have a data line, ground, and power, you just need to define DATA_PIN.
    // For led chipsets that are SPI based (four wires - data, clock, ground, and power), both defines DATA_PIN and CLOCK_PIN are needed


    // DATA_PIN, or DATA_PIN, CLOCK_PIN
    #define LED_PINS 6 // 3 wire leds
    //#define LED_PINS 6, 13 // 4 wire leds


    #define COLOR_ORDER GRB // colororder of the stripe, set RGB in hyperion


    #define OFF_TIMEOUT 15000 // ms to switch off after no data was received, set 0 to deactivate


    // analog rgb uni color led stripe - using of hyperion smoothing is recommended
    // ATTENTION this pin config is default for atmega328 based arduinos, others might work to
    // if you have flickering analog leds this might be caused by unsynced pwm signals
    // try other pins is more or less the only thing that helps
    #define ANALOG_OUTPUT_ENABLED false
    #define ANALOG_MODE ANALOG_MODE_LAST_LED // use ANALOG_MODE_AVERAGE or ANALOG_MODE_LAST_LED
    #define ANALOG_GROUND_PIN 8 // additional ground pin to make wiring a bit easier
    #define ANALOG_RED_PIN 9
    #define ANALOG_GREEN_PIN 10
    #define ANALOG_BLUE_PIN 11


    // overall color adjustments
    #define ANALOG_BRIGHTNESS_RED 255 // maximum brightness for analog 0-255
    #define ANALOG_BRIGHTNESS_GREEN 255 // maximum brightness for analog 0-255
    #define ANALOG_BRIGHTNESS_BLUE 255 // maximum brightness for analog 0-255


    #define BRIGHTNESS 255 // maximum brightness 0-255
    #define DITHER_MODE BINARY_DITHER // BINARY_DITHER or DISABLE_DITHER
    #define COLOR_TEMPERATURE CRGB(255,255,255) // RGB value describing the color temperature
    #define COLOR_CORRECTION TypicalLEDStrip // predefined fastled color correction
    //#define COLOR_CORRECTION CRGB(255,255,255) // or RGB value describing the color correction


    // Baudrate, higher rate allows faster refresh rate and more LEDs
    //#define serialRate 460800 // use 115200 for ftdi based boards
    //#define serialRate 115200 // use 115200 for ftdi based boards
    #define serialRate 500000 // use 115200 for ftdi based boards



    /**************************************
    A D A L I G H T C O D E


    no user changes needed
    **************************************/
    ........


    And is there a way to check if the arduino receives data and what data?


    BTW I didn't

    Your doing good. A lot of the hyperion setup will require you to do exactly what your doing now, puzzling it out for your self.


    Thanks, but I hoped to get more clues from other members.


    Most modern Arduino's can handle 500000 baudrate.


    Okay. But what's the proper way to increase uart on raspbian jessie? I read several, with one warning about voltage.


    I have never used that app. It kind of looks like a ripoff/clone of the Official Hyperion app. ( https://play.google.com/store/…=nl.hyperion.hyperionfree ) or non free no ad's ( https://play.google.com/store/…yperion.hyperionpro&hl=en )


    You are wright, it does. But THIS app let's me know if I'm connected or not, while the official app doesn't!


    I don't understand this either (https://hyperion-project.org/t…-ws2801-ws2812b-apa102.8/:(
    "Non-video capture solution WS2801 / WS2812 with Raspberry Pi and Arduino
    LED data pins -> Arduino
    LED power pins -> 5v adapter -> only GND connected to Arduino as well (see tutorial)
    Arduino -> USB cable -> Raspberry Pi
    Raspberry Pi -> network / power connection"


    I don't understand because it seems to cause random data being sent to MY leds.



    And should I use adalight, or ws281x-SPI for my ws2813 as suggested elsewhere on this forum?


    And how do I figure out what port I should use? Not ttyUSB0, but what then?


    And a question: how does the arduino "know" what sketch to use? I uploaded a couple of sketches to the arduino. Or should the .ino file have the name of the 'type'?


    So lots of variables. Somebody must have some answers for me, not?


    I really hope so.


    Wim

    I've connected the arduino like this (https://www.tweaking4all.com/h…duino/arduino-ws2812-led/)

    Computer USB means in my case connected to Pi.


    Strange thing is that when it's connected like this, when I touch the threads, leds change color. Also when I detach the black jumper cable and put it in again and repeat this, colors keep changing.


    When I pull the GND from the arduino, this does not happen anymore.


    Like I wrote in post #1, I think the leds are okay.


    Is it then indeed the baudrate?
    "You will need an Arduino Uno R3 or better (anything capable of > 115200 baud rate)" (https://hyperion-project.org/t…-ws2801-ws2812b-apa102.8/) like Rick164 writes?


    ??????
    ??
    ?
    .
    ..........

    Oh OK :) Though you do the main part of IP addresses before the colon the 'proper' way?


    For us it's different than in UK.


    Have you seen how far I've come? Getting close now.



    Leds not responsive to changes in windows, so I disabled hyperion screen capture.
    But than neither nor via android apps, nor via webinterface responsive.


    Also NO led bootsequence.


    So, first not use hyperion screen capture, only android app. And trying to get the bootsequence. Further from there on.


    Any help appreciated.

    Changed json like this
    "name" : "MyPi",
    "type" : "adalight",
    "output" : "/dev/ttyACM0",
    "rate" : 460800,
    "colorOrder" : "grb"


    and I should be ready to go.
    Fingers crossed.

    Edited and uploaded this sketch to the arduino.


    Have you programed your arduino with the developers preferred arduino sketch from (https://github.com/hyperion-pr…firmware/arduino/adalight )?


    About increasing buffer size (from: https://hyperion-project.org/t…-ws2801-ws2812b-apa102.8/)
    instructed here:
    http://www.hobbytronics.co.uk/arduino-serial-buffer-size
    I don't know how, because it's different with me:
    hardwareserial.cpp and usbapi.h don't have
    "#define SERIAL_BUFFER_SIZE 64", so I can't change it. I attached these 2 files (renamed to txt, otherwise I couldn't upload).


    Than I had to "do a few steps to make sure the baud rate is high enough to accommodate the data being send from the Raspberry Pi to your Arduino".

    Seems to be in /boot/cmdline.txt
    rather than /flash/config.txt

    standard is 115200
    It seems tricky for me to do, reading some websites. Hoping it's not necessary at all.

    STARTING ALL OVER AGAIN


    Just to be clear. I'm running Raspbian Jessie.



    Just found out that ttyUSB0 is being used.
    But I don't know how to find the port the arduino uses.


    I can't do this, probably because I'm not running openelec,

    So I get:


    Before plugging in arduino:


    After plugging in arduino:


    So arduino is device 006. But which port?



    Only finds USB0.


    I found this:
    "/dev/ttyACM0 is a USB communication device (CDC) of sub-type "abstract control model" (ACM). That is what the Arduino is."


    Tried that before indeed!
    ls /dev/ttyACM* gives me ttyACM0. So I'm going to try that.


    Starting windows hypercon:



    Installing like this:
    ssh out: cd /tmp && wget -nv -N https://raw.github.com/hyperio…r/bin/install_hyperion.sh && chmod +x install_hyperion.sh && sudo sh ./install_hyperion.sh HyperConInstall ; rm install_hyperion.sh
    ssh out: 'Last-modified'-kopregel ontbreekt -- tijdsstempels worden uitgeschakeld.
    ssh out: 2017-07-15 14:10:47 URL:https://raw.githubusercontent.…r/bin/install_hyperion.sh [14539/14539] -> "install_hyperion.sh" [1]
    ssh out: sudo: geen terminal aanwezig en geen wachtwoordvraag(askpass)-programma opgegeven


    Think this has to do with visudo, saw that in hyperion webapp guide. Did the steps there, also:
    *Required if you are running Raspbian / Debian:*


    Update the visudo list:
    ```
    pkexec visudo
    ```


    In the section "# Cmnd alias specification" add:
    ```
    Cmnd_Alias WEBDAEMONS = /etc/init.d/hyperion
    ```


    In the section "#includedir /etc/sudoers.d" add:
    ```
    www-data ALL = (root) NOPASSWD: WEBDAEMONS
    ```
    BUT I DON'T HAVE THIS FILE: /home/pi/www/conf/Configuration.php. So don't know what to do with these line:
    Open the configuration file:
    ```
    sudo nano /home/pi/www/conf/Configuration.php
    ```
    Don't know
    Update the configuration for "serverController"
    ```
    'serverController' => 'sudo /etc/init.d',
    ```


    I read: "Please consider adding local content in /etc/sudoers.d/ instead of directly modifying this file.".
    Did that. Seems I made some changes regarding user pi here in the past. I have to check my notes about this.


    This makes a lot of difference!!!!
    Hyperion screen capture: no errors.
    Webinterface: no errors.


    However, when I start webinterface hyperion screen capture gives errors.


    Android apps: no errors.


    Logs seems responsive, to for example start and stops.


    Now, the led's don't seem to response like they should.
    So, next chapter here.


    BUT, when I detach the ledstrip, I get:
    ssh in: jul 15 14:58:37 raspberrypi hyperiond[26819]: Opening UART: /dev/ttyACM0
    ssh in: jul 15 14:58:37 raspberrypi hyperiond[26819]: 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: jul 15 14:58:37 raspberrypi hyperiond[26819]: Device blocked for 3000 ms
    ssh in: jul 15 14:58:37 raspberrypi hyperiond[26819]: JSONSERVER INFO: New connection
    ssh in: jul 15 14:58:37 raspberrypi hyperiond[26819]: BLACKBORDER INFO: threshold set to 0.01 (3)


    While I don't have /home/sascha . Maybe some program leftover/incorrect?



    First, back to arduino.

    Your port numbers don't appear to be whole numbers ie 19.444 and 19.445, they should be 19,444 and 19,445, as in nineteen thousand, four hundred... rather than nineteen point four...


    In the Netherlands, it's exactly the other way round. So "19.445" is ninety thousand, four hundred and forty four.

    Read the first 2 replies again.


    First post:
    What's up with the port number? It's usually a whole number like 22


    Second post:
    Yes the target IP is the IP of your RPi. You can find your IP of the Rpi wile logged in to the Pi (via keboard and monitor) with the ifconfig command on a console prompt on the Rpi. Biggles is correct, default SSH port for Raspbian is port 22, that is assuming that you have enabled SSH via raspi-config utility during the OS install of Raspbian. The default username of a Raspbian install is usually "Pi". And the default Raspbian password is "raspberry".



    I've got is setup like this:


    Or do I misunderstand you here?
    It's port 22 and username for pi is wim, password ********


    Last part of the log:
    ssh in: jul 14 11:27:54 raspberrypi systemd[1]: Starting Hyperion Systemd service...
    ssh in: jul 14 11:27:54 raspberrypi systemd[1]: Started Hyperion Systemd service.
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: Hyperion Ambilight Deamon (14292)
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: Version : V1.03.3 (brindosch-2fbbcff/2f01dfa-1495880388
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: Build Time: Jun 3 2017 02:06:37
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: HYPERION INFO: ColorTransform 'default' => [0; 45]
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: HYPERION INFO: ColorCorrection 'default' => [0; 45]
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: HYPERION INFO: ColorAdjustment 'default' => [0; 45]
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: LEDDEVICE INFO: configuration:
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: {
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: "colorOrder" : "rgb",
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: "delayAfterConnect" : 0,
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: "name" : "MyHyperionConfig",
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: "output" : "/dev/ttyUSB0",
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: "rate" : 100000,
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: "type" : "adalight"
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: }
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: Opening UART: /dev/ttyUSB0
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: HYPERION INFO: Json forward to 192.168.2.1:19446
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: HYPERION INFO: Proto forward to 192.168.2.1:19447
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: INFO: Creating linear smoothing
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=200;updateDelay=0
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: EFFECTENGINE INFO: 27 effects loaded from directory /usr/share/hyperion/effects
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: EFFECTENGINE INFO: Initializing Python interpreter
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: INFO: Hyperion started and initialised
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: BLACKBORDER INFO: threshold set to 0 (0)
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: BLACKBORDER INFO: mode:default
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: started
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: INFO: Kodi checker created and started
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: INFO: Json server created and started on port 19444
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: PROTOCONNECTION INFO: Connecting to Hyperion: 192.168.2.1:19447
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: INFO: Proto server created and started on port 19445
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: DISPMANXGRABBER INFO: Display opened with resolution: 1600x1200
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: BLACKBORDER INFO: threshold set to 0 (0)
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: BLACKBORDER INFO: mode:default
    ssh in: jul 14 11:27:54 raspberrypi hyperiond[14292]: INFO: Frame grabber created and started


    So maybe that's working correct now?


    But I still have this


    in windows with hyperion screen capture.


    And kodi-addons is also still giving me issue:
    13:53:44.226 T:4820 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
    13:53:44.418 T:4820 NOTICE: initialize done
    13:53:44.418 T:4820 NOTICE: Running the application...
    13:53:44.433 T:4820 NOTICE: CWebServer[8080]: Started
    13:53:44.433 T:4820 NOTICE: starting upnp client
    13:53:44.455 T:8484 NOTICE: ES: Starting UDP Event server on port 9777
    13:53:44.456 T:8484 NOTICE: UDP: Listening on port 9777 (ipv6 : false)
    13:53:45.321 T:8152 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
    Error Type: <type 'exceptions.ImportError'>
    Error Contents: No module named google.protobuf
    Traceback (most recent call last):
    File "D:\Prive\Kodi\Kodi 17\addons\hyperion.kodi-master\addon.py", line 36, in <module>
    from state import DisconnectedState
    File "D:\Prive\Kodi\Kodi 17\addons\hyperion.kodi-master\resources\lib\state.py", line 5, in <module>
    from hyperion.Hyperion import Hyperion
    File "D:\Prive\Kodi\Kodi 17\addons\hyperion.kodi-master\resources\lib\hyperion\Hyperion.py", line 28, in <module>
    from message_pb2 import HyperionRequest
    File "D:\Prive\Kodi\Kodi 17\addons\hyperion.kodi-master\resources\lib\hyperion\message_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
    ImportError: No module named google.protobuf
    -->End of Python script error report<--


    I'm lost here. Really. I'm sorry.


    Wim

    I couldn't get it working so I started from scratch. Deinstalled hyperion screen capture, put a backup image back on my pi.
    Installed hyperion from hypercon, see logs:


    SSH Traffic:
    ssh connected
    ssh out: cd /tmp && wget -nv -N https://raw.github.com/hyperio…r/bin/install_hyperion.sh && chmod +x install_hyperion.sh && sudo sh ./install_hyperion.sh HyperConInstall ; rm install_hyperion.sh
    ssh out: 'Last-modified'-kopregel ontbreekt -- tijdsstempels worden uitgeschakeld.
    ssh out: 2017-07-14 10:31:19 URL:https://raw.githubusercontent.…r/bin/install_hyperion.sh [14539/14539] -> "install_hyperion.sh" [1]
    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: ---> Install/Update Hyperion dependencies (This may take a while)
    ssh in: ---> Downloading the appropriate Hyperion release
    ssh out: 2017-07-14 10:32:11 URL:https://netcologne.dl.sourcefo…ease/hyperion_rpi2.tar.gz [1639953/1639953] -> "-" [1]
    ssh in: ---> Installing systemd script
    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: *******************************************************************************


    and send config file (hyperion.config.json) in hypercon via ssh to pi:
    sftp Send Hyperion Config - Sourcepath: , Targetpath: /etc/hyperion/, Filename: hyperion.config.json


    BUT: I checked and there was NO file in that folder!
    I manually copied the file in.


    There was nothing added in config.txt, so I added manually:
    dtparam=spi=on


    Maybe there's a permissions problem?

    On my windows pc running Kodi, this is my config for Hyperion ambilight addon


    (192.168.2.9 is Raspberry pi)


    I get an error about addon Hyperion ambilight, Kodi logs::


    0:44:48.830 T:6736 WARNING: CAddonMgr: 'script.module.protobuf' required by 'script.service.hyperion' is missing. Add-on may not function correctly
    10:44:49.064 T:6360 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
    Error Type: <type 'exceptions.ImportError'>
    Error Contents: No module named google.protobuf
    Traceback (most recent call last):
    File "D:\Prive\Kodi\Kodi 17\addons\hyperion.kodi-master\addon.py", line 36, in <module>
    from state import DisconnectedState
    File "D:\Prive\Kodi\Kodi 17\addons\hyperion.kodi-master\resources\lib\state.py", line 5, in <module>
    from hyperion.Hyperion import Hyperion
    File "D:\Prive\Kodi\Kodi 17\addons\hyperion.kodi-master\resources\lib\hyperion\Hyperion.py", line 28, in <module>
    from message_pb2 import HyperionRequest
    File "D:\Prive\Kodi\Kodi 17\addons\hyperion.kodi-master\resources\lib\hyperion\message_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
    ImportError: No module named google.protobuf
    -->End of Python script error report<--


    Found this:
    https://hyperion-project.org/t…-enabling-the-add-on.819/


    I probably should do this on windows, but tried anyway on my pi:
    sudo apt-get install python-protobuf


    Stopped an restarted addon. Same problem.


    Kodi addon still error. Logs:
    10:58:58.210 T:728 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
    10:58:58.322 T:728 NOTICE: initialize done
    10:58:58.322 T:728 NOTICE: Running the application...
    10:58:58.325 T:728 NOTICE: CWebServer[8080]: Started
    10:58:58.325 T:728 NOTICE: starting upnp client
    10:58:58.366 T:6296 NOTICE: ES: Starting UDP Event server on port 9777
    10:58:58.366 T:6296 NOTICE: UDP: Listening on port 9777 (ipv6 : false)
    10:58:58.478 T:8304 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
    Error Type: <type 'exceptions.ImportError'>
    Error Contents: No module named google.protobuf
    Traceback (most recent call last):
    File "D:\Prive\Kodi\Kodi 17\addons\hyperion.kodi-master\addon.py", line 36, in <module>
    from state import DisconnectedState
    File "D:\Prive\Kodi\Kodi 17\addons\hyperion.kodi-master\resources\lib\state.py", line 5, in <module>
    from hyperion.Hyperion import Hyperion
    File "D:\Prive\Kodi\Kodi 17\addons\hyperion.kodi-master\resources\lib\hyperion\Hyperion.py", line 28, in <module>
    from message_pb2 import HyperionRequest
    File "D:\Prive\Kodi\Kodi 17\addons\hyperion.kodi-master\resources\lib\hyperion\message_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
    ImportError: No module named google.protobuf
    -->End of Python script error report<--
    10:58:59.825 T:8732 NOTICE: EPG::CEpgContainer::Start - EPG thread started
    10:59:05.433 T:8732 ERROR: XFILE::CDirectory::GetDirectory - Error getting


    Have to try to get this protobuf on windows.....NO CLUE here. HELP.......

    Will try further with hyperionscreencap instead of Kodi addon. Installed the program.
    Changed setup:

    Get this error:



    Checked if hyperion is running:

    It isn't.


    Started hyperion service manually:
    sudo service hyperion start

    Seems okay, but "BORDER SWITCH REQUIRED!!". No idea what to do about it.


    AND look at the port settings. Do they match my hypercon settings (protoconnection 19447, proto server 19445)?



    I'm lost now. Help appreciated very much.


    Wim





    ps I'm running Jessie on my Pi, maybe somethings changed?


    I got really far I think, but I thought I should restart from scratch and now I can't get it back to work:


    ssh in: jul 13 16:36:22 raspberrypi systemd[1]: Started Hyperion Systemd service.
    ssh in: jul 13 16:36:22 raspberrypi hyperiond[1965]: Hyperion Ambilight Deamon (1965)
    ssh in: jul 13 16:36:22 raspberrypi hyperiond[1965]: Version : V1.03.3 (brindosch-2fbbcff/2f01dfa-1495880388
    ssh in: jul 13 16:36:22 raspberrypi hyperiond[1965]: Build Time: Jun 3 2017 02:06:37
    ssh in: jul 13 16:36:22 raspberrypi hyperiond[1965]: ERROR: No valid config found
    ssh in: jul 13 16:36:22 raspberrypi systemd[1]: hyperion.service: main process exited, code=exited, status=1/FAILURE
    ssh in: jul 13 16:36:22 raspberrypi systemd[1]: Unit hyperion.service entered failed state.


    I think Hypercon can't save the json file to the pi so I did manually. Perhaps the wrong file location?


    I installed hyperion on my pi from directory
    /home/wim/Downloads by executing sudo sh ./install_hyperion.sh
    and I copied json file from windows to /etc


    If I were to start from scratch, what do I do? Remove hyperion from hypercon is enough? But I'll probably get the same problem....


    Any ideas?


    Wim

    Okay, now that ssh is working, I saw that I can push the settings to hyperion on the pi. And I can see the logs. Changed a bit, stopped and started hyperion again and now I get:


    initialised
    ssh in: jul 13 07:50:09 raspberrypi hyperiond[25942]: INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
    ssh in: jul 13 07:50:09 raspberrypi hyperiond[25942]: BLACKBORDER INFO: threshold set to 0 (0)
    ssh in: jul 13 07:50:09 raspberrypi hyperiond[25942]: BLACKBORDER INFO: mode:default
    ssh in: jul 13 07:50:09 raspberrypi hyperiond[25942]: started
    ssh in: jul 13 07:50:09 raspberrypi hyperiond[25942]: INFO: Kodi checker created and started
    ssh in: jul 13 07:50:09 raspberrypi hyperiond[25942]: INFO: Json server created and started on port 19444
    ssh in: jul 13 07:50:09 raspberrypi hyperiond[25942]: PROTOCONNECTION INFO: Connecting to Hyperion: 192.168.2.1:19447
    ssh in: jul 13 07:50:09 raspberrypi hyperiond[25942]: INFO: Proto server created and started on port 19445
    ssh in: jul 13 07:50:09 raspberrypi hyperiond[25942]: DISPMANXGRABBER INFO: Display opened with resolution: 1600x1200
    ssh in: jul 13 07:50:09 raspberrypi hyperiond[25942]: BLACKBORDER INFO: threshold set to 0 (0)
    ssh in: jul 13 07:50:09 raspberrypi hyperiond[25942]: BLACKBORDER INFO: mode:default
    ssh in: jul 13 07:50:09 raspberrypi hyperiond[25942]: INFO: Frame grabber created and started
    ssh in: jul 13 07:50:09 raspberrypi hyperiond[25942]: BORDER SWITCH REQUIRED!!
    ssh in: jul 13 07:50:09 raspberrypi hyperiond[25942]: CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
    ssh in: jul 13 07:50:12 raspberrypi hyperiond[25942]: PROTOSERVER INFO: New connection
    ssh in: jul 13 07:50:12 raspberrypi hyperiond[25942]: BLACKBORDER INFO: threshold set to 0 (0)
    ssh in: jul 13 07:50:12 raspberrypi hyperiond[25942]: BLACKBORDER INFO: mode:default
    ssh in: jul 13 07:50:12 raspberrypi hyperiond[25942]: EFFECTENGINE INFO: effect finished


    Done??? In windows hypercon, should I see the captured video? (am I right that I don't have to run hypercon in the pi?, only in windows?)
    The logs don't give more info, while hyperion screen capture is enabled AND kodi addon is functional. I thought I should see info about the connection now.
    (btw arduino not connected at the moment)


    Wim
    EDIT What do I have to do for the border type??

    Okay, got that. I tried the ip of the pi before, but didn't know I should use port 22.
    Thanks!


    And in the pi, should I run hypercon again to make hyperion.config.json? What should target ip be than? The same?
    This file is created in /etc and in /etc/hyperion, is that correct?


    MAybe anyone has a good json file for a ws2813 for me?


    Wim