{"id":37041957,"url":"https://github.com/daqifi/daqifi-core","last_synced_at":"2026-06-26T02:01:23.110Z","repository":{"id":283741736,"uuid":"952776160","full_name":"daqifi/daqifi-core","owner":"daqifi","description":"The official Cross-Platform .NET SDK for DAQiFi wireless data acquisition devices.","archived":false,"fork":false,"pushed_at":"2026-06-20T02:00:32.000Z","size":1116,"stargazers_count":4,"open_issues_count":20,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-06-20T02:19:31.358Z","etag":null,"topics":["csharp","daq","data-acquisition","dotnet","iot","nuget","scpi","usb","wifi"],"latest_commit_sha":null,"homepage":"https://daqifi.com/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daqifi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-21T21:31:23.000Z","updated_at":"2026-06-20T00:39:46.000Z","dependencies_parsed_at":"2025-04-23T23:20:52.445Z","dependency_job_id":"243411be-5e29-4ed8-91fa-ba5d92fbc57d","html_url":"https://github.com/daqifi/daqifi-core","commit_stats":null,"previous_names":["daqifi/daqifi-core"],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/daqifi/daqifi-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daqifi%2Fdaqifi-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daqifi%2Fdaqifi-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daqifi%2Fdaqifi-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daqifi%2Fdaqifi-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daqifi","download_url":"https://codeload.github.com/daqifi/daqifi-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daqifi%2Fdaqifi-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34799570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","daq","data-acquisition","dotnet","iot","nuget","scpi","usb","wifi"],"created_at":"2026-01-14T04:57:18.288Z","updated_at":"2026-06-26T02:01:23.104Z","avatar_url":"https://github.com/daqifi.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DAQiFi Core\n\n\u003e **Revolutionizing the data collection experience with convenient, portable device connectivity.**\n\u003e\n\u003e The official cross-platform .NET SDK for DAQiFi wireless data acquisition devices.\n\n[![NuGet](https://img.shields.io/nuget/v/Daqifi.Core?style=flat-square\u0026logo=nuget)](https://www.nuget.org/packages/Daqifi.Core)\n[![Downloads](https://img.shields.io/nuget/dt/Daqifi.Core?style=flat-square)](https://www.nuget.org/packages/Daqifi.Core)\n[![Build](https://img.shields.io/github/actions/workflow/status/daqifi/daqifi-core/ci.yml?style=flat-square\u0026label=build)](https://github.com/daqifi/daqifi-core/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/github/license/daqifi/daqifi-core?style=flat-square)](LICENSE)\n![.NET](https://img.shields.io/badge/.NET-9.0%20%7C%2010.0-512BD4?style=flat-square\u0026logo=dotnet)\n![Platforms](https://img.shields.io/badge/platforms-Windows%20%7C%20macOS%20%7C%20Linux-blue?style=flat-square)\n\n**[daqifi.com](https://daqifi.com)** · **[DAQiFi Desktop](https://github.com/daqifi/daqifi-desktop)** · **[Report an issue](https://github.com/daqifi/daqifi-core/issues)**\n\n---\n\n## What is DAQiFi Core?\n\nDAQiFi builds wireless data acquisition hardware designed to get out of the way so you can focus on the data, not the collection process.\n\n**DAQiFi Core is how you integrate that hardware into your own .NET applications** — custom dashboards, automated test rigs, research pipelines, production-monitoring tools. Discover devices, connect over WiFi or USB, stream samples in real time, configure networks, push firmware updates — all from one async, strongly-typed .NET API.\n\nPrefer a ready-made GUI? Check out [DAQiFi Desktop](https://github.com/daqifi/daqifi-desktop), which is built on top of this library.\n\n## See it in 30 seconds\n\n```shell\ndotnet add package Daqifi.Core\n```\n\n```csharp\nusing Daqifi.Core.Device;\nusing Daqifi.Core.Communication.Producers;\n\n// Connect — transport and device initialization handled for you\nusing var device = await DaqifiDeviceFactory.ConnectTcpAsync(\"192.168.1.100\", 9760);\n\n// Subscribe to incoming samples\ndevice.MessageReceived += (_, e) =\u003e\n{\n    if (e.Message.Data is DaqifiOutMessage msg)\n        Console.WriteLine($\"{msg.MsgTimeStamp}: {string.Join(\", \", msg.AnalogInData)}\");\n};\n\n// Enable analog channels via bitmask (0b11 = first 2 channels), then stream at 100 Hz\ndevice.Send(ScpiMessageProducer.EnableAdcChannels(\"3\"));\ndevice.Send(ScpiMessageProducer.StartStreaming(100));\n```\n\nA real, working program — no GUI required.\n\n## Common applications\n\nDAQiFi hardware is in the field for work like:\n\n- **Research labs** — moon regolith testing and similar materials studies\n- **Medical R\u0026D** — prosthetic socket pressure testing\n- **Industrial monitoring** — wireless multi-channel sensing\n- **Engineering education** — SCPI command structure and LabVIEW compatibility\n- **Test automation** — scripted benchtop measurements\n\nMore examples at [daqifi.com](https://daqifi.com).\n\n## Where DAQiFi Core fits\n\n| Layer | What it is |\n|---|---|\n| Hardware | Nyquist 1 / Nyquist 3 — wireless DAQ devices (and their on-device firmware) |\n| **SDK** | **DAQiFi Core — this library** |\n| App | [DAQiFi Desktop](https://github.com/daqifi/daqifi-desktop) — GUI built on this SDK |\n| Your code | Custom apps, dashboards, pipelines, test rigs |\n\n## What you can do\n\n| Capability | What it gives you |\n|---|---|\n| **Auto-discovery** | Find any DAQiFi on WiFi or USB in seconds — no IP hunting, no config files |\n| **One-line connect** | `DaqifiDeviceFactory.ConnectTcpAsync(...)` wraps transport setup and device init; retries are opt-in via `DeviceConnectionOptions` |\n| **Real-time streaming** | Event-driven async API; no polling loops to write |\n| **SD card operations** | List, download, delete, format, and start/stop SD logging over USB / serial |\n| **Network configuration** | Push WiFi credentials and static LAN IPs from your app |\n| **Firmware updates** | PIC32 and WiFi-module flashing with progress and cancellation |\n| **Cross-platform** | .NET 9.0 and 10.0 on Windows, macOS, Linux |\n\n## Quick recipes\n\n### Connection options\n\nPick whichever transport fits your setup — each snippet is a standalone, copy-paste-ready starting point.\n\n**TCP with a resilient retry preset** (5 retries, longer timeouts):\n\n```csharp\nusing var device = await DaqifiDeviceFactory.ConnectTcpAsync(\n    \"192.168.1.100\", 9760, DeviceConnectionOptions.Resilient);\n```\n\n**Serial / USB:**\n\n```csharp\n// Replace with your OS-specific port:\n//   Windows: \"COM3\"   •   macOS: \"/dev/cu.usbmodem1\"   •   Linux: \"/dev/ttyACM0\"\nusing var device = await DaqifiDeviceFactory.ConnectSerialAsync(\"COM3\");\n```\n\n**From a discovered device:**\n\n```csharp\nusing var finder = new WiFiDeviceFinder();\nvar devices = await finder.DiscoverAsync(TimeSpan.FromSeconds(5));\nusing var device = await DaqifiDeviceFactory.ConnectFromDeviceInfoAsync(devices.First());\n```\n\n### Custom retry options\n\n```csharp\nusing Daqifi.Core.Communication.Transport;\n\nvar options = new DeviceConnectionOptions\n{\n    DeviceName = \"My DAQiFi\",\n    ConnectionRetry = new ConnectionRetryOptions\n    {\n        MaxAttempts = 3,\n        ConnectionTimeout = TimeSpan.FromSeconds(10)\n    },\n    InitializeDevice = true\n};\nusing var device = await DaqifiDeviceFactory.ConnectTcpAsync(\"192.168.1.100\", 9760, options);\n```\n\n### Device discovery\n\n```csharp\nusing Daqifi.Core.Device.Discovery;\n\n// WiFi — UDP broadcast on port 30303 by default\nusing var wifiFinder = new WiFiDeviceFinder();\nwifiFinder.DeviceDiscovered += (_, e) =\u003e\n    Console.WriteLine($\"Found: {e.DeviceInfo.Name} at {e.DeviceInfo.IPAddress}\");\n\nvar wifiDevices = await wifiFinder.DiscoverAsync(TimeSpan.FromSeconds(5));\n\n// USB / Serial\nusing var serialFinder = new SerialDeviceFinder();\nvar serialDevices = await serialFinder.DiscoverAsync();\n```\n\nNeed fine-grained control? Pass a `CancellationToken` or override the discovery port:\n\n```csharp\nusing var cts = new CancellationTokenSource();\ncts.CancelAfter(TimeSpan.FromSeconds(10));\nvar devices = await wifiFinder.DiscoverAsync(cts.Token);\n\nusing var customFinder = new WiFiDeviceFinder(discoveryPort: 12345);\n```\n\n### Network configuration\n\nDevices implementing `INetworkConfigurable` accept programmatic WiFi and LAN configuration. `Mode`, `Ssid`, and `Password` are always applied on every call; only `StaticIP`, `SubnetMask`, and `Gateway` honor `null` as \"leave unchanged\" — so DHCP-only callers can omit the static-IP fields without affecting their DHCP setup.\n\n```csharp\nusing System.Net;\nusing Daqifi.Core.Device.Network;\n\nif (device is INetworkConfigurable networkDevice)\n{\n    var config = new NetworkConfiguration\n    {\n        Ssid       = \"MyNetwork\",\n        Password   = \"secret\",\n        Mode       = WifiMode.ExistingNetwork,\n        StaticIP   = IPAddress.Parse(\"192.168.1.42\"),\n        SubnetMask = IPAddress.Parse(\"255.255.255.0\"),\n        Gateway    = IPAddress.Parse(\"192.168.1.1\"),\n    };\n    await networkDevice.UpdateNetworkConfigurationAsync(config);\n}\n```\n\n### Firmware updates\n\n`IFirmwareUpdateService` orchestrates both PIC32 and WiFi-module flashing with explicit state transitions and `IProgress\u003cFirmwareUpdateProgress\u003e` for UI / CLI reporting.\n\n- `UpdateFirmwareAsync(...)` — PIC32 firmware flashing from a local Intel HEX file\n- `UpdateWifiModuleAsync(...)` — WiFi module flashing via an external tool runner. Automatically checks the device's current WiFi-chip firmware against the latest GitHub release and skips the flash if already up to date.\n\n\u003e **Note:** The default WiFi flash tool config uses `winc_flash_tool.cmd` conventions. On macOS / Linux, supply a compatible executable and argument template via `FirmwareUpdateServiceOptions`.\n\n## Supported devices\n\n| Device | Channels | Resolution | Range |\n|---|---|---|---|\n| **Nyquist 1** | 16 analog in | 12-bit | 0–5 V |\n| **Nyquist 3** | 8 analog in | 18-bit | ±10 V |\n\nBoth are auto-detected by part number during discovery.\n\nDon't have one yet? **[See the DAQiFi lineup →](https://daqifi.com)**\n\n## Connection types\n\n- **WiFi** — discovered via UDP broadcast (port 30303)\n- **Serial** — USB-connected, enumerated as serial ports\n- **HID** — used during firmware updates (HidSharp backend)\n\n## Requirements\n\n- .NET 9.0 or .NET 10.0 on Windows, macOS, or Linux\n- WiFi discovery: UDP port 30303 reachable (firewall may need configuring; admin may be required on Windows)\n- Serial discovery: appropriate USB drivers for your platform\n\n## Community \u0026 support\n\n- [Open an issue](https://github.com/daqifi/daqifi-core/issues) for bugs or feature requests\n- Reach the team via [daqifi.com](https://daqifi.com) for commercial integrations and custom hardware needs\n\n## For maintainers\n\nThis library follows semantic versioning. Releases are automated via GitHub Actions:\n\n1. Create a new GitHub Release\n2. Tag it `vX.Y.Z` (pre-releases use `-alpha.1`, `-beta.1`, `-rc.1` suffixes)\n3. Publishing to NuGet happens automatically on release\n\n---\n\n\u003cp align=\"center\"\u003e\n  Built by \u003ca href=\"https://daqifi.com\"\u003eDAQiFi\u003c/a\u003e · Licensed under \u003ca href=\"LICENSE\"\u003eMIT\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaqifi%2Fdaqifi-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaqifi%2Fdaqifi-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaqifi%2Fdaqifi-core/lists"}