Author Topic: Projector Control Plugin  (Read 35688 times)

Offline mccauleyf1

  • Newbie
  • *
  • Join Date: Feb 2017
  • Location:
  • Posts: 19
  • Kudos: 0
Re: Projector Control Plugin
« Reply #330 on: August 11, 2017, 12:32:43 PM »
Actually this might be a better the correct manual for the NEC V260X


http://www.projectorcentral.com/pdf/projector_manual_6312.pdf

Offline Bshaver

  • Developer
  • ******
  • Join Date: Aug 2014
  • Location: Denver, CO
  • Posts: 1,324
  • Kudos: 22
Re: Projector Control Plugin
« Reply #331 on: August 12, 2017, 06:17:34 AM »
Added projector: NEC V260X
[/size]

Offline mccauleyf1

  • Newbie
  • *
  • Join Date: Feb 2017
  • Location:
  • Posts: 19
  • Kudos: 0
Re: Projector Control Plugin
« Reply #332 on: August 13, 2017, 10:01:12 AM »
Awesome! I'll test it ASAP. Thanks!

Offline HeyRay2

  • Newbie
  • *
  • Join Date: Nov 2016
  • Location:
  • Posts: 7
  • Kudos: 1
Re: Projector Control Plugin
« Reply #333 on: September 11, 2017, 01:13:57 PM »
Greetings, I am trying to get the Projector Control Plugin to work with an Epson PowerLite 83+ (EMP-83) over IP and having an issue.

I've selected the "NETWORK_4352" option for the Projector dropdown, set the PJLINK IP address and password and I can see in the projector logs that a command is being sent to the projector and a response is being received:


2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] PROJECTOR: NETWORK_4352
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] option C: OFF
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] Projector index: 1
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] Looking for command string for cmd: OFF
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] --------------
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] PROJECTOR FOUND
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] PROJECTOR: NETWORK_4352
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] TCP/IP Projector
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] TCPIP IP: 10.0.1.54 PORT: 4352 CMD: set_power_state 0
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] -------
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] Sending command
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] HEX DECODED COMMAND:      0 : 73 65 74 5f 70 6f 77 65 72 5f 73 74 61 74 65 20 [set_power_state ]    10 : 30
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] SENDING IP COMMAND
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] TCPIP Socket Created
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] TCPIP CONNECTED
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] Reading response
2017-09-11 12:07:40 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] PJLINK 1 4f1766d7
2017-09-11 12:08:10 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] Closing socket...
2017-09-11 12:08:10 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7089] OK
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] PROJECTOR: NETWORK_4352
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] option C: ON
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] Projector index: 1
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] Looking for command string for cmd: ON
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] --------------
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] PROJECTOR FOUND
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] PROJECTOR: NETWORK_4352
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] TCP/IP Projector
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] TCPIP IP: 10.0.1.54 PORT: 4352 CMD: set_power_state 1
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] -------
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] Sending command
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] HEX DECODED COMMAND:      0 : 73 65 74 5f 70 6f 77 65 72 5f 73 74 61 74 65 20 [set_power_state ]    10 : 31 [1]
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] SENDING IP COMMAND
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] TCPIP Socket Created
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] TCPIP CONNECTED
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] Reading response
2017-09-11 12:08:14 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] PJLINK 1 e10c1eec
2017-09-11 12:08:44 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] Closing socket...
2017-09-11 12:08:44 PM: /home/fpp/media/plugins/ProjectorControl/proj.php : [7401] OK

However, the projector is not turning on or off accordingly.

I've tested the same projector, using the same settings, using the "PJLinkTest4PJ" test program from http://pjlink.jbmia.or.jp/english/dl_class1.html and the projector responds properly.

Any help would be greatly appreciated and I can provide more information as needed.


Thanks!
« Last Edit: September 11, 2017, 04:05:20 PM by HeyRay2 »

Offline Bshaver

  • Developer
  • ******
  • Join Date: Aug 2014
  • Location: Denver, CO
  • Posts: 1,324
  • Kudos: 22
Re: Projector Control Plugin
« Reply #334 on: September 11, 2017, 01:24:06 PM »
Hi there. The PJLINK does work on a few projectors. Have you sucessfully controlled the projector using a manual tool - usually some projectors have a software application that you can download and control over PJLINK. If that has worked then this should work as well.


One other thing to note is password and the default is configured behind the scenes if you have a custom password it will need to be set here and no funny characters outside of A-Z 0-9


If all else fails, i'm available for a team viewer session to help get it going.


Offline HeyRay2

  • Newbie
  • *
  • Join Date: Nov 2016
  • Location:
  • Posts: 7
  • Kudos: 1
Re: Projector Control Plugin
« Reply #335 on: September 11, 2017, 02:26:57 PM »
Hi there. The PJLINK does work on a few projectors. Have you sucessfully controlled the projector using a manual tool - usually some projectors have a software application that you can download and control over PJLINK. If that has worked then this should work as well.


