This is a command line interface client for the PJLink protocol that is written in Rust. PJLink is a network control protocol that has been incorporated into projectors and displays over the last few years. You can find the protocol specification here. This utility currently supports both authenticated and open connections and returns the an unparsed response from the device.
This project uses the pjlink Rust crate.
Testing has been done with Panasonic and Sanyo projectors.
pjlink-cli [host] [command] [password]
Check to see if the device is powered on:
pjlink-cli 192.168.1.1 "POWR ?" password
Responses:
%1POWR=0 # If Off
%1POWR=1 # If On
%1POWR=ERRA # Authencation Error
Power on a projector:
pjlink-cli 192.168.1.1 "POWR 1" password
Responses:
%1POWR=OK # Successful
%1POWR=ERR2 # Invalid Parameter
%1POWR=ERR3 # Unavailable at this time
%1POWR=ERR4 # Projector/Display failure
PJLink CLI for Linux Arm V7 (Raspberry PI 3 tested)
Binaries for other operating system will be coming soon.
Licensed under
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.