ThreeByte.LinkLib.ProjectorLink
1.0.8
.NET 10.0
This package targets .NET 10.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ThreeByte.LinkLib.ProjectorLink --version 1.0.8
NuGet\Install-Package ThreeByte.LinkLib.ProjectorLink -Version 1.0.8
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.8" />
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.8" />
<PackageReference Include="ThreeByte.LinkLib.ProjectorLink" />
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.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ThreeByte.LinkLib.ProjectorLink, 1.0.8"
#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.8
#: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.8
#tool nuget:?package=ThreeByte.LinkLib.ProjectorLink&version=1.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
đŦ ThreeByte.LinkLib.ProjectorLink
PJLink protocol client for controlling projectors over TCP â power on/off, state queries, and device info.
⨠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) â â â
â â ââââââââââââââââââ â â
â ââââââââââââââââââââââââ â
ââââââââââââââââââââââââââââââââââââââââââââ
đ PJLink Protocol Reference
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 | Versions 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.
-
.NETStandard 2.0
- Microsoft.Extensions.Logging (>= 10.0.5)
- ThreeByte.LinkLib.Shared (>= 1.0.8)
-
.NETStandard 2.1
- Microsoft.Extensions.Logging (>= 10.0.5)
- ThreeByte.LinkLib.Shared (>= 1.0.8)
-
net10.0
- Microsoft.Extensions.Logging (>= 10.0.5)
- ThreeByte.LinkLib.Shared (>= 1.0.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.