2

PJLink protocol

Hello BrightSign Support

 

I'm interested if it's possible to control a projector using PJLink over TCP from a BrightSign network player like HD220 or HD1020.

Thanks

 

25 comments

  • 0
    Avatar
    Alex

    Hello,

    HD220 and HD1020 are capable of sending UDP commands over Ethernet. If your projector can be controlled over UDP, then yes, you can do what you're asking. But first you need to find out whether or not you can control the projector using UDP commands and what are these commands. Please contact manufacturer.
    Otherwise you are limited to one option - schedule a presentation to play at specific time of the day. The rest of the day, the screen will be blank. The unit will not turn on/off the projector. You will turn on/off projector manually.

  • 0
    Avatar
    Roland TL

    Hi

    PJLink is a standard that is used by many manufacturers to control projectors over the network. It uses TCP and not UDP. The BrightSign FAQ says that TCP is possible too. But not inside BrightAuthor?

    Form a computer I use this code to start the projector:

     

     c = new Client(this, "192.168.35.140", 4352); // Connect to projector on port 4352 

    message = "%1POWR 1"; // the message to send 

    c.write(message); // send the message

    c.write(13); // CR

     

    How would this translate to BrightSign script?

    Thanks

  • 0
    Avatar
    Alex

    Please see this thread. Extensive documentation for brightscript is available here:
    http://support.brightsign.biz/entries/314526-brightsign-user-guides-troubleshooting
    BrightScript:
    - Object Reference Manual (379KB)
    - BrightScript 3 Reference Guide (260KB)

  • 0
    Avatar
    Roland TL

    I'm back to the same problem. I need to control a projector over the network.

    Could you please give me an example of how I can open a roTCPStream to a client?

    The Object Reference Manual wasn't of much use unfortunately.

  • 0
    Avatar
    Roland TL

    I kind of solved the problem myself. I wrote a BrightAuthor plugin that will send the ON command.

    You just have to send a plugin message with the IP address and the script will send the "%1POWR 1" command.

    For now this does the trick.

    Here is the file if anybody is interested:

     

  • 0
    Avatar
    Shaun

    Excellent, It works with a few pjlink commands tested. Can you post to the BrightSign GitHub? so this doesn't get lost in the forum.

    Useful script

  • 0
    Avatar
    Chris Hardwick

    Hi Broenni,

    I am new to the BrightSign world so was wondering if you could give a quick guide on how to implement the pjlinkon script. Do you just add this with the other scripts on the SD card or does it need to be pasted into the body of the Autorun script?

    Many thanks

    Chris

  • 0
    Avatar
    Roland TL

    Hello Chris

    I attached an example of a BrightAuthor Project. I wasn't able to test if it still works with the latest version, I hope so. (I work on a Mac and it's a pain to boot into Windows just to check a small thing. Bring us that OS X Version of Bright Author already!). 

    Good Luck!

     

  • 0
    Avatar
    Marco Fantini

    hello guys
    I followed all your instructions but with my XD-1030 turns on the red light error and reboot !!

    I have to use a particular file Autorun? or leave the standard?

  • 0
    Avatar
    Lyndon

    Try the attached plugin.tcp-plugin-async...You have to add it to file, properties, autorun. Use the name "tcp" for the name of the plugin.  In the plugin, you'll find these lines where you can set the port and address of the device you're communicating with.

     

    s.server$="10.1.1.16" 'test
    s.command$ = "TEST"
    s.port%=10055

     

    To send a command, use the following:

    tcp!yourcommandhere

     

  • 0
    Avatar
    Edd Legg

    Hi all,

    Is this any easier with the newer versions of BrightAuthor?

    I tried to download the 2 scripts that are here but was unable to access them?

    I've got a Projector I want to turn On / Off using the BrightSign HD220, and RS-232 unfortunately isn't an option due to cable runs etc.

    Thanks!

  • 0
    Avatar
    Alex

    Hi Edd,

    This faq describes the methods you can use to control the screen from the HD220 player:

    http://support.brightsign.biz/entries/21152678-Can-I-control-my-display-using-a-BrightSign-player-CEC-Serial-VSYNC-

  • 0
    Avatar
    Roland TL

    Hi all,

    Many of our costumers only use Mac and don't have Windows machines and therefore can't use BrightAuthor. Because BrightSign is not able to make a Mac version I needed a script that plays video and starts the projector with pjlink.

    With this script you can place the video files on the SD card without BrightAuthor. The projector will start and the video will loop. Make sure you set the IP address on the projector and in the script correctly.

     

  • 0
    Avatar
    Olivier Jean

    Hi Sr Support,

    Just wondering if you could repost your tcp plugin ? " plugin.tcp-plugin-async "

    thks

  • 0
    Avatar
    Brandon
  • 0
    Avatar
    Markr

    Hi, could you re post the plugin  plugin.tcp-plugin-async?

    I'm running the PJlinkOn plugin and having the same problem of 10 red error lights

  • 0
    Avatar
    Shaun

    Try the attached file, should be able to see the change in the first line. There is an error with the async plugin that causes the player to crash and reboot when talking to a pjlink client with both projector and PJlink test software.

    This worked a month ago and the instructions for sending the command are the same as listed above.

  • 0
    Avatar
    Jordi Casanovas

    Hi all,

    Any idea how to get feedback of the projector? I can see in the PJLink specifications a list with some commands to ask about status and its possible answers values.

    For example, the command %1 POWR ? <CR> ask the projector about its power status.  A valid answer could be %1POWR=1<CR> meaning the projector lamp is on.

    I suppose it's possible to write a script similar to the previous example PJlinON but I don't know how because I'm not a sw programmer.

  • 0
    Avatar
    Jordi Casanovas

    Hi Shaun,

    Thank you very much for your reply. I've adapted my presentation with your script. I could test it next week at the customer installation. 

  • 0
    Avatar
    Barry Mendelson

    I have followed the directions above but cannot seem to get this to work. I should be able to specify any port and command correct? I am trying to connect to a Christie DHD600-G projector on port 3002 but nothing is happening. Is there a specific place to call the tcp!set!... command?

  • 0
    Avatar
    Shaun

    More info required!! Project file, message your trying to send, protocol manual, are you trying to use PJLINK structure or a TCP command message?etc... Not a lot can be derived from your request.

  • 0
    Avatar
    Hugh McMaster

    You need to add the PJLink plug-in to your BrightSign project. You can do this from File --> Presentation Properties --> Autorun tab.

    Name the plugin 'tcp'. The Path is the file location of the .brs plug-in.


    Call the plugin as a command when it is required.

    Please note that Shaun's modified plug-in script is incomplete. If you choose to use the long command format, as in the screenshot above, the plug-in never initiates the TCP stream, so no message is sent.

    You can download a clean and up-to-date version of his script here: https://www.dropbox.com/s/pixqnum00oua3pf/tcp-plugin-async-ignore-serial.brs?dl=0

    Usage:

    tcp!command   -->   This format uses the IP address and port hard-coded in "Function newtcp". You need to specify the command via the caller.

    tcp!command!ip_address!port   -->   To use this long format, you need to specify the command, IP address and port. For example:

    tcp!%1POWR 0!192.168.1.67!4352 --> This command turns off the projector at IP address 192.168.1.67 via the PJLink port 4352.

    I can confirm that everything works. I'm using the attached script with a lot of projectors from Epson and Hitachi, as well as NEC large format displays.

    BrightAuthor really should have this functionality available as standard. Anyway, post back with any questions and we'll try to help.

  • 0
    Avatar
    Shaun

    Quick google doesn't seem to indicate any specific mention of Christie using PJLINK on this model... And a google for "christie tcp 3002" didn't come up with much except microtile serial commands, would seem the good folk at Christie aren't all that good at sharing..

    Based on what I could find, its most likely "PWR0" or "powerOff" and "PWR1" or powerOn with a carriage return, this is already setup in the plugin.

    If you've added the plugin correctly and set your ip and port... the command should be.

    tcp!PWR1    tcp!powerOn

    tcp!PWR0    tcp!powerOff

    This does of course assume the ports and messages are valid for your model. A protocol manual would be helpful, if they doesn't work for you...

     

  • 0
    Avatar
    Barry Mendelson

    Hugh McMaster,

    Thanks for the info and the link to the proper file. I was able to get it working with the following commands.

    ON: tcp!(PWR 1)!192.168.40.3!3002

    OFF: tcp!(PWR 0)!192.168.40.3!3002

  • 0
    Avatar
    luke

    Hey,

    I am new to BrightAuthor and just found this topic, which seems to be what I will need to do/learn.

    I will have an installation running using 5 BrightSgin 4k242 each one connected to a Panasonic PT-RZ670BE .

    They are supposed to synchronised playback 1 video in loop.

    During the loop I want to shutter on and off the projectors individually at different times.

    Can I do this with th pjlink plugin and if yes - how?

    How can I define the times during the loop?

    Should each Player have it's on PJLink plugin with the individual IP of the projector or can the Master-Player trigger all Projectors?

    Any help very much appreciated!

Please sign in to leave a comment.