In 2025 I was diagnosed with severe sleep apnea and prescribed a CPAP machine to help keep my airway open at night.

Little did I know this was going to open a whole new chapter in my life, one where I would be learning about respiratory metrics, titration, how desaturations line up with events, and so on. I started finding out about the file formats used to store medical data when I discovered that OSCAR and other apps could read the binary data saved by my own machine.

After tons of iterations trying to get past my own machine's limits, so I could get the data wirelessly instead of taking the card out every morning to see it in OSCAR, I designed a couple of devices that take advantage of what already exists, like WiFi SD cards or the built-in Bluetooth of certain models, to get that information out and make it available to OSCAR through a custom-built Linux service.

Then I went all out. WiFi SD cards run on the power of the machine's SD slot through the night and were not always reliable, so I built a standalone device that talks to my app directly. That gave me a way to copy the files exactly as my own ResMed AirSense 10 writes them into a folder OSCAR can read.

Today that small app I called HMS CPAP, which started out reading only my own machine on Linux, reads machines from several families: ResMed AirSense and AirCurve 10 and 11, the Philips DreamStation 2, the BMC / React Health Luna, the Löwenstein Prisma and the Sefam S.Box. I have also extended it so it installs on Windows, macOS and Linux, or on a Raspberry Pi.

So what do you need to make it work with your own machine? Two things: HMS CPAP running on a computer at home, and a way to get the data out of the CPAP. Let's start with the app.

Step 1: Install HMS CPAP

Every download is on the Releases page. Pick the one for your computer:

  • Windows 10 or 11: HmsCpapInstaller-Setup.exe. No admin rights needed. A tray icon gives you Open Dashboard, Sync Now and Start at Login.
  • macOS (Apple silicon): HmsCpap.dmg. The first time you use Bluetooth, macOS asks whether the app may use it: allow it.
  • Raspberry Pi (32-bit Raspberry Pi OS): hms-cpap-linux-armhf.zip. Unzip it, cd hms-cpap-linux-armhf, run sudo ./install.sh and open the address it prints.
  • Linux x86_64 (Debian 13): hms-cpap-linux-x86_64.tar.gz. The README.txt inside has the four install lines.

The release assets: Windows installer, macOS DMG, Raspberry Pi zip, Linux tarball

Step 2: The setup wizard

The first time it runs, your browser opens on http://localhost:8893/setup (on a Pi or a Linux box, open http://<that computer>:8893). The wizard is short:

  1. Where should your data live? Keep Built in (recommended): a single file in your data folder, nothing to install.
  2. Select source. How HMS CPAP gets your data: a Sleep Bridge, a Mule & Miner, a local SD card folder, an ez Share card or a Toshiba FlashAir card. Bluetooth is not on this list: you switch it on in Settings afterwards (Step 3 below). If you are not sure yet, Skip is fine.
  3. Anything else? Home Assistant, night summaries, machine-learning insights and Start when I log in. All optional, all off until you tick them.

Step 2 of the wizard: built-in database or your own server

Step 3 of the wizard: choosing where the data comes from

Everything can be changed later in Settings.

Step 3: Get the data out of the CPAP

First of all you need to give the CPAP a way to move the data out of its own internal storage. For that you have a couple of options depending on your machine model.

Bluetooth on the ResMed Series 11 or the Philips DreamStation 2

ResMed Series 11 machines (the AirSense 11 and the AirCurve 11) come with Bluetooth built in, originally meant for ResMed's official myAir app. Thanks to the community of CPAPers and AI help, HMS CPAP, installed on a PC or a Raspberry Pi with Bluetooth, can now connect directly to the machine, stream the night while you sleep, read the machine's daily summary, and write it all as a card folder OSCAR imports like the machine's own card.

To set it up, turn on AirSense 11 over Bluetooth in Settings, then pair from the Devices page: put the machine in pairing mode, read the code off its screen and type it within the minute the machine allows. You only do this once. The pairing is kept, so after that you just need HMS CPAP running and the computer close enough to the CPAP for Bluetooth to reach.

A couple of things to know. The machine holds one pairing at a time, so this replaces the myAir app's pairing on the phone (myAir's nightly reports keep arriving over the machine's own modem). And while a night streams, HMS CPAP keeps the computer awake; a laptop with the lid closed drops the live night until it wakes up, and the day's summary is still read afterwards.

Settings: AirSense 11 over Bluetooth

