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

Interpreting KiwiSDRStream Waterfall Stream when Zoom is 0 vs Zoom 1 through 4 #119

Open
mrzachhigginsofficial opened this issue Oct 17, 2022 · 2 comments

Comments

@mrzachhigginsofficial
Copy link

Summary: The waterfall data stream is different at zoom 0 than it is at zoom 1-4 and I don't know how to interpret it when zoom=0.


I am trying to utilize the KiwiSDRStream class to receive the entire frequency span waterfall data stream (0 to 30 MHz) and plot it in a pg.plotwidget in real-time.

Example of my progress so far.
image

However, zoom 1 appears to be half of the freq span, not 0 to 30 MHz. I verified visually by comparing the wf from the web UI to the screenshot

image

When I set the zoom to 0, I get a completely different type of data stream with values between -32768 and +32768 (assuming hz) and is 2038 bytes in length (after unpacking) using the KiwiSDRStream class (as mentioned above). While inconvenient, since the length is different and I'm not doing any interpolation yet, I have to reinitialize the entire image in my graph. Also, I can't appear to find the right color map to display this data (sample results below).

image

Can you provide any insights as to what I should expect to compute differently between zoom 0 and 1-4? I originally assumed that these data streams should be the same, but it appears they are not.

Really cool library, thank you for sharing with the world. Any help you can provide would be really appreciated! Thanks!

@jks-prv
Copy link
Owner

jks-prv commented Oct 19, 2022

The current version of this repo has a working option to create a realtime, appending waterfall .png file. Use the --log-level=debug option to compare the API commands sent to the Kiwi with your code, particularly SET zoom=%d cf=%f

@jks-prv
Copy link
Owner

jks-prv commented Oct 19, 2022 via email

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