# LimeSDR usb Problem

**URL:** <https://discourse.myriadrf.org/t/limesdr-usb-problem/3078>\
**Category:** LimeSDR\
**Created:** [28 July 2018 16:26 UTC](https://discourse.myriadrf.org/t/limesdr-usb-problem/3078 "2018-07-28T16:26:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![KarlL](https://avatars.discourse-cdn.com/v4/letter/k/dfb087/32.png) [@KarlL](https://discourse.myriadrf.org/u/KarlL)\
**Post date:** [1 August 2018 00:45 UTC](https://discourse.myriadrf.org/t/limesdr-usb-problem/3078/5 "2018-08-01T00:45:21Z")

</div>

I also often see this problem, except it’s fixed as soon as I unplug then replug the LimeSDR. Sometimes I also reupload the FPGA and FX3, which may fix the problem (this is more convenient as I’m not next to the Lime).

I have a program that receives on 2 channels using the SoapySDR C API. Everything usually works fine. As I’m debugging I quite often kill the program and thus I don’t always clean things properly. Then after some time, when starting the program, I see the following after getting the device:

```
[INFO] Reference clock 30.72 MHz
[INFO] Device name: LimeSDR-USB
[INFO] Reference: 3.072e+07 MHz
e[1me[31m[ERROR] SetFrequencySXT(1250 MHz) - cannot deliver frequencye[0m
[INFO] LMS7002M calibration values caching Disable
e[1me[31m[ERROR] TuneVCO(CGEN) - failed to lock (cmphl!=0)e[0m
e[1me[31m[ERROR] SetFrequencyCGEN(80 MHz) failede[0m
e[1me[31m[ERROR] TuneVCO(CGEN) - failed to lock (cmphl!=0)e[0m
e[1me[31m[ERROR] SetFrequencyCGEN(440 MHz) failede[0m

```

When I then try to set the frequency with `SoapySDRDevice_setFrequencyComponent` using `RF` or directly `SoapySDRDevice_setFrequency` I get the same error

```
e[1me[31m[ERROR] SetFrequencySXR(2450 MHz) - cannot deliver frequencye[0m

```

but the call does not return an error (it returns `0`).

Same when calling again `SoapySDRDevice_setFrequencyComponent` but with `BB`, I get an error but the call still doesn’t return an error

```
e[1me[31m[ERROR] SetNCOFrequency(index = 0) - Frequency(21 MHz) out of range [0-3.84249) MHze[0m

```

When opening LimeSuite I would also often see lots of `ERROR: Write(64 bytes) failed`. Right now LimeSuite is being very slow trying to contact the LimeSDR I guess. I ended up killing LimeSuite, and when retrying my program I get

```
e[1me[31m[ERROR] ConnectionSTREAM: Failed to open devicee[0m
e[1me[31m[ERROR] Failed to open devicee[0m
e[1me[31m[ERROR] connection is not opene[0m
e[1me[31m[ERROR] Write(64 bytes) failede[0m
e[1me[31m[ERROR] connection is not opene[0m
e[1me[31m[ERROR] Write(64 bytes) failede[0m
e[1me[31m[ERROR] Failed to open. Device is busy.e[0m

```

I’m using a USB3 cable, Windows 10. LED 1 blinking red, 4 off, 5 red (USB status), 8 green. I did not check the status when the Lime was still accessible though, I’ll try remembering to check it next time it happens.

After unplugging and replugging, the 5 is now green and everything is working normally.

There’s been several mentions of such issue before, but I’m not sure if it’s connected:

- Error on an unsupported v1.2 board [[Resolved] SetFrequencySXR cannot deliver frequency, tune fail (LimeSDR-USB v1.2s)](https://discourse.myriadrf.org/t/resolved-setfrequencysxr-cannot-deliver-frequency-tune-fail-limesdr-usb-v1-2s/2157?u=karll)
- Error as the FPGA wasn’t programmed [ERROR:SetFrequencySXR - cannot deliver frequency](https://discourse.myriadrf.org/t/error-setfrequencysxr-cannot-deliver-frequency/1722?u=karll)
- Calibration works at some frequencies but not others [SetFrequencySXR(782 MHz) - cannot deliver frequency](https://discourse.myriadrf.org/t/setfrequencysxr-782-mhz-cannot-deliver-frequency/2144?u=karll)

---

_[View the full topic](https://discourse.myriadrf.org/t/limesdr-usb-problem/3078)._
