Difference between revisions of "POW"

From PaparazziUAV
Jump to: navigation, search
(Setup Tomcat 6)
(Setuo Apache 2)
Line 38: Line 38:
==== Setuo Apache 2 ====
==== Setuo Apache 2 ====
==== Link between Apache 2 and Tomcat 6 =====
==== Link between Apache 2 and Tomcat 6 =====
==== Enabling SSL features=====
==== Enabling SSL features=====

Revision as of 02:29, 28 July 2010

POW means Paparazzi On the Web. This software package provides a web interface for Paparazzi users. That allows user to watch and pilot a drone on a web browser via Internet.


File:Exemple.jpg <image de l'interface>

The system is based on Java technology. It is divided in 3 parts : one running on the ground station, and the others on a server machine.

< image du schema de base>

Server Side

A web server does the link between Paparrazi drones and web users. Data coming from drones are just reformatted by the server and sent to the different web users. The interface that web users have on their browser is a simple html and Javascript page hosted by the server. There is also a mysql database running on the server. This database is used mainly for logging purposes.

On Paparazzi side

Paparrazi drones are connected to the server via a software bus named ivy and a java application.

How to get POW source code ?

It is available on a subversion server.

   * The source for the ivy client (link between Paparazzi and Internet) is here : http://xxx
   * The source for the server (relay on the ground station) is here : http://yyy

Requirements and Installation

On server machine

Setup Tomcat 6

  1. You have to install 2 package : tomcat6 and tomcat6-admin : sudo apt-get install tomcat6 tomcat6-admin
  2. Then you have to create an admin account in /etc/tomcat6/tomcat-users.xml .
You just have to insert following lines :
 <role rolename="manager"/>
 <role rolename="admin"/>
 <user username="yourlogin" password="yourpassword" roles="admin,manager"/>
  1. Restart the server with sudo /etc/init.d/tomcat6 restart
  2. You can now access the 'Hello World' page : http://localhost:8080
  3. To install the server application, just open the admin page of the server : http://localhost:8080/manager. Now you just have to deploy the site which is packed into the file ServletPow.war

Setuo Apache 2

Link between Apache 2 and Tomcat 6 =

Enabling SSL features=

Setup MySQL =

On each Paparrazi system to connect to Internet

You need to have Paparazzi installed. That won’t be detailed here, I think you can find the instructions by yourself on this site. To Install the java programm which connects Paparazzi to the server, there are two steps to follow :

  1. Fetch the SSL certificate of the server
    • compile and launch InstallCert.java with the name of server as a parameter (ex : java InstallCert www.pow.fr).
    • That creates a file named jssecacerts that you have to copy into your jvm security folder (/usr/lib/jvm/java-6-xxx/jre/bin/security)
  2. Launch the module : you just have to start it with the command java -jar pow_ivyclient.jar

Note : To connect to the server a login and password are requested, ask the administrator of the server to have them.