{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,2]],"date-time":"2026-05-02T06:40:48Z","timestamp":1777704048767,"version":"3.51.4"},"reference-count":40,"publisher":"MDPI AG","issue":"2","license":[{"start":{"date-parts":[[2022,2,15]],"date-time":"2022-02-15T00:00:00Z","timestamp":1644883200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Future Internet"],"abstract":"<jats:p>Many innovative services are emerging based on the Internet of Things (IoT) technology, aiming at fostering better sustainability of our cities. New solutions integrating Information and Communications Technologies (ICTs) with sustainable transport media are encouraged by several public administrations in the so-called Smart City scenario, where heterogeneous users in city roads call for safer mobility. Among several possible applications, recently, there has been a lot of attention on the so-called Vulnerable Road Users (VRUs), such as pedestrians or bikers. They can be equipped with wearable sensors that are able to communicate their data through a chain of devices towards the cloud for agile and effective control of their mobility. This work describes a complete end-to-end IoT system implemented through the integration of different complementary technologies, whose main purpose is to monitor the information related to road users generated by wearable sensors. The system has been implemented using an ESP32 micro-controller connected to the sensors and communicating through a Bluetooth Low Energy (BLE) interface with an Android device, which is assumed to always be carried by any road user. Based on this, we use it as a gateway node, acting as a real-time asynchronous publisher of a Message Queue Telemetry Transport (MQTT) protocol chain. The MQTT broker is configured on a Raspberry PI device and collects sensor data to be sent to a web-based control panel that performs data monitoring and processing. All the architecture modules have been implemented through open-source technologies. The analysis of the BLE packet exchange has been carried out by resorting to the Wireshark packet analyzer. In addition, a feasibility analysis has been carried out by showing the capability of the proposed solution to show the values gathered through the sensors on a remote dashboard. The developed system is publicly available to allow the possible integration of other modules for additional Smart City services or extension to further ICT applications.<\/jats:p>","DOI":"10.3390\/fi14020057","type":"journal-article","created":{"date-parts":[[2022,2,15]],"date-time":"2022-02-15T22:43:22Z","timestamp":1644965002000},"page":"57","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":40,"title":["Open-Source MQTT-Based End-to-End IoT System for Smart City Scenarios"],"prefix":"10.3390","volume":"14","author":[{"given":"Cristian","family":"D\u2019Ortona","sequence":"first","affiliation":[{"name":"Department of Electrical, Electronic and Information Engineering \u201cGuglielmo Marconi\u201d, University of Bologna, 40136 Bologna, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7338-1957","authenticated-orcid":false,"given":"Daniele","family":"Tarchi","sequence":"additional","affiliation":[{"name":"Department of Electrical, Electronic and Information Engineering \u201cGuglielmo Marconi\u201d, University of Bologna, 40136 Bologna, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1250-2476","authenticated-orcid":false,"given":"Carla","family":"Raffaelli","sequence":"additional","affiliation":[{"name":"Department of Electrical, Electronic and Information Engineering \u201cGuglielmo Marconi\u201d, University of Bologna, 40136 Bologna, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2022,2,15]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Rayes, A., and Salam, S. (2019). Internet of Things from Hype to Reality\u2014The Road to Digitization, Springer. [2nd ed.].","DOI":"10.1007\/978-3-319-99516-8"},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Belli, L., Cilfone, A., Davoli, L., Ferrari, G., Adorni, P., Di Nocera, F., Dall\u2019Olio, A., Pellegrini, C., Mordacci, M., and Bertolotti, E. (2020). IoT-Enabled Smart Sustainable Cities: Challenges and Approaches. Smart Cities, 3.","DOI":"10.3390\/smartcities3030052"},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Tomar, P., and Kaur, G. (2019). Green Smart Cities. Green and Smart Technologies for Smart Cities, CRC Press. [1st ed.].","DOI":"10.1201\/9780429454837"},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Fernandes, B., Neves, J., and Analide, C. (2017, January 22\u201324). Road Safety and Vulnerable Road Users\u2014Internet of People Insights. Proceedings of the 6th International Conference on Smart Cities and Green ICT Systems, Porto, Portugal.","DOI":"10.5220\/0006359303110316"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"70","DOI":"10.1109\/JIOT.2015.2498900","article-title":"Middleware for Internet of Things: A Survey","volume":"3","author":"Razzaque","year":"2016","journal-title":"IEEE Internet Things J."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"35","DOI":"10.1016\/j.fcij.2017.02.001","article-title":"A survey of IoT cloud platforms","volume":"1","author":"Ray","year":"2016","journal-title":"Future Comput. Inform. J."},{"key":"ref_7","unstructured":"(2021, December 31). MQTT Specification. Available online: https:\/\/mqtt.org\/mqtt-specification\/."},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Borsatti, D., Cerroni, W., Tonini, F., and Raffaelli, C. (2020, January 19\u201323). From IoT to Cloud: Applications and Performance of the MQTT Protocol. Proceedings of the 2020 International Conference on Transparent Optical Networks (ICTON), Bari, Italy.","DOI":"10.1109\/ICTON51198.2020.9203167"},{"key":"ref_9","unstructured":"5GAA Automotive Association (2021, December 31). Vulnerable Road User Protection. White Paper, 5GAA. Available online: https:\/\/5gaa.org\/news\/vulnerable-road-user-protection\/."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1007\/s12544-017-0230-3","article-title":"Integration of vulnerable road users in cooperative ITS systems","volume":"9","author":"Scholliers","year":"2017","journal-title":"Eur. Transp. Res. Rev."},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Sewalkar, P., and Seitz, J. (2019). Vehicle-to-Pedestrian Communication for Vulnerable Road Users: Survey, Design Considerations, and Challenges. Sensors, 19.","DOI":"10.3390\/s19020358"},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Hussein, A., Garc\u00eda, F., Armingol, J.M., and Olaverri-Monreal, C. (2016, January 1\u20134). P2V and V2P communication for Pedestrian warning on the basis of Autonomous Vehicles. Proceedings of the 2016 IEEE 19th International Conference on Intelligent Transportation Systems (ITSC), Rio de Janeiro, Brazil.","DOI":"10.1109\/ITSC.2016.7795885"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Liu, Z., Pu, L., Meng, Z., Yang, X., Zhu, K., and Zhang, L. (2015, January 19\u201323). POFS: A novel pedestrian-oriented forewarning system for vulnerable pedestrian safety. Proceedings of the 2015 International Conference on Connected Vehicles and Expo (ICCVE), Shenzhen, China.","DOI":"10.1109\/ICCVE.2015.63"},{"key":"ref_14","unstructured":"Saur, S., Mizmizi, M., Otterbach, J., Schlitter, T., Fuchs, R., and Mandelli, S. (2020, January 18\u201320). 5GCAR Demonstration: Vulnerable Road User Protection through Positioning with Synchronized Antenna Signal Processing. Proceedings of the 24th International ITG Workshop on Smart Antennas, Hamburg, Germany."},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Napolitano, A., Cecchetti, G., Giannone, F., Ruscelli, A., Civerchia, F., Kondepu, K., Valcarenghi, L., and Castoldi, P. (2019, January 2\u20134). Implementation of a MEC-based Vulnerable Road User Warning System. Proceedings of the 2019 AEIT International Conference of Electrical and Electronic Technologies for Automotive (AEIT AUTOMOTIVE), Turin, Italy.","DOI":"10.23919\/EETA.2019.8804497"},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Waldemar, T., Boehm, F., and Schlegel, T. (2019, January 22\u201325). Prototyping Approach of Networking Road Users for Cooperative Collision Avoidance using Smartphones. Proceedings of the 2019 Sixth International Conference on Internet of Things: Systems, Management and Security (IOTSMS), Granada, Spain.","DOI":"10.1109\/IOTSMS48152.2019.8939273"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Hernandez-Jayo, U., Perez, J., and de-la Iglesia, I. (2015, January 16\u201318). Poster: Wearable warning system for improving cyclists safety in the scope of Cooperative systems. Proceedings of the 2015 IEEE Vehicular Networking Conference (VNC), Kyoto, Japan.","DOI":"10.1109\/VNC.2015.7385563"},{"key":"ref_18","unstructured":"Espressif Systems (2021, December 31). ESP32 Wi-Fi & Bluetooth MCU. Available online: https:\/\/www.espressif.com\/en\/products\/socs\/esp32."},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Tarchi, D., Grandi, S., and Cerroni, W. (2019, January 15\u201318). Android-based Implementation of a Fog Computing and Networking Environment. Proceedings of the 2019 IEEE Wireless Communications and Networking Conference (WCNC), Marrakech, Morocco.","DOI":"10.1109\/WCNC.2019.8885910"},{"key":"ref_20","unstructured":"(2021, December 31). Internet of Vulnerable Road Users. Available online: https:\/\/github.com\/DanieleTarchi\/IoVRU."},{"key":"ref_21","unstructured":"Raspberry Pi (Trading) Ltd. (2021, December 31). Raspberry PI Documentation\u2014Raspberry PI OS. Available online: https:\/\/www.raspberrypi.com\/documentation\/computers\/os.html."},{"key":"ref_22","unstructured":"(2021, December 31). Eclipse Mosquitto. Available online: https:\/\/mosquitto.org\/."},{"key":"ref_23","unstructured":"(2021, December 31). Eclipse Paho. Available online: https:\/\/www.eclipse.org\/paho\/."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Babiuch, M., and Folt\u00fdnek, P. (June, January 31). Creating a Mobile Application with the ESP32 Azure IoT Development Board Using a Cloud Platform. Proceedings of the 2021 22nd International Carpathian Control Conference (ICCC), Velk\u00e9 Karlovice, Czech Republic.","DOI":"10.1109\/ICCC51557.2021.9454607"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Carducci, C.G.C., Monti, A., Schraven, M.H., Schumacher, M., and Mueller, D. (2019, January 4\u20136). Enabling ESP32-based IoT Applications in Building Automation Systems. Proceedings of the 2019 II Workshop on Metrology for Industry 4.0 and IoT (MetroInd4.0 IoT), Naples, Italy.","DOI":"10.1109\/METROI4.2019.8792852"},{"key":"ref_26","unstructured":"(2020, December 31). LILYGO\u00ae T-WATCH-2020 V3. Available online: http:\/\/www.lilygo.cn\/prod_view.aspx?TypeId=50053&Id=1380&FId=t3:50053:3."},{"key":"ref_27","unstructured":"Bosch Sensortech (2021, December 31). Humidity Sensor BME280. Available online: https:\/\/www.bosch-sensortec.com\/products\/environmental-sensors\/humidity-sensors-bme280\/."},{"key":"ref_28","unstructured":"(2021, December 31). FreeRTOS\u2014Market Leading RTOS (Real Time Operating System) for Embedded Systems with Internet of Things Extensions. Available online: https:\/\/www.freertos.org\/."},{"key":"ref_29","unstructured":"(2021, December 31). Adafruit BME280 Library. Available online: https:\/\/github.com\/adafruit\/Adafruit_BME280_Library."},{"key":"ref_30","unstructured":"(2021, December 31). ESP32 BLE for Arduino. Available online: https:\/\/github.com\/nkolban\/ESP32_BLE_Arduino."},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"6","DOI":"10.1109\/MWC.2014.7000963","article-title":"Bluetooth: A viable solution for IoT? [Industry Perspectives]","volume":"21","author":"Chang","year":"2014","journal-title":"IEEE Wirel. Commun."},{"key":"ref_32","unstructured":"(2022, January 25). OSI Networking and System Aspects\u2014Naming, Addressing and Registration.Information Technology\u2014Procedures for the Operation of Object iDentifier Registration Authorities: Generation of Universally Unique Identifiers and Their Use in Object Identifiers. Rec. X.667; ITU-T. Available online: https:\/\/www.itu.int\/ITU-T\/studygroups\/com17\/oid\/X.667-E.pdf."},{"key":"ref_33","unstructured":"Townsend, K., Cuf\u00ed, C., and Davidson, R. (2014). Getting Started with Bluetooth Low Energy, O\u2019Reilly Media, Inc."},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Durkop, L., Czybik, B., and Jasperneite, J. (2015, January 17\u201319). Performance evaluation of M2M protocols over cellular networks in a lab environment. Proceedings of the 2015 18th International Conference on Intelligence in Next Generation Networks, Paris, France.","DOI":"10.1109\/ICIN.2015.7073809"},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Grgi\u0107, K., \u0160peh, I., and He\u0111i, I. (2016, January 12\u201314). A web-based IoT solution for monitoring data using MQTT protocol. Proceedings of the 2016 International Conference on Smart Systems and Technologies (SST), Osijek, Croatia.","DOI":"10.1109\/SST.2016.7765668"},{"key":"ref_36","doi-asserted-by":"crossref","unstructured":"Lubbers, P., Albers, B., and Salim, F. (2010). Pro HTML5 Programming\u2014Powerful APIs for Richer Internet Application Development, Apress. [1st ed.].","DOI":"10.1007\/978-1-4302-2791-5"},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"45","DOI":"10.1109\/MIC.2012.64","article-title":"Communicating and Displaying Real-Time Data with WebSocket","volume":"16","author":"Pimentel","year":"2012","journal-title":"IEEE Internet Comput."},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"Mishra, B., Mishra, B., and Kertesz, A. (2021). Stress-Testing MQTT Brokers: A Comparative Analysis of Performance Measurements. Energies, 14.","DOI":"10.3390\/en14185817"},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"616","DOI":"10.1109\/COMST.2019.2953364","article-title":"Security of the Internet of Things: Vulnerabilities, Attacks, and Countermeasures","volume":"22","author":"Butun","year":"2020","journal-title":"IEEE Commun. Surv. Tutor."},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Singh, M., Rajan, M., Shivraj, V., and Balamuralidhar, P. (2015, January 4\u20136). Secure MQTT for Internet of Things (IoT). Proceedings of the 2015 Fifth International Conference on Communication Systems and Network Technologies, Gwalior, India.","DOI":"10.1109\/CSNT.2015.16"}],"container-title":["Future Internet"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1999-5903\/14\/2\/57\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T22:19:47Z","timestamp":1760134787000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1999-5903\/14\/2\/57"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,2,15]]},"references-count":40,"journal-issue":{"issue":"2","published-online":{"date-parts":[[2022,2]]}},"alternative-id":["fi14020057"],"URL":"https:\/\/doi.org\/10.3390\/fi14020057","relation":{},"ISSN":["1999-5903"],"issn-type":[{"value":"1999-5903","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,2,15]]}}}