Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions README → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,20 @@ How to install bbctl

Go to software/bbctl and run:

$ sudo python2 setup.py install
$ sudo python2 setup.py install

Note that you need gcc to compile the FEC extension module.

Requirements
------------

bbctl uses pyusb1.0, which is not yet available in sone linux distributions.

Follow these easy steps to install from source:

$ git clone https://github.com/walac/pyusb.git
$ cd pyusb
$ sudo python2 setup.py install

How to build and flash the firmware
-----------------------------------
Expand All @@ -30,18 +40,21 @@ and 49-atmel.rules to your udev rules directory (usually /etc/udev/rules.d).
Now, compile and flash the software. The bbctl dfu step can be omitted if
you're flashing the device for the first time:

$ cd bluebox/software/firmware
$ make clean all
$ bbctl dfu
$ make program
$ cd bluebox/software/firmware
$ make clean all
$ bbctl dfu
$ make program

You need dfu-programmer to program the device. Install it from your package
manager or from http://dfu-programmer.sourceforge.net/

You will also need a recent avr-8 compiler. Install it from your package
manager or from http://atmel.com

Finally, test the device by reading back the silicon revision of the ADF7021 RF
chip:

$ bbctl version
0x2104
$ bbctl version
0x2104

You can run bbctl help to get a list of available commands.
4 changes: 2 additions & 2 deletions software/firmware/bluebox.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
#define TX_TIMEOUT_DELAY 10U
#define RX_WAIT_TIMEOUT 120U
#define CSMA_RSSI -50
#define BAUD_RATE 2400
#define MOD_INDEX 8
#define BAUD_RATE 4800
#define MOD_INDEX 4
#define PA_SETTING 8
#define AFC_RANGE 10
#define AFC_KI 11
Expand Down