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

Can I change baud rate? #77

Open
daehwa opened this issue Oct 20, 2021 · 2 comments
Open

Can I change baud rate? #77

daehwa opened this issue Oct 20, 2021 · 2 comments

Comments

@daehwa
Copy link

daehwa commented Oct 20, 2021

Hi,

I am using nanoVNA V2.
When I see the built-in display of the VNA, it seems to sweep all frequencies pretty quickly (though I don't know how many data points it sweeps but the graphs look reasonable).

But when I try to get only 101 data points using serial port, it takes 1.1 sec per sweep.
I think the bottleneck comes from serial communication.
The VNA firmware is currently flushed at "baudrate=9600" (originally).

Is it possible to change the baud rate using code in this repository and is there anyone who successfully flush its baud rate?

I hope to see your advice!

Thanks.

@nanovna
Copy link
Contributor

nanovna commented Oct 21, 2021

This is correct, the sweep rate of the old hardware version is 100 point/s so it will take 1 second for a full sweep. There are newer hardware versions with faster sweep: https://nanorfe.com/nanovna-v2.html

@daehwa
Copy link
Author

daehwa commented Oct 28, 2021

Thank you so much for the quick response! Now I understand the bottleneck comes from the frequency sweep.

I have one more question. I want to know whether current protocol can sweep a few specific frequencies.

Specifically, if I need data from a few frequencies (for the purpose of compensating speed), and if the frequencies are not in an even step (e.g., four frequencies 0.7, 1.16, 2.0, 2.95GHz), is it possible to get return loss value of those frequencies?
When I look into the code, the protocol seems to sweep in a specific range with a specific step (in the _updateSweep method). But aforementioned four frequencies are not in an even step, so I should sweep the redundant range as well. If I try to repeatedly change the sweep range (i.e. use set_frequencies and set_sweep methods every loop), then I lose the speed.

Thank you for the helps!

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