ThreeByte.LinkLib.ProjectorLink 1.0.9

dotnet add package ThreeByte.LinkLib.ProjectorLink --version 1.0.9
                    
NuGet\Install-Package ThreeByte.LinkLib.ProjectorLink -Version 1.0.9
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ThreeByte.LinkLib.ProjectorLink" Version="1.0.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ThreeByte.LinkLib.ProjectorLink" Version="1.0.9" />
                    
Directory.Packages.props
<PackageReference Include="ThreeByte.LinkLib.ProjectorLink" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ThreeByte.LinkLib.ProjectorLink --version 1.0.9
                    
#r "nuget: ThreeByte.LinkLib.ProjectorLink, 1.0.9"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ThreeByte.LinkLib.ProjectorLink@1.0.9
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ThreeByte.LinkLib.ProjectorLink&version=1.0.9
                    
Install as a Cake Addin
#tool nuget:?package=ThreeByte.LinkLib.ProjectorLink&version=1.0.9
                    
Install as a Cake Tool

PJLink protocol client for controlling projectors over TCP — power on/off, state queries, and device info.

NuGet .NET


✨ Features

Feature Description
đŸŽŦ PJLink 1.0 Full implementation of the PJLink Class 1 protocol
🔐 Authentication MD5 password authentication when required by projector
⚡ Power Control Turn projectors on and off programmatically
📊 State Queries Query power state: Off, On, Cooling, Warming Up
â„šī¸ Device Info Retrieve manufacturer, product name, and projector name
🔔 Error Events Event-driven error reporting

đŸ“Ļ Installation

dotnet add package ThreeByte.LinkLib.ProjectorLink

or via the NuGet Package Manager:

Install-Package ThreeByte.LinkLib.ProjectorLink

🚀 Quick Start

using ThreeByte.LinkLib.ProjectorLink;

// Connect to a projector (default PJLink port 4352)
using var projector = new Projector("192.168.1.200");

// Power on
bool success = projector.TurnOn();
Console.WriteLine(success ? "✅ Projector turning on" : "❌ Power on failed");

// Query state
PowerStatus status = projector.GetState();
Console.WriteLine($"Status: {status}");
// Output: Status: WARMUP → ON

// Get device info
string info = projector.GetInfo();
Console.WriteLine($"Projector: {info}");
// Output: Projector: Epson EB-L1755U (Main Hall)

// Power off
projector.TurnOff();

With Authentication

// Some projectors require a password
using var projector = new Projector("192.168.1.200", password: "admin123");

projector.ErrorOccurred += (s, ex) =>
    Console.WriteLine($"Projector error: {ex.Message}");

projector.TurnOn();

Custom Port

// Non-standard PJLink port
using var projector = new Projector("10.0.0.50", port: 5000, password: "secret");

📖 API Reference

Projector

Constructors
Projector(string host)                                    // Default port 4352, no auth
Projector(string host, int port)                          // Custom port, no auth
Projector(string host, string password)                   // Default port, with auth
Projector(string host, int port, string password)         // Custom port + auth
Properties
Property Type Description
Address string Formatted as "host/port"
Methods
Method Returns Description
TurnOn() bool Sends power-on command. Returns true on success
TurnOff() bool Sends power-off command. Returns true on success
GetState() PowerStatus Queries the current power state
GetInfo() string Returns "Manufacturer Product (Name)"
Dispose() void Releases resources
Events
Event Args Description
ErrorOccurred Exception Fires on communication or protocol errors

PowerStatus Enum

Value Int Description
OFF 0 Projector is powered off
ON 1 Projector is running normally
COOLING 2 Projector is cooling down after power-off
WARMUP 3 Projector lamp is warming up after power-on
UNKNOWN 4 State could not be determined

CommandResponse Enum

Value Description
SUCCESS Command executed successfully
UNDEFINED_CMD Projector does not recognize the command
OUT_OF_PARAMETER Invalid parameter sent
UNAVAILABLE_TIME Command not available in current state
PROJECTOR_FAILURE Projector hardware error
AUTH_FAILURE Authentication failed
COMMUNICATION_ERROR Network or protocol error

đŸ—ī¸ Architecture

┌──────────────────────────────────────────┐
│               Projector                  │
│                                          │
│  TurnOn() ──┐                            │
│  TurnOff()──┤  ┌──────────────────────┐  │
│  GetState()─┤  │    PJLink Commands   │  │
│  GetInfo()──┘  │                      │  │
│                │  PowerCommand        │  │
│                │  ManufacturerName     │  │
│                │  ProductName         │  │
│                │  ProjectorName       │  │
│                └──────────â”Ŧ───────────┘  │
│                           │              │
│                           â–ŧ              │
│                ┌──────────────────────┐   │
│                │  TCP Connection      │   │
│                │  (per-command)       │   │
│                │                      │   │
│                │  ┌────────────────┐  │   │
│                │  │ MD5 Auth       │  │   │
│                │  │ (if required)  │  │   │
│                │  └────────────────┘  │   │
│                └──────────────────────┘   │
└──────────────────────────────────────────┘

This library implements the PJLink Class 1 specification:

PJLink Command Method Description
%1POWR 1 TurnOn() Power on
%1POWR 0 TurnOff() Power off
%1POWR ? GetState() Query power status
%1INF1 ? (via GetInfo()) Query manufacturer
%1INF2 ? (via GetInfo()) Query product name
%1NAME ? (via GetInfo()) Query projector name

Default PJLink port: TCP 4352


đŸŽ¯ Platform Support

Platform Supported
.NET 10.0 ✅
.NET Standard 2.1 ✅
.NET Standard 2.0 ✅
Windows ✅
Linux ✅
macOS ✅

📄 License

Part of the ThreeByte.LinkLib family of communication libraries.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.9 0 3/27/2026
1.0.8 27 3/25/2026
1.0.7 28 3/25/2026
1.0.6 210 1/20/2026
1.0.5 241 12/24/2025
1.0.4 711 7/9/2025
1.0.3 171 7/9/2025
1.0.2 181 7/9/2025
1.0.1 174 7/9/2025
1.0.0 175 7/9/2025