UDMI (Universal Device Management Interface)
The UDMI data source connects Mango to cloud IoT platforms using the Universal Device Management Interface specification. UDMI provides a high-level standard for the management and operation of physical IoT systems, typically exchanging data with a cloud entity that maintains a "digital twin" or shadow device in the cloud.
This module publishes Mango data points to a cloud IoT registry (ClearBlade, Google Cloud IoT / GBOS, or a custom MQTT broker) and keeps the cloud device shadow synchronized with real-time values from your connected equipment.
Overview
| Property | Value |
|---|---|
| Module | mango-udmi-module |
| Protocol | UDMI over MQTT |
| Direction | Publish (Mango → Cloud) |
| Supported providers | ClearBlade, GBOS (Google Cloud IoT), MQTT |
| Typical use | Sending Mango data to cloud IoT platforms for digital twins, remote monitoring, and analytics |
Prerequisites
Before configuring UDMI publishers, you need:
- The
mango-udmi-moduleinstalled on your Mango instance. - An IoT project set up in your cloud provider (ClearBlade, GBOS, or a self-hosted MQTT broker).
- A device registry and at least one device registered in that project.
- A private/public key pair for each device. Keys can be generated at UDMI Auth Key Generator.
- For MQTT providers: the CA certificate for the broker and a client certificate.
System Settings
Configure shared UDMI settings before creating publishers. Navigate to Administration > System Settings > UDMI.
| Setting | Description |
|---|---|
| IoT provider | CLEARBLADE, GBOS, or MQTT. Determines the cloud platform for all publishers using these settings. |
| Project ID | Your cloud project identifier. |
| Cloud region | Cloud deployment region (e.g., us-central1). |
| Registry ID | The IoT device registry identifier. |
| Site | Site name — usually the same as the Registry ID. |
Save vs. Save & Apply
- Save — Updates settings for new publishers only. Existing publishers keep their current configuration until restarted.
- Save & Apply — Clears all persistent connections and restarts any running UDMI publishers to apply the new configuration immediately.
Exporting the Site Model
Use the Export button to download the UDMI site model. The site model is used as input to the Registrar tool to register your devices in the cloud.
Creating a UDMI Publisher
Each UDMI publisher corresponds to one device in your cloud registry.
- Navigate to Data Sources and create a new data source, or open an existing data source that has the equipment you want to publish.
- In the data source, find the UDMI section and click Add Publisher.
- Configure the publisher as described below.
- Enable the publisher to begin sending data to the cloud.
Publisher Configuration
| Field | Description |
|---|---|
| Private Key (PEM) | Required. The device private key in PEM format. Used to authenticate the MQTT connection to the cloud broker. |
| Public Key (PEM) | Required for device registration and site model export. Paired with the private key. |
| CA Certificate | Required for MQTT providers. The trusted root CA certificate used to verify the broker's TLS certificate. |
| Client Certificate | Required for MQTT providers. The client certificate (may include intermediate certificates). |
MQTT Configuration Subscription
The toggle labeled Enable/Disable MQTT configuration subscription controls whether this publisher listens for configuration updates pushed from the cloud. When enabled, the cloud can push configuration changes to the device; when disabled, the publisher only sends data.
Device Logs
Log files for each publisher are stored in the Mango file store. Once a publisher is enabled, log files are created automatically. Enabling messageTrace causes Mango to store each config, state, and event message with its timestamp rather than only the last message per type.
Discovery
Platform Manager provides three discovery modes to help populate the UDMI site model and map Mango data points to UDMI device points.
| Discovery Type | What It Finds |
|---|---|
| iot | UDMI devices already configured in this Mango instance |
| vendor | Mango data sources — results can be used for UDMI point mapping |
| bacnet | Devices found via BACnet network scan (requires a BACnet local device configured in Mango) |
BACnet Discovery
To activate BACnet discovery for UDMI devices:
- Configure a BACnet local device in Mango (Administration > BACnet Settings).
- UDMI device entries are automatically updated with BACnet discovery capabilities.
- You may need to re-export the site model to get updated device metadata.
BACnet discovery runs once at startup, then reschedules itself every 60 minutes. After configuring local devices, wait for the next scan before the discovered devices appear in UDMI.
Test your BACnet local device configuration using the BACnet Device Browser.
Sequencer Testing
The UDMI Sequencer is a testing tool for verifying UDMI compliance. Mango generates the required device metadata for Sequencer tests when the following conditions are met:
| Test Case | Requirement |
|---|---|
writeback_invalid | The device has at least 1 published (non-settable) point |
writeback_success | The device has at least 1 settable point (see Virtual Data Source) |
writeback_failure | The device has at least 1 non-settable point |
single_scan, periodic_scan | A BACnet local device is configured and can discover at least 1 device |
Use the latest exported site model as input to the Registrar and Sequencer tools.
Troubleshooting
| Symptom | Likely Cause | Resolution |
|---|---|---|
| Publisher fails to connect | Invalid private key or wrong CA certificate | Verify keys were generated for the correct device and cloud provider. Re-generate if needed. |
| No data in cloud after enabling | Data points not mapped to the publisher | Confirm data points are assigned to the UDMI publisher. |
| BACnet devices not appearing in UDMI discovery | Local device not configured or scan not yet run | Configure BACnet local device and wait up to 60 minutes for the next scan. |
| "Save & Apply" causes brief data gap | All publishers restart on Save & Apply | Use Save (not Save & Apply) during active monitoring; apply changes during a maintenance window. |
Related Pages
- Data Sources Overview — General data source concepts
- BACnet Data Source — Required for BACnet discovery mode
- Virtual Data Source — Create settable test points for Sequencer writeback tests
- Platform Manager — Multi-site monitoring using the same device hierarchy