201042989 六、發明說明: 【發明所屬之技術領域】 麵訊裝好配件軟體自動生成系 統及方法。 【先前技術】 Ο 隨著人們需求的提高,通訊灯的配置也多種多樣,可 裝置需要安裝多侧種配件,例如:在通訊裝置中安襄 :識射’在通訊裝置中絲雙攝像頭。目前,#通訊裝置 衣有夕個同種配件時,工作人員需要手叫該配件的軟體進行修 改’以使修改後峨體可歧援多她件。但是,雜修改方法, 不僅容㈣人场忽出錯,而且驗費了大量時間,降低了 效率。 【發明内容】 、馨於以上|^容,有必要提供—種軌裝置乡配件軟體自動生 成系統及方法’可以自動生成和該通訊裝置多個配件相匹配的軟 體程式。 —種通訊裝置多配件軟體自動生成系統,該系統包括:獲取 模組’驗從該通雜置獲取需生成多配件軟體的配件的控制參 數’創建模組,用於創建一個包括崎取的控制參數的結構體; 設置模組,用於設置需創建所述結構體的數量,所述結構體的數 量為通訊裝置該配件的個數;所述創建模組還用於創建一個包括 多個該結構體的陣列,該陣列中結構體的數量為所設置的結構體 的數量;及所述設置模組還用於給該陣列中每個結構體設置相對 應的編號,以生成啟動多個該配件的多配件軟體。 一種通訊裝置多配件軟體自動生成方法,該方法包括如下步 201042989 驟:從該通訊裝置獲取需生成多配件軟體的配件的控制參數;創 建一個包括所獲取的控制參數的結構體;設置需創建所述結構體 -的數量,所述結構體的數量為通訊裝置該配件的個數;創建一個 -包括多個該結構體的陣列,該陣列中結構體的數量為為所設置的 結構體的數量;及給該陣列中每個結構體設置相對應的編號,以 生成啟動多個該配件的多配件軟體。 相較於習知技術,所述的通訊裝置多配件軟體自動生成系統 〇 及方法,根據通訊裝置配件的控制參數和個數,自動生成和該通 訊裝置多個配件相匹配的軟體程式,避免了人工作業產生的錯 块,提南了工作的效率。 【實施方式】 如圖1所示,係本發明通訊裝置多配件軟體自動生成系統的 應用環境圖。所述的多配件軟體自動生成系統10應用於安裝有記 憶體12的通訊裴置1中。所述的通訊裝置i可以是手機、個人數 位助理(personal digital assistant,簡稱PDA)、掌上電腦或其他任 q 意適用的具有資料處理功能的電子裝置。所述的記憶體12用於儲 存該通訊裝置1中所有配件對應的控制參數。所述的多配件軟體 自動生成系統10用於根據通訊裝置1中配件的控制參數和通訊裝 置1中該配件的個數,自動生成和該通訊裝置多個配件相匹配的 軟體程式,以得到和該通訊裝置1中多個配件相匹配的軟體程式。 如圖2所示,係圖1中多配件軟體自動生成系統1〇的功能模 組圖。該多配件軟體自動生成系統1〇包括:獲取模組i⑻、創建 模組102、設置模組1〇4及調用模組106。 所述獲取模組100用於從儲存裝置12中獲取需生成多配件軟 201042989 體的配件驗娜數。所述配件是指觀 例如:用戶識別卡、攝像頭。所述 =硬體設備, 進行控綱參數,例如:攝像_㈣绩=括數4對該配件 析度、圖像格式、自動白平_整、_ π限於,解 圖像。喿音、視角及輸人/輸出介面。 、、'方式、彩色深度、 所述創建模Μ 102用於創建一個 麵。 她取的控制參數的結201042989 VI. Description of the invention: [Technical field to which the invention pertains] The system and method for automatic generation of accessory software. [Prior Art] Ο With the increase in people's needs, the configuration of communication lights is also varied. The device needs to be equipped with multi-side accessories, for example, in the communication device: Detecting the dual camera in the communication device. At present, when the #通信装置 has the same kind of accessories, the staff needs to call the software of the accessory to modify it so that the modified carcass can disagree with her. However, the miscellaneous modification method not only allows (4) people to make mistakes, but also spends a lot of time and reduces efficiency. SUMMARY OF THE INVENTION It is necessary to provide a software program that automatically matches a plurality of accessories of the communication device. A communication device multi-parts software automatic generation system, the system comprising: an acquisition module 'checking the control parameter from the miscellaneous to obtain a multi-partware software to generate a control module' creation module for creating a control including the acquisition a structure of the parameter; a setting module, configured to set a quantity of the structure to be created, the number of the structure is the number of the accessories of the communication device; the creating module is further configured to create a plurality of An array of structures, the number of structures in the array is the number of structures provided; and the setting module is further configured to set a corresponding number for each structure in the array to generate a plurality of Multi-accessory software for accessories. A method for automatically generating a multi-parts software for a communication device, the method comprising the following steps: 201042989: obtaining control parameters of an accessory for generating a multi-partware software from the communication device; creating a structure including the acquired control parameters; setting a creation The number of structures - the number of the structures is the number of the accessories of the communication device; creating one - an array comprising a plurality of structures, the number of structures in the array being the number of structures set And set a corresponding number for each structure in the array to generate a multi-part software that launches multiple of the accessories. Compared with the prior art, the communication device multi-parts software automatic generation system and method automatically generate a software program matching the plurality of accessories of the communication device according to the control parameters and the number of the communication device accessories, thereby avoiding The wrong block produced by manual work has brought the efficiency of work. [Embodiment] FIG. 1 is an application environment diagram of a multi-parts software automatic generation system for a communication device according to the present invention. The multi-parts software automatic generation system 10 is applied to a communication device 1 in which a memory unit 12 is mounted. The communication device i can be a mobile phone, a personal digital assistant (PDA), a palmtop computer or any other electronic device with data processing functions. The memory 12 is used to store control parameters corresponding to all accessories in the communication device 1. The multi-parts software automatic generation system 10 is configured to automatically generate a software program matching the plurality of accessories of the communication device according to the control parameter of the accessory in the communication device 1 and the number of the accessory in the communication device 1 to obtain a sum A software program in which the plurality of accessories of the communication device 1 match. As shown in Fig. 2, it is a functional block diagram of the multi-parts software automatic generation system 1 in Fig. 1. The multi-parts software automatic generation system 1 includes an acquisition module i (8), a creation module 102, a setup module 1〇4, and a call module 106. The acquisition module 100 is configured to acquire, from the storage device 12, the component verification number of the multi-part soft 201042989 body. The accessory refers to, for example, a user identification card, a camera. The = hardware device, for the control parameters, for example: camera _ (four) performance = bracket 4 for the resolution, image format, automatic white _ _, _ π limited, solution image. Voice, perspective and input/output interface. , 'mode, color depth, the creation module 102 is used to create a face. The knot of the control parameter she took
二於設置需創建所述_的數量,所述 置1中該配件的個數。例如:若該通訊 裝置1 h要述2個用戶識別卡,則設置模組⑽設 該用戶識別卡的結構體的數量為2。 兄釜 所述創建模組102還用於創建一個包括多個結構體的陣列, 該陣列包括的結構體的數量為所設置的結構體的數量。例如·若 設置模組m設置需克隆的結構體的數量為2,則該陣列包括2 個所創建結構體。 Ο 所述°又置模、,且102還用於給該陣列中每個結構體設置相對應 的編號,以生成啟動多健配件的多配件軟體。所述編號可以為 阿拉伯數字,例如:當該_中包括3個結構體時,可以將這3 個結構體分別編號為結構體1、結構體2及結構體3。 所述調用模組106用於當需要使用多個該配件中的一個配件 時,根攄需要使用的配件對應的結構體的編號從該多配件軟體中 調用對應的結構體,以啟動需要使用的配件的功能。 如圖3所示,係本發明通訊裝置多配件軟體自動生成方法的 較佳實施方式的流程圖。 201042989 存褽置12中獲取需生成多配件 步驟S10,獲取模組100從儲 軟體的配件的控制參數。 個包括所獲取的控制參數的結 步驟S12,創建模組1〇2創建一 構體。 々驟S14,&版组設置需創建所述結構體的數量,該陣 列包括的結構體的數量為所設置的結構體的數量。 、步驟S16 ’創建模組102創建-個包括多個結構體的陣列,所 ^述結構體的數量為所設置的結構體的數量。 乂驟S18 „又置模組1〇2給該陣列中每個結構體設置相對應的 編號,以生成啟動多個該配件的多配件軟體。 步驟S20 ’當需要使用多個該配件中的一個配件時,調用模組 出6根據需要使用的配件對應的結構體的編號從該多配件軟體中 調用對應的結構體,以啟動需要使用的配件的功能。 綜上所述,本發明符合發明專利要件,爰依法提出專利申請。 惟,以上所述者僅為本發明之較佳實施例,本發明之範圍並不以 〇 上述實施例為限,舉凡熟悉本案技藝之人士援依本發明之精神所 作之等效修飾或變化,皆應涵蓋於以下申請專利範圍内。 【圖式簡單說明】 圖1係本發明通訊裝置多配件軟體自動生成系統的應用環境 圖。 圖2係圖1中多配件軟體自動生成系統的功能模組圖。 圖3係本發明通訊裝置多配件軟體自動生成方法的較佳實施 方式的流程圖。 【主要元件符號說明】 201042989 通訊裝置 1 多配件軟體自動生成系統 10 儲存裝置 12 獲取模組 100 創建模組 102 設置模組 104 調用模組 106Second, the number of the _ to be created is set, and the number of the accessories in the set is set. For example, if the communication device 1 h describes two user identification cards, the setting module (10) sets the number of structures of the user identification card to two. The creation module 102 is also used to create an array comprising a plurality of structures, the array comprising a number of structures of the number of structures provided. For example, if the setting module m sets the number of structures to be cloned to 2, the array includes 2 created structures. Ο The mold is again set, and 102 is also used to set a corresponding number for each structure in the array to generate a multi-part software that activates the multi-joint accessory. The number may be an Arabic numeral. For example, when the _ includes three structures, the three structures may be numbered as the structure 1, the structure 2, and the structure 3. The calling module 106 is configured to: when one of the plurality of accessories is needed to be used, call the corresponding structure from the multi-parts software according to the number of the structure corresponding to the accessory to be used to start the required structure. The function of the accessory. As shown in FIG. 3, it is a flowchart of a preferred embodiment of a method for automatically generating a multi-parts software for a communication device of the present invention. 201042989 The storage device 12 is required to generate multiple accessories. Step S10 is to obtain the control parameters of the module 100 from the software accessories. The step S12 includes the acquired control parameters, and the creation module 1〇2 creates a structure. Step S14, & group setting needs to create the number of structures, the number of structures included in the array is the number of structures set. Step S16' creates a module 102 to create an array comprising a plurality of structures, the number of which is the number of structures set. Step S18 „Reset module 1〇2 sets a corresponding number for each structure in the array to generate a multi-part software that starts a plurality of the accessories. Step S20 'When one of the multiple accessories needs to be used In the case of the accessory, the calling module 6 calls the corresponding structure from the multi-parts software according to the number of the structure corresponding to the accessory to be used to activate the function of the accessory to be used. In summary, the invention complies with the invention patent. The above is only a preferred embodiment of the present invention, and the scope of the present invention is not limited to the above embodiments, and those skilled in the art can rely on the spirit of the present invention. The equivalent modifications or variations are to be included in the following patent application. [Simplified Schematic] FIG. 1 is an application environment diagram of a multi-parts software automatic generation system for a communication device of the present invention. FIG. 3 is a flow chart of a preferred embodiment of a method for automatically generating a multi-parts software of a communication device according to the present invention. No. Description 201042989 Communication device 1 Multi-accessory software automatic generation system 10 Storage device 12 Acquisition module 100 Creation module 102 Setting module 104 Calling module 106
77