TWI426447B - Method for generating firmware frame code using modulization scheme - Google Patents
Method for generating firmware frame code using modulization scheme Download PDFInfo
- Publication number
- TWI426447B TWI426447B TW99111609A TW99111609A TWI426447B TW I426447 B TWI426447 B TW I426447B TW 99111609 A TW99111609 A TW 99111609A TW 99111609 A TW99111609 A TW 99111609A TW I426447 B TWI426447 B TW I426447B
- Authority
- TW
- Taiwan
- Prior art keywords
- firmware
- generating
- module
- functional modules
- modules
- Prior art date
Links
Landscapes
- Stored Programmes (AREA)
- User Interface Of Digital Computer (AREA)
Description
本發明是有關於一種韌體程式碼產生方法,且特別是有關於一種模組化韌體框架程式碼產生方法。 The invention relates to a firmware code generation method, and in particular to a modular firmware framework code generation method.
隨著無線遙控技術的發展及應用,目前人們在日常生活中所接觸使用的遙控裝置也逐漸增加,例如電視、音響、空調、燈光、甚至汽機車等。近年來推出了一種稱為ZigBee的無線通訊標準,其係用以取代舊有的遙控或狀態感測無線技術,能夠滿足市場對於近距離、低複雜度、低功耗、低資料速率、低成本之無線網路的需求。 With the development and application of wireless remote control technology, the remote control devices that people use in daily life are gradually increasing, such as television, audio, air conditioning, lighting, and even automobile and motorcycle. In recent years, a wireless communication standard called ZigBee has been introduced, which replaces the old remote control or state sensing wireless technology to meet the market for close distance, low complexity, low power consumption, low data rate, and low cost. The need for wireless networks.
詳細地說,ZigBee是一種介於無線射頻識別(Radio Frequency Identification,RFID)和藍牙(Bluetooth)之間的技術,其主要是用於近距離的無線連接。ZigBee採用IEEE 802.15.4標準,並藉由在數千個微小的感測器之間溝通協調以實現通信。這些感測器只需要很少的能量,就能夠透過無線電波以接力的方式在感測器間傳遞資料,因此可提高通信效率。ZigBee的主要應用領域涵括工業控制、家庭自動化、消費性電子設備、自動讀表系統、汽車自動化、農業自動化和醫用設備控制等。 In detail, ZigBee is a technology between Radio Frequency Identification (RFID) and Bluetooth, which is mainly used for short-distance wireless connections. ZigBee uses the IEEE 802.15.4 standard and communicates by communicating between thousands of tiny sensors. These sensors require only a small amount of energy to transfer data between sensors through radio waves, thus improving communication efficiency. ZigBee's main application areas include industrial control, home automation, consumer electronics, automatic meter reading systems, automotive automation, agricultural automation and medical device control.
舉例來說,在狀態感測的應用上,ZigBee裝置除了可以做為冷氣機、冰箱、煙霧偵測器等狀態的回饋顯示,甚至也可以作為防盜器等保全系統的監視之用。由於ZigBee 具有架構單純及省電等優點,在這方面應用的可靠性較高,加上其成本低廉,將其導入產品的難度也相對較低。 For example, in the state sensing application, the ZigBee device can be used as a feedback display for air conditioners, refrigerators, smoke detectors, etc., and can even be used as a surveillance system for security systems such as anti-theft devices. Thanks to ZigBee It has the advantages of simple structure and power saving. The reliability of this application is high, and its low cost makes it difficult to introduce it into the product.
在架構方面,ZigBee標準定義了一種堆疊協議,其主要是利用IEEE 802.15.4作為底層的傳輸協定,其中包含了實體(Physical,PHY)層與媒體存取控制(Media Access Control,MAC)層,並於其上實現ZigBee的堆疊。 In terms of architecture, the ZigBee standard defines a stacking protocol, which mainly uses IEEE 802.15.4 as the underlying transport protocol, which includes a physical (Physical, PHY) layer and a Media Access Control (MAC) layer. And implement ZigBee stacking on it.
然而,雖然ZigBee利用協調器連接多個節點以及利用多個節點傳遞資料的架構可降低硬體設計的成本及複雜度,但對於其韌體設計的部份,目前業界仍大多使用C語言與組合語言等程式語言撰寫。這些程式語言無法良好表現ZigBee裝置中各個元件之間的對應關係,結果將造成程式的複雜度增加及可再利用性降低,在產品的開發上也將耗費大量的人力和成本。 However, although ZigBee uses a coordinator to connect multiple nodes and an architecture that uses multiple nodes to transfer data, the cost and complexity of the hardware design can be reduced. However, for the firmware design part, the C language and combination are still mostly used in the industry. Writing in languages such as languages. These programming languages do not perform well in the correspondence between the various components in the ZigBee device. As a result, the complexity of the program is increased and the reusability is reduced, and a large amount of labor and cost are also required in product development.
有鑑於此,本發明提供一種模組化韌體框架程式碼產生方法,可自動產生無線設備的韌體框架程式碼。 In view of this, the present invention provides a method for generating a modular firmware frame code, which can automatically generate a firmware frame code of a wireless device.
為達上述或其他目的,本發明提出一種模組化韌體框架程式碼產生方法,適於產生包括多個設備物件之無線設備的韌體框架程式碼。此方法係先提供無線設備的一個圖形化表示,其中包括各個設備物件對應的功能模塊及這些功能模塊之間的多個連結。接著,解析這些功能模塊所形成的元件架構以及這些連結的從屬關係是否符合規格。若這些功能模塊的元件架構以及這些連結的從屬關係符合規 格,則查詢程式檔案對應表,以取得各個功能模塊對應的程式檔案,然後依照這些功能模塊的元件架構,將這些功能模塊對應的程式檔案加入無線設備的一個韌體專案中,以產生此韌體專案的韌體框架程式碼。 To achieve the above or other objects, the present invention provides a modular firmware framework code generation method suitable for generating a firmware framework code for a wireless device including a plurality of device objects. The method first provides a graphical representation of the wireless device, including functional modules corresponding to the respective device objects and multiple links between the functional modules. Next, the component architecture formed by these functional modules and the affiliation of these links are analyzed to meet the specifications. If the component architecture of these functional modules and the affiliation of these links are in compliance Grid, query program file correspondence table to obtain the program files corresponding to each function module, and then according to the component architecture of these function modules, add the program files corresponding to these function modules into a firmware project of the wireless device to generate the toughness The firmware framework code for the project.
在本發明之一實施例中,上述提供無線設備的圖形化表示的步驟包括將各個設備物件的名稱顯示於對應之功能模塊的物件中,並將各個設備物件的功能顯示於對應之功能模塊的介面中。 In an embodiment of the present invention, the step of providing the graphical representation of the wireless device includes displaying the name of each device object in an object of the corresponding function module, and displaying the function of each device object on the corresponding function module. In the interface.
在本發明之一實施例中,上述無線設備的圖形化表示的步驟更包括根據設備物件之間的連結關係,在各個功能模塊的物件及介面之間建立連結。 In an embodiment of the present invention, the step of graphically representing the wireless device further includes establishing a connection between the object and the interface of each functional module according to a connection relationship between the device objects.
在本發明之一實施例中,上述在各個功能模塊的物件及介面之間建立連結的步驟包括利用一單向箭頭表示設備物件之連結關係,其中單向箭頭的方向係由被呼叫之設備物件對應之功能模塊的物件指向呼叫之設備物件對應之功能模塊的介面。 In an embodiment of the present invention, the step of establishing a connection between the object and the interface of each functional module includes using a one-way arrow to indicate a connection relationship of the device object, wherein the direction of the one-way arrow is determined by the called device object. The object of the corresponding function module points to the interface of the function module corresponding to the device object of the call.
在本發明之一實施例中,上述解析連結的從屬關係是否符合規格的步驟包括根據各個功能模塊之物件及介面的屬性,判斷各個連結是否符合規格。 In an embodiment of the present invention, the step of analyzing whether the dependent relationship of the link conforms to the specification includes determining whether each link meets the specification according to an attribute of the object and the interface of each function module.
在本發明之一實施例中,上述解析功能模塊所形成的元件架構是否符合規格的步驟包括解析所述功能模塊之元件架構是否包含由多個子功能模塊合成的巢狀模組(nested component),若包含巢狀模組,則判斷此巢狀模組是否符合規格。 In an embodiment of the present invention, the step of parsing the component structure formed by the parsing function module conforms to the specification includes: analyzing whether the component architecture of the functional module includes a nested component synthesized by the plurality of sub-function modules, If the nested module is included, it is determined whether the nested module meets the specifications.
在本發明之一實施例中,上述解析功能模塊所形成的元件架構是否符合規格的步驟更包括解析所述功能模塊之元件架構是否包含主功能模塊,若包含主功能模塊,則判斷此主功能模塊是否符合規格。 In an embodiment of the present invention, the step of analyzing whether the component architecture formed by the function module meets the specification further comprises: analyzing whether the component architecture of the functional module includes a main functional module, and if the main functional module is included, determining the main function Whether the module meets the specifications.
在本發明之一實施例中,上述解析所述功能模塊所形成的元件架構以及所述連結的從屬關係是否符合規格的步驟更包括若所述功能模塊所形成的元件架構或所述連結的從屬關係不符合規格,針對不符合規格的功能模塊或連結提供修改建議。 In an embodiment of the present invention, the step of parsing the component structure formed by the function module and the dependency relationship of the link conforms to the specification further includes: if the component module formed by the function module or the slave of the link The relationship does not meet the specifications and provides suggestions for modifications to functional modules or links that do not meet the specifications.
在本發明之一實施例中,上述產生韌體專案的韌體框架程式碼的步驟之後,更包括接收使用者針對韌體專案中各個功能模塊對應之程式檔案的程式碼修改,而產生此無線設備完整的韌體程式碼。 In an embodiment of the present invention, after the step of generating the firmware framework code of the firmware project, the method further comprises: receiving the code modification of the program file corresponding to each function module in the firmware project, and generating the wireless The complete firmware code of the device.
在本發明之一實施例中,上述之無線設備包括端點裝置(end device)及協調裝置(coordinator)其中之一。 In an embodiment of the invention, the wireless device includes one of an end device and a coordinator.
本發明採用模組化的韌體框架程式碼產生方法,藉由解析無線設備之圖形化表示中多個功能模塊的架構及連結,據以合併這些功能模塊的程式檔案,從而產生無線設備的韌體框架程式碼。據此,本發明可提供更直覺化的韌體設計方式,而能夠降低韌體的複雜度並增加韌體設計的效率。 The invention adopts a modular firmware framework code generation method, and by analyzing the architecture and connection of multiple functional modules in the graphical representation of the wireless device, the program files of the functional modules are combined to generate the toughness of the wireless device. Body frame code. Accordingly, the present invention can provide a more intuitive firmware design, which can reduce the complexity of the firmware and increase the efficiency of the firmware design.
為讓本發明之上述和其他目的、特徵和優點能更明顯易懂,下文特舉較佳實施例,並配合所附圖式,作詳細說明如下。 The above and other objects, features and advantages of the present invention will become more <RTIgt;
本發明結合物件導向程式語言的特性,提供使用者將無線設備中的各個元件以模組化的方式繪製在圖形化表示中。當使用者完成圖形化表示的設計後,裝置即自動解析圖形化表示中各個功能模塊的架構及連結,據以整合這些功能模塊的程式檔案,進而產生無線設備的韌體框架程式碼。本發明即是基於上述概念所發展出來的一套模組化韌體框架程式碼產生方法。為了使本發明之內容更為明瞭,以下特舉實施例作為本發明確實能夠據以實施的範例。 The present invention combines the features of the object-oriented programming language to provide a user with a graphical representation of the various components of the wireless device in a graphical representation. After the user completes the design of the graphical representation, the device automatically analyzes the architecture and connections of the various functional modules in the graphical representation, thereby integrating the program files of the functional modules to generate the firmware framework code of the wireless device. The invention is a set of modular firmware framework code generation method developed based on the above concept. In order to clarify the content of the present invention, the following specific examples are given as examples in which the present invention can be implemented.
圖1是依照本發明一實施例所繪示之圖形化表示的設計介面。圖2是依照本發明一實施例所繪示之圖形化表示的示意圖。請參照圖1,本實施例提供一種圖形化的設計介面100,其可供使用者繪製無線設備的圖形化表示,藉以產生無線設備的韌體框架程式碼。其中,所述的無線設備例如是ZigBee的端點裝置(end device)或是協調裝置(coordinator),其韌體例如採用ZigBee的堆疊結構,而以C語言或組合語言撰寫而成。 1 is a design interface of a graphical representation in accordance with an embodiment of the invention. 2 is a schematic diagram of a graphical representation of an embodiment of the invention. Referring to FIG. 1 , the embodiment provides a graphical design interface 100 for a user to draw a graphical representation of a wireless device to generate a firmware frame code of the wireless device. The wireless device is, for example, an end device or a coordinator of ZigBee, and the firmware thereof is written in a C language or a combined language, for example, using a stack structure of ZigBee.
設計介面100中包括一個功能模組選取區110及一個圖形繪製區120。其中,功能模組選取區110包括多個對應於無線設備中多種設備元件的功能模塊,以供使用者選取使用,例如類比數位轉換模塊112、射頻模塊114、低功率模塊116、溫度感測器模塊118等。圖形繪製區120上則會繪製使用者在功能模組選取區110選取的功能模塊, 並提供使用者繪製功能模塊之間的連結,而形成無線設備的圖形化表示。 The design interface 100 includes a function module selection area 110 and a graphic drawing area 120. The function module selection area 110 includes a plurality of function modules corresponding to a plurality of device elements in the wireless device for use by the user, for example, an analog digital conversion module 112, a radio frequency module 114, a low power module 116, and a temperature sensor. Module 118 and the like. The function module selected by the user in the function module selection area 110 is drawn on the graphic drawing area 120. And providing a link between the user drawing function modules to form a graphical representation of the wireless device.
利用上述的設計介面100可繪製出如圖2所示的圖形化表示200,此圖形化表示200中包括多個功能模塊及介於這些功能模塊之間的連結。其中,每個功能模塊均用以表示對應於無線設備的一個設備物件,且每個功能模塊中均包括一個物件及至少一個介面,所述的物件係用以表示功能模塊所對應之設備物件的物件名稱,而所述的介面則是用以表示此功能模塊所對應之設備物件的連接功能。如圖2所示,功能模塊210中即包含一個物件及多個介面1~n。 Using the design interface 100 described above, a graphical representation 200 as shown in FIG. 2 can be drawn. The graphical representation 200 includes a plurality of functional modules and a connection between the functional modules. Each function module is used to represent a device object corresponding to the wireless device, and each function module includes an object and at least one interface, and the object is used to represent the device object corresponding to the function module. The name of the object, and the interface is used to indicate the connection function of the device object corresponding to the function module. As shown in FIG. 2, the function module 210 includes an object and a plurality of interfaces 1~n.
值得一提的是,本實施例之圖形化表示200中的功能模塊210依其代表之設備物件的種類可區分為主功能模塊及子功能模塊。其中,主功能模塊係表示無線設備韌體中所有設備物件所包括的主要共同功能,而子功能模塊則僅表示單一個設備物件所包括的特殊功能。如圖2所示,功能模塊210係為代表無線設備韌體之主程式的主功能模塊,而功能模塊220、230及240則分別是代表無線設備中單一個設備物件的子功能模塊。 It is worth mentioning that the function module 210 in the graphical representation 200 of the embodiment can be distinguished into a main function module and a sub-function module according to the type of the device object represented by the device. Among them, the main function module represents the main common functions included in all device objects in the wireless device firmware, and the sub-function module only represents the special functions included in a single device object. As shown in FIG. 2, the function module 210 is a main function module representing a main program of the wireless device firmware, and the function modules 220, 230, and 240 are respectively sub-function modules representing a single device object in the wireless device.
另一方面,本實施例之圖形化表示200更包括在各個功能模塊210之間繪示連結,以表示這些功能模塊210之間的連結關係,此連結關係包括設備物件在無線設備中的位置及順序。舉例來說,當設備物件需要使用其他設備物件時,則在此設備物件的介面與其他設備物件的物件之間 建立連結路徑。這些連結路徑例如是以一個單向箭頭表示,此單向箭頭的方向例如是由被呼叫的設備物件指向呼叫的設備物件。舉例來說,功能模塊220的物件係連結至功能模塊210的介面1,而此連結路徑的箭頭是由功能模塊220的物件指向功能模塊210的介面1,此即代表功能模塊220是被功能模塊210的介面1所呼叫。 On the other hand, the graphical representation 200 of the embodiment further includes a link between the functional modules 210 to indicate a connection relationship between the functional modules 210, the connection relationship including the location of the device object in the wireless device and order. For example, when the device object needs to use other device objects, between the interface of the device object and the object of other device objects. Establish a link path. These link paths are for example represented by a one-way arrow, the direction of which is for example the device object pointed to by the called device object. For example, the object of the function module 220 is connected to the interface 1 of the function module 210, and the arrow of the connection path is directed to the interface 1 of the function module 210 by the object of the function module 220, which means that the function module 220 is the function module. The interface of 210 is called.
本發明即針對上述的圖形化表示200提供一種模組化韌體框架程式碼產生方法,而可用以產生無線設備的韌體框架程式碼,以下則再舉一實施例介紹此方法的詳細步驟。 The present invention provides a modular firmware framework code generation method for the above-described graphical representation 200, which can be used to generate a firmware framework code of a wireless device. The following detailed description of the method will be described in detail.
圖3是依照本發明一實施例所繪的模組化韌體框架程式碼產生方法的流程圖。請參照圖3,本實施例適於產生無線設備的韌體框架程式碼。其中,所述韌體框架程式碼例如是採用ZigBee堆疊結構,而以C語言或組合語言撰寫而成,此方法的步驟如下: FIG. 3 is a flow chart of a method for generating a modular firmware frame code according to an embodiment of the invention. Referring to FIG. 3, the embodiment is adapted to generate a firmware frame code of a wireless device. The firmware frame code is, for example, a ZigBee stack structure, and is written in C language or a combined language. The steps of the method are as follows:
首先,提供無線設備的圖形化表示,其中包括各個設備物件對應的功能模塊以及這些功能模塊之間的多個連結(步驟S310)。詳細地說,上述提供圖形化表示的步驟包括在各個設備物件所對應之功能模塊的物件上顯示設備物件的物件名稱,並在功能模塊的介面上顯示設備物件的連接功能。其中,使用者可根據所設計之無線設備中各個設備物件的連結關係,在這些功能模塊的物件及介面之間建立連結,而形成無線設備的圖形化表示。所述物件及介面的連結方式包括利用單向箭頭來表示設備物件的連結關 係,而此單向箭頭的方向係由被呼叫的設備物件對應的功能模塊指向呼叫的設備物件的功能模塊。 First, a graphical representation of the wireless device is provided, including functional modules corresponding to the respective device objects and a plurality of links between the functional modules (step S310). In detail, the step of providing the graphical representation includes displaying the object name of the device object on the object of the function module corresponding to each device object, and displaying the connection function of the device object on the interface of the function module. The user can establish a connection between the objects and interfaces of the functional modules according to the connection relationship of the device objects in the designed wireless device to form a graphical representation of the wireless device. The manner in which the object and the interface are connected includes using a one-way arrow to indicate the connection of the device object. The direction of the one-way arrow is the functional module of the device object that is called by the function module corresponding to the called device object.
舉例來說,圖4是依照本發明一實施例所繪示之冷氣機的無線溫度感測系統的方塊圖。請參照圖4,本實施例係將ZigBee無線傳輸技術應用在冷氣機的無線溫度感測系統400上,其中包括將一個ZigBee的端點裝置410佈署在遠端偵測溫度的地點。當此端點裝置410上的溫度感測器411偵測到溫度值時,會將此溫度值以電壓訊號的形式傳送給端點裝置410的微控制器412(Microcontroller Unit,MCU),接著透過微控制器412的類比數位轉換機制(Analog to Digital Converter,ADC)將溫度值轉換為數位訊號,而後再透過端點裝置410的射頻(Radio Frequency,RF)模組413將此數位訊號傳送給ZigBee的協調裝置420。再經由與協調裝置420連接的數位電位計(Digital Potentiometer,DPM)430將數位訊號轉換回對應的電阻值提供給冷氣機440使用。其中,端點裝置410上的溫度感測器411係採用微控制器412之定時器(timer)的機制,每隔五秒鐘偵測並傳送一次溫度值。 For example, FIG. 4 is a block diagram of a wireless temperature sensing system of an air conditioner according to an embodiment of the invention. Referring to FIG. 4, the ZigBee wireless transmission technology is applied to the wireless temperature sensing system 400 of the air conditioner, and includes a ZigBee endpoint device 410 deployed at a remote location for detecting temperature. When the temperature sensor 411 on the endpoint device 410 detects the temperature value, the temperature value is transmitted as a voltage signal to the microcontroller 412 (Microcontroller Unit, MCU) of the endpoint device 410, and then through The analog to digital converter (ADC) of the microcontroller 412 converts the temperature value into a digital signal, and then transmits the digital signal to the ZigBee through the radio frequency (RF) module 413 of the endpoint device 410. Coordination device 420. The digital signal is converted back to the corresponding resistance value via a Digital Potentiometer (DPM) 430 connected to the coordination device 420 for use by the air conditioner 440. The temperature sensor 411 on the endpoint device 410 uses a timer mechanism of the microcontroller 412 to detect and transmit the temperature value every five seconds.
若將上述無線溫度感測系統之端點裝置以本發明的圖形化設計介面來繪製,則可得到圖5的圖形化表示500。請參照圖5,此圖形化表示500總共包括6個功能模塊。其中主程式模塊510即代表端點裝置之韌體程式中的主功能模塊,其中包括主程式511,以及溫度感測器(Temperature Sensor)介面512、射頻(Radio Frequency,RF)介面513與低功率(Low Power)介面514等三個介 面。這三個介面係對應連接溫度感測器模塊520、射頻模塊530及低功率模塊540等三個子功能模塊,而這三個子功能模塊均可由主功能模塊510呼叫,因此個別以一個單向箭頭指向主功能模塊510上對應的介面。 If the endpoint device of the wireless temperature sensing system described above is drawn in the graphical design interface of the present invention, the graphical representation 500 of FIG. 5 can be obtained. Referring to FIG. 5, the graphical representation 500 includes a total of six functional modules. The main program module 510 represents the main function module in the firmware program of the endpoint device, including the main program 511, and the temperature sensor interface 512, the radio frequency (RF) interface 513 and the low power. (Low Power) interface 514 and other three media surface. The three interfaces correspond to three sub-function modules, such as a temperature sensor module 520, a radio frequency module 530, and a low-power module 540, and all three sub-function modules can be called by the main function module 510, so each one is pointed by a one-way arrow. The corresponding interface on the main function module 510.
在此需強調的是,在本實施例中每一個子功能模塊亦包括各自的物件及介面,而能夠與其他的子功能模塊連結。例如溫度感測器模塊520即包括溫度感測器521,以及類比數位轉換(ADC)介面522及計時器(Timer)介面523,這兩個介面分別是由類比數位轉換器與計時器加以實做,因此在圖形化表示500中另繪製了類比數位轉換器模塊550與計時器模塊560,並以單向箭頭指向溫度感測器模塊520中的類比數位轉換介面522及計時器介面523,以表示其呼叫關係。藉由上述的圖形化表示500即可構成一個完整的無線溫度感測ZigBee端點裝置。 It should be emphasized here that in this embodiment, each sub-function module also includes its own object and interface, and can be connected with other sub-function modules. For example, the temperature sensor module 520 includes a temperature sensor 521, and an analog digital conversion (ADC) interface 522 and a timer interface 523, which are implemented by an analog digital converter and a timer, respectively. Therefore, the analog digital converter module 550 and the timer module 560 are additionally drawn in the graphical representation 500, and the unidirectional arrow points to the analog digital conversion interface 522 and the timer interface 523 in the temperature sensor module 520 to represent Its call relationship. A complete wireless temperature sensing ZigBee endpoint device can be constructed by the graphical representation 500 described above.
當完成圖形化表示的繪製後,系統即會解析圖形化表示中功能模塊所形成的元件架構以及其中各個連結的從屬關係是否符合規格(步驟S320)。簡而言之,此步驟就是在檢查圖形化表示中每一個功能模塊及連結的繪製是否符合標準規格。而針對功能模塊的部分,系統會先解析上述功能模塊所形成的元件架構中由多個子功能模塊合成的巢狀模組(nested component)是否符合規格(步驟S322)。若不符合規格,系統即會針對不符合規格的功能模塊提供修改建議(步驟S328)。 After the drawing of the graphical representation is completed, the system parses the component architecture formed by the functional modules in the graphical representation and whether the affiliation of each of the links conforms to the specification (step S320). In short, this step is to check whether the drawing of each function module and link in the graphical representation conforms to the standard specifications. For the part of the function module, the system first parses whether the nested component synthesized by the plurality of sub-function modules in the component structure formed by the function module meets the specification (step S322). If the specifications are not met, the system will provide modification suggestions for the functional modules that do not meet the specifications (step S328).
若巢狀模組符合規格,系統則進一步解析上述功能模塊之元件架構中的主功能模塊是否符合規格(步驟 S324)。若不符合規格,系統亦會針對不符合規格的功能模塊提供修改建議(步驟S328)。 If the nested module meets the specifications, the system further analyzes whether the main functional module in the component architecture of the functional module meets the specifications (steps) S324). If the specifications are not met, the system will also provide modification suggestions for the functional modules that do not meet the specifications (step S328).
若主功能模塊符合規格,系統則進一步檢查上述各個連結的從屬關係是否符合規格(步驟S326)。詳細地說,系統會根據每個連結兩端之功能模塊的物件及介面的屬性,判斷各個連結是否符合規格,例如會檢查每個連結之箭頭方向是否由被呼叫之功能模塊的物件指向呼叫之功能模塊的介面。若不符合規格,系統則會針對不符合規格的連結提供修改建議(步驟S328)。 If the main function module meets the specifications, the system further checks whether the affiliation of each of the above connections conforms to the specification (step S326). In detail, the system determines whether each link meets the specifications according to the attributes of the objects and interfaces of the function modules at both ends of each link. For example, it is checked whether the direction of the arrow of each link is pointed to by the object of the called function module. The interface of the function module. If the specification is not met, the system will provide modification suggestions for the link that does not meet the specifications (step S328).
若從屬關係符合規格,系統即會查詢內建的程式檔案對應表,以取得各個功能模塊對應的程式檔案(步驟S330)。舉例來說,下表1列示功能模塊與程式檔案的對應表,其中PWR.c對應低功率模塊、TempSensoor.c對應溫度感測器模塊、Timer.c及Timer.h對應計時器模塊、ADC.c對應類比數位轉換模塊、network.c對應射頻模塊。 If the affiliation is in compliance with the specification, the system queries the built-in program file correspondence table to obtain the program file corresponding to each function module (step S330). For example, Table 1 below shows the correspondence table between the function module and the program file, where PWR.c corresponds to the low power module, TempSensoor.c corresponds to the temperature sensor module, Timer.c and Timer.h corresponds to the timer module, and ADC. .c corresponds to the analog digital conversion module and network.c corresponds to the RF module.
在取得各個功能模塊對應的程式檔案之後,即可依照上述功能模塊的元件架構,將這些功能模塊對應的程式檔案加入無線設備的韌體專案,以產生韌體專案的韌體框架程式碼(步驟S340)。 After obtaining the program files corresponding to the respective function modules, the program files corresponding to the function modules can be added to the firmware of the wireless device according to the component architecture of the function module to generate the firmware framework code of the firmware project (steps). S340).
藉由上述方法,除了讓使用者可以用模組化的方式設計韌體的框架,並建立韌體框架程式碼,還可讓使用者針對韌體專案中各個功能模塊對應之程式檔案進行細部增修,最終產生無線設備完整的韌體程式碼。 By the above method, in addition to allowing the user to design the firmware framework in a modular manner and establishing the firmware framework code, the user can also perform detailed processing on the program files corresponding to the functional modules in the firmware project. Repair, and ultimately produce a complete firmware code for the wireless device.
綜上所述,在本發明之模組化韌體框架程式碼產生方法提供視覺化的設計方式給使用者定義韌體框架,並藉由模組化的方式針對使用者繪製的圖形化表示中的各個功能模塊進行解析,以產生韌體框架程式碼。據此,本發明可提供更直覺化的設計介面供韌體設計者檢視,而能夠降低韌體的複雜度並增加韌體設計的效率。 In summary, the modular firmware framework code generation method of the present invention provides a visual design method for a user to define a firmware framework, and is graphically represented in a graphical representation for the user. Each function module is parsed to generate a firmware framework code. Accordingly, the present invention can provide a more intuitive design interface for the firmware designer to view, while reducing the complexity of the firmware and increasing the efficiency of the firmware design.
雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 While the present invention has been described in its preferred embodiments, the present invention is not intended to limit the invention, and the present invention may be modified and modified without departing from the spirit and scope of the invention. The scope of protection is subject to the definition of the scope of the patent application.
100‧‧‧設計介面 100‧‧‧Design interface
110‧‧‧功能模組選取區 110‧‧‧ functional module selection area
112‧‧‧類比數位轉換模塊 112‧‧‧ analog digital conversion module
114‧‧‧射頻模塊 114‧‧‧RF module
116‧‧‧低功率模塊 116‧‧‧Low power module
118‧‧‧溫度感測器模塊 118‧‧‧Temperature Sensor Module
120‧‧‧圖形繪製區 120‧‧‧Graphic drawing area
200‧‧‧圖形化表示 200‧‧‧ graphical representation
210、220、230、240‧‧‧功能模塊 210, 220, 230, 240‧‧‧ functional modules
400‧‧‧無線溫度感測系統 400‧‧‧Wireless temperature sensing system
410‧‧‧端點裝置 410‧‧‧Endpoint device
411‧‧‧溫度感測器 411‧‧‧temperature sensor
412‧‧‧微控制器 412‧‧‧Microcontroller
413‧‧‧射頻模組 413‧‧‧RF Module
420‧‧‧協調裝置 420‧‧‧Coordination device
430‧‧‧數位電位計 430‧‧‧Digital Potentiometer
440‧‧‧冷氣機 440‧‧‧Air conditioner
500‧‧‧圖形化表示 500‧‧‧ graphical representation
510‧‧‧主程式模塊 510‧‧‧Main program module
511‧‧‧主程式 511‧‧‧ main program
512‧‧‧溫度感測器介面 512‧‧‧temperature sensor interface
513‧‧‧射頻介面 513‧‧‧RF interface
514‧‧‧低功率介面 514‧‧‧Low power interface
520‧‧‧溫度感測器模塊 520‧‧‧Temperature Sensor Module
521‧‧‧溫度感測器 521‧‧‧temperature sensor
522‧‧‧類比數位轉換介面 522‧‧‧ analog digital conversion interface
523‧‧‧計時器介面 523‧‧‧Timer interface
530‧‧‧射頻模塊 530‧‧‧RF Module
540‧‧‧低功率模塊 540‧‧‧Low power module
550‧‧‧類比數位轉換器模塊 550‧‧‧ Analog Digital Converter Module
560‧‧‧計時器模塊 560‧‧‧Timer module
S310~S340‧‧‧本發明之模組化韌體框架程式碼產生方法之各步驟 S310~S340‧‧‧ steps of the method for generating the modular firmware frame code of the present invention
圖1是依照本發明一實施例所繪示之圖形化表示的設計介面。 1 is a design interface of a graphical representation in accordance with an embodiment of the invention.
圖2是依照本發明一實施例所繪示之圖形化表示的示意圖。 2 is a schematic diagram of a graphical representation of an embodiment of the invention.
圖3是依照本發明一實施例所繪的模組化韌體框架程式碼產生方法的流程圖。 FIG. 3 is a flow chart of a method for generating a modular firmware frame code according to an embodiment of the invention.
圖4是依照本發明一實施例所繪示之冷氣機的無線溫度感測系統的方塊圖。 4 is a block diagram of a wireless temperature sensing system of an air conditioner according to an embodiment of the invention.
圖5是依照本發明一實施例所繪示之冷氣機的無線溫度感測系統端點裝置的圖形化表示。 FIG. 5 is a graphical representation of an endpoint device of a wireless temperature sensing system of an air conditioner according to an embodiment of the invention.
S310~S340‧‧‧本發明之模組化韌體框架程式碼產生方法之各步驟 S310~S340‧‧‧ steps of the method for generating the modular firmware frame code of the present invention
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW99111609A TWI426447B (en) | 2010-04-14 | 2010-04-14 | Method for generating firmware frame code using modulization scheme |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW99111609A TWI426447B (en) | 2010-04-14 | 2010-04-14 | Method for generating firmware frame code using modulization scheme |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201135591A TW201135591A (en) | 2011-10-16 |
TWI426447B true TWI426447B (en) | 2014-02-11 |
Family
ID=46751968
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW99111609A TWI426447B (en) | 2010-04-14 | 2010-04-14 | Method for generating firmware frame code using modulization scheme |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI426447B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW552557B (en) * | 2000-10-06 | 2003-09-11 | Syscom Comp Engineering Compan | Automatic program generating system and the method thereof |
US6701513B1 (en) * | 2000-01-14 | 2004-03-02 | Measurement Computing Corporation | Program-development environment for use in generating application programs |
US20070005342A1 (en) * | 2005-07-01 | 2007-01-04 | Ronald Ortscheid | Computer source code generator |
TWI309369B (en) * | 2006-05-03 | 2009-05-01 | Huang yu yin | System and method for editing assembly language of microprocessor by graphical charts |
-
2010
- 2010-04-14 TW TW99111609A patent/TWI426447B/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6701513B1 (en) * | 2000-01-14 | 2004-03-02 | Measurement Computing Corporation | Program-development environment for use in generating application programs |
TW552557B (en) * | 2000-10-06 | 2003-09-11 | Syscom Comp Engineering Compan | Automatic program generating system and the method thereof |
US20070005342A1 (en) * | 2005-07-01 | 2007-01-04 | Ronald Ortscheid | Computer source code generator |
TWI309369B (en) * | 2006-05-03 | 2009-05-01 | Huang yu yin | System and method for editing assembly language of microprocessor by graphical charts |
Also Published As
Publication number | Publication date |
---|---|
TW201135591A (en) | 2011-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201130952Y (en) | Intelligent control system for numeralization formations furniture based on ZigBee technique | |
CN104185307B (en) | A kind of integrated WSN intelligence sensors unified interface system of facing agricultural greenhouse | |
Varchola et al. | Zigbee based home automation wireless sensor network | |
Kazi et al. | IoT based Interactive Industrial Home wireless system, Energy management system and embedded data acquisition system to display on web page using GPRS, SMS & E-mail alert | |
Trinh et al. | Design of automatic irrigation system for greenhouse based on LoRa technology | |
CN202495961U (en) | Internet of things smart home system based on ZigBee | |
CN206975819U (en) | Collector based on LoRa wireless technologys | |
Bi | Smart home with ZigBee hardware simulation and performance evaluation | |
CN104484978A (en) | Old people on-chair falling alarming system based on Zigbee | |
CN105353672A (en) | Intelligent nursing system based on wireless sensor network | |
TWI426447B (en) | Method for generating firmware frame code using modulization scheme | |
CN207115725U (en) | Intelligent domestic system based on ZigBee technology | |
CN204233105U (en) | A kind of medical wireless body-temperature monitoring device | |
Guo et al. | Design of wsn-based environment monitoring system on repair of gas leakage | |
Mudunuru et al. | Real time security control system for smoke and fire detection using ZigBee | |
CN202889381U (en) | Home gateway supporting wireless sensor network | |
Chaiboonruang et al. | Small buildings energy management system based on IEEE1888 standard with data compression | |
CN100492430C (en) | Intelligent hydrogen leakage detecting system based on wireless sensing network | |
Choi et al. | Remote-controlled home robot server with ZigBee sensor network | |
CN203722830U (en) | Transmission system of wireless sensing network sensors | |
Sun et al. | An implementation of remote lighting control system based on Zigbee technology and SoC solution | |
Ke et al. | Design of temperature and humidity monitoring system based on Zigbee technology | |
CN107468225A (en) | Home voice health robot system | |
CN208675250U (en) | A kind of Internet of Things connection system and intelligent household networking system | |
CN207993185U (en) | A kind of outdoor photovoltaic lamps and lanterns with alarm system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |