Project

General

Profile

Support #4121

Failure while setting Internal Clock on LimeSDR USB

Added by benoit@girard.tf 3 months ago. Updated 20 days ago.

Status:
Resolved
Priority:
Normal
Category:
LimeSDR
Target version:
-
Start date:
07/19/2019
Due date:
% Done:

100%

Spec Reference:

Description

Hi,

I have an issue when trying to start osmocom-trx-lms: "Invalid frequency value."

osmo-trx-lms was compiled from sources.

Strangely, it works perfectly with my "LimeSDR-mini" but running the same setup with the "LimeSDR-USB" fails.

The LimeSDR-USB is properly detected and up to date:

 LimeUtil --find
  * [LimeSDR-USB, media=USB 2.0, module=FX3, addr=1d50:6108, serial=0009060B00472237]

Here is the full startup log:

osmo-trx-lms -C  /etc/osmocom/osmo-trx-lms-big.cfg
Fri Jul 19 15:57:28 2019 DLGLOBAL <0004> telnet_interface.c:104 telnet at 127.0.0.1 4237
Fri Jul 19 15:57:28 2019 DLCTRL <000b> control_if.c:887 CTRL at 127.0.0.1 4236
Fri Jul 19 15:57:28 2019 DMAIN <0000> osmo-trx.cpp:478 [tid=1982672912] Config Settings
   Log Level............... 3
   Device args............. 
   TRX Base Port........... 5700
   TRX Address............. 127.0.0.1
   GSM BTS Address......... 127.0.0.1
   Channels................ 1
   Tx Samples-per-Symbol... 4
   Rx Samples-per-Symbol... 4
   EDGE support............ 0
   Extended RACH support... 0
   Reference............... 0
   C0 Filler Table......... 1
   Multi-Carrier........... 0
   Tuning offset........... 0
   RSSI to dBm offset...... 0
   Swap channels........... 0
   Tx Antennas............. 'BAND1'
   Rx Antennas............. 'LNAW'

Fri Jul 19 15:57:28 2019 DMAIN <0000> osmo-trx.cpp:434 [tid=1982672912] Setting SCHED_RR priority 18
Fri Jul 19 15:57:28 2019 DDEV <0002> LMSDevice.cpp:52 [tid=1982672912] creating LMS device...
Fri Jul 19 15:57:28 2019 DDEV <0002> LMSDevice.cpp:139 [tid=1982672912] Opening LMS device..
Fri Jul 19 15:57:28 2019 DDEV <0002> LMSDevice.cpp:145 [tid=1982672912] Devices found: 1
Fri Jul 19 15:57:28 2019 DDEV <0002> LMSDevice.cpp:155 [tid=1982672912] Device [0]: LimeSDR-USB, media=USB 2.0, module=FX3, addr=1d50:6108, serial=0009060B00472237
Fri Jul 19 15:57:28 2019 DDEV <0002> LMSDevice.cpp:164 [tid=1982672912] Using device[0]
Fri Jul 19 15:57:29 2019 DLMS <0003> LMSDevice.cpp:92 [tid=1982672912] Reference clock 30.72 MHz
Fri Jul 19 15:57:29 2019 DDEV <0002> LMSDevice.cpp:190 [tid=1982672912] Init LMS device
Fri Jul 19 15:57:29 2019 DDEV <0002> LMSDevice.cpp:203 [tid=1982672912] Setting Internal clock reference
Fri Jul 19 15:57:29 2019 DLMS <0003> LMSDevice.cpp:92 [tid=1982672912] Invalid frequency value.
Fri Jul 19 15:57:29 2019 DDEV <0002> LMSDevice.cpp:252 [tid=1982672912] Error in LMS open, closing: Invalid frequency value.
Fri Jul 19 15:57:29 2019 DMAIN <0000> osmo-trx.cpp:512 [tid=1982672912] Failed to create radio device
Fri Jul 19 15:57:29 2019 DMAIN <0000> osmo-trx.cpp:483 [tid=1982672912] Shutting down transceiver...
Fri Jul 19 15:57:29 2019 DDEV <0002> LMSDevice.cpp:63 [tid=1982672912] Closing LMS device

