{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,10,30]],"date-time":"2025-10-30T06:24:24Z","timestamp":1761805464724,"version":"build-2065373602"},"reference-count":41,"publisher":"MDPI AG","issue":"1","license":[{"start":{"date-parts":[[2021,3,4]],"date-time":"2021-03-04T00:00:00Z","timestamp":1614816000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["JSAN"],"abstract":"<jats:p>Advances in technology call for a parallel evolution in the software. New techniques are needed to support this dynamism, to track and guide its evolution process. This applies especially in the field of embedded systems, and certainly in Wireless Sensor Networks (WSNs), where hardware platforms and software environments change very quickly. Commonly, operating systems play a key role in the development process of any application. The most used operating system in WSNs is TinyOS, currently at its TinyOS 2.1.2 version. The evolution from TinyOS 1.x and TinyOS 2.x made the applications developed on TinyOS 1.x obsolete. In other words, these applications are not compatible out-of-the-box with TinyOS 2.x and require a porting action. In this paper, we discuss on the porting of embedded system (i.e., Wireless Sensor Networks) applications in response to operating systems\u2019 evolution. In particular, using a model-based approach, we report the porting we did of Agilla, a Mobile-Agent Middleware (MAMW) for WSNs, on TinyOS 2.x, which we refer to as Agilla 2. We also provide a comparative analysis about the characteristics of Agilla 2 versus Agilla. The proposed Agilla 2 is compatible with TinyOS 2.x, has full capabilities and provides new features, as shown by the maintainability and performance measurement presented in this paper. An additional valuable result is the architectural modeling of Agilla and Agilla 2, missing before, which extends its documentation and improves its maintainability.<\/jats:p>","DOI":"10.3390\/jsan10010020","type":"journal-article","created":{"date-parts":[[2021,3,5]],"date-time":"2021-03-05T00:39:07Z","timestamp":1614904747000},"page":"20","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":6,"title":["A Model-Based Approach for Adaptable Middleware Evolution in WSN Platforms"],"prefix":"10.3390","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-4890-5031","authenticated-orcid":false,"given":"Walter","family":"Tiberti","sequence":"first","affiliation":[{"name":"DEWS Center, University of L\u2019Aquila, 67100 L\u2019Aquila, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7574-5099","authenticated-orcid":false,"given":"Dajana","family":"Cassioli","sequence":"additional","affiliation":[{"name":"DISIM, University of L\u2019Aquila, 67100 L\u2019Aquila, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Antinisca","family":"Di Marco","sequence":"additional","affiliation":[{"name":"DISIM, University of L\u2019Aquila, 67100 L\u2019Aquila, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4137-3634","authenticated-orcid":false,"given":"Luigi","family":"Pomante","sequence":"additional","affiliation":[{"name":"DEWS Center, University of L\u2019Aquila, 67100 L\u2019Aquila, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1229-538X","authenticated-orcid":false,"given":"Marco","family":"Santic","sequence":"additional","affiliation":[{"name":"DEWS Center, University of L\u2019Aquila, 67100 L\u2019Aquila, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2021,3,4]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Levis, P. (2005). TinyOS: An operating system for sensor networks. Ambient Intelligence, Springer.","DOI":"10.1109\/MDM.2006.151"},{"key":"ref_2","unstructured":"Dunkels, A., Gronvall, B., and Voigt, T. (2004, January 11\u201313). Contiki\u2014A Lightweight and Flexible Operating System for Tiny Networked Sensors. Proceedings of the 29th Annual IEEE International Conference on Local Computer Networks, Dallas, TX, USA."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"4428","DOI":"10.1109\/JIOT.2018.2815038","article-title":"RIOT: An Open Source Operating System for Low-End Embedded Devices in the IoT","volume":"5","author":"Baccelli","year":"2018","journal-title":"IEEE Internet Things J."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Aghajani, E., Nagy, C., Vega-M\u00e1rquez, O.L., Linares-V\u00e1squez, M., Moreno, L., Bavota, G., and Lanza, M. (2019, January 25\u201331). Software Documentation Issues Unveiled. Proceedings of the 2019 IEEE\/ACM 41st International Conference on Software Engineering (ICSE), Montreal, QC, Canada.","DOI":"10.1109\/ICSE.2019.00122"},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Corradetti, L., Gregori, D., Marchesani, S., Pomante, L., Santic, M., and Tiberti, W. (2016, January 7\u20139). A renovated mobile agents middleware for WSN porting of Agilla to the TinyOS 2.x platform. Proceedings of the 2nd International Forum on Research and Technologies for Society and Industry Leveraging a Better Tomorrow, Bologna, Italy.","DOI":"10.1109\/RTSI.2016.7740615"},{"key":"ref_6","unstructured":"(2021, February 20). Agilla2 Repository. Available online: https:\/\/github.com\/luigi-pomante\/Agilla2."},{"key":"ref_7","unstructured":"(2021, February 20). IEEE Standard Test Access Port and Boundary Scan Architecture. IEEE Std 1149.1-2001 2001, Available online: https:\/\/standards.ieee.org\/standard\/1149_1-2013.html."},{"key":"ref_8","unstructured":"(2021, February 20). Telosb Platform Datasheet. Available online: http:\/\/www2.ece.ohio-state.edu\/~bibyk\/ee582\/telosMote.pdf."},{"key":"ref_9","unstructured":"(2021, February 20). MICAz Platform Datasheet. Available online: http:\/\/courses.ece.ubc.ca\/494\/files\/MICAz_Datasheet.pdf."},{"key":"ref_10","unstructured":"(2021, February 20). IRIS platform datasheet. Available online: http:\/\/www.nr2.ufpr.br\/~adc\/documentos\/iris_datasheet.pdf."},{"key":"ref_11","unstructured":"(2021, February 20). FreeRTOS requirements. Available online: https:\/\/docs.aws.amazon.com\/freertos\/latest\/portingguide\/porting-guide.html."},{"key":"ref_12","unstructured":"(2021, February 20). Windows 10 IoT Requirements. Available online: https:\/\/docs.microsoft.com\/en-us\/windows-hardware\/design\/minimum\/minimum-hardware-requirements-overview."},{"key":"ref_13","unstructured":"(2021, February 20). TinyOS Homepage. Available online: http:\/\/www.tinyos.net\/."},{"key":"ref_14","unstructured":"(2021, February 20). Contiki OS Homepage. Available online: http:\/\/www.contiki-os.org\/."},{"key":"ref_15","unstructured":"(2021, February 20). RIOT OS Homepage. Available online: https:\/\/www.riot-os.org\/."},{"key":"ref_16","unstructured":"(2021, February 20). RIOT Support for AVR Platforms. Available online: https:\/\/doc.riot-os.org\/group__boards__common__atmega.html."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/780822.781133","article-title":"The nesC language: A holistic approach to networked embedded systems","volume":"38","author":"Gay","year":"2003","journal-title":"Acm Sigplan Not."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Cassioli, D., Cortellessa, V., Marco, A., and Pomante, L. (2011, January 9\u201312). A Successful VISION: Video-oriented UWB based Intelligent Ubiquitous Sensing. Proceedings of the 8th IEEE Consumer Communications and Networking Conference, Las Vegas, NV, USA.","DOI":"10.1109\/CCNC.2011.5766650"},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Agosta, G., Barenghi, A., Brandolese, C., Fornaciari, W., Pelosi, G., Delucchi, S., Massa, M., Mongelli, M., Ferrari, E., and Napoletani, L. (September, January 31). V2I Cooperation for Traffic Management with SafeCop. Proceedings of the 2016 Euromicro Conference on Digital System Design (DSD), Limassol, Cyprus.","DOI":"10.1109\/DSD.2016.18"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Lingaraj, K., Biradar, R.V., and Patil, V.C. (2015, January 12\u201314). A Survey on Middleware Challenges and Approaches for Wireless Sensor Networks. Proceedings of the 2015 International Conference on Computational Intelligence and Communication Networks (CICN), Jabalpur, India.","DOI":"10.1109\/CICN.2015.20"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Pugliese, M., and Pomante, S. (2009, January 12\u201314). Agent-based scalable design of a cross-layer security framework for wireless sensor networks monitoring applications. Proceedings of the 2009 International Conference on Ultra Modern Telecommunications & Workshops, St. Petersburg, Russia.","DOI":"10.1109\/ICUMT.2009.5345623"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"122","DOI":"10.1145\/1061318.1061322","article-title":"TinyDB: An Acqusitional Query Processing System for Sensor Networks","volume":"30","author":"Madden","year":"2005","journal-title":"ACM Trans. Database Syst."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Pomante, L., and Di Felice, P. (2018, January 9\u201312). WSN and GIS integration for a Cost-Effective Real-Time Monitoring of Landslides on Railway Stations and Lines. Proceedings of the 2018 IEEE 29th Annual International Symposium on Personal, Indoor and Mobile Radio Communications (PIMRC), Bologna, Italy.","DOI":"10.1109\/PIMRC.2018.8580690"},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"553","DOI":"10.1109\/COMST.2015.2412971","article-title":"Wireless sensor network virtualization: A survey","volume":"18","author":"Khan","year":"2016","journal-title":"IEEE Commun. Surv. Tutor."},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"6","DOI":"10.1109\/MNET.2004.1265828","article-title":"Middleware to support sensor network applications","volume":"18","author":"Heinzelman","year":"2004","journal-title":"IEEE Netw."},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Kwon, Y., Sundresh, S., Mechitov, K., and Agha, G. (2006, January 8\u201312). ActorNet: An Actor Platform for Wireless Sensor Networks. Proceedings of the 5th International Joint Conference on Autonomous Agents and Multiagent Systems (AAMAS), Hakodate, Japan.","DOI":"10.1145\/1160633.1160871"},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/1552297.1552299","article-title":"Agilla: A Mobile Agent Middleware for Self-Adaptive Wireless Sensor Networks","volume":"4","author":"Fok","year":"2009","journal-title":"ACM Trans. Auton. Adapt. Syst."},{"key":"ref_28","unstructured":"Aiello, F., Fortino, G., Gravina, R., and Guerrieri, A. (2009, January 9\u201311). MAPS: A mobile Agent Platform for Java Sun SPOTs. Proceedings of the 3rd International Workshop on Agent Technology for Sensor Networks, Stanford, CA, USA."},{"key":"ref_29","unstructured":"Jan, H., Kolaice, S., and Kolaiciach, T.V. (2010, January 20\u201322). WSageNt: A case study. Proceedings of the CSE 2010 International Scientific Conference on Computer Science and Engineering, Star\u00e1 \u013dubov\u0148a, Slovakia."},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"727","DOI":"10.1007\/11758532_95","article-title":"Agent Factory Micro Edition: A Framework for Ambient applications","volume":"3993","author":"Muldoon","year":"2006","journal-title":"Lect. Notes Comput. Sci."},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"305","DOI":"10.1007\/s11390-008-9135-x","article-title":"Middleware for Wireless Sensor Networks: A Survey","volume":"23","author":"Wang","year":"2008","journal-title":"J. Comput. Sci. Technol."},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Masri, W., and Mammeri, Z. (2007, January 18\u201321). Middleware for Wireless Sensor Networks: A Comparitive analysis. Proceedings of the IFIP International Conference on Network and Parallel Computing Workshops, Dalian, China.","DOI":"10.1109\/ICNPCW.2007.4351509"},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Agneessens, A. (2016, January 17\u201321). Safe cooperative CPS: A V2I traffic management scenario in the SafeCOP project. Proceedings of the 2016 International Conference on Embedded Computer Systems: Architectures, Modeling and Simulation (SAMOS), Agios Konstantinos, Greece.","DOI":"10.1109\/SAMOS.2016.7818365"},{"key":"ref_34","unstructured":"(2021, February 20). GraphViz Library and Software. Available online: https:\/\/graphviz.org\/."},{"key":"ref_35","unstructured":"(2021, February 20). MagicDraw. Available online: https:\/\/www.nomagic.com\/products\/magicdraw."},{"key":"ref_36","unstructured":"(2021, February 20). TinyOS Enhancement Proposals (TEPs). Available online: https:\/\/github.com\/tinyos\/tinyos-main\/tree\/master\/doc."},{"key":"ref_37","unstructured":"(2021, February 20). Tinyos-Main. Available online: https:\/\/github.com\/tinyos\/tinyos-main\/blob\/master\/doc\/txt\/tep116.txt."},{"key":"ref_38","unstructured":"(2021, February 20). Agilla Instruction Set Architecture. Available online: http:\/\/mobilab.cse.wustl.edu\/projects\/agilla\/isa.html."},{"key":"ref_39","unstructured":"(2021, February 20). Agila. Available online: http:\/\/mobilab.cse.wustl.edu\/projects\/agilla\/docs\/tutorials\/3_obtaining_sensor_data.html."},{"key":"ref_40","unstructured":"(2021, February 20). Discharge Characteristics of Li-ion Batteries. Available online: https:\/\/batteryuniversity.com\/learn\/article\/discharge_characteristics_li."},{"key":"ref_41","doi-asserted-by":"crossref","unstructured":"Berardinelli, L., Di Marco, A., Pace, S., Pomante, L., and Tiberti, W. (2015). Energy consumption analysis and design of energy-aware WSN agents in fUML. European Conference on Modelling Foundations and Applications, Springer.","DOI":"10.1007\/978-3-319-21151-0_1"}],"container-title":["Journal of Sensor and Actuator Networks"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2224-2708\/10\/1\/20\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T05:32:59Z","timestamp":1760160779000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2224-2708\/10\/1\/20"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,3,4]]},"references-count":41,"journal-issue":{"issue":"1","published-online":{"date-parts":[[2021,3]]}},"alternative-id":["jsan10010020"],"URL":"https:\/\/doi.org\/10.3390\/jsan10010020","relation":{},"ISSN":["2224-2708"],"issn-type":[{"type":"electronic","value":"2224-2708"}],"subject":[],"published":{"date-parts":[[2021,3,4]]}}}