Check the status of the device by LM3( on/off) - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Check the status of the device by LM3( on/off) (/showthread.php?tid=80) |
Check the status of the device by LM3( on/off) - phongvucba - 23.09.2015 hi everyone.! I have a device connected to the Internet with the IP address 192.168.1.12.(a television) how to check the status of the device using the this IP address on LM3? (On or Off television) I first used LM3 , .... so limited. i thank everyone in advance! RE: Check the status of the device by LM3( on/off) - admin - 24.09.2015 First tou should check it from your PC as TV network interface might still work even when TV is in stand-by mode. Try doing ping 192.168.1.12 in Command Prompt when TV is On and Off and see if you get replies in both cases. RE: Check the status of the device by LM3( on/off) - phongvucba - 25.09.2015 (24.09.2015, 06:59)admin Wrote: First tou should check it from your PC as TV network interface might still work even when TV is in stand-by mode. Try doing ping 192.168.1.12 in Command Prompt when TV is On and Off and see if you get replies in both cases. You're right, Off mode here I want to say is "Standby mode", TV is not turn off. I want to write a script on LM3, to monitor the status of the television is on or off How can I do? Thank you very much admin. <3 RE: Check the status of the device by LM3( on/off) - admin - 28.09.2015 Can you tell me the model of the TV that you are using? RE: Check the status of the device by LM3( on/off) - phongvucba - 30.09.2015 (28.09.2015, 06:12)admin Wrote: Can you tell me the model of the TV that you are using? that here SAMSUNG UA40J5200( internet tivi ) TV is in standby mode, not power off. thank all! RE: Check the status of the device by LM3( on/off) - admin - 05.10.2015 Samsung does have some kind of IP protocol but there's no open specification for it. Other possible approaches are ExLink (RS232) or HDMI CEC (supported on LM4). The problem is that which features are supported depends on the actual TV model and it's impossible to know this beforehand without testing. RE: Check the status of the device by LM3( on/off) - phongvucba - 09.10.2015 (05.10.2015, 08:53)admin Wrote: Samsung does have some kind of IP protocol but there's no open specification for it. Other possible approaches are ExLink (RS232) or HDMI CEC (supported on LM4). The problem is that which features are supported depends on the actual TV model and it's impossible to know this beforehand without testing.Yes. Thank admin I wrote the following: ""value = event.getvalue() sock = socket.tcp() sockettimeout(1) status = sock:connect('192.168.1.12',55000)"" Then the object can receive a value of 0 or 1 are not?( equivalent is turned on or off (stand by)) |