diff --git a/README b/README.md similarity index 73% rename from README rename to README.md index 6bf9ecb..29cee4e 100644 --- a/README +++ b/README.md @@ -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 ----------------------------------- @@ -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. diff --git a/software/firmware/bluebox.h b/software/firmware/bluebox.h index 348f9b5..79fdb39 100644 --- a/software/firmware/bluebox.h +++ b/software/firmware/bluebox.h @@ -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