Replies: 22 comments 5 replies
-
|
I've now taken a closer look at the script. The command sequence is: So IN-DIR and OUT-Dir must be specified. I've tried it, but I get an error. By the way, LibreCal was recognized as authentic during the check. For me, the following is in there (serial number has been anonymized): What else is wrong? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Looks like you figured out everything already :) But just to confirm everything if it is still unclear to anyone else:
Yes, that script needs the paths to both LibreCAL volumes because it takes the factory calibration from the read-only volume and creates the coefficients for the Siglent VNA on the read/write volume.
Looks like you have tried it with the downloaded factory calibration from the server. This does indeed have a different INFO.TXT file which contains some information about the factory calibration procedure (e.g. timestamp and the equipment being used for the calibration). Despite being named the same, the INFO.TXT file on the read-only volume contains different information and can not be used here. You do not need to download the factory coefficients at all to create the Siglent data.
It is not described as obvious as possible but all the information should still be there. There is a section in the user manual mentioning the emulation modes and that section also points you to the script. The script itself tells you how it is supposed to be used (by mentioning the two LibreCAL volumes by name). I actually do not want to advertise this functionality aggressively because it is just based on some reverse engineering of the Siglent protocol. It may not work in some edge cases and I also do not want the LibreCAL to compete with Siglents eCals directly. Just consider this feature an extra goody but not one of the main features. Still easily accessible for anyone who really wants it but not something that just works out of the box. And I think bit of research and own initiative (which is really just a simple script call with the correct parameters) is acceptable for that. Basically I am trying to keep the balance between ease of access to this feature and not stepping on Siglents toes with it. |
Beta Was this translation helpful? Give feedback.
-
|
Hi Jan, Yes, I also understood that it's a nice-to-have feature, and its original use is based on LibreVNA. I find it very remarkable that "jwise" went to the trouble of making it available for an SVA. LibreCal has a lot of potential, so why not make it usable for other purposes? I would therefore like to thank you for developing the LibreCal project and for making it open source. I know a lot of time and testing goes into it. I've already had the opportunity to test it with the SVA 1032x, but I wasn't satisfied with the results. I have an F603FE CalKit here as a reference. I'll have to look into the cause when I have time. I'm still waiting for my Telegärtner N-SMA adapter to rule out any possible sources of error. Regards, Christian |
Beta Was this translation helpful? Give feedback.
-
|
Hi Christian, I also tried the LibreCal on my SVA1032X and if I understand your concern with the results it may have to do with the return-loss and insertion-loss of the standards in the LibreCal immediately after calibration. However, I think results match the corresponding .s1p and .s2p measurements provided (for each standard), which is the only thing that matters (proper traceable standard characterization measurements). The quality of the internal standards does not matter at all, in my understanding (so long as they are properly characterized). To prove this, use a good external load, or a bad load, does not matter actually, as a DUT. Do a cal with your F603FE and then measure the DUT load. Now do e-cal with the LibreCal and then measure the same DUT load. If the two DUT load measurements do not look very similar to each other, then yes there is a concern. However, I suspect, they will be very close. Hope this makes sense and that you can do the test and post resulting DUT load measurements (as I don't have any other traceable calkit). Vicente |
Beta Was this translation helpful? Give feedback.
-
|
Hello Vicente, Luckily, I'm on vacation right now, so I can take a closer look at it. I'll do a few comparison measurements, one with M-CAL (F603FE) and one with E-CAL, and then I'll get back to you. Regards Christian |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Yeah, something is definitely weird. I know for sure that I took multiple calibrations (1-port, 2-port and 4-port) about 2 months ago and they all looked good (e.g. almost exactly 0 dB on S21 when connecting the cables directly to each other). But when I now try to repeat that (just to be sure), I get completely bad calibration data. I have tried that with two different LibreCALs and during the calibration I can see that the correct standards are switched in and the traces on the Siglent (my SNA5014A shows the uncalibrated S parameters while it is calibrating) look as expected. But for some reason, the calibration is still bad. This sounds to me like there is some problem in the siglent coefficient file. I had to create these files again just now because I had already deleted them on my LibreCALs. But as far as I am aware, there was no change in the script for generating these files nor was there a firmware update for the Siglent since I last got good calibrations. Really not sure what could have changed. I will take another look at this but it will probably take a couple of weeks. |
Beta Was this translation helpful? Give feedback.
-
|
Hi Jan, It's good that you can reproduce something similar. Best regards, Christian PS: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Hi Vicente, After the S11 calibration, the image showed the characteristic curve with an open end. What puzzles me about the S11 Ecal is that regardless of whether I set it to Short or Load, the line remains the same. If I unplug the cable, it goes quiet again, but I have the same line with attenuation as if I set it to Load or Short on the LibeCal. So everything is behaving a bit strangely. Yes, I always reload the Ecal. You can't run an Ecal if you haven't loaded the ECAL at least once. I have a question for you. Could you perhaps provide me with your data0.zip + info.dat files for testing? Regards, Christian |
Beta Was this translation helpful? Give feedback.
-
|
I also use latest 6.3R2 but my SVA1032X is genuine fake (i.e., converted from a SSA3000X+). I sent you a message in eevblog but did not see where to attach files (unlike posting) so I included a link to a zip file in my iCloud Drive. If it does not work we can try something else. Okay, left open or short port 1 after S11 calibration should indeed be a relative flat line at 0 dBm. Short or Load giving same result definitely sounds bad. It would be informative to do the mCal (so known good calibration) and then show the S11 for the LibreCal O, S, L and S22 for the LibreCal THRU (port 1 to port 2). That way we look at known/reliable data. But it sounds like either the switch or some of the standards in the LibreCal have hardware issues (not firmware or software package). |
Beta Was this translation helpful? Give feedback.
-
|
My LibreCal siglent data package for Christian. Added for him to download. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
That is remarkable and unexpected I thought S-parameters were supposed to be device/unit specific (although obviously should be similar and close, but not this close I thought). Here are two ZIP files, one has the on device read-only exposed S parameters. The other contains the parameters that I downloaded online using my serial number. Files-0.3.0 (On Device).zip I had checked them against each other and seen that they were identical on my fancy skrf plots before. But I did not notice (until now) that the device exposed versions are fixed point floats with 6 decimals (no scientific notation), similar to the output of a NanoVNA for example (which for small details only leaves 4-significant digits in my view, and is not sufficient for a traceable standard or an eCal). The vendor provided copy uses also fixed point (no scientific notation) but 14 decimals, which compares well with the Siglent observed trace data output my scripts receive when requesting ASCII notation (scientific notation with 9 decimals in the mantissa). Now, I do not remember which of the two folders I ran the script on! But I bet I did on the vendor better quality provided one. It may be worth in your investigation to download your coefficients also (link in this GitHub readme) and try those instead of the S parameters in your device, to see if that makes a difference! Wow, I'm surprised but all of this! |
Beta Was this translation helpful? Give feedback.
-
|
A quick update after a cup of coffee ;-) The SVA1032x either seems to have a bug or it's intended that way. But now it seems that it remembers the data here. A factory reset or power cycle helps, then it forgets the data and uploads new data. I ran the converter with your stored S parameters. Strangely, it wasn't accepted with 0D0A, but yours has 0D, and that worked. I'm still trying to figure out whether that's the deciding factor here. Regards Christian |
Beta Was this translation helpful? Give feedback.
-
|
Thank you both for all the tests and data! I will look into this as well and am very curious to know what is going on here. Before I run any tests myself, a little bit of math on the resolution used in the LibreCAL:
You are correct, the LibreCAL stores its own coefficients with 6 decimals although the actual data during the factory calibration has more resolution. Here is why I think this is not an issue:
Conclusion: The error introduced by the resolution is absolutely tiny and only shows up at the fourth decimal in dB (and this is for high return loss. For the SHORT, OPEN or THROUGH standard the error will be even less). This is far below the accuracy of the LibreVNA and just moving your cables a little bit will probably have a much larger impact. |
Beta Was this translation helpful? Give feedback.
-
I think that is what makes all the difference! From my tests so far, the Siglent really does not like the \r\n Windows style line endings. I can repeatedly get it to behave like this:
Personally I think this is a bad implementation on the Siglent but I guess you could also argue that they know that their eCals will never use \r\n and thus do not need to handle it. So I guess this comes down to which operating system you used to generate the Siglent coefficients. Wirh Linux and macos you get \n line endings and everything works. With Windows you get \r\n line endings and the calibration breaks. I have now adjusted the python script to always force \n line endings no matter which operating system it is being run on. For me, this results in a valid calibration even if I generate the data in Windows. Please check on your side if you can confirm this.
They are device specific but the differences are small between LibreCALs. Especially at low frequencies it will not make a big difference. If Christian kept using the 385 to 485 MHz span as in the first tests, you would need to look quite close to spot any changes. I tried your working data as well all the way up to 8.5 GHz and starting at about 3-4 GHz, the line for an OPEN deviated a little bit from the ideal 0 dB. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Awesome, thank you very much for the feedback!
Looks like we may have worked in parallel on that, I have already pushed a commit with that exact change: 58ff0bb (and also figured out that the Windows build toolchain broke due to a Github runner update but that only affects the LibreCAL-GUI and does not matter here). |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.



































Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Could you please write me a how-to on how to prepare LibreCal for an SVA1032X?
I know there's a Python script (convert_siglent.py), but how exactly do I use it and what preparation do I need to do?
Unfortunately, the PDF only describes it very briefly.
I have the latest firmware version on the SVA V6.3R2.
I also see that when I call Ecal, S11/S21 Ecal is grayed out, which isn't the case in the video.
Is it normal that LibreCal always creates a MassStorage drive in normal mode?
I thought that only happened in BootSel mode.
Ecal SVA 1032X. You see S11/S21 Ecal ist greyed out.

Firmware Version

Beta Was this translation helpful? Give feedback.
All reactions