LimeSuite icon indicating copy to clipboard operation
LimeSuite copied to clipboard

USB draw current to stays high after example's exit (which is not good)

Open mahtin opened this issue 7 months ago • 0 comments

Within the LimeSuite/src/examples/ folder the code that enables the TX or RX does not cleanly disable them after example code. finishes, hence not fully providing an good example of how to use the LimeSuite library.

This causes the USB draw current to stays high (+/- 1.8 Amps vs idle of 1.0 Amps on a LimeSDR Mini 2.0 in receive). This is not a good thing.

I recommend adding the following code near the end of appropriate examples.

>     if (LMS_EnableChannel(device, LMS_CH_TX, 0, false) != 0)
>         error();
>     if (LMS_EnableChannel(device, LMS_CH_RX, 0, false) != 0)
>         error();
> 

Files affected are: basicRX.cpp, dualRXTX.cpp, singleRX.cpp where code is needed. Yet in basicTX.cpp it's done correctly. For TX example it matters a lot more - obviously; but it's just as valid in others (because current draw).

mahtin avatar Jul 05 '24 17:07 mahtin