
Quansheng UV-K5: Flashing the CEC Firmware for CW
- MW0AXD
- Equipment , Vhf , Cw
- October 20, 2026
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.binfile.
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 in | Version | Keying |
|---|---|---|
…B.packed.bin | Basic | Keypad straight key, keypad paddle, external straight key or external paddle (Iambic A). Recommended for speeds under about 15 WPM |
…C.packed.bin | CW Expert | External 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
- Switch the radio off.
- 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.
- Plug the cable into the radio and the computer.
- Open the web flasher at egzumer.github.io/uvtools in Chrome or Edge.
- Click Browse and pick your
.packed.binfile. - Click Flash firmware. The browser asks which serial port to use. Pick your cable (it often shows up as “USB Serial” or “CH340”).
- Wait. The flasher detects the radio, checks the bootloader version, and counts up to 100%.

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:
| Mode | What it sends | Use it for |
|---|---|---|
| CW | A plain keyed carrier (A1A), the same as an HF CW rig | Working other CW stations on 2m/70cm, listening with a USB/CW receiver |
| CWN | CW with a narrow receive filter | Picking a weak CW signal out of the noise |
| CWF | An 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:
| Menu | What it does |
|---|---|
| CW KEY | How 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 WPM | Keyer speed, 5 to 50 words per minute |
| CWTone | Sidetone/offset pitch in 10 Hz steps (the default is 700 Hz) |
| CW Dly | How long the transmitter stays on after you stop sending, in 100 ms steps |
| CW AD1–AD4 | Calibrates 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.M | Digital 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.

Recommended settings
This is the setup I use with the plug-in paddle and the Basic CEC build:
| Menu | Setting | Why |
|---|---|---|
| CW KEY | E-PD | External paddle |
| CWTone | 700 Hz | A comfortable pitch, and the usual CW offset |
| CW Dly | 2000 ms | The transmitter stays on for 2 seconds between words, so it doesn’t drop out mid-over |
| CW WPM | 20 | A good speed for a paddle. Drop it lower while you’re learning |
| CW AD1 | 3390 | Paddle calibration (dit) |
| CW AD2 | 3570 | Paddle calibration (dah) |
| CW AD3 | 4290 | Paddle calibration (both) |
| CW AD4 | 3440 | Paddle calibration (both, upper limit) |
| F2 short press | Power | Quick change of TX power |
| F2 long press | Switch demodulation | Jumps 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.
