Author Topic: Projector pjlink error  (Read 3575 times)

Offline Mharnish

  • Jr. Member
  • **
  • Join Date: Mar 2015
  • Location:
  • Posts: 64
  • Kudos: 0
Projector pjlink error
« on: May 13, 2015, 09:23:45 AM »
Hi Guys,

I am trying to get my Mitsubishi EX3200U-ST projector working via pjlink and I am getting the following error:

fpp@FPPMaster ~/.local/share/pjlink $ pjlink info
Password:
Traceback (most recent call last):
  File "/usr/local/bin/pjlink", line 9, in <module>
    load_entry_point('pjlink==1.0', 'console_scripts', 'pjlink')()
  File "/usr/local/lib/python2.7/dist-packages/pjlink/cli.py", line 170, in main
    func(proj, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pjlink/cli.py", line 61, in cmd_info
    ('Name', p.get_name().encode('utf-8')),
  File "/usr/local/lib/python2.7/dist-packages/pjlink/projector.py", line 191, in get_name
    param = self.get('NAME')
  File "/usr/local/lib/python2.7/dist-packages/pjlink/projector.py", line 91, in get
    success, response = protocol.send_command(self.f, body, '?')
  File "/usr/local/lib/python2.7/dist-packages/pjlink/protocol.py", line 53, in send_command
    resp_body, resp_param = parse_response(f)
  File "/usr/local/lib/python2.7/dist-packages/pjlink/protocol.py", line 22, in parse_response
    assert header == '%'
AssertionError
 

Any idea what this might be?  I get it no matter which command I try to run via pjlink.

Thanks,
Mark

Offline neilric99

  • Supporting Member
  • ******
  • Join Date: Aug 2013
  • Location:
  • Posts: 197
  • Kudos: 1
Re: Projector pjlink error
« Reply #1 on: May 13, 2015, 09:46:14 AM »
perhaps it is getting confused by the password prompt as it would not normally expect to see this.

Offline Mharnish

  • Jr. Member
  • **
  • Join Date: Mar 2015
  • Location:
  • Posts: 64
  • Kudos: 0
Re: Projector pjlink error
« Reply #2 on: May 13, 2015, 02:54:26 PM »
There is a default password of admin setup on the projector for pjlink.  I have to type in the password to have the command run and then I get the error shown.  I have even tried putting the password into the command line as instructed in the pjlink manual and I get the same result.

Maybe I can see if there is a way to remove the password entirely on the projector but I did not see an option for it.  I will look again.

If I type an incorrect password I get connection refused so I know it is getting to the projector properly.

Offline neilric99

  • Supporting Member
  • ******
  • Join Date: Aug 2013
  • Location:
  • Posts: 197
  • Kudos: 1
Re: Projector pjlink error
« Reply #3 on: May 13, 2015, 03:05:06 PM »
From what I have read in the user guide, the network section has the settings for the password. As I don't have the projector to play with, does that option give the capability to turn off the password or set it to null?

Offline tbone321

  • Hero Member
  • *****
  • Join Date: Oct 2014
  • Location:
  • Posts: 1,585
  • Kudos: 50
Re: Projector pjlink error
« Reply #4 on: May 13, 2015, 07:42:28 PM »
It looks like the software is getting confused by the success response from the projector.  Make sure that there is nothing funky being setup on the projector when the login is successful like bringing up a graphical user interface or splash screen.

Offline JerryPlak

  • Supporting Member
  • ******
  • Join Date: Jul 2013
  • Location: Sunbury, OH
  • Posts: 600
  • Kudos: 2
Re: Projector pjlink error
« Reply #5 on: May 14, 2015, 08:43:00 AM »
Dont know if this will help
http://pjlink.jbmia.or.jp/english/dl.html
take a look at these links
5-1. PJLink Specifications
5-2. PJLink Test Software 
5-3. PJLink TEST4CNT Operation Manual 
5-4. PJLink TEST4PJ Operation Manual 
5-5. Guidelines for Input Terminals
http://pjlink.jbmia.or.jp/english/data/5-1_PJLink_eng_20131210.pdf
Jerry Plak

Offline Mharnish

  • Jr. Member
  • **
  • Join Date: Mar 2015
  • Location:
  • Posts: 64
  • Kudos: 0
Re: Projector pjlink error
« Reply #6 on: May 14, 2015, 02:00:17 PM »
Yeah, I have been going through the docs on that site to see what I can find and have not had any luck.  I did get the test software up and running so I can use the power on/off commands from the pjlink test app so I know it is working.  Now I just have to figure out how to get it working via FPP.

I tried to enter a blank password but it didn't like that.  I ended up putting back in the default password of admin.

Any other thoughts?

Offline Mharnish

  • Jr. Member
  • **
  • Join Date: Mar 2015
  • Location:
  • Posts: 64
  • Kudos: 0
Re: Projector pjlink error
« Reply #7 on: May 14, 2015, 02:03:45 PM »
This is the output I am getting from the test utility when I do a power on then a power?

2015.05.14 16:02:00.734] Connected!!!
[2015.05.14 16:02:00.736] RECV:PJLINK 1 460a22e2