Is there something I am missing?

Thanks for your help!

History

#1 Updated by fixeria 3 months ago

  • Description updated (diff)

#2 Updated by pespin about 2 months ago

  • Project changed from OsmoBTS to OsmoTRX

#3 Updated by pespin about 2 months ago

  • Category set to LimeSDR
  • Status changed from New to Feedback
  • Assignee set to benoit@girard.tf

I just moved this ticket from OsmoBTS to OsmoTRX project.

benoit, can you provide exact versions of LimeSuite and osmo-trx you are using?

You should be using LimeSuite 19.04, I wouldn't expect older versions to work fine.

Also please share your osmo-bsc, osmo-bts-trx and osmo-trx config files.

#4 Updated by benoit@girard.tf about 1 month ago

pespin wrote:

I just moved this ticket from OsmoBTS to OsmoTRX project.

benoit, can you provide exact versions of LimeSuite and osmo-trx you are using?

You should be using LimeSuite 19.04, I wouldn't expect older versions to work fine.

Also please share your osmo-bsc, osmo-bts-trx and osmo-trx config files.

Hi,

Sorry for the late answer, my setup did crash, I had to reinstall everything.

I'm currently using the following versions:

- LimeSuite:
Version information:
Library version: v18.06.0+dfsg-1+b1
Build timestamp: 2018-07-28
Interface version: v2018.6.0
Binary interface: 18.06-1

- omso-trx-lms:
OsmoTRX version 1.1.1.13-94c5

I'll first try to update LimeUtils to 19.04 as you suggested and if it's still not work we'll dig into the config files!

Thanks for your help!

Benoit

#5 Updated by benoit@girard.tf about 1 month ago

So .. !

I did build the latest stable LimeSuite:

######################################################
## LimeSuite information summary
######################################################

Version information:
  Library version:    v19.04.0-gabf82140
  Build timestamp:    2019-09-12
  Interface version:    v2019.1.0
  Binary interface:    19.04-1

System resources:
  Installation root:    /usr/local
  User home directory:    /root
  App data directory:    /root/.local/share/LimeSuite
  Config directory:    /root/.limesuite
  Image search paths:
     - /root/.local/share/LimeSuite/images
     - /usr/local/share/LimeSuite/images

Supported connections:
   * FT601
   * FX3
   * PCIEXillybus

When running osmo-trx-lms I still have the same issue:

osmo-trx-lms  -C /etc/osmocom/osmo-trx-lms.cfg
Fri Sep 13 07:22:43 2019 DLGLOBAL <0004> telnet_interface.c:104 telnet at 127.0.0.1 4237
Fri Sep 13 07:22:43 2019 DLCTRL <000b> control_if.c:887 CTRL at 127.0.0.1 4236
Fri Sep 13 07:22:43 2019 DMAIN <0000> osmo-trx.cpp:478 [tid=1982861328] Config Settings
   Log Level............... 3
   Device args............. 
   TRX Base Port........... 5700
   TRX Address............. 127.0.0.1
   GSM BTS Address......... 127.0.0.1
   Channels................ 1
   Tx Samples-per-Symbol... 4
   Rx Samples-per-Symbol... 4
   EDGE support............ 0
   Extended RACH support... 0
   Reference............... 0
   C0 Filler Table......... 1
   Multi-Carrier........... 0
   Tuning offset........... 0
   RSSI to dBm offset...... 0
   Swap channels........... 0
   Tx Antennas............. 'BAND1'
   Rx Antennas............. 'LNAW'

