Recent Changes - Search:

Wiki

Documentation

Tutorials

Example Code

GettingStarted

Editing Tutorials.GettingStarted

Must enter valid code


Summary:
Author: This is a minor edit
Enter confirmation code before saving:

Basic editing - Text formatting rules - Documentation index

Tables: simple - advanced

Paragraphs: for a new paragraph, use a blank line;

Line break: \\ or [[<<]]

-> to indent text, -< hanging text

Join line: \

Lists: * for bulleted, # for numbered, :term:definition for definition lists

Emphasis: ''italics''   '''bold'''   '''''bold italics'''''   @@monospaced@@

References: [[another page]], [[http://example.com/]], [[another page | link text]], [[#anchor]], [[#anchor | link text]]

Groups: [[Group/Page]] displays Page, [[Group.Page]] displays Group.Page, [[Group(.Page)]] displays Group, [[Group/]] links Group homepage

Separators: !!, !!! for headings, ---- for horizontal line

Prevent formatting: [=...=]

Other: [+big+]   [++bigger++]   [-small-]   [--smaller--]   '^superscript^'   '_subscript_'   {+inserted+}   {-deleted-}

Preformatted: [@...@] or >>pre<<...>><<

Preview Tutorials.GettingStarted

Page is unsaved

This tutorial will explain how to get started using the MediaSense platform. In detail, it will provide a step by step instruction for running the examples and testing the MediaSense platforms basic functionality

Prerequisites
  • You will need to have the JRE, JDK, and a Java IDE installed.
  • You will need at least 2 machines, who are connected on the same network. (Preferably two computers on the Internet with public IP addresses.)

1. Download MediaSense

Download the latest MediaSene developer kit
Link to Download

2. Start up your IDE

You can use your any of favorite IDE's for developing Java development.
We suggest either Eclipse or NetBeans

3. Run the sensor source example

Download the Sensor Source Example code from here
Create a new project for the sensor source example, copy in the example code.
Change build path to use the MediaSense platforms jar file.
Change the UCI in the register call, to something that is unique for you. Example "alice@operator.com/sensor"
Run the sensor source program on one of the machines.

4. Run the sensor sink example

Download the sensor sink example code from here
Create a new project for the sensor sink example, copy in the example code.
Change build path to use the MediaSense platforms jar file.
Change the UCI of the resolve, to match the UCI you used for your sensor source.
Run the sensor sink program on the other machine.

5. And it works!

Observe how the sink resolves the UCI of the sensor source to its IP address.
Observe how the sink afterwards creates a peer-to-peer session with the sensor source and retrieves the latest sensor value.

6. Create your own project

Now you should be able to create your own simple projects or applications using MediaSense.
MediaSense even runs on Android!

End of preview -- remember to save
Top

Edit - History - Print - Recent Changes - Search
Page last modified on February 25, 2014, at 11:00 AM