Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Mihini/EclipseCon2013 Tutorial"

Line 1: Line 1:
= Tutorial =
+
= Tutorial =
EclipseCon 2013 Tutorial plan.
+
 
 +
EclipseCon 2013 Tutorial plan.  
  
 
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:
+
How to get it:  
  
Especially:
+
*git clone
* *slides*: index.html at the root of the repo
+
<pre>git clone&nbsp;https://github.com/SierraWireless/eclipsecon2013-m2m-tutorial.git</pre>
* *Code Solution*:
+
*download zip file:
lab/mihini-tutorial-step3/
+
(That's an Koneki project, so can import it directly in your IDE)
+
  
 +
https://github.com/SierraWireless/eclipsecon2013-m2m-tutorial/archive/master.zip
  
== Goals ==
+
Once you've got the repo locally, you can browse tutorial material:
  
=== Show Mihini ===
+
Especially:
* 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
+
'''slides''':&nbsp;at the root of the repo <br>index.html&nbsp;
* show EE and remote development for Mihini
+
  
=== FUN!!!!!! ===
+
*
 +
'''Code Solution''':<br>lab/mihini-tutorial-step3/
  
== Key steps to reproduce the tutorial==
+
(That's an Koneki project, so can import it directly in your IDE)
  
 +
<br>
  
=== Installation of Lua Development Tools (all-in-one bundle) ===
+
== Goals  ==
  
 +
=== Show Mihini  ===
  
==== M3DA Server ====
+
*show key APIs such as logging, sched, airvantage, devicetree, (sms?)...
 +
*show how it's easy to do I/O manipulation and wireless communication
  
tcp://m2m.eclipse.org:44900
+
=== Koneki for Mihini  ===
  
Run you own instance:
+
*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 ==
  
=== End user android application ===
+
=== Installation of Lua Development Tools (all-in-one bundle)  ===
  
 +
==== M3DA Server  ====
  
=== Running Mihini on RaspberryPi ===
+
tcp://m2m.eclipse.org:44900
  
 +
Run you own instance:
  
==== Compile and run Mihini manually ====
+
<br>
  
Available instructions [[Mihini/Run_Mihini_on_an_Open_Hardware_platform|here]]
+
=== End user android application ===
  
* Copy (git clone?) the sources of Mihini on the Raspberry Pi
+
=== Running Mihini on RaspberryPi  ===
  
{{Note|TODO|Provide a copy of the git repo on the USB stick???}}
+
==== Compile and run Mihini manually  ====
  
* Compile Mihini (and its Lua VM)
+
Available instructions [[Mihini/Run Mihini on an Open Hardware platform|here]]
* Brief presentation of the defaultconfig ; tweak the few settings that will simplify development
+
  
 +
*Copy (git clone?) the sources of Mihini on the Raspberry Pi
  
 +
{{Note|TODO|Provide a copy of the git repo on the USB stick???}}
  
=== Setting up the Arduino ===
+
*Compile Mihini (and its Lua VM)
 +
*Brief presentation of the defaultconfig&nbsp;; tweak the few settings that will simplify development
  
Exact Demo arduino code is in -->  
+
<br>  
  
instalation of the Modbus stack --> https://github.com/kartben/mihini-greenhouse-demo/tree/master/SimpleModbusSlaveExample
+
=== Setting up the Arduino  ===
  
 +
Exact Demo arduino code is in --&gt;
  
== Hardware ==
+
instalation of the Modbus stack --&gt; https://github.com/kartben/mihini-greenhouse-demo/tree/master/SimpleModbusSlaveExample
  
The main hardware will be a Raspberry Pi (running Mihini) connected to an Arduino ; the Arduino itself being connected to several sensors/actuators.
+
<br>
  
=== Bill of materials ===
+
== Hardware  ==
 +
 
 +
The main hardware will be a Raspberry Pi (running Mihini) connected to an Arduino&nbsp;; the Arduino itself being connected to several sensors/actuators.
 +
 
 +
=== Bill of materials ===
  
 
{| border="1" cellspacing="0"
 
{| border="1" cellspacing="0"
! Item        !! Qty
 
 
|-
 
|-
| Raspberry Pi                                                           || 1x  
+
! Item
 +
! Qty
 +
|-
 +
| Raspberry Pi  
 +
| 1x
 
|-
 
|-
| Arduino Uno                                                           || 1x  
+
| Arduino Uno  
 +
| 1x
 
|-
 
|-
| Grove kit or equivalent                                               || 1x
+
| Grove kit or equivalent  
 +
| 1x
 
|-
 
|-
| Micro USB cable                                               || 1x  
+
| Micro USB cable  
 +
| 1x
 
|-
 
|-
| 4GB SD card                                               || 1x  
+
| 4GB SD card  
 +
| 1x
 
|-
 
|-
| USB 1A power supply                                               || 1x  
+
| USB 1A power supply  
 +
| 1x
 
|-
 
|-
| USB A-B cable                                               || 1x  
+
| USB A-B cable  
 +
| 1x
 
|-
 
|-
| Wifi dongle (Netgear WNA1000M-100FRS)*                                               || 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?)
+
*this might not be the best option for the US market (sounds look it is way more expensive than in Europe?)
  
 +
<br> Ordering everything from Adafruit would be:
  
Ordering everything from Adafruit would be:
+
*Raspberry Pi: https://www.adafruit.com/products/998 - 39.95USD  
* Raspberry Pi: https://www.adafruit.com/products/998 - 39.95USD
+
*Starter pack for Arduino: https://www.adafruit.com/products/68 - 65.00USD  
* Starter pack for Arduino: https://www.adafruit.com/products/68 - 65.00USD  
+
*Sensors (the ones provided in the budget pack)  
* Sensors (the ones provided in the budget pack)
+
*SD card: https://www.adafruit.com/products/102 - 7.95USD  
* SD card: https://www.adafruit.com/products/102 - 7.95USD
+
*Power supply: https://www.adafruit.com/products/501 - 5.95USD  
* Power supply: https://www.adafruit.com/products/501 - 5.95USD
+
*USB A-Micro: https://www.adafruit.com/products/592 - 3.95USD  
* USB A-Micro: https://www.adafruit.com/products/592 - 3.95USD
+
*USB A-B (the one provided in the budget pack)  
* USB A-B (the one provided in the budget pack)
+
*WiFi dongle: https://www.adafruit.com/products/814 - 11.95USD  
* WiFi dongle: https://www.adafruit.com/products/814 - 11.95USD
+
*TOTAL: 135USD
* TOTAL: 135USD
+

Revision as of 15:54, 27 March 2013

Tutorial

EclipseCon 2013 Tutorial plan.

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

How to get it:

  • git clone
git clone https://github.com/SierraWireless/eclipsecon2013-m2m-tutorial.git
  • 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: at the root of the repo
index.html 

Code Solution:
lab/mihini-tutorial-step3/

(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:

Copyright © Eclipse Foundation, Inc. All Rights Reserved.