One other thing to note is password and the default is configured behind the scenes if you have a custom password it will need to be set here and no funny characters outside of A-Z 0-9


If all else fails, i'm available for a team viewer session to help get it going.


Thanks for the reply.


I was able to successfully work with the projector using the "PJLinkTest4PJ" test program from http://pjlink.jbmia.or.jp/english/dl_class1.html and the projector responds properly.


As far as the PJLINK password, I have tried setting a very basic password ("1234"), as well as no password, and the projector still does not seem to respond properly. I've set the password on the "Projector Control" page. Is there somewhere else I should be setting the password?


I appreciate the offer to help over TeamViewer. I'm available after 8:00pm Pacific Time the next few days if that works for you.

Offline HeyRay2

  • Newbie
  • *
  • Join Date: Nov 2016
  • Location:
  • Posts: 7
  • Kudos: 1
Re: Projector Control Plugin
« Reply #336 on: September 12, 2017, 01:54:01 PM »
Still no success using the Projector Control plugin but I was able to work around the issue using the "pjlink" library that was created by Peter Ward on "flowblok's blog":


http://blog.flowblok.id.au/2012-11/controlling-projectors-with-pjlink.html

I then:

  • created a config file (projector IP, TCP port and PJLINK password) as directed on the above blog post
  • created an "on" and "off" bash script
  • uploaded to the scripts to my main Pi
  • created events to run the scripts
The projector now responds properly when the scripts are run, either directly or through a playlist.

I'm glad to have this working, but it still would be awesome, and less clunky, to be able to use the plugin to handle this functionality.


If anyone can provide some further input / suggestions I would welcome the information.


Thanks!
 
« Last Edit: September 12, 2017, 09:28:00 PM by HeyRay2 »

Offline Bshaver

  • Developer
  • ******
  • Join Date: Aug 2014
  • Location: Denver, CO
  • Posts: 1,324
  • Kudos: 22
Re: Projector Control Plugin
« Reply #337 on: September 12, 2017, 02:16:42 PM »
Hi, yes, the PJLINK library that was originally used was slated for an upgrade. thanks for finding this one, It will be helpful to include it in the plugin. I will work on that. And I take it our team viewer is cancelled.. :) - Until I get the plugin upgraded.


thanks


Offline HeyRay2

  • Newbie
  • *
  • Join Date: Nov 2016
  • Location:
  • Posts: 7
  • Kudos: 1
Re: Projector Control Plugin
« Reply #338 on: September 12, 2017, 02:25:03 PM »
Hi, yes, the PJLINK library that was originally used was slated for an upgrade. thanks for finding this one, It will be helpful to include it in the plugin. I will work on that. And I take it our team viewer is cancelled.. :) - Until I get the plugin upgraded.


thanks


Yup, I think you're off the hook for a TeamViewer session for now  :) . Thanks for the help so far and I'll look forward to hearing when the plugin has been updated and I'll be happy to test it out!

Offline EButler

  • Jr. Member
  • **
  • Join Date: Jan 2016
  • Location: Lenoir City, TN
  • Posts: 71
  • Kudos: 0
Re: Projector Control Plugin
« Reply #339 on: September 17, 2017, 02:39:41 PM »
I was considering getting an Optoma GT760A to use for Halloween and Christmas projections....and for movies, etc for the family.


Will this projector be able to be controlled with this plugin?  I am unable to look at the plugin in FPP because I am waiting on a new Pi3 to arrive.  I left my pi in the floor and the dog thought it was really cool toy.

Offline Bshaver

  • Developer
  • ******
  • Join Date: Aug 2014
  • Location: Denver, CO
  • Posts: 1,324
  • Kudos: 22
Re: Projector Control Plugin
« Reply #340 on: September 17, 2017, 04:12:12 PM »
To list all the projectors that it currently supports is here:

EPSON_PWRLITE_93_NETWORK
Hitatchi_CPX_1250
Sanyo_PLC_XP200L
Proxima_6850
Panasonic_PT_AE900U
Panasonic_PT_LB50NTU
Panasonic_PT_LB50U
Panasonic_PT_LB50U
Panasonic_RZ_670
Casio_XJV1_HEX
Casio_XJV1_ASCII
Hitachi_CPX445
Dell_MP_1200
Dell_2400MP
EPSON_EH_TW5900
EPSON_PWRLITE_6110i
EPSON_PWRLITE_500_PWRLITE_93
Viewsonic_PJD5153
Viewsonic_PJD5255
Viewsonic_PJD5555w
Viewsonic_PDJ5132
EPSON_EX5200
Mitsubishi_FD730U
BenQ_PB7200
BenQ_MX819ST
BenQ_W770ST_MS510
BenQ_MX613ST
NEC_NP400
NEC_V260X
NEC_NP4001
NEC_NP400_NETWORK
NEC_GENERIC_NEC_MT1065
NEC_PA622u
Optoma_150S
Optoma_X600
Optoma_H181X_GT760
Optoma_XW305_ST
Optoma_XW306_ST
Optoma_EX525_ST
Mitsubishi_EX320U_EW330U_EX320U_ST
Panasonic_PT_F200
Samsung_Commercial_Flat_Panel_MDC


Usually, if it has a RS-232 interface, we can write a driver for it.
Ben

Offline DevCrew

  • Newbie
  • *
  • Join Date: Dec 2016
  • Location:
  • Posts: 4
  • Kudos: 0
Re: Projector Control Plugin
« Reply #341 on: October 10, 2017, 09:55:02 AM »
How would I use this plugin as a standalone program? I would like to run it as a bash script on startup.

Thanks, Brian

Offline Bshaver

  • Developer
  • ******
  • Join Date: Aug 2014
  • Location: Denver, CO
  • Posts: 1,324
  • Kudos: 22
Re: Projector Control Plugin
« Reply #342 on: October 11, 2017, 07:46:10 AM »
There are .sh scripts in the scripts folder that have the various commands that are executed. Install the plugin, enable it, and it will create the scripts for you automatically.


You need to just install a default projector (OR) the projector you truly have.


any questions after that let me know.

Offline th182

  • Newbie
  • *
  • Join Date: Dec 2015
  • Location:
  • Posts: 22
  • Kudos: 2
Re: Projector Control Plugin
« Reply #343 on: October 21, 2017, 12:03:06 PM »
Hope I'm posting this in the correct thread.... Does anyone have an Optoma H31 projector and know the HEX codes for it? I tried all the Optoma options listed in the plugin and none work. I found a PDF online that listed different codes and I manually added them to the plugin but it still won't work.


I have a remote FPP player with a Trendnet USB to Serial converter (from amazon), then an Optoma Serial to RS232 cable (Also Amazon). The USB seems to be recognized by the PI as it is listed in the plugin as ttyUSB0 and it shows up in the Troubleshooting commands page USB section as a PL2303 Serial Port.

I am manually triggering the Events through the remote FPP web GUI. I *think* the projector is responding to some of the commands as the log files show different responses in the RETURN DATA section. Depending on what projector I selected in the plugin it will either give a response of "0" or "0 : 00 00 00 [...]". So I'm guessing one of those means its just sending back something??

Here are the commands that I had found in a PDF. I saved the PDF but couldn't find it again when googling so I have no idea its source.

Code: [Select]
Array("NAME" => "Optoma_H31",

                "ON" => "\x7E\x30\x30\x30\x30\x20\x31",
                "OFF" => "\x7E\x30\x30\x30\x30\x20\x32",
                "VIDEO" => "\x7E\x30\x30\x33\x39\x20\x32",


                "BAUD_RATE" => "9600",
                "CHAR_BITS" => "8",
                "STOP_BITS" => "1",
                "PARITY" => "none"
),


I sent a support ticket to Optoma but am doubtful on if they will respond. The H31 is a discontinued model and wasn't even listed as an option when I had to select the model in the support request. I'm hoping to get this working and be able to submit the codes here to be added for everyone else to use.

Offline darkdragun

  • Newbie
  • *
  • Join Date: Mar 2017
  • Location:
  • Posts: 3
  • Kudos: 0
Re: Projector Control Plugin
« Reply #344 on: October 27, 2017, 10:37:34 AM »
I have an old NEC MT1050 if you could add it please?


Communication Protocol
Baud rate: 38400 bps
Data length: 8 bits
Parity: No parity
Stop bit: One bit
X on/off: None
Communications Full duplex
procedure:


Function Code Data
POWER ON 02H 00H 00H 00H 00H 02H
POWER OFF 02H 01H 00H 00H 00H 03H
INPUT SELECT RGB 1 02H 03H 00H 00H 02H 01H 01H 09H
INPUT SELECT RGB 2 02H 03H 00H 00H 02H 01H 02H 0AH
INPUT SELECT VIDEO 02H 03H 00H 00H 02H 01H 06H 0EH
INPUT SELECT S-VIDEO 02H 03H 00H 00H 02H 01H 0BH 13H
INPUT SELECT PC CARD VIEWER 02H 03H 00H 00H 02H 01H 1FH 27H
PICTURE MUTE ON 02H 10H 00H 00H 00H 12H
PICTURE MUTE OFF 02H 11H 00H 00H 00H 13H
SOUND MUTE ON 02H 12H 00H 00H 00H 14H
SOUND MUTE OFF 02H 13H 00H 00H 00H 15H
ON SCREEN MUTE ON 02H 14H 00H 00H 00H 16H
ON SCREEN MUTE OFF 02H 15H 00H 00H 00H 17H

 

Back to top