201109871 六、發明說明: 【發明所屬之技術領域】 尤指一種模組化服務 本發明係關於一種服務代理器 器及其支援終端設備的方法。 【先前技術】 自從網路成為主要&資訊與社群媒讀,透過網路連 結的設備與設備之間,即存在傳輸協^及資料格式必須相 互支援匹配的問題,以終端設備與應用伺服器為例…終 端設備若要存取應耗服器,即必須配合該應㈣服器的 傳輸協定與資料格式’從另方面來看,應用伺服器必須支 援該終端㈣,才能進行正常地進行資料傳輸。基於前述 網路協m以往的作法,係修改應划服器或是終端 設備具備協;t與資料轉換功能,即使如此,仍需雙方配合 ,僅單方具備前述功能,仍無法達成彼此相容之目的。201109871 VI. Description of the Invention: [Technical Field of the Invention] In particular, a modular service The present invention relates to a service agent and a method thereof for supporting a terminal device. [Prior Art] Since the network has become the main & information and community media reading, there is a problem that the transmission protocol and the data format must support each other between the devices and devices connected through the network, with the terminal device and the application server. For example, if the terminal device wants to access the server, it must cooperate with the transmission protocol and data format of the server. From another perspective, the application server must support the terminal (4) in order to perform normal operation. Data transmission. Based on the previous practice of the network association, it is necessary to modify the compliant device or the terminal device to have the cooperation; t and the data conversion function. Even so, the two parties still need to cooperate, and only one side has the aforementioned functions, and still cannot achieve mutual compatibility. purpose.
當設備因資料格式不相容、需求特殊或環境限制等因 素而無法正常連結應用伺服器,纟無法大幅修改應用伺服 器端與設備端,則設備與應用伺服器可透過服務代理器所 提供特殊協定或資料的轉換功能’達到轉介傳輸的目的。 由於各種網路技術不斷推陳出新,終端設備可能面對的資 訊媒介即不再是單一種類,而是許多不同種類的網路協定 ,例如網際網路、封閉型的數位電視網路(如M〇D)、ngN /」MS網路等。面對這些不同種類的網路,將使服務代理 器的應用更形重要及普遍。 再者,由於不同的通訊協定與架構,使得資訊的傳輸 201109871 模式亦有所不同,以一般上網為 '網Μ,士处/θ 〇 j便用者必須連結某個 主動要網址所屬網址的資訊,如吾人定義此種 到要/後/得到回應的模式為同步傳輸,則網站在接 即=步=…回應終端設備的要求時,此種模式 ㈣協—* /,而刖4时傳輸與相步傳輸所採用的 =Γ:ί:構通常均不相同,因此一應用词服器若要主 二:〜又備’必須有另外的通訊機制予以支援。而對 與應賴服器之間扮演轉換料角色的服務 代理益’則述的非同步傳輸自為支援的功能項目之一。 由上述可知’目前終端設備與應用飼服器之間存在種 :繁多的異質網路協定’為善盡轉換與溝通的功能,服務 0理益必須滿足不同通信協定的需求,但每一種終端設備 不相同,其需求的通信協定種類亦不相同,因此造成一 旦有新機種的終端設備(例如網路電視的機上盒)問世,其 增加了新的通信協定’在服務代理器的一方,除非進行大 幅修改,或以開發新的服務代理器取代,否則即無法支援 終端設備的需求,但針對特定終端設備或應用祠服器開發 新的服務代理器,顯然工程龐大且成本過高。故針對前述 問題’有待進-步檢討並謀求可行的解決方案。 【發明内容】 因此本^月主要目的在提供一種模組化服務代理| 主要係·7月良務代自器係根據終端設備及/或應用伺月 器的特性,由多個不同功能的模組所組成,藉此滿足“ 不同終端6又備的而《’另—旦新增了應用词服器及終端言 201109871 備,僅須針對新增應用伺服器及終端設備的功能增加功能 杈,’且,即可輕易達成擴充支援新增應用伺服器及終端設備 之目的。 為達成前述目的採取的主要技術手段係令一模組化服 知代理盗包括一個以上用以連結終端設備的動作執行模組 及一連結應用伺服器的服務控制模組;其中,該動作執行 模組將執行以下步驟: 接党終端設備發出的請求; 執行5玄服務控制模組,並且取回所得資料; 將執行服務控制模組得資料轉換為終端設備接受的格 式; 回應發出請求的終端設備; 又该服務控制模組將執行以下步驟: 執行動作執行模組之請求; 轉換S玄請求之參數為應用伺服器接受的格式; 向應用伺服器發出請求; 將應用飼服器回應的資料回傳給動作執行模組。 由上述可知,本發明係以動作執行模組及服務控制模 組為基本構成’該動作執行模組係對應於終端設備,該服 務控制模組則對應於應用㈣器,因此可根據支援的終端 &備及應用伺服n ’選擇對應的動作執行模組及服務控制 杈組以組成一服務代理器,藉此可方便開發新的服務代理 态’另服務代理器—旦新增了連結的終端設備及,或應用 伺服态’可透過新増對應的動作執行模組及/或服務控制 核組,即可輕易達成擴充而支援不同終端設備存取應用词 201109871 服器之目的。 本發明次一目的在挺供一種支援非同步傳輸通訊協定 的模組化服務代理器。 為達成别述目的採取的技術手段係令前述服務代理号 進一步包括一個以上的事件通知模組,以供應用伺服器透 過服務控制模組及該事件通知模組對終端設備進行非同步 傳輸。 【實施方式】 請參閱第一圖所示’係本發明一較佳實施例的系統架 構,主要係由一個以上的動作執行模組(1 〇)及一服務控制 模組(20)組成一服務代理器;其中,該動作執行模組(1〇) 係用以連結终端設備,該服務控制模組(2〇)係供連結應用 伺服器(40)。 而前述服務代理器與終端設備、應用伺服器之間的^ 作方式請配合參閱第二圖所示: 首先由動作執行模組(1 〇)接受終端設備發出的請求 (1〇1),並發出請求以執行該服務控制模組(2〇)(1〇2); 接著由服務控制模組(20)執行動作執行模組(1〇)的請 求(201) ’並將請求的參數轉換成應用伺服器可以接受 的格式(202)’接著即向應用飼服器(4Q)送出請求,並接收 :用伺服器(4〇)回應的資料(203)該服務控制模組(20)隨 後將回應資料送回動作執行模組(10)(204); 终端Π作執行模組(Μ收到回應資料後,即將其轉換成 又可以接文的格式(103),並回應給終端設備(1〇4上 201109871 故由上述可知 該動作執行模組(1 〇)係執行 以下工作 ()·接受終端設備發出的請求; (B) •執行該服務控制模組(20),並取 … (C) ·將執行服務控制模組(20)所得資料=坎 備接受的格式; 轉換為終端設When the device cannot connect to the application server due to factors such as incompatible data format, special requirements or environmental restrictions, and the application server and device cannot be greatly modified, the device and application server can provide special services through the service agent. The conversion function of the agreement or data 'reaches the purpose of referral transmission. As various network technologies continue to evolve, the information medium that terminal devices may face is no longer a single type, but many different kinds of network protocols, such as the Internet, closed digital TV networks (such as M〇D). ), ngN / "MS network, etc. Faced with these different kinds of networks, the application of service agents will become more important and common. Furthermore, due to different communication protocols and architectures, the 201109871 mode of information transmission is also different. In general, the Internet is used as the 'net, and the user/speaker must link to the information of the URL of the active website. If we define this mode to be/after/received as synchronous transmission, then the website will respond to the requirements of the terminal device when it responds to the terminal device. (4) Coordination - * /, and 刖 4 hours transmission and The =Γ:ί: structure used for phase-by-step transmission is usually different, so if you want to use the word processor, you must have another communication mechanism to support it. The non-synchronous transmission of the service agent that acts as a conversion agent between the responder and the server is one of the functional items supported. It can be seen from the above that 'there are kinds of heterogeneous network protocols between the current terminal equipment and the application feeders'. In order to fulfill the functions of conversion and communication, the service 0 benefits must meet the requirements of different communication protocols, but each type of terminal equipment Different, the types of communication protocols required by them are different, so that once a terminal device of a new type (such as a set-top box for Internet TV) comes out, it adds a new communication protocol 'on the side of the service agent unless Substantial modifications, or the replacement of new service agents, otherwise the requirements of the terminal device cannot be supported, but the development of a new service agent for a specific terminal device or application server is obviously huge and costly. Therefore, it is necessary to further review and seek a viable solution to the aforementioned problems. [Summary of the Invention] Therefore, the main purpose of this month is to provide a modular service agent. Mainly, the July Department of Service, based on the characteristics of the terminal device and/or the application server, is composed of a plurality of different functions. The group consists of, to meet the "different terminals 6 and prepared" and "additional application of the word processor and terminal statement 201109871, only need to add functions for the new application server and terminal devices," 'And it is easy to achieve the purpose of expanding support for new application servers and terminal devices. The main technical means to achieve the above objectives is to make a modular service agent pirate including more than one action to connect the terminal device. a module and a service control module connected to the application server; wherein the action execution module performs the following steps: a request sent by the party terminal device; executing the 5-node service control module, and retrieving the obtained data; The service control module converts the data into a format accepted by the terminal device; responds to the requesting terminal device; and the service control module performs the following steps: The request of the action execution module; the parameter of the conversion S-substance is the format accepted by the application server; the request is sent to the application server; and the data responded by the application server is returned to the action execution module. The action execution module and the service control module are basically configured. The action execution module corresponds to the terminal device, and the service control module corresponds to the application (4) device, so that the supported terminal & n 'Select the corresponding action execution module and service control group to form a service agent, thereby facilitating the development of a new service agent state 'other service agent' - newly added terminal device and application servo The state can be easily expanded to support different terminal devices to access the application word 201109871 through the action execution module and/or service control core group corresponding to the new one. The second purpose of the present invention is to provide a kind of support. Modular service agent for asynchronous transmission protocol. The technical means adopted for the purpose of the other description is to further the aforementioned service agent number. Including one or more event notification modules, the supply server uses the service control module and the event notification module to asynchronously transmit the terminal device. [Embodiment] Please refer to the first figure as a comparison of the present invention. The system architecture of the preferred embodiment is mainly composed of one or more action execution modules (1) and a service control module (20), wherein the action execution module (1〇) is used. The connection terminal device, the service control module (2〇) is used to connect to the application server (40), and the operation manner between the foregoing service agent and the terminal device and the application server is as shown in the second figure: First, the action execution module (1 〇) accepts the request (1〇1) issued by the terminal device, and issues a request to execute the service control module (2〇) (1〇2); then by the service control module (20) A request to execute the action execution module (1) (201) 'converts the requested parameters into a format acceptable to the application server (202)' and then sends a request to the application server (4Q) and receives: Responding with the server (4〇) (203) The service control module (20) then sends the response data back to the action execution module (10) (204); the terminal acts as an execution module (after receiving the response data, it converts it into a new one. The format of the text (103), and respond to the terminal device (1, 4, 201109871, so the above-mentioned action execution module (1 〇) can perform the following work () accept the request from the terminal device; (B) • Execute The service control module (20), and take... (C) · The data obtained by the service control module (20) will be executed = format accepted for conversion; converted to terminal design
(D).回應給發出請求的終端設備。 又服務控制模組(2〇)則執行以下的工作: (A)_執行動作執行模組(1 0)之請求; 月巨接受的 (Β)·轉換該請求之參數為應用伺服器(4〇)所 (C).向應用伺服器(4〇)發出請求; 組(:_將應用飼服器(40)回應的資料回傳給動作執行模 由上述可知,组成服務代理器基本架構之動作執 組::〇)係對應於終端設備,其可接受終端設備的請求,以 執行對應的服務控制模組(20),又同為服務代理器基本架 構的服務控制模組(2〇)係對應於應用飼服器(4〇),用以將 來自動作執行模組(10)的請求轉換成應用伺服器(4〇)可以 接又的格式,進而存取該應用伺服器(40)。 基於别述模組的特性,使本發明之服務代理器具有擴 充陡,可以因應不同種類的終端設備’選擇設置多個動作 執行模組(10);例如: 以考量終端設備的需求而言’一經選定對應於該终端 201109871 設備的動作執行模組(1Q)後,另針對需求的應用词服器選 擇一對應的服務控制模·组(20),即可構成—符合該終端設 備需求的服務代理器。 又欲滿足應用词服器對應不同終端設備的需求時,則 選擇使用應用词服器專屬的服務控制模組(2〇) ’再依據不 同的終端設備選擇相對應的動作執行模組(1〇),其組成的 服務代理器即可滿足應用伺服器介接不同終端設備的要求 〇 如第三圖所示,係本發明一可行實施例的服務代理器 系統架構示意圖,其針對不同種類的終端設備(如PDA,上 網手機、機上盒等)選用多個相對應的動作執行模組(彳0A) (1〇B)(1〇C),又因應一特定網路協定(例如丨nternet)的 應用伺服器選用一對應的服務控制模組(2〇),藉以構成一 可介接異質網路的服務代理器。 前述由動作執行模組(彳〇)與服務控制模組(2 〇)組成的 服務代理器係在各終端設備與應用伺服器間進行一同步傳 輸(請求—回應),當應用伺服器欲對終端設備進行非同步 傳輸(主動通知)時,該服務代理器可如第四圖所示,進一 步設置一個以上的事件通知模組(30A)(3〇B),供應用伺服 器透過該服務控制模組(20)與事件通知模組(3〇a)(3〇b)對 終端設備進行非同步傳輸。 由上述可知’利用前述各種動作執行模組、服務控制 模組,或進一步包括事件通知模組的組合,可以組成不同 的服務代理器,以支援各種不同的終端設備;同時在服務 代理器新增應用伺服器或是終端設備時,可大幅簡化其修 201109871 改規模。 【圖式簡單說明】 第一圖:係本發明一較佳實施例之系統架構示意圖。 第二圖:係本發明之系統工作流程示意圖。 第三圖:係本發明一應用實施例之系統架構示意圖。 第四圖:係本發明又一應用實施例之系統架構示意圖 【主要元件符號說明】 (10)(1 0A)(10B)(10C)動作執行模組 (20)服務控制模組 (30A)(30B)事件通知模組 (40)應用伺服器(D). Respond to the requesting terminal device. The service control module (2〇) performs the following tasks: (A) _ execution of the action execution module (10) request; the monthly macro accepts (Β)· converts the request parameter to the application server (4) 〇) (C). Send a request to the application server (4〇); group (: _ return the data sent by the application server (40) back to the action execution mode. As can be seen from the above, form the basic structure of the service agent. The action group::〇 corresponds to the terminal device, which can accept the request of the terminal device to execute the corresponding service control module (20), and is also the service control module of the service agent basic architecture (2〇) Corresponding to the application server (4〇) for converting the request from the action execution module (10) into a format that the application server (4〇) can access, and then accessing the application server (40) . Based on the characteristics of the module, the service agent of the present invention has a steep expansion, and multiple action execution modules (10) can be selected according to different types of terminal devices; for example: considering the requirements of the terminal device Once the action execution module (1Q) corresponding to the device of the terminal 201109871 is selected, a corresponding service control module (20) is selected for the application word processor of the requirement, thereby forming a service that meets the requirements of the terminal device. Agent. If you want to meet the needs of the application word processor for different terminal devices, you can choose to use the service control module (2〇) that is specific to the application word processor. Then select the corresponding action execution module according to different terminal devices (1〇 The service agent can be configured to meet the requirements of the application server to interface with different terminal devices. As shown in the third figure, it is a schematic diagram of a service agent system architecture according to a possible embodiment of the present invention, which is directed to different types of terminals. Devices (such as PDAs, Internet mobile phones, set-top boxes, etc.) use multiple corresponding action execution modules (彳0A) (1〇B) (1〇C), and respond to a specific network protocol (such as 丨nternet) The application server selects a corresponding service control module (2〇) to form a service agent that can interface with the heterogeneous network. The service agent consisting of the action execution module (彳〇) and the service control module (2 〇) performs a synchronous transmission (request-response) between each terminal device and the application server, when the application server wants to When the terminal device performs asynchronous transmission (active notification), the service agent may further set one or more event notification modules (30A) (3〇B) as shown in the fourth figure, and the supply server controls the service through the service. The module (20) and the event notification module (3〇a) (3〇b) perform asynchronous transmission on the terminal device. It can be seen from the above that by using the above various action execution modules, service control modules, or a combination of event notification modules, different service agents can be formed to support various terminal devices; When the server or terminal device is applied, it can greatly simplify the modification of the 201109871. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a system architecture of a preferred embodiment of the present invention. Second figure: is a schematic diagram of the workflow of the system of the present invention. Third Embodiment: A schematic diagram of a system architecture of an application embodiment of the present invention. FIG. 4 is a schematic diagram of a system architecture of another application embodiment of the present invention [Description of main component symbols] (10) (10A) (10B) (10C) action execution module (20) service control module (30A) ( 30B) Event notification module (40) application server