Nuand / gr-bladeRF

GNU Radio block for bladeRF devices
GNU General Public License v3.0
28 stars 10 forks source link

Trigger master-slave in dual RX configuration #16

Open marcospanghero opened 2 months ago

marcospanghero commented 2 months ago

Hi, I am trying to setup a dual radio RX system with two active channels per radio. Using the gr block, the trigger system seems not be configuring correctly, but if enabled fails with the following

 File "/home/rec/bladerf-sampler/./bladerfsampler.py", line 220, in <module>
   main()
 File "/home/rec/bladerf-sampler/./bladerfsampler.py", line 197, in main
   tb = top_block_cls()
 File "/home/rec/bladerf-sampler/./bladerfsampler.py", line 53, in _init_
   self.bladeRF_source_0_0 = bladeRF.source(
RuntimeError: setup_trigger: bladerf_trigger_init failed: Invalid operation or parameter (-3)

These are the configs used in the blocks

Args: numchan=2,metadata=False,bladerf=c51c5a682f884c508b811eae5e53b949,verbosity=warning,feature=default,sample_format=8bit,fpga=,fpga-reload=False,use_ref_clk=False,ref_clk=10000000,buflen=131072,buffers=128,in_clk=ONBOARD,out_clk=Fal
se,use_dac=False,dac=10000,xb200=none,tamer=internal,sampling=internal,lpf_mode=disabled,smb=38400000,dc_calibration=LPF_TUNING,trigger0=True,trigger_role0=master,trigger_signal0=J51_1,trigger1=True,trigger_role1=master,trigger_signal1=
J51_1,bias_tee0=False,bias_tee1=False
Args: numchan=2,metadata=False,bladerf=c51c5a682f884c508b811eae5e53b949,verbosity=warning,feature=default,sample_format=8bit,fpga=,fpga-reload=False,use_ref_clk=False,ref_clk=10000000,buflen=131072,buffers=128,in_clk=ONBOARD,out_clk=Fal
se,use_dac=False,dac=10000,xb200=none,tamer=internal,sampling=internal,lpf_mode=disabled,smb=38400000,dc_calibration=LPF_TUNING,trigger0=True,trigger_role0=master,trigger_signal0=J51_1,trigger1=True,trigger_role1=master,trigger_signal1=
J51_1,bias_tee0=False,bias_tee1=False

Could you please advise on a fix or a debug strategy?