-
Notifications
You must be signed in to change notification settings - Fork 1
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
check threshold accuracy #97
Comments
Increase input power by 1dB
another 1dB
So the output power has tripped at <=22.5dBm despite the threshold being set at 28dBm. That's a pretty big error. The nominal detector slope after the OpAmp is 55mV/dB so 5.5dB is 300mV which is pretty large so probably not an analogue offset unless there is something really wrong. Ideas @ryan-summers |
@ryan-summers this is the most critical issue for us since the interlock is a key part of Booster's functionality. |
Per discussion with @jordens I'll review the relevant code at Lines 105 to 128 in 1a8e9eb
booster/src/settings/channel_settings.rs Lines 33 to 48 in 862ce55
Lines 896 to 940 in 862ce55
Lines 296 to 298 in 862ce55
From a quick skim this all looks correct, but I'll have a careful look shortly. |
n.b. this (top post) was after 8f0686f |
Using latest development branch commit. I'm driving Booster form a synth. Increasing the synth in 1dB steps and seeing where the interlock trips:
Comments
Given that the output detector calibration seems to be pretty (~0.5dB) accurate my guess is that the transforms + ADC parts of the code are all fine (and, indeed, they look correct) |
@jordens in terms of reviewing the code sections you referenced #97 (comment)
@ryan-summers strictly I guess this |
Out of curiosity, decreasing the output threshold by 10dB to +23dBm:
So this time it trips at an output power of +17dBm, which is again 6dB below the set-point. 23dBm corresponds to 2.051V while 17dBm is 1.84B Reducing the threshold another 10dB to 13dBm, we get
So it still trips at around 6dB below the set point (to within the measurement accuracy here)... At 13dBm, the comparator set point voltage should be One question: is this an offset-type effect or a gain-type effect? If it were a gain effect then we'd expect the error to be roughly At 13dBm set point, that would be |
@ryan-summers do you have a Booster accessible? I think the next step is for someone to probe the DAC + comparator pins. Once we have that we should know where the issue is and whether it's hw or sw so we can decide on an appropriate remedy. |
Yes, I have one at my desk for development purposes.
The RF channel modules have safety seals on them, so probing internal signals is not possible without breaking the seal (which I have not yet done). cc @jordens |
okay, I've had a look. Measuring set threshold | expected numbers here are based on this calibration: NB all of the maths I posted above was off by a constant voltage because I neglected the various coupler efficiencies etc. (i.e. I was referring to dBm at the detector, not dBm at the amp output). Not that it changes any conclusions, but it is a little confusing. So it looks like this part of the code works / hw works well (no unexpected offsets/etc). Errors here are pretty negligible as expected. Which raises the question of why the circuit doesn't work...transients? comparator oscillations? time to reach for the scope |
Set the threshold to 33dBm to avoid tripping, set the RF output to 23dBm as measured by the internal detector. Measuring with a DMM: So the conclusion here is that there is not a firmware issue here. So, I think the conclusion here has to be that either there is a hardware issue (comparator instabilities or whatever) or there are large transients on my signal source. |
Quick test for source transients:
At least for the powers I looked at there are no glitches that could explain this (recall that we're looking for 6dB so a factor of 2 in voltage which would stick out like a sore thumb) |
hmm...not quite:
So the voltages all seem correct. |
Okay, this definitely seems like an odd hw issue. I'll post some photos tomorrow, but the short summary is this:
The most likely explanation is some kind of oscillation involving the comparator. I'll close this issue now and open on on the hw thread. |
aargh, I don't have permission to close here. |
Assuming it's a hw issue it seems out of scope here and probably should be done over at sinara-hw/booster. |
No. It should be 0x1000 and 4095 is wrong (see datasheet). I haven't seen a ADC/DAC that behaves differently. |
Yes, sorry, my mistake. |
It seemed to me that while the power measurements are accurate, the thresholds are wrong (too sensitive). Need to gather some data on that.
The text was updated successfully, but these errors were encountered: