In my previous post, I got my garage and gate openers into HomeKit by keeping the LiftMaster 828LM gateway’s stock firmware intact (mostly) and replicating its MQTT server in a local Homebridge plugin.
While my project was technically done, I still wanted to learn about the myQ RF protocol. In this follow-up, I walk through how I automated the process, removing myself completely from the reverse engineering iteration loop by letting the agents control and monitor the hardware under development.
I focus here on the hardware setup and assembling the artifacts the agents needed to trace logic from raw disassembled firmware back to reconstructed C. The full details of reverse engineering the RF protocol deserve their own post. At a high level, the 900 MHz myQ link wraps Security+ 2.0-encoded payloads (fixed ID, command/status data, and a 28-bit rolling counter) inside a 50-channel frequency-hopping GFSK radio layer with its own short wake and beacon frames. The good news for this project was that the Security+ 2.0 payload encoding had already been reverse engineered in the ratgdo project, so I didn’t have to crack that part from scratch. The hard part was the 900 MHz radio framing, hopping, and handshake timing.

Test rig with garage opener logic board, Flipper Zero, and HackRF
Decompiling the firmware
My early attempts at source code reconstruction used Ghidra with moderate success, but Opus 4.8 had a hard time staying focused and working toward the goal. Often it would write C code that looked plausible but deviated significantly from the disassembly, despite my hard rule to trace all reconstructed C back to the disassembled instructions.
I was able to get the network stack and a basic HTTP server working, and replicate the LED behavior of the stock firmware. The radio stack and RF protocol remained elusive, mostly because I lacked the RF knowledge needed to steer the agents in the right direction.
Orchestration harness
To make reconstruction more deterministic, I adapted the Agent4Decompile paper (Constraint-Guided Multi-Agent Decompilation) into an agent orchestration harness for this project. The paper’s workflow loops through syntax, compiler, and execution checks, feeding failures back to the agents until the recovered C matches the binary. Because it was designed for x86/Linux executables using gcc and stdout comparisons, we had to translate the concepts to a raw 128 KiB PIC18 binary: Microchip XC8 compile and memory-budget gates, host-side semantic tests against register and memory effects, and a supervisor loop that recovered and validated one function at a time.
I set up the harness with an orchestrator and parallel worker agents. The function-by-function grind burned too much time, compute, and tokens to produce a full drop-in firmware replacement, but it still gave me working code and critical artifacts from the binary. Across hundreds of commits and over 450 recovered functions, it linked an image that booted through DHCP, TLS, and MQTT on the 828LM. For the RF side, it pulled out the exact Si4432 radio settings (GFSK modulation, ~96 kbps data rate, sync words, and CRC-16), the 50-channel hop table, the short and long frame layouts, the 28-bit rolling-code logic, and the EEPROM layout for paired openers.
Those parameters gave me the reference I needed to decode my SDR captures, and the effort made one limitation clear: static disassembly and host tests could explain how packets were structured, but not the live over-the-air timing and handshake behavior.
Fun with SDRs
With the network stack, I had tcpdump captures to check my reading of the assembly against. I could watch the gateway get an IP address over DHCP, then see it connect to the server and start the TLS handshake.
For the RF stack, I needed to see what the gateway sprayed over the air. I’d already recorded it with a Nooelec RTL-SDR dongle tuned to 915 MHz, which only gave me a narrow slice of the 902–928 MHz band. I’d also tried the sub-GHz apps on the Flipper Zero, but its Texas Instruments CC1101 transceiver can only listen on one channel at a time. I could catch a burst, then miss the reply as the gateway and opener hopped across 50 channels.
HackRF
I settled on the HackRF. Its wider capture bandwidth could grab a dozen channels at once, and the PortaPack H4M kit goes for about $185. Some of the other options I looked into were too rich for my blood: the LimeSDR Mini 2.0 is around $600, and the Ettus USRP B210 is pushing $2,400.
I naively had the agents request and analyze raw RF captures as they worked through the firmware. The garage pairing recording alone was just over 2 GB for 103 seconds. Every time an agent went back to that file to answer another question, my CPU got pegged at 100% from running the analysis scripts.
Organizing RF captures
Instead of vibing my way through this, I regrouped to assemble clean captures and parse them once into structured JSON. The goal was a single source of truth so the agents could query the decoded data directly, rather than repeatedly re-running Python scripts against gigabytes of raw I/Q samples.
Since the 828LM is a network-connected RF bridge, I wanted to see what happened on both sides of it at the same time. For the garage pairing session, I ran tcpdump while the HackRF recorded, then converted both captures into a pair of structured JSON files: one for the parsed tcpdump traffic and one for the decoded RF frames. Using tcpdump as the master clock, I lined up the RF bursts against the recording’s start time so the network and radio timelines matched up.
Between the captures and the opener tests, I worked through these scenarios:
- Isolated Learn-mode traffic from the 828LM and the garage opener
- A complete pairing session between the 828LM and the garage opener
- Open/close commands for the garage and gate
- Light on/off commands
- A disconnected myQ light (my opener uses a wireless light accessory and throws a warning when unplugged)
- An obstructed door sensor
- Automatic reversal on an obstructed door
My first goal was to get my firmware to pair with the garage opener, and the stock gateway gave me a baseline to compare against. Twice in the same session, I saw an MQTT request to enter Learn mode, then heard the gateway start advertising over the air about a third of a second later. Below are condensed excerpts from the two JSON files for that pairing session: the parsed tcpdump timeline (serving as the master clock) and the corresponding decoded RF capture.
Parsed tcpdump JSON (condensed, times in seconds from the start of the RF recording)
{
"capture": "828lm_pairing_with_garage_door",
"rf_correlation": {
"mqtt_pairing_enable_s": [42.89, 71.99],
"gateway_advertising_s": [43.22, 72.34],
"opener_enroll_s": 79.10,
"mqtt_device_announcement_s": 79.36
}
}
Corresponding decoded RF JSON (excerpt)
{
"capture": "828lm_pairing_with_garage_door",
"hackrf_capture": {
"center_frequency_hz": 905000000,
"sample_rate_hz": 10000000,
"sample_format": "cs8 (interleaved int8 I/Q)",
"duration_s": 103.049,
"in_band_channels": "0..11 (12 of 50)"
},
"verification": {
"crc_valid_frames": 937
},
"enroll_frames": [
{ "t": 79.0992, "ch": 0 }
]
}
Reconstructing the radio stack and protocol was still labor-intensive, requiring me to flash the PIC18 MCU, push buttons on the garage opener, and issue commands to the 828LM gateway. In pairing mode, the gateway enters Learn mode, advertises over the air, listens for the opener’s Learn packets, and completes the handshake.
Early builds had incorrect initialization of the radio, and most of the remaining failures looked like timing issues when switching between listening and transmitting. I had some early success getting the 828LM to hear the Learn frame from the opener, but I couldn’t reliably finish the handshake.
All of this flashing had me worried about wearing out the MCU’s NVM. The PIC datasheet lists 100 erase/write cycles minimum and 1,000 typical per flash cell, which is not a lot. Besides the risk of burning out the chip, all of this trial and error was also painfully hands-on. Every iteration meant putting the 828LM into Learn mode, pressing the Learn button on the garage opener, capturing the RF frames between the two devices, and analyzing the captures to fix timing and framing bugs in the code.
Flipper Zero dev board
To avoid repeatedly flashing my 828LM, I built a daughterboard for the Flipper Zero using the same Silicon Labs Si4432 radio found inside the gateway. The plan was to work out the RF protocol on the Flipper Zero first, then port what worked back to the 828LM firmware. Technically, the Flipper’s built-in CC1101 transceiver could have been used here, but I didn’t want to introduce another variable into the mix and thought the radio stack code would be mostly portable to the PIC18. I initially ordered the wrong Si4432 breakout tuned for 433 MHz, so I had to wait a couple more weeks to get the required 915 MHz variant.

Flipper Zero and Si4432 breakout
That let me resume reconstructing the pairing flow without worrying about wearing out the gateway’s flash. Even so, progress was slow while I was still in the loop pushing buttons for the agents.
Automated test rig
To automate the loop and let the agents iterate on their own, I built a bench rig from a handful of parts:
- A sacrificial garage opener board sourced from Craigslist
- The Flipper Zero with the Si4432 daughterboard
- The HackRF for RF captures
- A Raspberry Pi 4 as the bench computer, with the HackRF and Flipper Zero connected over USB
- An IoT power outlet to power-cycle the garage opener board
- A laser-cut test fixture to hold everything together
I made the test fixture out of cardboard and mounted the opener logic board on standoffs, with a removable cover over the high-voltage AC terminals to avoid accidental contact.

Opener logic board mounted to the cardboard test fixture
Pressing buttons
To simulate pressing the Learn button, I wired the normally open contacts of a 5 V relay I had on hand across the logic board’s button pads.

Relay wired to the Learn button contacts
Reading the status LED
To monitor the board’s state, I pointed a webcam at it so the agent could observe the status LEDs, but that was slow and burned through tokens. The agents eventually ended up skipping the webcam entirely and just factory-resetting or power-cycling the opener board before resuming testing, but they were still guessing the state and did not have a clean way to determine if Learn mode was enabled and pairing had succeeded.
The Learn LED was the most useful signal for confirming the opener had entered Learn mode. Rather than reading it visually, I wired the LED into a simple sensing circuit on the Flipper Zero daughterboard so the Flipper could read it over GPIO.
At first, I assumed I could feed the voltage from the lit Learn LED straight into a Flipper GPIO pin as a logic high. I had it backwards: the LED tap sat at about 1.38 V with the LED on and 3.3 V with it off. Codex came up with a simple circuit using a 2N2222 NPN transistor and a few resistors to level-shift and invert the signal. At the Flipper input, I measured about 3.3 V with the LED on and 30 mV with it off.

Learn LED sensing circuit

Flipper protoboard with Si4432 breakout, 5 V relay connection, and LED sensing circuit. I use wire-wrap for quick solderless prototyping.
With the test rig complete, I was finally out of the loop. The agents could use the Pi to power-cycle the opener logic board, trigger the Learn button, and read back the LED state, with the HackRF ready to capture what went over the air.

The complete setup in action
Eventually, success
With Codex Sol running autonomously for a few days, I hit a couple of false starts where it claimed it had solved pairing, but I was not able to reproduce the Learn path.
At that point, I’d already spent about three months on the project, so I set it aside. When Astra came out, I was curious to see if the latest model could solve it.
Astra got the Learn path working in about two hours. I 100% did not believe the claim. I ran through the Learn steps on the Flipper app and paired it to the bench opener. The work done on the Learn path nailed down the right radio settings and timing for RX and TX, which made implementing open/close from the decoded RF captures straightforward.
I then asked Astra to try the Learn path using the Flipper Zero’s built-in radio. That worked on the spare board without much extra effort or blowing through my usage limits. With just the internal CC1101, the app paired, saved the pairing, read status, toggled the light on and off, and triggered open/close commands. Everything worked as expected.
Closing thoughts
Even though I had a working prototype, there was little value in continuing with custom 828LM firmware like I originally planned. The Homebridge setup with stock firmware worked reliably and has been stable for months. Proceeding with custom firmware would require more time and energy working out the bugs and getting it to behave as reliably as stock. There were no additional features I wanted that would even fit on the limited storage and RAM of this MCU.
Reverse engineering the RF side was a grind mostly because I knew almost nothing about RF, and the agents at the time still needed a lot of steering and hand-holding. Waiting just a few weeks for the next model was enough for that gap in my RF expertise to stop mattering. Seeing how fast these models are improving, and how quickly the need to steer them is shrinking, was the biggest takeaway from the whole project.