picosonic / bbc-fdc

Floppy disk interface for Raspberry Pi
MIT License
244 stars 22 forks source link

Enhance .RAW output #7

Closed picosonic closed 6 years ago

picosonic commented 6 years ago

The current .raw output method gives great sampling of the flux transitions detected by the drive, however initially they were just meant to contain 1Mb per track for all 40 or 80 tracks.

I propose two enhancements :

  1. Write a short header to say if it's single/double sided and 40/80 track, possibly also the sampling frequency. Then with another short header, record per-track which head and track the sample relates to. Also the RPM may be useful for disks which vary this depending on track.

  2. Compress the .raw data with RLE to reduce file size but remain lossless.

picosonic commented 6 years ago

I've created a .RFI format which supports RAW captured flux transition data with added metadata to indicate where physically on the disk the data was captured from.

It includes support for RAW and RLE encoded outputs.