github armel/uv-k1-k5v3-firmware-custom v5.1.0
F4HWN v5.1.0

latest releases: v7.0.0, v6.3.0, v6.2.0...
9 months ago

🌐 Translate
Automatic translation is available via Google Translate: Open translated version.

🔥About this firmware

This firmware is a fork of the F4HWN custom firmware. It extends the work originally done for the UV-K5 V1 (DP32G030 MCU) and adapts it to the newer UV-K1 and UV-K5 V3, which are based on the PY32F071 MCU. It is the result of joint work by @muzkr and @armel. Many thanks to @Tunas1337 for his valuable help.

This release, called 🔥Fusion edition, merges into a single firmware all the different editions I previously released for the UV-K5 V1.

Warning

THIS FIRMWARE HAS NO REAL BRAIN. PLEASE USE YOUR OWN. Use this firmware at your own risk (entirely). There is absolutely no guarantee that it will work in any way shape or form on your radio(s), it may even brick your radio(s), in which case, you'd need to buy another radio.
Anyway, have fun.

⚙️ Getting Started

If you are running beta version 5.0.1 or 5.0.2, there are no specific recommendations: you can simply flash v5.1.0 as usual and start using the radio. However, please make sure to also update the f4hwn.fusion.chirp.v5.1.0.py driver!

However, if you are coming from a factory firmware or from 🔥Fusion Edition v4.3.2, I recommend following the steps below:

  1. (Optional) From CHIRP, export your memory channels to CSV (using the v4.3 driver).

  2. Flash your UV-K1 or UV-K5 V3 with 🔥Fusion Edition v5.1.0.

  3. Enter the hidden menus by holding PTT + SIDE BUTTON 1️⃣ while powering on the radio, then release all keys and perform a RESET ALL, menu 75/75.

Warning

Due to the complete change in memory mapping, you will lose all your memory channels and all your settings.

  1. (Optional) Using CHIRP with the driver f4hwn.fusion.chirp.v5.1.0.py, you can reload your CSV file and copy / paste your old channels.

Warning

Do not try to import your CSV file, do a copy / paste instead !

The radio will restart with the new firmware.

Remember to set the navigation direction according to whether you are using a UV-K1 or a UV-K5 V3, using the hidden menu 74/75 SetNav.

📚 Wiki documentation

To complement these release notes, remember that a GitHub Wiki is available.

It brings together the main documentation in one place: getting started, programming with CHIRP, using UVTools2, radio operation, scanning, menu reference, button functions, advanced features, troubleshooting, and videos/tutorials.

If you are discovering 🔥 Fusion Edition, or if you need to quickly find details about a specific feature, the Wiki remains the best place to start.

