AVCoders.Display
2026.12.2
Prefix Reserved
dotnet add package AVCoders.Display --version 2026.12.2
NuGet\Install-Package AVCoders.Display -Version 2026.12.2
<PackageReference Include="AVCoders.Display" Version="2026.12.2" />
<PackageVersion Include="AVCoders.Display" Version="2026.12.2" />
<PackageReference Include="AVCoders.Display" />
paket add AVCoders.Display --version 2026.12.2
#r "nuget: AVCoders.Display, 2026.12.2"
#:package AVCoders.Display@2026.12.2
#addin nuget:?package=AVCoders.Display&version=2026.12.2
#tool nuget:?package=AVCoders.Display&version=2026.12.2
AVCoders.Display
Display, projector and LED-wall drivers for the AV Coders device library. Built on AVCoders.Core. Targets .NET 8.0 and .NET 10.0.
Install
dotnet add package AVCoders.Display
Published to nuget.org. See the repository README for details.
Drivers
PjLinkSamsungMdcSonySerialControl,SonySimpleIpControl,SonyRestNecUhdExternalControlPhilipsSICPLGCommercialCecDisplayNovaStarH5ColorlightDeviceControlProtocolClassBBarcoPulse
Usage
Wire a driver to a transport (from AVCoders.CommunicationClients) and subscribe to its state-change events:
var comms = new AvCodersTcpClient("192.168.1.50", 4352, "Projector", CommandStringFormat.Ascii);
var display = new PjLink(comms, "Projector", defaultInput);
display.OnPowerStateChanged += state => Console.WriteLine($"Power: {state}");
display.PowerOn();
PjLink discovers the projector's inputs from INST/INNM on class-2 projectors and rebuilds SupportedInputs (raising OnSupportedInputsChanged) once the first complete name pass lands. Until then the constructor map applies (default 31→Hdmi1, 32→Hdmi2, ...), so pass an explicit inputMap when the projector's HDMI codes differ (e.g. Epson uses 32/33/36) and the input must be right from the very first command.
CecDisplay follows each power poll with Give Physical Address, Give OSD Name, Give Device Vendor ID and Get CEC Version, for whichever the TV hasn't answered yet, and shows the answers as Details. Each request waits 500 ms after the power poll or the request before it, then goes out only when no command is waiting. The wait doesn't hold up commands, so power, input and key commands always go out first. A connection change drops any requests still waiting. A Feature Abort for unrecognised opcode (0x00), cannot provide source (0x02) or invalid operand (0x03) shows Not supported: <frame> and stops that request. Any other reason counts as no answer, including not in correct mode to respond (0x01) and refused (0x04), which HDMI 1.3a uses for a passing state (CEC 13.8.2, page CEC-35; CEC 12.3, page CEC-21, suggests retrying). The reason codes are in HDMI 1.3a, CEC Table 26 (page CEC-79), where 0x05 and above are reserved. After 3 polls with no real answer to Give Physical Address or Give Device Vendor ID, it raises a Minor read issue and asks again every 10th poll. The driver asks from the unregistered address 15, which a TV may ignore unless the reply is broadcast (CEC 12.2, page CEC-20). Set OSD Name and CEC Version are directed replies, so after 3 polls with no answer to those it raises no issue, shows No answer (the TV may ignore requests from address 15): <last reply> as the Detail, and keeps asking every 10th poll.
SamsungMdc and LGCommercial read their identity and health Details while the display is Off, in the same poll as the power poll. Samsung sends them straight after the power poll, judging power from the previous poll's reply as it always has; while On it polls input, volume and mute as before and reads nothing. LG polls power, input, volume and mute every poll whatever the power state, and sends the reads after the mute poll while Off. Which reads need the display On is fixed in code from the protocol manuals, and a read the manual says nothing about is read while Off. Until a read has run, its Detail shows Not read yet: read while the display is off. Identity reads go out on each Off poll until answered, health reads on the first Off poll and every 5th after. A NAK (Samsung) or NG (LG) shows Not supported: <raw reply> and stops that read until the display reconnects; 3 missed or unreadable replies in a row raise a Minor read issue, and the first good reply resolves it.
Both drivers track their reads with SentCommandTracker and match each reply to the read it answers: Samsung by command byte, LG by reply character. A read reply, NAK or NG that no read of ours is waiting for, such as another controller's, is logged at Debug and counts neither for nor against a read. Power, input, volume and mute replies still update the state whoever asked. When LG reconnects it restarts the poll worker, so the first poll goes out straight away and never runs alongside another.
Every SamsungMdc read is read while Off: none of their entries in the Samsung MDC Protocol v15.1c (MultipleDisplayControl(MDC)+Protocol_v15.1c.pdf) gives a power-state condition.
| Read | Query | PDF page |
|---|---|---|
| Serial number | 0x0B |
36 |
| Software version | 0x0E |
38 |
| Model name | 0x8A |
169 |
| Display status: lamp, temperature, brightness sensor, signal, fan | 0x0D |
37 |
| Panel on time | 0x83 |
162 |
The MD32C–MD55C user manual (BN46-00098S-Eng(1).pdf, PDF p.55) says MDC over RJ45 isn't available at all while that model is powered off. That covers every command, the power poll included, not a particular read, so it puts no read in the On list.
Every LGCommercial read is read while Off: serial number fy, software version fz, temperature dn and signal check sv 02. Neither LG manual lists these commands (LG TV External Control (RS232 and IP).pdf, command reference list p.5; MFL71807902_03_Q_240507+MFL71807803_04_S_240507.pdf, 50/55/65UR640S command reference list p.36), so nothing specifies On for them.
NecUhdExternalControl and PhilipsSICP read their identity and health Details the same way, while the display is Off and in the same poll as the power poll. NEC judges power from this poll's reply after its 1.5 s wait, as it always has, and sends the reads 1.5 s apart. Philips judges power from the previous poll's reply, as it always has, and sends the reads 3 s apart. While On, NEC polls input and volume and Philips polls input, volume and mute, as before, and neither reads anything. Until a read has run, its Detail shows Not read yet: read while the display is off. Identity reads go out on each Off poll until answered. NEC's self-diagnosis goes out on the first Off poll and every 4th after, Philips's temperature on the first and every 5th.
Both drivers track every command they send (polls, reads and control commands) in send order with SentCommandTracker, and match each reply to the command it answers: NEC by message type and op code, Philips by command code. A NEC NULL message, or a Philips NACK or NAV, goes to the oldest command still waiting. A rejected power, input, volume or mute command is reported as before: a NEC NULL is logged at Debug, a NEC error result is logged as a Warning with an Error event, and a Philips NACK or NAV raises a momentary rejected-command issue naming the command and the raw reply. A Philips NACK or NAV with no command waiting is logged as a Warning. Only a read's own rejection counts against that read. A Philips NAV, a NEC firmware error result, or 3 NEC NULL messages in a row show Not supported: <raw reply> and stop that read until the display reconnects. A Philips NACK, or a missed or unreadable reply, counts towards the Minor read issue raised on the 3rd in a row. A reply that answers none of our commands, such as another controller polling the same display, still updates power, input and volume as before but counts neither for nor against a read. A Details reply with no read of ours waiting is logged at Debug and dropped. A Philips command addressed to a group (group ID 1–254) gets no ACK or report (The SICP Commands Document V2.10, p.9), so it isn't tracked.
NecUhdExternalControl starts polling 1.5 s after its connection comes up, or 1.5 s after construction when the client is already connected (a serial port). Starts requested within that 1.5 s give one poll. PhilipsSICP starts the same way, 1 s after its connection comes up or after construction.
Every NecUhdExternalControl read is read while Off. The only standby condition in the NEC External Control manual (uhd-external_control.pdf) is that Proof of Play can't be read while the display is Off (p.124), and the driver doesn't read Proof of Play.
| Read | Command | PDF page |
|---|---|---|
| Model name | C217 |
77 |
| Serial number | C216 |
75 |
| Firmware version | CA02 type 00 |
87 |
| MAC address | C220 00 |
120 |
| Self-diagnosis: faults and no signal | B1 |
73 |
The manual's MAC address read on p.120 is C22A 02, with the reply C32A. The driver sends C220 00.
Every PhilipsSICP read is read while Off: none of their entries in The SICP Commands Document V2.10 (The SICP Commands Document V2.10.pdf) gives a power-state condition.
| Read | Get | PDF page |
|---|---|---|
| Model number | A1 00 |
10 |
| Firmware version | A1 01 |
10 |
| Build date | A1 02 |
10 |
| Serial number | 15 |
12 |
| Temperature | 2F |
11 |
A model information report (A1) doesn't say which field it answers (p.11), so a late reply can't be matched to its read. After an A1 read goes unanswered, the other A1 reads wait for the next poll. A value that is blank, or only NULs or spaces, shows the raw reply.
BarcoPulse drives Barco Pulse projectors over JSON-RPC 2.0 on TCP port 9090. The page numbers below are from Barco's Pulse API reference guide for the F80, TDE9599_02 (Pulse API 1.7, catalogue 2.1.5): the port is on p.3. On every connect the driver subscribes to system.state, image.window.main.source and the image.connector.<name>.detectedsignal of the connector named after each source, then reads each of them once. It doesn't poll: state comes from the subscription's property.changed notifications.
Given the projector's numeric pass code, the driver sends authenticate with it first on every connect (p.6). The subscribe and the reads follow straight away, without waiting for the answer. With no pass code it skips authenticate, which leaves the session at normal end-user access (p.6). The pass code shows as {"code":"***"} in the request log.
The constructor's sources map ties each Input to the projector's source name. With no map the driver uses the default sources (SDI and HDMI): Sdi → SDI and Hdmi1 → HDMI. Source names vary by model, and image.source.list returns the projector's own (p.22). The driver reads each source's signal from the connector with the source's name, which holds for single-connector sources such as HDMI and SDI. An object name is the name in lower case with every non-word character removed, so DisplayPort 1 becomes displayport1 (p.23–24), and a connector's signal is image.connector.<name>.detectedsignal (p.25). Each source's signal is a BarcoPulseConnector in Connectors, and its resolution, or No signal, shows as a Detail.
Every request carries its own id, power included, and is matched to its reply with SentCommandTracker for 5 s from when the driver hands it to the client. An error reply is written onto the action's audit entry as Rejected. A request unanswered within 5 s is written on as NoReply; the driver checks for those every 5 s. An error reply never sets the communication state to Okay.
authenticateis accepted only when it answers"result": true(p.6). Any other answer, an error, or no answer within 5 s raises a Criticalpass-codeissue. It doesn't set the communication state to Error. The next acceptedauthenticateclears the issue.- Error -32001, "Access permission error", on any other request raises a Critical
access-permission-<request>issue that quotes the reply and says whether a pass code is set.<request>issystem.poweron,system.poweroff,property.set image.window.main.source(every source change),property.subscribeorproperty.get <property>. TDE9599_02 doesn't list error codes; it refers to the JSON-RPC 2.0 error object (p.7). The code and message are as an F80-4K7 sends them. The next accepted answer to that same request clears the issue, and an acceptedauthenticateclears everyaccess-permission-issue. - Any other error raises a Minor momentary
rejected-request-<request>issue. After 3 rejections of that request with no accepted answer to it between them, it escalates to a Major ongoing issue, which the next accepted answer to that same request resolves. - An error reply that matches no request awaiting one raises a Minor momentary
unmatched-errorissue, whatever its code. It never escalates or becomes ongoing. - A reply that isn't JSON raises a momentary
unreadable-replyissue.
After an error reply to a power or source command, the driver reads system.state or image.window.main.source again. That corrects the state the Display base set when the command went out. The answer to that read doesn't force the command again.
Requests awaiting a reply are forgotten on every change of connection state. With an AvCodersTcpClient, a command made while the connection is down waits in the client's send queue. The client drops it after its queue timeout and records it as Dropped on the action's audit entry. If the connection comes back first, the command is written ahead of the authenticate, but the driver has already forgotten it: a refusal of it raises only the unmatched-error issue and isn't read again. A reply to a forgotten request, or one that comes more than 5 s after its request was handed to the client, matches nothing: a result is ignored, and an error raises the unmatched-error issue.
See the repository README for logging, tracing and the full architecture overview.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. |
-
net10.0
- AVCoders.Core (>= 2026.12.2)
- AVCoders.MediaPlayer (>= 2026.12.2)
- Newtonsoft.Json (>= 13.0.4)
-
net8.0
- AVCoders.Core (>= 2026.12.2)
- AVCoders.MediaPlayer (>= 2026.12.2)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on AVCoders.Display:
| Package | Downloads |
|---|---|
|
AVCoders.SignalR.Display
SignalR hub and bridge for AV Coders displays: power, input, volume and mute broadcast to connected UIs. |
|
|
AVCoders.Crestron.TouchPanel
Touch panel menu and UI helpers for Crestron panels: display, motor, AVoIP, sync, level, PDU and Q-SYS source menus, PIN entry, confirmation and status pages. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.12.2 | 61 | 12/2/2026 |
| 2026.12.1 | 61 | 12/2/2026 |
| 2026.11.4 | 101 | 11/30/2026 |
| 2026.11.3 | 116 | 11/30/2026 |
| 2026.11.2 | 127 | 11/20/2026 |
| 2026.11.1 | 132 | 11/12/2026 |
| 2026.10.5 | 144 | 10/21/2026 |
| 2026.10.4 | 118 | 10/21/2026 |
| 2026.10.3 | 178 | 10/14/2026 |
| 2026.10.2 | 125 | 10/13/2026 |
| 2026.10.1 | 136 | 10/6/2026 |
| 2026.9.8 | 145 | 9/29/2026 |
| 2026.9.7 | 138 | 9/24/2026 |
| 2026.9.6 | 210 | 9/18/2026 |
| 2026.9.5 | 127 | 9/17/2026 |
| 2026.9.4 | 170 | 9/14/2026 |
| 2026.9.2 | 160 | 9/2/2026 |
| 2026.9.1 | 150 | 9/2/2026 |
| 2026.8.5 | 141 | 8/27/2026 |
| 2026.8.4 | 153 | 8/26/2026 |