bve/OpenOSC
소개
ZT703S / ZT706S 휴대용 스코프미터를 위한 오픈 소스 오실로스코프·멀티미터·신호 발생기 펌웨어
기타 프로젝트What you can do
- 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
측정된 스타 증가
- in 24h
- +99
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalOpenOSC
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.
Screenshots
Captured on a ZT703S running OpenOSC. The Bode screens replay a recorded twin-T sweep in the current interface.
![]() |
![]() |
| Oscilloscope, two channels | Multimeter with charge counter |
![]() |
![]() |
| Bode plot (recorded sweep replay) | Multimeter bar graph on the 2.5 V range |
![]() |
![]() |
| 512K record memory at 140 MS/s | Multimeter analog capacitance scale |
![]() |
![]() |
| Two readouts per channel, time cursors | Multimeter, large reading |
![]() |
![]() |
| CH1 interleave on the ZT703S (experimental) | Interleave offset calibration |
![]() |
![]() |
| Bode table (recorded sweep replay) | Thermocouple temperature |
![]() |
![]() |
| Protocol decoder: split view (SPI) | Protocol decoder: CAN table |
![]() |
![]() |
| Protocol decoder: I²C table | CAN FD frame detail |
![]() |
![]() |
| Protocol decoder: UART table | UART baud rate detection |
![]() |
![]() |
| DMX512 packet detail | High-contrast menus |
![]() |
![]() |
| Multimeter analog view, 1 kV DC range | Signal generator |
![]() |
![]() |
| Multimeter HOLD modes | Auto HOLD |
![]() |
![]() |
| Daylight color scheme | Amber color scheme |
![]() |
![]() |
| Settings with uptime | Generator layout |
![]() |
![]() |
| FFT with cursors | XY mode |
Features
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
- 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, Simplified Chinese, Russian and Spanish, 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
How it works
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
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.
Step 1: install the Recovery bootloader (standard update)
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.ZTKand 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
.ZTKdoes 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.
Optional: back up the factory block
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.
Step 2: install the OpenOSC firmware (through Recovery)
- 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. Release assets include the version in the name, for exampleOpenOSC-Firmware-ZT703S-vX.Y.Z.OSC. - 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.
The .OSC file also carries the font pack of Chinese, Russian and Spanish. 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 font pack of Chinese, Russian and Spanish 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. The firmware starts in English and shows a notice when Chinese, Russian
or Spanish was selected. Install the firmware .OSC again in Recovery to restore the pack.
Going back to the stock firmware
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.
Building
Requirements: PlatformIO. The ST platform and the ARM toolchain are
pinned in platformio.ini and installed automatically.
pio run
This builds both STM32 instruments. Use python3 scripts/build_firmware.py to build the instruments
and the optional ESP32-C3 Wireless Module together. It puts the versioned release assets in
build/releases/vX.Y.Z/assets/ and writes SHA256SUMS next to that directory. The ESP32-C3
USB installer is named esp32c3-addon-vX.Y.Z.bin. 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, Chinese, Russian and Spanish
use 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.
Third-party components
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.
Contributing
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.
License
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.
Support the project
If OpenOSC is useful to you, you can support its development:
Releases
Releases come out often, and you do not need to install every one: see Why are there so many releases? in the FAQ.
Retro gaming
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.
Other devices
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.
관련 프로젝트 살펴보기
불러오는 중…





























