面向IoT應(yīng)用的可視化編程工具的研究與實(shí)現(xiàn)
發(fā)布時(shí)間:2018-12-17 02:34
【摘要】:隨著物聯(lián)網(wǎng)技術(shù)在醫(yī)療、教育和生活等領(lǐng)域的廣泛應(yīng)用,還有人們對自主創(chuàng)造的渴望,迫切的需要一款面向Io T應(yīng)用的可視化編程工具。傳統(tǒng)的Io T應(yīng)用開發(fā)工具大多都是基于文本語言編程的,這就導(dǎo)致使用文本開發(fā)語言存在開發(fā)難度大、過長的開發(fā)周期、過高的錯(cuò)誤率、后期維護(hù)困難等問題。與傳統(tǒng)文本語言編程相比,使用可視化語言編程具有簡單直觀、無需代碼工程、開發(fā)周期短、不易出錯(cuò)和易于調(diào)試等特點(diǎn),可以讓沒有編程基礎(chǔ)的人也可以進(jìn)行程序設(shè)計(jì),大大降低了編程的門檻,避免了使用傳統(tǒng)文本語言編程過長的學(xué)習(xí)成本。本文面向Io T的可視化編程工具關(guān)注的關(guān)鍵問題有兩個(gè):一個(gè)是可視化語言的設(shè)計(jì);另一個(gè)是物端字節(jié)碼生成。智能端程序開發(fā)是在Android智能平臺上進(jìn)行的,物端程序開發(fā)則在Arduino開發(fā)板上進(jìn)行。鑒于Io T設(shè)備功能特性,選取基于事件驅(qū)動的可視化編程語言作為Io T設(shè)備編程語言。每個(gè)設(shè)備要執(zhí)行某個(gè)功能,都需要對應(yīng)觸發(fā)事件,整個(gè)程序以事件驅(qū)動的形式完成程序控制。此外,由于可視化編程語言是自定義的,沒有對應(yīng)的編譯器將其翻譯成單片機(jī)可執(zhí)行程序,故要在可視化編程工具中實(shí)現(xiàn)一個(gè)簡單編譯器,將該可視化編程語言編譯成目標(biāo)代碼。目標(biāo)代碼通過藍(lán)牙發(fā)送給下位機(jī),必須以字節(jié)碼形式發(fā)送,所以還需在上位機(jī)將目標(biāo)代碼轉(zhuǎn)換成字節(jié)碼,下位機(jī)需要解釋器將字節(jié)碼解析成對應(yīng)控制指令。使用本文可視化編程工具編寫物端應(yīng)用控制程序的時(shí)候,提供了2種方式:一是可以通過點(diǎn)擊拖進(jìn)來的設(shè)備,會有該設(shè)備對應(yīng)的功能選項(xiàng),選取期望的功能后會在代碼編輯區(qū)自動生成可視化程序;另一種方式是在代碼編輯區(qū)通過點(diǎn)擊添加指令按鈕選取期望的功能再進(jìn)行編輯。使得編寫可視化程序更加靈活。在代碼生成階段,可視化語言編譯器會分析可視化程序各部件功能,將其轉(zhuǎn)換成平臺無關(guān)棧式字節(jié)碼形式,再通過調(diào)用運(yùn)行時(shí)庫,將字節(jié)碼發(fā)送到Arduino開發(fā)板,待開發(fā)板解釋完成后,就可通過智能端發(fā)送控制指令完成對接入設(shè)備的控制了。綜上所述,本文的面向Io T應(yīng)用的可視化編程工具,通過對代碼的圖形化,讓開發(fā)者遠(yuǎn)離抽象的符號和語法,讓程序開發(fā)像人們?nèi)粘Mㄟ^遙控器對電視機(jī)操控一樣,更加接近人的思維方式,讓編程變得更普遍和容易。
[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.
【學(xué)位授予單位】:吉林大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】: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.
【學(xué)位授予單位】:吉林大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2017
【分類號】:TP391.44;TN929.5;TP311.52
【相似文獻(xiàn)】
相關(guān)期刊論文 前5條
1 王昊艋;初學(xué)編程選VB[J];電腦編程技巧與維護(hù);2003年06期
2 閆光永;第一講 應(yīng)用VC++ 1.5編程初步[J];中國計(jì)算機(jī)用戶;1996年13期
3 丁海霞;論API函數(shù)在VB中的調(diào)用[J];大眾科技;2005年08期
4 閆樹柏,潘瀅;Visual Basic調(diào)用Windows API函數(shù)的應(yīng)用舉例[J];現(xiàn)代情報(bào);2003年12期
5 陳茂良;利用Delphi制作動態(tài)封面[J];計(jì)算機(jī)時(shí)代;1997年12期
相關(guān)碩士學(xué)位論文 前2條
1 郭守超;基于可視化編程工具的社交平臺設(shè)計(jì)與實(shí)現(xiàn)[D];蘭州大學(xué);2015年
2 金旭;面向IoT應(yīng)用的可視化編程工具的研究與實(shí)現(xiàn)[D];吉林大學(xué);2017年
,本文編號:2383501
本文鏈接:http://sikaile.net/kejilunwen/xinxigongchenglunwen/2383501.html
最近更新
教材專著