[srslte-users] LimeSDR/SoapySDR List Antenna change in source code

Andre Puschmann andre.puschmann at softwareradiosystems.com
Sun Nov 18 09:28:53 UTC 2018


Hey,

you can control the antenna setting through the device arguments. For
example, to use the LimeSDR in the higher frequency bands, put
"device_args = rxant=LNAH,txant=BAND2" in your ue.conf.

Hope that helps.

Thanks
Andre


On 17/11/18 14:25, Sandi Suhendro wrote:
> Dear list,
> anyone know where the LNAL, LNAW, LNAH setting?
> I looked up to the source code in purpose to change setting from LNAH to
> LNAL, but cannot find it.
> 
> I found only SoapySDR_TRX 0 but not see anything with LNA setting.
> as here:
> 
>     // rx antenna
>     const char rx_ant_arg[] = "rxant=";
>     char rx_ant_str[64] = {0};
>     char *rx_ant_ptr = strstr(args, rx_ant_arg);
>     if (rx_ant_ptr) {
>       copy_subdev_string(rx_ant_str, rx_ant_ptr + strlen(rx_ant_arg));
>       printf("Setting Rx antenna to %s\n", rx_ant_str);
>       if (SoapySDRDevice_setAntenna(handler->device, SOAPY_SDR_RX, 0,
> rx_ant_str) != 0) {
>         fprintf(stderr, "Failed to set Rx antenna.\n");
>       }
> 
> Maybe I miss when looking or readng the code include to other folders?
> 
> please help me if anyone know! Thanks :-)
> 
> -- 
> Best Regards,
> Sandi
> 
> 
> _______________________________________________
> srslte-users mailing list
> srslte-users at lists.softwareradiosystems.com
> http://www.softwareradiosystems.com/mailman/listinfo/srslte-users
> 




More information about the srsran-users mailing list