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

Here are software that related with Samsung F series TVs.
Please don't create any new topic here unless you have software to post/release.

User avatar
tasshack
Posts: 22
Joined: Thu Aug 23, 2018 5:54 am
Location: Istanbul, TURKEY

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

Post 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.

aimaim
SamyGO Project Donor
Posts: 60
Joined: Wed Jan 02, 2013 10:46 pm

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

Post 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).
You do not have the required permissions to view the files attached to this post.

asiersan
SamyGO Project Donor
Posts: 150
Joined: Fri May 09, 2014 1:30 am

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

Post by asiersan »

would be posible to have a version for non-mst ?¿¿
Samsung 55HU7500L
Samsung 40F6500
Samsung 32K5570SU

User avatar
tasshack
Posts: 22
Joined: Thu Aug 23, 2018 5:54 am
Location: Istanbul, TURKEY

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

Post 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.

asiersan
SamyGO Project Donor
Posts: 150
Joined: Fri May 09, 2014 1:30 am

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

Post 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
Samsung 55HU7500L
Samsung 40F6500
Samsung 32K5570SU

User avatar
tasshack
Posts: 22
Joined: Thu Aug 23, 2018 5:54 am
Location: Istanbul, TURKEY

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

Post 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

markush6302
Posts: 1
Joined: Fri Jan 06, 2017 7:17 pm

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

Post by markush6302 »

Hello, is there anyone successful with UE48H5570SS (H-Series MST)?

User avatar
tasshack
Posts: 22
Joined: Thu Aug 23, 2018 5:54 am
Location: Istanbul, TURKEY

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

Post 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.

TPmodding
SamyGO Project Donor
Posts: 2
Joined: Wed May 15, 2019 5:50 pm
Location: Germany
Contact:

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

Post 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!

User avatar
tasshack
Posts: 22
Joined: Thu Aug 23, 2018 5:54 am
Location: Istanbul, TURKEY

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

Post 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.

Post Reply

Return to “[F] Software”