<!-- Canonical page: https://reversedwithai.com/p/hardsid4u-usb-protocol-claude -->
Canonical page: https://reversedwithai.com/p/hardsid4u-usb-protocol-claude

# Worked out the USB protocol of a discontinued HardSID 4U SID-chip box and made it playable from a DAW, with Claude

> A Windows-only SID chip box, now playable from macOS and Linux.

Claude analysed the vendor driver and USB captures to document the protocol of a 2008 USB box holding real C64 sound chips, now played from macOS and Linux.

## Key facts

- Target: HardSID 4U (USB SID-chip box, 2008)
- Category: Firmware and hardware
- Platform: USB, macOS / Linux
- Models: Claude
- Tools: libusb, Python
- Outcome: Works
- License: MIT
- Checks: Source available: yes; Repro steps: yes; Real hardware: yes; Verified by others: not reported
- Author: [Per Thulin](https://github.com/pjthulin)
- Added: 2026-10-15
- Updated: 2026-10-15
- Sources reviewed: 2026-10-15 (editor)

## What was done

Per Thulin owns a HardSID 4U, a 2008 USB box that holds up to four real Commodore 64 SID sound chips. It shipped with a Windows-only driver and no published protocol. Thulin had Claude reverse engineer the protocol, and the repo now plays the chips from macOS and Linux, including as a MIDI instrument. The README gives no date.

Thulin supplied the device, the vendor files and USB captures. By Thulin's account Claude did the binary analysis, formed and discarded hypotheses, wrote the probe scripts, and wrote the library and docs, running experiments against Thulin's own hardware. The AI commit census counts 2 of 11 commits with AI credit (Claude Opus 4.8), on 4 and 5 September 2026. Static analysis of the packed driver got the wire format right but the state machine wrong several times. What broke the deadlock was capturing the real driver on the wire. One finding is that 0xFFFF, long treated as padding, is an escape prefix that can stall the device. The author records each wrong theory in the docs.

The result is a Python library over libusb that plays a note on a power-cycled device, plus a MIDI instrument that opens a virtual CoreMIDI destination for a DAW such as Ableton or Cubase. A note-on is one bulk write at 0.8 ms median. It was endurance tested for six hours across two chips.

You need a HardSID 4U with real SID chips fitted, and macOS or Linux. Run uv run --with libusb1 src/hardsid4u/hs4u.py --chip 0 --hz 440 to play a note, or uv sync --extra midi and then uv run hardsid4u-midi for the instrument.

Sources:
- https://github.com/pjthulin/hardsid4u

## What the commit history shows

2 of 11 commits in the public repository credit an AI, over 2 days between 2026-09-04 and 2026-09-05. Credited: Claude Opus 4.8 (2).

Measured by this site from public git history.

## Questions about HardSID 4U (USB SID-chip box, 2008)

### What is the HardSID 4U (USB SID-chip box, 2008) project?

Claude analysed the vendor driver and USB captures to document the protocol of a 2008 USB box holding real C64 sound chips, now played from macOS and Linux. It is listed under Firmware and hardware for USB, macOS / Linux.

### Which AI model was used on HardSID 4U (USB SID-chip box, 2008)?

The entry names Claude. The tools named alongside are libusb and Python.

### Did the AI reverse engineering of HardSID 4U (USB SID-chip box, 2008) work?

Its author reports that it works. Checks recorded: source available yes, repro steps yes, real hardware yes.

### Is the source code for HardSID 4U (USB SID-chip box, 2008) available?

Yes. The code, patches or tooling are public: https://github.com/pjthulin/hardsid4u. Licence: MIT. The sources give enough steps to reproduce it.

## Sources

- [Repository](https://github.com/pjthulin/hardsid4u)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: Per Thulin (2026). Worked out the USB protocol of a discontinued HardSID 4U SID-chip box and made it playable from a DAW, with Claude. Reversed with AI. https://reversedwithai.com/p/hardsid4u-usb-protocol-claude