[2015.05.14 16:02:00.740] SEND:0a280bfcb9bf79d0ef8819c0eb05d5c4%1POWR 1

[2015.05.14 16:02:00.758] RECV:%1POWR=OK

[2015.05.14 16:02:00.761] Closed!!!(Disconnect)
[2015.05.14 16:02:10.614] Connected!!!
[2015.05.14 16:02:10.620] RECV:PJLINK 1 0b4d0df1

[2015.05.14 16:02:10.625] SEND:76c0cda8392cfdb3149ee62d8b20d47c%1POWR ?

[2015.05.14 16:02:10.642] RECV:%1POWR=3

[2015.05.14 16:02:10.647] Closed!!!(Disconnect)

Offline Mharnish

  • Jr. Member
  • **
  • Join Date: Mar 2015
  • Location:
  • Posts: 64
  • Kudos: 0
Re: Projector pjlink error
« Reply #8 on: May 14, 2015, 02:12:02 PM »
OK, found I can include the password in the pjlink.conf file so it takes that out of the equation.  I am still getting the following:

fpp@FPPMaster ~/.local/share/pjlink $ pjlink power on
Traceback (most recent call last):
  File "/usr/local/bin/pjlink", line 9, in <module>
    load_entry_point('pjlink==1.0', 'console_scripts', 'pjlink')()
  File "/usr/local/lib/python2.7/dist-packages/pjlink/cli.py", line 170, in main
    func(proj, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pjlink/cli.py", line 21, in cmd_power
    p.set_power(state)
  File "/usr/local/lib/python2.7/dist-packages/pjlink/projector.py", line 111, in set_power
    self.set('POWR', POWER_STATES[status])
  File "/usr/local/lib/python2.7/dist-packages/pjlink/projector.py", line 97, in set
    success, response = protocol.send_command(self.f, body, param)
  File "/usr/local/lib/python2.7/dist-packages/pjlink/protocol.py", line 53, in send_command
    resp_body, resp_param = parse_response(f)
  File "/usr/local/lib/python2.7/dist-packages/pjlink/protocol.py", line 22, in parse_response
    assert header == '%'
AssertionError
fpp@FPPMaster ~/.local/share/pjlink $

Offline patdelaney

  • Administrator
  • *****
  • Join Date: Jun 2014
  • Location: Madison, WI
  • Posts: 1,113
  • Kudos: 9
Re: Projector pjlink error
« Reply #9 on: May 14, 2015, 08:38:45 PM »
Are you are trying this with the Plugin that Ben wrote?
I know that he is traveling this week for work so ha may be slow to respond.

Pat

Offline Mharnish

  • Jr. Member
  • **
  • Join Date: Mar 2015
  • Location:
  • Posts: 64
  • Kudos: 0
Re: Projector pjlink error
« Reply #10 on: May 15, 2015, 05:56:16 AM »
I plan on working with Ben to get the plugin working with pjlink but I wanted to get it working standalone first.  If we run into issues testing the plugin I want to make sure they are from the plugin and not something with pjlink on my projector.

Offline patdelaney

  • Administrator
  • *****
  • Join Date: Jun 2014
  • Location: Madison, WI
  • Posts: 1,113
  • Kudos: 9
Re: Projector pjlink error
« Reply #11 on: May 16, 2015, 07:35:46 AM »
Got it, unfortunately neither of my projectors support pjlink so I can't really help troubleshoot. Both Projectors have serial ports.

Pat

 

Back to top