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.

PJLINK to Panasonic Projector
#6
(04.11.2020, 15:16)YOUSSEF Wrote: Hello admin
am trying an event based script to change input based on  
11: RGB 1
31: HDMI 1
32: HDMI 2
nothing is working :/ any help on this 
tks

Hello Youssef, please see below my code that worked without problems. The trigger value was always set to ON (1) for me. Make sure that the password for the user account is empty and that the webcontrol and PJLINK is active on the projector settings. 

You have to change the '12' (input source) to your values every time and also change the IP address/Port to match your installation. 

Code:
--Projector Input RGB1 triggered by event script
--Sends the command via the PJLINK Protocol to the Projector

value = event.getvalue() and 1 or 0
sock = require('socket').tcp()
cmd = '%1INPT ' .. 11 .. '\r'
sock:settimeout(1)
res, err = sock:connect('192.168.1.98', 4352)
if res then
res, err = sock:receive(9)
if res and res == 'PJLINK 0\r' then
sock:send(cmd)
res, err = sock:receive(10)
log('receive reply', res, err)
else
--log('receive init failed', res, err)
end
else
--log('connect failed', err)
end
sock:close()
Reply


Messages In This Thread
RE: PJLINK to Panasonic Projector - by admin - 22.04.2020, 14:55
RE: PJLINK to Panasonic Projector - by admin - 22.04.2020, 15:33
RE: PJLINK to Panasonic Projector - by manos@dynamitec - 04.11.2020, 20:19
RE: PJLINK to Panasonic Projector - by admin - 10.06.2021, 12:46
RE: PJLINK to Panasonic Projector - by admin - 11.06.2021, 10:12

Forum Jump: