trunk-recorder icon indicating copy to clipboard operation
trunk-recorder copied to clipboard

LimeSDR support through SoapySDR

Open Treehouseman opened this issue 7 years ago • 2 comments

The antenna is unable to be set through the antenna value in the osmosdr block. I see there's provisions for setting an antenna on usrp (though using the usrp block) but not one for osmosdr. Manually adding the line cast_to_osmo_sptr(source_block)->set_antenna("LNAW"); to source.cc in the antenna function sets it properly, the config takes a string, with the lime sdr being values of "NONE" "LNAL" "LNAH" "LNAW" "LB1" "LB2".

Beyond that it seems the lime sdr works perfectly as intended with soapysdr, just add in the other gains (bbgain, ifgain) like with the hackrf and change the device string to "soapy=0,driver=lime".

Treehouseman avatar Apr 03 '18 22:04 Treehouseman

Ok, So how do we get a pull request going to add lime sdr support?

MaxwellDPS avatar Nov 04 '18 18:11 MaxwellDPS

at line 14 in sources.cc does this have to be replaced?

cast_to_osmo_sptr(source_block)->set_antenna(antenna, 0);

or can cast_to_osmo_sptr(source_block)->set_antenna("LNAW"); just be added to line 15

MaxwellDPS avatar Nov 04 '18 18:11 MaxwellDPS