Dc offset register access and improved debug output#11
Conversation
mirisdr_set_dc_raw() and miriget_dc_raw(). - Improve debug output: better human readability. - Update of README.md with library description. - Improve accuracy of reported LNA gain.
|
I have no idea why I'm not getting notifications for PRs on my own projects, that's ridiculous. Peter, I'd be happy to make you a maintainer, as I'm quite busy these days and some of these changes look sound. One needs to be quite careful not to make the algorithm even worse. There are multiple separate (and quite extensive) changes in this PR. I mostly care about compatibility with SDRPlusPlus and SoapyMiri. |
|
Erik, Thanks for your trust. I do not want to force any changes on your repository. And I acknowledge that you depend on this repository for using it with SDRPlusPlus and SoapyMiri for your purposes (on probably multiple platforms). So I'm going to break my PR into smaller pieces and separate out the update of the gain reading, so we can both review that change. The other modifications should not change the original behavior (besides the in my view better human readable debug messages) and the addition of a new interface function to get raw control on the DC-offset register settings on the MSi001. But maybe that new interface is not ideal - I had hoped for a discussion. As I currently don't use SDRPlusPlus and typically don't use the radio via Soapy, it would be hard for me to spot any regressions. Even if I would use both regularly, your use-case and my use-case are probably quite different. So that would not guarantee anything. Furthermore I'm very ignorant to Windows, Mac, and Android since I'm only using Linux. Another issue is the naming and version numbering of the library. I don't see a clear strategy. As indicated in the Debian related PR, the major version number might be 5 to avoid conflicts with f4exb/libmirisdr-4. The underlying issue is, that both libraries (yours and Edouard's) finally install as On the other hand, you started already with version tags, latest is v1.1.2, which (ideally?) should install the library as I don't know how the library naming and versioning issue is handled on the other platforms. TL;DR Best regards, |
The updated gain distribution algorithm from the Jul 25, 2024 commit has been removed. That needs further discussion on what might be optimal. There is a tradeoff to be made between intermodulation and low noise figure. I'd assume that a low noise figure is less important in the "AM"-modes below 50 MHz. Therefore the algorithm could depend on RX frequency.