Project

General

Profile

Bug #3654

Can't select LimeSDR by serial number

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

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
10/15/2018
Due date:
% Done:

100%

Spec Reference:

Description

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
!
trx
 bind-ip 127.0.0.1
 remote-ip 127.0.0.1
 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

Associated revisions

Revision 29189367 (diff)
Added by osmith over 2 years ago

LMSDevice: make use of dev-args in osmo-trx.cfg

Allow selecting a specific LimeSDR device by setting dev-args in the
config file. Split up the given dev-args address by comma and select
the device where all substrings can be found.

I could not test this with real hardware, but I have added a test case
to make sure this works as expected.

Related: OS#3654
Change-Id: Ib9aaa066a01bf9de3f78234d7ada884d6f28c852

Revision 8d9a05ce (diff)
Added by osmith over 2 years ago

osmo-trx.cpp: move comma_delimited_to_vector() to Utils.cpp

Make the "opt" argument const. This function will also be used by
LMSDevice.cpp in a follow-up commit.

Related: OS#3654
Change-Id: If3f0f682ca453c2b0a06175ec9626567932cfce6

Revision 871713bf (diff)
Added by osmith over 2 years ago

LMSDevice: make use of dev-args in osmo-trx.cfg

Allow selecting a specific LimeSDR device by setting dev-args in the
config file. Split up the given dev-args address by comma and select
the device where all substrings can be found.

I could not test this with real hardware, but I have added a test case
to make sure this works as expected.

Related: OS#3654
Change-Id: Ib9aaa066a01bf9de3f78234d7ada884d6f28c852

Revision 42c16560 (diff)
Added by osmith over 2 years ago

LMSDeviceTest: fix link errors on OBS

Link LMSDeviceTest against LMS_LIBS, so it does not only compile on
Debian, but also on Ubuntu and openSUSE. Thanks to roox for figuring
this out.

Related: OS#3654
Change-Id: I6980d4290f623485a77db10fea6d17de0321c092

History

#1 Updated by laforge over 2 years ago

  • Assignee set to osmith

#2 Updated by laforge over 2 years ago

#3 Updated by pespin over 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 over 2 years ago

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

#6 Updated by pespin over 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 about 2 years ago

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

Patch submitted in https://gerrit.osmocom.org/#/c/osmo-gsm-tester/+/13150/ uses it in osmo-gsm-tester.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)