collect sample data and send it to the server.25-2-2014