The same idea applies to owners of a Philips DreamStation 2, since it also has Bluetooth built in, originally meant for the Philips Respironics DreamMapper app. HMS CPAP pairs with it from the Devices page too: with the blower off and the machine close to the computer, the machine and the page each show six digits, you check they match and confirm on both within about 30 seconds (on a Mac, macOS shows the code in its own window). Forget the machine in DreamMapper's Bluetooth settings on your phone first, because the DreamStation keeps one pairing.

ResMed Series 11 and DreamStation 2 Bluetooth work in two distinct ways. The ResMed streams the therapy almost in real time while you sleep, so HMS CPAP writes it as it arrives and reads the daily summary every few hours. The DreamStation 2 stays silent the whole night and only hands over a session once the therapy is done, so asking it for data all night would be wasteful. Instead you choose in Settings: read automatically once a day at a time you pick (11:00 by default), or only when I ask, with the Read now button on the Devices page. Another source saying the night ended (a Sleep Bridge, a Mule & Miner, an O2 ring) also starts a read, and nothing is read while a mask is on.

Settings: DreamStation 2 over Bluetooth, read once a day or only when asked

Other machines, like the Löwenstein Prisma SMART max, also have Bluetooth, but so far we don't know their protocol well enough to support it. We are working on it in the open with a contributor who already has an authenticated link to one (issue #149). In the meantime HMS CPAP reads a Prisma card from a folder or the upload page.

A WiFi SD card: Toshiba FlashAir or ez Share

If you don't own a Series 11 or a DreamStation 2 today, you still have a couple of alternatives depending on your model. The ResMed Series 10 machines take a WiFi SD card in place of the plain card, which gives them WiFi: what the machine writes to the card becomes reachable over WiFi. A BMC Luna G3 runs an ez Share too, but its card only shows a session once the mask comes off, so on a Luna the night arrives after therapy, not live.

There are more WiFi SD cards out there, but for the time being HMS CPAP natively supports two: the ez Share and the Toshiba FlashAir. They work very differently, though at the end of the day both expose the card's files over WiFi.

One warning first: an AirSense 11 with REF 39517 on the label underneath can't power a WiFi SD card reliably. On that model use Bluetooth or a Sleep Bridge Lite instead.

Joining your home WiFi (FlashAir)

Let's start with the easier of the two, the Toshiba FlashAir. This is my recommended approach: the card joins your home WiFi by itself, using settings you save in a file on the card (SD_WLAN/CONFIG, with APPMODE=5). Save it, put the card in the machine, and in HMS CPAP pick Toshiba FlashAir as the source. It is found as http://flashair.local, or you type the address the card got on your network. That's it. This has been tested on a FlashAir W-02 in an AirSense 10, read live through a full night.

The wizard with Toshiba FlashAir selected

The card as its own WiFi network (ez Share)

The second mode is the card acting as a WiFi access point itself. The card doesn't join your home WiFi; instead it shows up as a separate WiFi network of its own. This is how the ez Share works (the FlashAir can do it too, but I recommend its home WiFi mode above). For HMS CPAP to read a card in this mode, the computer has to be on the card's WiFi, at the card's own address (http://192.168.4.1 for an ez Share, the default in the wizard).

Your computer would then leave your home WiFi, so the easiest way is a second WiFi adapter besides the one built into your PC: a USB WiFi dongle from Amazon, eBay, Best Buy or any other store. The built-in WiFi stays on your home network and the dongle joins the card's. That's how I set up my own Raspberry Pi: a USB WiFi dongle on the ez Share's network, and HMS CPAP reading the card at 192.168.4.1. Please be advised: most dongles are widely compatible today, but it depends on your PC's brand and model, and not every dongle works out of the box on macOS or on a board like the Raspberry Pi. So do your homework before buying.

The wizard with ez Share selected, at the card's own address

If the computer is too far from the CPAP, or a dongle is not an option, that is what the next device is for.

The Mule & Miner

The Mule & Miner is an ingenious small device with two radios that bridges the CPAP and your home WiFi. One radio talks to the machine side and the other to your home WiFi, so a PC that isn't close to the machine, like an office PC or one in another room, can reach the CPAP as if it were nearby.

  • WiFi SD card: it reads an ez Share (or a FlashAir, since its firmware 5.2.0) in its own-network mode and puts it on your home WiFi. In the wizard pick CpapDash Mule and Miner and it finds the unit on your network.
  • Bluetooth: it also connects to the ResMed Series 11 (live, during the night) and the DreamStation 2 (after the night, with miner firmware 6.0.2 or newer) and streams the night to HMS CPAP on port 8894. For a DreamStation 2 read this way, HMS CPAP also keeps the machine's files in a card layout that OSCAR imports like a card.
  • Oximeters: it also reads Wellue O2Ring and O2Ring-S oximeters, live SpO2 and heart rate plus the ring's recordings. (HMS CPAP can also read an O2Ring straight over the computer's own Bluetooth.)