Fri Sep 13 07:22:43 2019 DMAIN <0000> osmo-trx.cpp:434 [tid=1982861328] Setting SCHED_RR priority 18
Fri Sep 13 07:22:43 2019 DDEV <0002> LMSDevice.cpp:52 [tid=1982861328] creating LMS device...
Fri Sep 13 07:22:43 2019 DDEV <0002> LMSDevice.cpp:139 [tid=1982861328] Opening LMS device..
Fri Sep 13 07:22:43 2019 DDEV <0002> LMSDevice.cpp:145 [tid=1982861328] Devices found: 1
Fri Sep 13 07:22:43 2019 DDEV <0002> LMSDevice.cpp:155 [tid=1982861328] Device [0]: LimeSDR-USB, media=USB 2.0, module=FX3, addr=1d50:6108, serial=0009060B00472237
Fri Sep 13 07:22:43 2019 DDEV <0002> LMSDevice.cpp:164 [tid=1982861328] Using device[0]
Fri Sep 13 07:22:44 2019 DLMS <0003> LMSDevice.cpp:92 [tid=1982861328] Reference clock 30.72 MHz
Fri Sep 13 07:22:44 2019 DDEV <0002> LMSDevice.cpp:190 [tid=1982861328] Init LMS device
Fri Sep 13 07:22:44 2019 DDEV <0002> LMSDevice.cpp:203 [tid=1982861328] Setting Internal clock reference
Fri Sep 13 07:22:44 2019 DLMS <0003> LMSDevice.cpp:92 [tid=1982861328] Invalid frequency value.
Fri Sep 13 07:22:44 2019 DDEV <0002> LMSDevice.cpp:252 [tid=1982861328] Error in LMS open, closing: Invalid frequency value.
Fri Sep 13 07:22:44 2019 DMAIN <0000> osmo-trx.cpp:512 [tid=1982861328] Failed to create radio device
Fri Sep 13 07:22:44 2019 DMAIN <0000> osmo-trx.cpp:483 [tid=1982861328] Shutting down transceiver...
Fri Sep 13 07:22:44 2019 DDEV <0002> LMSDevice.cpp:63 [tid=1982861328] Closing LMS device

Here is my "osmo-trx-lms.cfg" configuration file:

log stderr
 logging filter all 1
 logging color 1
 logging print category 1
 logging timestamp 1
 logging print file basename
 logging level all info
!
line vty
 no login
!
trx
 bind-ip 127.0.0.1
 remote-ip 127.0.0.1
 base-port 5700
 egprs disable
 tx-sps 4
 rx-sps 4
 rt-prio 18
 chan 0
  tx-path BAND1
  rx-path LNAW

osmo-trx-lms was build using : "./configure --with-neon --with-lms --without-uhd"

The very same setup works fine with my "LimeSDR mini".

Thanks again for any advice ! :)

Benoit

#6 Updated by pespin about 1 month ago

Which version of osmo-trx are you building? Please make sure you use osmo-trx.git master
Add "logging level set-all debug" under "log stderr" node in VTY .cfg file and submit the log.

#7 Updated by benoit@girard.tf about 1 month ago

pespin wrote:

Which version of osmo-trx are you building? Please make sure you use osmo-trx.git master
Add "logging level set-all debug" under "log stderr" node in VTY .cfg file and submit the log.

I'm using "OsmoTRX version 1.1.1.13-94c5".

Here is the complete debug log:

Fri Sep 13 11:08:26 2019 DLGLOBAL <0004> telnet_interface.c:104 telnet at 127.0.0.1 4237
Fri Sep 13 11:08:26 2019 DLCTRL <000b> control_if.c:887 CTRL at 127.0.0.1 4236
Fri Sep 13 11:08:26 2019 DMAIN <0000> osmo-trx.cpp:480 [tid=1982337040] Config Settings
   Log Level............... 1
   Device args............. 
   TRX Base Port........... 5700
   TRX Address............. 127.0.0.1
   GSM BTS Address......... 127.0.0.1
   Channels................ 1
   Tx Samples-per-Symbol... 4
   Rx Samples-per-Symbol... 4
   EDGE support............ 0
   Extended RACH support... 0
   Reference............... 0
   C0 Filler Table......... 1
   Multi-Carrier........... 0
   Tuning offset........... 0
   RSSI to dBm offset...... 0
   Swap channels........... 0
   Tx Antennas............. 'BAND1'
   Rx Antennas............. 'LNAW'

