{"id":33919042,"url":"https://github.com/jettify/smartaudio","last_synced_at":"2025-12-30T08:05:43.692Z","repository":{"id":320277336,"uuid":"1080115974","full_name":"jettify/smartaudio","owner":"jettify","description":"This is a no_std platform-agnostic implementation of the TBS SmartAudio protocol in Rust.","archived":false,"fork":false,"pushed_at":"2025-11-05T22:45:48.000Z","size":55,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-06T00:18:50.382Z","etag":null,"topics":["fpv","fpv-drones","smartaudio","vtx"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jettify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2025-10-20T22:27:26.000Z","updated_at":"2025-11-05T22:45:20.000Z","dependencies_parsed_at":"2025-10-22T23:34:10.671Z","dependency_job_id":"54fea4a7-0c3b-4152-8fdf-3e758d2dfba6","html_url":"https://github.com/jettify/smartaudio","commit_stats":null,"previous_names":["jettify/smartaudio"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jettify/smartaudio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jettify%2Fsmartaudio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jettify%2Fsmartaudio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jettify%2Fsmartaudio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jettify%2Fsmartaudio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jettify","download_url":"https://codeload.github.com/jettify/smartaudio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jettify%2Fsmartaudio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27679464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"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":["fpv","fpv-drones","smartaudio","vtx"],"created_at":"2025-12-12T08:39:45.163Z","updated_at":"2025-12-12T08:39:49.958Z","avatar_url":"https://github.com/jettify.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `SmartAudio`\n[![CI](https://github.com/jettify/smartaudio/actions/workflows/CI.yml/badge.svg)](https://github.com/jettify/smartaudio/actions/workflows/CI.yml)\n[![codecov](https://codecov.io/gh/jettify/smartaudio/graph/badge.svg?token=RCM2W4C0LB)](https://codecov.io/gh/jettify/smartaudio)\n[![crates.io](https://img.shields.io/crates/v/smartaudio)](https://crates.io/crates/smartaudio)\n[![docs.rs](https://img.shields.io/docsrs/smartaudio)](https://docs.rs/smartaudio/latest/smartaudio/)\n\nThis is a `no_std` platform-agnostic implementation of the TBS `SmartAudio` protocol in Rust.\n\n## Features\n\n* `no_std`, does not use the standard library or an allocator.\n* Platform Agnostic, can be used on any MCU or platform.\n* Provides a low-level interface to slice byte stream into valid frames.\n* Supports `SmartAudio` protocols `1.0`, `2.0` and `2.1`.\n\n## Usage Example\n\nHere is a basic example of how to parse buffer using iterator:\n\n```rust\n\nuse smartaudio::SmartAudioParser;\n\nfn main() {\n    let raw: [u8; 72] = [\n        0xAA, 0x55, 0x01, 0x06, 0x00, 0x00, 0x01, 0x16, 0xE9, 0x4D, // frame0\n        0xAA, 0x55, 0x09, 0x06, 0x01, 0x00, 0x1A, 0x16, 0xE9, 0x0A, // frome1\n        0xAA, 0x55, 0x11, 0x0C, 0x00, 0x00, 0x00, 0x16, 0xE9, 0x0E, 0x03, 0x00, 0x0E, 0x14, 0x1A,\n        0x01, // frame2\n        0xAA, 0x55, 0x02, 0x03, 0x00, 0x01, 0x0F, // frame3\n        0xAA, 0x55, 0x02, 0x03, 0x0E, 0x01, 0x6D, // frame4\n        0xAA, 0x55, 0x03, 0x03, 0x00, 0x01, 0x4A, // frame5\n        0xAA, 0x55, 0x04, 0x04, 0x16, 0xE9, 0x01, 0xF8, // frame6\n        0xAA, 0x55, 0x05, 0x03, 0x0A, 0x01, 0x4F, // frame7\n    ];\n\n    println!(\"Parssing frame from buffer using iterator:\");\n\n    let mut parser = SmartAudioParser::new();\n    for frame in parser.iter_responses(\u0026raw[..]) {\n        println!(\"{:#?}\", frame.unwrap())\n    }\n}\n```\n\nHere is a basic example feeding data stream one byte at time:\n\n```rust\nuse smartaudio::Response;\nuse smartaudio::SmartAudioParser;\n\nfn main() {\n    let mut parser = SmartAudioParser::new();\n\n    let raw_settings_v20: [u8; 10] = [\n        0xAA, 0x55, // Headers\n        0x09, // Version/Command\n        0x06, // Length\n        0x01, // Channel\n        0x00, // Power Level\n        0x1A, // Operation/Mode\n        0x16, 0xE9, // Current Frequency 5865\n        0x0A, // CRC8\n    ];\n    println!(\"Parssing raw packet:\");\n    for b in \u0026raw_settings_v20[0..raw_settings_v20.len()] {\n        let reult = parser.push_byte(*b);\n        match reult {\n            Ok(Some(Response::GetSettings(settings))) =\u003e {\n                println!(\"{:#?}\", settings);\n                println!(\"\\n\");\n                println!(\"Version:     {:?}\", settings.version);\n                println!(\"Channel:     {:?}\", settings.channel);\n                println!(\"Power Level: {:?}\", settings.power_level);\n                println!(\"Unlocked:    {:?}\", settings.unlocked);\n            }\n            Err(e) =\u003e eprintln!(\"Error parsing packet: {:?}\", e),\n            _ =\u003e (),\n        }\n    }\n}\n\n```\n\n## Installation\n\nAdd `smartaudio` to your `Cargo.toml`:\n\n```toml\n[dependencies]\nsmartaudio = \"*\" # replace * by the latest version of the crate.\n```\n\nOr use the command line:\n\n```bash\ncargo add smartaudio\n```\n\n## License\n\nThis project is licensed under the `Apache 2.0`. See the [LICENSE](https://github.com/jettify/smartaudio/blob/master/LICENSE) file for details.\n\n## Protocol Specification\n\n[tbs_smartaudio_rev09.pdf](https://www.team-blacksheep.com/tbs_smartaudio_rev09.pdf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjettify%2Fsmartaudio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjettify%2Fsmartaudio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjettify%2Fsmartaudio/lists"}