This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Samsung / Tizen TV API v2
#15
(23.02.2024, 11:16)Joep Wrote:
(23.02.2024, 11:00)j.martinez@t-ingeniamos.com Wrote: Hi there,

I am in the same situation as Joep.

websocket library working and comunicating with Samsung IP, but each time i send a KEY command the TV send us a new Token string and ask us to confirm the device.

Anyone have improved this?

And the wol packet i tried several scripts to switch ON the TV without success.... any idea about?

Here's a working WOL script. I just tested with my Samsung tv and it works. Also for my pc and i believe many other devices.


Code:
function wol(mac)
local m = ''
  for w in string.gmatch(mac, "[0-9A-Za-z][0-9A-Za-z]") do
    m = m .. string.char(tonumber(w, 16))
  end
  local udp = require("socket").udp()
  udp:settimeout(1)
  udp:setoption("broadcast", true)
  udp:sendto(string.char(0xff):rep(6) .. m:rep(16) , '255.255.255.255', 9)
end
wol('60:2D:BE:C3:4A:BC') -- MAC address of your device

Thank you very much Joep. I will try it later.
Reply


Messages In This Thread
Samsung / Tizen TV API v2 - by Joep - 24.02.2023, 13:59
RE: Samsung / Tizen TV API v2 - by admin - 24.02.2023, 14:13
RE: Samsung / Tizen TV API v2 - by Joep - 24.02.2023, 14:45
RE: Samsung / Tizen TV API v2 - by admin - 27.02.2023, 06:58
RE: Samsung / Tizen TV API v2 - by Joep - 27.02.2023, 13:23
RE: Samsung / Tizen TV API v2 - by admin - 27.02.2023, 13:40
RE: Samsung / Tizen TV API v2 - by Joep - 27.02.2023, 14:57
RE: Samsung / Tizen TV API v2 - by admin - 27.02.2023, 14:58
RE: Samsung / Tizen TV API v2 - by Joep - 27.02.2023, 15:36
RE: Samsung / Tizen TV API v2 - by admin - 27.02.2023, 15:49
RE: Samsung / Tizen TV API v2 - by Joep - 27.02.2023, 16:06
RE: Samsung / Tizen TV API v2 - by Joep - 23.02.2024, 11:16
RE: Samsung / Tizen TV API v2 - by j.martinez@t-ingeniamos.com - 23.02.2024, 11:21

Forum Jump: