{"id":43304813,"url":"https://github.com/daqifi/daqifi-core-example-app","last_synced_at":"2026-02-01T20:13:38.202Z","repository":{"id":333564280,"uuid":"1137727745","full_name":"daqifi/daqifi-core-example-app","owner":"daqifi","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-27T03:53:00.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-27T04:55:49.198Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"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":"2026-01-19T18:50:44.000Z","updated_at":"2026-01-27T03:53:05.000Z","dependencies_parsed_at":"2026-01-20T03:15:30.508Z","dependency_job_id":null,"html_url":"https://github.com/daqifi/daqifi-core-example-app","commit_stats":null,"previous_names":["daqifi/daqifi-core-example-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daqifi/daqifi-core-example-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daqifi%2Fdaqifi-core-example-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daqifi%2Fdaqifi-core-example-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daqifi%2Fdaqifi-core-example-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daqifi%2Fdaqifi-core-example-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daqifi","download_url":"https://codeload.github.com/daqifi/daqifi-core-example-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daqifi%2Fdaqifi-core-example-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28988635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T18:17:03.387Z","status":"ssl_error","status_checked_at":"2026-02-01T18:16:57.287Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-02-01T20:13:36.466Z","updated_at":"2026-02-01T20:13:38.196Z","avatar_url":"https://github.com/daqifi.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DAQiFi Core Example App (CLI)\n\nThis is a lightweight CLI that demonstrates how to use `Daqifi.Core` to discover devices, connect, configure channels, stream data, and stop streaming. It is intended both as a reference for third-party developers and as a validation tool for hardware-in-the-loop testing.\n\n## Requirements\n\n- .NET 8 SDK\n- A DAQiFi device on the same network\n\n## Quick Start\n\nDiscover devices:\n\n```bash\ndotnet run -- --discover\n```\n\nConnect and stream:\n\n```bash\ndotnet run -- \\\n  --ip 192.168.1.44 \\\n  --port 9760 \\\n  --rate 10 \\\n  --channels 0000000011 \\\n  --duration 10\n```\n\n## Options\n\n- `--discover` discover devices over UDP\n- `--ip \u003caddress\u003e` device IP address\n- `--port \u003cnumber\u003e` TCP port (default 9760)\n- `--rate \u003chz\u003e` sampling rate in Hz (default 100)\n- `--duration \u003cseconds\u003e` streaming duration (default 10)\n- `--channels \u003cmask\u003e` ADC channel enable mask (0/1 string)\n- `--limit \u003ccount\u003e` stop after N stream messages\n- `--min-samples \u003ccount\u003e` require at least N stream messages (exit code 2 on failure)\n- `--format \u003ctext|csv|jsonl\u003e` output format for samples\n- `--output \u003cpath\u003e` write samples to file instead of stdout\n- `--connect-timeout \u003cseconds\u003e` TCP connect timeout (default 5)\n- `--connect-attempts \u003cn\u003e` total connect attempts (default 1)\n- `--keep-connected` keep connection open after streaming stops\n- `--show-status` print protobuf status messages\n- `--discover-timeout \u003cseconds\u003e` discovery timeout (default 5)\n\n## Output Formats\n\n- `text` (default): human-readable line per sample\n- `csv`: `timestamp,analog_values,digital_hex`\n- `jsonl`: one JSON object per line\n\n## Exit Codes\n\n- `0` success\n- `1` error during connect/stream\n- `2` validation failed (`--min-samples` not met)\n\n## AI Agents: Validation Workflow\n\nThis app is designed to validate `daqifi-core` changes against real hardware. AI agents can run this CLI as a hardware-in-the-loop check after modifying `daqifi-core`.\n\n### Use local `daqifi-core` sources\n\nBy default the app references the published NuGet package. To validate local changes, point the build to a local `Daqifi.Core.csproj` using the MSBuild property below.\n\n```bash\ndotnet run -p:DaqifiCoreProjectPath=/path/to/daqifi-core/src/Daqifi.Core/Daqifi.Core.csproj -- \\\n  --ip 192.168.1.44 \\\n  --port 9760 \\\n  --rate 10 \\\n  --channels 0000000011 \\\n  --duration 10 \\\n  --min-samples 5\n```\n\n### Recommended validation command\n\n```bash\ndotnet run -p:DaqifiCoreProjectPath=/path/to/daqifi-core/src/Daqifi.Core/Daqifi.Core.csproj -- \\\n  --ip 192.168.1.44 \\\n  --port 9760 \\\n  --rate 10 \\\n  --channels 0000000011 \\\n  --duration 10 \\\n  --min-samples 5 \\\n  --format jsonl \\\n  --output /tmp/daqifi-samples.jsonl\n```\n\nThe command exits non-zero if it fails to connect/stream or if `--min-samples` is not met.\n\n## Troubleshooting\n\n- If connect times out, confirm the device IP/port and that LAN is enabled.\n- If no samples appear, verify channel mask and sampling rate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaqifi%2Fdaqifi-core-example-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaqifi%2Fdaqifi-core-example-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaqifi%2Fdaqifi-core-example-app/lists"}