3. 3
1. Project specification
The projecthas to implement a distributed control system for monitoring clients
via GPS.
Components of the system:
Server (1 instance)
A Java Enterprise(J2EE) application dealing with the saving of acquired positions
into the database. This application will also read logged data from the database
upon request from the Monitor (web interface).
Client (n instances)
A mobile platform(J2ME, Android,IOS)application dealing with reading position
coordinates from mobile device and sending them to the server. Sending of
information will be done periodically (ex.: Synchronously - Every 5 minutes) or
upon a button press (Asynchronously).
Monitor
A web application implemented regardless of used technology (HTML,
JavaScript, PHP, etc.) dealing with displaying position information of clients on a
Google Map. It has a simple login form for the administrator, who requests all
the position information using for a particular Client between two given dates.
All three applications are totally decoupled, they communicate using REST
services based on JSON.
7. 7
Client
Android application developed in Android Studio. It uses multidex
implementation, so that it can use the existing classes from the web service.
Android API Level 19 is used. The application can set a custom sending interval
and the client ID. The application also shows the date (Timestamp) of obtaining
the GPS coordinates, as well as the coordinates themselves. The client checks
before each sending attempt if there is active network connection or if the GPS
is on. If any of them is false, the application jumps to the corresponding settings
option, or quits (on Cancel). The app also quits on back button, while on pause it
continues to run in background in order to provide data towards the server.
The application was tested using an actual LG G2 D800 device, using Orange4G
internet. Theconnection was achieved byforwardinga specific portin the router
to which the server was connected. The static IP was embedded into the
application before make.
8. 8
Monitor
A web application implemented using HTML and JavaScript(jQuery). The
application is run on the same server as the web application. locationStorage is
used to pass information between admin.html and map.html.
http://localhost:19930/GPSMS/
Admin: ad
Pass: min