Closed TheEmpressMiaw closed 2 years ago
Hi Unfortunately I can't reproduce a problem. Does it always happen as you switch from ws281x to adalight? Try to disable smoothing and/or switch for 'Debug/File' LED driver and check if it helps. I guess it's quite unusual combination you are using but I suspect the problem could be lying in the smoothing procedure (that can' follow that switching LED drivers sequence) than the LED driver itself. Maybe setting up hardware led count (they should be ignored for adalight and left as default = 1) or when you try to enable ws281x that failed to start (because run as non-root) could play a factor. But I tried to follow your path and it doesn't crash.
Hi, (thank you for quick response)
Initially, for the past couple of months I was using ws281x controller (while running hyperhdr service as root) for my ws2812B LED strips. After reading your blog, I decided to try HyperSPI and HyperSerialEsp8266. I flashed HyperSPI to my ESP8266 board, switched the controller type to awa_spi and its working beautifully!!! much better than ws281x controller.
After testing with HyperSPI, I decided to try HyperSerialEsp8266. After flashing the HyperSerialEsp8266 and switching controller type to adalight, hyperhdr is crashing
2021-10-11T09:55:57.469 MAIN : <INFO> Database path: '/home/pi/.hyperhdr/db/hyperhdr.db', readonlyMode = disabled
2021-10-11T09:55:57.469 MAIN : <INFO> Starting HyperHdr - 17.0.0.0, (HEAD detached at dec81c0) (Awawa-2a2ed8d/dec81c0-1631541363), built: Sep 15 2021:17:02:39
2021-10-11T09:55:57.470 MAIN : <DEBUG> main.cpp:360:main() | QtVersion [5.11.3]
2021-10-11T09:55:57.470 MAIN : <INFO> Set user data path to '/home/pi/.hyperhdr'
2021-10-11T09:55:57.473 DB : <INFO> Database opened: /home/pi/.hyperhdr/db/hyperhdr.db
2021-10-11T09:55:57.565 SETTINGSMGR : <INFO> Settings database initialized
2021-10-11T09:55:57.566 HYPERHDR : <INFO> Sound device is disabled
2021-10-11T09:55:57.605 V4L2:USB VIDEO: USB : <INFO> Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-10-11T09:55:57.605 V4L2:USB VIDEO: USB : <INFO> Found capture device: /dev/video14
2021-10-11T09:55:57.606 V4L2:USB VIDEO: USB : <INFO> Found capture device: /dev/video15
2021-10-11T09:55:57.607 V4L2:USB VIDEO: USB : <INFO> Restarting video grabber is now blocked due to reloading of the configuration
2021-10-11T09:55:57.607 V4L2:USB Video: USB : <DEBUG> GrabberWrapper.cpp:415:handleSettingsUpdate() | Auto resume is: enabled
2021-10-11T09:55:57.607 V4L2:USB VIDEO: USB : <INFO> Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-10-11T09:55:57.607 V4L2:USB Video: USB : <DEBUG> GrabberWrapper.cpp:42:setCecStartStop() | CEC keycode. Start: 0, stop: 0
2021-10-11T09:55:57.607 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:117:trySetWidthHeight() | Set new width: 640, height: 480 for capture
2021-10-11T09:55:57.607 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:262:setWidthHeight() | setWidthHeight preparing to restarting video grabber 0
2021-10-11T09:55:57.607 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the capturing resolution
2021-10-11T09:55:57.607 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the framerate
2021-10-11T09:55:57.607 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:186:setBrightnessContrastSaturationHue() | Set brightness to -11, contrast to 148, saturation to 180, hue to 0
2021-10-11T09:55:57.607 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the Brightness/Contrast/Saturation/Hue
2021-10-11T09:55:57.607 V4L2:USB VIDEO: USB : <DEBUG> V4L2Grabber.cpp:98:setHdrToneMappingEnabled() | setHdrToneMappingMode to: Disabled
2021-10-11T09:55:57.607 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:140:setFpsSoftwareDecimation() | setFpsSoftwareDecimation to: 1
2021-10-11T09:55:57.608 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:85:setSignalDetectionOffset() | Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2021-10-11T09:55:57.608 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:75:setSignalThreshold() | Signal threshold set to: {12, 12, 12} and frames: 200
2021-10-11T09:55:57.608 V4L2:USB VIDEO: USB : <INFO> Automatic signal detection is now enabled
2021-10-11T09:55:57.608 SIGNAL_AUTO : <DEBUG> DetectionAutomatic.cpp:368:setAutoSignalParams() | Automatic signal detection -> errorTolerance: 9, modelTolerance: 90, sleepTime: 5000, wakeTime: 1000
2021-10-11T09:55:57.608 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:307:setDeviceVideoStandard() | setDeviceVideoStandard preparing to restart video grabber. Old: '' new: 'USB Video: USB Video (video0)'
2021-10-11T09:55:57.608 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of selected device
2021-10-11T09:55:57.608 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:158:setEncoding() | Force encoding to: yuyv (old: NO_CHANGE)
2021-10-11T09:55:57.608 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the video encoding format
2021-10-11T09:55:57.608 V4L2:USB VIDEO: USB : <INFO> setQFrameDecimation is now: enabled
2021-10-11T09:55:57.614 X11_SYSTEM:AUTO : <INFO> Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-10-11T09:55:57.615 X11_SYSTEM:AUTO : <INFO> Loaded X11 proxy library for screen capturing
2021-10-11T09:55:57.615 X11_SYSTEM:AUTO : <INFO> Restarting video grabber is now blocked due to reloading of the configuration
2021-10-11T09:55:57.615 X11_SYSTEM:AUTO : <DEBUG> Grabber.cpp:117:trySetWidthHeight() | Set new width: 512, height: 512 for capture
2021-10-11T09:55:57.615 X11_SYSTEM:AUTO : <DEBUG> Grabber.cpp:262:setWidthHeight() | setWidthHeight preparing to restarting video grabber 0
2021-10-11T09:55:57.615 X11_SYSTEM:AUTO : <INFO> Delayed restart of the grabber due to change of the capturing resolution
2021-10-11T09:55:57.615 X11_SYSTEM:AUTO : <INFO> Delayed restart of the grabber due to change of the framerate
2021-10-11T09:55:57.615 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:85:setSignalDetectionOffset() | Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2021-10-11T09:55:57.615 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:75:setSignalThreshold() | Signal threshold set to: {12, 12, 12} and frames: 200
2021-10-11T09:55:57.616 X11_SYSTEM:AUTO : <DEBUG> Grabber.cpp:307:setDeviceVideoStandard() | setDeviceVideoStandard preparing to restart video grabber. Old: '' new: 'auto'
2021-10-11T09:55:57.616 X11_SYSTEM:AUTO : <INFO> Delayed restart of the grabber due to change of selected device
2021-10-11T09:55:57.685 SETTINGSMGR : <INFO> Settings database initialized
2021-10-11T09:55:57.688 BLACKBORDER : <INFO> Set mode to: default
2021-10-11T09:55:57.688 COMPONENTREG0 : <INFO> Blackborder detector: enabled
2021-10-11T09:55:57.688 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:136:setSparseProcessing() | setSparseProcessing to 0
2021-10-11T09:55:57.689 RGB_TRANSFORM0 : <INFO> RGB transform classic_config: 1, saturationGain: 1.000000, luminanceGain: 1.000000, backlightThreshold: 0
2021-10-11T09:55:57.689 ADJUST_RED0 : <INFO> Set correction to 255
2021-10-11T09:55:57.689 ADJUST_BLUE0 : <INFO> Set correction to 255
2021-10-11T09:55:57.689 ADJUST_GREEN0 : <INFO> Set correction to 255
2021-10-11T09:55:57.692 DB : <INFO> Database opened: /home/pi/.hyperhdr/db/hyperhdr.db
2021-10-11T09:55:57.702 JSONSERVER : <DEBUG> JsonServer.cpp:28:JsonServer() | Created instance
2021-10-11T09:55:57.702 JSONSERVER : <INFO> Started on port 19444
2021-10-11T09:55:57.703 LEDDEVICE : <INFO> Start LedDevice 'awa_spi'.
2021-10-11T09:55:57.703 COMPONENTREG0 : <INFO> Smoothing: enabled
2021-10-11T09:55:57.703 LEDDEVICE : <DEBUG> LedDevice.cpp:149:init() | deviceConfig: [{"colorOrder":"rgb","currentLedCount":166,"hardwareLedCount":166,"invert":false,"latchTime":0,"output":"/dev/spidev0.0","rate":25000000,"rewriteTime":1000,"spitype":"esp8266","type":"awa_spi"}]
2021-10-11T09:55:57.703 LEDDEVICE : <DEBUG> LedDevice.cpp:408:setLatchTime() | LatchTime updated to 0ms
2021-10-11T09:55:57.703 LEDDEVICE : <DEBUG> LedDevice.cpp:429:setRewriteTime() | Refresh interval = 1000ms
2021-10-11T09:55:57.703 SMOOTHING0 : <INFO> Creating config (0) => type: Linear, dirMode: false, pause: false, settlingTime: 200ms, interval: 40ms (25Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0
2021-10-11T09:55:57.703 LEDDEVICE : <DEBUG> LedDevice.cpp:435:setRewriteTime() | RewriteTime updated to 1000ms
2021-10-11T09:55:57.703 LEDDEVICE : <DEBUG> ProviderSpi.cpp:47:init() | _baudRate_Hz [25000000], _latchTime_ms [0], _spiType: esp8266
2021-10-11T09:55:57.704 LEDDEVICE : <DEBUG> ProviderSpi.cpp:48:init() | _spiDataInvert [0], _spiMode [0]
2021-10-11T09:55:57.704 LEDDEVICE : <DEBUG> LedDeviceAWA_spi.cpp:35:CreateHeader() | SPI driver with data integration check AWA protocol
2021-10-11T09:55:57.704 LEDDEVICE : <DEBUG> LedDeviceAWA_spi.cpp:44:CreateHeader() | SPI header for 166 leds: Awa 0x00 0xa5 0xf0
2021-10-11T09:55:57.703 SMOOTHING0 : <INFO> Selecting config (0) => type: Linear, dirMode: false, pause: false, settlingTime: 200ms, interval: 40ms (25Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0
2021-10-11T09:55:57.705 SMOOTHING0 : <INFO> Selecting config (0) => type: Linear, dirMode: false, pause: false, settlingTime: 200ms, interval: 40ms (25Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0
2021-10-11T09:55:57.706 FLATBUFCONN : <INFO> Connecting to HyperHDR: 127.0.0.1:19401
2021-10-11T09:55:57.708 MUXER0 : <INFO> Register new input 'System/VIDEOGRABBER' with priority 240 as inactive
2021-10-11T09:55:57.708 COMPONENTREG0 : <INFO> Video capture device: enabled
2021-10-11T09:55:57.709 BOBLIGHT : <INFO> Instance created
2021-10-11T09:55:57.709 COMPONENTREG0 : <INFO> LED device: enabled
2021-10-11T09:55:57.709 EFFECTENGINE0 : <INFO> Run effect "Rainbow swirl fast" on channel 0
2021-10-11T09:55:57.710 EFFECTENGINE0 : <DEBUG> EffectEngine.cpp:152:runEffectScript() | Start the effect: name [Rainbow swirl fast], smoothCfg [2]
2021-10-11T09:55:57.710 MUXER0 : <INFO> Register new input 'System/EFFECT' with priority 0 as inactive
2021-10-11T09:55:57.711 HYPERHDR : <INFO> Initial foreground effect 'Rainbow swirl fast' started
2021-10-11T09:55:57.711 SMOOTHING0 : <INFO> Using linear smoothing input (0)
2021-10-11T09:55:57.711 SMOOTHING0 : <INFO> Enabling timer. Now timer is active: 1, remaining time to run: 40
2021-10-11T09:55:57.712 FLATBUFSERVER : <INFO> Started on port 19400
2021-10-11T09:55:57.712 WEBSERVER : <INFO> Initialize Webserver
2021-10-11T09:55:57.712 EFFECT0(Rainbo...) : <INFO> Begin playing the effect with priority: 0
2021-10-11T09:55:57.714 MUXER0 : <INFO> Priority 0 is now active
2021-10-11T09:55:57.714 PROTOSERVER : <INFO> Started on port 19445
2021-10-11T09:55:57.714 MUXER0 : <INFO> Set visible priority to 0
2021-10-11T09:55:57.715 IMAGETOLED0 : <INFO> Total index number is: 904. Sparse processing: disabled, image size: 80 x 45, area number: 166
2021-10-11T09:55:57.715 WEBSERVER : <INFO> Initialize Webserver
2021-10-11T09:55:57.715 IMAGETOLED0 : <INFO> Total index number is: 904. Sparse processing: disabled, image size: 80 x 45, area number: 166
2021-10-11T09:55:57.716 SMOOTHING0 : <INFO> Selecting config (2) => type: Linear, dirMode: false, pause: false, settlingTime: 200ms, interval: 40ms (25Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0
2021-10-11T09:55:57.716 HYPERHDR0 : <INFO> New priority[0], previous [255]
2021-10-11T09:55:57.716 HYPERHDR0 : <INFO> New source available -> switch LED-Device on
2021-10-11T09:55:57.716 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:180:setHardLedMappingType() | set hard led mapping to multicolor_mean
2021-10-11T09:55:57.718 V4L2:USB VIDEO: USB : <INFO> Multithreading for V4L2 is enabled. Available thread's count 4
2021-10-11T09:55:57.719 V4L2:USB VIDEO: USB : <INFO> Found capture device: /dev/video14
2021-10-11T09:55:57.720 V4L2:USB VIDEO: USB : <INFO> Found capture device: /dev/video15
2021-10-11T09:55:57.722 V4L2:USB VIDEO: USB : <DEBUG> V4L2Grabber.cpp:158:init() | Device USB Video: USB Video (video0) is not available. Changing to auto.
2021-10-11T09:55:57.722 V4L2:USB VIDEO: USB : <DEBUG> V4L2Grabber.cpp:165:init() | Forcing auto discovery device
2021-10-11T09:55:57.722 V4L2:USB VIDEO: USB : <ERROR> Could not find any capture device
2021-10-11T09:55:57.722 HYPERMANAGER : <INFO> HyperHDR instance 'TV Ambient Light' has been started
2021-10-11T09:55:57.722 DAEMON : <INFO> Unload CEC
2021-10-11T09:55:57.733 WEBSERVER : <INFO> Apply Webserver settings
2021-10-11T09:55:57.733 WEBSERVER : <INFO> Apply Webserver settings
2021-10-11T09:55:57.733 WEBSERVER : <INFO> Set document root to: :/webconfig
2021-10-11T09:55:57.733 WEBSERVER : <INFO> Set document root to: :/webconfig
2021-10-11T09:55:57.733 WEBSERVER : <INFO> Started on port 8090 name 'HyperHDR Webserver'
2021-10-11T09:55:57.736 WEBSERVER : <INFO> Setup SSL certificate
2021-10-11T09:55:57.736 WEBSERVER : <INFO> Setup private SSL key
2021-10-11T09:55:57.736 WEBSERVER : <INFO> Started on port 8092 name 'HyperHDR Webserver'
2021-10-11T09:55:57.751 SMOOTHING0 : <INFO> Using linear smoothing procedure (2)
2021-10-11T09:56:00.725 EFFECT0(Rainbo...) : <INFO> The effect quits with priority: 0
2021-10-11T09:56:00.725 MUXER0 : <INFO> Removed source priority 0
2021-10-11T09:56:00.726 MUXER0 : <INFO> Switching from color effect. Waiting till: 09:56:03
2021-10-11T09:56:00.726 EFFECTENGINE0 : <INFO> Effect 'Rainbow swirl fast' has finished.
2021-10-11T09:56:00.726 EFFECT0(Rainbo...) : <INFO> Deleting effect named: 'Rainbow swirl fast'
2021-10-11T09:56:03.849 MUXER0 : <INFO> Set visible priority to 255
2021-10-11T09:56:03.850 SMOOTHING0 : <INFO> Selecting config (0) => type: Linear, dirMode: false, pause: false, settlingTime: 200ms, interval: 40ms (25Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0
2021-10-11T09:56:03.850 HYPERHDR0 : <INFO> New priority[255], previous [0]
2021-10-11T09:56:03.850 HYPERHDR0 : <ERROR> No source left -> switch LED-Device off
2021-10-11T09:56:03.851 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:180:setHardLedMappingType() | set hard led mapping to multicolor_mean
2021-10-11T09:56:13.846 DB : <INFO> Database opened: /home/pi/.hyperhdr/db/hyperhdr.db
2021-10-11T09:56:34.508 LEDDEVICE : <INFO> Stopped LedDevice 'awa_spi'
2021-10-11T09:56:34.509 LEDDEVICE : <INFO> Start LedDevice 'adalight'.
2021-10-11T09:56:34.509 COMPONENTREG0 : <INFO> LED device: disabled
2021-10-11T09:56:34.509 LEDDEVICE : <DEBUG> LedDevice.cpp:149:init() | deviceConfig: [{"awa_mode":true,"colorOrder":"rgb","currentLedCount":166,"delayAfterConnect":0,"hardwareLedCount":166,"latchTime":15,"output":"ttyUSB0","rate":115200,"rewriteTime":1000,"type":"adalight"}]
2021-10-11T09:56:34.509 LEDDEVICE : <DEBUG> LedDevice.cpp:408:setLatchTime() | LatchTime updated to 15ms
2021-10-11T09:56:34.509 LEDDEVICE : <DEBUG> LedDevice.cpp:429:setRewriteTime() | Refresh interval = 1000ms
2021-10-11T09:56:34.510 LEDDEVICE : <DEBUG> LedDevice.cpp:435:setRewriteTime() | RewriteTime updated to 1000ms
2021-10-11T09:56:34.510 LEDDEVICE : <DEBUG> ProviderRs232.cpp:36:init() | DeviceType : adalight
2021-10-11T09:56:34.510 LEDDEVICE : <DEBUG> ProviderRs232.cpp:37:init() | LedCount : 166
2021-10-11T09:56:34.510 LEDDEVICE : <DEBUG> ProviderRs232.cpp:38:init() | ColorOrder : rgb
2021-10-11T09:56:34.510 LEDDEVICE : <DEBUG> ProviderRs232.cpp:39:init() | RefreshTime : 1000
2021-10-11T09:56:34.510 LEDDEVICE : <DEBUG> ProviderRs232.cpp:40:init() | LatchTime : 15
2021-10-11T09:56:34.510 LEDDEVICE : <DEBUG> ProviderRs232.cpp:52:init() | deviceName : ttyUSB0
2021-10-11T09:56:34.510 LEDDEVICE : <DEBUG> ProviderRs232.cpp:53:init() | AutoDevice : 0
2021-10-11T09:56:34.510 LEDDEVICE : <DEBUG> ProviderRs232.cpp:54:init() | baudRate_Hz : 115200
2021-10-11T09:56:34.510 LEDDEVICE : <DEBUG> ProviderRs232.cpp:55:init() | delayAfCon ms: 0
2021-10-11T09:56:34.510 LEDDEVICE : <DEBUG> LedDeviceAdalight.cpp:64:CreateHeader() | Adalight driver with activated high speeed & data integration check AWA protocol
2021-10-11T09:56:34.511 LEDDEVICE : <DEBUG> LedDeviceAdalight.cpp:74:CreateHeader() | Adalight header for 166 leds: Awa 0x00 0xa5 0xf0
2021-10-11T09:56:34.511 LEDDEVICE : <INFO> Opening UART: ttyUSB0
2021-10-11T09:56:34.511 LEDDEVICE : <DEBUG> ProviderRs232.cpp:141:tryOpen() | _rs232Port.open(QIODevice::ReadWrite): ttyUSB0, Baud rate [115200]bps
2021-10-11T09:56:34.552 LEDDEVICE : <DEBUG> ProviderRs232.cpp:146:tryOpen() | portName: ttyUSB0
2021-10-11T09:56:34.553 LEDDEVICE : <DEBUG> ProviderRs232.cpp:147:tryOpen() | systemLocation: /dev/ttyUSB0
2021-10-11T09:56:34.553 LEDDEVICE : <DEBUG> ProviderRs232.cpp:148:tryOpen() | description: USB2.0-Ser
2021-10-11T09:56:34.553 LEDDEVICE : <DEBUG> ProviderRs232.cpp:149:tryOpen() | manufacturer: 1a86
2021-10-11T09:56:34.553 LEDDEVICE : <DEBUG> ProviderRs232.cpp:150:tryOpen() | productIdentifier: 0x7523
2021-10-11T09:56:34.553 LEDDEVICE : <DEBUG> ProviderRs232.cpp:151:tryOpen() | vendorIdentifier: 0x1a86
2021-10-11T09:56:34.553 LEDDEVICE : <DEBUG> ProviderRs232.cpp:152:tryOpen() | serialNumber:
2021-10-11T09:56:34.558 COMPONENTREG0 : <INFO> LED device: enabled
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
HyperHDR caught signal :SIGABRT
2021-10-11T09:56:38.998 CORE : <ERROR> /lib/arm-linux-gnueabihf/libc.so.6(__default_rt_sa_restorer+0) [0xb58bb120]
As per your suggestion, I turned off the smoothing and set the hardware led count as 1. Now HyperHDR is no longer crashing but the leds are not lighting up. Only the first 2 LEDs have a greenish color and no lights on the rest of the LEDs and also LEDs does not respond to HyperHDR at all.
2021-10-11T10:07:53.348 MAIN : <INFO> Database path: '/home/pi/.hyperhdr/db/hyperhdr.db', readonlyMode = disabled
2021-10-11T10:07:53.349 MAIN : <INFO> Starting HyperHdr - 17.0.0.0, (HEAD detached at dec81c0) (Awawa-2a2ed8d/dec81c0-1631541363), built: Sep 15 2021:17:02:39
2021-10-11T10:07:53.349 MAIN : <DEBUG> main.cpp:360:main() | QtVersion [5.11.3]
2021-10-11T10:07:53.349 MAIN : <INFO> Set user data path to '/home/pi/.hyperhdr'
2021-10-11T10:07:53.352 DB : <INFO> Database opened: /home/pi/.hyperhdr/db/hyperhdr.db
2021-10-11T10:07:53.444 SETTINGSMGR : <INFO> Settings database initialized
2021-10-11T10:07:53.445 HYPERHDR : <INFO> Sound device is disabled
2021-10-11T10:07:53.485 V4L2:USB VIDEO: USB : <INFO> Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-10-11T10:07:53.485 V4L2:USB VIDEO: USB : <INFO> Found capture device: /dev/video14
2021-10-11T10:07:53.486 V4L2:USB VIDEO: USB : <INFO> Found capture device: /dev/video15
2021-10-11T10:07:53.486 V4L2:USB VIDEO: USB : <INFO> Restarting video grabber is now blocked due to reloading of the configuration
2021-10-11T10:07:53.487 V4L2:USB Video: USB : <DEBUG> GrabberWrapper.cpp:415:handleSettingsUpdate() | Auto resume is: enabled
2021-10-11T10:07:53.487 V4L2:USB VIDEO: USB : <INFO> Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-10-11T10:07:53.487 V4L2:USB Video: USB : <DEBUG> GrabberWrapper.cpp:42:setCecStartStop() | CEC keycode. Start: 0, stop: 0
2021-10-11T10:07:53.487 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:117:trySetWidthHeight() | Set new width: 640, height: 480 for capture
2021-10-11T10:07:53.487 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:262:setWidthHeight() | setWidthHeight preparing to restarting video grabber 0
2021-10-11T10:07:53.487 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the capturing resolution
2021-10-11T10:07:53.487 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the framerate
2021-10-11T10:07:53.487 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:186:setBrightnessContrastSaturationHue() | Set brightness to -11, contrast to 148, saturation to 180, hue to 0
2021-10-11T10:07:53.487 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the Brightness/Contrast/Saturation/Hue
2021-10-11T10:07:53.487 V4L2:USB VIDEO: USB : <DEBUG> V4L2Grabber.cpp:98:setHdrToneMappingEnabled() | setHdrToneMappingMode to: Disabled
2021-10-11T10:07:53.488 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:140:setFpsSoftwareDecimation() | setFpsSoftwareDecimation to: 1
2021-10-11T10:07:53.488 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:85:setSignalDetectionOffset() | Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2021-10-11T10:07:53.488 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:75:setSignalThreshold() | Signal threshold set to: {12, 12, 12} and frames: 200
2021-10-11T10:07:53.488 V4L2:USB VIDEO: USB : <INFO> Automatic signal detection is now enabled
2021-10-11T10:07:53.488 SIGNAL_AUTO : <DEBUG> DetectionAutomatic.cpp:368:setAutoSignalParams() | Automatic signal detection -> errorTolerance: 9, modelTolerance: 90, sleepTime: 5000, wakeTime: 1000
2021-10-11T10:07:53.488 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:307:setDeviceVideoStandard() | setDeviceVideoStandard preparing to restart video grabber. Old: '' new: 'USB Video: USB Video (video0)'
2021-10-11T10:07:53.488 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of selected device
2021-10-11T10:07:53.488 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:158:setEncoding() | Force encoding to: yuyv (old: NO_CHANGE)
2021-10-11T10:07:53.488 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the video encoding format
2021-10-11T10:07:53.488 V4L2:USB VIDEO: USB : <INFO> setQFrameDecimation is now: enabled
2021-10-11T10:07:53.495 X11_SYSTEM:AUTO : <INFO> Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-10-11T10:07:53.495 X11_SYSTEM:AUTO : <INFO> Loaded X11 proxy library for screen capturing
2021-10-11T10:07:53.495 X11_SYSTEM:AUTO : <INFO> Restarting video grabber is now blocked due to reloading of the configuration
2021-10-11T10:07:53.496 X11_SYSTEM:AUTO : <DEBUG> Grabber.cpp:117:trySetWidthHeight() | Set new width: 512, height: 512 for capture
2021-10-11T10:07:53.496 X11_SYSTEM:AUTO : <DEBUG> Grabber.cpp:262:setWidthHeight() | setWidthHeight preparing to restarting video grabber 0
2021-10-11T10:07:53.496 X11_SYSTEM:AUTO : <INFO> Delayed restart of the grabber due to change of the capturing resolution
2021-10-11T10:07:53.496 X11_SYSTEM:AUTO : <INFO> Delayed restart of the grabber due to change of the framerate
2021-10-11T10:07:53.496 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:85:setSignalDetectionOffset() | Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2021-10-11T10:07:53.496 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:75:setSignalThreshold() | Signal threshold set to: {12, 12, 12} and frames: 200
2021-10-11T10:07:53.496 X11_SYSTEM:AUTO : <DEBUG> Grabber.cpp:307:setDeviceVideoStandard() | setDeviceVideoStandard preparing to restart video grabber. Old: '' new: 'auto'
2021-10-11T10:07:53.496 X11_SYSTEM:AUTO : <INFO> Delayed restart of the grabber due to change of selected device
2021-10-11T10:07:53.566 SETTINGSMGR : <INFO> Settings database initialized
2021-10-11T10:07:53.568 BLACKBORDER : <INFO> Set mode to: default
2021-10-11T10:07:53.568 COMPONENTREG0 : <INFO> Blackborder detector: enabled
2021-10-11T10:07:53.568 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:136:setSparseProcessing() | setSparseProcessing to 0
2021-10-11T10:07:53.569 RGB_TRANSFORM0 : <INFO> RGB transform classic_config: 1, saturationGain: 1.000000, luminanceGain: 1.000000, backlightThreshold: 0
2021-10-11T10:07:53.570 ADJUST_RED0 : <INFO> Set correction to 255
2021-10-11T10:07:53.570 ADJUST_BLUE0 : <INFO> Set correction to 255
2021-10-11T10:07:53.570 ADJUST_GREEN0 : <INFO> Set correction to 255
2021-10-11T10:07:53.572 DB : <INFO> Database opened: /home/pi/.hyperhdr/db/hyperhdr.db
2021-10-11T10:07:53.586 JSONSERVER : <DEBUG> JsonServer.cpp:28:JsonServer() | Created instance
2021-10-11T10:07:53.586 JSONSERVER : <INFO> Started on port 19444
2021-10-11T10:07:53.592 LEDDEVICE : <INFO> Start LedDevice 'adalight'.
2021-10-11T10:07:53.593 SMOOTHING0 : <INFO> Creating config (0) => type: Linear, dirMode: false, pause: false, settlingTime: 200ms, interval: 40ms (25Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0
2021-10-11T10:07:53.593 SMOOTHING0 : <INFO> Selecting config (0) => type: Linear, dirMode: false, pause: false, settlingTime: 200ms, interval: 40ms (25Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0
2021-10-11T10:07:53.593 SMOOTHING0 : <INFO> Selecting config (0) => type: Linear, dirMode: false, pause: false, settlingTime: 200ms, interval: 40ms (25Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0
2021-10-11T10:07:53.593 LEDDEVICE : <DEBUG> LedDevice.cpp:149:init() | deviceConfig: [{"awa_mode":true,"colorOrder":"rgb","currentLedCount":166,"delayAfterConnect":0,"hardwareLedCount":166,"latchTime":15,"output":"ttyUSB0","rate":115200,"rewriteTime":1000,"type":"adalight"}]
2021-10-11T10:07:53.593 LEDDEVICE : <DEBUG> LedDevice.cpp:408:setLatchTime() | LatchTime updated to 15ms
2021-10-11T10:07:53.593 LEDDEVICE : <DEBUG> LedDevice.cpp:429:setRewriteTime() | Refresh interval = 1000ms
2021-10-11T10:07:53.593 LEDDEVICE : <DEBUG> LedDevice.cpp:435:setRewriteTime() | RewriteTime updated to 1000ms
2021-10-11T10:07:53.593 LEDDEVICE : <DEBUG> ProviderRs232.cpp:36:init() | DeviceType : adalight
2021-10-11T10:07:53.594 LEDDEVICE : <DEBUG> ProviderRs232.cpp:37:init() | LedCount : 166
2021-10-11T10:07:53.594 LEDDEVICE : <DEBUG> ProviderRs232.cpp:38:init() | ColorOrder : rgb
2021-10-11T10:07:53.594 LEDDEVICE : <DEBUG> ProviderRs232.cpp:39:init() | RefreshTime : 1000
2021-10-11T10:07:53.594 LEDDEVICE : <DEBUG> ProviderRs232.cpp:40:init() | LatchTime : 15
2021-10-11T10:07:53.594 FLATBUFCONN : <INFO> Connecting to HyperHDR: 127.0.0.1:19401
2021-10-11T10:07:53.594 LEDDEVICE : <DEBUG> ProviderRs232.cpp:52:init() | deviceName : ttyUSB0
2021-10-11T10:07:53.594 LEDDEVICE : <DEBUG> ProviderRs232.cpp:53:init() | AutoDevice : 0
2021-10-11T10:07:53.594 LEDDEVICE : <DEBUG> ProviderRs232.cpp:54:init() | baudRate_Hz : 115200
2021-10-11T10:07:53.594 LEDDEVICE : <DEBUG> ProviderRs232.cpp:55:init() | delayAfCon ms: 0
2021-10-11T10:07:53.594 LEDDEVICE : <DEBUG> LedDeviceAdalight.cpp:64:CreateHeader() | Adalight driver with activated high speeed & data integration check AWA protocol
2021-10-11T10:07:53.595 LEDDEVICE : <DEBUG> LedDeviceAdalight.cpp:74:CreateHeader() | Adalight header for 166 leds: Awa 0x00 0xa5 0xf0
2021-10-11T10:07:53.595 LEDDEVICE : <INFO> Opening UART: ttyUSB0
2021-10-11T10:07:53.595 LEDDEVICE : <DEBUG> ProviderRs232.cpp:141:tryOpen() | _rs232Port.open(QIODevice::ReadWrite): ttyUSB0, Baud rate [115200]bps
2021-10-11T10:07:53.595 MUXER0 : <INFO> Register new input 'System/COLOR' with priority 254 as inactive
2021-10-11T10:07:53.596 MUXER0 : <DEBUG> PriorityMuxer.cpp:211:setInput() | Priority 254 is now active
2021-10-11T10:07:53.596 MUXER0 : <INFO> Set visible priority to 254
2021-10-11T10:07:53.596 HYPERHDR0 : <INFO> New priority[254], previous [255]
2021-10-11T10:07:53.596 HYPERHDR0 : <INFO> New source available -> switch LED-Device on
2021-10-11T10:07:53.596 FLATBUFSERVER : <INFO> Started on port 19400
2021-10-11T10:07:53.596 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:180:setHardLedMappingType() | set hard led mapping to multicolor_mean
2021-10-11T10:07:53.597 HYPERHDR : <INFO> Initial background color set (254 0 0)
2021-10-11T10:07:53.598 WEBSERVER : <INFO> Initialize Webserver
2021-10-11T10:07:53.598 BOBLIGHT : <INFO> Instance created
2021-10-11T10:07:53.600 HYPERMANAGER : <INFO> HyperHDR instance 'TV Ambient Light' has been started
2021-10-11T10:07:53.600 DAEMON : <INFO> Unload CEC
2021-10-11T10:07:53.600 PROTOSERVER : <INFO> Started on port 19445
2021-10-11T10:07:53.604 WEBSERVER : <INFO> Initialize Webserver
2021-10-11T10:07:53.620 WEBSERVER : <INFO> Apply Webserver settings
2021-10-11T10:07:53.620 WEBSERVER : <INFO> Set document root to: :/webconfig
2021-10-11T10:07:53.620 WEBSERVER : <INFO> Apply Webserver settings
2021-10-11T10:07:53.621 WEBSERVER : <INFO> Started on port 8090 name 'HyperHDR Webserver'
2021-10-11T10:07:53.621 WEBSERVER : <INFO> Set document root to: :/webconfig
2021-10-11T10:07:53.629 WEBSERVER : <INFO> Setup SSL certificate
2021-10-11T10:07:53.630 WEBSERVER : <INFO> Setup private SSL key
2021-10-11T10:07:53.630 WEBSERVER : <INFO> Started on port 8092 name 'HyperHDR Webserver'
2021-10-11T10:07:53.646 LEDDEVICE : <DEBUG> ProviderRs232.cpp:146:tryOpen() | portName: ttyUSB0
2021-10-11T10:07:53.646 LEDDEVICE : <DEBUG> ProviderRs232.cpp:147:tryOpen() | systemLocation: /dev/ttyUSB0
2021-10-11T10:07:53.646 LEDDEVICE : <DEBUG> ProviderRs232.cpp:148:tryOpen() | description: USB2.0-Ser
2021-10-11T10:07:53.646 LEDDEVICE : <DEBUG> ProviderRs232.cpp:149:tryOpen() | manufacturer: 1a86
2021-10-11T10:07:53.647 LEDDEVICE : <DEBUG> ProviderRs232.cpp:150:tryOpen() | productIdentifier: 0x7523
2021-10-11T10:07:53.647 LEDDEVICE : <DEBUG> ProviderRs232.cpp:151:tryOpen() | vendorIdentifier: 0x1a86
2021-10-11T10:07:53.647 LEDDEVICE : <DEBUG> ProviderRs232.cpp:152:tryOpen() | serialNumber:
2021-10-11T10:07:53.652 COMPONENTREG0 : <INFO> LED device: enabled
2021-10-11T10:07:53.652 EFFECTENGINE0 : <INFO> Run effect "Rainbow swirl fast" on channel 0
2021-10-11T10:07:53.669 EFFECTENGINE0 : <DEBUG> EffectEngine.cpp:152:runEffectScript() | Start the effect: name [Rainbow swirl fast], smoothCfg [2]
2021-10-11T10:07:53.670 MUXER0 : <INFO> Register new input 'System/EFFECT' with priority 0 as inactive
2021-10-11T10:07:53.670 HYPERHDR : <INFO> Initial foreground effect 'Rainbow swirl fast' started
2021-10-11T10:07:53.681 EFFECT0(Rainbo...) : <INFO> Begin playing the effect with priority: 0
2021-10-11T10:07:53.687 MUXER0 : <INFO> Priority 0 is now active
2021-10-11T10:07:53.687 MUXER0 : <INFO> Set visible priority to 0
2021-10-11T10:07:53.688 IMAGETOLED0 : <INFO> Total index number is: 904. Sparse processing: disabled, image size: 80 x 45, area number: 166
2021-10-11T10:07:53.688 IMAGETOLED0 : <INFO> Total index number is: 904. Sparse processing: disabled, image size: 80 x 45, area number: 166
2021-10-11T10:07:53.688 HYPERHDR0 : <INFO> New priority[0], previous [254]
2021-10-11T10:07:53.689 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:180:setHardLedMappingType() | set hard led mapping to multicolor_mean
2021-10-11T10:07:56.698 EFFECT0(Rainbo...) : <INFO> The effect quits with priority: 0
2021-10-11T10:07:56.699 MUXER0 : <INFO> Removed source priority 0
2021-10-11T10:07:56.699 MUXER0 : <INFO> Set visible priority to 254
2021-10-11T10:07:56.699 HYPERHDR0 : <INFO> New priority[254], previous [0]
2021-10-11T10:07:56.700 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:180:setHardLedMappingType() | set hard led mapping to multicolor_mean
2021-10-11T10:07:56.701 EFFECTENGINE0 : <INFO> Effect 'Rainbow swirl fast' has finished.
2021-10-11T10:07:56.701 EFFECT0(Rainbo...) : <INFO> Deleting effect named: 'Rainbow swirl fast'
OK, thank you for detailed info and positive feedback :)
As per your suggestion, I turned off the smoothing and set the hardware led count as 1. Now HyperHDR is no longer crashing but the leds are not lighting up. Only the first 2 LEDs have a greenish color and no lights on the rest of the LEDs and also LEDs does not respond to HyperHDR at all.
Probable it is a small mistake while changing configuration and these 2 leds are not controlled ('ghosts' in unpredictable state):
2021-10-11T10:07:53.593 LEDDEVICE :
Set speed to 2000000 as before and it should work.
And for the main problem of crashing while switching LED devices: wouldn't you mind to share your configuration taken from the general tab (ws821x or HyperSPI you used before) that crashes HyperHDR after switching to adalight? Would be great that after taking the backup you could switch again LED device to adalight to confirm that it still crashes on the configuration that was just exported.
Thanks again for your awesome work,
I have more logs to report. After setting baud rate to 2000000, its crashing again. I think crashing as nothing to do with baud rate because its kind of random.
2021-10-11T11:00:13.077 MAIN : <INFO> Starting HyperHdr - 17.0.0.0, (HEAD detached at dec81c0) (Awawa-2a2ed8d/dec81c0-1631541363), built: Sep 15 2021:17:02:39
2021-10-11T11:00:13.077 MAIN : <DEBUG> main.cpp:360:main() | QtVersion [5.11.3]
2021-10-11T11:00:13.077 MAIN : <INFO> Set user data path to '/home/pi/.hyperhdr'
2021-10-11T11:00:13.082 DB : <INFO> Database opened: /home/pi/.hyperhdr/db/hyperhdr.db
2021-10-11T11:00:13.178 SETTINGSMGR : <INFO> Settings database initialized
2021-10-11T11:00:13.178 HYPERHDR : <INFO> Sound device is disabled
2021-10-11T11:00:13.218 V4L2:USB VIDEO: USB : <INFO> Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-10-11T11:00:13.218 V4L2:USB VIDEO: USB : <INFO> Found capture device: /dev/video14
2021-10-11T11:00:13.219 V4L2:USB VIDEO: USB : <INFO> Found capture device: /dev/video15
2021-10-11T11:00:13.219 V4L2:USB VIDEO: USB : <INFO> Restarting video grabber is now blocked due to reloading of the configuration
2021-10-11T11:00:13.219 V4L2:USB Video: USB : <DEBUG> GrabberWrapper.cpp:415:handleSettingsUpdate() | Auto resume is: enabled
2021-10-11T11:00:13.219 V4L2:USB VIDEO: USB : <INFO> Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-10-11T11:00:13.219 V4L2:USB Video: USB : <DEBUG> GrabberWrapper.cpp:42:setCecStartStop() | CEC keycode. Start: 0, stop: 0
2021-10-11T11:00:13.219 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:117:trySetWidthHeight() | Set new width: 640, height: 480 for capture
2021-10-11T11:00:13.220 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:262:setWidthHeight() | setWidthHeight preparing to restarting video grabber 0
2021-10-11T11:00:13.220 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the capturing resolution
2021-10-11T11:00:13.220 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the framerate
2021-10-11T11:00:13.220 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:186:setBrightnessContrastSaturationHue() | Set brightness to -11, contrast to 148, saturation to 180, hue to 0
2021-10-11T11:00:13.220 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the Brightness/Contrast/Saturation/Hue
2021-10-11T11:00:13.220 V4L2:USB VIDEO: USB : <DEBUG> V4L2Grabber.cpp:98:setHdrToneMappingEnabled() | setHdrToneMappingMode to: Disabled
2021-10-11T11:00:13.220 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:140:setFpsSoftwareDecimation() | setFpsSoftwareDecimation to: 1
2021-10-11T11:00:13.220 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:85:setSignalDetectionOffset() | Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2021-10-11T11:00:13.220 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:75:setSignalThreshold() | Signal threshold set to: {12, 12, 12} and frames: 200
2021-10-11T11:00:13.220 V4L2:USB VIDEO: USB : <INFO> Automatic signal detection is now enabled
2021-10-11T11:00:13.220 SIGNAL_AUTO : <DEBUG> DetectionAutomatic.cpp:368:setAutoSignalParams() | Automatic signal detection -> errorTolerance: 9, modelTolerance: 90, sleepTime: 5000, wakeTime: 1000
2021-10-11T11:00:13.220 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:307:setDeviceVideoStandard() | setDeviceVideoStandard preparing to restart video grabber. Old: '' new: 'USB Video: USB Video (video0)'
2021-10-11T11:00:13.221 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of selected device
2021-10-11T11:00:13.221 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:158:setEncoding() | Force encoding to: yuyv (old: NO_CHANGE)
2021-10-11T11:00:13.221 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the video encoding format
2021-10-11T11:00:13.221 V4L2:USB VIDEO: USB : <INFO> setQFrameDecimation is now: enabled
2021-10-11T11:00:13.227 X11_SYSTEM:AUTO : <INFO> Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-10-11T11:00:13.227 X11_SYSTEM:AUTO : <INFO> Loaded X11 proxy library for screen capturing
2021-10-11T11:00:13.227 X11_SYSTEM:AUTO : <INFO> Restarting video grabber is now blocked due to reloading of the configuration
2021-10-11T11:00:13.227 X11_SYSTEM:AUTO : <DEBUG> Grabber.cpp:117:trySetWidthHeight() | Set new width: 512, height: 512 for capture
2021-10-11T11:00:13.228 X11_SYSTEM:AUTO : <DEBUG> Grabber.cpp:262:setWidthHeight() | setWidthHeight preparing to restarting video grabber 0
2021-10-11T11:00:13.228 X11_SYSTEM:AUTO : <INFO> Delayed restart of the grabber due to change of the capturing resolution
2021-10-11T11:00:13.228 X11_SYSTEM:AUTO : <INFO> Delayed restart of the grabber due to change of the framerate
2021-10-11T11:00:13.228 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:85:setSignalDetectionOffset() | Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2021-10-11T11:00:13.228 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:75:setSignalThreshold() | Signal threshold set to: {12, 12, 12} and frames: 200
2021-10-11T11:00:13.228 X11_SYSTEM:AUTO : <DEBUG> Grabber.cpp:307:setDeviceVideoStandard() | setDeviceVideoStandard preparing to restart video grabber. Old: '' new: 'auto'
2021-10-11T11:00:13.228 X11_SYSTEM:AUTO : <INFO> Delayed restart of the grabber due to change of selected device
2021-10-11T11:00:13.299 SETTINGSMGR : <INFO> Settings database initialized
2021-10-11T11:00:13.301 BLACKBORDER : <INFO> Set mode to: default
2021-10-11T11:00:13.301 COMPONENTREG0 : <INFO> Blackborder detector: enabled
2021-10-11T11:00:13.301 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:136:setSparseProcessing() | setSparseProcessing to 0
2021-10-11T11:00:13.302 RGB_TRANSFORM0 : <INFO> RGB transform classic_config: 1, saturationGain: 1.000000, luminanceGain: 1.000000, backlightThreshold: 0
2021-10-11T11:00:13.303 ADJUST_RED0 : <INFO> Set correction to 255
2021-10-11T11:00:13.303 ADJUST_BLUE0 : <INFO> Set correction to 255
2021-10-11T11:00:13.303 ADJUST_GREEN0 : <INFO> Set correction to 255
2021-10-11T11:00:13.305 DB : <INFO> Database opened: /home/pi/.hyperhdr/db/hyperhdr.db
2021-10-11T11:00:13.316 JSONSERVER : <DEBUG> JsonServer.cpp:28:JsonServer() | Created instance
2021-10-11T11:00:13.316 JSONSERVER : <INFO> Started on port 19444
2021-10-11T11:00:13.323 FLATBUFSERVER : <INFO> Started on port 19400
2021-10-11T11:00:13.323 PROTOSERVER : <INFO> Started on port 19445
2021-10-11T11:00:13.324 WEBSERVER : <INFO> Initialize Webserver
2021-10-11T11:00:13.326 SMOOTHING0 : <INFO> Creating config (0) => type: Linear, dirMode: false, pause: false, settlingTime: 200ms, interval: 40ms (25Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0
2021-10-11T11:00:13.326 LEDDEVICE : <INFO> Start LedDevice 'adalight'.
2021-10-11T11:00:13.326 SMOOTHING0 : <INFO> Selecting config (0) => type: Linear, dirMode: false, pause: false, settlingTime: 200ms, interval: 40ms (25Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0
2021-10-11T11:00:13.326 SMOOTHING0 : <INFO> Selecting config (0) => type: Linear, dirMode: false, pause: false, settlingTime: 200ms, interval: 40ms (25Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0
2021-10-11T11:00:13.326 LEDDEVICE : <DEBUG> LedDevice.cpp:149:init() | deviceConfig: [{"awa_mode":true,"colorOrder":"rgb","currentLedCount":166,"delayAfterConnect":0,"hardwareLedCount":1,"latchTime":15,"output":"ttyUSB0","rate":2000000,"rewriteTime":1000,"type":"adalight"}]
2021-10-11T11:00:13.326 LEDDEVICE : <DEBUG> LedDevice.cpp:408:setLatchTime() | LatchTime updated to 15ms
2021-10-11T11:00:13.326 LEDDEVICE : <DEBUG> LedDevice.cpp:429:setRewriteTime() | Refresh interval = 1000ms
2021-10-11T11:00:13.326 LEDDEVICE : <DEBUG> LedDevice.cpp:435:setRewriteTime() | RewriteTime updated to 1000ms
2021-10-11T11:00:13.326 LEDDEVICE : <DEBUG> ProviderRs232.cpp:36:init() | DeviceType : adalight
2021-10-11T11:00:13.327 LEDDEVICE : <DEBUG> ProviderRs232.cpp:37:init() | LedCount : 166
2021-10-11T11:00:13.327 LEDDEVICE : <DEBUG> ProviderRs232.cpp:38:init() | ColorOrder : rgb
2021-10-11T11:00:13.327 LEDDEVICE : <DEBUG> ProviderRs232.cpp:39:init() | RefreshTime : 1000
2021-10-11T11:00:13.327 FLATBUFCONN : <INFO> Connecting to HyperHDR: 127.0.0.1:19401
2021-10-11T11:00:13.327 LEDDEVICE : <DEBUG> ProviderRs232.cpp:40:init() | LatchTime : 15
2021-10-11T11:00:13.327 LEDDEVICE : <DEBUG> ProviderRs232.cpp:52:init() | deviceName : ttyUSB0
2021-10-11T11:00:13.327 LEDDEVICE : <DEBUG> ProviderRs232.cpp:53:init() | AutoDevice : 0
2021-10-11T11:00:13.327 LEDDEVICE : <DEBUG> ProviderRs232.cpp:54:init() | baudRate_Hz : 2000000
2021-10-11T11:00:13.327 LEDDEVICE : <DEBUG> ProviderRs232.cpp:55:init() | delayAfCon ms: 0
2021-10-11T11:00:13.327 LEDDEVICE : <DEBUG> LedDeviceAdalight.cpp:64:CreateHeader() | Adalight driver with activated high speeed & data integration check AWA protocol
2021-10-11T11:00:13.328 LEDDEVICE : <DEBUG> LedDeviceAdalight.cpp:74:CreateHeader() | Adalight header for 166 leds: Awa 0x00 0xa5 0xf0
2021-10-11T11:00:13.328 LEDDEVICE : <INFO> Opening UART: ttyUSB0
2021-10-11T11:00:13.328 LEDDEVICE : <DEBUG> ProviderRs232.cpp:141:tryOpen() | _rs232Port.open(QIODevice::ReadWrite): ttyUSB0, Baud rate [2000000]bps
2021-10-11T11:00:13.328 MUXER0 : <INFO> Register new input 'System/COLOR' with priority 254 as inactive
2021-10-11T11:00:13.328 MUXER0 : <DEBUG> PriorityMuxer.cpp:211:setInput() | Priority 254 is now active
2021-10-11T11:00:13.328 MUXER0 : <INFO> Set visible priority to 254
2021-10-11T11:00:13.328 HYPERHDR0 : <INFO> New priority[254], previous [255]
2021-10-11T11:00:13.329 HYPERHDR0 : <INFO> New source available -> switch LED-Device on
2021-10-11T11:00:13.329 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:180:setHardLedMappingType() | set hard led mapping to multicolor_mean
2021-10-11T11:00:13.329 HYPERHDR : <INFO> Initial background color set (1 225 66)
2021-10-11T11:00:13.330 BOBLIGHT : <INFO> Instance created
2021-10-11T11:00:13.332 WEBSERVER : <INFO> Initialize Webserver
2021-10-11T11:00:13.334 HYPERMANAGER : <INFO> HyperHDR instance 'TV Ambient Light' has been started
2021-10-11T11:00:13.334 DAEMON : <INFO> Unload CEC
2021-10-11T11:00:13.343 WEBSERVER : <INFO> Apply Webserver settings
2021-10-11T11:00:13.343 WEBSERVER : <INFO> Apply Webserver settings
2021-10-11T11:00:13.343 WEBSERVER : <INFO> Set document root to: :/webconfig
2021-10-11T11:00:13.343 WEBSERVER : <INFO> Set document root to: :/webconfig
2021-10-11T11:00:13.344 WEBSERVER : <INFO> Started on port 8090 name 'HyperHDR Webserver'
2021-10-11T11:00:13.351 WEBSERVER : <INFO> Setup SSL certificate
2021-10-11T11:00:13.351 WEBSERVER : <INFO> Setup private SSL key
2021-10-11T11:00:13.351 WEBSERVER : <INFO> Started on port 8092 name 'HyperHDR Webserver'
2021-10-11T11:00:13.377 LEDDEVICE : <DEBUG> ProviderRs232.cpp:146:tryOpen() | portName: ttyUSB0
2021-10-11T11:00:13.377 LEDDEVICE : <DEBUG> ProviderRs232.cpp:147:tryOpen() | systemLocation: /dev/ttyUSB0
2021-10-11T11:00:13.377 LEDDEVICE : <DEBUG> ProviderRs232.cpp:148:tryOpen() | description: USB2.0-Ser
2021-10-11T11:00:13.377 LEDDEVICE : <DEBUG> ProviderRs232.cpp:149:tryOpen() | manufacturer: 1a86
2021-10-11T11:00:13.377 LEDDEVICE : <DEBUG> ProviderRs232.cpp:150:tryOpen() | productIdentifier: 0x7523
2021-10-11T11:00:13.377 LEDDEVICE : <DEBUG> ProviderRs232.cpp:151:tryOpen() | vendorIdentifier: 0x1a86
2021-10-11T11:00:13.377 LEDDEVICE : <DEBUG> ProviderRs232.cpp:152:tryOpen() | serialNumber:
2021-10-11T11:00:13.386 COMPONENTREG0 : <INFO> LED device: enabled
2021-10-11T11:00:13.387 EFFECTENGINE0 : <INFO> Run effect "Rainbow swirl fast" on channel 0
2021-10-11T11:00:13.388 EFFECTENGINE0 : <DEBUG> EffectEngine.cpp:152:runEffectScript() | Start the effect: name [Rainbow swirl fast], smoothCfg [2]
2021-10-11T11:00:13.388 MUXER0 : <INFO> Register new input 'System/EFFECT' with priority 0 as inactive
2021-10-11T11:00:13.388 HYPERHDR : <INFO> Initial foreground effect 'Rainbow swirl fast' started
2021-10-11T11:00:13.389 EFFECT0(Rainbo...) : <INFO> Begin playing the effect with priority: 0
2021-10-11T11:00:13.391 MUXER0 : <INFO> Priority 0 is now active
2021-10-11T11:00:13.391 MUXER0 : <INFO> Set visible priority to 0
2021-10-11T11:00:13.392 IMAGETOLED0 : <INFO> Total index number is: 904. Sparse processing: disabled, image size: 80 x 45, area number: 166
2021-10-11T11:00:13.392 IMAGETOLED0 : <INFO> Total index number is: 904. Sparse processing: disabled, image size: 80 x 45, area number: 166
2021-10-11T11:00:13.393 HYPERHDR0 : <INFO> New priority[0], previous [254]
2021-10-11T11:00:13.393 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:180:setHardLedMappingType() | set hard led mapping to multicolor_mean
2021-10-11T11:00:16.393 EFFECT0(Rainbo...) : <INFO> The effect quits with priority: 0
2021-10-11T11:00:16.393 MUXER0 : <INFO> Removed source priority 0
2021-10-11T11:00:16.394 MUXER0 : <INFO> Set visible priority to 254
2021-10-11T11:00:16.394 HYPERHDR0 : <INFO> New priority[254], previous [0]
2021-10-11T11:00:16.394 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:180:setHardLedMappingType() | set hard led mapping to multicolor_mean
2021-10-11T11:00:16.394 EFFECTENGINE0 : <INFO> Effect 'Rainbow swirl fast' has finished.
2021-10-11T11:00:16.394 EFFECT0(Rainbo...) : <INFO> Deleting effect named: 'Rainbow swirl fast'
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
HyperHDR caught signal :SIGABRT
2021-10-11T11:00:17.774 CORE : <ERROR> /lib/arm-linux-gnueabihf/libc.so.6(__default_rt_sa_restorer+0) [0xb58cc120]
Aborted
After unplugging and re-plugging the GPIO 2 of ESP8266, its no longer crashing but again LEDs are not responding. No LEDs light up.
2021-10-11T11:08:06.770 MAIN : <INFO> Database path: '/home/pi/.hyperhdr/db/hyperhdr.db', readonlyMode = disabled
2021-10-11T11:08:06.771 MAIN : <INFO> Starting HyperHdr - 17.0.0.0, (HEAD detached at dec81c0) (Awawa-2a2ed8d/dec81c0-1631541363), built: Sep 15 2021:17:02:39
2021-10-11T11:08:06.771 MAIN : <DEBUG> main.cpp:360:main() | QtVersion [5.11.3]
2021-10-11T11:08:06.771 MAIN : <INFO> Set user data path to '/home/pi/.hyperhdr'
2021-10-11T11:08:06.776 DB : <INFO> Database opened: /home/pi/.hyperhdr/db/hyperhdr.db
2021-10-11T11:08:06.879 SETTINGSMGR : <INFO> Settings database initialized
2021-10-11T11:08:06.880 HYPERHDR : <INFO> Sound device is disabled
2021-10-11T11:08:06.921 V4L2:USB VIDEO: USB : <INFO> Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-10-11T11:08:06.922 V4L2:USB VIDEO: USB : <INFO> Found capture device: /dev/video14
2021-10-11T11:08:06.922 V4L2:USB VIDEO: USB : <INFO> Found capture device: /dev/video15
2021-10-11T11:08:06.923 V4L2:USB VIDEO: USB : <INFO> Restarting video grabber is now blocked due to reloading of the configuration
2021-10-11T11:08:06.923 V4L2:USB Video: USB : <DEBUG> GrabberWrapper.cpp:415:handleSettingsUpdate() | Auto resume is: enabled
2021-10-11T11:08:06.924 V4L2:USB VIDEO: USB : <INFO> Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-10-11T11:08:06.924 V4L2:USB Video: USB : <DEBUG> GrabberWrapper.cpp:42:setCecStartStop() | CEC keycode. Start: 0, stop: 0
2021-10-11T11:08:06.924 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:117:trySetWidthHeight() | Set new width: 640, height: 480 for capture
2021-10-11T11:08:06.925 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:262:setWidthHeight() | setWidthHeight preparing to restarting video grabber 0
2021-10-11T11:08:06.925 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the capturing resolution
2021-10-11T11:08:06.925 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the framerate
2021-10-11T11:08:06.925 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:186:setBrightnessContrastSaturationHue() | Set brightness to -11, contrast to 148, saturation to 180, hue to 0
2021-10-11T11:08:06.926 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the Brightness/Contrast/Saturation/Hue
2021-10-11T11:08:06.926 V4L2:USB VIDEO: USB : <DEBUG> V4L2Grabber.cpp:98:setHdrToneMappingEnabled() | setHdrToneMappingMode to: Disabled
2021-10-11T11:08:06.926 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:140:setFpsSoftwareDecimation() | setFpsSoftwareDecimation to: 1
2021-10-11T11:08:06.927 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:85:setSignalDetectionOffset() | Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2021-10-11T11:08:06.927 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:75:setSignalThreshold() | Signal threshold set to: {12, 12, 12} and frames: 200
2021-10-11T11:08:06.927 V4L2:USB VIDEO: USB : <INFO> Automatic signal detection is now enabled
2021-10-11T11:08:06.927 SIGNAL_AUTO : <DEBUG> DetectionAutomatic.cpp:368:setAutoSignalParams() | Automatic signal detection -> errorTolerance: 9, modelTolerance: 90, sleepTime: 5000, wakeTime: 1000
2021-10-11T11:08:06.928 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:307:setDeviceVideoStandard() | setDeviceVideoStandard preparing to restart video grabber. Old: '' new: 'USB Video: USB Video (video0)'
2021-10-11T11:08:06.928 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of selected device
2021-10-11T11:08:06.928 V4L2:USB VIDEO: USB : <DEBUG> Grabber.cpp:158:setEncoding() | Force encoding to: yuyv (old: NO_CHANGE)
2021-10-11T11:08:06.928 V4L2:USB VIDEO: USB : <INFO> Delayed restart of the grabber due to change of the video encoding format
2021-10-11T11:08:06.929 V4L2:USB VIDEO: USB : <INFO> setQFrameDecimation is now: enabled
2021-10-11T11:08:06.935 X11_SYSTEM:AUTO : <INFO> Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-10-11T11:08:06.936 X11_SYSTEM:AUTO : <INFO> Loaded X11 proxy library for screen capturing
2021-10-11T11:08:06.936 X11_SYSTEM:AUTO : <INFO> Restarting video grabber is now blocked due to reloading of the configuration
2021-10-11T11:08:06.937 X11_SYSTEM:AUTO : <DEBUG> Grabber.cpp:117:trySetWidthHeight() | Set new width: 512, height: 512 for capture
2021-10-11T11:08:06.937 X11_SYSTEM:AUTO : <DEBUG> Grabber.cpp:262:setWidthHeight() | setWidthHeight preparing to restarting video grabber 0
2021-10-11T11:08:06.937 X11_SYSTEM:AUTO : <INFO> Delayed restart of the grabber due to change of the capturing resolution
2021-10-11T11:08:06.937 X11_SYSTEM:AUTO : <INFO> Delayed restart of the grabber due to change of the framerate
2021-10-11T11:08:06.938 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:85:setSignalDetectionOffset() | Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2021-10-11T11:08:06.938 SIGNAL_OLD : <DEBUG> DetectionManual.cpp:75:setSignalThreshold() | Signal threshold set to: {12, 12, 12} and frames: 200
2021-10-11T11:08:06.938 X11_SYSTEM:AUTO : <DEBUG> Grabber.cpp:307:setDeviceVideoStandard() | setDeviceVideoStandard preparing to restart video grabber. Old: '' new: 'auto'
2021-10-11T11:08:06.939 X11_SYSTEM:AUTO : <INFO> Delayed restart of the grabber due to change of selected device
2021-10-11T11:08:07.009 SETTINGSMGR : <INFO> Settings database initialized
2021-10-11T11:08:07.011 BLACKBORDER : <INFO> Set mode to: default
2021-10-11T11:08:07.012 COMPONENTREG0 : <INFO> Blackborder detector: enabled
2021-10-11T11:08:07.012 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:136:setSparseProcessing() | setSparseProcessing to 0
2021-10-11T11:08:07.013 RGB_TRANSFORM0 : <INFO> RGB transform classic_config: 1, saturationGain: 1.000000, luminanceGain: 1.000000, backlightThreshold: 0
2021-10-11T11:08:07.014 ADJUST_RED0 : <INFO> Set correction to 255
2021-10-11T11:08:07.014 ADJUST_BLUE0 : <INFO> Set correction to 255
2021-10-11T11:08:07.014 ADJUST_GREEN0 : <INFO> Set correction to 255
2021-10-11T11:08:07.016 DB : <INFO> Database opened: /home/pi/.hyperhdr/db/hyperhdr.db
2021-10-11T11:08:07.026 JSONSERVER : <DEBUG> JsonServer.cpp:28:JsonServer() | Created instance
2021-10-11T11:08:07.027 JSONSERVER : <INFO> Started on port 19444
2021-10-11T11:08:07.034 FLATBUFSERVER : <INFO> Started on port 19400
2021-10-11T11:08:07.034 PROTOSERVER : <INFO> Started on port 19445
2021-10-11T11:08:07.034 WEBSERVER : <INFO> Initialize Webserver
2021-10-11T11:08:07.037 SMOOTHING0 : <INFO> Creating config (0) => type: Linear, dirMode: false, pause: false, settlingTime: 200ms, interval: 40ms (25Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0
2021-10-11T11:08:07.037 SMOOTHING0 : <INFO> Selecting config (0) => type: Linear, dirMode: false, pause: false, settlingTime: 200ms, interval: 40ms (25Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0
2021-10-11T11:08:07.037 SMOOTHING0 : <INFO> Selecting config (0) => type: Linear, dirMode: false, pause: false, settlingTime: 200ms, interval: 40ms (25Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0
2021-10-11T11:08:07.038 FLATBUFCONN : <INFO> Connecting to HyperHDR: 127.0.0.1:19401
2021-10-11T11:08:07.039 LEDDEVICE : <INFO> Start LedDevice 'adalight'.
2021-10-11T11:08:07.040 MUXER0 : <INFO> Register new input 'System/COLOR' with priority 254 as inactive
2021-10-11T11:08:07.040 MUXER0 : <DEBUG> PriorityMuxer.cpp:211:setInput() | Priority 254 is now active
2021-10-11T11:08:07.040 MUXER0 : <INFO> Set visible priority to 254
2021-10-11T11:08:07.040 HYPERHDR0 : <INFO> New priority[254], previous [255]
2021-10-11T11:08:07.040 HYPERHDR0 : <INFO> New source available -> switch LED-Device on
2021-10-11T11:08:07.040 LEDDEVICE : <DEBUG> LedDevice.cpp:149:init() | deviceConfig: [{"awa_mode":true,"colorOrder":"rgb","currentLedCount":166,"delayAfterConnect":0,"hardwareLedCount":1,"latchTime":15,"output":"ttyUSB0","rate":2000000,"rewriteTime":1000,"type":"adalight"}]
2021-10-11T11:08:07.040 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:180:setHardLedMappingType() | set hard led mapping to multicolor_mean
2021-10-11T11:08:07.041 LEDDEVICE : <DEBUG> LedDevice.cpp:408:setLatchTime() | LatchTime updated to 15ms
2021-10-11T11:08:07.041 HYPERHDR : <INFO> Initial background color set (1 225 66)
2021-10-11T11:08:07.041 LEDDEVICE : <DEBUG> LedDevice.cpp:429:setRewriteTime() | Refresh interval = 1000ms
2021-10-11T11:08:07.042 LEDDEVICE : <DEBUG> LedDevice.cpp:435:setRewriteTime() | RewriteTime updated to 1000ms
2021-10-11T11:08:07.035 WEBSERVER : <INFO> Initialize Webserver
2021-10-11T11:08:07.042 LEDDEVICE : <DEBUG> ProviderRs232.cpp:36:init() | DeviceType : adalight
2021-10-11T11:08:07.042 BOBLIGHT : <INFO> Instance created
2021-10-11T11:08:07.043 LEDDEVICE : <DEBUG> ProviderRs232.cpp:37:init() | LedCount : 166
2021-10-11T11:08:07.043 HYPERMANAGER : <INFO> HyperHDR instance 'TV Ambient Light' has been started
2021-10-11T11:08:07.043 DAEMON : <INFO> Unload CEC
2021-10-11T11:08:07.043 LEDDEVICE : <DEBUG> ProviderRs232.cpp:38:init() | ColorOrder : rgb
2021-10-11T11:08:07.043 LEDDEVICE : <DEBUG> ProviderRs232.cpp:39:init() | RefreshTime : 1000
2021-10-11T11:08:07.045 LEDDEVICE : <DEBUG> ProviderRs232.cpp:40:init() | LatchTime : 15
2021-10-11T11:08:07.047 LEDDEVICE : <DEBUG> ProviderRs232.cpp:52:init() | deviceName : ttyUSB0
2021-10-11T11:08:07.048 LEDDEVICE : <DEBUG> ProviderRs232.cpp:53:init() | AutoDevice : 0
2021-10-11T11:08:07.049 LEDDEVICE : <DEBUG> ProviderRs232.cpp:54:init() | baudRate_Hz : 2000000
2021-10-11T11:08:07.049 LEDDEVICE : <DEBUG> ProviderRs232.cpp:55:init() | delayAfCon ms: 0
2021-10-11T11:08:07.049 LEDDEVICE : <DEBUG> LedDeviceAdalight.cpp:64:CreateHeader() | Adalight driver with activated high speeed & data integration check AWA protocol
2021-10-11T11:08:07.050 LEDDEVICE : <DEBUG> LedDeviceAdalight.cpp:74:CreateHeader() | Adalight header for 166 leds: Awa 0x00 0xa5 0xf0
2021-10-11T11:08:07.050 LEDDEVICE : <INFO> Opening UART: ttyUSB0
2021-10-11T11:08:07.050 LEDDEVICE : <DEBUG> ProviderRs232.cpp:141:tryOpen() | _rs232Port.open(QIODevice::ReadWrite): ttyUSB0, Baud rate [2000000]bps
2021-10-11T11:08:07.055 WEBSERVER : <INFO> Apply Webserver settings
2021-10-11T11:08:07.055 WEBSERVER : <INFO> Apply Webserver settings
2021-10-11T11:08:07.055 WEBSERVER : <INFO> Set document root to: :/webconfig
2021-10-11T11:08:07.055 WEBSERVER : <INFO> Set document root to: :/webconfig
2021-10-11T11:08:07.055 WEBSERVER : <INFO> Started on port 8090 name 'HyperHDR Webserver'
2021-10-11T11:08:07.058 WEBSERVER : <INFO> Setup SSL certificate
2021-10-11T11:08:07.059 WEBSERVER : <INFO> Setup private SSL key
2021-10-11T11:08:07.059 WEBSERVER : <INFO> Started on port 8092 name 'HyperHDR Webserver'
2021-10-11T11:08:07.103 LEDDEVICE : <DEBUG> ProviderRs232.cpp:146:tryOpen() | portName: ttyUSB0
2021-10-11T11:08:07.103 LEDDEVICE : <DEBUG> ProviderRs232.cpp:147:tryOpen() | systemLocation: /dev/ttyUSB0
2021-10-11T11:08:07.104 LEDDEVICE : <DEBUG> ProviderRs232.cpp:148:tryOpen() | description: USB2.0-Ser
2021-10-11T11:08:07.104 LEDDEVICE : <DEBUG> ProviderRs232.cpp:149:tryOpen() | manufacturer: 1a86
2021-10-11T11:08:07.104 LEDDEVICE : <DEBUG> ProviderRs232.cpp:150:tryOpen() | productIdentifier: 0x7523
2021-10-11T11:08:07.104 LEDDEVICE : <DEBUG> ProviderRs232.cpp:151:tryOpen() | vendorIdentifier: 0x1a86
2021-10-11T11:08:07.104 LEDDEVICE : <DEBUG> ProviderRs232.cpp:152:tryOpen() | serialNumber:
2021-10-11T11:08:07.110 COMPONENTREG0 : <INFO> LED device: enabled
2021-10-11T11:08:07.110 EFFECTENGINE0 : <INFO> Run effect "Rainbow swirl fast" on channel 0
2021-10-11T11:08:07.111 EFFECTENGINE0 : <DEBUG> EffectEngine.cpp:152:runEffectScript() | Start the effect: name [Rainbow swirl fast], smoothCfg [2]
2021-10-11T11:08:07.111 MUXER0 : <INFO> Register new input 'System/EFFECT' with priority 0 as inactive
2021-10-11T11:08:07.111 HYPERHDR : <INFO> Initial foreground effect 'Rainbow swirl fast' started
2021-10-11T11:08:07.112 EFFECT0(Rainbo...) : <INFO> Begin playing the effect with priority: 0
2021-10-11T11:08:07.114 MUXER0 : <INFO> Priority 0 is now active
2021-10-11T11:08:07.114 MUXER0 : <INFO> Set visible priority to 0
2021-10-11T11:08:07.114 IMAGETOLED0 : <INFO> Total index number is: 904. Sparse processing: disabled, image size: 80 x 45, area number: 166
2021-10-11T11:08:07.115 IMAGETOLED0 : <INFO> Total index number is: 904. Sparse processing: disabled, image size: 80 x 45, area number: 166
2021-10-11T11:08:07.115 HYPERHDR0 : <INFO> New priority[0], previous [254]
2021-10-11T11:08:07.115 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:180:setHardLedMappingType() | set hard led mapping to multicolor_mean
2021-10-11T11:08:09.602 WEBSOCKET : <DEBUG> WebSocketClient.cpp:30:WebSocketClient() | New connection from ::ffff:192.168.0.10
2021-10-11T11:08:09.603 WEBSOCKET : <DEBUG> JsonAPI.cpp:89:handleInstanceSwitch() | Client '::ffff:192.168.0.10' switch to HyperHDR instance 0
2021-10-11T11:08:10.129 EFFECT0(Rainbo...) : <INFO> The effect quits with priority: 0
2021-10-11T11:08:10.130 MUXER0 : <INFO> Removed source priority 0
2021-10-11T11:08:10.130 MUXER0 : <INFO> Set visible priority to 254
2021-10-11T11:08:10.131 HYPERHDR0 : <INFO> New priority[254], previous [0]
2021-10-11T11:08:10.132 IMAGETOLED0 : <DEBUG> ImageProcessor.cpp:180:setHardLedMappingType() | set hard led mapping to multicolor_mean
2021-10-11T11:08:10.132 EFFECTENGINE0 : <INFO> Effect 'Rainbow swirl fast' has finished.
2021-10-11T11:08:10.132 EFFECT0(Rainbo...) : <INFO> Deleting effect named: 'Rainbow swirl fast'
and here is the link for my configuration exported via webUI -> HyperHDR-17.0.0.0-Backup-2021-10-11.json
Thank you :) Changing the speed should not affect the problem if the smoothing is disabled: the data are written regardless if it's 115200 or 2000000. Only the second side (ESP8266) won't control the LED strip if it's set to 115200. Wonder if it could be a hardware related problem.... Unplugging and re-plugging the GPIO 2 of ESP8266 has no effect on the HyperHDR because it's unaware of the client inner state: only serial port communication is matter and GPIO 2 is unrelated. You could check if there is any communication with esp8266 using screen, example usage you can find here: https://github.com/awawa-dev/HyperHDR/discussions/97#discussioncomment-1213991
I think you might be on to something
After flashing HyperSerialEsp8266.ino.d1_mini_WS821x_FIRSTLED_DISABLED.bin using esphome-flasher, I get no logs in esphome-flasher. After connecting to pi 4 and running screen I get �������̖ܣ�����������
as output.
After getting no logs, I decided to try the HyperSPI, after flashing HyperSPI_esp8266_WS821x.ino.d1_mini.bin I'm getting the following logs in esphome-flasher
[11:53:05]-------------------------
[11:53:08]HyperSPI version 1.
[11:53:08]Statistics for the last full 1 second cycle.
[11:53:08]Frames per second: 0
[11:53:08]Good frames: 0
[11:53:08]Bad frames: 0
[11:53:08]-------------------------
I'm guessing I should be getting similar logs with HyperSerialEsp8266. Unfortunately, I don't have another spare ESP8266 to test it, i have ordered a new one but it's gonna take some time to get delivered.
Something like that: �������̖ܣ�����������
;) usually indicates the communication speed mismatch. Or other hardware problems.... Just want to confirm that screen
was using 2000000 speed for HyperSerialEsp8266 firmware? That speed requires specific serial port chip on the ESP board to work correctly. On the other hand as it's states in the HyperSPI specification HyperSPI is working at 115200 because we don't need higher speed just for logs and don't want to limit ESP devices based on their serial port capabilities.
yes, I was using screen /dev/ttyUSB0 2000000
Also when I tried to use screen /dev/ttyUSB0 115200
I'm getting F&J�zc0�z�z�FDF2'&�Z�8dZ�sd�������z���z�z�J���'&Ư
I tried different baud rate but I couldn't get any good output.
Meanwhile, when i use the HyperSPI firmware, I am getting good output on screen /dev/ttyUSB0 115200
Now I'm have doubts whether what I bought is real CH340G or a fake
In windows device manager it shows up as USB-SERIAL CH340 (COM6)
The serial chip itself doesn't have any label on it
In the thread I linked before (about screen example) we had a case of some strange ch-family serial chip that didn't support hardware break control and the system software emulation didn't work. That's how the system logs (dmesg) looked: https://pastebin.com/rffcy406 (timestamp: 5.063796) It was detected by the ch341-uart linux driver, it didn't throw any errors while opening but the transmission was corrupted. Don't know if it's related.
OK, something is definitely wrong anyway. Hardware problem is one thing, but for now I haven't found a place in code that could throw that exception. Even if the hardware is causing such problems it should be handled and the error reported in the log. My current guess is something wrong is happening with the QT serial port object and at some point it crashes alongside our application (communication buffer overflow?).
There is one possible solution: installing gdb package and run hyperhdr with it. HyperHDR debug version would be much better but even if it's a release version the stack trace from crash could provide some information. But I won't be asking you for installing it on your production system: the package and dependencies are quite heavy and later it would required cleaning up/removing it all.
I have that exact same issue in dmesg
[ 656.052203] usb 1-1.4: new full-speed USB device number 6 using xhci_hcd
[ 656.188572] usb 1-1.4: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54
[ 656.188600] usb 1-1.4: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 656.188630] usb 1-1.4: Product: USB2.0-Ser!
[ 656.197998] ch341 1-1.4:1.0: ch341-uart converter detected
[ 656.204231] ch341-uart ttyUSB0: break control not supported, using simulated break
[ 656.204514] usb 1-1.4: ch341-uart converter now attached to ttyUSB
Transmission is mostly likely getting corrupted because of this.
Even if the hardware is causing such problems it should be handled and the error reported in the log.
Yes, once the HyperHDR starts crashing, its in an endless-loop. I had to either delete the database or disconnect ESP8266 to get the HyperHDR to stop crashing.
installing gdb package and run hyperhdr with it.
I think I can give it a try when I'm free. Maybe my best option is to wait for the new ESP board. Till then I will use the HyperSPI firmware.
@awawa-dev Couple of new ESP8266 that I ordered just arrived. Unfortunately, all of them has the same exact issue
[384360.492621] usb 1-1.3: new full-speed USB device number 6 using xhci_hcd
[384360.628963] usb 1-1.3: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54
[384360.628986] usb 1-1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[384360.629004] usb 1-1.3: Product: USB2.0-Ser!
[384360.633846] ch341 1-1.3:1.0: ch341-uart converter detected
[384360.638795] ch341-uart ttyUSB1: break control not supported, using simulated break
[384360.639116] usb 1-1.3: ch341-uart converter now attached to ttyUSB1
Could you please help/advice me to find the right ESP8266 to purchase for using HyperSerialEsp8266 firmware ?
Sorry to hear that. In the past ch340g was cheap substitute of cp2102 but now it's counterfeited in the massive way. I think it should work on 921600 speed anyway using available special images from HyperSerialWLED download section (or you can compile HyperSerialEsp8266 for that speed).
I purchased recently few ESP32 boards, a bit pricier than ESP8266 https://www.aliexpress.com/item/32815530502.html You can use it with HyperSerialEsp32 the same way as ESP8266 with HyperSerialEsp8266. It's much more capable, especially for larger amount of LED and using with WLED/HyperSerialWLED (more available memory) and its pinout is fully flexible (ESP8266 pinout can't be really changed).
On board is CH9201x (cheaper and more capable replacement of cp2104) and the product is high quality, I've managed to reach even 4Mb speed with modified sketch...just for the sport, I tested potential of that new chip.
Thanks for the quick reply.
I have ordered a couple of ESP32 boards (from the same link). While waiting for it to arrive, I will try the special image from HyperSerialWLED download section.
@awawa-dev I just received my new ESP32 boards and I flashed the latest HyperSerialESP32 firmware. This time as you said, there was no issue with the board
[393091.555504] usb 1-1.3: new full-speed USB device number 6 using xhci_hcd
[393091.694285] usb 1-1.3: New USB device found, idVendor=1a86, idProduct=55d4, bcdDevice= 4.43
[393091.694306] usb 1-1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=3
[393091.694325] usb 1-1.3: Product: USB Single Serial
[393091.694342] usb 1-1.3: SerialNumber: 52BC023336
[393091.752790] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device
[393091.753905] usbcore: registered new interface driver cdc_acm
[393091.753916] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Pi's kernel detected it correctly and the adalight led controller worked beautifully Thank you! so much for all your help & support
Hi @awawa-dev first of all thanks for this little piece of software. I'm trying to get it working and I had the same issues as @TheEmpressMiaw, wrong esp8266. I've ordered a couple ESP32's now, but one thing I would like to know, call me dumb, but GPIO 2, is that I02 on the ESP32? Tried to google it but I couldn't figure it out. Many thanks!
Yes, in this case GPIO2 is labeled as IO2 on the board.
Brilliant, working perfectly now with an ESP32. Thanks a lot!
@bverwijst If the power supply for ESP32 and LED strip is different, make sure they have a common ground or else you will see weird issues at random times.
I suspect the previous board with fake serial port chip was somehow responsible for throwing reported exception. That 'backdoor' in error handling could be patched if the debug version's gdb log could be provided. I am closing for now in order not to increase the further sale of one product on Ali (have no profit anyway from that, even no ref link ;) recommendation was based on my own research&testing result).
Steps to reproduce
Flash HyperSerialEsp8266.ino.d1_mini_WS821x_FIRSTLED_DISABLED.bin to ESP8266 CH340G Open HyperHDR webUI Setup LED Hardware:
adalight
/dev/ttyUSB0
2000000
true
Hit save settings
What is expected?
HyperHDR running
What is actually happening?
As soon as the settings is saved, HyperHDR crashes and restarts and crashes again, and this just goes on forever.
The following are the logs from hyperhdr -d
System
HyperHDR Server:
HyperHDR Server OS: