开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

#qmx #firmware 1_00_017 AGC, S-meter, LPF sweep #qmx #firmware


 

Hi all

I have released firmware 1_00_017 at

The most important features are the AGC and S-meter.?

S-meter: it appears in the 3 characters to the right of the mode indicator character, when S-meter is enabled. The 15 vertical bars are worth 6dB each and therefore correspond to levels from S0 to S9 (9 bars) and?on up at S9+6dB, S9+12dB etc to S9+36dB when all three are full solid. The scale is calibrated in real decibels, but the accuracy of S0 relative to an actual signal input depends on the level of the gain setting you set for various bands in the Band Configuration terminal menu.?

AGC: it's a quite complex sub-system and I have documented the concepts and parameters in the 1_00_017 operating manual at , section 5.21 pages 52-57 inclusive. Briefly...?

AGC operates in the decibel domain, not linear. There is an AGC threshold below which AGC does not operate, it's a parameter specified in S-meter units. There's an impulse noise filter whose duration is configurable. The AGC slope is configurable so you can adjust it to your taste, you can have a gentle AGC action where strong signals are louder than weak ones, or an aggressive one where the AGC system makes everything the same volume. Hang time and recovery rate are also configurable.?

The AGC system creates an audio sample delay line, which it analyzes for impulse peaks then applies the calculated AGC gain (attenuation) to the sound samples in the delay line. The action of the AGC is therefore effectively instant; no matter how strong the incoming signal, the time taken for the AGC to react to it and protect your ears is always zero,?no piece of strong signal reaches your ears. The length of the delay line is configurable and needs to be a minimum 1.3ms for CW. SSB has a lower minimum audio frequency so a longer delay line is required; the maximum configuration is 6ms which would be able to handle signals down to 83 Hz. Either way, it's a very small latency.?

The S-meter also has a configurable "AGC action" display; if enabled, the S-meter looks like the Power/SWR meter function (during transmit) with two bars. The upper bar is the S-meter and the lower bar is the AGC action, with a configurable number of dB per pixel. It just helps you to see when AGC is active.?

The S-meter configuration parameters were moved to their own sub-menu under the Display/controls menu, and include an S-meter update interval parameter.?

I created a short demonstration YouTube video? . In this video I used a QCX, with about 150cm of wire attached to the antenna port, to generate a strong CW test signal. The BS170s in the QCX are toasted so this just produces very little actual power output but of course we are in close proximity, so the signal level "received" by the QMX is enormous, approx S9+30dB. In the video you can see heavy clipping when the AGC is off, which would no doubt generate a gigantic headache if you had earphones on; when I switch AGC on the signal is reduced to a comfortable S9 level.?

I also tested the QMX with AGC on 40m at night, tuning around for strong signals with and without AGC and I believe it is highly effective.?

The system is highly configurable, I suspect it may be TOO configurable; I will look forward to your feedback and suggestions on how it may be improved, and in particular it may be possible to remove some of these configurations, or derive or calculate them. The attached screenshot shows the configuration I used for the video. I must say though that it does not appear to be a delicate act, balancing parameters carefully; it seems generally to be very effective and insensitive to the exact settings.?

I do highly recommend though that you read the operating manual pages 52-57 carefully; initially all the parameters will be zero and you need to set it up carefully, before enabling AGC. At the moment there are no default values. So let's see.?

Other than that, I also added an LPF sweep tool (see example attached), which was discussed some time ago here. It "transmits" at 1/4 full power, into a dummy load (DO connect a dummy load!) while sweeping the transmit frequency, and plots the measured power output, after conversion to dB and normalizing the center frequency measurement as 0dB. It's indicative only, but quite interesting to see and educational, perhaps useful for debugging too.?

Plus a couple of bug fixes; change list is:
  1. Bug fix: '5351 synth code for setting TX params could lock up in some circumstances
  2. New LPF Sweep application in the terminal
  3. Added S-meter
  4. Added AGC implementation and supporting configuration menu parameters
  5. Bug fix: Parameter corruption (incl IQ Mode setting lost) in Digi config menu
So that's my week's work here.?

73 Hans G0UPL


 

Bravo, Hans. ?It looks fantastic.


 

Hmm - just tried to update my rev1 lo band and it is stuck on Enable Si5351A.

Anyone else stuck at this point?


 

Do ignore me - a forced firmware boot and re-install and peace seems to have been restored.? Will test and report back any other findings :)

Top work as always Hans


 

Hmm - apologies for the numerous posts.

Rebooted and it is stuck on Si5351A again.,,


 

I just upgraded the firmware to 017, and the display after it re-started just showed "A14.030.00P" followed by an battery icon indicating the battery was empty. It was in practice mode before the update. But I cannot turn the QMX off, no input controls work.

I had to pull the plug on power to turn if off (or do anything for that matter).

When it came back up it looked like this ... and again totally unresponsive to any control input on the QMX:


After pulling the plug a 2nd time, it restarted looking like it did on the first startup, with ONLY A14.030.00P showing and an empty battery symbol. Yet another restart, the QMX looks like this:




It won't let me get to the Factory Reset option.? I was running 016 firmware right before upgrading to 017. This is a low-band QMX on Rev 1 board.

73

Roy - KI0ER


 

Mine just got stuck there as well. Rev 2. I cycled the power and it got past it but was locked up. Cycled again and it gets stuck at that screen. Putty won't connect in either case.



Brad W8BMO


 

Hmmmm,

I just followed the usual procedure to update the firmware to 17 and having placed the new file in the QMX pseudo-directory, the lights didn't come on again.

I waited a while and eventually powered down.

On powering up again it showed version 17 but the serial comms didn't work. I tried several times, checking the com port number in case it had changed, but Windows reported a problem with the USB device that was connected whenever the QMX was powered up.

I would have tried to install the firmware again but there is no QMX pseudo directory any more, when entering the boot mode, just the Windows error message on the PC.

Is that goodbye?

Regards
Bev


 

开云体育

Same here…

?

From: [email protected] <[email protected]> On Behalf Of Danny Bower
Sent: Friday, February 16, 2024 9:39 AM
To: [email protected]
Subject: Re: [QRPLabs] #qmx #firmware 1_00_017 AGC, S-meter, LPF sweep

?

Hmm - apologies for the numerous posts.

Rebooted and it is stuck on Si5351A again.,,


 

Yes - this is my issue.? It did boot to what looked like to be a working state once however all controls were frozen.? On reboot it was back to this initializing state...


 

Hmmmm

Interesting... well best people WAIT a little bit... while I think...

73 Hans G0UPL



On Fri, Feb 16, 2024 at 5:41?PM Danny Bower <m0sdb@...> wrote:
Yes - this is my issue.? It did boot to what looked like to be a working state once however all controls were frozen.? On reboot it was back to this initializing state...


 

OK... I nearly found it... WAIT...

73 Hans G0UPL



On Fri, Feb 16, 2024 at 5:43?PM Hans Summers via <hans.summers=[email protected]> wrote:
Hmmmm

Interesting... well best people WAIT a little bit... while I think...

73 Hans G0UPL



On Fri, Feb 16, 2024 at 5:41?PM Danny Bower <m0sdb@...> wrote:
Yes - this is my issue.? It did boot to what looked like to be a working state once however all controls were frozen.? On reboot it was back to this initializing state...


 

Hi Hans. Hopefully you'll pull the release from the QMX page until this gets figured out.

My QMX does show up with it's USB Serial Device (COM4 in my case). But PUTTY won't connect to it. PuTTY finally times out with a semaphore timeout error.

I've not tried forcing it into firmware upgrade mode yet (with jumper). I suspect that's next which will hopfully let me roll back to 016 until this gets sorted.

73

Roy - KI0ER


 

Hi Roy

Yes I deleted 1_00_017 from the page...?

There's a division-by-zero someplace when the new parameter settings are zero. Ouuuuffff... OK I am figuring it out then I will stop that...?

73 Hans G0UPL



On Fri, Feb 16, 2024 at 5:48?PM Roy - KI0ER via <ki0er=[email protected]> wrote:
Hi Hans. Hopefully you'll pull the release from the QMX page until this gets figured out.

My QMX does show up with it's USB Serial Device (COM4 in my case). But PUTTY won't connect to it. PuTTY finally times out with a semaphore timeout error.

I've not tried forcing it into firmware upgrade mode yet (with jumper). I suspect that's next which will hopfully let me roll back to 016 until this gets sorted.

73

Roy - KI0ER


 

I was able, using the wire jumper, to roll back to 016 Firmware, and my darling QMX appears happy again. It's nice that one only needs to remove the 2 bottom screws on each side of the enclosure to pop the bottom cover off (no need to remove knobs and disassemble otherwise).



Roy - KI0ER


 

Hi Roy, all

Profound apologies are hereby offered. I would love to be able to tell you that I just fired the entire development time however, I already fired them last time.?

Embarrassment... OUUUCCHHHH... turns out, of course, that the parameters all default to zero, but that can't be OK because then you get a division by zero when loading the parameters, but of course the, err, developer couldn't have tested that scenario which just so happens to be exactly what you would all experience. ALSO - if the sample length happens to be zero then it keeps incrementing until it wraps around the byte counter, well then that tries to write audio samples into a 256-block delay line when the maximum allocation was 9... OH how horrible I should throw myself on my sword.?

Anyway I fixed it all now, you can download a fresh 1_00_017 and it will work OK now. You need, as I mentioned, to set up AGC parameters as it won't be sensible until you do, but, at least it won't hang up on you when stuff is zero immediately after updating firmware.?

73 Hans G0UPL



On Fri, Feb 16, 2024 at 6:11?PM Roy - KI0ER via <ki0er=[email protected]> wrote:
I was able, using the wire jumper, to roll back to 016 Firmware, and my darling QMX appears happy again. It's nice that one only needs to remove the 2 bottom screws on each side of the enclosure to pop the bottom cover off (no need to remove knobs and disassemble otherwise).



Roy - KI0ER


 

That seems to be working now Hans :)


 

开云体育

Hans,

?

That fixed it.? Tnx!

?

Paul, W9AC

?

From: [email protected] <[email protected]> On Behalf Of Hans Summers
Sent: Friday, February 16, 2024 10:20 AM
To: [email protected]
Subject: Re: [QRPLabs] #qmx #firmware 1_00_017 AGC, S-meter, LPF sweep

?

Hi Roy, all

?

Profound apologies are hereby offered. I would love to be able to tell you that I just fired the entire development time however, I already fired them last time.?

?

Embarrassment... OUUUCCHHHH... turns out, of course, that the parameters all default to zero, but that can't be OK because then you get a division by zero when loading the parameters, but of course the, err, developer couldn't have tested that scenario which just so happens to be exactly what you would all experience. ALSO - if the sample length happens to be zero then it keeps incrementing until it wraps around the byte counter, well then that tries to write audio samples into a 256-block delay line when the maximum allocation was 9... OH how horrible I should throw myself on my sword.?

?

Anyway I fixed it all now, you can download a fresh 1_00_017 and it will work OK now. You need, as I mentioned, to set up AGC parameters as it won't be sensible until you do, but, at least it won't hang up on you when stuff is zero immediately after updating firmware.?

?

73 Hans G0UPL

?

?

On Fri, Feb 16, 2024 at 6:11?PM Roy - KI0ER via <ki0er=[email protected]> wrote:

I was able, using the wire jumper, to roll back to 016 Firmware, and my darling QMX appears happy again. It's nice that one only needs to remove the 2 bottom screws on each side of the enclosure to pop the bottom cover off (no need to remove knobs and disassemble otherwise).



Roy - KI0ER


 

On 16/02/2024 15:20, Hans Summers wrote:
Anyway I fixed it all now, you can download a fresh 1_00_017 <> and it will work OK now.
Except that the COM access and the virtual directory do not appear any more.......

Bev
COAA


 

Yes, I also confirm the new 017 is alive and working!

I'm very excited to try out the new AGC functionality!? Thanks Hans!

73

Roy - KI0ER