Smart Block: A visual block language and its programming environment for IoT
暂无分享,去创建一个
Abstract A visual block programming language allows users to make their own programs by dragging and dropping graphic blocks rather than by writing the program. This enables users who are not proficient in programming to create programs easily. Although existing studies have applied this idea to programming Internet of things (IoT) applications, existing visual language tools have certain limitations in terms of expressiveness, extensibility, and error prevention. In this paper, we propose a visual block language called Smart Block for SmartThings home automation, together with a visual programming environment that supports the three properties. We designed the visual block language based on the Internet of things automation (IoTa) calculus, a core calculus for IoT automation that generalizes event-condition-action (ECA) rules. Each ECA rule specifies that when an event occurs, and if a condition is met, a certain action is performed. Smart Block supports writing IoT applications in the ECA style and is implemented with Google Blockly, a client-side JavaScript library for creating visual block languages. Smart Block can help users develop reliable SmartApps by checking for redundancy, inconsistency, and circularity in the ECA rules before generating the code. We demonstrate that Smart Block can build 54 out of 56 (96.4%) of the SmartApps provided by the official SmartThings IDE. Furthermore, a user study with 33 participants shows that our approach, based on the foundation of the IoTa calculus, is understandable for users.
[1] Alan F. Blackwell,et al. CHAPTER 5 – Notational Systems—The Cognitive Dimensions of Notations Framework , 2003 .
[2] Fulvio Corno,et al. A high-level semantic approach to End-User Development in the Internet of Things , 2019, Int. J. Hum. Comput. Stud..
[3] Fabio Paternò,et al. Supporting end-user debugging of trigger-action rules for IoT applications , 2019, Int. J. Hum. Comput. Stud..
[4] Byeong-Mo Chang,et al. SmartVisual: a visualisation tool for SmartThings IoT Apps using static analysis , 2020, IET Softw..