Repository navigation
Third firmware release. It updates both the ESP32-S3 bridge and the RP2354A controller. Update both: the speed-up needs the new controller.
What's new
-
Test a disk before you trust it. The web page has a new TEST A DISK panel:
- HEALTH CHECK reads every track twice without writing, grades each track and measures its timing margin. It also loads the files, the same as a read. About 1½ minutes.
- QUICK writes a random pattern and then a blank format to every track and reads each one back. About 3 minutes.
- FULL writes random, inverted and blank-format patterns, reads each one back, then reads the whole disk again. About 6 minutes.
- The result is GOOD, MARGINAL (4 or more tracks needed a second try) or BAD. QUICK and FULL erase the disk and leave it blank. If cylinder 0 is good, bad tracks are marked bad in the FAT, as DOS FORMAT did, so the disk is still usable with less space.
- A test stops at track 0, with the disk unchanged, if the disk is write-protected or the writes do not reach the disk.
-
Timing margin and a MARGIN view. Each track gets a timing margin from 0 to 100 (100 = every flux transition in the middle of its bit cell). Set the track map to VIEW ▸ MARGIN: each track fills up by its margin, tracks under 25 blink, and a histogram shows all 160 tracks with the threshold marked. The threshold is not calibrated against many disks yet, so it does not change a result.
-
Much faster. Measured on the same disk:
Job v1.1.0 v1.2.0 Read a whole disk 1:11 0:45 (−36%) Health check 3:04 * 1:28 (−52%) Quick test 5:54 * 3:15 (−45%) Write an image 2:48 1:38 (−42%) * the v1.1.0 firmware had no health check or test; these are the first versions of them, before the speed-up. The quick test and the image write were measured just before the read window grew by 10 ms (the last change); it adds about a second.
How: both ESP32 cores now share the work (one drives the disk while the other encodes and decodes), the link between the two chips runs at 11.4 MHz instead of 8 MHz with full frames, and the controller now sends a read over the link while the disk is still turning instead of after.
-
STOP. While a read, write, test or health check runs, the RETRY BAD key becomes STOP. It stops at the next track (under a second).
-
Auto power-off can be turned off: Rear panel ▸ SHOW ▸ AUTO POWER-OFF. The setting is kept after a restart. It is on by default.
-
Battery:
- The charge safety timer is now 12 h, and runs at half speed while the charge current is held back (for example while the board is in use on USB), so a long session does not stop the charge. If it does run out, the charge restarts once and the web page shows CHG TIMEOUT. The page also shows TOO HOT/COLD and CHG PAUSED.
- The fuel gauge no longer shows "GAUGE SETTLING" forever, is much less likely to reset itself on the voltage dip when the drive starts (reset threshold 2.48 V instead of 3.0 V), and its estimate is now corrected for temperature.
-
Clock: the real-time clock is now set on the exact second from the network (it could lag by up to 1 s).
-
Reads: the first track of a disk could need a second try (the drive is silent for a moment after it powers up). Fixed, and the read window is a little longer, so a marginal sector gets a second chance in the same read.
-
New API:
POST /api/test[?mode=quick],POST /api/health,POST /api/cancel,POST /api/autooff?on=0|1,GET /api/linkprof(link and capture statistics)./api/trackmapaddsmargin,margin_lowandweak_marginal./api/statusaddsautooff_on.
What's in the zip
| Folder | File | Use |
|---|---|---|
controller-rp2354/ |
gw_rp2354.uf2 |
USB install: hold BOOTSEL (S4), connect power, copy the file to the RP2350 drive |
controller-rp2354/ |
gw_rp2354.bin |
WiFi update from the web page |
bridge-esp32s3/ |
flash_args + 4 .bin files |
First install through USB with esptool.py |
bridge-esp32s3/ |
gw_wifi_bridge.bin |
WiFi update: Rear panel ▸ SHOW ▸ FIRMWARE UPDATE |
SHA-256 checksums are in SHA256SUMS.txt.
Updating from v1.1.0
- Upload
bridge-esp32s3/gw_wifi_bridge.binfrom the web page (Rear panel ▸ SHOW ▸ FIRMWARE UPDATE). WiFi and settings are kept. - Then upload
controller-rp2354/gw_rp2354.binfrom the same panel (DRIVE CONTROLLER).
First install of the bridge
From inside bridge-esp32s3/:
esptool.py --chip esp32s3 -p <PORT> erase_flash
esptool.py --chip esp32s3 -p <PORT> write_flash @flash_args
Do the first install on USB power. The board does not work fully on battery until the firmware runs and sets the charger limits.
Supported disks
1.44 MB HD disks with FAT12 (for example Sony Mavica disks). Only the files in the root folder are shown and copied. Folders and hidden files are skipped. 720 KB DD and other formats are not supported.
Known issues
- The faster reads apply to the ESP32 link only. Reads over USB with the
gwtool work as before; I could not retest them on the assembled unit. - The timing-margin threshold (25) and the MARGINAL rule (4 weak tracks) are still WIP info
- The controller uses the default Raspberry Pi USB ID (2E8A:000A), so give the port to the
gwtool:gw read --device <PORT> ...
Build info
Built from this tag's source with ESP-IDF 5.2.7 and pico-sdk 2.3.0. The bridge reports version 1.2.0 on the web page and the LCD System page; the controller reports build v1.2.0. Tested on the gen-4 board: these exact binaries installed over WiFi on a v1.1.0-era unit (settings kept), then a whole-disk read (45.8 s, every track clean first time) and a health check (1:27, GOOD). Reads, health checks, quick tests, image writes, SD saves and STOP were tested on the same source during development, on a known-good disk. A write-up of the speed-up work is in docs/speed-up.md.