Code Monkey home page Code Monkey logo

hackrfone's Introduction

Maintenance crates.io docs.rs CI

HackRF One

This is a rust API for the HackRF One software defined radio.

This is not a wrapper around libhackrf, this is a re-implementation of libhackrf in rust, using the rusb libusb wrappers.

This is currently in an experimental state, and it is incomplete. For full feature support use the official libhackrf C library.

This is tested only on Linux, but it will likely work on other platforms where libhackrf works.

hackrfone's People

Contributors

dependabot[bot] avatar newam avatar nitroxis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hackrfone's Issues

Usb(NotFound) when receiving

Hi! Thanks for your work on this library.

I've been trying to get it to work with macOS and I haven't been able to receive anything. rx() always gives me an Err(Usb(NotFound)), while device_version() seems to work correctly.

This is the basic example I've tried running:

use hackrfone::{HackRfOne, RxMode, UnknownMode};

fn main() {
    let radio: HackRfOne<UnknownMode> = HackRfOne::new().unwrap();
    println!("{:?}", radio.device_version());

    let mut radio: HackRfOne<RxMode> = radio.into_rx_mode().unwrap();
    radio.rx().unwrap();
}

Which gives me this output:

Version(1, 0, 4)
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Usb(NotFound)', src/main.rs:8:16

I also tried your rx.rs example and got this:

Spawned sample thread
Sample thread disconnected
Shutting down sample thread
thread 'main' panicked at 'Failed to send exit event to sample thread: "SendError(..)"', src/main.rs:89:10

Have you encountered anything like this? Which platforms have you been able to test your library against?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.