隨著物聯網時代的來臨,無線射頻識別(RFID)應用的需求變化也愈來愈大,若想要在現行應用系統擴充新的功能,開發人員就必須一一對所有的RFID節點重新燒錄程式碼,才能佈署新的應用,一旦開發完成上線後,便難以再更動程式。如此缺乏彈性且繁複的開發與佈署方式,造成RFID應用系統開發週期和成本大幅攀升。本論文提出一個RFID的閘道器平台,此平台的核心包括一顆32位元微控制器及RFID中介軟體(RFID Middleware)、RF無線通訊介面、以及一個嵌入式web伺服器軟硬體模組。藉由GRAFCET圖形化編輯器,遠端的開發人員可用直覺、高階行為方式描述應用系統的功能和離散事件程序,並轉譯成編碼表後,透過網際網路下載到閘道器,並傳送到各RFID節點。安裝於節點上的GRAFCET虛擬機器按照應用系統的編碼表,即時執行應用程式的邏輯。透過閘道器的平台與圖形化開發方式,不但可以提高系統設計的彈性,也順利解決嵌入式系統更新程式困難、佈署不易的難題。 With the coming of the era of Internet of Things (IoT), the changes in demand of the RFID applications are getting more and more increasing. So if we want to extend some new functions on current systems, the developers must upgrade the new codes to overall RFID nodes one by one for deployment. Once the deployment is completed and goes on production, it will be difficult to change the program again. The lack of flexibility and the complicated work of development and deployment steps results in the increasing of the cost and cycle of RFID system development. This thesis presents an RFID gateway platform and its kernel includes a 32-bit microcontroller, RFID middleware, RF wireless communication interface, and a software/hardware integrated module of an embedded web server. By the GRAFCET editor, the remote developers can describe the function and discrete event process of applications in an intuitive way and high-level perspective, translate it into coding table, download to gateway through Internet, and transfer to each RFID node. The GRAFCET Virtual Machine installed on each node runs the program logic according to the coding table in real-time. With the gateway platform and graphical development, it can not only enhance the flexibility of embedded system design but also solve the problem on the difficulty of upgrade and deployment issue.