Fri Sep 13 11:08:26 2019 DMAIN <0000> osmo-trx.cpp:436 [tid=1982337040] Setting SCHED_RR priority 18
Fri Sep 13 11:08:26 2019 DLGLOBAL <0004> rate_ctr.c:88 validating counter group 0x5faa0(trx:chan) with 6 counters
Fri Sep 13 11:08:26 2019 DDEV <0002> LMSDevice.cpp:54 [tid=1982337040] creating LMS device...
Fri Sep 13 11:08:26 2019 DDEV <0002> LMSDevice.cpp:141 [tid=1982337040] Opening LMS device..
Fri Sep 13 11:08:26 2019 DDEV <0002> LMSDevice.cpp:147 [tid=1982337040] Devices found: 1
Fri Sep 13 11:08:26 2019 DDEV <0002> LMSDevice.cpp:157 [tid=1982337040] Device [0]: LimeSDR-USB, media=USB 2.0, module=FX3, addr=1d50:6108, serial=0009060B00472237
Fri Sep 13 11:08:26 2019 DDEV <0002> LMSDevice.cpp:166 [tid=1982337040] Using device[0]
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] Estimated reference clock 30.6586 MHz
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] Reference clock 30.72 MHz
Fri Sep 13 11:08:27 2019 DDEV <0002> LMSDevice.cpp:192 [tid=1982337040] Init LMS device
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] INT 158, FRAC 797354, DIV_LOCH 1, EN_DIV2_DIVPROG 0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] VCO 5000.00 MHz, RefClk 30.72 MHz
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] ICT_VCO: 180
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=64    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=96    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=112    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=120    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=124    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=126    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=127    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] Failed to lock
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=192    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=224    cmphl=2
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=240    cmphl=3
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=232    cmphl=3
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=228    cmphl=3
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=226    cmphl=2
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=227    cmphl=2
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] CSW: lowest=222, highest=227, selected=224
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] cmphl=2
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] VCOL : csw=224 tune ok
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] ICT_VCO: 180
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] TuneVCO(SXT) - VCO too high
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] VCOM : csw=0 tune fail
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] ICT_VCO: 180
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] TuneVCO(SXT) - VCO too high
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] VCOH : csw=0 tune fail
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] Selected: VCOL
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] INT 152, FRAC 262144, DIV_LOCH 1, EN_DIV2_DIVPROG 0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] VCO 4800.00 MHz, RefClk 30.72 MHz
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] ICT_VCO: 180
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=64    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=96    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=112    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=120    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=124    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=126    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=127    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] Failed to lock
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=192    cmphl=0
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=224    cmphl=3
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=208    cmphl=3
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=200    cmphl=2
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=204    cmphl=3
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=202    cmphl=2
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw=203    cmphl=2
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] CSW: lowest=200, highest=203, selected=201
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] cmphl=2
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] VCOL : csw=201 tune ok
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] ICT_VCO: 180
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] TuneVCO(SXR) - VCO too high
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] VCOM : csw=0 tune fail
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] ICT_VCO: 180
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] TuneVCO(SXR) - VCO too high
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] VCOH : csw=0 tune fail
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] Selected: VCOL
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] INT 77, FRAC 131072, DIV_OUTCH_CGEN 14
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] VCO 2400.00 MHz, RefClk 30.72 MHz
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw 172; interval [169, 176]
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] INT 77, FRAC 131072, DIV_OUTCH_CGEN 14
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] VCO 2400.00 MHz, RefClk 30.72 MHz
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] csw 172; interval [169, 175]
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] M=195, N=3, Fvco=1300.000 MHz
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] M=195, N=3, Fvco=1300.000 MHz
Fri Sep 13 11:08:27 2019 DDEV <0002> LMSDevice.cpp:205 [tid=1982337040] Setting Internal clock reference
Fri Sep 13 11:08:27 2019 DLMS <0003> LMSDevice.cpp:94 [tid=1982337040] Invalid frequency value.
Fri Sep 13 11:08:27 2019 DDEV <0002> LMSDevice.cpp:254 [tid=1982337040] Error in LMS open, closing: Invalid frequency value.
Fri Sep 13 11:08:27 2019 DMAIN <0000> osmo-trx.cpp:514 [tid=1982337040] Failed to create radio device
Fri Sep 13 11:08:27 2019 DMAIN <0000> osmo-trx.cpp:485 [tid=1982337040] Shutting down transceiver...
Fri Sep 13 11:08:27 2019 DDEV <0002> LMSDevice.cpp:65 [tid=1982337040] Closing LMS device

