github armel/uv-k1-k5v3-firmware-custom v6.3.0
F4HWN v6.3.0

latest release: v7.0.0
one month ago

F4HWN v6.3.0

Note

๐ŸŒ Automatic translation is available through your browser or an online translation service.

๐Ÿ”ฅ 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 @mrkusypl, @jdenoy, @lemiller-dev, and everyone who tested, reported issues, contributed code, or supported the project.

Version 6.3.0 turns the experimental overlay platform into a much more capable radio-application environment. Overlay API v3 adds audio capture, precise timing, USB serial communication, application hand-off, safer transmission setup and display services, while Labs gains ten new applications ranging from AIS and marine DSC reception to KISS TNC, radiosonde decoders, CW USB and audio-analysis tools.

The four official editions remain available:

Edition Intended use Additional features
๐Ÿ”ฅ Fusion Everyday use The balanced reference edition
๐Ÿงญ FieldOps Field and first-responder operations RescueOps controls, Fox Hunt and Morse Beacon
๐Ÿ“ก Transfer Radio-to-radio data transfer AirCopy and Beam wireless transfer
๐Ÿงช Labs Experimentation and early access External-Flash overlay apps and experimental features

For most users, Fusion remains the recommended edition.

Important

Labs is experimental. It contains the newest and least-settled developments. Expect rough edges, changing behaviour and possible incompatibilities between versions.

Warning

THIS FIRMWARE HAS NO REAL BRAIN. PLEASE USE YOUR OWN.

Use this firmware entirely at your own risk. There is absolutely no guarantee that it will work in any way, shape or form on your radio. It may even brick your radio, in which case you may need to buy another one.

Anyway, have fun.

โš™๏ธ Getting started

If you are already running Fusion Edition v5.x or v6.x, you can flash the v6.3.0 edition of your choice as usual.

Choose another edition only if you need its specific features:

  • choose FieldOps for Fox Hunt, Morse Beacon and RescueOps controls;
  • choose Transfer for AirCopy and Beam;
  • choose Labs to use the experimental overlay-app platform.

If you are coming from a factory firmware or from a version earlier than Fusion Edition v5.x:

  1. Optionally export your memory channels to CSV from CHIRP using the driver matching your currently installed firmware.
  2. Flash the v6.3.0 edition of your choice.
  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.
  4. Optionally reload your channels using the CHIRP driver matching v6.3.0.

Warning

Depending on the firmware you are upgrading from, changes to the memory and settings layout may require a complete reset.

Export your channels and back up your calibration data before flashing.

Warning

When restoring channels from a CSV file, copy and paste them into a freshly downloaded radio image instead of importing the CSV file directly.

Remember to configure the navigation direction for your radio using the hidden SetNav menu:

  • select the UV-K1 layout for the UV-K1;
  • select the UV-K5 V3 layout for the UV-K5 V3.

๐Ÿงฉ Overlay API v3

Overlay API v3 is the foundation of this release. It keeps ABI major 1 and its append-only compatibility model, while providing applications with a much broader set of resident services:

  • direct RX audio capture from PA4;
  • a precise 48 MHz cycle clock for demodulators and timing-sensitive applications;
  • resident integer formatters and frequency rendering;
  • application-to-application hand-off with a bounded message payload;
  • a quiet tx_prepare path for applications that control RF keying themselves;
  • USB-C serial-port services, initially used by KISS TNC;
  • page-level and byte-paced LCD output;
  • K5Viewer updates separated from LCD writes, so time-critical receivers are not blocked by screen mirroring;
  • deferred VFO changes applied safely when an application exits;
  • more consistent API layout and capability reporting across firmware editions.

Existing applications that only require an earlier API level remain compatible with the append-only ABI. Applications that require API level 3 must be used with firmware v6.3.0 or later.

๐Ÿ†• Ten new overlay applications

The Labs collection grows from 30 to 40 applications. New in this release:

  • AIS RX โ€” receives 9600-bit/s AIS traffic on AIS 1 or AIS 2 and decodes Class A, Class B, static, voyage and European Inland AIS reports. It displays vessel identity, position, speed, heading, destination and inland-navigation data. Real AIS reception has been validated.
  • ATIS DSC RX โ€” receives VHF Digital Selective Calling on marine channel 70 and displays distress, urgency, safety, routine and test calls, including MMSI, destination, distress nature, time and position. Bench-tested on radio; live channel-70 traffic remains to be validated.
  • KISS TNC โ€” turns the radio into a Bell 202 AFSK 1200 AX.25 TNC connected through USB-C. APRSdroid or another KISS client handles the map, messaging and beacon logic while the radio performs RF reception and transmission.
  • Sonde M10 โ€” decodes Meteomodem M10 radiosondes and displays serial number, position, altitude, temperature, humidity, vertical speed, horizontal speed and heading. Live radiosonde reception has been validated.
  • Sonde RS41 โ€” decodes classic and newer multi-GNSS Vaisala RS41 frames, displaying position, altitude, vertical and horizontal speed, heading and battery voltage. Classic RS41 reception has been validated in the field; multi-GNSS support is currently validated with synthetic frames.
  • CW USB โ€” a dedicated USB-C straight-key and paddle application derived from CW Keyer, with deliberate transmitter arming and selectable automatic, iambic A and iambic B modes. Thanks @jdenoy and @lemiller-dev.
  • AF Scope โ€” an oscilloscope and audio-frequency tuner for the demodulated receiver output, with triggering, gain, persistence, peak detection, frequency measurement and known-tone comparison.
  • AF Spectro โ€” an audio spectrum and sonogram analyser with peak hold, two-tone detection and twist measurement for signals such as Bell 202 AFSK.
  • Resistor โ€” a 3-, 4-, 5- and 6-band resistor colour-code calculator with direct colour entry, tolerance and temperature-coefficient support.
  • Hell Maze โ€” a first-person fixed-point raycasting game with textured walls, enemies, sound effects and an on-screen help page.

AF Scope and AF Spectro can hand off directly to one another while preserving their shared audio-path settings.

Caution

Receive-only applications do not make protected frequencies suitable for experimentation. Never transmit test signals on AIS channels, marine channel 70, operational radiosonde frequencies, paging networks, aeronautical channels or emergency-beacon bands.

Transmitting applications must only be used on frequencies, power levels and modes permitted by your licence and local regulations.

๐Ÿ“ก Existing application improvements

Existing applications also received substantial updates:

  • APRS TX and APRS Edit now support a direct round trip: APRS TX opens the editor, the edited profile is committed, and the loader returns directly to TX. The profile also adds an ARISS path preset for the ISS digipeater.
  • POCSAG RX now decodes 512 and 1200 baud simultaneously, identifies 2400-baud preambles, keeps up to ten pages and can optionally retain tone-only pages. Tone Only and Text Lost are now distinguished explicitly.
  • Sonde M20 adds GPS-derived vertical speed, horizontal speed and heading, relative humidity and an optional decode beep.
  • Sonde M10, M20 and RS41 now share a consistent telemetry layout and controls for frequency offset, attenuation and decode notification.
  • CW Decode reaches v1.0 with crystal correction shared conceptually with CW Keyer, a reorganised display and more decoded-text space.
  • CW Keyer has been separated from the new CW USB input variant. RF preparation, sidetone behaviour, timing, protection and receive display have also been refined.
  • SSTV now uses page-level LCD updates during progressive reception, preventing K5Viewer traffic from blocking audio sampling. PTT is deliberately ignored; transmission starts only with MENU.
  • EPIRB 406 now plays a three-beep notification after a valid decode and returns to reception without the former amplifier click.
  • ATIS RX uses slicer weights measured against the UV-K1 audio path, significantly improving decoding of realistic sine-FSK signals.
  • Beacon and Fox Hunt add a silent-carrier lead-in to help receivers open their squelch, a callsign-only identification mode and idle intervals up to ten minutes. Existing saved settings are migrated.
  • Broadcast FM now handles long key presses correctly.

๐Ÿ”Œ KISS TNC and USB serial services

KISS TNC connects the radio to APRSdroid or any compatible KISS client through USB-C:

  • received AX.25 frames with a valid FCS are forwarded to the host;
  • host frames are transmitted using Bell 202 AFSK 1200;
  • KISS data, TXDELAY and persistence commands are supported;
  • channel-busy and half-duplex behaviour are handled by the application;
  • an optional RX-only mode prevents host frames from being transmitted.

Reception and transmission have been validated with APRSdroid, including an on-air beacon received by an iGate.

Important

RF picked up by the USB cable can reset the USB connection during transmission. Use a short cable, keep the antenna away from the phone and cable, and fit a VHF-suitable clip-on ferrite at the radio end when necessary.

๐Ÿ”ญ Audio-analysis tools

AF Scope and AF Spectro expose the demodulated audio path used by applications such as APRS RX, AIS RX, SSTV and the radiosonde decoders.

AF Scope provides:

  • triggered oscilloscope views;
  • automatic and manual gain;
  • peak detection and persistence;
  • steady-tone tuning and stability indication;
  • single-tone and FSK frequency measurements.

AF Spectro provides:

  • spectrum and scrolling sonogram views;
  • peak hold and frequency-range tracking;
  • dual-tone and DTMF inspection;
  • Bell 202 twist measurement, useful when adjusting APRS transmit audio.

These tools analyse received audio after the BK4829 demodulator. They are not RF spectrum analysers and do not replace Spectrum3D.

๐Ÿ› ๏ธ Reliability fixes

  • Hardened overlay serial reads, writes, timeout recovery and USB link-state reporting.
  • Prevented stale deferred-VFO state from leaking between application launches.
  • Added runaway-chain protection for applications that repeatedly hand off to one another.
  • Fixed CW Keyer's missing sidetone on the first keyed mark.
  • Removed the click after EPIRB notification beeps and frequency changes.
  • Fixed Broadcast FM long-press handling.
  • Improved application cleanup of audio capture, serial ownership, staged hand-offs and display state.
  • Kept time-critical LCD activity from interfering with SSTV and audio-analysis sampling.

๐Ÿ“‹ Changelog

Added

  • Added overlay API level 3 while preserving ABI major 1.
  • Added resident audio capture, precise cycle timing, integer formatters and frequency drawing.
  • Added application hand-off with bounded messages and runaway-chain protection.
  • Added USB-C serial services for overlay applications.
  • Added quiet TX preparation for applications that key the PA themselves.
  • Added LCD page blits, paced LCD feeding and independent K5Viewer updates.
  • Added deferred VFO staging on application exit.
  • Added AIS RX and ATIS DSC RX.
  • Added KISS TNC for APRSdroid and other KISS clients.
  • Added Sonde M10 and Sonde RS41.
  • Added CW USB.
  • Added AF Scope and AF Spectro.
  • Added the Resistor colour-code calculator.
  • Added Hell Maze.
  • Added APRS TX/Edit hand-off and the ARISS path preset.
  • Added 512-baud reception and tone-only-page support to POCSAG RX.
  • Added radiosonde velocity, humidity, battery and decode-notification fields where available.
  • Added callsign-only identification and a silent-carrier lead-in to Beacon and Fox Hunt.

Improved

  • Increased the application collection from 30 to 40 installable applications.
  • Improved ATIS RX decoding for the measured UV-K1 receive-audio response.
  • Improved CW Decode display, crystal correction and tuning consistency.
  • Improved CW Keyer RF preparation, sidetone, timing and protection behaviour.
  • Improved POCSAG RX history from five to ten pages.
  • Improved SSTV progressive rendering while K5Viewer is connected.
  • Improved Sonde RS41 reception with edge lift and adaptive DPLL rate tracking.
  • Added support for newer multi-GNSS RS41 position frames.
  • Improved Sonde M10, M20 and RS41 display consistency.
  • Extended Beacon and Fox Hunt idle intervals from four to ten minutes.
  • Improved overlay serial-port error recovery and diagnostics.

Fixed

  • Fixed stale VFO staging after an overlay application exits.
  • Fixed Broadcast FM long-press key handling.
  • Fixed the first-mark sidetone in CW Keyer.
  • Fixed the click after EPIRB notification beeps.
  • Fixed potential K5Viewer blocking during progressive SSTV reception.
  • Fixed USB serial timeout and unread-data handling when an application exits.
  • Fixed several CW keying, arming and unwanted-transmission edge cases.
  • Fixed application-chain loops returning indefinitely between overlays.

Changed

  • Bumped the firmware version to v6.3.0.
  • Bumped the overlay API level from 2 to 3 while retaining ABI major 1.
  • Split USB-C key and paddle input out of CW Keyer into the dedicated CW USB application.
  • Changed SSTV transmission so that only MENU, never PTT, starts a transmission.
  • Changed APRS TX profile editing to return directly from APRS Edit through application hand-off.
  • Changed several decoder applications to use the resident audio-capture and timing services.
  • Changed screen-intensive applications to use K5Viewer-safe LCD services.

๐Ÿ“š Wiki documentation

The project Wiki brings together the main documentation: getting started, CHIRP programming, UV Studio, radio operation, scanning, menu reference, button functions, advanced features, troubleshooting and videos.

Documentation for the experimental overlay applications is also available in their source directories.

๐Ÿช› Calibration data

UV Studio can dump and restore calibration data. Keeping a separate backup for each radio is strongly recommended.

  1. Open Dump Calibration.
  2. Power on the radio in normal mode.
  3. Click Dump Calibration Data and save the resulting calibration.dat file.
  4. Rename the file with the serial number printed under the battery to avoid mixing backups from different radios.

๐Ÿ–ฅ๏ธ Live Viewer

UV Studio includes K5Viewer Live Viewer for screen mirroring, screenshots and remote keyboard control over USB or a compatible serial cable.

  1. Keep the radio connected to your computer.
  2. Open UV Studio.
  3. Select Live Viewer, connect and choose the radio's serial port.

๐Ÿ’พ CHIRP support

Use the CHIRP driver supplied with this release and matching firmware v6.3.0. It supports the UV-K1 and UV-K5 V3 editions and exposes the settings reported by the installed firmware.

Always use the CHIRP driver matching the firmware version installed on the radio.

๐Ÿ“ฆ Release files

This release provides four firmware binaries:

  • f4hwn.fusion.v6.3.0.bin
  • f4hwn.fieldops.v6.3.0.bin
  • f4hwn.transfer.v6.3.0.bin
  • f4hwn.labs.v6.3.0.bin

It also includes:

  • the CHIRP driver matching v6.3.0;
  • the overlay applications compatible with API level 3.

For most users, install f4hwn.fusion.v6.3.0.bin.

โš™๏ธ Build summary

๐Ÿ’พ Flash (limit: 120832 B / 118.00 KiB)

Preset Used (B) Used (KiB) Free (B) Free (KiB) Usage
Fusion 107688 105.16 13144 12.84 89.12%
Transfer 115824 113.11 5008 4.89 95.86%
FieldOps 114056 111.38 6776 6.62 94.39%
Labs 117832 115.07 3000 2.93 97.52%

๐Ÿง  RAM (limit: 16384 B / 16.00 KiB)

Preset Used (B) Used (KiB) Free (B) Free (KiB) Usage
Fusion 12160 11.88 4224 4.13 74.22%
Transfer 12800 12.50 3584 3.50 78.13%
FieldOps 12384 12.09 4000 3.91 75.59%
Labs 12736 12.44 3648 3.56 77.73%

๐Ÿ“ฆ Overlay apps (budget: 4096 B / 4.00 KiB)

