-
Notifications
You must be signed in to change notification settings - Fork 271
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
LiteVNA #534
Comments
whatever that device will be... |
LiteVNA correct work on NanoVNA-Saver |
@ Zarath |
LiteVNA is recognized as NanoVNA V2, so just the name should be corrected. |
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. |
@PA3CCE do you have a debug output of the detection. |
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. |
Sorry, in the latest version the LiteVNA and it's settings still are not implemented ! |
@zarath - I have a LiteVNA and might be able to work on this, however I have no familiarity with your specific codebase and what mechanisms you might already have for autodetection. What do NanoVNA-V2 units report for the deviceVariant register? http://nanovna.com/wp-content/uploads/2021/11/LiteVNA_User-Guide.pdf page 25 |
@Entropy512 it reports the same values in deviceVariant register as an original S-A-A-2. So this class of devices is indistinguishable by client software. The document even tell, that this was intended. :-/ So the problem is just the wrong type name in the device selector? Or isn't it detected because it differs in USB_ID? |
It works, however it supports additional functionality not supported by the Nano (more than 101 sweep points per segment, although leveraging this would require some additional UI work beyond detecting the device as being different) So it's kind of annoying that they intentionally made deviceVariant match another device - really???? :( I'm still trying to figure out WHY it is happening, but for some reason, while the unit has no problem calibrating for 1001 points locally in the 5 GHz wifi band, for some reason, trying to do a cal in NanoVNA-Saver leads to really bogus results (like 4:1 VSWR from a dummy load at around 5.8 GHz) - I am wondering if this is due to the LiteVNA having native support for 6 GHz instead of using harmonics. |
Yes indeed, the device connects to NanoVNA-Saver, but showing it being a V2 is not the biggest problem. |
Among other things (which I am wondering if it might be a contributor to some of the issues I'm seeing): It looks like https://github.com/NanoVNA-Saver/nanovna-saver/blob/main/src/NanoVNASaver/Hardware/NanoVNA_V2.py will allow setting TX power when the frequency is below 3 GHz. However, that register (0x42) is used on the LiteVNA to set the TX power for the high-frequency oscillator. 0x41 is used for the low-freq oscillator. I don't recall at the moment where the unit switches between these two. I need to do some debug runs to see if this is actually coming into play with my issues in the 5 GHz wifi band. If I'm reading/grepping things correctly, the sweep_max_freq_Hz variable does nothing on any device but the NanoVNA_V2, where it determines what frequencies Tx power can be set for? |
perhaps one with a liteVNA can checkout https://github.com/zarath/nanovna-saver/tree/feature/clock_detect |
Will try that later this week. Also, by default, apparently the LiteVNA does not apply calibrations to USB output, which kinda conflicts with NanoVNA-Saver requiring that the instrument be locally calibrated. Apparently there's an (undocumented in the manual) method to change this: The documentation is extremely poor and in some cases blatantly inaccurate, since for that register, the document merely states "Writing 1 switches USB data format to raw samples mode and leaves this protocol." Edit: It appears that @DiSlord tries to distinguish between a NanoVNA V2 and a LiteVNA using the firmware version? DiSlord/NanoVNA-App@a5328bf - Although the code refers to this as a "V2 Lite" - different device???? |
Better ask Dislord indeed, he wrote the firmwares and knows all the ins and outs of the LiteVNA and the V2, he was so kind to make some adaptions into NanoVNA-APP! |
@zarath |
Here is how NanoVNA-App detect V2 device: Register F0 contain device revision, always 0x02 for V2 series Next registers depend from device: F3 - FW_MAJOR_VER F4 - FM_MINOR_VER LiteVNA and V2Plus4 allow 65535 points over USB |
V2 Binary protocol: On write to registers data put to reg[address] and V2 grab data and process (depend from address) All values after in hex format!!!! 0x18 - read measured data (use 30 address for count) 0x20 - write byte address: 0x26 - (byte) mode (0 - USB mode, 1 - send raw data, 2 - normal mode, 3 - send calibrated data) 0x40 - (byte) average 0x50 - (dword) color value 0xEE - (byte) any value, on write V2 send screenshot 0xD0 - (dword) SN[0] (serial number 0) 0xF0 - (byte) device variant (2 for V2) Example: Set color[7]=RRGGBB: Read color from color[8]: |
My USB problem on windows 11 solved : |
I'll have to find some time to implement it... Tomorrow the Dortmunder Flohmarkt has priority :-; |
I sincerely hope you will find it, it would be highly appreciated. |
I have been using nanovna-saver with my LiteVNA64 without issue. Results over USB appear to be calibrated, but I may be wrong. Is there a foolproof way to verify this? |
As said before, LiteVNA64 connects to NanoVNA-Saver as being a NanoVNA V2 and NanoVNA-Saver measures as if it's a V2. However the LiteVNA64 HAS MORE FEATURES and has a better performance then the V2. |
@zarath : The above was your comment almost a year ago, may I kindly bring this item to your attention again ? |
Please add support for LiteVNA
The text was updated successfully, but these errors were encountered: