Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mahtin opened this issue Jul 5, 2024 · 0 comments
Open
Assignees

Comments

@mahtin
Copy link

mahtin commented Jul 5, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants