Open-source firmware for the ZT703S and ZT706S handheld oscilloscope multimeters.
OpenOSC replaces the stock application with its own oscilloscope, multimeter and signal generator firmware. It also adds a small Recovery bootloader that updates the firmware from a USB drive.
Documentation: the wiki has a user guide for every instrument, the SCPI reference, troubleshooting and pages for contributors.
Status: work in progress. ZT703S is the main development and test device. ZT706S: I don't have one. Users run it, but many features are untested on that model. Clones of the ZT703S and ZT706S should work too: install the files for the model they are based on. If something does not work on a clone, please open an issue.
Warning
OpenOSC is in active development. Use the stock firmware if you need its established operation.
I take no responsibility for bricked or damaged devices. You install this firmware entirely at your own risk.
Note
You can always go back to the stock firmware. OpenOSC never modifies the factory bootloader, your calibration or the factory settings. The factory bootloader still accepts official updates, so installing the official firmware replaces OpenOSC completely. See Going back to the stock firmware.
Captured on a ZT703S running OpenOSC. The Bode screens replay a recorded twin-T sweep in the current interface.
Oscilloscope
- Two channels, up to 512K points, selectable performance profiles and CH1 interleave up to 280 MS/s (experimental on ZT703S)
- Auto Setup, Roll, zoom and pan, channel calibration, and edge, pulse-width, runt, rise/fall and video triggering
- Measurements, cursors, a hardware frequency counter, XY, MATH, FFT, reference traces, persistence and waveform density
- UART, RS-232, RS-485, DMX512, I²C, SPI, LIN, CAN, ISO CAN FD, 1-Wire, Modbus RTU, WS2812, IR (NEC) and MDIO decoding with CSV export
- Bode analysis with gain, phase and stability margins
- Compressed CSV and RAW waveform export and on-device file management
Multimeter
- AC/DC voltage and current, resistance, continuity, diode, capacitance and thermocouple temperature
- Auto and manual ranging, REL, four HOLD modes, statistics, trend chart, bar graph and analog dial
- High-voltage warning: a sign and a reading color from adjustable DC and AC thresholds
- On-device CSV session logging and ampere-hour counting
Signal generator
- Six built-in waveforms, adjustable square-wave duty cycle and arbitrary waveform playback
- Background output in Scope and DMM with configurable startup behavior
USB and remote control
- USBTMC and USB CDC with SCPI, live remote control and firmware updates in the 200/100 performance profile
- Selectable USB controller modes with automatic activation
- Rigol DS and OWON XDM1041 command profiles and desktop SCPI extensions
- Web and desktop clients from contributors. OpenOSC Panel · zoyi_gui
- Wi-Fi and Bluetooth LE SCPI with the optional ESP32-C3 companion for ZT703S
Interface and files
- English, German, Simplified Chinese, Russian, Spanish, Ukrainian and French, with customizable layouts, color schemes and high-contrast menus
- PNG screenshots with a built-in viewer and editable JSON settings
- Device uptime, wake on measurement, hold-to-power-off and watchdog restart
Recovery bootloader
- USB mass storage, firmware installation and package verification
- FAT check, repair and format, calibration viewer and factory-block backup
- Automatic startup when the main firmware is missing or invalid
The device's own factory bootloader occupies the first 128 KiB of internal Flash. OpenOSC never modifies it. OpenOSC is installed on top of it in two parts:
| Part | Address | Purpose |
|---|---|---|
| Factory bootloader | 0x08000000 |
Untouched, together with the calibration and factory settings stored in the same block. Accepts the stock .ZTK update containers. |
| OpenOSC Recovery | 0x08020000 |
Second-stage bootloader (128 KiB). Exposes a USB drive and installs the main firmware. |
| OpenOSC firmware | 0x08040400 |
The main application. |
Installation takes two steps. First, the Recovery bootloader is installed through the device's standard firmware update mechanism. Then Recovery installs the OpenOSC firmware. The same steps, with more detail, are in the wiki: Installation and Updating.
Recovery is packed as a regular factory update container (.ZTK):
- ZT703S:
OpenOSC-Recovery-ZT703S-vX.Y.Z.ZTK - ZT706S:
OpenOSC-Recovery-ZT706S-vX.Y.Z.ZTK
Earlier releases and local PlatformIO builds use the same names without the version suffix.
The bootloader reads the target model from the file header. On most units the file name can be
changed, as long as it keeps the upper-case .ZTK extension.
Important
If Recovery does not install (the file disappears from the drive, but the stock application
still starts), rename the file to ZOYI-703S-FW-V143.ZTK and copy it again. Some ZT703S units
(Boot v1.0.15) install only files with this kind of name
(#16). Units with later boot versions install it too,
so you can also use this name from the start if you do not know your unit's boot version.
If a large .ZTK does not fit on the drive ("not enough free space"), free up the device's storage
or format it from the stock application: Scope → MENU → Apps → Image Viewer → F1 → Format (F3).
Install it the same way as an official firmware update:
- Put the device into the factory USB update mode: switch it off, hold F1 and switch it on. Release F1 when the screen shows USB: Disk Driver. These keys were checked on the ZT703S.
- Connect the device to a computer. A USB drive appears (on the ZT703S it is named
FLASH). - Copy the
.ZTKfile for your model into thefirmwarefolder on that drive. - Wait until the bootloader finishes. It installs the file and deletes it from the drive.
- The device restarts into OpenOSC Recovery; restart it manually if it does not. The stock application has been replaced, so Recovery opens its menu.
This step is optional. You can skip it and go straight to step 2.
OpenOSC never writes to the factory block. The only Flash write code in OpenOSC accepts addresses
from 0x08040000 upward, the firmware area, so neither Recovery nor the firmware can erase or
change the factory block, even by mistake. Installing, updating and running OpenOSC leave it
exactly as it was.
The backup is a precaution for rare events outside OpenOSC, such as a hardware fault. If you want one:
- In Recovery, select BACKUP FACTORY BOOT and confirm it with F3.
- Recovery copies the whole factory block (
0x08000000–0x0801FFFF, 128 KiB) to the USB drive and verifies the copy:/openosc/BACKUP/FACTORY_BOOT_08000000.bin: the backup itself;/openosc/BACKUP/FACTORY_BOOT_08000000.txt: its address, size and CRC32.
- Press MENU to return to the Recovery menu. The USB drive appears on the computer again in the menu.
- Copy both files from the
openosc/BACKUP/folder on the drive to your computer and keep them somewhere safe.
The block contains the factory bootloader and this unit's own calibration and settings. Keep a separate backup for each device and never write one device's backup to another. Writing a backup back requires an SWD programmer.
- Start Recovery. It opens automatically when no valid firmware is installed. Later, you can open it by holding F2 while the device starts.
- Connect the device to a computer. Recovery shows the device's storage as a USB drive.
- Copy the firmware
.OSCfile for your model into/openosc/UPDATE/, created by Recovery. If Recovery reports an update folder error, select CHECK / REPAIR FAT before copying the file. If the release includesOpenOSC-Localized-Firmware-vX.Y.Z.zip, the standalone.OSCis English-only. For another language, extract the matching model and language.OSCfrom the ZIP first. Each of those builds has English and one other language. - Finish copying and safely eject the drive on the computer.
- On the device, select UPDATE FIRMWARE, choose the file and confirm it with F3.
- After Recovery verifies the installation, press F3 to delete the update file or F2 to keep it. MENU keeps the file by default.
- At the separate start prompt, press MENU or F3 to start the application.
Recovery controls: MENU = OK, F4 = back/cancel, arrow keys = navigation. In a confirmation, F3 takes the right-hand choice and F2 takes the left-hand choice. Left/right change the selection, and MENU takes the highlighted choice. If the computer still has the USB drive mounted, Recovery first asks DISCONNECT USB DISK?. Confirm it and Recovery detaches the drive itself; the cable can stay connected. The drive reconnects when you return to the Recovery menu.
Use python3 scripts/scpi_flash.py <CDC port> <file.OSC> with pyserial to update a running OpenOSC
device over USB. The script checks for compatible firmware and Recovery before transferring the package,
then verifies the uploaded size and CRC-32. Recovery installs the package, keeps the update file and
starts the firmware without a key press. The script verifies that the same device returns and reports
the version in the package. Recovery shows an error on the instrument if installation fails.
Follow step 1 once to update Recovery if the script requests it.
Recovery checks the board model, CRC and vector table of the image before erasing anything. An image for another model is rejected. Later updates of the main firmware use step 2 only.
Localized .OSC files also carry the font pack their language selection needs. Recovery
checks both parts, copies the pack to /openosc/FONTS/ and verifies it there before erasing the
firmware. After a successful install, Recovery removes the previous firmware's pack. The copy needs
about 220 KiB of free space on the drive. If that space is split into many small pieces, Recovery
stops with DISK TOO FRAGMENTED FOR FONTS before erasing. Delete files from the drive and try again.
If an update stops, start it again. Recovery reuses a verified copy.
One-time Recovery update. An
.OSCwith the localized font pack needs the Recovery of the same release. A Recovery built before package format 2 rejects it with INVALID OPENOSC IMAGE HEADER. A Recovery that installs the earlier Chinese-only font pack does not read this pack and rejects it with FONT PACK IS INVALID. Both leave the installed firmware as it is. Install the Recovery.ZTKof the same release once, as in step 1, then install the firmware.OSCin step 2. This Recovery also installs older.OSCfiles, including those with the Chinese-only pack, and raw.binimages.
After FORMAT EXTERNAL DISK in Recovery (or formatting the drive on a computer), the font pack
is gone with the other files. If the selected language needs the pack, the firmware starts in English
and shows a notice. Install the firmware .OSC again in Recovery to restore the pack.
You can return to the stock firmware at any time. OpenOSC only replaces the application area. The factory bootloader is never modified, and it starts before OpenOSC every time the device is switched on.
- Get the official firmware update (
.ZTK) for your model from the manufacturer. It is a good idea to download it before you install OpenOSC. - Install it exactly like step 1:
put the device into the factory USB update mode (hold F1 while switching it on) and copy the
file into the
firmwarefolder. - The factory bootloader replaces OpenOSC Recovery and the OpenOSC firmware with the stock application.
The calibration and the factory settings are stored in the factory block, which OpenOSC never
writes, so the stock firmware uses them as before. OpenOSC's own files in the /openosc/ folder
on the storage drive are not needed by the stock firmware and can be deleted.
The factory block backup is not needed for this. It is a safety copy for the unlikely case that the block itself is ever damaged.
In OpenOSC, open Settings → Files & USB → Recovery USB files and connect the USB cable.
Copy the images from openosc/SCREENSHOTS on the Recovery drive, then safely eject the drive.
The device records timestamps after Wireless Module → Sync time. Otherwise new screenshots
have no timestamp on the drive. Some systems display January 1, 1980 for an unset FAT timestamp.
Requirements: PlatformIO. The ST platform and the ARM toolchain are
pinned in platformio.ini and installed automatically.
pio runThis builds both STM32 instruments with all languages. Use python3 scripts/build_firmware.py to
stage the release or pre-release assets in build/releases/vX.Y.Z/assets/ with a SHA256SUMS manifest
next to that directory. The script stages these files.
- One
.ZTKRecovery and one English.OSCfor each model. OpenOSC-Localized-Firmware-vX.Y.Z.zipwith both models' English + German, English + Chinese, English + Russian, English + Spanish, English + Ukrainian and English + French.OSCfiles.OpenOSC-ESP32-C3-vX.Y.Z.zipwith the USB installer, the module app update and the module Recovery update. Wireless Module installation
GitHub Actions runs this build on pushes and pull requests. Download the installable packages and checksums from the OpenOSC-firmware artifact on the workflow run.
STM32 output files:
| Device | Recovery (step 1) | Firmware (step 2) |
|---|---|---|
| ZT703S | .pio/build/recovery/OpenOSC-Recovery-ZT703S.ZTK |
.pio/build/firmware/OpenOSC-Firmware-ZT703S.OSC |
| ZT706S | .pio/build/zt706s_recovery/OpenOSC-Recovery-ZT706S.ZTK |
.pio/build/zt706s_firmware/OpenOSC-Firmware-ZT706S.OSC |
Each build folder also contains firmware.bin. For the firmware environments, this .bin
has a board marker and Recovery accepts it as well. After a .bin install, localized text uses the
matching font pack already on the drive.
The firmware build keeps the metrics of the localized fonts (src/ui/fonts/) and the bitmaps English
needs in the firmware and takes the other bitmaps into the font pack of the .OSC
(scripts/font_pack.py).
The host tests draw the checked-in fonts as they are.
To build one device only, run, for example, pio run -e recovery -e firmware for ZT703S.
The firmware version is taken from VERSION.
The STM32 dependencies are included in vendor/:
- STM32CubeH7: CMSIS, HAL and USB Device library (ST)
- CMSIS-DSP (Arm, Apache-2.0)
- zlib (zlib License)
- FatFs (ChaN)
- LVGL 9.6.0 (MIT)
- ArduinoJson 6.21.5 (MIT)
- IBM Plex Sans, Noto Sans Mono and Noto Sans SC fonts (SIL OFL 1.1)
Each component keeps its own license file. The optional ESP32-C3 companion includes Arm CMSIS-DAP and builds against ESP-IDF.
Bug reports, ZT706S test results and pull requests are welcome. See CONTRIBUTING.md and the Code of Conduct. Questions go to Discussions; security problems are reported as described in SECURITY.md.
For the code base, see the contributor pages in the wiki: Building, Architecture Overview, Source Layout and Memory and Flash Layout.
OpenOSC is licensed under the GNU General Public License v3.0.
All product names and trademarks belong to their respective owners. This project is not affiliated with or endorsed by the device manufacturer.
If OpenOSC is useful to you, you can support its development:
Releases come out often, and you do not need to install every one: see Why are there so many releases? in the FAQ.
If you'd like to turn your scopemeter into a retro gaming handheld, check out my just-for-fun dual-boot builds at OpenOSC-RetroGo.
OpenOSC currently targets the ZT703S and ZT706S, and I can port it to other devices. A port needs the device on my bench: its board has to be traced, its peripherals identified and every function tested on real hardware. If you'd like OpenOSC on another oscilloscope or multimeter, I'd be grateful if you could send me a unit to study. Please get in touch in Discussions first, so we can check the device and agree on shipping.





























