User Tools

Site Tools


howto:use_hackrf

This is an old revision of the document!


Using your Rad1o in HackRF mode

Booting into HackRF mode

Press the joystick button to the left, hold it, and switch the power on

Connecting to your PC

Connect a microUSB cable to port A.

Verifying connection

Linux: run

lsusb | grep -i OpenMoko

if there is a line of output, you're fine

Giving your user access to the device

Linux: Create a new file in

/etc/udev/rules.d

with the .rules suffix, containing

SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="6089", MODE:="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="cc15", MODE:="0666"

You can also download the file from here.

Getting libHackRF

You could install your distribution's libhackrf package. Or, you could take the easy route for all relevant dependencies (including GNU Radio and friends) you might meet later on and use http://pybombs.info (no root necessary for the stuff you build yourself):

git clone --recursive https://github.com/pybombs/pybombs.git
cd pybombs 
#prepare to answer a lot of questions with the default answer
#if you're not on debian/ubuntu you should change the install preferences away from deb,src
./pybombs install hackrf
./pybombs install gnuradio gr-osmosdr
#create and use shell setup script
./pybombs env 
#bash: 
echo "source /home/<username>/target/setup_env.sh" >> ~/.bashrc
#zsh: >> ~/.zshenv

Testing stuff

osmocom_fft

howto/use_hackrf.1439493980.txt.gz · Last modified: 2015/08/13 21:26 by funkylab