AI Is Better at Finding Patterns Than We Are

We asked Claude one question about a 16-device fleet. Here is what it found, and what it took to get the numbers right.

← Back to Blog
uLogger device metric charts for two sensors over the same night. On TS-0115 (firmware v2.1.0) battery voltage sags below 3000 mV and temperature samples stop for 11.5 hours. On TS-0103 (firmware v2.0.0) the battery sags just as low and temperature keeps reporting.
Battery voltage and temperature for two demo devices over the same night, from the uLogger device page. The labels and the shaded gap are added; the data is synthetic. Times are local (UTC−6).

A subset of your devices has stopped reporting temperature. Everything else about the fleet looks healthy.

You can guess where to look. The logs might show a sensor error. Battery voltage might be sagging. The affected devices might all be running the same firmware build.

None of those checks is hard on its own. The work is in connecting the answers, and the evidence usually sits in different places: a metrics graph, a log view, a list of firmware versions.

So we handed the whole question to an AI agent and watched what it did.

One Question, 16 Devices

The fleet is a demo: 16 simulated temperature sensors on two firmware versions, with synthetic data that we built to contain a failure. Claude was connected to uLogger through our MCP server and given the single prompt shown at the top of the capture below.

Claude's answer: a table of four devices on firmware v2.1.0 with each one's minimum battery voltage, skipped temperature samples and outage times, followed by two v2.0.0 devices that dipped below 3 V and kept reporting
Claude's answer, working through the uLogger MCP server. The 16-device fleet and its data are synthetic, built to contain this pattern.

It named the four affected devices, all on firmware v2.1.0, and listed each outage with its start and end time. It quoted the log lines those devices write during an outage: a sensor read timeout, then a skipped temperature sample.

Then it checked something we had not asked about. Two devices on the older v2.0.0 firmware also dipped below 3 V, and both kept reporting temperature. One of them went lower than three of the four affected devices. That observation moves the suspicion from the battery to the firmware. Low voltage is the trigger, and something that changed in v2.1.0 is the cause.

We planted that pattern, so the answer is not a surprise to us. The useful part is that the agent got there from a short question, without being told which devices were affected or that firmware had anything to do with it.

Where It Fell Short

The run was not flawless, and the setup flatters it.

  • Our first attempt got two numbers wrong. We first asked only the opening sentence of that prompt. Claude sampled the newest readings and reported that the two older-firmware devices dipped “to 2992 and 2987 mV”. Their real minimums are 2905 and 2932 mV. The conclusion was right both times, but the figures were only right once we told it to read the full series.
  • It still did not read everything. Its answer says so: it took the skipped-sample counts from the devices' own log lines instead of the temperature series, and it quoted no voltages for the ten healthy devices because it never read their battery data.
  • The data is clean. A simulated fleet has no flaky uplinks, clock drift, or half-deployed firmware. Real fleets do.

A correlation is also not a cause. The agent produced a hypothesis with evidence attached. Someone still has to open the v2.1.0 sensor driver and confirm it.

For the same workflow on a real fleet, see our fleet watchdog resets case study. A sensor maker with more than 250,000 deployed nodes used Claude Code and the uLogger MCP server to trace hundreds of daily watchdog resets to an SPI timing race, and reached the root cause in under an hour.

Why Pasting Logs Does Not Get You Here

Most of us already use an AI assistant for debugging. Find a device, open its logs, copy a few hundred lines, paste them in, and ask what looks suspicious. Then do it again for the next device, and export a CSV of metrics for good measure.

Split illustration: on the left an engineer copies fragments between many log, chart and spreadsheet windows through a clipboard; on the right an engineer asks one chat assistant, which retrieves metrics, logs and device data directly

That works, but you are choosing what the assistant sees. If you do not already know that battery voltage matters, or which night the problem happened, the evidence never makes it into the conversation. The assistant cannot reason about data it was never given.

Dashboards have the same limit. Each one answers a question somebody anticipated, and leaves you to connect a voltage graph to a log view to a firmware list across dozens of devices. An agent that can query the system itself can start from a question nobody built a dashboard for.

