Giter Club home page Giter Club logo

magic's Introduction

hackrf-rust

Prerequisites

Languages

  • rust
  • elixir

Libraries (required)

  • libprotobuf-c-dev

Libraries (optional)

  • libhackrf
  • librtl

Getting started

git clone https://github.com/korczis/hackrf-rust.git
cd hackrf-rust/hackrf
cargo install

Usage

Show global help

$ hackrf -h
HackRF wrapper 0.0.1
Tomas Korcak <[email protected]>
HackRF CLI

USAGE:
    hackrf [FLAGS] <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information
    -v, --verbose    Verbose mode

SUBCOMMANDS:
    help     Prints this message or the help of the given subcommand(s)
    info     Show information
    list     List devices
    reset    Reset device

hackrf info

$ hackrf info 0
{
  "index": 0,
  "model": "One",
  "version": [
    1,
    2
  ],
  "firmware": "2017.02.1",
  "serial": {
    "part_id": [
      2684406588,
      6308698
    ],
    "serial_no": [
      0,
      0,
      2425906376,
      741960399
    ]
  },
  "serial_string": "0000000000000000909864c82c396acf"
}

hackrf list

List available HackRF devices

$ hackrf list
[
  {
    "index": 0,
    "model": "One",
    "version": {
      "major": 1,
      "minor": 2
    },
    "firmware": "2017.02.1",
    "serial": {
      "part_id": [
        2684406588,
        6308698
      ],
      "serial_no": [
        0,
        0,
        2425906376,
        741960399
      ]
    },
    "serial_string": "0000000000000000909864c82c396acf"
  }
]

hackrf reset

$ hackrf reset 0
Device 0 was successfully reset

magic's People

Contributors

korczis avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.