my water purifier has a subscription. not the filters. the ability to keep using the thing.
on 13 november 2026, my unit reported a validity date of 15 november 2026. two days away. so i opened a chat with my coding agent and asked it to look at the purifier’s bluetooth connection.
by the end of the session, the device thought it was 1 january 2025.
the expiry date hadn’t changed. the clock had. those are different things, and that difference is most of this story.
first, build a bluetooth tool
there wasn’t a useful BLE cli already installed on the mac. there was swift, though, so the agent wrote a small command-line tool around CoreBluetooth.
scan, connect, enumerate services, read characteristics, write bytes, listen for replies. nothing especially magical. also not especially smooth: compile errors, a missing UUID guard, and an object getting deallocated before its callbacks could run. the usual experience of writing software, just happening inside a chat.
the purifier exposed a small interface: a write characteristic and a read/notify characteristic. no pairing or bonding was needed for the connections we made.
connecting was the easy part. understanding anything was not.
the initial reads looked like encrypted noise. subscribing and waiting produced silence. speculative writes got acknowledged by bluetooth but produced no useful response.
that last bit matters. an acknowledgement from the transport means the bytes arrived. it doesn’t mean the purifier understood them, accepted a command, or did anything at all.
the android app was the documentation
we spent a while trying to guess the protocol. that went about as well as guessing usually goes.
the useful turn was getting a copy of the vendor’s android app. after decompiling it with jadx, the agent found the BLE service, encryption helpers, command builders, and response models.
suddenly the random bytes had context.
the app spoke JSON over an AES-encrypted BLE channel. it included commands for device information, status, reading the real-time clock, and setting it. the cryptographic material needed to implement the exchange was recoverable from the app.
there were also two protocol generations. the older one used a static key without a session handshake. the newer one added a challenge, a derived session key, and a checksum. figuring out one did not automatically make the other work.
so this wasn’t “bluetooth has no encryption”. it had application-level encryption. the question was whether that encryption distinguished an authorised controller from someone who could inspect the same app.
for the exchanges we tested, we could reproduce what the app did without logging into a vendor account.
silence is not a protocol specification
the connection was flaky. weak signal, dropped links, reads that didn’t complete. at one point the agent concluded that the older firmware didn’t support the clock query.
later, the same payload worked.
nothing about the command had changed. the earlier exchange had failed to produce a fresh answer, and we’d promoted that into a claim about the firmware.
this happened enough times to become the main debugging lesson: when the radio is unreliable, “nothing came back” is not the same as “unsupported command”.
another trap was reading a value and assuming it was the reply to the last write. sometimes it was just the previous buffer. a readable characteristic isn’t necessarily a fresh response.
the part we got wrong
there were two similar purifiers in range, and the BLE name i initially supplied turned out not to be mine.
we discovered that after the first clock change. the other unit’s clock was restored to current time and read back before proceeding with mine.
that’s a real mistake, not a fun discovery. being able to connect to a device doesn’t establish that it’s yours, and a name in a scan isn’t enough verification before a write. we should have established ownership first.
it’s also why i’m not publishing a ready-to-run controller or the keys here. the ability to reach an appliance from nearby is precisely the boundary this investigation exposed.
what actually changed
my unit reported its validity in a field called VA:
VA: 151126
interpreted day-first, that’s 15 november 2026.
we changed the device clock to noon on 1 january 2025. it answered with the new time. then we reconnected and independently queried the clock again:
RTCR: 12:00:16,01/01/25
sixteen seconds had elapsed. it wasn’t merely echoing the original command: the clock had retained the date across the connection and was ticking.
| before | after | |
|---|---|---|
| actual calendar date | 13 november 2026 | 13 november 2026 |
| device clock date | not independently captured for my unit before the write | 1 january 2025 |
| reported validity date | 15 november 2026 | 15 november 2026 |
| gap from calendar date / new device date to validity | 2 days | about 22.5 months |
we didn’t renew a subscription. we didn’t change the stored validity date. we moved the clock backwards.
what that proves, and what it doesn’t
the satisfying headline is “two days became twenty-two months”. the precise result is narrower.
we verified that the purifier accepted a clock change over BLE, retained it across a reconnect, and continued advancing from that date. its reported validity stayed unchanged.
we did not wait until after the real expiry date to prove that purification would continue. we didn’t establish every condition the firmware checks, test persistence through a power cycle, or prove the cloud couldn’t reset the time later.
if enforcement compares that local clock against VA, moving the clock back undermines it. the session gives a strong reason to investigate that design, not proof of twenty-two months of free service.
there’s a practical distinction between “i changed the input to a suspected check” and “i proved the whole check can be bypassed”. the final chat summaries got more confident than the measurements justified.
the agent was useful. the transcript was not infallible
this was a pretty good afternoon for a coding agent: it built a native BLE tool, traced an unfamiliar android app, implemented two protocol variants, and got a verified response from real hardware.
it also guessed wrong, mistook silence for evidence, and acted on the wrong device identity. the useful artifact wasn’t the confident summary at the end. it was the trail of commands, replies, corrections, and read-backs underneath it.
my takeaway isn’t that AES is useless or that every connected purifier has the same problem. it’s that encrypting a command doesn’t settle who should be allowed to send it. especially when that command changes the clock an appliance may use to decide whether it should work.
my purifier now thinks it’s january 2025. whether that buys anything beyond a very confused calendar still needs a longer test.