📋 Changelog

  • Full memory mapping refactor
  • Optimize SRAM usage
  • Modify 300 Hz and 3 kHz filter response registers to improve AM audio quality (PR Modify 300Hz and 3kHz filter Response regs for AM audio quality improvement #28, thanks @Tunas1337, Andrej)
  • Update BK4829 init: set reg 0x19 to match stock firmware (PR Update bk4829 init to set reg 0x19 to what the stock firmware sets it to #44, thanks @Tunas1337, Andrej)
  • Improve priority channel handling
  • Improve drivers (PY25Q16, SysTick, I2C, UART, VCP, keyboard, etc.)
  • Improve AirCopy
  • Improve screenshot feature (USB-C is now supported)
  • Improve SETTINGS_FactoryReset
  • Improve systick config (thanks @muzkr)
  • Fix backlight level 1
  • Fix spectrum analyzer (PR Fix spectrum range #85, Fix spectrum arrow #89, Fix spectrum visualisation for edge cases #90, thanks @superkd13)
  • Fix backlight flickering (issue Clignotement écran #35)
  • Fix MR channel persistence when entered with leading zeros
  • Fix compilation error if ENABLE_FEAT_F4HWN_AUDIO is false
  • Fix scan list + ALL
  • Fix FSK TX finished mask definition (PR Fix FSK TX finished mask definition #107, thanks @mengzhuo)
  • Fix build image once (PR Fix build image once #119, thanks @mengzhuo)
  • Fix Dockerfile
  • Fix spectrum RenderStill()
  • Fix Shift BITMAP_VFO_Lock
  • Fix SETTINGS_ResetTxLock()
  • Fix FM_EraseChannels()
  • Fix Lines 1 & 2 evil bug
  • Fix RO evil bug on new install
  • Fix TXLock icon
  • Add SetVol to set speaker gain
  • Add SetNav to configure navigation: UP/DOWN (UV-K5 V3) or LEFT/RIGHT (UV-K1)
  • Add SetRxA to set Rx Audio profile (FM only)
  • Add RxA action
  • Expand MR channel memory to 1024 slots
  • Expand Broadcast FM memory to 48 slots
  • Expand scan lists to 25 (24 + ALL)
  • Clean up duplicate ARRAY_SIZE macros (PR App: clean up duplicate ARRAY_SIZE macros #121, thanks @mengzhuo)
  • Experiment alignment

📒 Menu changes

New menus

  • ChList (14/69): assigns a scan list to a memory channel
  • ScList (18/69): selects the active scan list
  • ScPri (19/69): enables or disables priority channels during scanning (ON/OFF)
  • PriCh1 (20/69): sets priority channel 1
  • PriCh2 (21/69): sets priority channel 2
  • SetRxA (64/69): sets the FM RX audio profile (FLAT, CLEAN, MID, BOOST, MAX)
  • SetVol (68/69): adjusts the audio volume gain (0 to 63)

Hidden menus

  • SetNav (74/75): configures the navigation type (UP/DOWN for UV-K5, LEFT/RIGHT for UV-K1)

Removed menus

  • ScAdd1
  • ScAdd2
  • ScAdd3
  • Slist1
  • SList2
  • SList3

🪛 Dumping and restoring calibration data

UVTools2 can also dump and restore calibration data, which is strongly recommended.
Ideally, you should:

  • create a calibration dump right after installing the F4HWN firmware, and
  • restore it before installing a different firmware (for example, when returning to the stock firmware).

Dump

  • Open UVTools2 in dump mode (or select the Dump Calib tab).
  • Power on your radio in normal mode.
  • Click Dump Calibration Data.

When the process is complete, click Download calibration.dat to save the file on your computer.

Note

A good practice is to rename your calibration file using the serial number of your radio, which is printed on the label on the back of the device (under the battery). This avoids mixing up calibration files if you own multiple units.

Restore

  • Open UVTools2 in restore mode (or select the Restore Calib tab).
  • Power on your radio in normal mode.
  • Select your calibration.dat file on your computer.
  • Click Restore Calibration Data and wait until the process fully completes.

🖥️ About the K5 Viewer feature

You can use K5 Viewer on your PC directly in Chrome-based browser (like Chrome, Edge, Opera, etc.).

Here is a quick tutorial for dummies:

  1. Flash your Quansheng UV-K1 or UV-K5 V3 with F4HWN 🔥 Fusion edition
  2. Keep the K5 connected to your PC via the USB cable (Baofeng/Kenwood like USB serial cable or USB C)
  3. Go to https://armel.github.io/k5viewer/
  4. Click Connect (and select the serial port)

That’s it. Nothing to install. Nothing to configure. Just plug and view 🤭

💾 CHIRP Support

A CHIRP f4hwn.fusion.chirp.v5.1.0.py driver supporting the UV-K1 and UV-K5 V3 is also included in this release. It allows reading and writing the radio’s memory channels, settings and basic parameters directly from CHIRP, just like with the UV-K5 V1.

This driver is provided for convenience and early testing. It may still evolve as feedback comes in, so feel free to open an issue or report any anomaly you notice.

Enjoy,

Armel F4HWN

Don't miss a new uv-k1-k5v3-firmware-custom release

NewReleases is sending notifications on new releases.