NanoVNA V2 / Forum

Note: this page is a mirror of https://groups.io/g/NanoVNAV2.
Click here to join and see most recent posts.

For self i made firmware for V2, it contain most features from H/H4


DiSlord 2021/04/04 09:17

I try port most code from H/H4 (not finish, but... it work)

Changes:
- rewritten control code si53351 (ported from H, almost unchanged, only work on harmonics is cut out)
- accelerated work on the i2c bus with si53351 (it is software, but the decrease in delays made it possible to speed up the work of the si5351)
- accelerated work on the SPI bus with ADF (it is software, but the decrease in latencies made it possible to speed up the work with the ADF4350)
- new measurement timings are installed
All this made it possible to understand the measurement speed by a factor of 2 (and for SI up to 140 MHz by more than 4 times), you can further increase the speed by choosing AVGx1 (by default 2x), this will still increase the speed, but at the cost of a slight deterioration in quality at high frequencies
For V2 / V2Plus frequency step up to 140MHz - 1Hz, above 140MHz - 625Hz
For V2Plus4 up to 140MHz, it seems like 10Hz, above 10k (it seems like this code is hidden, I can't say for sure)

Now for the rendering and interface
- ported the code for drawing the screen from H, this gave in some cases more than twice the screen refresh rate (especially when there are many long lines), not to be confused with the measurement speed
- added track | Z |
- the FPU module is used for calculations
- removed unnecessary buffers and so on, this allowed the free memory to be used to increase the number of points to 301
- the UI system has been redesigned, which made it possible to move the markers with the rocker, change the type of graph, size, and anchor point on H when paused.
- The Time Domain code has been rewritten, it is 2 times faster (and taking into account FPU, about 10 times)
- full support for NanoVNA-App for control from it
- add 6 markers support
- add grid text (DISPLAY->SCALE/DIV )

This is from the main one, which I don't remember yet, I ported almost everything from H, the main thing was that I wanted to speed up the work and remove the annoying impossibility of working with a rocker to set markers during a pause (well, and change the track)
The main thing I work with is V2Plus, so on a regular V2 I could miss something.

Once again about the timings, the new AVGx2 mode is analogous to the old AVGx1 in quality (the new AVGx1 mode speeds up, but at the expense of a small loss of quality)

ATTENTION the firmware is compiled with FPU enabled, so if you have FPU version on the screen - no, they will not work (later i compile some fw vs disabled FPU support)

Siegfried Jackstien 2021/04/04 17:11

correction ... you wrote points 301 but its 371 :-)

my v2plus and my plus4 both have fpu but show error "libopencm3 did not
enable fpu" ?!?

i still think you increased the speed a bit much on the plus (460points
with no avg and 290 with x2) ... but ok i can live with it

all other things seem to work ok

greetz sigi dg9bfc

....

modded v2 (v2"4inch"), modded saa2n "plus" (v2plus"4inch"), v2plus4 ...
all three with newest fw from dislord



Am 04.04.2021 um 16:17 schrieb DiSlord:

n2msqrp 2021/04/04 13:30

Thanks!

I have a nanoVNA-SAA-2N form R&L Electronics. Which 480x320 version should I use?

Mike N2MS

DiSlord 2021/04/04 10:35

I move this topic to
https://groups.io/g/NanoVNAV2/topic/firmware_for_v2_it_contain/81847314?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,81847314

To reply to this topic, join https://groups.io/g/NanoVNAV2