面向IoT应用的可视化编程工具的研究与实现
发布时间:2018-12-17 02:34
【摘要】:随着物联网技术在医疗、教育和生活等领域的广泛应用,还有人们对自主创造的渴望,迫切的需要一款面向Io T应用的可视化编程工具。传统的Io T应用开发工具大多都是基于文本语言编程的,这就导致使用文本开发语言存在开发难度大、过长的开发周期、过高的错误率、后期维护困难等问题。与传统文本语言编程相比,使用可视化语言编程具有简单直观、无需代码工程、开发周期短、不易出错和易于调试等特点,可以让没有编程基础的人也可以进行程序设计,大大降低了编程的门槛,避免了使用传统文本语言编程过长的学习成本。本文面向Io T的可视化编程工具关注的关键问题有两个:一个是可视化语言的设计;另一个是物端字节码生成。智能端程序开发是在Android智能平台上进行的,物端程序开发则在Arduino开发板上进行。鉴于Io T设备功能特性,选取基于事件驱动的可视化编程语言作为Io T设备编程语言。每个设备要执行某个功能,都需要对应触发事件,整个程序以事件驱动的形式完成程序控制。此外,由于可视化编程语言是自定义的,没有对应的编译器将其翻译成单片机可执行程序,故要在可视化编程工具中实现一个简单编译器,将该可视化编程语言编译成目标代码。目标代码通过蓝牙发送给下位机,必须以字节码形式发送,所以还需在上位机将目标代码转换成字节码,下位机需要解释器将字节码解析成对应控制指令。使用本文可视化编程工具编写物端应用控制程序的时候,提供了2种方式:一是可以通过点击拖进来的设备,会有该设备对应的功能选项,选取期望的功能后会在代码编辑区自动生成可视化程序;另一种方式是在代码编辑区通过点击添加指令按钮选取期望的功能再进行编辑。使得编写可视化程序更加灵活。在代码生成阶段,可视化语言编译器会分析可视化程序各部件功能,将其转换成平台无关栈式字节码形式,再通过调用运行时库,将字节码发送到Arduino开发板,待开发板解释完成后,就可通过智能端发送控制指令完成对接入设备的控制了。综上所述,本文的面向Io T应用的可视化编程工具,通过对代码的图形化,让开发者远离抽象的符号和语法,让程序开发像人们日常通过遥控器对电视机操控一样,更加接近人的思维方式,让编程变得更普遍和容易。
[Abstract]:With the wide application of Internet of things technology in medical treatment, education and life, as well as people's desire for self-creation, there is an urgent need for a visual programming tool for Io T applications. Most of the traditional Io T application development tools are based on text language programming, which leads to the difficulties of developing text development language, too long development cycle, too high error rate and difficulty in later maintenance. Compared with the traditional text language programming, the visual language programming has the characteristics of simple and intuitive, no code engineering, short development period, not easy to make mistakes and easy to debug. The threshold of programming is greatly reduced, and the learning cost of programming in traditional text language is avoided. This paper focuses on two key problems of visual programming tools for Io T: one is the design of visual language and the other is object end bytecode generation. The development of the intelligent program is carried out on the Android intelligent platform, and the development of the physical program is carried out on the Arduino development board. In view of the functional characteristics of Io T devices, the event driven visual programming language is chosen as the Io T device programming language. For each device to perform a function, it is necessary to trigger the event, and the whole program completes the program control in the form of event-driven. In addition, because the visual programming language is custom, there is no corresponding compiler to translate it into the executable program of single-chip computer, so we should implement a simple compiler in the visual programming tool. Compile the visual programming language into target code. The target code must be sent in the form of bytecode to the lower computer through Bluetooth, so it is necessary to convert the target code to the byte code on the upper computer, and the lower computer needs the interpreter to parse the bytecode into the corresponding control instruction. When you use the visual programming tool in this article to write an application control program on the object side, you provide two ways: one is that the device that can be dragged in by clicking will have the corresponding function options for the device. After selecting the desired function, the visualization program is generated automatically in the code editing area. Another way is to edit the desired function in the code editing section by clicking the add instruction button. Make writing visual program more flexible. In the code generation stage, the visual language compiler will analyze the functions of the components of the visualization program, convert it into the platform-independent stack-type bytecode form, and then send the bytecode to the Arduino development board by calling the runtime library. After the explanation of the development board is completed, the access device can be controlled by sending control instructions from the intelligent side. To sum up, the visual programming tool for Io T application in this paper, by graphing the code, keeps developers away from abstract symbols and syntax, and makes program development the same way that people control TV sets through remote control. Getting closer to the way people think makes programming more common and easier.
【学位授予单位】:吉林大学
【学位级别】:硕士
【学位授予年份】:2017
【分类号】:TP391.44;TN929.5;TP311.52
本文编号:2383501
[Abstract]:With the wide application of Internet of things technology in medical treatment, education and life, as well as people's desire for self-creation, there is an urgent need for a visual programming tool for Io T applications. Most of the traditional Io T application development tools are based on text language programming, which leads to the difficulties of developing text development language, too long development cycle, too high error rate and difficulty in later maintenance. Compared with the traditional text language programming, the visual language programming has the characteristics of simple and intuitive, no code engineering, short development period, not easy to make mistakes and easy to debug. The threshold of programming is greatly reduced, and the learning cost of programming in traditional text language is avoided. This paper focuses on two key problems of visual programming tools for Io T: one is the design of visual language and the other is object end bytecode generation. The development of the intelligent program is carried out on the Android intelligent platform, and the development of the physical program is carried out on the Arduino development board. In view of the functional characteristics of Io T devices, the event driven visual programming language is chosen as the Io T device programming language. For each device to perform a function, it is necessary to trigger the event, and the whole program completes the program control in the form of event-driven. In addition, because the visual programming language is custom, there is no corresponding compiler to translate it into the executable program of single-chip computer, so we should implement a simple compiler in the visual programming tool. Compile the visual programming language into target code. The target code must be sent in the form of bytecode to the lower computer through Bluetooth, so it is necessary to convert the target code to the byte code on the upper computer, and the lower computer needs the interpreter to parse the bytecode into the corresponding control instruction. When you use the visual programming tool in this article to write an application control program on the object side, you provide two ways: one is that the device that can be dragged in by clicking will have the corresponding function options for the device. After selecting the desired function, the visualization program is generated automatically in the code editing area. Another way is to edit the desired function in the code editing section by clicking the add instruction button. Make writing visual program more flexible. In the code generation stage, the visual language compiler will analyze the functions of the components of the visualization program, convert it into the platform-independent stack-type bytecode form, and then send the bytecode to the Arduino development board by calling the runtime library. After the explanation of the development board is completed, the access device can be controlled by sending control instructions from the intelligent side. To sum up, the visual programming tool for Io T application in this paper, by graphing the code, keeps developers away from abstract symbols and syntax, and makes program development the same way that people control TV sets through remote control. Getting closer to the way people think makes programming more common and easier.
【学位授予单位】:吉林大学
【学位级别】:硕士
【学位授予年份】:2017
【分类号】:TP391.44;TN929.5;TP311.52
【相似文献】
相关期刊论文 前5条
1 王昊艋;初学编程选VB[J];电脑编程技巧与维护;2003年06期
2 闫光永;第一讲 应用VC++ 1.5编程初步[J];中国计算机用户;1996年13期
3 丁海霞;论API函数在VB中的调用[J];大众科技;2005年08期
4 闫树柏,潘滢;Visual Basic调用Windows API函数的应用举例[J];现代情报;2003年12期
5 陈茂良;利用Delphi制作动态封面[J];计算机时代;1997年12期
相关硕士学位论文 前2条
1 郭守超;基于可视化编程工具的社交平台设计与实现[D];兰州大学;2015年
2 金旭;面向IoT应用的可视化编程工具的研究与实现[D];吉林大学;2017年
,本文编号:2383501
本文链接:https://www.wllwen.com/kejilunwen/xinxigongchenglunwen/2383501.html