Skip to content

Commit

Permalink
update deploy instructions and timeout for raspberry pi; WIP for #50
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperq committed Jan 24, 2020
1 parent 660f96e commit 778ebd4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ The main project is located in `/src` and is based off of [srsLTE](https://githu

[Driver installation for the USRP B200](https://files.ettus.com/manual/page_install.html#install_linux).

[Driver installation for the bladeRF x40](https://github.com/Nuand/bladeRF/wiki/Getting-Started%3A-Linux#Easy_installation_for_Ubuntu_The_bladeRF_PPA). Note: our bootstrapping script will take care of updating the firmware + FPGA on your bladeRF to the latest version when you try to run the Crocodile Hunter project.
[Driver installation for the bladeRF x40](https://github.com/Nuand/bladeRF/wiki/Getting-Started%3A-Linux#Easy_installation_for_Ubuntu_The_bladeRF_PPA).
**Note:** our bootstrapping script will take care of updating the firmware + FPGA on your bladeRF to the latest version when you try to run the Crocodile Hunter project.
**Note:** installing from apt on debian or raspbian will install an incompativle version of libbladerf. The version must be at least 7.0 or higher. If on a raspberry pi it is reccomended to install from source instead of from repos.


### Project Setup

Expand All @@ -26,7 +29,7 @@ git submodule update --recursive

Please make sure you have python3.6 installed on your system. Additional packages you need to install if you're on Ubuntu:
```
sudo apt-get install python3-pip python3-scipy libpolarssl-dev jq gpsd gpsd-clients mariadb-server python3-dev libmariadb-dev cmake libitpp-dev librtlsdr-dev libopenblas-dev libncurses5-dev libpcsclite-dev libatlas-base-dev
sudo apt-get install python3-pip python3-scipy libpolarssl-dev jq libfftw3-dev libboost-dev libboost-program-options-dev libconfig++-dev gpsd gpsd-clients mariadb-server python3-dev libmariadb-dev cmake libitpp-dev librtlsdr-dev libuhd-dev libbladerf-dev libopenblas-dev libncurses5-dev libpcsclite-dev libatlas-base-dev
```

Install the required python packages:
Expand Down
1 change: 1 addition & 0 deletions src/config.ini.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ gps_default = 0, 0
mysql_path = mysql://root:toor@localhost:3306
wigle_name = AIC1234
wigle_key = deadbeef
crash_timeout = 30 ;number of seconds until we assume process has crashed. On a raspberry pi this needs to be more like 120

;project specific settings
;earfcn list will be cacluated once for each new project, or can be pre-calculated for a specific
Expand Down
3 changes: 1 addition & 2 deletions src/crocodilehunter.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

# Global flag to exit forever running threads
EXIT = False
CRASH_TIMEOUT = 25

class CrocodileHunter():
def __init__(self, args):
Expand Down Expand Up @@ -139,7 +138,7 @@ def monitor_srslte(self, proc):
nbsr = NBSR(proc.stdout)
line = ''
while not EXIT:
line = nbsr.readline(CRASH_TIMEOUT)
line = nbsr.readline(int(self.config["general"]["crash_timeout"]))
if line is not None:
self.logger.debug(line.decode("ascii").rstrip())
out.append(line)
Expand Down
2 changes: 1 addition & 1 deletion src/srsLTE
Submodule srsLTE updated 1 files
+0 −1 srsue/src/upper/rrc.cc

0 comments on commit 778ebd4

Please sign in to comment.