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
#9
You either need a resident or a scheduled script depending on how often you want to read the status.
Try this example, you might need to install 2021 firmware as *r pattern is not supported in older firmwares. Change IP/port as needed. If the status read works then the script can be modified to write info into objects.
Code:
sock = require('socket').tcp()
sock:settimeout(1)
res, err = sock:connect('192.168.1.98', 4352)

if res then
  res, err = sock:receive('*r')
  
  if res and res == 'PJLINK 0' then
    sock:send('%POWR ?\r')
    res, err = sock:receive('*r')  
    log('received powr reply', res, err)

    sock:send('%1ERST ?\r')
    res, err = sock:receive('*r')  
    log('received error reply', res, err)

    sock:send('%1LAMP ?\r')
    res, err = sock:receive('*r')  
    log('received lamp 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 admin - 10.06.2021, 12:46
RE: PJLINK to Panasonic Projector - by admin - 11.06.2021, 10:12

Forum Jump: