{"id":49277677,"url":"https://github.com/bl3tt3r/dtiw385","last_synced_at":"2026-04-25T17:01:44.757Z","repository":{"id":348776763,"uuid":"1181777917","full_name":"bl3tt3r/dtiw385","owner":"bl3tt3r","description":"Rust crate to discover and control Orange DTIW385 decoders over the network.","archived":false,"fork":false,"pushed_at":"2026-04-25T11:10:37.000Z","size":81,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-25T13:14:55.815Z","etag":null,"topics":["api","crate","dtiw385","orange","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/dtiw385","language":"Rust","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/bl3tt3r.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":null,"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-03-14T16:01:32.000Z","updated_at":"2026-04-12T09:26:51.000Z","dependencies_parsed_at":"2026-04-25T17:00:59.410Z","dependency_job_id":null,"html_url":"https://github.com/bl3tt3r/dtiw385","commit_stats":null,"previous_names":["bl3tt3r/orange-dtiw385","bl3tt3r/dtiw385"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bl3tt3r/dtiw385","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl3tt3r%2Fdtiw385","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl3tt3r%2Fdtiw385/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl3tt3r%2Fdtiw385/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl3tt3r%2Fdtiw385/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bl3tt3r","download_url":"https://codeload.github.com/bl3tt3r/dtiw385/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl3tt3r%2Fdtiw385/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32269463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"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":["api","crate","dtiw385","orange","rust"],"created_at":"2026-04-25T17:00:34.544Z","updated_at":"2026-04-25T17:01:44.741Z","avatar_url":"https://github.com/bl3tt3r.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dtiw385\n\n[![License](https://img.shields.io/badge/LICENSE-MIT-blue.svg)](./LICENSE)\n![Rust Edition](https://img.shields.io/badge/edition-2024-orange)\n![Made with Rust](https://img.shields.io/badge/Made%20with-Rust-000000?logo=rust)\n![CI](https://github.com/bl3tt3r/dtiw385/actions/workflows/rust.yml/badge.svg)\n\nThis crate provides a Rust API to interact with [🟠 Orange](https://www.orange.fr/) DTIW385 decoders, allowing device discovery, querying device information, and sending asynchronous remote control commands over the network.\n\n__This project is not affiliated with, endorsed by, or sponsored by Orange.__\n\n---\n\n## 📦 Installation\n\nAdd this to your `Cargo.toml`:\n\n### 📦 From crates.io (recommended)\n\n```toml\n[dependencies]\ndtiw385 = \"0.1.2\"\n```\n\n__Or run the following Cargo command in your project directory: `cargo add dtiw385`__\n\n### 🔹 From Git (latest development version)\n\n```toml\n[dependencies]\ndtiw385 = { git = \"https://github.com/bl3tt3r/dtiw385\", branch = \"master\" }\n```\n\n### 🔖 From a tagged release\n\n```toml\n[dependencies]\ndtiw385 = { git = \"https://github.com/bl3tt3r/dtiw385\", tag = \"v0.1.2\" }\n```\n\n---\n\n## 🧩 Features\n\n| Feature        | Description                                           |\n| -------------- | ----------------------------------------------------- |\n| `serializable` | Enable serialization of `Decoder` and `ApiInfosData`. |\n\n---\n\n## 🚀 Usage\n\nThe library provides two main ways to work with decoders.\n\n### 🔌 Connect to a known decoder\n\nIf you already know the IP and port, you can create a decoder directly:\n\n```rust\nuse dtiw385::Decoder;\n\nlet decoder = Decoder::new([192, 168, 1, 10], 8080);\n```\n\nYou can then send commands to the device (button actions like press, hold, release).\n\n---\n\n### 🔍 Discover decoders on the network\n\nScan a range of IPs and ports to find available devices:\n\n```rust\nuse dtiw385::Decoders;\n\n// Receiver of discovered decoders\nlet mut rx = Decoders::search(\n    [192, 168, 1, 1]..=[192, 168, 1, 254],\n    8080..=8080,\n)\n.find();\n```\n\nEach discovered decoder is sent through the receiver.\n\n---\n\n### 🎮 Interact with a decoder\n\n#### 🎹 Keys\n\nThe library provides a `Key` enum with most common remote control buttons already mapped.\n\nEach key is internally converted to a Linux input event code (`u16`) when sent to the decoder.\n\nYou can use these keys directly with:\n\n- `press`\n- `hold`\n- `release`\n\n---\n\n##### 📋 Available keys\n\n| Key           | Description        |\n| ------------- | ------------------ |\n| `PowerOnOff`  | Power toggle       |\n| `Ok`          | Validate selection |\n| `Up`          | Navigate up        |\n| `Down`        | Navigate down      |\n| `Left`        | Navigate left      |\n| `Right`       | Navigate right     |\n| `Back`        | Go back            |\n| `Menu`        | Open menu          |\n| `VolumeUp`    | Increase volume    |\n| `VolumeDown`  | Decrease volume    |\n| `Mute`        | Mute sound         |\n| `ChannelUp`   | Next channel       |\n| `ChannelDown` | Previous channel   |\n| `Play`        | Play               |\n| `Pause`       | Pause              |\n| `Stop`        | Stop               |\n| `Forward`     | Fast forward       |\n| `Rewind`      | Rewind             |\n| `N0`          | Number 0           |\n| `N1`          | Number 1           |\n| `N2`          | Number 2           |\n| `N3`          | Number 3           |\n| `N4`          | Number 4           |\n| `N5`          | Number 5           |\n| `N6`          | Number 6           |\n| `N7`          | Number 7           |\n| `N8`          | Number 8           |\n| `N9`          | Number 9           |\n\n#### 🧪 Example\n\n```rust\nuse dtiw385::{Decoder, Key};\n\nlet decoder = Decoder::new([192, 168, 1, 10], 8080);\n\ndecoder.press(Key::Ok).await?;\ndecoder.hold(Key::VolumeUp).await?;\ndecoder.release(Key::VolumeUp).await?;\n```\n\n---\n\n## ⚙️ Configuration\n\n### 🔁 Concurrency\n\n```rust\nDecoders::search(ip_range, port_range)\n    .with_concurrency(50);\n```\n\n* **Higher value** = faster scan ⚡\n* **But more CPU and network usage 🔥**\n\n---\n\n### ⏱️ Timeout\n\n```rust\nDecoders::search(ip_range, port_range)\n    .with_timeout(500);\n```\n\n* **Timeout** is in milliseconds\n* **Lower** = faster failure\n* **Higher** = more reliable but slower\n\n---\n\n## 📚 Examples\n\nExamples are available in the `examples/` folder.\n\n- [find_available_decoders](examples/find_available_decoders.rs)\n- [get_decoder_infos](examples/get_decoder_infos.rs)\n- [switch_decoder_power](examples/switch_decoder_power.rs)\n\nRun one with:\n\n```bash\ncargo run --example get_decoder_infos\n```\n\n---\n\nLicense: MIT\n\n---\n\n\u003cp align=\"center\"\u003e\n  Made with ❤️ and Rust 🦀\n\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbl3tt3r%2Fdtiw385","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbl3tt3r%2Fdtiw385","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbl3tt3r%2Fdtiw385/lists"}