Page 3 of 20

Re: [App] libSambilight E/F/H (MST-only)

Posted: Thu Nov 18, 2021 7:27 am
by tasshack
Good news,
I found a way to get it working USB CDC functionality on TV. This means you don't need to use an external FTDI USB to serial board to connect to TV anymore. Instead you can use an Arduino Pro Micro/Leonardo or any atmega32u4 board with the onboard USB port.
Attached ino file on first post can be used with Pro Micro without any modifications other than led settings.

Re: [App] libSambilight E/F/H (MST-only)

Posted: Thu Nov 18, 2021 11:13 am
by aimaim
I tried the new solution. It works but it crashes the tv quiet frequently, especially shortly after booting.
So I'm going back to the old version for now.

I've changed the init's filename to 99_99... in order to get a log. But so far the log doesn't show anything suspicious (I think).

Re: [App] libSambilight E/F/H (MST-only)

Posted: Thu Nov 18, 2021 3:07 pm
by asiersan
would be posible to have a version for non-mst ?¿¿

Re: [App] libSambilight E/F/H (MST-only)

Posted: Fri Nov 19, 2021 1:07 am
by tasshack
asiersan wrote: Thu Nov 18, 2021 3:07 pm would be posible to have a version for non-mst ?¿¿
I think it can work on Non-MST with little modifications if any. I don't know for sure because library haven't been tested on Non-MST hardware.
I think you should try and share the result to post.

Re: [App] libSambilight E/F/H (MST-only)

Posted: Fri Nov 19, 2021 10:33 am
by asiersan
I tried with and old esp 01 and a short strip, but not works this is the log:

Code: Select all

[Sambilight] SamyGO E/F/H libSambilight v1.1.1 - (c) tasshack 2019 - 2021
[Sambilight] dlsym '_Z23SdDisplay_CaptureScreenP8SdSize_tPhP23SdDisplay_CaptureInfo_t' failed.
[Sambilight] dlsym '_Z23SdDisplay_CaptureScreenP8SdSize_tPhP23SdDisplay_CaptureInfo_t12SdMainChip_k' failed.
[Sambilight] _Z23SdDisplay_CaptureScreenP8SdSize_tPhP24SdVideoCommonFrameData_tP8SdRect_t12SdMainChip_k [0x4815a1f4].
[Sambilight] _Znwj [0x15eb7cc].
[Sambilight] _ZN4SCGCC2El [0x26c3b08].
[Sambilight] _ZN8SCBaseGC6CreateEv [0x26c0c74].
[Sambilight] _ZN4SCGC7DestroyEv [0x26c3f78].
[Sambilight] _ZN4SCGCD2Ev [0x26c3b50].
[Sambilight] _ZN4SCGC5ClearEPN6Shadow9BasicType4RectE [0x26c3a94].
[Sambilight] _ZN8SCBaseGC5FlushEPN6Shadow9BasicType4RectE [0x26c0588].
[Sambilight] _ZN4SCGC8FillRectEN6Shadow5ColorEllll [0x26b2f58].
[Sambilight] _ZN4SCGC8DrawTextEllPtl [0x26ba5a8].
[Sambilight] _ZN4SCGC11SetFontSizeEl [0x26ba90c].
[Sambilight] _ZN4SCGC7SetFontEP6SCFont [0x26b7ca4].
[Sambilight] _ZN4SCGC12SetFontStyleEl [0x26b82ec].
[Sambilight] _ZN4SCGC10SetFgColorEN6Shadow5ColorE [0x5072b68].
[Sambilight] _ZN14CUSBAppResUtil14GetDefaultFontEv [0x39a599c].
[Sambilight] dlsym 'g_IPanel' failed.
[Sambilight] dlsym 'g_TaskManager' failed.
[Sambilight] g_pTaskManager [0xb8794c8].
[Sambilight] dlsym 'g_TVViewerMgr' failed.
[Sambilight] g_pTVViewerMgr [0xb89dbb0].
[Sambilight] g_TVViewerWStringEng [0xb3c7c64].
[Sambilight] g_WarningWStringEng [0xb6e54dc].
[Sambilight] g_pCustomTextResMgr [0xb95e298].
[Sambilight] g_CustomTextWStringEng [0xb6eee70].
[Sambilight] _ZN16CResourceManager10GetWStringEi [0x1e52280].
[Sambilight] _ZN9PCWString7ConvertEPtPKciiPi [0x15ed448].
[Sambilight] _ZN12CTaskManager14GetApplicationE15DTV_APPLICATION [0x1e534c0].
[Sambilight] _ZN10CViewerApp16GetViewerManagerEv [0x2a04e18].
[Sambilight] _ZN10ALMOND030015CDesktopManager11GetInstanceENS_13EDesktopIndexE [0x1f5f378].
[Sambilight] _ZN10ALMOND030015CDesktopManager14GetApplicationEPKcS2_ [0x1f6aee8].
[Sambilight] dlsym '_ZN14CViewerManager15ShowSystemAlertEii' failed.
[Sambilight] dlsym '_ZN14CViewerManager15ShowSystemAlertEi' failed.
[Sambilight] dlsym '_ZN14CViewerManager14ShowCustomTextEi' failed.
[Sambilight] dlsym '_ZN14CViewerManager14ShowCustomTextEib' failed.
[Sambilight] dlsym '_ZN14CViewerManager10ShowRCModeEi' failed.
[Sambilight] _ZN14CCustomTextApp13t_OnActivatedEPKci [0x4b12f10].
[Sambilight] dlsym 'MsOS_PA2KSEG0' failed.
[Sambilight] dlsym 'MsOS_Dcache_Flush' failed.
[Sambilight] dlsym 'MApi_MMAP_GetInfo' failed.
[Sambilight] dlsym 'MApi_XC_W2BYTEMSK' failed.
[Sambilight] dlsym 'gfx_InitNonGAPlane' failed.
[Sambilight] dlsym 'gfx_ReleasePlane' failed.
[Sambilight] dlsym 'gfx_CaptureFrame' failed.
[Sambilight] dlsym 'gfx_BitBltScale' failed.
[Sambilight] dlsym 'MApi_GOP_DWIN_CaptureOneFrame' failed.
[Sambilight] dlsym 'MApi_GOP_DWIN_GetWinProperty' failed.
[Sambilight] Sambilight started
[Sambilight] H_LEDS: 35, V_LEDS: 19, BOTTOM_GAP: 7, START_OFFSET: 68, COLOR_ORDER: RGB, CAPTURE_POS: 0, CLOCKWISE: 1
[Sambilight] 480x270 30ms
[Sambilight] Black border detection enabled
[Sambilight] Could not find serial port!
[Sambilight] Sambilight ended
[Sambilight] lib_deinit
[Sambilight] lib_deinit