File Code (B) Code (KiB) Free (B) Free (KiB) Usage Status
ACARSRX.app 3564 3.48 532 0.52 87.01% โœ… OK (+404 B assets)
AFScope.app 3648 3.56 448 0.44 89.06% โœ… OK (+1854 B assets)
AFSpectro.app 3520 3.44 576 0.56 85.94% โœ… OK (+740 B assets)
AISRX.app 3920 3.83 176 0.17 95.70% โœ… OK (+482 B assets)
APRSDIGI.app 3192 3.12 904 0.88 77.93% โœ… OK (+236 B assets)
APRSEdit.app 3360 3.28 736 0.72 82.03% โœ… OK (+3702 B assets)
APRSRX.app 3592 3.51 504 0.49 87.70% โœ… OK (+3832 B assets)
APRSTX.app 3296 3.22 800 0.78 80.47% โœ… OK (+3229 B assets)
ATISDSCRX.app 3656 3.57 440 0.43 89.26% โœ… OK (+1798 B assets)
ATISRX.app 2448 2.39 1648 1.61 59.77% โœ… OK (+972 B assets)
Beacon.app 2864 2.80 1232 1.20 69.92% โœ… OK (+137 B assets)
Beam.app 1096 1.07 3000 2.93 26.76% โœ… OK (+244 B assets)
Breakout.app 1840 1.80 2256 2.20 44.92% โœ… OK (+1139 B assets)
Cube3D.app 2480 2.42 1616 1.58 60.55% โœ… OK (+1200 B assets)
CWDecode.app 3608 3.52 488 0.48 88.09% โœ… OK (+905 B assets)
CWKeyer.app 3600 3.52 496 0.48 87.89% โœ… OK (+306 B assets)
CWUSB.app 4080 3.98 16 0.02 99.61% โœ… OK (+362 B assets)
EPIRB406.app 3744 3.66 352 0.34 91.41% โœ… OK (+470 B assets)
FlashMap.app 3376 3.30 720 0.70 82.42% โœ… OK (+686 B assets)
BroadcastFM.app 2272 2.22 1824 1.78 55.47% โœ… OK (+99 B assets)
FoxHunt.app 2372 2.32 1724 1.68 57.91% โœ… OK (+160 B assets)
HellMaze.app 4088 3.99 8 0.01 99.80% โœ… OK (+934 B assets)
KISSTNC.app 3620 3.54 476 0.46 88.38% โœ… OK (+339 B assets)
Minesweeper.app 1752 1.71 2344 2.29 42.77% โœ… OK (+2110 B assets)
Plasma.app 1524 1.49 2572 2.51 37.21% โœ… OK (+773 B assets)
POCSAGRX.app 3592 3.51 504 0.49 87.70% โœ… OK (+216 B assets)
RapidRoll.app 2332 2.28 1764 1.72 56.93% โœ… OK (+1163 B assets)
Resistor.app 1780 1.74 2316 2.26 43.46% โœ… OK (+1357 B assets)
SigFinder.app 2988 2.92 1108 1.08 72.95% โœ… OK (+241 B assets)
Snake.app 1836 1.79 2260 2.21 44.82% โœ… OK (+1178 B assets)
Sokoban.app 2848 2.78 1248 1.22 69.53% โœ… OK (+1744 B assets)
SondeM10.app 4004 3.91 92 0.09 97.75% โœ… OK (+444 B assets)
SondeM20.app 4008 3.91 88 0.09 97.85% โœ… OK (+518 B assets)
SondeRS41.app 3884 3.79 212 0.21 94.82% โœ… OK (+382 B assets)
SpaceImpact.app 3196 3.12 900 0.88 78.03% โœ… OK (+1225 B assets)
Spectrum3D.app 3856 3.77 240 0.23 94.14% โœ… OK (+186 B assets)
SSTV.app 3416 3.34 680 0.66 83.40% โœ… OK (+2950 B assets)
SystemInfo.app 3936 3.84 160 0.16 96.09% โœ… OK (+1316 B assets)
Tetris.app 2636 2.57 1460 1.43 64.36% โœ… OK (+1236 B assets)
ToneCall.app 2652 2.59 1444 1.41 64.75% โœ… OK (+204 B assets)
TOTAL 123476 120.58 40364 39.42 75.36% 40/40 apps, avg usage (+41473 B assets)

Enjoy,

Armel, F4HWN

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

NewReleases is sending notifications on new releases.