...
mangOH allows you to use existing open hardware Arduino compatible shields. There is an Arduino compatible connector that allows any Arduino shields to be plugged on top of the mangoh.There is an onboard ATMega32u4 chipset directly talking to the WP module.We have a prebuilt legato bridge application allowing seamless connection between the Arduino shield and WP module. We have a two way data exchange between the Arduino shield and anyother application connected to the mangoh. We also provide a couple of additional APIs that allow you to push the data to the cloud. For the Hackathon, the Arduino Legato app (called Arduino Bridge) talks to the ATmega chipset and takes care of the bringing data from arduino sensors into the WP module
b. Legato Open Source Embedded Linux Framework: An open source Linux-based embedded platform designed to simplify connected IoT application development. Using Legato Framework developers with limited hardware, wireless, embedded or cloud expertise can build applications easily.
...
- 2G/3G/4G CF3 WP modem
- WiFi /BT IoT IoT Expander card for Client or AP mode and to attach to BLE sensors
- Location sensing is provided by an on board GPS.
- Sierra Wireless Smart SIM
WiFi/BT IoT Expander Card
...
The APIs we will provide for building various IoT use cases include (but not limited to):
Legato API
- Communication MangerManager/Modem services : (http://legato.io/legato-docs/latest/legatoServicesModem.html)
- Location Sensing : (http://legato.io/legato-docs/latest/legatoServicesPositioning.html)
- WiFi: (http://legato.io/legato-docs/latest/legatoServicesWiFi.html)
- Data Router: (https://github.com/mangOH/DataRouter/blob/master/dataRouter.api)
- MQTT MQTT: ( https://github.com/mangOH/MqttClient/blob/master/mqtt.api)
- Misc API found at legato.io
...
- Grove Studio sensors based : Temperature, Humidity, Dust, Oxygen, Noise, Light, Sound. Tutorial : 4119370_mangOH Green Tutorial - Arduino to AirVantage_r1.pdf
- Bluetooth based: digital microphone, magnetic sensor, humidity, pressure, accelerometer, gyroscope, magnetometer, object temperature, and ambient temperature http://www.ti.com/lit/wp/swry023/swry023.pdf.
The platform architecture for the hackathon will involve the following applications :
- Arduino app: Gathering & publishing data provided by the Grove studio sensors
- BT app: Gathering & publishing data using the BLE based Sensor Tag sensors
- WiFi app : Used to provide connectivity either in client or AP mode
- Twitter app: To push data to twitter
- Data Router: Provides a way for the apps to publish and subscribe to data as well as pushes it to the AirVantage cloud using MQTT or LWM2M
- MQTT: Provides mechanism to push data to the cloud
- Smart City app: Subscribes to sensor data from BT and Arduino app. Publishes set of chosen data to Cloud
Sensors used in Hackathon and potential use cases
Sensor | Attached to | Detection | Some Use cases |
Dust | mangOH direct only | Particle detection. Reading is ppm | smart city, health for air quality |
Oxygen sensor | mangOH direct only | Exact value of Oxygen in the air. Reading is percentage | smart city, health for air quality |
Noise | mangOH direct only | Monitor noise pollution from traffic, industry, construction. Reading is analog value | smart city, health for sound pollution |
Light | mangOH direct & via Sensor Tag | Measure light as analog reading (direct attach to mangoh) or Lux (BT sensor) | Smart City (Dimm or turn on lights when no is there, save cost ) |
Accelerometer | Sensor Tag only | 3 axis acceleration detection in g | Smart vehicle (accident, speed, container shipment) for smart city, Smart health for accident |
Gyrocscope | Sensor Tag only | Used for angular measurements. deg/s | Smart vehicle (accident, speed) for smart city, Smart health for accident |
Barometer | Sensor Tag only | For height detection. Value is in hectopascal | Smart vehicle (dead reckong applications etc.), weather Smart health for wearables/ weather etc. |
Humidity | mangOH direct & via Sensor Tag | Humidity measurement in % | Smart city & smart health environmental |
Object temperature | Sensor Tag only | Infra Red Temperature measurement in C | Smart city infra red temperature monitoring |
Water | mangOH direct | Water presence. Reading is boolean | Smart city water management |
Ambient temperature | mangOH direct & via Sensor Tag | Temperature measurement in C | Smart city & smart health environmental |
Digital Microphone -> actuated | Sensor Tag only | Actuation of alert via sound | Smart city , smart health alarm |
LEDs -> actuated | Sensor Tag only | Actuation of alert via light | Smart city , smart health alarm |
Using the Hackathon Platform
There is an incompatibility between NetworkManager in Ubuntu 16.04 and the ECM interface on the mangOH Green. In order to bring up the interface, run the command sudo ifconfig enx1e1e131e3b4a up 192.168.2.3
Sierra will provide 16 completely assembled kits with the following:
...
- Creating a Cellular/WiFi Gateway : follow the tutorial section 5 4119378_mangOH Green Tutorial - Wi-Fi_r1 - Draft F.pdf
- Connecting to BlueMix: http://www.ibm.com/cloud-computing/bluemix/
...
In the system, in order to get data from mangOH you need to enter the following:
- Server: eu.airvantage.net port 1883
- Topic : IMEI/messages/json
- Server: eu.airvantage.net port 1883
- QoS: 0 (Default)
- Name: {Any desired text string} This is a text identifier for the MQTT Input Node
Match your input values for the following screen
User
- User name : IMEI# of your module (you got that from CM info command)
- password: SWI
Some users have reported problems consuming the payload once it is in Node-RED. The javascript below should help to avoid a couple of pitfalls.
var msgStr = '{"payload": "{\\\"arduino.water\\\": true}"}';
var msgObj = JSON.parse(msgStr);
var payloadStr = msgObj["payload"];
var payloadObj = JSON.parse(payloadStr);
alert(payloadObj["arduino.water"]);
For direct response to questions, please register on the forum at mangoh.io ( http://forum.mangoh.io/)