HMS CPAP works with Mule & Miner devices today.

The Mule & Miner with an ez Share card

The Sleep Bridge Lite

The Sleep Bridge Lite is an affordable device that connects to the machine's SD slot through an extender, with your SD card plugged into it, and streams the data to HMS CPAP while the machine writes it during therapy. The card stays in the machine and keeps being written as if nothing were listening. It doesn't need Bluetooth or a WiFi SD card, and it brings its own power over USB-C, so it does not depend on the slot's power.

Today it supports the ResMed AirSense 10 and 11, the AirCurve 10 and 11, and the BMC Luna G3, live. A Philips DreamStation 2 works too. It encrypts its card, so HMS CPAP reads those nights through an OSCAR you install yourself on the same computer, on its own when each night is over.

Setting it up: on the bridge's setup page choose My hms-cpap and type your computer's IP address and port 8894. Then power the machine off and on once, outside therapy, so the bridge sees the machine read the card. One limit to know: the bridge only has what the machine writes while it is listening, so for the history already on your card, read the card once in a card reader.

The Sleep Bridge Lite, powered over USB-C

Step 4: Find the folder OSCAR reads

HMS CPAP writes every file into a folder the moment it arrives. Which folder depends on the source. The data folder is .hms-cpap in your home folder.

  • ez Share or FlashAir (directly or through a Mule & Miner): the Archive Directory you set in Settings, Data Source.
  • Sleep Bridge Lite: sleepbridge/<your bridge>/ in the data folder.
  • AirSense 11 or AirCurve 11 over Bluetooth: as11/<machine serial>/ in the data folder.
  • DreamStation 2 through a Mule & Miner: ds2card/<machine serial>/ in the data folder.
  • A local folder or card reader: that folder. It already is the card.

For a WiFi SD card, the Archive Directory is required: it is where each night is written in the card's own layout, STR.edf and DATALOG side by side.

Settings, Data Source: the Archive Directory is the folder OSCAR imports

Step 5: Point OSCAR at it

In OSCAR, open File, Import CPAP Card Data (Shift+F2). OSCAR spends a few seconds looking for an inserted card; press Choose a folder and pick the folder from Step 4. Pick the folder that holds STR.edf and DATALOG, not a folder inside it. OSCAR remembers that location, so from then on the import goes straight there.

OSCAR's import path: File, Import CPAP Card Data, Choose a folder

Step 6: The first sync

What the first sync looks like depends on the source:

  • WiFi SD card: HMS CPAP checks the card about every minute. The first pass copies the whole history on the card, so give it time; after that only what is new is copied.
  • AirSense 11 over Bluetooth: the night streams live while you sleep and lands as a session when it ends; the machine's summary days come in every few hours.
  • DreamStation 2: nothing during the night. The sessions arrive at your daily read time, or when you press Read now.
  • Sleep Bridge Lite: the night grows while you sleep. Older nights are not there until you read the card once.

Since HMS CPAP writes every file into the folder as soon as it arrives, OSCAR can be fed the moment the therapy is over and the machine writes its summary file. Open OSCAR, import, and last night is there.

A night in HMS CPAP after it lands

If something doesn't work

  • The card is not found. The Devices page shows the card's health, with Test now and Find cards on this network. A FlashAir has to be on your home WiFi (APPMODE=5); if flashair.local doesn't answer, type its IP address. An ez Share only answers on its own WiFi, so the computer (or its dongle) has to be joined to it.
  • The WiFi dongle. Check that your operating system sees it as a second network adapter before anything else. macOS and the Raspberry Pi are the pickiest.
  • Pairing. Keep the computer near the machine. Each machine keeps one pairing, so a phone app or another reader still paired with it will be in the way: forget the machine there first. On Windows, use the Bluetooth adapter maker's own driver; on some adapters Windows' generic driver finds the machine but never connects.
  • OSCAR imports nothing. Make sure you chose the folder that holds STR.edf and DATALOG. OSCAR keeps a night it has already imported, so to import a night again, purge it in OSCAR first.

The Devices page showing a WiFi card that is not answering

Try it

I would invite you to try it today and see if this setup could work for you, so you won't need to remove your card ever again. HMS CPAP is free and open source, and I would love to hear how it goes on your machine.

HMS CPAP is a hobbyist data viewer, not a medical device. Never change your therapy settings based on it; talk to the clinician who manages your therapy.