bladeRF/host/examples/bladeRF-cli/sync_trx/slave.txt
Jon Szymaniak d3bc3dc27f host: examples: bladeRF-cli: Added sync_trx example
This example demonstrates how to use the bladeRF-cli to perform
synchronized sampling using two devices and a trigger signal on
J71-4.
2016-05-22 19:20:27 -04:00

30 lines
742 B
Text

# Set up device parameters
set frequency rx 922M
set frequency tx 922M
set samplerate 6M
set bandwidth 3M
set lnagain 6
set rxvga1 10
set rxvga2 0
# Configure RX & TX operations
rx config file=slave_rx.csv format=csv n=60000 timeout=60s
# Use reference clock input from master.
# This assumes the master is already outputting this reference.
set smb_mode input
# Arm the trigger
trigger j71-4 rx slave
# Start streaming sampling
rx start
# Inform user how to fire trigger
echo " ---------------------------------------------------------------"
echo " Ready. Fire the trigger on the master device."
echo " ---------------------------------------------------------------"
# Wait for the RX to complete and then finish up.
rx wait