# OsmoTRX - Limesdr-Mini Clock

**URL:** <https://discourse.myriadrf.org/t/osmotrx-limesdr-mini-clock/7106>\
**Category:** General Discussion\
**Created:** [25 April 2021 21:10 UTC](https://discourse.myriadrf.org/t/osmotrx-limesdr-mini-clock/7106 "2021-04-25T21:10:19Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![KinsiFRAL](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@KinsiFRAL](https://discourse.myriadrf.org/u/KinsiFRAL)\
**Post date:** [25 April 2021 21:10 UTC](https://discourse.myriadrf.org/t/osmotrx-limesdr-mini-clock/7106/1 "2021-04-25T21:10:19Z")

</div>

Hello,

I stopped with Limesdr-Mini because with Osmo-trx it worked for a few minutes and then I had a bug.

I just understood that the problem is because of the Limesdr-Mini clock, is that correct ?

On the Osmocom website it is written :

> ### Using external clock reference
> 
> providing an external clock is tricky:  
> according to the spec from the clockchip used (ti LMK00105) the input signal needs to have “sharp rectangles 2V/ns or better”.  
> this is a limitation of the LimeSDR mini due to no extra pll chip being present, in contrast to the LimeSDR-USB.

If I order a Limesdr-Mini today, will the “Leobodnar - Mini Precision GPS Reference Clock” external clock fix the problem ? ([Mini Precision GPS Reference Clock : Leo Bodnar Electronics](http://www.leobodnar.com/shop/index.php?main_page=product_info&cPath=107&products_id=301))  
I’m looking for an external clock that can be powered by usb.

Normally, moving the resistance is enough ? In addition to putting the parameters in LimeSuite each time you start ?

That’s a lot of questions, sorry.

---

<div class="post-metadata">

**Author:** ![andrewback](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@andrewback](https://discourse.myriadrf.org/u/andrewback)\
**Post date:** [27 April 2021 14:15 UTC](https://discourse.myriadrf.org/t/osmotrx-limesdr-mini-clock/7106/2 "2021-04-27T14:15:33Z")

</div>

> [@KinsiFRAL](#):
>
> I stopped with Limesdr-Mini because with Osmo-trx it worked for a few minutes and then I had a bug.

What do you mean by “a bug”? Did the transceiver application crash/exit?

> [@KinsiFRAL](#):
>
> I just understood that the problem is because of the Limesdr-Mini clock, is that correct ?

I’ve seen OsmoTRX crash before due to general stability or performance errors and messages produced which might be interpreted to be a clock problem, when in fact it was to do with a bad build or configuration etc. We’ve used this fine without an external clock and just using the one onboard.

> [@KinsiFRAL](#):
>
> If I order a Limesdr-Mini today, will the “Leobodnar - Mini Precision GPS Reference Clock” external clock fix the problem ?

I’d imagine not if the problem is OsmoTRX crashing. If the issue is frequency accuracy/stability and handsets not being able to find the network or register, then perhaps, but I’d suspect a more fundamental problem.

Note also that you can use kalibrate-lms to calibrate the TCXO using an existing macro cell.

> **[GitHub - myriadrf/kalibrate-lms: Fork of Kalibrate GSM signal detector and...](https://github.com/myriadrf/kalibrate-lms)**
>
> Fork of Kalibrate GSM signal detector and clock frequency offset calculator with support for LimeSDR hardware - myriadrf/kalibrate-lms

This obviously isn’t as good as using a GPSDO, but should improve on frequency accuracy.

---

<div class="post-metadata">

**Author:** ![KinsiFRAL](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@KinsiFRAL](https://discourse.myriadrf.org/u/KinsiFRAL)\
**Post date:** [27 April 2021 19:48 UTC](https://discourse.myriadrf.org/t/osmotrx-limesdr-mini-clock/7106/3 "2021-04-27T19:48:05Z")

</div>

Thank you very much for your answer.

The problem was with OsmoTRX, for OpenBTS or OsmoBSC, NITB …

OsmoTRX works normally, phones register and make calls.  
But after a few minutes, OsmoTRX turns red and scrolls quickly. I lose the network and I have to restart everything.

I am on a pc in I7-8700k but on VMware. The construction is done correctly and so is the configuration. I don’t think of a fundamental problem.

I had not tried kalibrate-lms.

I had the LimeSDR and LimeSDR-Mini with the same problem. I now thought about the clock compared to what is written on the OsmoTRX site.

---

<div class="post-metadata">

**Author:** ![KinsiFRAL](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@KinsiFRAL](https://discourse.myriadrf.org/u/KinsiFRAL)\
**Post date:** [27 April 2021 20:48 UTC](https://discourse.myriadrf.org/t/osmotrx-limesdr-mini-clock/7106/4 "2021-04-27T20:48:28Z")

</div>

I have exactly the same problem as here :

[LimeSDR-Mini and osmo-trx not stable with OpenBTS - Applications / Cellular - MyriadRF Discourse](https://discourse.myriadrf.org/t/limesdr-mini-and-osmo-trx-not-stable-with-openbts/3382)

If you can help me understand the problem , I’ll buy a LimeSDR-Mini for further testing.

---

<div class="post-metadata">

**Author:** ![leased](https://avatars.discourse-cdn.com/v4/letter/l/5f8ce5/32.png) [@leased](https://discourse.myriadrf.org/u/leased)\
**Post date:** [29 April 2021 11:03 UTC](https://discourse.myriadrf.org/t/osmotrx-limesdr-mini-clock/7106/5 "2021-04-29T11:03:53Z")

</div>

The SDR realtime applications are not intended to run inside of virtual machines (except rare conditions). Try to use bare-metal Linux installation.

---

<div class="post-metadata">

**Author:** ![andrewback](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@andrewback](https://discourse.myriadrf.org/u/andrewback)\
**Post date:** [29 April 2021 15:09 UTC](https://discourse.myriadrf.org/t/osmotrx-limesdr-mini-clock/7106/6 "2021-04-29T15:09:25Z")

</div>

Exactly, we have run apps inside VMs before, but it’s generally a recipe for headaches.

---

<div class="post-metadata">

**Author:** ![KinsiFRAL](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@KinsiFRAL](https://discourse.myriadrf.org/u/KinsiFRAL)\
**Post date:** [30 April 2021 08:45 UTC](https://discourse.myriadrf.org/t/osmotrx-limesdr-mini-clock/7106/7 "2021-04-30T08:45:16Z")

</div>

Thanks a lot for your help.

VMware is mandatory for my tests.

I will try to do the test with another SDR.

---

<div class="post-metadata">

**Author:** ![andrewback](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@andrewback](https://discourse.myriadrf.org/u/andrewback)\
**Post date:** [30 April 2021 10:35 UTC](https://discourse.myriadrf.org/t/osmotrx-limesdr-mini-clock/7106/8 "2021-04-30T10:35:42Z")

</div>

It’s going to be problematic. With SDR workloads it’s not uncommon to run a real-time Linux kernel and do everything you can to minimise latency. This is in no way specific to LimeSDR hardware and you’ll find application notes detailing such steps for other vendors and in SDR software projects. Running an IT grade hypervisor is working to do the exact opposite.

There are VM solutions which would be better suited, but they are very different to VMware and typically allocate resources in a static manner upon start-up, where changes may even mean recompilation. Dynamic resource allocation and deterministic behaviour do not sit well together.

---

<div class="post-metadata">

**Author:** ![KinsiFRAL](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@KinsiFRAL](https://discourse.myriadrf.org/u/KinsiFRAL)\
**Post date:** [30 April 2021 11:34 UTC](https://discourse.myriadrf.org/t/osmotrx-limesdr-mini-clock/7106/9 "2021-04-30T11:34:43Z")

</div>

Okay.

Thank you very much for this valuable information.

I’ll do some research.

---

<div class="post-metadata">

**Author:** ![andrewback](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@andrewback](https://discourse.myriadrf.org/u/andrewback)\
**Post date:** [1 May 2021 11:10 UTC](https://discourse.myriadrf.org/t/osmotrx-limesdr-mini-clock/7106/10 "2021-05-01T11:10:47Z")

</div>

I haven’t got round to trying them yet, but promising candidates for providing a real-time VM that may be suited to running SDR workloads include:

> **[Home - Project ACRN™](https://projectacrn.org/)**
>
> ..Read more

> **[siemens/jailhouse](https://github.com/siemens/jailhouse)**
>
> Linux-based partitioning hypervisor. Contribute to siemens/jailhouse development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![KinsiFRAL](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@KinsiFRAL](https://discourse.myriadrf.org/u/KinsiFRAL)\
**Post date:** [1 May 2021 11:47 UTC](https://discourse.myriadrf.org/t/osmotrx-limesdr-mini-clock/7106/11 "2021-05-01T11:47:24Z")

</div>

Very very good.

Thank you so much.
