Difference between revisions of "Mihini/EclipseCon2013 Tutorial"

From Eclipsepedia

Jump to: navigation, search
(updating tutorial page: not a working page anymore but a reference to tutorial ressouces)
(tutorial resources update)
Line 3: Line 3:
  
 
Tutorial material is hosted at https://github.com/SierraWireless/eclipsecon2013-m2m-tutorial  
 
Tutorial material is hosted at https://github.com/SierraWireless/eclipsecon2013-m2m-tutorial  
 +
How to get it:
 +
* git clone
 +
* download zip file:
 +
https://github.com/SierraWireless/eclipsecon2013-m2m-tutorial/archive/master.zip
 +
 +
Once you've got the repo locally, you can browse tutorial material:
 +
 +
Especially:
 +
* *slides*: index.html at the root of the repo
 +
* *Code Solution* : /lab/mihi
 +
  (That's an Koneki project, so can import it directly in your IDE)
 +
  
 
== Goals ==
 
== Goals ==

Revision as of 14:53, 27 March 2013

Contents

Tutorial

EclipseCon 2013 Tutorial plan.

Tutorial material is hosted at https://github.com/SierraWireless/eclipsecon2013-m2m-tutorial How to get it:

  • git clone
  • download zip file:
https://github.com/SierraWireless/eclipsecon2013-m2m-tutorial/archive/master.zip

Once you've got the repo locally, you can browse tutorial material:

Especially:

  • *slides*: index.html at the root of the repo
  • *Code Solution* : /lab/mihi
 (That's an Koneki project, so can import it directly in your IDE)


Goals

Show Mihini

  • show key APIs such as logging, sched, airvantage, devicetree, (sms?)...
  • show how it's easy to do I/O manipulation and wireless communication

Koneki for Mihini

  • show how Lua is easy to edit thanks to LDT tooling
  • show EE and remote development for Mihini

FUN!!!!!!

Key steps to reproduce the tutorial

Installation of Lua Development Tools (all-in-one bundle)

M3DA Server

tcp://m2m.eclipse.org:44900

Run you own instance:


End user android application

Running Mihini on RaspberryPi

Compile and run Mihini manually

Available instructions here

  • Copy (git clone?) the sources of Mihini on the Raspberry Pi
Note.png
TODO
Provide a copy of the git repo on the USB stick???


  • Compile Mihini (and its Lua VM)
  • Brief presentation of the defaultconfig ; tweak the few settings that will simplify development


Setting up the Arduino

Exact Demo arduino code is in --> 
instalation of the Modbus stack --> https://github.com/kartben/mihini-greenhouse-demo/tree/master/SimpleModbusSlaveExample


Hardware

The main hardware will be a Raspberry Pi (running Mihini) connected to an Arduino ; the Arduino itself being connected to several sensors/actuators.

Bill of materials

Item Qty
Raspberry Pi 1x
Arduino Uno 1x
Grove kit or equivalent 1x
Micro USB cable 1x
4GB SD card 1x
USB 1A power supply 1x
USB A-B cable 1x
Wifi dongle (Netgear WNA1000M-100FRS)* 1x
  • this might not be the best option for the US market (sounds look it is way more expensive than in Europe?)


Ordering everything from Adafruit would be: