[MpOS Framework] (http://mpos.great.ufc.br)
This guide will provide you all the steps to download, import and run the BenchImage application, which can be used to demonstrate MpOS functionalities for both Android and Windows Phone platforms.
In this tutorial you'll see how to run BenchImage app with MpOS
- Clone the MpOS project from github
- Windows 8.1 (x64) Professional (for Linux and Mac OS X only Android side works)
- Android side:
- Eclipse Platform 4.2.1v with ADT 23.0.x
- Oracle Java SDK 8.x (for any OS)
- Android SDK installed (API 19 or above)
- Windows Phone side:
- Visual Studio Professional 2013 (with Update 4) or Community 2013 (not tested)
- Visual Studio SDK 2013 (with Update 4)
- Windows Phone emulators (need Win 8.1 x64 Pro with client Hyper-V installed)
Open Eclipse ADT and follow this steps (jump to next section if you know how to import in eclipse)
Import -> Android -> Existing Android Code Into Workspace
Browser the path where Project was cloned '<cloned_path>/android' and click on "OK" button
Selected the “BenchImage2” and “MpOS API” to import and click on “Finish” button
In each project “BenchImage2” and “MpOS API” go in Properties -> Android -> Selected
"Target Name: Android 4.x" and click on "OK" button
You’ll see the projects “BenchImage2” and “MpOS API” on eclipse workspace. In BenchImage2 has an MainActivity to start the mobile app.
Note: In order to test the ‘BenchImage’ application, it is recommended to use a device with Android 4.0.X or above, because of the multicast-based discovery system. Emulator is not recommend either.
-
Browse the path where the project is located.
-
Enter in the “windows_phone” folder.
-
Click on “MpOS.sln” in order to open the project on VS 2013.
Note: For test the BenchImage2 app is recommended to run in device using the Windows Phone 8.x or above.
- Browse the path where the project is located:
cloned directory -> folder "plataform" -> folder "executables"
configure the machine IP in config.properties "cloudlet.interface.ip"
-
Open Prompt (or console) and navigate again to “executables” folder
-
Execute this command:
java -jar mpos_plataform.jar
Note: To kill the application on Prompt is using the “Ctrl+C”.
Note2: You should check the firewall permissions to allow mpos_plataform.jar to run properly. And also if the wireless access point supports multicast protocol.
Execute BenchImage on Android using the Eclipse ADT and on Windows Phone using the VS 2013. When you load the mobile app, selected on:
“Filtro” -> Original to Cartoonized;
“Processamento” -> Local to Cloudlet;
Press “Inicia” to starting the offloading application and as resulting you’ll see the figure with cartoonizer filter.
Note: On system monitor maybe you’ll see the high network activity and fast app executing when compared with “Local” executing on “Processamento”.
Note: On MpOS Plataform CLI, you’ll be able to see the multicast and deployment services working. And you’ll also able to see a high network activity when the offloading system is working. Depending on the mobile device, execution environment and network conditions, the filter should be executed faster outside of the mobile device (Cloudlet or Internet).
In general, we follow the fork-and-pull git workflow:
- Fork the repository on GitHub
- Commit changes to a branch in your fork
- Pull request "upstream" with your changes
- Merge changes in to "upstream" repository
Copyright (C) 2014 Philipp B. Costa
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.