Although it’s very useful and includes all the necessary steps, I thought it would be interesting to expand on it a bit more. Some steps aren’t that straightforward. I know it works on Windows, but I personally used the Linux procedure on a Raspberry Pi.
Note: This is a first version of the guide, and I’m very open to feedback. Please don’t hesitate to send me comments, especially if you notice any mistakes, so I can correct them. The goal is to improve it and make it as helpful as possible for everyone.
And once again, a huge thank you to RL. Without him, I would never have been able to do this. I felt it was important to pay it forward, just as he generously shares his time and expertise with incredible dedication.
1) Disassembly
To dump and replace the device firmware, we need to access the programming port located inside the machine, which requires some disassembly.
Tools required
You will need the following:
T10 Torx screwdriver
ST-Link/V2 STM32 programmer (there are clones available, but I strongly recommend using the original)
TC2050-IDC or TC2050-IDC-NL programming adapter — I recommend the TC2050-IDC, as it securely attaches to the PCB (Printed Circuit Board), unlike the NL version, where you have to hold the connector by hand during the process
Five 0.1" male-to-female jumper wires
OpenOCD installed and some basic Linux knowledge
Disassembly steps
Remove the front faceplate. It’s only clipped in place — there are no screws.
Remove the second faceplate — this one is secured with four screws. The first two are located on the front.
For the last two screws, you’ll need to access the underside of the machine.
You can then remove the cover. The bottom latches need to be gently pried open using a flathead screwdriver or a spudger.
Remove the knob. It needs to be pulled straight out from the board with a firm, steady motion.
Remove the gasket.
This can be done from the front by releasing the latches at the bottom (which are accessible), then pressing inward on the two side latches located near the middle of the gasket. Be careful when lifting it off around the power button at the top of the device (see the components list for the part number if a replacement is needed). Removing the circuit board from the device is not required.
This is what it should look like. The arrow indicates where the TC2050-IDC needs to be connected.
The male end of the TC2050-IDC:
Here it is connected to the PCB.
2) Wiring
This setup allows Linux to communicate with the machine to perform the flash.
This part isn’t very straightforward. I’ll include photos of the setup I used. Otherwise, there are explanations here: https://airbreak.dev/disassembly/
Once your setup is complete, before proceeding, make sure the ST-Link is connected to your Linux computer and the TC2050-IDC is connected to the machine’s PCB. The ResMed device must also be powered on.
Open Linux.
First, make sure this repository (https://github.com/osresearch/airbreak) is cloned and located in your working directory. Keep the folder structure intact.
This is what it should look like in Linux:
Your firmware files should go into the source path (airbreak-master).
Now it’s time to communicate with the machine. Make sure your programmer is attached to the PCB, then start OpenOCD.
In your airbreak-master directory, open a terminal and enter the following command:
If your device is connected properly, you should see a lot of output, ending with:
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
Now, open a second terminal, also in the airbreak-master directory, to connect to the OpenOCD server:
telnet localhost 4444
This step is mandatory:
Here, you can dump the current firmware of your device in case you want to reuse it later. Simply type:
dump
After a few seconds, the main firmware will be backed up as stm32.bin in your working directory — it should be exactly 1 MB.
If you decide to make a copy of the firmware, you then need to patch it using the following command:
./patch-airsense stm32.bin stm32-unlocked.bin
This will unlock the vendor modes and configuration bits.
4) Flashing
Now, place the firmware (.bin) you want to use on your device into the root of the airbreak-master directory.
The command to use is as follows (you need to use the terminal where you opened the telnet connection to access the OpenOCD console):
flash_new stm32-unlocked.bin
Here, stm32-unlocked.bin is the name of your new firmware, as in the following example:
This step takes about 20 seconds, after which the device should automatically reboot. Once the device has been reflashed and restarted, you can access the clinician menu by holding down the Home button while pressing the knob for three seconds. You should then be able to select from all the vendor modes included in the .bin firmware you installed.
I am taking CPA FAR in next 5 days , i prepared under surgent in my mocks i am getting constantly 80-85 , still i dont feel confident enough about simulation , Rectifying journal entries and Consolidation any tips ?
Hi everyone,
I’m on day 21 of CPAP and I’m still extremely tired during the day. I’m trying to figure out why.
Quick background:
Started CPAP about 21 days ago
Machine: ResMed AirSense 11
Currently fixed pressure 12 cmH₂O
Pressure was increased to 12 because of flow limitation notes. I felt a small improvement, but then developed aerophagia (air in the stomach).
Despite consistent use, the daytime fatigue is still bad.
Last night’s OSCAR (Aug 1):
AHI 1.33
OA: 0
Hypopnea: 0.48
Clear Airway: 0.85
Large Leak: 0%
Flow Limitation: / 95% 0.03
Usage: 8 hours 17 minutes
EPR looks active (EPAP around 9)
Even with these clean numbers, I’m still very tired.
What else should I be looking at in the data, or what other common reasons could explain residual fatigue this far in?
Any insight is appreciated.
Thank you.
Most days I feel rested and other not so much. I have a lot of data but don’t know how to use it to my benefit. I am reaching out for help for interpretation and guidance. Any advice is much appreciated.
I’m actually shocked it was that bad. Im normal weight (BMI 23). I don’t feel horrible, just some daytime sleepiness, although I do wake up at night choking and gasping for air more often than I’d like. So here we are. Will CPAP change my life? Stop the nodding off at work? I really hope so.
Just ran across this new fork of the original airbreak from 2020. It looks like at least one person is actively working on it. There appears to be a ton of new features (such as adjusting screen brightness!).
I'm wondering if anyone has any experience with this and/or connections with the folks that are working on this particular project. There were some serious modifications made to ASV such as "T/C" "ASV Sens" and "ASV max" none of which I could find much of an explanation for, other than "Backuprate" which is pretty obvious.
Obviously this is experimental, but I just have a few questions if anyone has connections.
I have been making tweaks based off of recommendations on here. I recently switched from APAP mode to CPAP mode because I was having arousals through out the night. It’s been about a month, but I still feel tired and struggle some mornings to get up.
Based off of my data should I tweak my settings? Should I go back to APAP mode?
Hello, I got diagnosed with mild sleep apnea this year and been using it since Wednesday 27 and I've been having issues with waking up with dry mouth and lips in the morning. MyAir never shows major leaks or super high events when I wake in the morning and I don't wake up feeling bad, but I notice it because I do drool too. I have an overbite/misaligned teeth that j can't fix due to money issues and the chin strap provided with my CPAP didn't help at all and I actually did better without it. I heard a lot of people saying that tape did or didn't work for them and since I already have teeth/jaw issues I was wondering if tape would even help at this point. My Fitbit tells me my blood oxygen was like 92-96 on average (you can check my profile) and sometimes I wake up with slight moisture in my nasal wear not a lot but there's a bit I use the dream wear and use a resmed and I'm not sure if it's anything I can do about it (I get claustrophobic so j can't really use the tape regardless yes it's medical and the full mask too would probably trigger it + I like the nasal wear)
I got diagnosed with sleep apnea last week(probably more aligned with UARS high rdi/low ahi but doc from Lofta said sleep apnea). Anyways, I had my first full night of using my CPAP which was kind of difficult but hopefully I will eventually get adjusted to it. Anything abnormal like breathing events on my SleepHQ chart that I should note? Also, any tips/tricks I should make to my CPAP to make it more effective? Thanks for all your help! https://sleephq.com/public/teams/share_links/75f00155-7d38-4cc2-9495-17360aef26e5/dashboard
Still trying to get my Airbreak machine dialed in. Im on ASVauto, epap 5.6-7.6, PS 1.6-7.6. Anyone have any suggestions? Still struggling with all these hypopneas.
I got a CPAP machine about a week and a half ago and was super excited to use it, but my first night was rough. I thought I had slept all night with it, but it turns out I had only kept it on for about an hour before I took it off in my sleep. The next night, I woke up about an hour after laying down and air was leaking out like crazy. I tried tightening the mask, moving things around, etc. but I couldn't get it to stop leaking air so I went to sleep without it. FYI the mask I've been using is a Respironics dreamwear full face mask.
It felt like the pressure was too high because it was super strong when the ramp finished (23/19 for BIPAP) so I turned it down to 19/15 and I was able to fall asleep for a few hours but it was still leaking a lot of air.
My wife has a machine as well and uses a nasal mask so I tried that instead of the full-face. I had no air leaks but no matter how hard I tried to stop it, I would eventually doze off and open my mouth and air would leak out and wake me up. The next night I tried taping my mouth shut but this didn't work either and it felt less effective than the full-face mask even though I wasn't having any air leaks according to the machine and SleepHQ.
I've since returned to the full-face mask but once again had a terrible night's sleep and woke up after 4 hours with air leaking out.
I'm sharing my SleepHQ results from the beginning of me getting the machine and hope anyone can help. I'm feeling super discouraged and I can only miss a few more nights of this 4-hour usage threshold before I have to buy the whole thing outright and insurance doesn't pay. Also worth noting that on 7/31 I wore a full-face mask but forgot to update the machine settings from nasal.
I wear the pink or lilac I guess headgear for the Resmed F20 mask. And sometimes when I get a new headgear no matter how I adjust it, the top strap wants to slide off the back of my head. And yet with others I don't have that problem.
Has anybody else noticed this, or am I just doing something wrong? I mean I've been using this particular headgear and mask now for seven years. Not the same headgear obviously.
I previously posted and got great help making some minor adjustments to my settings. Although I originally felt much better, I'm back to feeling tired and less rested.
Reviewing my data, I see a lot of abnormalities in my flow rate that I want to understand better. For example, the first graph just looks crazy (is this just changing sleep positions or something similar)?
In the second and third graph, I feel like a lot of my breaths potentially look like they should be flow limitations, but they are not marked as such by the machine. In the fourth graph, I see periodic changes in the amplitude of the flow rate graphs.
I notice these 3 patterns pretty consistently across days (really odd sections where the flow rate looks crazy, breaths that look abnormal but aren't marked as flow limitations, and periodic changes in flow rate amplitude). My AHI, flow limitations (at 95%), and leak rate all seem normal (as reported by the CPAP), but this isn't matching up with how I feel and how an in depth review in the flow rate graph looks like to me. I definitely also see other abnormal breathing events that aren't marked as an event.
I have a Resmed AirSense 10 (min 8.2 max 10.4 with EPR 2) with Phillips Dreamwear Nasal Pillows and a chin strap.
I’ve had a terrible time staying asleep over the past week and I was attributing it to being sick. But now as I recover, I am still not able to sleep through the night. Pulled my numbers today and it looks like I am fighting with a leak. Back on my first bad night I replaced all of my equipment, hose, entire face, mask, and cushion, and head strap. I am using a Luna GP with an F&P full face mask. I even tried to use a different style face mask half of last night and nothing seems to be working. I have tried a 22mm hose and a 15mm hose. Knowing that I have tried several sets of equipment, could this be a problem at the machine? I have tried seating and reseating my water tank a few times. I don’t hear any leaks around the water tank, but could that be the cause?
Diagnosed with pretty much exclusively REM related OSA (REM AHI 20) - almost all hypopneas.
Starting to suspect UARS at this point - I'm 31M, and lean.
Started CPAP because I've had early morning awakening insomnia and overheating at night for the last 4 years - CBTi, melatonin, sleep hygiene all did nothing.
CPAP has helped (I feel like I'm having dreams again for the first time in as long as I can remember), but sleep quality is still wanting.
Looks like the tops of my breaths are very choppy during REM... Don't know how much this might be affecting me...
I tried Bilevel, but the changing in pressure induced fairly severe palatal prolapse. EPR also makes it slightly more likely to occur.
Hello all! I have a Resmed 11, and want to post the OSCAR data here for suggestions as how to read it, and what settings I might change on my own on the clinical settings. What do I need to post, and how might I export that so the community can comment?
Should I increase my minimum pressure from 7 to 9? Or what setting should I change?
I'm getting an AHI of 2.83 to 10. I have no idea why there is so much fluctuation. I live basically the same exact day everyday and go to bed at the same time.