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
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. 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
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. 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. MOXIE IoT LLC
11
IoT Data
• Independent (X)
• Time
• Position
• Dependent (Y)
• Speed
• Load
• Voltage
• Etc…
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. 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. 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. 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. MOXIE IoT LLC
16
iOS Swift Query (1/3)
• InfluxDB Query in Swift
• UrlSession POST dataTask
• CSV format
• Closure return results
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. 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. 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
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. 3029 4th AVE S.
BIRMINGHAM, AL 35233
hello@moxieiot.com
1.205.907.0165
moxieiot.com