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
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsReferences
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
Nagumanthri, A.D., Tanaka, K.: Internet of Things with mruby. In: International Conference on Information Technology, Next Generation Information Technology Summit (InCITe-2016) (2016)
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
Node-RED. https://nodered.org/
mruby/c. https://github.com/mrubyc/mrubyc
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Switzerland AG
About this paper
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)