New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
there's no Python bindings for set_feature function #909
Comments
The API's now called bladerf_enable_feature, it should be in the python package. Please see 689d6da |
thank you for your reply, we should call it on _bladerf.py file like this ? ###############################################################
###################################################################### when i use this like: could you please told me how i can set sample rate on 122.88 Mhz thank you |
As a test, cold you please enable the feature right after creating d and not change "sample_rate"? |
I did a simple test I generated a 20Mhz band signal and I activated the feature after the creation of d without changing the sample rate, when you try to check you see the sample_rate move from 30.72Mhz to 61.44Mhz could you help me with this issue, please? code : devices = _bladerf.get_device_list()
d = _bladerf.BladeRF(devinfo=devices[0])
d.enable_feature(1, True)
channel=_bladerf.CHANNEL_RX(0)
ch = d.Channel(channel)
print(ch.sample_rate)
# Setup synchronous stream
d.sync_config(layout=_bladerf.ChannelLayout.RX_X1,
fmt=_bladerf.Format.SC8_Q7,
num_buffers=32,
buffer_size=32768,
num_transfers=16,
stream_timeout=1000)
bytes_per_sample = 2
buf = bytearray(num_samples*bytes_per_sample)
if num_samples > 0:
num = min(len(buf)//bytes_per_sample,
num_samples)
else:
num = len(buf)//bytes_per_sample
d.sync_rx(buf, num)
data = np.frombuffer(buf, dtype='<i1')
signal_i = data[0:-1:2] / 256
signal_q = data[1::2] / 256
signal = signal_i + 1j*signal_q info Board: Nuand bladeRF 2.0 (bladerf2)
Serial #: bbcbba55a2e04f9bb73603eb12fedb49
VCTCXO DAC calibration: 0x1c61
FPGA size: 77 KLE
FPGA loaded: yes
Flash size: 64 Mbit
USB bus: 2
USB address: 23
USB speed: SuperSpeed
Backend: libusb
Instance: 0 version bladeRF-cli version: 1.9.0-git-8a7b41ae
libbladeRF version: 2.5.0-git-8a7b41ae
Firmware version: 2.4.0-git-a3d5c55f
FPGA version: 0.15.0 (configured from SPI flash) |
i try to update code for using sample rate = 122.88Mhz but i have issues so Could you please update python code and make it available for the public.
Thank you
The text was updated successfully, but these errors were encountered: