## 4 Main Tools of the WSN-DPCM Platform
### Tool for Network Commissioning and Maintenance
#### Application Server and Network Long-Term Monitoring and Maintenance Tool  
Accompanying and complementing in-field deployment activities, an off-site application for network commissioners and network maintainers was developed to simplify remote, long-term commissioning of operative networks.  
Continuous monitoring and visibility over network data and events are key aspects taken into account by the CMT server modules and applications [52; 53; 54]. Together with the ability to change node behavior through remote partial reconfiguration, the ability to analyze network throughput are essential features for the validation process of a deployment and, even more, for corrective and preventive maintenance of long-lasting WSN networks.  
Figure 21: Overall software architecture and interfaces of the Commission and Maintenance Tool server component.  
CMT server modules retrieve from Project Repository different models generated in various phases of design and planning for deployment of the network and use them for automatic self-configuration. This capability allows a perfect alignment of the virtual and the physical worlds in a WSN deployment.  
The support offered by the CMT Server comprises a variety of modules that are integrated with and/or make use of key WSN-DPCM platform services and systems. Figure 21 shows an architectural view of the CMT Tool and its interfaces.  
At application-user level, the CMT Server suite provides an administrative web application UI (Figure 22), accessible from the Toolset run-time environment, which allows to remotely monitor and control the operation of the network for long-term analysis and maintenance. This web-accessible tool does not require specific expertise to be used by the people in charge with network deployment, while also providing the expert users with extended information on the network. Among the most important features provided are:  
* Data formatting and visualization procedures: Data from Sensors, Network Diagnostics (routing, RSSI/LQI), Node Diagnostics (battery level, status of operation), Communication metrics (packets TX/RX/dropped, congested links), Hand-held reported information.
* Support for remote reconfiguration of network nodes.
* Event/data logging and online data charts generation. Data reports export options.
* Configurable baseline of data inspection rules, associated to alarms and notifications.  
Figure 22: General view of the top-level interface of the Commissioning and Maintenance Tool Web Application.  
At a service level, the CMT Server enables a set of services to access the WSN-DPCM Platform Project Repository on the cloud (data models proxy service) and to collect real-time network telemetry data (sensor measurements, network status, node status parameters _etc._) The interaction model with the WSN-DPCM platform follows a model-driven approach, founded in web service communication APIs. These interactions include:  
* Model files retrieval from cloud-based Project Repository.
* Information exchanges with the Middleware run-time layer (data parameters, ACKs, data/ command requests), data consistency checks and storage.
* Collection and storage of deployment reports from CMT hand-held (HH) devices.
* Proxy service for the HH devices (digested network model download).  
To sum up, all CMT support services and in-field/off-site solutions combined represent a reliable set of software-based utilities provided by the WSN-DPCM toolset to assist network deployers and maintainers in the tedious task of installing, setting up, validating and optimizing a running WSN network, and to reduce the number of iterations with respect to the traditional trial-and-error approach.