## 5 Use Cases
### Assisted Parking  
This outdoor demonstrator [37; 55] aims to provide a smart parking implementation in which the users can reserve, manage and monitor the state of the available car slots in the application scenario, so that a more efficient control of the parking space is carried out by using a wireless sensor network created through the proposed WSN-DPCM toolset. Figure 23: Application scenario for the smart parking demonstrator. The target scenario for the deployment of the WSN-based demonstrator was a car park space of the Escuela Tecnica Superior de Ingenieros Industriales (ETSII) as shown in Figure 23, which is an engineering school that belongs to the Universidad Politecnica de Madrid (UPM), in Spain. The overall architecture of the proposed WSN for monitoring and controlling the smart parking demonstrator is shown in Figure 24.  
The prototype comprised a WSN with 14 nodes and one root device. The hardware elements that composed the deployment are based on the following items:  
* Sensor nodes: the Inetsis platform was used as the sensor devices for measuring and processing the occupancy of the car slots in the parking scenario. They have a TelosB-like design including IEEE 802.15.4 radio communication modules and a low-power MCU for local processing. * Gateway device: it includes the low-rate communication protocol for gathering run-time information from the WSN and provides a remote connection to the distributed sensors by using Ethernet/Wi-Fi communication. An embedded PC was installed with a sensor node connected as the root of the network. * Server: the server side refers to a distributed array of different machines that provide the WSN-DPCM support services as well as the remote commissioning capabilities of the system. In addition to these, the top-level user application services are also provided regarding parking reservation and monitoring capabilities. * CMT-HH: The Hand-held device was used to carry out the deployment, configuration and in-field performance evaluation of the sensor network at the target area. Regarding software implementation, several elements can be distinguished within the developed prototype as outputs of the WSN-DPCM toolset application development. First, the embedded software that runs on the sensor platforms was obtained from the integration of the middleware functional blocks, as a result of code generation during the development stage of the system. Secondly, the capabilities of the CMT-HH were used to analyze and optimize the in-field deployment of the sensor network considering the generated planning and simulation models for this particular scenario, in addition to providing run-time on-site verification of sensor implementation and communication capabilities. CMT-HH, Gateway and CMT Server sides included the corresponding middleware interfaces to properly interact with the distributed nodes in real time. Figure 24: WSN infrastructure for the Smart parking demonstrator scenario. Last but not least, in order to provide a user-level smart parking application, additional elements were implemented to emphasize the usability of the demonstrator from the user perspective. In this context, the car parking space was controlled using a designed Android application for Smartphones, in which the users can reserve specific slots as well as to monitor the occupancy state and availability of the places in real-time. As shown in Figure 25, such capabilities were supported using a communication infrastructure composed of a parking management server that retrieved information from the CMT Server, and then provided web-based services to the users of the parking application. The design of the service network for this real-world application scenario was entirely done using the WSN-DPCM Platform's services and tools.