How Claude Reaches the Data

The connection uses the Model Context Protocol (MCP), a standard way for AI clients to call external tools. uLogger provides an HTTP-based MCP server that exposes its Data API as a set of tools. Setup instructions for Claude Code and other MCP clients are in the uLogger MCP server guide.

  • Observability: query firmware logs, device metrics, and log ingestion errors.
  • Crash diagnostics: group crashes by fault signature, list fault events, and fetch decoded core dumps.
  • Devices and firmware: list applications, device types, modules, and firmware versions.
  • Operations: push logging configuration to devices, create deployments, and retrieve the device certificate bundle.

The agent decides which tools to call and in what order. In our run it chose them itself and drew on both metrics and logs.

uLogger MCP architecture for AI-assisted embedded debugging Claude Code connects over HTTP to a stateless uLogger MCP server in AWS Lambda. The MCP server forwards authorized requests to the uLogger Data API, which accesses logs, metrics, crash data, firmware versions, device types, and modules. Embedded devices send operational data into uLogger. A separate MQTT path runs from the Data API to the devices to push logging configuration. AI-assisted embedded observability Claude Code Engineer asks a question Agent orchestrates tool calls uLogger MCP Server AWS Lambda · Stateless proxy Forwards Authorization to Data API uLogger Data API Tenant-authorized data access Existing API + rate limits HTTP MCP API request uLogger operational data Logs · Metrics · Crash data Firmware / artifact versions Device types · Modules Read / query Deployed devices Embedded firmware + sensors Logs and telemetry Device data ingestion Separate MQTT path: push logging configuration to devices AI uses returned context to plan the next query
The MCP server is a stateless bridge to the Data API. Devices send operational data into uLogger; device logging configuration is pushed separately over MQTT.

The MCP server is a stateless proxy hosted in AWS Lambda. It keeps no copy of device data and stores no credentials. It forwards the customer's uLogger API token to the Data API, where the usual tenant isolation and rate limits apply.

Most tools are read-only. Three are not: push_log_config changes logging on a live device over MQTT, create_deployment starts a firmware rollout, and get_certificate_bundle returns the device private key. Keep approval turned on for those three rather than letting an agent call them unattended.

What the Agent Needs From Your Firmware

An agent can only connect what the devices report. The firmware comparison in our run worked because every log record carried the firmware version. Without that field, the agent would have found the voltage dips and had nothing to compare them against.

uLogger log count charts for two devices over the same night. TS-0115 on firmware v2.1.0 logs every hour through its outage; TS-0103 on firmware v2.0.0 logs only a few lines.
Log volume for the same two devices, from the uLogger device page. The failing firmware reports its own sensor timeouts, which is what gave the agent a signature to find. Labels are added; the vertical scales differ.

The same goes for consistent device identifiers, trustworthy timestamps, and metrics with stable names. Instrumentation that was good enough for a person scrolling through logs may not be good enough for an agent joining three data sources.

The payoff is in where the time goes. Reaching a hypothesis worth testing is often the slowest part of field debugging, and it is mostly collection: finding the devices, the window, the logs. That is the part an agent can take on, which leaves the engineer to judge whether the hypothesis is right and what to do about it.

Continue the Series

This is the first article in a three-part series on AI-assisted embedded observability.

  1. Part 1: AI Is Better at Finding Patterns Than We Are — Why connecting operational data gives AI agents the context to investigate embedded systems.
  2. Part 2: 10 Embedded Debugging Questions Claude Can Answer in Seconds — Practical examples of using an AI agent to investigate deployed devices. (Coming soon)
  3. Part 3: Building an Embedded AI Workflow with Claude Code and uLogger — A hands-on guide to connecting Claude Code to uLogger through MCP. (Coming soon)

Give Your AI Agent Access to Your Embedded System

uLogger brings firmware logs, metrics, device information, and deployment data together — giving AI agents the operational context they need to help investigate real-world device behavior.

Explore uLogger and start building a better debugging workflow.