Skip to main content

IoT Software by Dataflow Programming in Mruby Programming Environment

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 12252))

Abstract

In IoT software development, a method to implement software by focusing on data flow has been proposed, which is called dataflow programming. On the other hand, sensor devices are generally implemented in microcontrollers with limited resources for compactness, power savings and costs, so sensor devices are not suitable for executing data flow programs.

In this paper, an environment running the scripting language mruby is described to execute a dataflow program on a small microcontroller. The execution of the data flow program is performed asynchronously by multiple nodes, which handle the sensor data. The execution environment of a dataflow program must support this style of execution. Since mruby can execute multiple programs concurrently, it is well suited to implement dataflow programs. By generating mruby code from a program developed in Node-RED, one of the popular dataflow programming environments, the mruby program is executed on a single-chip microcontroller, which includes mruby virtual machine.

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

Buying options

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

Learn about institutional subscriptions

References

  1. Maeda, H., Tanaka, K.: Hardware acceleration of language processing in scripting programming languages. In: Misra, S., et al. (eds.) ICCSA 2019. LNCS, vol. 11621, pp. 407–416. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-24302-9_29

    Chapter  Google Scholar 

  2. Nagumanthri, A.D., Tanaka, K.: Internet of Things with mruby. In: International Conference on Information Technology, Next Generation Information Technology Summit (InCITe-2016) (2016)

    Google Scholar 

  3. Tanaka, K., Maeda, H., Higashi, H.: Concurrent execution in scripting programming language ‘mruby’. In: Gervasi, O., et al. (eds.) ICCSA 2018. LNCS, vol. 10962, pp. 136–146. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-95168-3_9

    Chapter  Google Scholar 

  4. Node-RED. https://nodered.org/

  5. mruby. https://github.com/mruby/mruby

  6. mruby/c. https://github.com/mrubyc/mrubyc

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kazuaki Tanaka .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Tanaka, K., Tsujino, C., Maeda, H. (2020). IoT Software by Dataflow Programming in Mruby Programming Environment. In: Gervasi, O., et al. Computational Science and Its Applications – ICCSA 2020. ICCSA 2020. Lecture Notes in Computer Science(), vol 12252. Springer, Cham. https://doi.org/10.1007/978-3-030-58811-3_15

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-58811-3_15

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-58810-6

  • Online ISBN: 978-3-030-58811-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics