Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- export BLADERF_LOG_LEVEL="verbose"
- function doit() {
- echo bladeRF-cli -e \"${@}\"
- ARGS="${@}"
- bladeRF-cli -v $BLADERF_LOG_LEVEL -e "$ARGS"
- let -i rc=$?
- #echo "------- $rc"
- if [ $rc -eq 1 ]; then
- echo "Operation failed..." 1>&2
- exit $rc;
- fi
- }
- ulimit -c unlimited
- CURR_CORE_PATT=$(cat /proc/sys/kernel/core_pattern)
- if [ "X${CURR_CORE_PATT::4}" != "Xcore" ]; then
- echo "Adjustment of proc/sys/kernel/core_pattern needed" 1>&2
- echo "core.%e" | sudo dd of=/proc/sys/kernel/core_pattern
- fi
- doit set frequency tx 900.401MHz
- doit set frequency rx 945.401MHz
- doit print rxvga2
- doit set rxvga2 8
- doit cal lms
- doit cal dc rx
- doit cal table dc rx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement