Real-World Integration Scenarios

opcgw enables seamless integration of LoRaWAN IoT sensor networks into existing industrial systems. Here are detailed use cases showing how the gateway solves real problems.


🌱 Smart Agriculture: Precision Field Monitoring

The Challenge

A large agricultural cooperative manages 50+ farms across multiple regions. Each farm has soil, weather, and equipment sensors distributed across 100+ hectares. Previously:

The Solution with opcgw

Architecture:

[Soil/Weather Sensors] → LoRaWAN Network → ChirpStack → opcgw → Farm Management System (Ignition)
(Wireless)                   (Coverage)      (Aggregation)  (Bridge)   (Visualization & Logic)

Implementation:

  1. Deploy 300 LoRaWAN soil sensors across farms
    • Soil moisture (%)
    • Temperature (°C)
    • EC/Conductivity (mS/cm)
  2. ChirpStack aggregates sensor data
  3. opcgw gateway bridges to existing FMS running Ignition
  4. Ignition dashboard displays real-time field map
  5. Automated alerts trigger when soil moisture < 30%

Configuration:

[[application]]
application_name = "Farm Network"
application_id = "farm-network"

[[application.device]]
device_name = "Field A - North Block"
device_id = "soil_sensor_001"

[[application.device.read_metric]]
metric_name = "Soil Moisture"
chirpstack_metric_name = "soil_moisture_pct"
metric_type = "Float"
metric_unit = "%"

[[application.device.read_metric]]
metric_name = "Soil Temperature"
chirpstack_metric_name = "temp_celsius"
metric_type = "Float"
metric_unit = "°C"

[[application.device.read_metric]]
metric_name = "Soil EC"
chirpstack_metric_name = "ec_ms_per_cm"
metric_type = "Float"
metric_unit = "mS/cm"

# ... repeat for 300 devices across all farms

Results:

ROI: Sensor network + gateway cost recouped in first season through water/fertilizer savings.


🏭 Smart Factory: Real-Time Equipment Monitoring

The Challenge

A mid-size manufacturing facility has 20 CNC machines spread across the shop floor. Current issues:

The Solution with opcgw

Architecture:

[Machine Sensors] → LoRaWAN → ChirpStack → opcgw → MES/ERP
(Vibration, Temp)              (Wireless)     (Bridge)

Sensors Deployed:

Implementation:

[[application]]
application_name = "Production Floor"
application_id = "production"

[[application.device]]
device_name = "CNC Machine 1"
device_id = "cnc001"

[[application.device.read_metric]]
metric_name = "Vibration Level"
chirpstack_metric_name = "vibration_g"
metric_type = "Float"
metric_unit = "G"

[[application.device.read_metric]]
metric_name = "Bearing Temperature"
chirpstack_metric_name = "bearing_temp"
metric_type = "Float"
metric_unit = "°C"

[[application.device.read_metric]]
metric_name = "Running"
chirpstack_metric_name = "machine_running"
metric_type = "Bool"

Integration with MES:

Results:


🌍 Environmental Monitoring: Urban Air Quality Network

The Challenge

A city health department wants to monitor air quality across neighborhoods. Goals:

The Solution with opcgw

Deployment:

Metrics Tracked:

PM2.5, PM10, NO₂, O₃, CO, Temperature, Humidity, Air Pressure

Integration:

[Air Quality Sensor Network] 
    ↓
[ChirpStack Aggregation]
    ↓
[opcgw Bridge]
    ↓
[Analytics Platform] → [Public Dashboard]
    ↓
[Alert System] → [Public Notifications]

Data Pipeline:

  1. Sensors report every 5 minutes
  2. opcgw exposes via OPC UA
  3. Analytics system subscribes to live data
  4. Trends detected → historical database
  5. Public API serves open data to residents

Results:


🏢 Building Automation: Energy Management at Scale

The Challenge

A 20-building commercial campus has:

The Solution with opcgw

Wireless Sensor Deployment (eliminate wiring costs):

Integration with BMS:

[Sensors] → LoRaWAN → ChirpStack → opcgw → Building Management System
                                     ↓
                          [Demand-Controlled HVAC]
                          [Energy Optimization]
                          [Fault Detection]

Automated Logic:

If room unoccupied for 15 min:
  → Set HVAC to standby
  → Dim lighting to 10%
  → Close blinds if temps allow

If temperature differential > 3°C for 10 min:
  → Alert maintenance team
  → Check for air leaks

Results:

Payback: Energy savings exceed sensor + gateway cost in year 2.


⚡ Renewable Energy: Microgrid Optimization

The Challenge

A community solar cooperative with:

The Solution with opcgw

Real-Time Microgrid Control:

[Solar Inverters] → LoRaWAN → ChirpStack → opcgw → Energy Management System
[Battery Units]                                ↓
[Grid Meters]                        [Optimization Engine]

Monitored Parameters:

Optimization Logic:

  1. Solar peak hours: Charge batteries, power loads, export excess
  2. Cloudy periods: Use battery, minimize imports
  3. Night time: Use battery first, then import
  4. Grid stress: Support grid with battery discharge
  5. Faults: Disconnect from grid, island mode

Results:


🚛 Logistics: Asset Tracking & Condition Monitoring

The Challenge

A logistics company moves temperature-sensitive goods (pharmaceuticals, food). Issues:

The Solution with opcgw

Wireless Sensor Packages:

Real-Time Visibility:

[Shipment Sensors] → LoRaWAN → ChirpStack → opcgw → Logistics Platform

Integration:

Results:


Common Success Patterns

Across all use cases, opcgw provides:

  1. Wireless First: LoRaWAN eliminates wiring costs/disruption
  2. Real-Time Integration: Live data in existing systems
  3. Standards-Based: OPC UA works with any SCADA/MES/analytics
  4. Low TCO: Simple architecture = easy to maintain
  5. Scalable: Hundreds of devices, minutes to add more

Getting Started With Your Use Case

  1. Identify Sensors: What data do you need?
  2. Plan LoRaWAN: Existing network or new deployment?
  3. Map to OPC UA: Which systems will consume data?
  4. Configure opcgw: Define applications → devices → metrics
  5. Integrate Target System: Wire OPC UA into SCADA/MES/Analytics
  6. Monitor & Optimize: Tune polling intervals, validate data quality

Ready to build? Start with the Quick Start Guide.

Have a specific use case? Open an issue or start a discussion.