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