¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Serial protocol struggle


 

OK for simple SWR? maybe I can skip the calibration part as?a PHASE I
add that as PHASE II
Whats 5-10% on SWR right?

working on a CommandLine byte send recv right now
step 0.1 make it talk? !

*Sent:* Thursday, October 29, 2020 at 5:28 PM
*From:* "Jim Lux" <jimlux@...>
*To:* [email protected]
*Subject:* Re: [nanovna-users] Serial protocol struggle
On 10/29/20 5:17 PM, hwalker wrote:
On Thu, Oct 29, 2020 at 04:12 PM, Ed March wrote:

Wow ?Thank you 1 of?11 it's already makes sense ! Rather exciting now !
==============================================

One thing you may not find so exciting is that that the V2 does not transfer corrected data. This was a deliberate decision on the part of the developer. It means that your program will have to perform its own SOLT calibration and save and apply the calibration data to the raw values received from the V2.

Writing the routines for performing and saving SOLT calibrations is not trivial and requires some understanding of the underlying math. There are currently no examples written in C# that I can recall. NanoVNA-Saver has a Python example and Erik's TAPR application has a C example. I have a fair understanding of Python and the NanoVNA-Saver calibration code was still Greek to me.

- Herb

The calibration code for the NanoVNA itself is in regular old c.

main.c is where you want to look.

static void eterm_set(int term, float re, float im)
{
int i;
for (i = 0; i < sweep_points; i++) {
cal_data[term][i][0] = re;
cal_data[term][i][1] = im;
}
}

is where it starts..

Join [email protected] to automatically receive all group messages.