Comments (3)
Adding the ability to set the frequency, bandwidth, samplerate, etc. to bladeRF-cli or similar would be a great feature.
For example one might execute "bladeRF-cli -f 350000000 -b 1500000 -s 3000000" to set the frequency to 350 MHz with a bandwidth of 1.5MHz and a sample rate of 3 MHz.
-or-
"bladeRF-cli -f 350000000 -b 1500000 -s 3000000 -config bin -file sample.bin -n 10000" to tune the rx and output samples to a specified file using bin format.
I believe this would streamline the process, improve efficiency and increase user experience.
In the interim, I've written a very basic wrapper script for bladeRF-cli. It currently does not include an argument to specify an output file or format. By default it is set to .csv and samples.csv. Feel free to customize - I'll probably update at a later time along with --help or usage.
NOTE: Currently drops you into interactive mode where all you have to execute is rx start. I've been having difficulties passing this through the script - bladeRF-cli will hang in my case. Feel free to uncomment those lines to give it a shot, and please post your results.
This will help you get started and is as follows:
#!/bin/bash
### VARIABLES ###
### MAIN BODY START ###
touch config.txt
chmod 777 config.txt
while getopts f:b:s:n: option
do
case "${option}"
in
f) frequency=${OPTARG};;
b) bandwidth=${OPTARG};;
s) samplerate=${OPTARG};;
n) numofsamples=${OPTARG};;
esac
done
echo "set frequency $frequency" >> config.txt
echo "set bandwidth $bandwidth" >> config.txt
echo "set samplerate $samplerate" >> config.txt
echo "rx config file=samples.csv format=csv n=$numofsamples" >> config.txt
#echo "set lnagain bypass" >> config.txt
#echo "set rxvga1 20" >> config.txt
#echo "set rxvga2 20" >> config.txt
echo "rx" >> config.txt
#echo "rx start" >> config.txt
#echo "exit" >> config.txt
sudo ./bladeRF-cli -s config.txt
#sudo ./bladeRF-cli -s config.txt -b
### MAIN BODY END ###
###CLEAN UP
rm config.txt
echo "Done."
from bladerf.
Added as a test thing people can use to test out the bladeRF after install procedure..
http://forum.nuand.com/forums/viewtopic.php?f=9&t=2992&p=3842#p3842
from bladerf.
Better late than never? Pushed in e0f6ee0!
from bladerf.
Related Issues (20)
- How to switch to external LO using bladerf-cli HOT 1
- I Need Help Searching for Open Source Software Stack for 3G HOT 1
- Problem occurred while building package uhd: Build failed. HOT 3
- Documentation for BLADERF_FORMAT_SC8_Q7 is Incorrect HOT 4
- Sample Rate is Halved When Using BLADERF_FEATURE_OVERSAMPLE
- Overflow in bladeRF-cli number of samples
- Issue in dual channel sync transmission (MO) HOT 1
- Issues about generating BSP HOT 3
- Dual-channel async receive with metadata broken for FPGA code 0.12.0 through 0.15.0 (xA9)?
- Timed out waiting for buf_ready HOT 2
- timing closure for hosted revision HOT 1
- Dual Channel RX gain issue HOT 9
- Fastlock profile within Nios II HOT 1
- Pybombs should not be the recommended installing method HOT 2
- Error on generating .rbf file HOT 1
- test_txrx_hwloop.c / bladeRF build error on Raspberry Pi 4 B (bullseye 32bit, bookworm 64 bit) HOT 1
- BladeRF2 Micro XA4 Heating Effect
- READ CAREFULLY: BEFORE POSTING ISSUES
- bladeRF 2.0 micro xA4 behaving erratically when sampling rate is just changed
- fx3_gpif entity error HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bladerf.