LimeNET micro clock source

Hi everyone,
recently I’ve got a LimeNET micro to play with simple cellular networks. I was trying to spawn a basic GSM base station with Osmocom GSM stack when I got an error about clock source.
Do I need to use an external clock source? For lab testing (t<30’) the internal clock should work fine.

$ sudo osmo-trx-lms
% 'rt-prio 18' is deprecated, use 'policy rr 18' under 'sched' node instead
Sat Jun 12 10:00:30 2021 DLGLOBAL <0008> telnet_interface.c:104 Available via telnet 127.0.0.1 4237
Sat Jun 12 10:00:30 2021 DLCTRL <000f> control_if.c:887 CTRL at 127.0.0.1 4236
Sat Jun 12 10:00:30 2021 DMAIN <0000> osmo-trx.cpp:563 Config Settings
   Log Level............... 0
   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
   Filler Burst Type....... Empty bursts
   Filler Burst TSC........ 0
   Filler Burst RACH Delay. 0
   Multi-Carrier........... 0
   LO freq. offset......... 0
   RSSI to dBm offset...... 0 (relative)
   Swap channels........... 0
   Tx Antennas............. 'BAND1'
   Rx Antennas............. 'LNAW'

Sat Jun 12 10:00:30 2021 DMAIN <0000> osmo-trx.cpp:481 Setting SCHED_RR priority 18. This setting is DEPRECATED, please use 'policy rr 18' under the 'sched' VTY node instead.
Sat Jun 12 10:00:30 2021 DDEV <0005> LMSDevice.cpp:140 creating LMS device...
Sat Jun 12 10:00:30 2021 DDEV <0005> LMSDevice.cpp:272 Opening LMS device..
Sat Jun 12 10:00:30 2021 DDEV <0005> LMSDevice.cpp:278 Devices found: 1
Sat Jun 12 10:00:30 2021 DDEV <0005> LMSDevice.cpp:288 Device [0]: LimeNET-Micro, media=USB 2.0, module=FT601, addr=24607:1027, serial=005839EC8507E7
Sat Jun 12 10:00:30 2021 DDEV <0005> LMSDevice.cpp:297 Using device[0]
Sat Jun 12 10:00:30 2021 DDEVDRV <0006> LMSDevice.cpp:187 Reference clock 30.72 MHz
Sat Jun 12 10:00:30 2021 DDEV <0005> LMSDevice.cpp:126 Device identified as LimeNET-Micro
Sat Jun 12 10:00:30 2021 DDEV <0005> LMSDevice.cpp:324 Init LMS device
Sat Jun 12 10:00:31 2021 DDEV <0005> LMSDevice.cpp:332 Setting Internal clock reference
Sat Jun 12 10:00:31 2021 DDEV <0005> LMSDevice.cpp:482 Device type LimeNET-Micro doesn't support internal reference clock
Sat Jun 12 10:00:31 2021 DDEV <0005> LMSDevice.cpp:377 Error in LMS open, closing: 
Sat Jun 12 10:00:31 2021 DMAIN <0000> osmo-trx.cpp:597 Failed to create radio device
Sat Jun 12 10:00:31 2021 DMAIN <0000> osmo-trx.cpp:568 Shutting down transceiver...
Sat Jun 12 10:00:31 2021 DDEV <0005> LMSDevice.cpp:158 Closing LMS device

Reference guide: https://lucasteske.medium.com/creating-your-own-gsm-network-with-limesdr-1935bac257f4

That’s strange. It’s a while since I’ve run this up on a LimeNET Micro, but it should work and you absolutely should not require an external clock, as it has an integrated GPS disciplined OCXO.

You could try setting in the osmo-trx-lms config file:

clock-ref external

Just to see if it it has somehow been inverted and treats the GPSDO as external.

I see also that you have raised an issue on the Osmocom tracker, so hopefully someone will respond there.

I asked in osmocom chat and a moderator suggested to open an issue.
By setting the clock to external, do I need to provide an external TTL signal?

I successfully get most of the osmo stack to run on the LimeNET Micro by using this thread Osmo-bsc and OpenBSC on rPi4 with Limesdr Ubuntu Server 20.04 LTS

I tried to run osmo-trx-lms using the config files here https://github.com/work423/limesdr-mini
yet I still get an error, this time for antenna configuration.

