Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

How to Create a Modern IIoT Monitoring Solution On iOS Using Swift, MQTT and InfluxDB

175 views

Published on

MOXIE IoT uses industry standards and cutting-edge technology to create a monitoring solution which provides their manufacturing customers with a single source of truth. Their iOS iPad app equips their customers to visualize and analyze industrial factory data in real time. Discover how they use a time series database, MQTT and Ultra-Wideband to accurately measure and track any object, device, personnel or machinery.

In this webinar, Dr. Austin Gurley will dive into:

MOXIE’s approach to app-centric asset monitoring
Their ability to help customers streamline operations while bridging the gap between hardware and software
How a time series database improves customer experience by enabling them to query, filter and parse their data
Techniques for performing Flux queries in iOS Swift

Published in: Technology
  • Be the first to comment

  • Be the first to like this

How to Create a Modern IIoT Monitoring Solution On iOS Using Swift, MQTT and InfluxDB

  1. 1. Creating a Modern IIoT Monitoring Solution Using iOS Swift, MQTT and InfluxDB
  2. 2. MOXIE IoT LLC 2 About Deft Dynamics Smart Materials Composite Structures Embedded Electronics Industrial IoT Tele-operated Robotics Embedded Intelligence Birmingham Venture Studio Giving Ideas a Pulse
  3. 3. MOXIE IoT LLC 3 Moxie IIoT Predictive UtilizationBusiness Insights Safety Downtime IoT Technology for all Industrial Teams • Operations - Utilization, downtime, safety • Maintenance - Service intervals, distance travelled, overload events • Technology Team - Predictive maintenance, business insights
  4. 4. MOXIE IoT LLC 4 MOXIEWORLD Combine Four IoT Technologies: • UWB Indoor Positioning • Real-time Stream (MQTT) • Historic Time-series Database (InfluxDB 2.0) • App-centric Interface (iOS Swift) To Provide Customer Benefits: • Low Latency (2-10 seconds) 3D visualization • Easily configured to help all your Teams • Create and manage projects in-App 3D Visualization Live/Historic Insights
  5. 5. MOXIE IoT LLC 5 Applications
  6. 6. MOXIE IoT LLC 6 UWB Indoor Positioning Anchor Fixed Reference Point Tag Mobile Tracker & Gateway Ultra Wideband • Mobile ‘Tags’ and Stationary ‘Anchors’ • 10 cm accuracy indoor positioning • 50m+ range • Combine with GPS for indoor/outdoor
  7. 7. MOXIE IoT LLC 7 MQTT • Publish/Subscribe Messaging • IoT Device Benefits • Low-Bandwidth (e.g. for CAT-M1 carrier compliance) • Safe keep-alive timing • on-disconnect events (LW&T) • Single Broker Supports • Thousands of Devices • Topic Filters safely isolate users • Easy to Host / Many 3rd Party Tools • Drivers for Py/C++/Java/… MQTT Broker Limited View Full Access View IoT Devices
  8. 8. MOXIE IoT LLC 8 Why InfluxDB? • Why InfluxDB? • Time-series for IoT (c.f. DynamoDB) • NOT end-to-end (c.f. AWS IoT) • Relevant data filtering unloads app • Why InfluxDB Cloud? • Manage accounts and access • Interactive query builder • Clear storage pricing (c.f. AWS)
  9. 9. MOXIE IoT LLC 9 iOS Swift • Why iOS? • Connecting to Real World devices • Focus energy on one platform • Tools for • 3D visualization • Map-based visualization • Input/Output (BLE / MQTT / etc.)
  10. 10. MOXIE IoT LLC 10 Technical Content Outline • ‘3D’ IoT Data • MQTT Stream • JSON – (MQTT explorer) • MQTT Transfer • EC2 – (python demo) • InfluxDB Backend • Demo query on ‘DB Cloud • InfluxDB in Swift • HTTP Post technique • Demo 3D query on App • Handling Range/ Combinations
  11. 11. MOXIE IoT LLC 11 IoT Data • Independent (X) • Time • Position • Dependent (Y) • Speed • Load • Voltage • Etc…
  12. 12. MOXIE IoT LLC 12 Network Layout Embedded System Moxie IoT Cloud iOS App MQTT Real time stream InfluxDB 2.0 Historic Data EC2/Python Sort/Filter + Transfer Flux Query Digital Twin Dashboard CSV MQTT Client WIFI LTE-M1 WIFI LTE / 5G Three Data Access Points for Customers 1. MQTT Stream (live, stream) 2. InfluxDB (historic, query) 3. App-Interface (digital twin, dashboard) Bandwidth MQTT: 240 bytes/update @ 1 Hz = 622 Mb/month/device Influx: 80 bytes/update @ 0.1 Hz = 20.7 Mb/month/device
  13. 13. MOXIE IoT LLC 13 MQTT Stream • MQTT Stream • Topic Organization • JSON Payloads – MQTT explorer / / / / Header per Project Account name used to filter each business Device Type Hardware Unique ID Packet Type JSON Payload (motor load)MW [Account] Tag [Tag UUID] UWB
  14. 14. MOXIE IoT LLC 14 MQTT Transfer (2/4) • Python Tools • Paho MQTT Client • InfluxDBClient • Process • Buffer incoming message by account (Bucket) • Transfer to InfluxDB Every X Seconds • Filter if desired (e.g. average, max) • Clear buffer
  15. 15. MOXIE IoT LLC 15 Storage & Query Design • InfluxDB 2.0 Cloud • Scheme • [bucket] = Account • _measurement = UUID • _field = value from JSON • Demo query on iDB Cloud • Problem with ‘1D’ queries: • How to align with position?
  16. 16. MOXIE IoT LLC 16 iOS Swift Query (1/3) • InfluxDB Query in Swift • UrlSession POST dataTask • CSV format • Closure return results
  17. 17. MOXIE IoT LLC 17 iOS Swift Query (2/3) • InfluxDB Query in Swift • UrlSession POST dataTask • CSV format • Closure return results • Helper Object for Manipulation • Create array of [FluxOperation] • Run sequentially to generate Flux query string
  18. 18. MOXIE IoT LLC 18 iOS Swift Query (3/3) • InfluxDB Query in Swift • Building Block Query Creation for User • Filter+Pivot Creates ‘3D’ Result: (value vs x,y,t) User Selected Combinations
  19. 19. MOXIE IoT LLC 19 Data Insights CNC Spindle Load at a Production Machine Shop • Determined spindles were overloaded when grease was cool in the morning • Optimize toolpaths to reduce 22% air time (tool changes and rapid feeds) Bridge Crane at Metals Distributor • Optimize pre-loading material locations • Adjust truck arrival schedule to balance shift workload
  20. 20. MOXIE IoT LLC 20 System Demo
  21. 21. MOXIE IoT LLC 21 Next Steps Next Steps with InfluxDB • User-defined InfluxDB Cloud Alerts • Rescaling data for long-term storage Next Steps in Product Evolution • LIDAR scanning for CAD models • UWB built-in on iPhone 11,12 • Long term • Cross-facility tracking (port to port) • App as interface for AGV and robots
  22. 22. 3029 4th AVE S. BIRMINGHAM, AL 35233 hello@moxieiot.com 1.205.907.0165 moxieiot.com

×