Re: [App] libSambilight E/F/H (MST-only)

Posted: Sat Nov 20, 2021 12:19 am
by tasshack
asiersan wrote: Fri Nov 19, 2021 10:33 am I tried with and old esp 01 and a short strip, but not works this is the log:

Code: Select all

[Sambilight] SamyGO E/F/H libSambilight v1.1.1 - (c) tasshack 2019 - 2021
[Sambilight] dlsym '_Z23SdDisplay_CaptureScreenP8SdSize_tPhP23SdDisplay_CaptureInfo_t' failed.
[Sambilight] dlsym '_Z23SdDisplay_CaptureScreenP8SdSize_tPhP23SdDisplay_CaptureInfo_t12SdMainChip_k' failed.
[Sambilight] _Z23SdDisplay_CaptureScreenP8SdSize_tPhP24SdVideoCommonFrameData_tP8SdRect_t12SdMainChip_k [0x4815a1f4].
[Sambilight] _Znwj [0x15eb7cc].
[Sambilight] _ZN4SCGCC2El [0x26c3b08].
[Sambilight] _ZN8SCBaseGC6CreateEv [0x26c0c74].
[Sambilight] _ZN4SCGC7DestroyEv [0x26c3f78].
[Sambilight] _ZN4SCGCD2Ev [0x26c3b50].
[Sambilight] _ZN4SCGC5ClearEPN6Shadow9BasicType4RectE [0x26c3a94].
[Sambilight] _ZN8SCBaseGC5FlushEPN6Shadow9BasicType4RectE [0x26c0588].
[Sambilight] _ZN4SCGC8FillRectEN6Shadow5ColorEllll [0x26b2f58].
[Sambilight] _ZN4SCGC8DrawTextEllPtl [0x26ba5a8].
[Sambilight] _ZN4SCGC11SetFontSizeEl [0x26ba90c].
[Sambilight] _ZN4SCGC7SetFontEP6SCFont [0x26b7ca4].
[Sambilight] _ZN4SCGC12SetFontStyleEl [0x26b82ec].
[Sambilight] _ZN4SCGC10SetFgColorEN6Shadow5ColorE [0x5072b68].
[Sambilight] _ZN14CUSBAppResUtil14GetDefaultFontEv [0x39a599c].
[Sambilight] dlsym 'g_IPanel' failed.
[Sambilight] dlsym 'g_TaskManager' failed.
[Sambilight] g_pTaskManager [0xb8794c8].
[Sambilight] dlsym 'g_TVViewerMgr' failed.
[Sambilight] g_pTVViewerMgr [0xb89dbb0].
[Sambilight] g_TVViewerWStringEng [0xb3c7c64].
[Sambilight] g_WarningWStringEng [0xb6e54dc].
[Sambilight] g_pCustomTextResMgr [0xb95e298].
[Sambilight] g_CustomTextWStringEng [0xb6eee70].
[Sambilight] _ZN16CResourceManager10GetWStringEi [0x1e52280].
[Sambilight] _ZN9PCWString7ConvertEPtPKciiPi [0x15ed448].
[Sambilight] _ZN12CTaskManager14GetApplicationE15DTV_APPLICATION [0x1e534c0].
[Sambilight] _ZN10CViewerApp16GetViewerManagerEv [0x2a04e18].
[Sambilight] _ZN10ALMOND030015CDesktopManager11GetInstanceENS_13EDesktopIndexE [0x1f5f378].
[Sambilight] _ZN10ALMOND030015CDesktopManager14GetApplicationEPKcS2_ [0x1f6aee8].
[Sambilight] dlsym '_ZN14CViewerManager15ShowSystemAlertEii' failed.
[Sambilight] dlsym '_ZN14CViewerManager15ShowSystemAlertEi' failed.
[Sambilight] dlsym '_ZN14CViewerManager14ShowCustomTextEi' failed.
[Sambilight] dlsym '_ZN14CViewerManager14ShowCustomTextEib' failed.
[Sambilight] dlsym '_ZN14CViewerManager10ShowRCModeEi' failed.
[Sambilight] _ZN14CCustomTextApp13t_OnActivatedEPKci [0x4b12f10].
[Sambilight] dlsym 'MsOS_PA2KSEG0' failed.
[Sambilight] dlsym 'MsOS_Dcache_Flush' failed.
[Sambilight] dlsym 'MApi_MMAP_GetInfo' failed.
[Sambilight] dlsym 'MApi_XC_W2BYTEMSK' failed.
[Sambilight] dlsym 'gfx_InitNonGAPlane' failed.
[Sambilight] dlsym 'gfx_ReleasePlane' failed.
[Sambilight] dlsym 'gfx_CaptureFrame' failed.
[Sambilight] dlsym 'gfx_BitBltScale' failed.
[Sambilight] dlsym 'MApi_GOP_DWIN_CaptureOneFrame' failed.
[Sambilight] dlsym 'MApi_GOP_DWIN_GetWinProperty' failed.
[Sambilight] Sambilight started
[Sambilight] H_LEDS: 35, V_LEDS: 19, BOTTOM_GAP: 7, START_OFFSET: 68, COLOR_ORDER: RGB, CAPTURE_POS: 0, CLOCKWISE: 1
[Sambilight] 480x270 30ms
[Sambilight] Black border detection enabled
[Sambilight] Could not find serial port!
[Sambilight] Sambilight ended
[Sambilight] lib_deinit
[Sambilight] lib_deinit
Did you enabled "USB Serial" from service menu? Also can you test it with an Arduino Pro Micro (without using an ftdi to serial adapter) if you have one.
EDIT:
I have updated the library to load FTDI kernel modules dynamically, can you test with the latest version on first post.

