Quansheng UV-K5: Flashing the CEC Firmware for CW

Quansheng UV-K5: Flashing the CEC Firmware for CW

Table of Contents

In the last UV-K5 post we used the IJV firmware to get the radio on SSB. This time it’s CW. The CEC firmware by phdlee adds proper Morse modes to the £25 Quansheng UV-K5: you can key it from the radio’s own buttons or plug in a straight key or paddle.

The best part is that you don’t need any special software to flash it. It all happens in a web browser.

Got a UV-K5 v3 or UV-K1? CEC only runs on the original UV-K5. For the newer radios, see our follow-up on the NR7Y CW firmware.

What you need

  • A Quansheng UV-K5 (or UV-K5(8), UV-K6 or UV-5R Plus, which use the same hardware), fully charged.
  • A Baofeng-style USB programming cable. This is the common K-type (Kenwood two-pin) cable sold for Baofeng UV-5Rs, and the UV-K5 uses the same plug. Cheap clones work, but go for one with a CH340 or CP2102 chip if you can, because the old fake Prolific (PL2303) cables often have driver problems on modern Windows and macOS.
  • A CW paddle or key (optional). You can key from the radio’s buttons, but a small plug-in paddle makes it much nicer (more on that below).
  • A computer with Chrome or Edge. The flasher uses the browser’s Web Serial feature to talk to the cable. Firefox and Safari don’t support it.
  • The firmware file. Get the latest CEC release from github.com/phdlee/uvk5cec/releases. You want the .packed.bin file.

Push the plug all the way in. The UV-K5’s side socket is tight, and a half-inserted plug is the number one reason flashing “doesn’t work”. You should feel it click home.

Which CEC file?

Each CEC release comes in two versions. The last letter of the file name tells you which one you have:

File ends inVersionKeying
…B.packed.binBasicKeypad straight key, keypad paddle, external straight key or external paddle (Iambic A). Recommended for speeds under about 15 WPM
…C.packed.binCW ExpertExternal paddle (Iambic A or B) or external straight key. Better at reading the key while it’s sending, so fewer keying errors at speed

If you’re just starting out, or don’t have a key yet, use Basic. I flashed cec_0.3QB.packed.bin, the Basic build of version 0.3Q.

Back up first

Every UV-K5 has its own calibration data stored in its EEPROM. A firmware flash shouldn’t touch it, but if something goes wrong it’s the one thing you can’t download again. Before you flash anything for the first time, read the radio with CHIRP (or a similar tool) and keep a copy of the image file somewhere safe.

Flashing with the web flasher

  1. Switch the radio off.
  2. Hold PTT and switch the radio on. Keep holding PTT for a second, then let go. The screen stays blank and the radio is now in flash (bootloader) mode. It will stay that way until you turn it off.
  3. Plug the cable into the radio and the computer.
  4. Open the web flasher at egzumer.github.io/uvtools in Chrome or Edge.
  5. Click Browse and pick your .packed.bin file.
  6. Click Flash firmware. The browser asks which serial port to use. Pick your cable (it often shows up as “USB Serial” or “CH340”).
  7. Wait. The flasher detects the radio, checks the bootloader version, and counts up to 100%.

The UV-K5 web flasher after a successful flash: radio in flash mode detected, bootloader 2.00.06, version check passed, flashing 100%, successfully flashed firmware

When you see “Successfully flashed firmware”, unplug the cable and switch the radio off and back on. You should see the CEC version on the start-up screen.

If it doesn’t work:

  • No port shows up: the cable driver isn’t installed, or you’re not using Chrome or Edge.
  • It sits at “connecting” or times out: the plug isn’t fully in, or the radio isn’t in flash mode (blank screen). Switch off and try step 2 again.
  • Version check failed: the file isn’t a packed UV-K5 firmware. Make sure you downloaded the .packed.bin.

The great thing about the bootloader is that it lives in a part of the chip that the flasher never overwrites. If a flash fails, you can always go back into flash mode and try again, or flash the stock Quansheng firmware back on.

The CW modes

CEC adds three CW modes to the list of modulations, next to FM, AM and USB:

ModeWhat it sendsUse it for
CWA plain keyed carrier (A1A), the same as an HF CW rigWorking other CW stations on 2m/70cm, listening with a USB/CW receiver
CWNCW with a narrow receive filterPicking a weak CW signal out of the noise
CWFAn audio tone keyed on FM (MCW, F2A)Practising Morse with anyone who has an FM handheld. They don’t need a CW receiver at all

CWF is the fun one for a club. Two UV-K5s on a simplex FM frequency, a few metres apart on low power, and you have a Morse practice oscillator that works across the room or across town. Anyone listening on an ordinary FM radio hears the tone.

Change the modulation until the display shows CW, CWN or CWF. (With the settings below, that’s a long press on the F2 side key.)

CW settings

The CW options are in the main menu:

MenuWhat it does
CW KEYHow you key. Basic: K-PD keypad paddle, K-ST keypad straight key, E-PD external paddle, E-ST external straight key. Expert: IA.A / IA.B Iambic A or B paddle, E-ST external straight key
CW WPMKeyer speed, 5 to 50 words per minute
CWToneSidetone/offset pitch in 10 Hz steps (the default is 700 Hz)
CW DlyHow long the transmitter stays on after you stop sending, in 100 ms steps
CW AD1–AD4Calibrates the voltage levels the firmware reads from an external paddle (dit, dah and both). Only change these if your paddle isn’t read correctly
DIG.MDigital mode. Must be OFF to use an external CW key. Switch the radio off and on after changing it

Keying from the radio itself

With CW KEY set to K-PD or K-ST you don’t need a key at all:

  • PTT sends a dit
  • MENU sends a dah
  • Both together alternate (squeeze keying)

On K-ST it acts as a straight key instead, so you time the dits and dahs yourself. It isn’t a very comfortable key, but it’s plenty for trying it out or sending a callsign.

Using an external key

E-ST and E-PD let you plug a straight key or paddle into the radio’s Kenwood-type accessory socket, the same one the programming cable uses. The firmware tells dits and dahs apart by reading the voltage on that socket, so each paddle gives a different level. That’s what the CW AD1–AD4 menus are for: if the dits and dahs get mixed up, adjust them until they’re read correctly.

The easiest option is one of these tiny plug-in paddles. It’s about 31 × 24 × 19 mm and plugs straight into the 3.5 mm socket on the side of the radio, so there’s no lead and no adapter to build. It’s not a contest paddle, but it’s perfect for a portable or pocket CW station.

A small orange plug-in CW paddle with two white paddle levers and a 3.5 mm jack plug, about 31 × 24 × 19 mm

This is the setup I use with the plug-in paddle and the Basic CEC build:

MenuSettingWhy
CW KEYE-PDExternal paddle
CWTone700 HzA comfortable pitch, and the usual CW offset
CW Dly2000 msThe transmitter stays on for 2 seconds between words, so it doesn’t drop out mid-over
CW WPM20A good speed for a paddle. Drop it lower while you’re learning
CW AD13390Paddle calibration (dit)
CW AD23570Paddle calibration (dah)
CW AD34290Paddle calibration (both)
CW AD43440Paddle calibration (both, upper limit)
F2 short pressPowerQuick change of TX power
F2 long pressSwitch demodulationJumps between FM, AM, USB and the CW modes without going into the menu

The AD values suit my paddle. Yours may read slightly differently, so if a dit comes out as a dah (or nothing happens), try nudging them. Remember to set DIG.M to OFF, or the external paddle won’t work at all.

Setting the F2 side key to switch demodulation is the most useful change: one long press takes you from FM to CW and back.

Check the CEC project page if you want to wire up your own key.

Sending stored messages

The CWM feature sends text stored in the U.INFO menu (messages MSG0 to MSG4, up to 50 characters each). That’s handy for a CQ call or your callsign. A # in the message stops sending at that point.

Where to try it

  • 144.050 MHz is the 2m CW calling frequency, and 432.050 MHz is the 70cm one. Use CW or CWN mode here.
  • For practice with friends, use CWF on an FM simplex frequency. Keep it short and low power, and give your callsign.
  • Listen in the UK Activity Contests on Tuesday evenings. There’s more CW on 2m and 70cm than you might think.

As with SSB, a rubber duck antenna is a weak station for CW. Holding the radio on its side (horizontal polarisation) or connecting a small Yagi makes a real difference.

If you’re still learning Morse, take a look at our Learn CW post. Hearing your own sidetone from a radio you flashed yourself is good motivation.

The catches

  • It’s experimental. The author says plainly that you use it at your own risk and that it could even brick the radio. Keep your EEPROM backup and the stock firmware.
  • Frequency drift. The UV-K5’s oscillator isn’t temperature compensated, so a long CW transmission drifts a little as the radio warms up. Receiving stations on a narrow filter may need to follow you.
  • Low power, simple filtering. Only transmit on the 2m and 70cm amateur bands, where the radio was designed to transmit.
  • You need a licence. You need an amateur licence to transmit, and you must stay within its conditions.
Share :

Related Posts

TinySA: Checking Harmonics on the Baofeng UV-5R and UV-5R Mini

TinySA: Checking Harmonics on the Baofeng UV-5R and UV-5R Mini

The Baofeng UV-5R has been most people’s first handheld for over a decade. It also has a reputation for a “dirty” transmitter, with harmonics of your 2m signal turning up on 290 MHz, 435 MHz and beyond. The newer UV-5R Mini is smaller, charges over USB-C and costs about the same. So is it any cleaner?

Read More
Learning CW

Learning CW

Learning CW in 2026: Cheap Gear, Fun Apps, and Actually Enjoying Morse Code CW (Continuous Wave, or Morse code) has a reputation for being difficult, old-fashioned, or only for hardcore contest operators.

Read More
Quansheng UV-K5: SSB on a Budget with Double Sideband

Quansheng UV-K5: SSB on a Budget with Double Sideband

The Quansheng UV-K5 is a dual-band 2m/70cm handheld that sells for about £25. On its own that makes it a decent cheap FM handie. What makes it special is the community firmware. Because the radio can be reflashed over the programming cable, people have rewritten its software to add a spectrum display, AM and SSB receive, wide frequency coverage, and transmit on “SSB”.

Read More