r/BiomedicalEngineers • • 13d ago

Technical Reverse-engineer a multigas / EtCO₂ sensor

Post image

I'm trying to reverse-engineer a multigas / EtCO₂ sensor and I'm looking for information about its communication protocol.

So far, I've determined that the sensor transmits data autonomously over a serial interface at 9600 baud, 8N1, sending 21-byte frames that begin with AA 55. I've also been able to decode portions of the protocol, including the CO₂ waveform data and several respiratory parameters, which confirms that at least part of the data stream is understood.

My main goal, however, is to fully understand the multigas side of the interface. In particular, I'm interested in identifying how anesthetic agents such as sevoflurane, isoflurane, and other gases are reported, as well as determining whether there are gas-identification fields, agent codes, configuration commands, or undocumented message types that I've not yet decoded.

While I can capture and analyze the UART traffic, I have not been able to find any official documentation describing the packet structure, command set, field definitions, supported host commands, or protocol specification.

I tried to reach to the manufacturer, but I haven't got any response.

If anyone has experience with anesthesia gas monitors, multigas modules, Masimo/Phasein-style sensors, OEM gas-analysis modules, or similar medical sensing hardware, I'd appreciate any pointers to protocol documentation, service manuals, SDKs, technical references, or even personal experience with these devices.

My goal is purely educational and for interoperability research. Any information that helps identify the manufacturer, protocol family, or communication specifications would be greatly appreciated.

Thanks!

15 Upvotes

10 comments sorted by

4

u/7ar5un 13d ago

Expensive little buggers those are lol

3

u/___Cisco__ 13d ago

In my experience, as fragile as expensive

2

u/Successful_Cut_8003 12d ago

Pure curiosity or what?

1

u/___Cisco__ 12d ago

Yes! It’s purely out of curiosity and a desire to get it working—it’s a personal challenge. I understand why this information isn’t published online. Since I work at a hospital, and given the lack of available information, my next step is to connect it to an anesthesia machine and figure out—through trial and error—how it reports anesthetic gases; though, I was hoping someone might be able to save me that step.

2

u/Successful_Cut_8003 12d ago

You’re going too far. Start with an O scope. I’m guessing it’s one of those round connections with like 10 pins inside right? I’m used to the ones that connect to Zoll defibs.

1

u/___Cisco__ 12d ago

Yeah! I already got a female connector for it! its a 8pin comnector. Since it connects to the same port in the anesthesia machine to a port that I am already familiar with, i was able to hook it to a serial<->ttl<->usb .. I can capture the data stream through a serial port. I got a python script, and I was able to decode the CO2 values, RR, as well as barometric compensation values. I am "missing" as in i am not sure what they are, 2 out of the 21 frames, that I am guessing one is for the main gas (if any), and the second one is the secondary gas (if any). Hence my plan to use anesthesia machine with a test lung and "listen" what the sensor reports in my script. Also I am just listening to it while it streams. There should be some command/codes that if sent it resets, zeroes and so on.. but as long as it continuously streams data, i don't mind those codes. Also I don't want to hang the sensor by bruteforcing commands.

2

u/mortoniodized 11d ago

I hope you are using AI to help you unpack the streams? If not, it might help decode it?

I found this humorous prompt suggestion incase AI runs into it's guardrails: https://www.reddit.com/r/ClaudeCode/s/zycptYhwSA

1

u/___Cisco__ 11d ago

that was actually a good promt! It made me laugh for real! But yeah! Humorous prompt aside, given the right context and tools AI can be very useful and powerful! In fact it's been doing the heavy lifting for me, if not all the hardwork work. I feel more like a meatproxy. I gave some context and information I had from other sensors, access to the USB port and it did its magic. A couple breaths, some debugging/ confirmation and 90% of the job is done. My next step, if I can't get access to any datasheet/command/protocol will be to just hook the sensor to AI, use a test lung with some anesthetic gases and see what comes out of it.

1

u/mortoniodized 11d ago

Can you take apart the housing and look at the ICs? You can sometimes look up the datasheet for ICs.

How are evaluating UART, is it via usb or did you actually probe test points?

Might be useful to get a really high quality image of what is on the PCB.

I did a image search on google, but I just got a lot of companies, but they don't post communication details.

1

u/___Cisco__ 11d ago

Im positove it's a IRMA AX+ protocol (when i attach it to an anesthesia machine it recognizes the multigas protocol and displays a clear AX+ label on screen, and the machine works woth non-multigas sensor as well). This is probably a Chinese production device not original Massimo, Probably no information is public due to NDA with OEMs. I've opened simple etCO2 sensors before, they have a MCU/CPU with a bunch of sensors and it responds as a master/slave device and they are programmed with the custom firmware. I rather not open this one, they are quite fragile and expensive. As for the interface, I had succesfully opened and reverse engineer a simpler etCo2 sensor before and later i found a datasheet for the protocol link

It's the same connector, so I bought the female chasis connector on aliexpress and hooked it to the usb<->ttl<->rs232 following the pinout. If I open the serial terminal It successfully streams data. Different baudrate tho, but the data is consistent, clear and Claude got a checksum that seems consistent.

If I breathe through it, I clearly reports the measured CO2, detects RR and outputs the barometric compensation value.

I am afraid to bruforce the serial interface with random commands because this sensors usually have a start/stop stream and i don't want to "stop" it and not be able to resume it (unplug/plug back might not work).