hyperion-project / hyperion.ng

The successor to Hyperion aka Hyperion Next Generation
https://hyperion-project.org/
MIT License
2.96k stars 372 forks source link

sk9822 with waveshare ft232 incompatible #1157

Closed damnms closed 3 years ago

damnms commented 3 years ago

Bug report

i use https://www.waveshare.com/ft232-usb-uart-board-type-a.htm on an odroid n2 to connect my sk9822 led stripe. unfortunately, the led stripe does behave very wierd. when i power the LEDs on, they turn all on (guess thats programmed inside the LEDs). looks like some kind of rainbow from white to red (i guess thats because the 5v do not reach the end of the 5m stripe, that will be fixed later when i cut the 5m stripe). when i now try to load some effect, some LEDs start blinking, some do not. when i restart hyperion, more LEDs start blinking.

Steps to reproduce

connect a sk9822 stripe to a waveshare ft232 usb->serial adapter use adalight as controller (i hope thats correct??) select layout each 75 LEDs (bottom/top/...) so in total 300 go to effects generator and load any effect and let it run

What is expected?

to see some nice programs like knight rider, some red leds flowing from left to right and vice versa

What is actually happening?

wierd colors on some LEDs, some do not even turn on

System

Hyperion Server:

Hyperion Server OS:

2021-01-17T21:20:27.168Z [hyperiond DAEMON] (INFO) CEC handler created 2021-01-17T21:20:27.176Z [hyperiond EFFECTFILES] (INFO) 39 effects loaded from directory :/effects/ 2021-01-17T21:20:27.178Z [hyperiond EFFECTFILES] (INFO) 22 effect schemas loaded from directory :/effects/schema/ 2021-01-17T21:20:27.181Z [hyperiond EFFECTFILES] (INFO) 1 effects loaded from directory /storage/.kodi/userdata/addon_data/service.hyperion.ng/custom-effects 2021-01-17T21:20:27.205Z [hyperiond SETTINGSMGR] (DEBUG) (SettingsManager.cpp:109:SettingsManager()) Settings database initialized 2021-01-17T21:20:27.208Z [hyperiond BLACKBORDER] (DEBUG) (BlackBorderProcessor.cpp:64:handleSettingsUpdate()) Set mode to: default 2021-01-17T21:20:27.208Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Blackborder detector: enabled 2021-01-17T21:20:27.216Z [hyperiond DAEMON] (INFO) set screen capture device to 'amlogic' 2021-01-17T21:20:27.216Z [hyperiond AMLOGICGRABBER] (DEBUG) (Grabber.cpp:30:setVideoMode()) Set videomode to 0 2021-01-17T21:20:27.217Z [hyperiond FRAMEBUFFERGRABBER] (DEBUG) (Grabber.cpp:30:setVideoMode()) Set videomode to 0 2021-01-17T21:20:27.217Z [hyperiond FRAMEBUFFERGRABBER] (INFO) Display opened with resolution: 1920x1080@32bit 2021-01-17T21:20:27.217Z [hyperiond AMLOGICGRABBER] (DEBUG) (AmlogicGrabber.cpp:31:AmlogicGrabber()) constructed(160 x 160), grabber device: /dev/amvideocap0 2021-01-17T21:20:27.217Z [hyperiond DAEMON] (INFO) AMLOGIC grabber created 2021-01-17T21:20:27.218Z [hyperiond V4L2:AUTO] (DEBUG) (Grabber.cpp:30:setVideoMode()) Set videomode to 0 2021-01-17T21:20:27.218Z [hyperiond V4L2:AUTO] (INFO) Signal threshold set to: {12, 12, 12} 2021-01-17T21:20:27.218Z [hyperiond V4L2:AUTO] (INFO) CEC detection is now disabled 2021-01-17T21:20:27.218Z [hyperiond V4L2:AUTO] (INFO) Signal detection is now disabled 2021-01-17T21:20:27.218Z [hyperiond V4L2:AUTO] (INFO) Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000 2021-01-17T21:20:27.218Z [hyperiond DAEMON] (DEBUG) (hyperiond.cpp:636:handleSettingsUpdate()) V4L2 grabber created 2021-01-17T21:20:27.220Z [hyperiond JSONSERVER] (DEBUG) (JsonServer.cpp:28:JsonServer()) Created instance 2021-01-17T21:20:27.224Z [hyperiond JSONSERVER] (INFO) Started on port 19444 2021-01-17T21:20:27.222Z [hyperiond LEDDEVICE] (INFO) Start LedDevice 'adalight'. 2021-01-17T21:20:27.222Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:148:init()) deviceConfig: [{"colorOrder":"rgb","currentLedCount":300,"delayAfterConnect":0,"hardwareLedCount":1,"latchTime":30,"lightberry_apa102_mode":false,"output":"auto","rate":115200,"rewriteTime":1000,"type":"adalight"}] 2021-01-17T21:20:27.223Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:407:setLatchTime()) LatchTime updated to 30ms 2021-01-17T21:20:27.224Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Smoothing: enabled 2021-01-17T21:20:27.224Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:428:setRewriteTime()) Refresh interval = 1000ms 2021-01-17T21:20:27.224Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:434:setRewriteTime()) RewriteTime updated to 1000ms 2021-01-17T21:20:27.224Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:36:init()) DeviceType : adalight 2021-01-17T21:20:27.224Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) cfg [0]: Type: linear - Time: 200 ms, outputRate 25.000000 Hz, interpolationRate: 25.000000 Hz, timer: 40 ms, Dithering: 0, Decay: 1.000000 -> HalfTime: 100.000000 ms 2021-01-17T21:20:27.224Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:37:init()) LedCount : 300 2021-01-17T21:20:27.224Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:38:init()) ColorOrder : rgb 2021-01-17T21:20:27.226Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:39:init()) RefreshTime : 1000 2021-01-17T21:20:27.225Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) Previous line repeats 1 times 2021-01-17T21:20:27.226Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:40:init()) LatchTime : 30 2021-01-17T21:20:27.227Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:52:init()) deviceName : auto 2021-01-17T21:20:27.227Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:53:init()) AutoDevice : 1 2021-01-17T21:20:27.227Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:54:init()) baudRate_Hz : 115200 2021-01-17T21:20:27.227Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:55:init()) delayAfCon ms: 0 2021-01-17T21:20:27.227Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceAdalight.cpp:59:init()) Adalight header for 300 leds: Ada 0x01 0x2b 0x7f 2021-01-17T21:20:27.226Z [hyperiond FLATBUFCONN] (INFO) Connecting to Hyperion: 127.0.0.1:19401 2021-01-17T21:20:27.228Z [hyperiond FLATBUFSERVER] (INFO) Started on port 19400 2021-01-17T21:20:27.228Z [hyperiond PROTOSERVER] (INFO) Started on port 19445 2021-01-17T21:20:27.229Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:161:registerInput()) Register new input 'System/GRABBER' with priority 250 as inactive 2021-01-17T21:20:27.230Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Framegrabber: enabled 2021-01-17T21:20:27.230Z [hyperiond AmLogic] (DEBUG) (GrabberWrapper.cpp:48:start()) Grabber start() 2021-01-17T21:20:27.230Z [hyperiond AMLOGICGRABBER] (INFO) FB mode 2021-01-17T21:20:27.229Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver 2021-01-17T21:20:27.229Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver 2021-01-17T21:20:27.230Z [hyperiond BOBLIGHT] (DEBUG) (BoblightServer.cpp:28:BoblightServer()) Instance created 2021-01-17T21:20:27.285Z [hyperiond HYPERION] (INFO) Hyperion instance 'First LED Hardware instance' has been started 2021-01-17T21:20:27.240Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings 2021-01-17T21:20:27.240Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig 2021-01-17T21:20:27.240Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings 2021-01-17T21:20:27.240Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig 2021-01-17T21:20:27.241Z [hyperiond WEBSERVER] (INFO) Started on port 8090 name 'Hyperion Webserver' 2021-01-17T21:20:27.255Z [hyperiond LEDDEVICE] (INFO) found serial device: ttyUSB0 2021-01-17T21:20:27.255Z [hyperiond LEDDEVICE] (INFO) Opening UART: ttyUSB0 2021-01-17T21:20:27.255Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:141:tryOpen()) _rs232Port.open(QIODevice::ReadWrite): ttyUSB0, Baud rate [115200]bps 2021-01-17T21:20:27.276Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:146:tryOpen()) portName: ttyUSB0 2021-01-17T21:20:27.276Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:147:tryOpen()) systemLocation: /dev/ttyUSB0 2021-01-17T21:20:27.276Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:148:tryOpen()) description: FT232R USB UART 2021-01-17T21:20:27.276Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:149:tryOpen()) manufacturer: FTDI 2021-01-17T21:20:27.276Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:150:tryOpen()) productIdentifier: 0x6001 2021-01-17T21:20:27.276Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:151:tryOpen()) vendorIdentifier: 0x403 2021-01-17T21:20:27.276Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:152:tryOpen()) serialNumber: AQ00RBVN 2021-01-17T21:20:27.277Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) LED device: enabled 2021-01-17T21:20:27.284Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:251:setInputImage()) Priority 250 is now active 2021-01-17T21:20:27.285Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 250 2021-01-17T21:20:27.285Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[250], previousPriority[255] 2021-01-17T21:20:27.285Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:handlePriorityChangedLedDevice()) new source available -> switch LED-Device on 2021-01-17T21:20:27.304Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:175:handleSettingsUpdate()) Setup SSL certificate 2021-01-17T21:20:27.304Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:191:handleSettingsUpdate()) Setup private SSL key 2021-01-17T21:20:27.304Z [hyperiond WEBSERVER] (INFO) Started on port 8092 name 'Hyperion Webserver' 2021-01-17T21:21:08.535Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.1.227 2021-01-17T21:21:08.536Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:81:handleInstanceSwitch()) Client '::ffff:192.168.1.227' switch to Hyperion instance 0 2021-01-17T21:21:15.855Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1054:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.1.227 2021-01-17T21:21:15.878Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1063:handleLoggingCommand()) log streaming deactivated for client ::ffff:192.168.1.227 2021-01-17T21:27:48.862Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1054:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.1.227

damnms commented 3 years ago

seems like that adapter can only output uart. just ordered another one that can handle usb->spi, therefore i close this bugreport