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

Hyperion with usbip to dd-wrt

Discussion in 'Hyperion Setup Showcase' started by penfold42, 1 May 2017.

  1. penfold42

    penfold42 Moderator Developer

    Messages:
    742
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    not really a showcase, but I wanted to get some Hyperion leds hanging off my access point.

    I noticed my net gear r8000 with dd-wrt support sharing its USB points over the network with usbip.

    A quick test with the adalight arduino sketch seems to work great.

    Hyperiond is running on a ubuntu 16 virtual machine with the adalight protocol talking to /dev/ttyUSB0

    Usbip was setup on the r8000 with the physical usb device to be shared over the network:
    Code:
    [email protected]:~# usbip list -l
    - busid 2-1 (0403:6001)
       Future Technology Devices International, Ltd : FT232 Serial (UART) IC (0403:6001)
    
    [email protected]:~# usbip bind -b 2-1
    usbip: info: bind device on busid 2-1: complete
    Usbip was setup on the ubuntu box to bind the remote device that's plugged into the r8000.
    Code:
    apt-get install linux-cloud-tools-generic linux-tools-common linux-tools-generic
    
    [email protected]:~# usbip list -r r8000
    usbip: error: failed to open /usr/share/hwdata//usb.ids
    Exportable USB devices
    ======================
    - r8000
            2-1: unknown vendor : unknown product (0403:6001)
               : /sys/devices/pci0000:00/0000:00:0b.0/usb2/2-1
               : (Defined at Interface level) (00/00/00)
    
    [email protected]:~# modprobe vhci-hcd
    
    [email protected]:~# usbip attach -r r8000.home -b 2-1
    
    [email protected]:~# dmesg | tail -5
    [  179.588246] usbcore: registered new interface driver ftdi_sio
    [  179.588246] usbserial: USB Serial support registered for FTDI USB Serial Device
    [  179.588446] ftdi_sio 2-1:1.0: FTDI USB Serial Device converter detected
    [  179.588446] usb 2-1: Detected FT232RL
    [  179.591686] usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0
    
    Hope this is of some use to someone - if anyone's interested I can provide more specific details.
     
    Last edited: 1 May 2017
    • Like Like x 1
  2. penfold42

    penfold42 Moderator Developer

    Messages:
    742
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I just did some quick network traffic measurements on this setup.

    Setup:
    hyperion (not hyperion.ng) with 46 leds
    "type" : "adalight",
    "output" : "/dev/ttyUSB0",
    "rate" : 115200,
    smoothing disabled

    1) usbip configured but hyperiond NOT running - 0 bytes/sec
    2) hyperiond idle - 6K byte/sec
    3) hyperiond running rainbow swirl fast - 14K byte/sec

    I havent measured the latency, but rapidly changing the colours on the iphone app doesnt show any lag
     
    • Like Like x 1