Also when i check the log i see that the critical functions are missing it to work with gfx_lib but it can still work without it. Can you run it on singleshot mode and check the /dtv/Sambilight.bmp output image.

Code: Select all

samyGOso -d -A -B -l /mnt/opt/privateer/usr/libso/libSambilight.so H_LEDS:35 V_LEDS:19 BOTTOM_GAP:7 START_OFFSET:68 CLOCKWISE:1 CAPTURE_POS:0 COLOR_ORDER:RGB BAUDRATE:921600 TEST_FRAMES:1 TEST_PATTERN:0 TEST_PROFILE:0 TEST_SAVE_CAPTURE:1

Re: [App] libSambilight E/F/H (MST-only)

Posted: Sat Nov 27, 2021 8:25 pm
by markush6302
Hello, is there anyone successful with UE48H5570SS (H-Series MST)?

Re: [App] libSambilight E/F/H (MST-only)

Posted: Sat Nov 27, 2021 10:11 pm
by tasshack
markush6302 wrote: Sat Nov 27, 2021 8:25 pm Hello, is there anyone successful with UE48H5570SS (H-Series MST)?
I noticed last week that library is not working with H series. I am currently working on that and i will post the working version in a few days.

Re: [App] libSambilight E/F/H (MST-only)

Posted: Sun Nov 28, 2021 2:34 pm
by TPmodding
slm tasaklim,

do you plan to add a network devices for output? e.g. udp or something else, would be "easier" as there are many projects for esp-devices for example wled

thanks!

Re: [App] libSambilight E/F/H (MST-only)

Posted: Sun Nov 28, 2021 3:47 pm
by tasshack
TPmodding wrote: Sun Nov 28, 2021 2:34 pm slm tasaklim,

do you plan to add a network devices for output? e.g. udp or something else, would be "easier" as there are many projects for esp-devices for example wled

thanks!
When we are talking about 20ms refresh rate with zero latency, network is serious bottleneck for these kind of applications, that is why i don't like hyperion. If you are sending data from TV to ESP, that takes about 200ms at best.
I will add TCP socket support later but the end result will be about 2-3 FPS and that requires smoothing on the embedded device.