Data Pre-Processing on the FATBOX G3​ gateway before transmitting to cloud

Advantages

  • minimise network data sent to cloud apps

  • data correction

  • Allow critical response locally (i.e. switch on a pump if sensor indicates overflow)

Data Pre-processing Overview:

For firmware version 2.4.18 and later, we have integrated Ubidots client into our FATBOX G3, which enables our users to quickly deploy a seamless hardware to cloud equipment monitoring and analytics solution.

In many situations, we may want to pre-process the incoming sensor data, e.g. to filter out errornous data, compute averages or just maybe simply drop non-changing data to reduce bandwidth use. Also, we may want to do some critical response locally e.g. to switch ON a pump if water level sensor indicates overflow.

Data Pre-processing Tutorial:

 

We use Python 2.x (as of 2.4.18) and user can easily code their own data manipulation scripts in the code block below.

File ... /scripts/ubidots_client.py (Python 2.x)

#START :: Pre PROCESS sensor JSON data e.g. compute average, drop repeat values #json_field, Key for the data
#json_value, Value (in text) for the data
#json_timestamp, Timstamp in UTC Epoch (seconds)

#Sample USER codes
#
#END :: Pre PROCESS USER codes

An example, we want to drop all duplicated temperature values and only send when a change of temperature data is received.

#Var for Pre Processing

old_temperature = 0

 

#main service loop
..
#OPTION Pre PROCESS the sensor JSON data e.g. compute average, drop repeat values

#
#Sample USER codes
#OPTION DEFAULT post data to cloud provider Ubidots

       if old_temperature!=int(json_value) :

                 send_ubidots(json_field,json_value,json_timestamp)

                 old_temperature = int(json_value)

#END Pre PROCESS

..

The FATBOX G3

IMPLEMENTATION FEATURES OF THE FATBOX G3
  • Integrated device server for scheduled poll and read from attached equipment

  • Multi-port support - RS-232/RS-485 (e.g. MODBUS), Ethernet, CAN Bus and USB (for Zigbee/BLE/WIFI transceiver)

  • Integrated MQTT Client to connect to cloud services 

  • Azure IoT Hub client to integrate with your Azure cloud resources  

  • Ubidots IoT Client for integration with Ubidots Platform

  • User scripts supported for cross compile of C-program/ custom Python, LUA scripting 

  • 2GB of on-board storage 

  • Parse Time Series Data for analytical applications

  • SNMPv2 for management

  • Persistent LTE and 3G data connection with network watch-dog

  • Dual SIM & WAN-to-3G failover redundancies

  • Wide power supply 5~30VDC (12/24V) ensures stability of operation

  • Industrial temperature -40C to 75C and robust aluminium enclosure 

  • Weather resistant enclosure for wet or corrosive environments

BUY A GATEWAY ROUTER

E-commerce Shop

HARDWARE-AS-A-SERVICE

Leasing Plans

FAQ on leasing

PRODUCT CUSTOMISATIONS

Custom the G3

CONTACT US

Sales Enquiries

Technical Enquiries

Amplified Engineering Pty Ltd  

Suite 4 Enterprise Unit 3,

9 De Laeter Way,

Bentley WA 6102, Australia

ABN 44127163035