Thanks for your help!

#8 Updated by pespin about 1 month ago

Can you make sure you have your firmware updated in your LimeSDR device and try again? Run "LimeUtil --update"

#9 Updated by pespin about 1 month ago

As a comparison, here's my (working) output with LimeSDR-USB on my X86_64 laptop:

Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] Estimated reference clock 30.6587 MHz
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] Reference clock 30.72 MHz
Fri Sep 13 15:30:36 2019 DDEV <0002> LMSDevice.cpp:192 [tid=140387110432064] Init LMS device
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] INT 77, FRAC 131072, DIV_OUTCH_CGEN 14
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] VCO 2400.00 MHz, RefClk 30.72 MHz
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] csw 168; interval [165, 172]
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] INT 77, FRAC 131072, DIV_OUTCH_CGEN 14
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] VCO 2400.00 MHz, RefClk 30.72 MHz
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] csw 168; interval [165, 172]
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] M=195, N=3, Fvco=1300.000 MHz
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] M=195, N=3, Fvco=1300.000 MHz
Fri Sep 13 15:30:36 2019 DDEV <0002> LMSDevice.cpp:205 [tid=140387110432064] Setting Internal clock reference
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] Disabling external reference clock
Fri Sep 13 15:30:36 2019 DDEV <0002> LMSDevice.cpp:99 [tid=140387110432064] Sample Rate: Min=100000 Max=6.144e+07 Step=6.9526e-310
Fri Sep 13 15:30:36 2019 DDEV <0002> LMSDevice.cpp:228 [tid=140387110432064] Setting sample rate to 1.08333e+06 4
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] INT 71, FRAC 233016, DIV_OUTCH_CGEN 7
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] VCO 2218.67 MHz, RefClk 30.72 MHz
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] csw 128; interval [124, 132]
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] INT 71, FRAC 233016, DIV_OUTCH_CGEN 7
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] VCO 2218.67 MHz, RefClk 30.72 MHz
Fri Sep 13 15:30:36 2019 DLMS <0003> LMSDevice.cpp:94 [tid=140387110432064] csw 128; interval [124, 132]
Fri Sep 13 15:30:36 2019 DDEV <0002> LMSDevice.cpp:234 [tid=140387110432064] Sample Rate: Host=1.08333e+06 RF=3.46667e+07
Fri Sep 13 15:30:36 2019 DDEV <0002> LMSDevice.cpp:190 [tid=140387110432064][chan=0] Configuring Tx antenna BAND1
Fri Sep 13 15:30:36 2019 DDEV <0002> LMSDevice.cpp:200 [tid=140387110432064][chan=0] Configuring Rx antenna LNAW
Fri Sep 13 15:30:36 2019 DMAIN <0000> LMSDevice.cpp:206 [tid=140387110432064] Antennas configured successfully
Fri Sep 13 15:30:36 2019 DMAIN <0000> Threads.cpp:117 [tid=140387028018944] Thread 140387028018944 (task 32405) set name: CtrlService0
Fri Sep 13 15:30:36 2019 DMAIN <0000> osmo-trx.cpp:528 [tid=140387110432064] -- Transceiver active with 1 channel(s)

Looks like a problem specific to your device? Perhaps try running osmo-trx+LimeSuite on another system/architecture to discard related differences? Maybe try disabling neon.

#10 Updated by benoit@girard.tf about 1 month ago

pespin wrote:

As a comparison, here's my (working) output with LimeSDR-USB on my X86_64 laptop:
[...]

Looks like a problem specific to your device? Perhaps try running osmo-trx+LimeSuite on another system/architecture to discard related differences? Maybe try disabling neon.

Thanks for your output, I'm starting to suspect a more general hardware trouble too ..

Juste to make sure: it seems my VCO is really high (5000MHz) comparing to yours 2400MHz.
It seems that VCO is automatically setup using some kind of autocalibration and I guess this can be caused by invalid antenna.

Can you just tell me which antenna ports you are using ?
In my setup I'm using TX1/L and RX1/W

(I'm mostly guessing here, I might be totally wrong.. :) )

#11 Updated by pespin about 1 month ago

Yes, using same ones (Tx=BAND1, Rx=LNAW).

#12 Updated by roh about 1 month ago

i'd also like to know how the output of
- LimeQuickTest
- LimeUtil --make

i suspect you have old/mismatching gateware and not the most recent one delivered with limesuite 19.

pespin: what do you think about dumping the versionstrings of lms, hw, fw and gw on startup of osmo-trx-lms?

#13 Updated by benoit@girard.tf 27 days ago

roh wrote:

i'd also like to know how the output of
- LimeQuickTest
- LimeUtil --make

i suspect you have old/mismatching gateware and not the most recent one delivered with limesuite 19.

pespin: what do you think about dumping the versionstrings of lms, hw, fw and gw on startup of osmo-trx-lms?

LimeQuickTest:

[ TESTING STARTED ]
->Start time: Wed Sep 25 09:05:52 2019

->Device: LimeSDR-USB, media=USB 3.0, module=FX3, addr=1d50:6108, serial=0009060B00472237
  Serial Number: 0009060B00472237

[ Clock Network Test ]
->FX3 GPIF clock test
  Test results: 44076; 47832; 51588 - PASSED
->Si5351C test
  CLK0: 17554 / 17554 - PASSED
  CLK1: 17554 / 17554 - PASSED
  CLK2: 17554 / 17554 - PASSED
  CLK3: 17554 / 17554 - PASSED
  CLK4: 17554 / 17554 - PASSED
  CLK5: 17554 / 17554 - PASSED
  CLK6: 17554 / 17554 - PASSED
->ADF4002 Test
  Result: 10 - PASSED
->VCTCXO test
  Results : 5112922 (min); 5113055 (max) - PASSED
->Clock Network Test PASSED

[ FPGA EEPROM Test ]
->Read EEPROM
->Read data: 11 02 15 11 02 15 03
->FPGA EEPROM Test PASSED

[ LMS7002M Test ]
->Perform Registers Test
->External Reset line test
  Reg 0x20: Write value 0xFFFD, Read value 0xFFFD
  Reg 0x20: value after reset 0x0FFFF
->LMS7002M Test PASSED

[ RF Loopback Test ]
Note: The test should be run without anything connected to RF ports
->Configure LMS
->Run Tests (TX_2-> LNA_L):
  CH0 (SXR=800.0MHz, SXT=805.0MHz): Result:(-14.8 dBFS, 5.00 MHz) - PASSED
  CH1 (SXR=800.0MHz, SXT=805.0MHz): Result:(-17.6 dBFS, 5.00 MHz) - PASSED
->Run Tests (TX_1 -> LNA_W):
  CH0 (SXR=1800.0MHz, SXT=1805.0MHz): Result:(-23.3 dBFS, 5.00 MHz) - FAILED
  CH1 (SXR=1800.0MHz, SXT=1805.0MHz): Result:(-26.0 dBFS, 5.00 MHz) - FAILED
->Run Tests (TX_2-> LNA_H):
  CH0 (SXR=2500.0MHz, SXT=2505.0MHz): Result:(-16.6 dBFS, 5.00 MHz) - PASSED
  CH1 (SXR=2500.0MHz, SXT=2505.0MHz): Result:(-16.3 dBFS, 5.00 MHz) - PASSED
->RF Loopback Test FAILED

=> Board tests FAILED <=

Elapsed time: 2.67 seconds

LimeUtil --make:

LimeUtil --make
Make device 
  Device name: LimeSDR-USB
  Expansion name: UNSUPPORTED
  Firmware version: 4
  Hardware version: 4
  Protocol version: 1
  Gateware version: 2
  Gateware revision: 21
  Gateware target: LimeSDR-USB
  Serial number: 0x9060b00472237
  Free connection... OK

#14 Updated by benoit@girard.tf 27 days ago

Hold on !

I did pull osmo-trx-lms this morning and rebuilt all and .. it works.

Don't ask me why:

osmo-trx-lms -C osmo-trx-lms.cfg 
Info: SSE3 support compiled in and supported by CPU
Info: SSE4.1 support compiled in and supported by CPU
Wed Sep 25 09:22:52 2019 DLGLOBAL <0004> telnet_interface.c:104 telnet at 127.0.0.1 4237
Wed Sep 25 09:22:52 2019 DLCTRL <000b> control_if.c:887 CTRL at 127.0.0.1 4236
Wed Sep 25 09:22:52 2019 DMAIN <0000> osmo-trx.cpp:480 [tid=139882422165888] Config Settings
   Log Level............... 1
   Device args............. 
   TRX Base Port........... 5700
   TRX Address............. 127.0.0.1
   GSM BTS Address......... 127.0.0.1
   Channels................ 1
   Tx Samples-per-Symbol... 4
   Rx Samples-per-Symbol... 4
   EDGE support............ 0
   Extended RACH support... 0
   Reference............... 0
   C0 Filler Table......... 1
   Multi-Carrier........... 0
   Tuning offset........... 0
   RSSI to dBm offset...... 0
   Swap channels........... 0
   Tx Antennas............. 'BAND1'
   Rx Antennas............. 'LNAW'

Wed Sep 25 09:22:52 2019 DMAIN <0000> osmo-trx.cpp:436 [tid=139882422165888] Setting SCHED_RR priority 18
Wed Sep 25 09:22:52 2019 DLGLOBAL <0004> rate_ctr.c:88 validating counter group 0x55589a2ef4c0(trx:chan) with 6 counters
Wed Sep 25 09:22:52 2019 DDEV <0002> LMSDevice.cpp:54 [tid=139882422165888] creating LMS device...
Wed Sep 25 09:22:52 2019 DDEV <0002> LMSDevice.cpp:143 [tid=139882422165888] Opening LMS device..
Wed Sep 25 09:22:52 2019 DDEV <0002> LMSDevice.cpp:149 [tid=139882422165888] Devices found: 1
Wed Sep 25 09:22:52 2019 DDEV <0002> LMSDevice.cpp:159 [tid=139882422165888] Device [0]: LimeSDR-USB, media=USB 3.0, module=FX3, addr=1d50:6108, serial=0009060B00472237
Wed Sep 25 09:22:52 2019 DDEV <0002> LMSDevice.cpp:168 [tid=139882422165888] Using device[0]
Wed Sep 25 09:22:52 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] Estimated reference clock 30.6586 MHz
Wed Sep 25 09:22:52 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] Reference clock 30.72 MHz
Wed Sep 25 09:22:52 2019 DDEV <0002> LMSDevice.cpp:194 [tid=139882422165888] Init LMS device
Wed Sep 25 09:22:52 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] INT 77, FRAC 131072, DIV_OUTCH_CGEN 14
Wed Sep 25 09:22:52 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] VCO 2400.00 MHz, RefClk 30.72 MHz
Wed Sep 25 09:22:52 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] csw 172; interval [169, 175]
Wed Sep 25 09:22:52 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] INT 77, FRAC 131072, DIV_OUTCH_CGEN 14
Wed Sep 25 09:22:52 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] VCO 2400.00 MHz, RefClk 30.72 MHz
Wed Sep 25 09:22:52 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] csw 172; interval [169, 175]
Wed Sep 25 09:22:52 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] M=195, N=3, Fvco=1300.000 MHz
Wed Sep 25 09:22:52 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] M=195, N=3, Fvco=1300.000 MHz
Wed Sep 25 09:22:52 2019 DDEV <0002> LMSDevice.cpp:207 [tid=139882422165888] Setting Internal clock reference
Wed Sep 25 09:22:52 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] Disabling external reference clock
Wed Sep 25 09:22:53 2019 DDEV <0002> LMSDevice.cpp:101 [tid=139882422165888] Sample Rate: Min=100000 Max=6.144e+07 Step=0
Wed Sep 25 09:22:53 2019 DDEV <0002> LMSDevice.cpp:230 [tid=139882422165888] Setting sample rate to 1.08333e+06 4
Wed Sep 25 09:22:53 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] INT 71, FRAC 233016, DIV_OUTCH_CGEN 7
Wed Sep 25 09:22:53 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] VCO 2218.67 MHz, RefClk 30.72 MHz
Wed Sep 25 09:22:53 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] csw 134; interval [131, 137]
Wed Sep 25 09:22:53 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] INT 71, FRAC 233016, DIV_OUTCH_CGEN 7
Wed Sep 25 09:22:53 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] VCO 2218.67 MHz, RefClk 30.72 MHz
Wed Sep 25 09:22:53 2019 DLMS <0003> LMSDevice.cpp:96 [tid=139882422165888] csw 134; interval [131, 137]
Wed Sep 25 09:22:53 2019 DDEV <0002> LMSDevice.cpp:236 [tid=139882422165888] Sample Rate: Host=1.08333e+06 RF=3.46667e+07
Wed Sep 25 09:22:53 2019 DDEV <0002> LMSDevice.cpp:198 [tid=139882422165888][chan=0] Configuring Tx antenna BAND1
Wed Sep 25 09:22:53 2019 DDEV <0002> LMSDevice.cpp:208 [tid=139882422165888][chan=0] Configuring Rx antenna LNAW
Wed Sep 25 09:22:53 2019 DMAIN <0000> LMSDevice.cpp:214 [tid=139882422165888] Antennas configured successfully
Wed Sep 25 09:22:53 2019 DMAIN <0000> Threads.cpp:117 [tid=139882395920128] Thread 139882395920128 (task 7455) set name: CtrlService0
Wed Sep 25 09:22:53 2019 DMAIN <0000> osmo-trx.cpp:528 [tid=139882422165888] -- Transceiver active with 1 channel(s)

I don't know if you did fix something since my last pull but.. :)

Thanks a lot for your support !

#15 Updated by benoit@girard.tf 27 days ago

I did pull an older version of osmo-trx-lms and this one works too.

My guess is that when I build osmo-trx-lms initially I had an older version of LimeUtil installed.
Since then, I did update LimeUtil and now rebuilding osmo-trx-lms did the trick.

#16 Updated by roh 20 days ago

  • Status changed from Feedback to Resolved
  • % Done changed from 0 to 100

seems fixed already.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)