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

X86/64 Docker setup

Discussion in 'Hardware Support' started by Aquenon, 19 December 2020.

Tags:
  1. Aquenon

    Aquenon New Member

    Messages:
    7
    Hi,
    I discovered Hyperion had a Docker image, so I’ve been trying to put together the right components to run this.

    I have an old 2010 Mac mini that I installed Ubuntu Server 20.04 on and that is now my docker machine. This limits me to USB 2.0, but from what I’ve seen, that should be fine, correct?

    I also have an Onkyo AV Receiver TX-NR656. What I am planning is to have everything running into this receiver, and as it has 2 outputs, I’ll run one to the TV and the second I’ll run to the HDMI capture card that will be plugged into the Docker server. It supports HDCP 2.2 and [email protected]

    This is the setup I’m thinking of currently (the first three pieces I already own):
    2010 Mac mini which has been repurposed with Ubuntu Linux and is now my Docker server
    Onkyo AV Receiver TX-NR656
    4K video capture card (overkill, I know. But I already have it)
    BTF-Lighting RGBW Natural White SK6812 light strip, black PCB

    I am still deciding on the controller. I know WLED is an option, but I like to keep everything off of my WiFi except for phones, tablets, and laptops. Everything else is wired Ethernet, and for this, I’d prefer to use a USB connection to the controller which I assume would be an Arduino.

    Edit:
    I’m also looking at the IOT4WLED as it looks ready made and all I need to do is plug it in. I do prefer keeping things off WiFi is possible, but this looks too convenient. So I will make an exception if this will work.

    Would this work? And what would you suggest on the controller?

    Thanks!
     
    Last edited: 19 December 2020
  2. psychowood

    psychowood New Member

    Messages:
    7
    Hardware:
    32/64bit, +nodeMCU/ESP8266
    My setup is quite similar (2012 Mac Mini, dockerized Hyperion NG in a Photon OS VM on ESXi) minus the fact that my capture hardware is a USB camera instead of a grabber.

    I'm using WLED over WiFi with 5M WS2812B strip (130leds) without problems, but if you want to avoid networking you can control WLED via serial over USB.
     
  3. NeeeeB

    NeeeeB Active Member

    Messages:
    237
    Hardware:
    RPi3, +Arduino, +nodeMCU/ESP8266
    Out of curiosity, would you have an idea of which value must the serial port be set to ? The usual 115200 ?
     
  4. psychowood

    psychowood New Member

    Messages:
    7
    Hardware:
    32/64bit, +nodeMCU/ESP8266
    I'd say so, that's the baud rate I use for flashing my Amicas.

    Keep in mind that the USB-to-serial part is outside of the ESP8266, so different implementations (D1 Mini, Amica V2, etc) use different converters (CH340, C2101,...) so you may need to check the specs.
     
    • Like Like x 1
  5. Aquenon

    Aquenon New Member

    Messages:
    7
    Thanks! There are a few people living here and the WiFi could get saturated before I started putting as many things on Ethernet as I could. Plus, I’m going to be running a full 5m strip of 300 LED’s, so figured it would be best to keep that traffic off the WiFi. I wouldn’t even think anything about it if it was going over Ethernet
     
  6. psychowood

    psychowood New Member

    Messages:
    7
    Hardware:
    32/64bit, +nodeMCU/ESP8266
    I'd say the traffic is negligible, even for 300leds. I understand your point tho, as much as I'm asking myself why not trying it since the server and wled controller are adiacent :)
     
  7. NeeeeB

    NeeeeB Active Member

    Messages:
    237
    Hardware:
    RPi3, +Arduino, +nodeMCU/ESP8266
    Thanks.
    I use a genuine D1 mini and its converter is CH340G.
    A quick googling shows this :
    CHG340 supports common baud rates: 50, 75, 100, 110, 134.5, 150, 300, 600, 900, 1200, 1800, 2400, 3600, 4800, 9600, 14400, 19200, 28800, 33600, 38400, 56000, 57600, 76800, 115200, 128000, 153600, 230400, 460800, 921600, 1500000, 2000000 baud.

    I might try at 460800, because sometimes my wifi gets saturated and then leds show an annoying delay for some minutes.
     
  8. Aquenon

    Aquenon New Member

    Messages:
    7
    Is there any of these that are ready-made? I was never the best at soldering even when I had 2 good hands, but now it’s an impossibility.
     
  9. NeeeeB

    NeeeeB Active Member

    Messages:
    237
    Hardware:
    RPi3, +Arduino, +nodeMCU/ESP8266
    I don't know for sure but with Dupont cables I think you could avoid soldering (even though soldering gives better results with stability).
     
  10. Aquenon

    Aquenon New Member

    Messages:
    7
    I forgot to mention. It’s not that I want to avoid networking, it’s just WiFi I want to avoid mainly because of everything that’s on it. If I could do it by Ethernet, that would be great as Ethernet doesn’t have the limitations WiFi has, and the switches can easily handle everything without affecting anything else. Anything like that?
     
  11. psychowood

    psychowood New Member

    Messages:
    7
    Hardware:
    32/64bit, +nodeMCU/ESP8266
    Not out of the box, AFAIK.

    The easiest wired solution is probably USB, or you could try with bluetooth since the 8266 supports it.
     
  12. Dimitrow

    Dimitrow New Member

    Messages:
    1
    Can you explain more details of your settup. I want to do something like this, but dockerized in RancherOS VM on TrueNAS. I wonder how to install Hyperion with docker?
     
  13. psychowood

    psychowood New Member

    Messages:
    7
    Hardware:
    32/64bit, +nodeMCU/ESP8266
    That's nothing special, really. This is the image you can use, it runs out of the box.

    Things to remember:
    1. consider adding a macvlan network to assign a static ip to hyperion, instead of doing a port forwarding on hte docker host
    2. you may encounter problems, depending on your hypervisor, to passthrough hardware devices
    In my case I had to virtualize hyperiong when using a USB camera grabberm because PhotonOS is lacking video4linux support.
     
  14. Aquenon

    Aquenon New Member

    Messages:
    7
    Bluetooth would work. Something like this?
     
  15. NeeeeB

    NeeeeB Active Member

    Messages:
    237
    Hardware:
    RPi3, +Arduino, +nodeMCU/ESP8266
    I don't know if you've tried, but I have.
    Setting anything else than 115200 is not possible for the speed (leds shut off with anything else), and with this setting I have a small delay which is not acceptable for me...
    So finally I'm back to my old good Arduino, with a speed of 500000 set in the sketch, very reactive, no delay at all.
     
  16. Aquenon

    Aquenon New Member

    Messages:
    7
    Is your setup still wireless or is the Arduino wired? And if it is wired, what is your setup?
    I’m trying to research what I can before I even think of trying this, and I know any delay at all would drive me up the wall, and with multiple people in the house, WiFi can get saturated at times.
     
  17. NeeeeB

    NeeeeB Active Member

    Messages:
    237
    Hardware:
    RPi3, +Arduino, +nodeMCU/ESP8266
    Arduino is wired to the Pi on USB.
    It is the best "no delay" solution for me.
     
  18. Aquenon

    Aquenon New Member

    Messages:
    7
    I may go this route then. I’d have preferred using my Linux Docker machine instead of using a Pi since I already have it. I just haven’t yet seen anything about being able to wire an Arduino using USB to the Docker server. I won’t be able to tolerate any delay with this, so I may just go ahead and get the Pi.
     
  19. NeeeeB

    NeeeeB Active Member

    Messages:
    237
    Hardware:
    RPi3, +Arduino, +nodeMCU/ESP8266
    You might be able to use the docker server, because if you have a look at this screenshot :
    upload_2021-1-2_23-14-39.png

    You can see there is an output path, where you set the path to the serial port.
    Maybe @psychowood can give you more info about this.
     
  20. psychowood

    psychowood New Member

    Messages:
    7
    Hardware:
    32/64bit, +nodeMCU/ESP8266
    Yep, as long as your host recognize the serial port, you should be able to passthrough it to the container using the --device option, as in

    docker run -t -i --device=/dev/ttyUSB0 ubuntu bash

    Reference here

     
    • Like Like x 2