Pong

August 24th 2014, Test Run

August 24th 2014 Android Client | | August 27th 2014 Qt Android Activity

To test the Ping app on the road we need the following setup:

  1. An Android device with the described Ping app to walk abroad.
  2. A Pong server running on a computer with a static IP address, e.g. schorsch.efi.fh-nuernberg.de (see here).
  3. A desktop computer at home with the Poing application.

We let the apps interact with each other as follows:

  1. Register the Poing application with the server by entering the server address in the “Transmission server” dialog.
  2. Press the “Pair Client” button of the Poing application and write down the pair code.
  3. Register the Ping app with the server by entering the server address.
  4. Enter the pair code in the “Pair Code” dialog.
  5. If we see the status “client paired”, everything worked out well and we are ready to go.

Walking abroad:

  1. Enable GPS on your Android device and start the Ping app.
  2. Hide the app using the center Android button and just let it run in the background while walking abroad.
  3. While doing so the app will record the actual gps track and send it in csv chunks to the server, which requires a mobile internet connection, of course.
  4. If there is no connection, the csv chunks are queued until a internet connection becomes available.
  5. So you may or may not keep your mobile internet connection on, depending on available speed and costs.

Back home:

  1. If you disabled mobile internet, enable wireless at home and let the client upload the remaining queued data.
  2. Start the Poing app and let it download all the recorded data.

Basically we are ready and have all the recorded gps tracks stored safely in a sqlite database in the ~/download.sqlite path. But what to do with that:

  1. Dump the database using poing --dump2dir
  2. Then we have all recorded csv chunks in the ~/download/ folder.
  3. Import the csv tracks into a gps application of your choice.
  4. E.g. display the gps track by dragging and dropping the csv files into libMini’s qtviewer:
TestRun

Now that was the first major mile stone!

What is coming now? Testing the app on a prolonged vacation in Sardinia ;-)

August 24th 2014 Android Client | | August 27th 2014 Qt Android Activity

Options: