201104574 -六、發明說明: 【發明所屬之技術領域】 本發明是有關於一種韌體更新方法及系統,特別是 有關於一種可攜式通訊裝置及其韌體更新方法及系統。 【先前技術】 目則’一般智慧型手機多具有兩處理器之架構,兩 • 處理器當中,有一處理器主要用以處理一般應用程式, 稱之為應用處理器(Application CPU ),而另一處理器則 主要應用在處理通話等網路應用方面,稱之為數據處理 器(Modem CPU)。數據處理器大多以獨立的模組形式 出現,一般而言,應用處理器及數據處理器都是由不同 ,應商所提供,所以智慧型手機韌體的更新工具,通常 疋獨立存在的。因此,無論是在韌體更新程式的開發技 '術方面來說,還是智慧型手機生產線的測試來說,必須 •分別利用不同的工具來對智慧型手機内部之應用處理器 及數據處理器分別更新及測試,在使用上實有其不便之 處。 鑑於習知技藝之各項問題,為了能夠兼顧解決之, ,人基於多年研究開發與諸多實務經驗,提出一種 ° ’通錢置及其_體更新方法及系統,以作為改善 上述缺點之實現方式與依據。 201104574 【發明内容】 有,於上述習知技藝之問題,本發明之其中一目的 就是在提供—種可攜式通訊裝置及其㈣更新方法及系 統以解決習知技術中可攜式通訊裝置之勒體不易更新 的問題。 、藉此,本發明提出一種可攜式通訊裝置之韌體更新 方法’其方法步驟#下。首先,將可攜式通訊裝置之一 通訊連接埠電性連接至-電子裝置。自電子裝置將-般 應用程式下载後儲存於可攜式通訊裝置之—第—儲存單 兀。下載一通訊應用程式儲存於第一儲存單元。將第一 儲存單元内之通訊應用程式傳送並儲存到第二儲存單 兀。最後,利用可攜式通訊裝置之一第一處理單元及一 第二處理單元分別執行—般應用程式及通訊應用程式, 以進行韌體更新。 人此外,本發明更提出一種韌體更新系統。其至少包 含一電子裝置及一可攜式通訊裝置。電子裝置具有至少 般應用程式及一通訊應用程式。可攜式通訊裝置包 第儲存単元、一第一儲存單元、一通訊連接埠、 第處理單元及一第二處理單元。通訊連接埠係連接 至電子裝置以下載一般應用程式及通訊應用程式,並儲 存至第一儲存單元。第一處理單元係將第一儲存單元内 之,訊應用程式傳送並儲存到第二儲存單元,且第一處 理單元係執行一般應用程式,第二處理單元執行儲存於 第二儲存單元之通訊應用程式。 201104574 此外,本發明更提出-種可攜式通訊裝置 :第-模組及H組模組包含—通訊連ς 一第Τ储存單元及—第—處理器,第二模組包含-一儲存單兀、-第二處理器及一通訊介面。其中,去 執行勒體更新程序時,係下载—電子裝置之至少BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a firmware updating method and system, and more particularly to a portable communication device and a firmware updating method and system thereof. [Prior Art] The general purpose of the general smart phone has a two-processor architecture. Among the two processors, one processor is mainly used to process a general application, which is called an application processor (Application CPU). The processor is mainly used in the processing of network applications such as calls, called the data processor (Modem CPU). Most of the data processors appear as separate modules. Generally speaking, the application processor and the data processor are provided by different vendors. Therefore, the update tool of the smart phone firmware usually exists independently. Therefore, whether it is in the development technology of the firmware update program or the test of the smart phone production line, it is necessary to separately use different tools to separate the application processor and the data processor inside the smart phone. Updates and tests have inconveniences in their use. In view of the problems of the prior art, in order to be able to solve the problem, based on years of research and development and many practical experiences, the author proposes a method and system for updating the 'Tong Qian and its _ body as a way to improve the above shortcomings. And basis. 201104574 SUMMARY OF THE INVENTION In view of the above problems, one of the objects of the present invention is to provide a portable communication device and (4) updating method and system thereof to solve the portable communication device of the prior art. The problem that the body is not easy to update. Accordingly, the present invention provides a method for updating a firmware of a portable communication device'. First, one of the communication devices of the portable communication device is electrically connected to the electronic device. The electronic device downloads the general application and stores it in the portable communication device - the first storage sheet. Download a communication application stored in the first storage unit. The communication application in the first storage unit is transferred and stored to the second storage unit. Finally, the first processing unit and the second processing unit of the portable communication device respectively execute the general application and the communication application for firmware update. In addition, the present invention further proposes a firmware renewal system. It includes at least one electronic device and one portable communication device. The electronic device has at least an application and a communication application. The portable communication device includes a storage unit, a first storage unit, a communication port, a processing unit, and a second processing unit. The communication port is connected to the electronic device to download the general application and communication application and save it to the first storage unit. The first processing unit transmits and stores the application in the first storage unit to the second storage unit, and the first processing unit executes a general application, and the second processing unit executes the communication application stored in the second storage unit. Program. 201104574 In addition, the present invention further proposes a portable communication device: a first module and a H group module include a communication port, a first storage unit and a first processor, and the second module includes a storage list.兀, - the second processor and a communication interface. Wherein, when performing the homing update program, the download-electronic device is at least
j用私式、_軌顧程式及—輔助應肖料並儲存於 第-儲存料,藉由第—處理器執行輔助應用程式,以 建立第-儲存單元及第二儲存單元之橋接 應用程式傳送並儲存至第二儲存單元,_彳玲體更^ 承上所述’依本發明之可攜式通訊裝置及其勤體更 新方法及系統,其可具有下述優點: 此可攜式通訊裝置之勒體可藉由橋接第一儲存單元 及第二儲存單元,以解決韌體更新需要分別自電子裝置 下載更新程式的問題。藉此’以提高更 及方。 町心双手 # 兹為纟㈣查委員對本發明之技術特徵及所達到 之功效有更進-步之瞭解與認識,謹佐以較佳之實施例 及配合詳細之說明如後。 【實施方式】 以下將參照相關圖式,說明依本發明較佳實施例之 可攜式通訊裝置及其㈣更新方法及线,為使便於理 解’下述實施例中之相同元件係以相同之符號標示來說 201104574 梦置= i其係為本發明之智慧型可攜式通訊 之步驟流程圖。其步驟流程如下, 可攜式通Sfl裝置透過-通訊連鱗電性連接至一 電子裳置之通訊介面以進行程式下载(步驟S11),盆 中-電子裝置較佳為一電腦,而可攜式通訊裝置可為二 智慧型手機,通訊連接埠較佳: (u—serialBUS,USB)。為通用序列匯流排 然後,將連結電子裝置後所下載之一一般應用 二,儲,可攜式通訊裝置之—第一儲存單元(步驟 η:牛判斷可攜式通訊裝置是否需要下載一通訊 牛若是’下載通訊應用程式,並儲 存於第一儲存早疋(步驟叫)。接著,再下載-輔助廡 ^程式’並執㈣助制程式以建立第—儲存單元盘二 單元之橋接(步驟si5)。於本實施例中,係自 =裝置下載輔助應靠式至第_儲存單元並利用可 =通訊裝置之第-處理單元執行輔助應用程式,以建 立第一儲存單元與第二儲存單元橋接。 第,存單疋與第二儲存單元間之連結建立後,將 儲存單元内之通訊應用程式傳送至第二儲存單元, 並同時儲存於第二儲存單元(步驟si6)。 -—f後’彻第-處理單元及—第二處理單元分別執 :又應用程式及通訊應用程式,以進行韌體更新(步 =17)。·於本實施例中,第一處理單元係為-應用處理 盗AppliCatlon CPU)以執行可攜式電子裝置中之一般 201104574 應用程式。而第-走 CPU),主要用以^理阜元係為一數據處理器(Modem 式,以使可攜式電可攜式電子裝置中之網路應用程 器通信。 裝置可與另一通訊裝置之數據處理 請參閱第2圖,1々 行輔助應用程式之步…1明之可攜式通訊裝置執 攜式通訊裝置上,輔^_。財,_配置於一可 之通訊連接料應用程式係藉由可攜式通訊裝置j uses a private, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ And storing to the second storage unit, the _ 彳 体 更 ^ 承 ' ' ' ' ' ' 依 依 可 可 可 可 可 可 可 可 可 可 可 可 可 可 可 可 可 可 可 可 可 可 可 可 可 可 可 可By collating the first storage unit and the second storage unit, the problem of firmware update requiring downloading the update program from the electronic device separately is solved. Use this to improve the party. 。心心 Hands # 纟 纟 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 。 。 。 。 [Embodiment] Hereinafter, a portable communication device and a (4) updating method and line thereof according to a preferred embodiment of the present invention will be described with reference to the related drawings, in order to facilitate understanding, the same components in the following embodiments are identical. Symbol designation 201104574 Dream set = i is a flow chart of the steps of the smart portable communication of the present invention. The process of the step is as follows: the portable SFL device is connected to the communication interface of an electronic device through a communication device for program downloading (step S11). The tablet-electronic device is preferably a computer, and is portable. The communication device can be a two-smart mobile phone, and the communication connection is better: (u-serialBUS, USB). For the universal serial bus, then, after downloading the electronic device, one of the general application two, the storage and the portable communication device - the first storage unit (step η: the cow determines whether the portable communication device needs to download a communication cattle If it is 'download the communication application, and save it in the first storage early (step call). Then, download the - auxiliary 庑^ program' and execute the (4) helper program to establish the bridge of the first storage unit disk unit (step si5) In the embodiment, the auxiliary device is downloaded from the device to the first storage unit and the auxiliary processing device is executed by the first processing unit of the communication device to establish a bridge between the first storage unit and the second storage unit. After the connection between the deposit slip and the second storage unit is established, the communication application in the storage unit is transferred to the second storage unit and simultaneously stored in the second storage unit (step si6). The first processing unit and the second processing unit respectively perform an application and a communication application for firmware update (step=17). In this embodiment, the first processing unit is The AppliCatlon CPU is processed for the application to execute the general 201104574 application in the portable electronic device. The first-pass CPU is mainly used as a data processor (Modem type to enable network application communication in the portable electronic portable device. The device can communicate with another device. For the data processing of the device, please refer to Figure 2, 1 Steps of the auxiliary application program... 1 The portable communication device is supported on the communication device, and the auxiliary communication device is configured in the communication device. Portable communication device
電服連接,並下載輔+J-中,通訊連接埠較以USR ^㈣助應^式。其 載到應用處理ϋ:ίπ二首先,辅助應用程式被下 亞模組的S己憶體裡運作, 模組與數據處理模 =&時應用處理器 應用鋥透橋接連接(步驟S21)。該辅助 H ί 部通用輸“介面(Gen_ Purpose 1/0, )來啟動數據處理模組(步驟S2 ^動後傳輸同步位元(,一 ^輔助應用程式回應肯定應答(AffirmativeThe electric service is connected, and the auxiliary +J- middle is downloaded, and the communication connection is more in the USR ^ (four). It is loaded into the application processing: ίπ2 First, the auxiliary application is operated by the sub-memory of the sub-module, and the module and the data processing module =& application processor are connected through the bridge (step S21). The auxiliary H ί part of the general input "Gen_ Purpose 1 / 0," to start the data processing module (step S2 ^ after the transmission of the synchronization bit (, a ^ auxiliary application response to the positive response (Affirmative
Acknowledgement,ACK )(步驟 S23 )。 當數據處賴組啟動後,判岐否在—預設時間内 (-般50ms ’不时台時間間隔定義不同),收到輔助 應用程式时定應答。若在預設時間内,㈣輔助應用 程式的肯定應答,則進人下載通訊應用程式的階段(步 驟S241);反之,若在預設時間内,未收到輔助應用程 式的肯定應答,則進行一般的啟動程序(步驟S242)。 此時建立基本通訊的連接’利用輔助應用程式將記憶體 編碼透過橋接器下載到數據處理模組的記憶體運行。該 記憶體編碼重新建立數據處理模組與輔助應用程式的通 201104574 訊連接。藉此,輔助應用程式即可透過記憶體編碼,將 已下載至應用處理模組的儲存單元裡(或者保存在隨機 存取記憶體裡)的通訊應用程式下載到數據處理模組的 儲存單元裡。 在本發明中,輔助應用程式結構比較簡單也相似於 電腦上的下載資料至數據處理模組的模式,集結了上述 中所提及之記憶體編碼,主要用於預下載記憶體編碼到 數據處理模組的記憶體,然後透過該記憶體編碼建立與 數據處理模組的通訊連結’接著分段發送資料給記憶體 編碼,由記憶體編碼完成寫入數據處理模組的儲存單元 的動作。 明參閱第3圖,其係為本發明之韌體更新系統之方 塊圖。韌體更新系統包括一電子裝置3〇及一可攜式通訊 裝置3。電子裝置30較佳為一電腦,其至少具有__般 應用程式391、-通訊應用程式392及一輔助應用程式 393。可攜式通訊裝置3至少包含__通訊連接埠μ、一 第一儲存單元34、一第一處理單元35、一第二儲存單元 36、一第一處理單元37及一通訊介面%。 一為了方便說明,在此將通訊連接埠33、第一儲存單 疋34及第-處理單元35稱為第—模組3卜並將第二儲 存單元36、第二處理單元37及通訊介面%稱為第二模 組32。其中,通訊連接埠33較佳為usb,第一處理單 元^較佳為一應用處理器(Application CPU)。第二處 理早兀37較佳為—數據處理II (Modem CPU)以與另 一通訊裝置之數據處理器通信。通訊介面38係為-通用 201104574 異步傳送接收(UART)介面,以接收傳送訊號。 ,第一模組31可稱為一程式應用模組,第二模組32 可稱為一數據應用模組。主要係藉由第一模組31之通訊 連接蟑33連接至一電子裝置3〇,以下載一般應用程式 391至第一儲存單元34。其中,當判斷電子裝置3〇之第 一模,、且32需要更新時,則繼續下载通訊應用程式392 至第儲存單元34,並下載一辅助應用程式^ 於本實施例中,第—處理單元35執行自電子裝置 3〇下載之輔助應用程式393時,橋接第一儲存單元% 及第二儲存單元37 ’並且將第—儲存單元Μ中之通訊 應用程式392透過橋接傳輸至第二儲存單元η °, ,-處理單元35即執行一般應用程式別,而第理 單TC36則執行通訊應用程式州,以 3進行韌體更新。 同、遇矾聚置 以上所述僅為相性’㈣為限健者。 離本發明之精神與㈣,而對其進叙等效 $ 更,均應包含於後附之申請專利範圍中。 > 文或支 201104574 【圖式簡單說明】 第1圖 第2圖 第3圖 之步驟流程圖1搞式通訊裝 係為本發明之 式執行之步驟流== ^為本發明通訊裝 統之功能方塊圖。 、 置之韌體更新方法 置執行輔助應用程 置及其韌體更新系 201104574 【主要元件符號說明】 S11〜S17 :步驟流程; S21〜S242 :步驟流程 3:可攜式通訊裝置; 30 :電子裝置; 31 :第一模組; 32 :第二模組; • 33 :通訊連接埠; 34 :第一儲存單元; 35 :第一處理單元; 36 :第二儲存單元; 37 :第二處理單元; 38 :通訊介面; • 391 : —般應用程式; 以及 392 :通訊應用程式; 393 :輔助應用程式。 11Acknowledgement, ACK ) (step S23). When the data severing group is started, it is judged whether it is within the preset time (the general 50ms ‘time interval interval definition is different), and the acknowledgment is received when the auxiliary application is received. If, within a preset time, (4) the auxiliary application's positive response, the user downloads the communication application stage (step S241); otherwise, if the auxiliary application does not receive the positive response within the preset time, then A general startup procedure (step S242). At this point, a basic communication connection is established. The auxiliary application is used to download the memory code to the memory of the data processing module through the bridge. The memory code re-establishes the connection between the data processing module and the auxiliary application. In this way, the auxiliary application can download the communication application downloaded into the storage unit of the application processing module (or stored in the random access memory) into the storage unit of the data processing module through the memory encoding. . In the present invention, the auxiliary application structure is relatively simple and similar to the mode of downloading data to the data processing module on the computer, and the memory encoding mentioned in the above is assembled, mainly for pre-downloading memory encoding to data processing. The memory of the module is then used to establish a communication link with the data processing module through the memory code. Then, the data is sent to the memory code in segments, and the memory unit is written to perform the operation of the storage unit of the data processing module. Referring to Figure 3, it is a block diagram of the firmware update system of the present invention. The firmware update system includes an electronic device 3A and a portable communication device 3. The electronic device 30 is preferably a computer having at least an application 391, a communication application 392, and an auxiliary application 393. The portable communication device 3 includes at least a communication port, a first storage unit 34, a first processing unit 35, a second storage unit 36, a first processing unit 37, and a communication interface. For convenience of description, the communication port 33, the first storage unit 34, and the first processing unit 35 are referred to herein as the first module 3 and the second storage unit 36, the second processing unit 37, and the communication interface%. It is called the second module 32. The communication port 33 is preferably usb, and the first processing unit is preferably an application processor. The second processing port 37 is preferably a Modem CPU for communicating with a data processor of another communication device. The communication interface 38 is a general-purpose 201104574 asynchronous transmit receive (UART) interface for receiving transmit signals. The first module 31 can be referred to as a program application module, and the second module 32 can be referred to as a data application module. Mainly connected to an electronic device 3 via the communication port 33 of the first module 31 to download the general application 391 to the first storage unit 34. When the first mode of the electronic device 3 is determined, and 32 needs to be updated, the communication application 392 to the storage unit 34 are continuously downloaded, and an auxiliary application is downloaded. In this embodiment, the first processing unit When the auxiliary application 393 downloaded from the electronic device 3 is executed, the first storage unit % and the second storage unit 37 ′ are bridged and the communication application 392 in the first storage unit 透过 is transmitted to the second storage unit through the bridge. °, - The processing unit 35 executes the general application program, and the first TC36 executes the communication application state, and performs the firmware update with 3. The same as the encounter, the above mentioned only the phase of the '(four) is limited health. The spirit of the present invention and (4), and its equivalent of $, should be included in the scope of the appended patent application. > Text or branch 201104574 [Simple diagram of the diagram] Step 1 Figure 2 Figure 3 Steps Flowchart 1 Engagement communication is the step flow of the implementation of the invention == ^ is the communication device of the invention Functional block diagram. The firmware update method is set to execute the auxiliary application and its firmware update system is 201104574. [Main component symbol description] S11~S17: Step flow; S21~S242: Step flow 3: Portable communication device; 30: Electronics Device; 31: first module; 32: second module; • 33: communication port; 34: first storage unit; 35: first processing unit; 36: second storage unit; 37: second processing unit 38: communication interface; • 391: general application; and 392: communication application; 393: auxiliary application. 11