You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python_bladerf is a cython wrapper for bladerf (https://github.com/Nuand/bladeRF). It also contains some additional tools.
3
+
python_bladerf is a cython wrapper for [bladerf](https://github.com/Nuand/bladeRF). It also contains some additional tools.
4
+
5
+
Before installing python_bladerf library, you must have bladerf host software installed. Because this library uses dynamic linking with an existing library file.
4
6
5
7
You can install this library using
6
8
```
7
9
pip install python_bladerf
8
10
```
9
-
Or assemble it manually using the following steps:
10
11
11
-
In order to build the library you need to go to the python_bladerf directory
12
-
```
13
-
cd python_bladerf
14
-
```
15
-
call
16
-
```
17
-
python setup.py build_ext --inplace.
18
-
```
19
-
If the build fails, you will need to specify the paths for the libusb library.
12
+
If your bladerf files are in non-standard paths and during installation the python_bladerf cannot find libbladeRF.h and bladeRF2.h or the library files, you can specify the paths via environment variables
20
13
```
21
-
CFLAGS="-I/path to libusb.h -I/path to libbladeRF.h" \
22
-
LDFLAGS="-L/path to libusb-1.0.so -L/path to libBladeRF.so" \
Almost all the functionality of the standard library is implemented. Some features will be added later. (async recieve and transmit).
28
+
The library supports all bladerf2 functions, some of the functions can also work on the first versions.If there is a demand for full support of the first version, I will add it.
36
29
37
30
## pybladerf tools:
38
31
* pybladerf_info.py - Reading information about found devices.
39
-
* pybladerf_sweep.py - Possibility to get extended range fft ( same as hackrf_sweep)
32
+
* pybladerf_sweep.pyx - a function that allows you to obtain a sweep over a given frequency range ( same as hackrf_sweep)
33
+
* pybladerf_transfer.pyx - a function that allows you to record and play back samples
40
34
41
35
## usage
42
36
```
@@ -48,9 +42,10 @@ options:
48
42
-h, --help show this help message and exit
49
43
50
44
Available commands:
51
-
{info,sweep}
45
+
{info,sweep,transfer}
52
46
info Read device information from Bladerf such as serial number and FPGA version.
53
47
sweep a command-line spectrum analyzer.
48
+
transfer Send and receive signals using BladeRF. Input/output files consist of complex64 quadrature samples.
This library can work on android. To do this, go to the android directory and download 3 recipes for [p4a](https://github.com/kivy/python-for-android).
0 commit comments