Skip to main content

Retrofitting Industrial Machines with WebAssembly on the Edge

  • Conference paper
  • First Online:
Web Information Systems Engineering – WISE 2022 (WISE 2022)

Abstract

Tapping into previously inaccessible data sources promises new potential for value creation in the manufacturing industry. However, asset-heavy shopfloors, long machine replace cycles, and equipment heterogeneity demand major investments to achieve smart manufacturing, which small businesses struggle with. Retrofitting is a sustainable means of equipping aged machines with low-cost sensors and microcontrollers to read and forward machine data. In this paper, we present a concept and a prototype to retrofit industrial scenarios using lightweight web technologies on the edge. We propose using WebAssembly as a new bytecode standard that runs on browsers and bare-metal hardware alike, thus providing a uniform development environment from cloud to edge. We confirm its applicability by achieving near-native performance together with modularity known from container-based service architectures. Our prototype is evaluated with a real industrial robot within a showcase factory, including measurements of data exchange with a state-of-the-art data lake setup. We are convinced that our groundwork paves the way to an easier-to-implement and more sustainable Industry 4.0.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    cf. https://developer.bosch.com/products-and-services/sdks/xdk.

  2. 2.

    cf. https://github.com/appcypher/awesome-wasm-langs.

  3. 3.

    cf. https://madewithwebassembly.com/.

  4. 4.

    cf. https://github.com/mbasso/awesome-wasm.

  5. 5.

    cf. https://github.com/internet-of-production/WasmRetrofittingESP32.