Mon Jun 14 22:12:51 2021 DLSTATS <000d> stats.c:207 Stats timer started with interval 5 sec
Mon Jun 14 22:12:51 2021 DLGLOBAL <0004> telnet_interface.c:104 Available via telnet 127.0.0.1 4237
Mon Jun 14 22:12:51 2021 DLCTRL <000b> control_if.c:887 CTRL at 127.0.0.1 4236
Mon Jun 14 22:12:51 2021 DMAIN <0000> osmo-trx.cpp:480 [tid=281473274286096] 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......... 2
   Multi-Carrier........... 0
   Tuning offset........... 0
   RSSI to dBm offset...... 0
   Swap channels........... 0
   Tx Antennas............. 'BAND1'
   Rx Antennas............. 'LNAW'

Mon Jun 14 22:12:51 2021 DMAIN <0000> osmo-trx.cpp:436 [tid=281473274286096] Setting SCHED_RR priority 18
Mon Jun 14 22:12:51 2021 DDEV <0002> LMSDevice.cpp:54 [tid=281473274286096] creating LMS device...
Mon Jun 14 22:12:51 2021 DDEV <0002> LMSDevice.cpp:141 [tid=281473274286096] Opening LMS device..
Mon Jun 14 22:12:51 2021 DDEV <0002> LMSDevice.cpp:147 [tid=281473274286096] Devices found: 1
Mon Jun 14 22:12:51 2021 DDEV <0002> LMSDevice.cpp:157 [tid=281473274286096] Device [0]: LimeNET-Micro, media=USB 2.0, module=FT601, addr=24607:1027, serial=005839EC8507E7
Mon Jun 14 22:12:51 2021 DDEV <0002> LMSDevice.cpp:166 [tid=281473274286096] Using device[0]
Mon Jun 14 22:12:51 2021 DLMS <0003> LMSDevice.cpp:94 [tid=281473274286096] Reference clock 30.72 MHz
Mon Jun 14 22:12:51 2021 DDEV <0002> LMSDevice.cpp:192 [tid=281473274286096] Init LMS device
Mon Jun 14 22:12:52 2021 DDEV <0002> LMSDevice.cpp:99 [tid=281473274286096] Sample Rate: Min=100000 Max=3.072e+07 Step=1.39067e-309
Mon Jun 14 22:12:52 2021 DDEV <0002> LMSDevice.cpp:228 [tid=281473274286096] Setting sample rate to 1.08333e+06 4
Mon Jun 14 22:12:52 2021 DDEV <0002> LMSDevice.cpp:234 [tid=281473274286096] Sample Rate: Host=1.08333e+06 RF=3.46667e+07
Mon Jun 14 22:12:52 2021 DDEV <0002> LMSDevice.cpp:487 [tid=281473274286096][chan=0] Invalid Rx Antenna
Mon Jun 14 22:12:52 2021 DMAIN <0000> LMSDevice.cpp:205 [tid=281473274286096] Failed configuring channel 0 with antenna LNAW
Mon Jun 14 22:12:52 2021 DDEV <0002> LMSDevice.cpp:241 [tid=281473274286096] LMS antenna setting failed
Mon Jun 14 22:12:52 2021 DDEV <0002> LMSDevice.cpp:254 [tid=281473274286096] Error in LMS open, closing: 
Mon Jun 14 22:12:52 2021 DMAIN <0000> osmo-trx.cpp:514 [tid=281473274286096] Failed to create radio device
Mon Jun 14 22:12:52 2021 DMAIN <0000> osmo-trx.cpp:485 [tid=281473274286096] Shutting down transceiver...
Mon Jun 14 22:12:52 2021 DDEV <0002> LMSDevice.cpp:65 [tid=281473274286096] Closing LMS device

https://wiki.myriadrf.org/LimeNET-Micro_v2.1_hardware_description#RF_transceiver

I’m sorry I still don’t get what’s wrong in the configuration file
I tried different channels but apparently it only spins with channel 0, while giving the error above.

stats interval 5
!
line vty
 no login
!
trx
 bind-ip 127.0.0.1
 remote-ip 127.0.0.1
 rx-sps 4
 tx-sps 4
 rt-prio 18
 multi-arfcn disable
 swap-channels disable
 egprs disable
 chan 0
  rx-path LNAW
  tx-path BAND1

The linked diagram shows than LMS7002M LNAW ports are not connected.

You’ve tried using LNAL or LNAH? As described here:

https://osmocom.org/projects/osmotrx/wiki/LimeSDR_Family#LimeNet-Micro

?

1 Like