---
title: "IoT Connected Camera"
description: "Connected-camera reference application for an E1M-V2N101 / E1M-V2N102 / E1M-V2N103 SoM (Renesas RZ/V2N): camera capture → DRP-AI3 classification → MQTT/TLS publish + a local UI overlay. It frames `, , ,  and ` in one app."
source: https://docs.alplab.ai/sdk/examples/iot-connected-camera
---

# `iot-connected-camera`

Connected-camera reference application for an **E1M-V2N101 / E1M-V2N102 / E1M-V2N103** SoM (Renesas RZ/V2N): camera capture → DRP-AI3 classification → MQTT/TLS publish + a local UI overlay. It frames [`<alp/camera.h>`](https://docs.alplab.ai/sdk/api/camera), [`<alp/inference.h>`](https://docs.alplab.ai/sdk/api/inference), [`<alp/iot.h>`](https://docs.alplab.ai/sdk/api/iot), [`<alp/security.h>`](https://docs.alplab.ai/sdk/api/security) and [`<alp/gui.h>`](https://docs.alplab.ai/sdk/api/gui) in one app.

Source: [`examples/connectivity/iot-connected-camera/`](https://github.com/alplabai/alp-sdk/tree/main/examples/connectivity/iot-connected-camera).

:::warning[Skeleton — the pipeline is staged, not implemented]
The checked-in app is the **v0.1 skeleton**: it compiles under `native_sim/native/64` and its init flow walks through the stages with stubs. Camera capture with a local SSD1306 overlay is the next stage, and the full Wi-Fi + MQTT-over-TLS + LVGL pipeline — whose acceptance bar is 60 s on a real V2N EVK plus a broker, at least one inference published per second — is the target after that. The V2N EVK hardware scenario is parked. (Earlier versions of this page showed an A55/Yocto `board.yaml` with DRP-AI dispatch; that is not what the project contains.)
:::

## The intended pipeline

1. **Capture** — a CSI-2 camera frame through `<alp/camera.h>`.
2. **Infer** — a classifier on the on-die DRP-AI3 (4 TOPS) through `<alp/inference.h>`.
3. **Publish** — the top-1 result as a JSON payload over MQTT with TLS via `<alp/iot.h>`, plus a subscription for commands.
4. **Display** — a live preview + overlay through `<alp/gui.h>` (LVGL).

Wi-Fi credentials and the MQTT broker config are meant to come from a per-device JSON file written at factory provisioning; the example's `certs/` directory explains how to drop in a TLS CA and client certificate.

## `board.yaml`

```yaml
som:
  sku: E1M-V2N101

preset: e1m-x-evk

chips:
  - ssd1306
  - button_led

cores:
  a55_cluster:
    os: "off"
  m33_sm:
    app: ./src

diagnostics:
  log_level: info
```

Note that the checked-in project is **Cortex-M33-only** (`a55_cluster: os: "off"`). On V2N the DRP-AI3 runtime is A55/Linux-owned, so the inference stage of the finished pipeline needs an A55/Yocto app — the M33 slice cannot reach the NPU (see [`ai-object-detection-realtime`](https://docs.alplab.ai/sdk/examples/ai-object-detection-realtime#backend-availability-is-slice-scoped)).

## Build (host smoke)

```bash
cd alp-sdk
python3 scripts/gen_example_alp_conf.py examples/connectivity/iot-connected-camera
west build -b native_sim/native/64 examples/connectivity/iot-connected-camera \
    -- -DEXTRA_CONF_FILE=generated/alp.conf
```

## See also

- [`<alp/inference.h>` reference](https://docs.alplab.ai/sdk/api/inference) — DRP-AI dispatcher
- [`v2n-drpai-inference`](https://docs.alplab.ai/sdk/examples/v2n/v2n-drpai-inference) — DRP-AI3 inference from the A55
- [`<alp/iot.h>` reference](https://docs.alplab.ai/sdk/api/iot) — Wi-Fi + MQTT
- [`<alp/security.h>` reference](https://docs.alplab.ai/sdk/api/security)
- [Tutorial 11 — MQTT TLS publish](https://github.com/alplabai/alp-sdk/blob/main/docs/tutorials/11-mqtt-tls-publish.md)
- [Examples overview](https://docs.alplab.ai/sdk/examples/overview)