References

  1. Burresi, G., et al.: Smart retrofitting by design thinking applied to an industry 4.0 migration process in a steel mill plant. In: 2020 9th Mediterranean Conference on Embedded Computing (MECO) (2020). https://doi.org/10.1109/MECO49872.2020.9134210

  2. Carvalho, T.P., Soares, F., Vita, R., Da Francisco, R.P., Basto, J.P., Alcalá, S.G.S.: A systematic literature review of machine learning methods applied to predictive maintenance. Comput. Indus. Eng. 137, 106024 (2019). https://doi.org/10.1016/j.cie.2019.106024

    Article  Google Scholar 

  3. Craig, J.J.: Introduction to Robotics: Mechanics and Control, 3rd edn. Pearson/Prentice Hall, Hoboken (2005)

    Google Scholar 

  4. DIN: 91345: reference architecture model industrie 4.0 (RAMI4.0) (2016)

    Google Scholar 

  5. Dustdar, S., Murturi, I.: Towards IoT processes on the edge. In: Aiello, M., Bouguettaya, A., Tamburri, D.A., van den Heuvel, W.-J. (eds.) Next-Gen Digital Services. A Retrospective and Roadmap for Service Computing of the Future. LNCS, vol. 12521, pp. 167–178. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-73203-5_13

    Chapter  Google Scholar 

  6. Gadepalli, P.K., McBride, S., Peach, G., Cherkasova, L., Parmer, G.: SLEdge: a serverless-first, light-weight wasm runtime for the Edge. In: Proceedings of the 21st International Middleware Conference, pp. 265–279. ACM, Delft Netherlands (2020). https://doi.org/10.1145/3423211.3425680

  7. GitHub Inc: the state of the Octoverse (2020). https://octoverse.github.com

  8. Guerreiro, B.V., Lins, R.G., Sun, J., Schmitt, R.: Definition of smart retrofitting: first steps for a company to deploy aspects of industry 4.0. In: Hamrol, A., Ciszak, O., Legutko, S., Jurczyk, M. (eds.) Advances in Manufacturing. LNME, pp. 161–170. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-68619-6_16

    Chapter  Google Scholar 

  9. Haas, A., et al.: Bringing the web up to speed with WebAssembly. In: Cohen, A., Vechev, M. (eds.) Proceedings of the 38th ACM SIGPLAN Conference on Programming Language Design and Implementation - PLDI 2017, pp. 185–200. ACM Press, New York (2017). https://doi.org/10.1145/3062341.3062363

  10. Hall, A., Ramachandran, U.: An execution model for serverless functions at the edge. In: Landsiedel, O., Nahrstedt, K. (eds.) Proceedings of the International Conference on Internet of Things Design and Implementation, pp. 225–236. ACM, New York, NY, USA (2019). https://doi.org/10.1145/3302505.3310084

  11. Ilari, S., Carlo, F.D., Ciarapica, F.E., Bevilacqua, M.: Machine tool transition from industry 3.0 to 4.0: a comparison between old machine retrofitting and the purchase of new machines from a triple bottom line perspective. Sustainability 13(18), 10441 (2021). https://doi.org/10.3390/su131810441

    Article  Google Scholar 

  12. Jacobsson, M., Willén, J.: Virtual machine execution for wearables based on WebAssembly. In: Sugimoto, C., Farhadi, H., Hämäläinen, M. (eds.) BODYNETS 2018. EICC, pp. 381–389. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-29897-5_33

    Chapter  Google Scholar 

  13. Jaspert, D., Ebel, M., Eckhardt, A., Poeppelbuss, J.: Smart retrofitting in manufacturing: a systematic review. J. Clean. Prod. 312, 127555 (2021). https://doi.org/10.1016/j.jclepro.2021.127555

    Article  Google Scholar 

  14. Kargermann, H., Wahlster, W., Helbig, J.: Recommendations for implementing the strategic initiative INDUSTRIE 4.0: final report of the INDUSTRIE 4.0 working group (2013). https://en.acatech.de/wp-content/uploads/sites/6/2018/03/Final_report__Industrie_4.0_accessible.pdf

  15. Kolla, S.S.V.K., Lourenço, D.M., Kumar, A.A., Plapper, P.: Retrofitting of legacy machines in the context of industrial internet of things (IIoT). Proc. Comput. Sci. 200, 62–70 (2022). https://doi.org/10.1016/j.procs.2022.01.205

    Article  Google Scholar 

  16. KUKA Roboter GmbH: KUKA Serie 2000: the all-rounders in the high payload range (2020). https://www.kuka.com/-/media/kuka-downloads/imported/6b77eecacfe542d3b736af377562ecaa/pf0020_kr_1502_en.pdf

  17. LaValle, S.M.: Planning Algorithms. Cambridge University Press, Cambridge (2006). https://doi.org/10.1017/CBO9780511546877

    Book  MATH  Google Scholar 

  18. Lehmann, D., Kinder, J., Pradel, M.: Everything old is new again: binary security of WebAssembly. In: 29th USENIX Security Symposium (USENIX Security 20), pp. 217–234. USENIX Association (2020)

    Google Scholar 

  19. Lehmann, D., Pradel, M.: Wasabi: a framework for dynamically analyzing WebAssembly. In: Bahar, I., et al. (eds.) Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems, pp. 1045–1058. ACM, New York (2019). https://doi.org/10.1145/3297858.3304068

  20. Li, B., Dong, W., Gao, Y.: WiProg: a WebAssembly-based approach to integrated IoT programming. In: IEEE INFOCOM 2021 - IEEE Conference on Computer Communications, pp. 1–10. IEEE (2021). https://doi.org/10.1109/INFOCOM42981.2021.9488424

  21. Lins, T., Rabelo Oliveira, R.A.: Cyber-physical production systems retrofitting in context of industry 4.0. Comput. Indus. Eng. 139, 106193 (2020). https://doi.org/10.1016/j.cie.2019.106193

    Article  Google Scholar 

  22. Mäkitalo, N., et al.: WebAssembly modules as lightweight containers for liquid IoT applications. In: Brambilla, M., Chbeir, R., Frasincar, F., Manolescu, I. (eds.) ICWE 2021. LNCS, vol. 12706, pp. 328–336. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-74296-6_25

    Chapter  Google Scholar 

  23. Mendki, P.: Evaluating Webassembly enabled serverless approach for edge computing. In: 2020 IEEE Cloud Summit, pp. 161–166. IEEE, Harrisburg (2020). https://doi.org/10.1109/IEEECloudSummit48914.2020.00031

  24. Mikkonen, T., Pautasso, C., Taivalsaari, A.: Isomorphic internet of things architectures with web technologies. Computer 54(7), 69–78 (2021). https://doi.org/10.1109/MC.2021.3074258

    Article  Google Scholar 

  25. Mourtzis, D., Angelopoulos, J., Panopoulos, N.: Recycling and retrofitting for industrial equipment based on augmented reality. Proc. CIRP 90, 606–610 (2020). https://doi.org/10.1016/j.procir.2020.02.134

    Article  Google Scholar 

  26. Mozilla and individual contributors: understanding WebAssembly text format (2021). https://developer.mozilla.org/en-US/docs/WebAssembly/Understanding_the_text_format

  27. Napieralla, J.: Considering WebAssembly containers for edge computing on hardware-constrained IoT devices. Master thesis, Blekinge Institute of Technology, Karlskrona, Sweden (2020). https://www.diva-portal.org/smash/get/diva2:1451494/FULLTEXT02

  28. Nastic, S., et al.: A serverless real-time data analytics platform for edge computing. IEEE Internet Comput. 21(4), 64–71 (2017). https://doi.org/10.1109/MIC.2017.2911430

    Article  Google Scholar 

  29. Quix, C., Hai, R.: Data lake. In: Sakr, S., Zomaya, A. (eds.) Encyclopedia of Big Data Technologies, pp. 1–8. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-63962-8_7-1

    Chapter  Google Scholar 

  30. Rausch, T., Hummer, W., Muthusamy, V., Rashed, A., Dustdar, S.: Towards a serverless platform for edge AI. In: 2nd USENIX Workshop on Hot Topics in Edge Computing (HotEdge 19). USENIX Association, Renton, WA (2019)

    Google Scholar 

  31. Stievenart, Q., de Roover, C.: Compositional information flow analysis for WebAssembly programs. In: 2020 IEEE 20th International Working Conference on Source Code Analysis and Manipulation (SCAM), pp. 13–24. IEEE (2020). https://doi.org/10.1109/SCAM51674.2020.00007

  32. Stock, T., Seliger, G.: Opportunities of sustainable manufacturing in industry 4.0. Proc. CIRP 40, 536–541 (2016). https://doi.org/10.1016/j.procir.2016.01.129

    Article  Google Scholar 

  33. Wen, E., Weber, G.: Wasmachine: bring iot up to speed with a WebAssembly OS. In: 2020 IEEE International Conference on Pervasive Computing and Communications Workshops (PerCom Workshops), pp. 1–4. IEEE (2020). https://doi.org/10.1109/PerComWorkshops48775.2020.9156135

  34. World Wide Web Consortium: WebAssembly Core Specification (2019). https://www.w3.org/TR/wasm-core-1/

Download references

Acknowledgement

Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy - EXC-2023 Internet of Production - 390621612.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Otoya Nakakaze .

Editor information

Editors and Affiliations

1 Electronic supplementary material

Below is the link to the electronic supplementary material.

Supplementary material 1 (zip 0 KB)

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Nakakaze, O., Koren, I., Brillowski, F., Klamma, R. (2022). Retrofitting Industrial Machines with WebAssembly on the Edge. In: Chbeir, R., Huang, H., Silvestri, F., Manolopoulos, Y., Zhang, Y. (eds) Web Information Systems Engineering – WISE 2022. WISE 2022. Lecture Notes in Computer Science, vol 13724. Springer, Cham. https://doi.org/10.1007/978-3-031-20891-1_18

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-20891-1_18

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-20890-4

  • Online ISBN: 978-3-031-20891-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics