WatchPAT ONE Reverse Engineering
- Clone this repository to
C:\source\itamar\WatchPATONERE. - Install
.NET 9.0 SDK. - Install
Claude Code.
By the end of setup your folder structure should look something like this.
c:\source\itamar
|
|- apksrc
|- javasrc
|- WatchPATONERE
|- com.itamarmedical.watchpat.apk
- Download APK from
https://apkpure.com/watchpat/com.itamarmedical.watchpat. - Rename
WatchPAT_4.1.0_APKPure.xapktoWatchPAT_4.1.0_APKPure.zip. - Extract
com.itamarmedical.watchpat.apktoc:\source\itamar.
- Download
https://github.com/iBotPeaches/Apktool/releases/download/v2.12.1/apktool_2.12.1.jar. - Rename
apktool_2.12.1.jartoapktool.jar. - Copy
apktool.jarandapktool.battoc:\windows(so you can run batch file from PATH). - Open Command Prompt and run
apktool.bat d -o c:\source\itamar\apksrc c:\source\itamar\com.itamarmedical.watchpat.apk.
- Download
https://github.com/skylot/jadx/releases/download/v1.5.3/jadx-gui-1.5.3-with-jre-win.zip. - Extract JADX and run
jadx-gui-1.5.3.exe. - Open
c:\source\itamar\com.itamarmedical.watchpat.apkand File > Export Project toC:\source\itamar\javasrc.
- Start
claudeinC:\source\itamar\WatchPATONERE.
dotnet restore
dotnet builddotnet runThis application implements the ITAMAR WatchPAT BLE protocol using Nordic UART Service with 24-byte packet headers and CRC-16-CCITT validation.
Key Features:
- ✅ Device discovery and connection
- ✅ LED control (physically verified)
- ✅ Sleep study session management
- ✅ Data packet reception and file saving
- ✅ Finger probe detection testing
- ✅ Device status monitoring
For detailed technical documentation, see:
- PROTOCOL.md - Complete protocol specification with sequence diagrams, packet formats, command IDs, timing requirements, and debugging notes
- CLAUDE.md - Architecture overview and development guidelines for Claude Code