5 Software design
The software for the monitor system comprises two parts: the phone
software (Fig. 8) and the server software (a standard Linux system).
The client and server communicate over the internet using HTTP
protocol, connecting through a standard mobile data network. Data
from the e-bike monitors is received by PHP scripts running in an
Apache 2 server, and stored in a MySQL database. There is a web
interface for exploring the data, discussed in more detail in Section
6. The code is available from a public online repository [5].
The design requirements in Section 3 stipulate that the phone
software needed to run using as little power as possible, and send