Bug #3654

Can't select LimeSDR by serial number

Added by Y2Kot over 2 years ago. Updated almost 2 years ago.

Target version:
Start date:
Due date:
% Done:


Spec Reference:


I'm trying to set LimeSDR for using with osmo-trx. I have 2 devices plugged. I set serial number in osmo-trx.cfg, however osmo-trx-lms always get the first one.
My config looks like:

log stderr
 logging filter all 1
 logging color 1
 logging print category 1
 logging timestamp 1
 logging print file basename
 logging level set-all info
line vty
 no login
 base-port 5700
 egprs disable
 dev-args serial=0009070105C6170B // I also tried to add just serial but no changes
 tx-sps 4
 rx-sps 4
 rt-prio 18
 chan 0
  tx-path BAND1
  rx-path LNAW


#1 Updated by laforge about 2 years ago

  • Assignee set to osmith

#2 Updated by laforge about 2 years ago

#3 Updated by pespin about 2 years ago

Check LMSDevice::open in ./Transceiver52M/device/lms/LMSDevice.cpp, "args" is passed there as a string.

What I would do: accept in VTY same format as we use for osmo-trx-uhd, for instance: "LimeSDR-USB,addr=1d50:6108,serial=0009060B00471827"

Then, create a function which splits each token into an vector of strings (comma is the separator).

Then, for each lms_info_str_t returned in LMS_GetDeviceList(info_list), check if all strings coming from the generated vector can be found as substrings of that lms_info_str_t. If that's the case, return that one.

Modify the call to LMS_Open() to use the returned lms_info_str_t instead of info_list0.

#4 Updated by osmith about 2 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10

#6 Updated by pespin about 2 years ago

  • Assignee changed from osmith to pespin

Merged, assigning to myself to make use of this feature in osmo-trx-lms attached in osmo-gsm-tester.

#7 Updated by pespin almost 2 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100

Patch submitted in uses it in osmo-gsm-tester.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)