Haukcode.SigNet 0.1.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package Haukcode.SigNet --version 0.1.7
                    
NuGet\Install-Package Haukcode.SigNet -Version 0.1.7
                    
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="Haukcode.SigNet" Version="0.1.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Haukcode.SigNet" Version="0.1.7" />
                    
Directory.Packages.props
<PackageReference Include="Haukcode.SigNet" />
                    
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 Haukcode.SigNet --version 0.1.7
                    
#r "nuget: Haukcode.SigNet, 0.1.7"
                    
#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 Haukcode.SigNet@0.1.7
                    
#: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=Haukcode.SigNet&version=0.1.7
                    
Install as a Cake Addin
#tool nuget:?package=Haukcode.SigNet&version=0.1.7
                    
Install as a Cake Tool

Haukcode.SigNet

A cross-platform .NET library for Sig-Net, the secure CoAP-based protocol for DMX512 lighting control over IP: the Sender role and the receive side of the Node role.

What is Sig-Net?

Sig-Net carries DMX512 universes as CoAP NON POST messages over UDP 5683. Every packet is authenticated with HMAC-SHA256 using keys derived from a 256-bit root key, and protected against replay by a per-device session id and per-stream sequence numbers. Universes are folded onto 109 multicast groups (239.254.0.1 to 239.254.0.109).

Features

  • Passphrase validation, PBKDF2 root key and HKDF role keys, verified against the spec's Appendix G test vectors
  • Levels with universe or per-slot priority, sync, universe announcements
  • Discovery: on-boot notification, poll replies, security event reports
  • Verified receive with anti-replay, sync hold-and-release, stream loss events
  • Sharded sending and kernel receive timestamps through Haukcode.HighPerfComm
  • .NET 8.0, 9.0 and 10.0

Quick Start

using Haukcode.SigNet;
using Haukcode.SigNet.Keys;
using System.Net;

var tuid = Tuid.CreateDynamic(manufacturerId: 0x7FF0);
var deviceInfo = new SigNetDeviceInfo(SoemCode.Create(0x7FF0, 0x0001), "My Product", "Stage left");

using var keys = SigNetKeys.FromPassphrase(passphrase, tuid);

// sessionIdStore: your ISessionIdStore; the session id must be persisted (spec 8.3)
using var client = new SigNetClient(keys, tuid, deviceInfo, sessionIdStore, IPAddress.Parse("192.168.1.10"),
    channelWriter: packet =>
    {
        Console.WriteLine($"u{packet.Universe} from {packet.SenderId}");

        return Task.CompletedTask;
    });

client.JoinUniverse(1);
await client.SendLevels(1, new byte[512], priority: 100);
await client.SendSync();

Received packets are reused once the writer returns; keep packet.Clone() if you queue them.

Key Methods

  • SendLevels() / SendSync(): transmit; the first frame for a universe announces it
  • StopUniverse() / StopAllUniverses(): announce TID_UNIVERSE Leave
  • JoinUniverse() / DropUniverse(): receive a universe as input
  • JoinUniverseForTrigger() / DropUniverseForTrigger(): receive a universe for triggers
  • OnUniverseLost, OnSecurityEvent, GetVerifyCounts(): monitoring
  • LevelRefreshPolicy: the spec 10.6.3 repeat and 1 Hz keep-alive rules
  • SigNetBeacon: Beacon Mode for a device that is not onboarded yet

License conditions

Sig-Net is owned by Singularity (UK) Ltd and licensed royalty-free. Products built with this library must include the attribution "Sig-Net® Designed by and Copyright Singularity (UK) Ltd.", report a correct SoemCode (your ESTA manufacturer id in the upper 16 bits), and follow the trademark guidelines at https://sig-net.net/. This library is MIT licensed and not affiliated with or endorsed by Singularity (UK) Ltd.

Documentation

Product 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 is compatible.  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. 
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
0.1.9 75 10/25/2026
0.1.8 64 10/24/2026
0.1.7 76 10/21/2026
0.1.6 71 10/21/2026
0.1.5 71 10/21/2026
0.1.4 71 10/21/2026
0.1.3 63 10/21/2026

0.1.0 - Initial implementation against Sig-Net Protocol Framework V1.14
     0.1.x - Trigger subscriptions, receive diagnostics, StopAllUniverses, SigNetBeacon