Getting Started with CC2
Welcome to the Infrafon CC2 Developer Getting Started Guide. This document guides you through connecting your CC2 device, understanding MQTT downlink/uplink topics, and deploying your first custom DataView screen.
Prerequisites
Section titled “Prerequisites”Before starting, ensure you have:
- An Infrafon CC2 Device (serial / EUI number).
- Credentials to an MQTT Broker (TLS supported on port 8883).
- Access to the Dataview Designer.
Step 1: Connect Device to Network
Section titled “Step 1: Connect Device to Network”- Power on the CC2 device.
- The device enters Unallocated State (
U) if not yet assigned to an organization. - Configure Wi-Fi or LoRaWAN network parameters over USB CLI or provisioning payload.
- Verify connection status in the top status bar (Wi-Fi / MQTT icon turns solid).
Step 2: Understand MQTT Topics
Section titled “Step 2: Understand MQTT Topics”CC2 communicates using strict MQTT topic paths:
Downlinks (Cloud -> Device)
Section titled “Downlinks (Cloud -> Device)”infrafon/cc2/{devid}/downlink/dev-configinfrafon/cc2/{devid}/downlink/appUplinks (Device -> Cloud)
Section titled “Uplinks (Device -> Cloud)”infrafon/cc2/{devid}/uplink/dev-datainfrafon/cc2/{devid}/uplink/appStep 3: Deploy Your First DataView
Section titled “Step 3: Deploy Your First DataView”- Open Dataview Designer.
- Drag and drop widgets (Text String, Graphic Icon, Progress Bar).
- Export the generated JSON payload.
- Send the DataView JSON over MQTT downlink:
-
Topic:
infrafon/cc2/{devid}/downlink/app -
Payload:
{"cmd": "show","dataview": { ... }}
-
The CC2 screen updates immediately.
Next Steps
Section titled “Next Steps”- Explore MQTT Downlink Commands
- Learn DataView Concepts & Formatter Schemas
- Configure System & Network Telemetry