-
Notifications
You must be signed in to change notification settings - Fork 3
Building an experimental setup
This page gives an overview of how to setup an experimental setup or "testbed", consisting of
- Android smartphones using the AWARE framework as context provider and our demo application vstore-android-filebox
- Raspberry Pis as storage nodes
- One Raspberry Pi which acts as the master node.
- Setup a Raspberry Pi with the Raspbian OS (for help see the official documentation)
- The general setup instructions of a storage node environment (node.js, MongoDB) can be found in the README of the vstore-node repository.
Now each storage node has to be configured on its own. This happens in the first two lines of the file app.js.
You need to define
- The listening port of the server
- The type of the storage node. Possible types are
CLOUDLET
,GATEWAY
,CORENET
,CLOUD
orPRIVATE_NODE
.
That's it. Now you can run the storage node by typing node app.js
.
For installation and configuration of the master node, see the README of the vstore-master repository.
Installation of the software on Android requires the following steps:
-
Install the AWARE framework core
-
Install the AWARE plugins
-
Install our demo application vstore-android-filebox. Currently, this has to be done via Android Studio. Please change the URL of the vStore master in the
Application
class in the packagevstore.android_filebox
.
Important: Make sure that the address is correct. Otherwise, no rules and storage node information can be fetched.
Then press Run
to install the application on the device.
Now open the AWARE application on the phone and ensure, that all three plugins are activated. Then open the vStore application. On startup, it will fetch the global configuration from the master node.