1374633 九、發明說明: 【發明所屬之技術領域】 本發明係關於一種通信方法及裝置,詳言之,係關於一 種能夠在無線廣域網路(WWAN)與無線區域網路(WLAN) 之間進行切換之通信方法及裝置。 【先前技術】 無線區域網路(WLAN)係一種靈活的資料通信系統,通常 部署在諸如機場、飯店如此之所謂熱點地區,向人們提供 資料傳輸業務。人們利用無線終端,諸如行動電話或筆記 型電腦,藉由無線連接之方式,可存取WLAN中網路資源, 及與之相連的網際網路中之資源。 無線廣域網路(WWAN)係一種覆蓋更多區域之通信系 統,用於向人們提供音訊與資料服務,如全球行動通訊系 統(GSM)、通用分組無線業務(GPRS)、劃碼多向近接 (CDMA)及第三代行動通信(3G)系統,均屬無線廣域網路。 通常,無線廣域網路提供音訊服務,而無線區域網路提 供資料業務。但是,隨著通信技術的發展,低速資料傳輸 在無線廣域網.路中應運而生,而基於IP技術之音訊服務 (VoIP)亦正在成為無線區域網路中一嶄新的亮點。 圖1係無線區域網路(WLAN)與無線廣域網路(WWAN)之 習知應用之一示意圖,其中WWAN服務區與一 WLAN服務 區可能重疊亦可能不重疊(如圖1所示)。當一位於WLAN服 務區之外的行動使用者在藉由WWAN服務進行音訊通信的 過程中,由於其位置變化而進入一 WLAN服務區中時,若 95782.doc 1374633 通信雙方此時均處於WLAN服務區中’此時若仍採用 WWAN服務,對於通信雙方的通訊成本均係無法降低;而 若此時將所採用的WWAN服務切換至WLAN服務,則不僅 節約了 WWAN之無線資源,且亦可能大大降低通信雙方的 通訊成本,並有可能提供使用者更為豐富的服務類型’如 視訊通話等。當採用WLAN服務進行通信之雙方中的一方 離開WLAN服務區時’再將WLAN服務切換回WWAN服務’ 以保證通信的繼續進行。 如上所述,需要一種能夠在無線廣域網路(WWAN)與無 線區域網路(WLAN)之間進行切換之通信方法及裝置,以有 效地減少使用者的通訊成本且節省WWAN之網路資源。 【發明内容】 本發明之目的係提供一種用於在WLAN與WWAN之間進 行切換之方法及裝置。利用該方法及裝置,進入WLAN服 務區之前採用WWAN服務之行動终端,在進入WLAN服務 區之後可以切換為使用WLAN服務,而在通信雙方中的一 方即將離開WLAN服務區時再切換至使用WWAN服務,從 而在節省WWAN無線資源的同時,亦可充分利用WLAN之 資源,節約行動終端使用者之通訊成本。1374633 IX. Description of the Invention: [Technical Field] The present invention relates to a communication method and apparatus, and more particularly to switching between a wireless wide area network (WWAN) and a wireless local area network (WLAN) Communication method and device. [Prior Art] A wireless local area network (WLAN) is a flexible data communication system that is usually deployed in so-called hotspots such as airports and restaurants to provide people with data transmission services. People use wireless terminals, such as mobile phones or laptops, to access network resources in the WLAN and the resources in the Internet connected to them through wireless connections. Wireless Wide Area Network (WWAN) is a communication system covering more areas for providing people with audio and data services, such as Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), and coded multi-directional proximity (CDMA). And third-generation mobile communication (3G) systems, all of which are wireless wide area networks. Typically, wireless wide area networks provide audio services while wireless local area networks provide data services. However, with the development of communication technology, low-speed data transmission has emerged in the wireless wide area network. The IP-based audio service (VoIP) is also becoming a new bright spot in the wireless area network. 1 is a schematic diagram of one of the conventional applications of a wireless local area network (WLAN) and a wireless wide area network (WWAN), where the WWAN service area may or may not overlap with a WLAN service area (as shown in FIG. 1). When an action user located outside the WLAN service area enters a WLAN service area due to a change in location during the audio communication by the WWAN service, if both parties are in the WLAN service at this time, 95782.doc 1374633 In the district, if the WWAN service is still used at this time, the communication cost of the communication parties cannot be reduced; if the WWAN service used is switched to the WLAN service at this time, not only the WWAN wireless resources are saved, but also the Reduce the communication costs of both parties, and it is possible to provide users with a more extensive type of service, such as video calls. When one of the parties communicating using the WLAN service leaves the WLAN service area, the WLAN service is switched back to the WWAN service to ensure that the communication continues. As described above, there is a need for a communication method and apparatus capable of switching between a wireless wide area network (WWAN) and a wireless local area network (WLAN) to effectively reduce the communication cost of the user and save the network resources of the WWAN. SUMMARY OF THE INVENTION It is an object of the present invention to provide a method and apparatus for switching between a WLAN and a WWAN. With the method and the device, the mobile terminal adopting the WWAN service before entering the WLAN service area can switch to use the WLAN service after entering the WLAN service area, and switch to use the WWAN service when one of the communication parties is about to leave the WLAN service area. Therefore, while saving WWAN wireless resources, the WLAN resources can also be fully utilized to save communication costs of mobile terminal users.
根據本發明之一種由具有無線廣域網路(WWAN)介面與 無線區域網路(WLAN)介面的一使用者終端執行之方法,其 包括步驟:藉由WWAN介面進行通信;偵測該使用者終端 之WLAN介面是否可用;若該WLAN介面可用,則自一 WWAN致能狀態進入一 WWAN至WLAN狀態;在該WWAN 95782.doc 1374633 至W L A N狀處中’ 3亥使用者終端向一網路地址公知的词服 器提供其在線資訊(Presence information);自該祠服器獲取 正在與該使用者終端進行通信之另一使用者終端的網路地 址;利用該網路地址,向該另一使用者終端發送一 WLan 呼叫請求;若收到來自該另一使用者終端的接受WLAN呼 叫請求之資訊’則進入至一 WLAN致能狀態。 根據本發明的一種由具有無線廣域網路(WWAN)介面與 無線區域網路(WLAN)介面之一使用者終端執行之方法,其 包括步驟:藉由WWAN介面進行通信;接收來自正在與該 使用者終端進行通信之另一使用者終端的一 WLAN呼叫請 求;根據該使用者終端中的配置資訊,若該配置資訊表明 該使用者終端可在通信過程中切換通信的無線介面,則向 該另一使用者終端發送一接受該WLAN呼叫請求之回應; 及進入WLAN致能狀態》 根據本發明之一種由具有無線廣域網路(WWAN)介面與 無線區域網路(WLAN)介面之一使用者終端執行之方法,其 包括步驟:藉由WLAN介面進行通信;偵測該使用者終端 之WLAN介面是否可用;若該WLAN介面不可用,則自一 WLAN致能狀態進入一 WLAN至WWAN狀態;在該WLAN至 WWAN狀態狀態中,該使用者終端向正在與該使用者終端 進行通信之另一使用者終端發送一個WWAN呼叫請求;若 收到自該另一使用者終端的接受WWAN呼叫請求之資訊, 則進入至WWAN致能狀態。 根據本發明之一種由具有無線廣域網路(WWAN)介面與 95782.doc 1374633 無線區域網珞(WLAN)介面的一使用者終端執行之方法,其 包括步驟:藉由WLAN介面進行通信;偵測該使用者终端 之WLAN介面是否可用;若該WLAN介面不可用,則自 WLAN致能狀態進入WLAN至WWAN狀態;在該WLAN至 WWAN狀態中,該使用者终端向正在與該使用者終端進行 通信之另一使用者終端發送一切換請求;在收到來自該另 一使用者終端發送之WWAN呼叫請求後,向該另一使用者 終端發送一接受WWAN呼叫請求之資訊,並進入WWAN致 能狀態。 【實施方式】 下文以具有WLAN介面與WWAN介面之行動終端為例, 描述本發明的在進入WLAN服務區之前採用WWAN介面通 信,在進入WLAN服務區之後切換至採用WLAN介面進行通 信,而在離開WLAN服務區後再切換回使用WWAN介面進 行通信之過程。在本發明實施例中,假定該行動終端之 WWAN介面在任何情況下均係可用的,而WLAN介面僅在 WLAN服務區内才係可用的,一旦離開WLAN服務區,該行 動終端將僅能使用WWAN介面進行無線通信。 為更清楚地描述行動終端在使用不同無線介面時的切換 過程,本發明引入了六種工作狀態,處於不同的工作狀態, 行動終端將執行不同的操作,以完成切換過程及進行正常 的通信。下面,將首先結合附圖2,對行動終端的該等六種 工作狀態進行描述8 1、WWAN空閒狀態(WWAN Idle state) 95782.doc 1374633 此時,行動終端未與其它使用者終端進行無線連接,僅 WWAN介面可用《在此狀態下,行動終端等待藉由WWAN 介面傳送的來自另一使用者終端之呼叫請求;或接受藉由 使用者界面輸入之呼叫命令,以向另一使用者終端發起呼 叫請求;及監測該行動終端的WLAN介面之狀態,以在 WLAN介面可用時切換至WLAN空閒狀態。 當處於WWAN空閒狀態之該行動終端監測到其WLAN介 面可用時,該行動終端進入WLAN空閒狀態;而當處於 WWAN空閒狀態之該行動終端向另一使用者終端發出一 W WAN呼叫請求或當該行動終端接收到來自另一使用者終 端之WWAN呼叫請求時,該行動終端以習知模式建立 WWAN呼叫,並進入WWAN致能狀態。 2、WLAN空閒狀態(WLAN Idle state) 此時,行動終端未與其它使用者終端進行無線連接,但 是WWAN與WLAN介面均係可用的。在此狀態下,行動終 端等待藉由WLAN或WWAN介面傳送的來自另一使用者終 端之呼叫請求;或接受藉由使用者界面輸入之呼叫命令, 以向另一使用者終端發起WLAN或WWAN呼叫請求;及監 測該行動終端的WLAN介面的狀態,以在WLAN介面不可用 時切換至WWAN空閒狀態;及向一網路地址公知的公共伺 服器註冊或註銷其在線資訊,其中該在線資訊至少包括: 該行動終端之網路地址、連接類型及端口資訊。 當處於WLAN空閒狀態之該行動終端監測到其WLAN介 面不可用時,該行動終端進入WWAN空閒狀態;當處於 95782.doc -10- 1374633 WLAN空閒狀態之該行動終端向另一使用者終端發出一 WLAN呼叫請求或當該行動終端接收到來自另一使用者終 端之WLAN呼叫請求時,該行動終端以習知模式建立WLAN 呼叫過程。此外,處於WLAN空閒狀態之該行動終端亦可 向另一不接受WLAN呼叫之使用者終端發出一 WWAN呼叫 請求,或接收來自另一使用者終端之WWAN呼叫請求,當 該行動終端發出一 WWAN呼叫請求或收到一 WWAN呼叫請 求時,該行動終端以習知模式建立WWAN呼叫過程。 3、 WWAN致能狀態(WWAN Active state) 此時,僅WWAN介面可用,且行動終端正在藉由WWAN 介面與其它使用者終端進行通信。在此狀態下,行動終端 以習知的採用WWAN介面之通信模式(如GSM、CDMA系統 中之通信模式),處理來自WWAN介面的呼叫訊號與業務資 訊;或接受藉由使用者界面輸入之掛斷電話的命令,以結 束WWAN通話;及監測該行動終端的WLAN介面之狀態, 以在WLAN介面可用時切換至WWAN至WLAN狀態。 當處於WWAN致能狀態之該行動終端監測到其WLAN介 面可用時,若該行動終端的使用者配置(user profile)允許該 行動終端在通話過程中切換至WLAN,則該行動終端進入 WWAN至WLAN狀態;而當處於通信的該行動終端與通話 對方中之任意一方掛斷電話時,處於WWAN致能狀態之該 行動終端結束WWAN通話並進入WWAN空閒狀態。 4、 WLAN致能狀態(WLAN Active state) 此時,WWAN介面與WLAN介面均可用,且行動終端正 95782.doc • 11 - 1374633 在通過WLAN介面與其它使用者終端進行通信。在此狀態 下,行動終端以習知的採用WLAN介面之通信模式(如 H.323,SIP系統中的通信模式),處理來自WLAN介面之呼 叫訊號與業務資訊;或接受藉由使用者界面輸入的掛斷電 話之命令,以結束WLAN通話;及監測該行動終端的WLAN 介面之狀態,以在WLAN介面即將不可用時切換至WLAN 至WWAN狀態。 當處於WLAN致能狀態之該行動終端監測到其WLAN介 面不可用或該行動終端收到來自通話對方的請求切換至 WWAN之請求資訊時,若該行動終端的使用者配置允許該 行動終端在通話過程中切換至WWAN,則該行動終端進入 WLAN至WWAN狀態;而當處於通信之該行動終端與通話 對方中的任意一方掛斷電話時,處於WLAN致能狀態之該 行動終端結束WLAN通話並進入WLAN空間狀態。 5、WWAN至 WLAN狀態(WWAN to WLAN state) 該狀態係一過渡狀態,即:自採用WWAN介面至採用 WLAN介面進行通信之一過渡。在此狀態下,行動終端在 處理來自WWAN介面之呼叫訊號與業務資訊的同時,接受 藉由使用者界面輸入的掛斷電話之命令以結束WWAN通 話,及監測該行動終端的WLAN介面之狀態以在WLAN介面 不可用時回到WWAN致能狀態,及向一網路地址公知的公 共伺服器註冊或註銷其在線資訊,其中該在線資訊至少包 括:該行動終端之網路地址、連接類型及端口資訊。 在準備自1WWAN致能狀態過渡至WL致能狀態的過程 95782.doc -12- 1374633 中,該行動終端將藉由Push(推)或Pull(拉)方法,自上述公 共伺服器中獲取與之通信的對方使用者之狀態資訊(如對 方使用者是否在WLAN服務區中、對方使用者終端的網路 地址、通信協定、端口號),若該狀態資訊中不包括對方使 用者終端之網路地址,則亦需要請求公共伺服器將對方使 用者終端之網路地址傳送給該行動終端,並在獲取對方使 用者終端之網路地址後’發起WLAN呼叫之建立過程。 當處於WWAN至WLAN狀態之該行動終端監測到其 WLAN介面不可用時,該行動終端將回到WWAN致能狀 態;當處於通信之該行動終端與通話對方中的任意一方掛 斷電話時,該行動終端將結束通話並進入WWAN空閒狀態 (亦可以設計為進入W L A N空閒狀態);若該行動終端之使用 者配置及通話對方之使用者配置均允許雙方在通話過程中 進行切換操作,則該行動終端切換至WLAN致能狀態。 上述Push與Pull方法及具體切換過程,將在下文中詳細說 明。 6、WLAN至 WWAN狀態(WLAN to WWAN state) 該狀態係一過渡狀態,即:自採用WLAN介面至採用 WWAN介面進行通信之一過渡。在此狀態下,行動終端在 處理來自WLAN介面之呼叫訊號與業務資訊的同時,接受 藉由使用者界面輸入的掛斷電話之命令以結束WLAN通 話,及監測該行動終端的WLAN介面之狀態以在WLAN介面 可用時回到WLAN致能狀態。 在準備自WLAN致能狀態過渡到WWAN致能狀態之過程 95782.doc •13· 1374633 中,該行動終端將藉由區域配置中預先儲存之資訊,得到 對方使用者之相關資訊,如電話號碼,並發起WWAN呼叫 建立過程。 當處於WLAN至WWAN狀態之該行動終端監測到其 WLAN介面可用時,該行動終端將回到WLAN致能狀態;當 處於通信之該行動終端與通話對方中的任意一方掛斷電話 時或通信連接中斷時,該行動終端將結束通話並進入 WLAN空閒狀態(亦可以設計為當通信連接中斷時直接返回 WWAN空閒狀態);若該行動終端之使用者配置及通話對方 之使用者配置均允許雙方在通話過程中進行切換操作,則 該行動終端切換至WWAN致能狀態。 具體切換過程,將在下文中詳細說明。 如上所述,當一具有WLAN介面與WWAN介面之行動終 端出入WLAN服務區時,將分別在上述六種狀態中進行切 換,而要使得行動終端自一狀態平滑地過渡至另一狀態, 其具體的操作過程係由嵌在該行動終端中之智慧代理模組 (smart agent)及置於上述公共伺服器中之一智慧伺服器模 組(smart server)協作完成的。因此,在詳細描述行動終端 的切換過程之前,先對行動終端中之智慧代理及智慧伺服 器作一簡單介紹。 1、智慧代理 智慧代理100,係運行在行動終端中之一功能模組,其包 括:區域配置子模組10、連接/地址偵測子模組20及WLAN 通信子模組30,圖3中示出了該智慧代理100之組成及其與 95782.doc -14· 1374633 智慧伺服器200之連接。以下,將分別對圖中組成智慧代理 之各個子模組進行詳細描述。 (1)區域配置子模組,用於基於行動終端之使用者配置, 根據使用者的指令設置行動終端之區域配置資訊。其中, 區域配置資訊具體係關於該行動終端使用者之各通信夥伴 的聯繫方式(連接方式)、每種連接方式對應的使用者標識 (user id)及每種連接的使用者較佳等級(preference)。 例如,一行動終端之使用者為使用者A,使用者A之通信 夥伴有使用者B與使用者C,則利用區域配置子模組可將該 使用者A的區域配置貢訊藉由程式設計語言描述為下述方 式: <self name='usera'> 〈connection type='gsm'> <priority>low</priority> <id>13000000000</id> </connection> 〈connection type = 'jabber’> <priority>high</priority> <id>usera@somejabberserver.com</id> <pwd>password4usera</pwd> 〈/connection〉 〈connection type = 'MSN'> <priority>high</priority> <id>usera@hotmail.com</id> 95782.doc 15 1374633 <pwd>password4usera</pwd> 〈/connection〉 </self> <user name = 'userb'> <connection type = 'gsm'> <id>+86-l 300000000 l</id> 〈/connection〉 〈connection type='jabber'> <id>userb@somej abberserver.com</id> 〈/connection〉 </user> <user name = 'userc'> 〈connection type = 'gsm'> <id>+86-13000000002</id> </connection> 〈/user〉 上述設置的使用者A之區域配置資訊表明,使用者A具有 三種連接方式·,其中使用WLAN介面的jabber與MSN兩種連 接方式之優先級高於使用WWAN介面的GSM連接方式;使 用者B具有兩種連接方式,其中使用WLAN介面的jabber連 接方式的優先級高於使用WWAN介面的GSM連接方式;使 用者C僅有一種GSM連接方式。當使用者A欲與使用者B通 信時,根據使用者A與B的WLAN介面是否均可利用,使用 者A可選擇不同的無線介面與使用者B通信,即:若使用者 95782.doc -16- 1374633 A與B之WLAN介面均係可用,則根據上述區域配置中之資 訊,使用者A較佳地使用WLAN介面與使用者B通信,但是 由於使用者B僅具有支持WLAN介面的jabber連接方式,因 此,使用者A僅能藉由jabber獲取使用者B之網路地址而與 之通,右使用者A與B中有一使用者終端的WLAN介面係 不可用的,或使用者A的MSN連接與使用者B的jabber連接 可用而使用者A的jabber連接不可用,則使用者a將使用 GSM連接與使用者8進行通信。當使用者A欲與使用者匸進 行通信時,由於使用者C僅具有GSM連接方式,因此,使用 者A僅能使用WWAN介面與使用者c進行通信。 在上述使用者A欲與使用者B進行通信而選擇連接方式 之過程中,若智慧伺服器中可以集成MSN與jabber兩種及時 δίΐ息祠服斋’且S亥等兩種词服器中之資訊可共享,即:藉 由备慧飼服器’僅具有jabber連接之使用者亦可獲取登錄 MSN的使用者之網路地址,則當使用者a的MSN連接與使用 者B的jabber連接可用而使用者a的jabber連接不可用時,使 用者八與6亦可藉由WLAN介面建立WLAN呼叫。A method for performing by a user terminal having a wireless wide area network (WWAN) interface and a wireless local area network (WLAN) interface according to the present invention, comprising the steps of: communicating by using a WWAN interface; detecting the user terminal Whether the WLAN interface is available; if the WLAN interface is available, a WWAN-to-WLAN state is entered from a WWAN-enabled state; in the WWAN 95782.doc 1374633 to the WLAN, the '3H user terminal is known to a network address. The word server provides its presence information; the network address of another user terminal that is communicating with the user terminal is obtained from the server; and the other user terminal is utilized by the network address Sending a WLan call request; if receiving a message from the other user terminal accepting a WLAN call request, then entering a WLAN enabled state. A method for performing by a user terminal having a wireless wide area network (WWAN) interface and a wireless local area network (WLAN) interface according to the present invention, comprising the steps of: communicating via a WWAN interface; receiving from being associated with the user a WLAN call request of another user terminal that communicates with the terminal; according to the configuration information in the user terminal, if the configuration information indicates that the user terminal can switch the wireless interface of the communication during the communication, then the other The user terminal sends a response to accept the WLAN call request; and enters the WLAN enabled state. According to the present invention, the user terminal is implemented by a user terminal having a wireless wide area network (WWAN) interface and a wireless local area network (WLAN) interface. The method includes the steps of: communicating by using a WLAN interface; detecting whether a WLAN interface of the user terminal is available; and if the WLAN interface is unavailable, entering a WLAN to a WWAN state from a WLAN enabled state; In the WWAN state, the user terminal sends a W to another user terminal that is communicating with the user terminal. WAN call request; if receiving information from the other user terminal accepting the WWAN call request, then entering the WWAN enabled state. A method for performing by a user terminal having a wireless wide area network (WWAN) interface and a 95782.doc 1374633 wireless area network (WLAN) interface according to the present invention, comprising the steps of: communicating by using a WLAN interface; detecting the Whether the WLAN interface of the user terminal is available; if the WLAN interface is unavailable, the WLAN enabled state enters the WLAN to WWAN state; in the WLAN to WWAN state, the user terminal is communicating with the user terminal The other user terminal sends a handover request; after receiving the WWAN call request sent from the other user terminal, sends a message accepting the WWAN call request to the other user terminal, and enters the WWAN enabled state. [Embodiment] Hereinafter, a mobile terminal having a WLAN interface and a WWAN interface is taken as an example to describe the WWAN interface communication before entering the WLAN service area, and after switching to the WLAN service area, the communication is switched to the WLAN interface. After the WLAN service area, switch back to the process of using the WWAN interface for communication. In the embodiment of the present invention, it is assumed that the WWAN interface of the mobile terminal is available in any case, and the WLAN interface is only available in the WLAN service area. Once the WLAN service area is left, the mobile terminal can only be used. The WWAN interface performs wireless communication. In order to more clearly describe the handover process of the mobile terminal when using different wireless interfaces, the present invention introduces six working states, which are in different working states, and the mobile terminal will perform different operations to complete the handover process and perform normal communication. In the following, the six working states of the mobile terminal will be described first with reference to FIG. 2. 8 WWAN Idle state 95782.doc 1374633 At this time, the mobile terminal is not wirelessly connected with other user terminals. Only the WWAN interface can be used. In this state, the mobile terminal waits for a call request from another user terminal transmitted through the WWAN interface; or accepts a call command input through the user interface to initiate to another user terminal. a call request; and monitoring the status of the WLAN interface of the mobile terminal to switch to the WLAN idle state when the WLAN interface is available. When the mobile terminal in the WWAN idle state detects that its WLAN interface is available, the mobile terminal enters the WLAN idle state; and when the mobile terminal in the WWAN idle state sends a W WAN call request to another user terminal or when When the mobile terminal receives a WWAN call request from another user terminal, the mobile terminal establishes a WWAN call in a conventional mode and enters a WWAN enabled state. 2. WLAN Idle state At this time, the mobile terminal does not have a wireless connection with other user terminals, but both the WWAN and the WLAN interface are available. In this state, the mobile terminal waits for a call request from another user terminal transmitted through the WLAN or WWAN interface; or accepts a call command input through the user interface to initiate a WLAN or WWAN call to another user terminal. Requesting; and monitoring the status of the WLAN interface of the mobile terminal to switch to the WWAN idle state when the WLAN interface is unavailable; and registering or deregistering the online information with a public server known to a network address, wherein the online information includes at least : The network address, connection type and port information of the mobile terminal. When the mobile terminal in the WLAN idle state detects that its WLAN interface is unavailable, the mobile terminal enters the WWAN idle state; when the mobile terminal in the 95782.doc -10- 1374633 WLAN idle state sends a mobile terminal to another user terminal The WLAN call request or when the mobile terminal receives a WLAN call request from another user terminal, the mobile terminal establishes a WLAN call procedure in a conventional mode. In addition, the mobile terminal in the WLAN idle state may also send a WWAN call request to another user terminal that does not accept the WLAN call, or receive a WWAN call request from another user terminal, when the mobile terminal sends a WWAN call. When requesting or receiving a WWAN call request, the mobile terminal establishes a WWAN call procedure in a conventional mode. 3. WWAN Active state At this time, only the WWAN interface is available, and the mobile terminal is communicating with other user terminals through the WWAN interface. In this state, the mobile terminal processes the call signal and service information from the WWAN interface in a conventional communication mode using the WWAN interface (such as the communication mode in GSM or CDMA systems); or accepts the input through the user interface. The command to disconnect the phone to end the WWAN call; and monitor the status of the WLAN interface of the mobile terminal to switch to the WWAN to WLAN state when the WLAN interface is available. When the mobile terminal in the WWAN enabled state monitors that its WLAN interface is available, if the mobile terminal's user profile allows the mobile terminal to switch to the WLAN during the call, the mobile terminal enters the WWAN to the WLAN. The mobile terminal in the WWAN enabled state ends the WWAN call and enters the WWAN idle state when the mobile terminal in communication and the other party hang up the call. 4. WLAN Active state At this point, both the WWAN interface and the WLAN interface are available, and the mobile terminal is communicating with other user terminals through the WLAN interface. In this state, the mobile terminal processes the call signal and service information from the WLAN interface by using a conventional WLAN interface communication mode (such as H.323, communication mode in the SIP system); or accepts input through the user interface. The command to hang up the phone to end the WLAN call; and monitor the status of the WLAN interface of the mobile terminal to switch to the WLAN to WWAN state when the WLAN interface is about to be unavailable. When the mobile terminal in the WLAN enabled state detects that its WLAN interface is unavailable or the mobile terminal receives the request information from the calling party to switch to the WWAN, if the user configuration of the mobile terminal allows the mobile terminal to be in a call During the process of switching to the WWAN, the mobile terminal enters the WLAN to WWAN state; and when the mobile terminal in communication communicates with any of the other parties, the mobile terminal in the WLAN enabled state ends the WLAN call and enters WLAN space status. 5. WWAN to WLAN state This state is a transitional state, that is, one transition from the WWAN interface to the communication using the WLAN interface. In this state, the mobile terminal receives the call signal and service information from the WWAN interface, accepts the command to hang up the phone input through the user interface to end the WWAN call, and monitors the state of the WLAN interface of the mobile terminal. Returning to the WWAN enabled state when the WLAN interface is unavailable, and registering or deregistering the online information with a public server known to a network address, where the online information includes at least: the network address, connection type, and port of the mobile terminal News. In the process of preparing for the transition from the 1WWAN enabled state to the WL enabled state, 95782.doc -12- 1374633, the mobile terminal will be obtained from the public server by the Push or Pull method. Status information of the other party of the communication (such as whether the other party's user is in the WLAN service area, the network address of the other party's user terminal, the communication protocol, the port number), if the status information does not include the network of the other party's user terminal The address also needs to request the public server to transmit the network address of the other party's terminal to the mobile terminal, and to initiate the establishment process of the WLAN call after obtaining the network address of the other party's user terminal. When the mobile terminal in the WWAN to WLAN state detects that its WLAN interface is unavailable, the mobile terminal will return to the WWAN enabled state; when the mobile terminal in communication communicates with any of the other parties, the The mobile terminal will end the call and enter the WWAN idle state (can also be designed to enter the WLAN idle state); if the user configuration of the mobile terminal and the user configuration of the calling party allow both parties to perform the switching operation during the call, the action The terminal switches to the WLAN enabled state. The above Push and Pull methods and specific switching procedures will be described in detail below. 6. WLAN to WWAN state This state is a transitional state, that is, one transition from the adoption of the WLAN interface to the communication using the WWAN interface. In this state, the mobile terminal receives the call signal from the WLAN interface and the service information, accepts the command to hang up the phone input through the user interface to end the WLAN call, and monitors the state of the WLAN interface of the mobile terminal. Return to the WLAN enabled state when the WLAN interface is available. In the process of preparing for the transition from the WLAN enabled state to the WWAN enabled state 95782.doc • 13· 1374633, the mobile terminal will obtain information about the other party's user, such as a telephone number, by using pre-stored information in the regional configuration. And initiate the WWAN call setup process. When the mobile terminal in the WLAN to WWAN state detects that its WLAN interface is available, the mobile terminal will return to the WLAN enabled state; when the mobile terminal in communication communicates with any of the other parties, or the communication connection When interrupted, the mobile terminal will end the call and enter the WLAN idle state (can also be designed to return to the WWAN idle state when the communication connection is interrupted); if the user configuration of the mobile terminal and the user configuration of the call partner allow both parties to When the handover operation is performed during the call, the mobile terminal switches to the WWAN enabled state. The specific switching process will be described in detail below. As described above, when a mobile terminal having a WLAN interface and a WWAN interface enters and exits the WLAN service area, it will switch among the above six states, respectively, and the mobile terminal should smoothly transition from one state to another state. The operation process is performed by a smart agent embedded in the mobile terminal and a smart server placed in the public server. Therefore, before describing the handover process of the mobile terminal in detail, a brief introduction is made to the smart agent and the smart server in the mobile terminal. 1. The smart agent smart agent 100 is a function module running in the mobile terminal, which comprises: a regional configuration sub-module 10, a connection/address detection sub-module 20 and a WLAN communication sub-module 30, in FIG. The composition of the smart agent 100 and its connection to the 95782.doc -14· 1374633 smart server 200 are shown. Hereinafter, each sub-module constituting the smart agent in the figure will be described in detail. (1) The area configuration sub-module is configured to set the area configuration information of the mobile terminal according to the user's instruction based on the user configuration of the mobile terminal. The area configuration information is specifically related to the contact manners of the communication partners of the mobile terminal user (connection mode), the user identifier corresponding to each connection mode (user id), and the preferred user level of each connection (preference) ). For example, if the user of the mobile terminal is the user A and the communication partner of the user A has the user B and the user C, the regional configuration sub-module can be used to configure the user A's regional configuration by programming. The language is described as follows: <self name='usera'> <connection type='gsm'><priority>low</priority><id>13000000000</id></connection> Connection type = 'jabber'><priority>high</priority><id>usera@somejabberserver.com</id><pwd>password4usera</pwd> 〈/connection〉 <connection type = 'MSN' ><priority>high</priority><id>usera@hotmail.com</id> 95782.doc 15 1374633 <pwd>password4usera</pwd> 〈/connection〉 </self><user Name = 'userb'><connection type = 'gsm'><id>+86-l 300000000 l</id> 〈/connection〉 <connection type='jabber'><id>userb@ Somej abberserver.com</id> 〈/connection〉 </user><user name = 'use Rc'> <connection type = 'gsm'><id>+86-13000000002</id></connection> 〈/user> The area configuration information of user A set above indicates that user A has Three connection methods, in which the jabber and MSN connection modes using the WLAN interface have higher priority than the GSM connection mode using the WWAN interface; the user B has two connection modes, wherein the priority of the jabber connection mode using the WLAN interface is used. Higher than the GSM connection using the WWAN interface; User C has only one GSM connection. When user A wants to communicate with user B, according to whether the WLAN interfaces of users A and B are available, user A can select different wireless interfaces to communicate with user B, that is, if user 95782.doc - 16- 1374633 A and B WLAN interfaces are available, according to the information in the above regional configuration, user A preferably uses WLAN interface to communicate with user B, but since user B only has jabber connection supporting WLAN interface In this way, user A can only access user B's network address by jabber, and the right user A and B have a user terminal's WLAN interface unavailable, or user A's MSN. The connection to User B's jabber connection is available and User A's jabber connection is not available, then User a will communicate with User 8 using the GSM connection. When user A wants to communicate with the user, since user C only has the GSM connection method, user A can only communicate with user c using the WWAN interface. In the process that the user A wants to communicate with the user B and selects the connection mode, if the smart server can integrate both the MSN and the jabber, the two words in the service device The information can be shared, that is, the user who only has the jabber connection can also obtain the network address of the user who logs in to the MSN through the backup server, and the user's MSN connection and the user B's jabber connection are available. When the jabber connection of the user a is unavailable, the users VIII and 6 can also establish a WLAN call through the WLAN interface.
此外’若在智慧伺服器中進一步將使用者的Gsm標識 (IMSI:國際行動使用者識別)與使用者在msn及jabber伺服 器上的使用者標識建立一相應映射關係,使用者根據其 GSM標識,可以自智慧伺服器直接獲得其通信夥伴登錄任 意網路(MSN或j abber)之網路地址,則上述例子中使用者A 之配置資訊可更簡化為僅包括其通信聯繫方式之Gsm標 識0 95782.doc 1374633 (2)連接/地址偵測子桓細田 模、、且用於在進入或離開WLAN服務 區時向智慧伺服器註冊戎呻钴甘—仏吹 埘次注銷其在線資訊,及自智慧伺服 器獲取欲與之進行WLAN;S Ρ ^ 丁 的對方使用者終端之網路地 址 在使用WWAN介面進行通信之系統中,使用者係使用各 自的1觀建立無線鏈接的,並且刪不會隨著使用者之行 動而變化。然而,在使用肌颜介面建立無線鍵接之系統 中,由於使用者的行動性,使用者會隨時出入不同敎點地 區的肌倾服務區,因此,使用者所使用的終端之網路地 址’即.使用者终端之網路地址,會隨著制者出人肌倾 服務區而不斷變化’所以料地獲取使用者終端之網路地 址,係實施WLAN介面通信之重.要環節。根據本發明,借 助連接/地址彳貞測子模組,使用者終端—旦偵_其饥謂 I面可用/不可用’可即刻將其進入/離開_ WL謂服務區之 在線/離線資訊通知智慧舰器,# :智慧伺服器,作為一 樞紐’瞭解每個使用者終端之在線f訊及每個使用者之離 線資訊;從而藉由該智慧伺服器,每個在饥施服務區中 之使用者可得知其通信夥伴中每個在線通信夥伴之當前網 路地址。 」艮據智慧伺服器t的不同設置,連接/地址偵測子模組可 藉由Push與Pul丨兩種方式獲得對方使用者終端之網路地 址以下關於该專兩種方式逐一地描述。 圖4不出了本發明之藉由push方法獲取使用者終端網路 地址之方法。如圖4所*,當使用者人進入一 wlan服務區 95782.doc -18- 1374633 時’該使用者A所使用之終端(使用者終端A)中的連接/地址 偵測子模组在偵測到使用者終端A之WLAN介面可用後,首 先向智慧伺服器註冊該使用者終端A之在線(avaUable)資訊 (presence),其包括:使用者終端a之網路地址(如Ip地址)、 連接類型(TCP(傳輸控制協定),UDP(使用者資料包協定), RTP(即時傳輸協定)及端口號,智慧伺服器將保存每個在線 使用者的使用者終端之在線資訊。然後,使用者A向智慧伺 服器心送查4其通彳§名冊的請求,並在收到智慧伺服器返 回其通f夕伴之狀怨資訊後,根據該狀態資訊,更新其區 域配置資訊中每個通信夥伴之在線狀態(階段1}。在圖4中, 當使用者B進入WLAN服務區之前,使用者a獲取的關於使 用者B之狀態是"離線(unavailable)",而當使用者B進入 WLAN服務區後,由於在Push方法中,智慧伺服器會將每個 佰主進入或離開WLAN服務區之訊息及時告之該宿主所有 的通信夥伴,因此,使用者A可即刻收到來自智慧伺服器的 關於使用者B的新的狀態資訊,從而將使用者A的區域配置 資訊中使用者B之狀態更新為"在線(available)”(階段2)。在 智慧伺服器向使用者A發送的該狀態資訊中,不僅可包含使 用者B是否在線之資訊,而且亦可包含使用者8所使用的終 端(使用者終端B)之網路地址。若該狀態資訊中包含使用者 終端B之網路地址,則藉由該狀態資訊,使用者a可直接獲 取使用者終端B之網路地址,而若狀態資訊中不包含使用者 終端B之網路地址,則使用者A仍要接收來自智慧伺服器的 關於使用者終端B之網路地址的資訊,以在與使用者b建立 95782.doc -19· 1374633 WLAN呼叫時,使用該網路地址建立無線連接(階段3) ^ 圖5示出了本發明之藉由puii方法獲取使用者終端網路地 址之方法。如圖5所示’當一使用者a進入— WLAN服務區 時,與Push方法相同,該使用者A所使用的終端(使用者終 端A)中之連接/地址偵測子模組在偵測到使用者終端八之 WLAN介面可用後,首先向智慧伺服器註冊使用者終端a之 在線資訊(步驟10)’智慧伺服器保存使用者A註冊之該在線 資訊。與Push方法不同的是,在pull方法中,智慧饲服器並 非將進入WLAN服務區之每個宿主的通信夥伴之狀態資訊 主動告之給使用者,而是為每個宿主保持其狀態資訊,僅 當進入WLAN服務區之使用者欲發起一 WLAN呼叫或在通 信中欲切換至使用W L A N介面通信從而向智慧飼服器發送 凊求對方使用者之狀態資訊時’才將該智慧飼服器儲存的 對方之狀態資訊提供給該使用者。具體至圖5中,當進入 WLAN服務區之使用者a欲與使用者B建立一 wlan呼叫或 正在通k之,用者A欲與使用者B切換至使用WLAN介面進 行通信時,使用者A向智慧伺服器發送一狀態查詢請求,以 獲取使用者B之狀態資訊(步驟2〇);若此時使用者B不在 WLAN服務區中,則使用者錢到的來自智慧伺服器的關於 使用者B之狀態資訊係"離線"狀態。若當使用者A向智慧伺 服器發送一查詢使用者B之狀態請求(步驟30),而此時^用 者B恰好已經進人WLAN服務區中,則使用者a收到的關於 使用者B的狀態資訊將包括使用者B所使用終端(使用者終 端B)之網路地址、連接類型及端口等資訊。利用藉由智慧 95782.doc -20- 1374633 伺服器獲得的使用者B之狀態資訊,使用者A將嘗試採用 WLAN介面與使用者B建立WLAN連接。上述步驟1〇、步驟 20及步驟30均係由使用者A執行。 藉由上述Push或Pull方法,連接/地址彳貞測子模組在偵測 到使用者終端之WLAN介面可用/不可用後,不僅可將使用 者終端之在線資訊或使用者之離線資訊及時告知智慧伺服 器,而且亦可根據來自智慧伺服器的關於該使用者的各通 信夥伴之狀態資訊,即時地獲取及更新該使用者的各通信 夥伴之狀態資訊,從而當使用者欲與其中一通信夥伴建立 WLAN連接時,能夠得到該通信夥伴之即時準確的網路地 址° (3)WLAN通信子模組,用於建立及釋放WLAN呼叫,及 用於在通信過程中自動自WWAN通信切換至WLAN通信或 自WLAN通信切換至WWAN通信。 當位於WLAN服務區中之一行動終端使用者欲與另一位 於WLAN服務區中之使用者進行通信時,若此時雙方的 WLAN介面均可利用,且雙方之區域配置資訊均表明在 WWAN與WLAN均可利用的情況下較佳地使用WLAN介面 進行通信,則該行動终端的WLAN通信子模組使用藉由上 述連接/地址偵測子模組所得到的對方使用者終端之網路 地址,採用H.323或SIP系統中描述的模式或特定的方式, 嘗試與另一使用者建立WLAN鏈接,並進行通信。 當正在與另一使用者終端藉由WWAN介面進行通信的行 動終端使用者進入一 WLAN服務區時,若正在通信的雙方 95782.doc -21- 1374633 之WLAN介面均可利用,且雙方的區域配置資訊均表明在 WWAN與WLAN均可利用的情況下較佳地使用WLAN介面 進行通信,同時雙方的使用者配置均允許使用者在通信過 程中自使用WWAN介面切換至使用WLAN介面進行通信, 則該行動終端之WLAN通信子模組,根據上述連接/地址偵 測子模組所得到的對方之狀態資訊(包括對方使用者終端 之網路地址、連接類型及端口資訊),選擇與對方通信之連 接類型,並使用與所選連接類型對應的網路地址,嘗試與 對方建立WLAN鏈接。根據WLAN鏈接是否成功,WLAN通 信子模組指示行動終端採用不同的無線介面進行通信。若 WLAN鏈接成功,如收到對方的確認使用WLAN介面的訊 息,則使用WLAN介面通信;若WLAN鏈接不成功,如收到 對方的拒絕使用WLAN介面之訊息或雙方之一方的WLAN 介面變為不可用了,則繼續使用WWAN介面通信。 當正在藉由WLAN介面進行通信的雙方中的任意一方將 要離開WLAN服務區時,若雙方的使用者配置均允許使用 者在通信過程中自使用WLAN介面切換至使用WWAN介面 進行通信,則根據離開的一方是否係WLAN鏈接建立之發 起者,WLAN通信子模組執行不同切換過程。若離開的一 方係WLAN鏈接建立之發起者,則向對方發送一建立 WWAN呼叫之請求,並在收到對方的確認訊息後,切換至 使用WWAN介面進行通信;若離開的一方並非WLAN鏈接 建立之發起者,則首先向對方發送一切換至WWAN介面的 請求,在收到對方發送的確認收到該切換請求之訊息及建 95782.doc •22· 1374633 立WWAN呼叫的請求後,切換至使用WWAN介面通信,並 向對方發送一確認建立W WAN呼叫之訊息,以使對方亦切 換至使用WWAN介面進行通信。 藉由上述對區域配置子模組、連接/地址偵測子模組及 WLAN通信子模組之說明,詳細描述了運行在行動終端中 之智慧代理的功能,在下文中將對本發明之切換方法中涉 及的另一重要組成一智慧伺服器進行具體的描述。 2、智慧伺服器 智慧伺服器,係運行在一網路地址公知的公共伺服器中 的一功能模組。其為每個註冊使用者設置一通信夥伴名 冊,當每個使用者出入WLAN服務區時,智慧伺服器都將 記錄該使用者之在線資訊或離線資訊,並以Push或Pull之方 式,將該使用者之在線資訊或離線資訊通知該使用者的所 有在WLAN服務區中之通信夥伴。 下面係在智慧伺服器中藉由程式設計語言描述的使用者 A的通信夥伴名冊之一實例: <user id='userb@wlan_wwan_server.com'> <status>available</status> </user> <user id='userrc@wlan_wwan_server.com'> <status>unavailable</status> </user> <user id='userd@wlan_wwan_server.com'> <status>unavailable</status> 95782.doc -23- 1374633 </user> 其中,user id項係使用者在WLAN中的唯一使用者標識’ status項係表明該使用者當前是否在WLAN服務區中。上述 使用者A的通信夥伴名冊顯示之資訊表明:使用者A在該智 慧伺服器所轄的WLAN服務區中共有三個聯繫人--使用 者B、C、D,該等三個使用者在WLAN中之使用者標識分別 為 userb@wlan_wwan_server.com、userc@wlan_wwan_server.com、 userd@wlan_wwan_server.com,僅使用者 B在 WLAN服務區中’ 使用者C與D均不在WLAN服務區中。此時,使用者A藉由 WLAN介面僅能與使用者B進行通信,而若要與使用者C或D 通信,僅能藉由WWAN連接。這裏,使用者A與使用者B可 位於不同熱點地區之WLAN服務區中,而不同熱點地區之 WLAN服務區可藉由網際網路相互連接。 正如上文在說明行動終端中智慧代理之連接/地址偵測 子模組時所述的,根據本發明的在不同無線介面之間進行 切換之方法,智慧伺服器,係在其所轄區域内的各使用者 彼此交換網路地址的一樞紐,藉由該智慧伺服器,欲採用 WLAN介面進行通信之使用者可得知對方之網路地址,從 而利用網路地址建立WLAN連接。 智慧祠服器可係及時訊息(instant messenger)祠服器,如 MSN、yahoo message、jabber,亦可係由網路服務營運商 營運之一單獨伺服器。 在該實施例中,使用者A可藉由網際網路頁面(Web),更 改其在智慧伺服器中之通信夥伴名冊,如增加或減少通信 95782.doc -24· 1374633 夥伴。 當一正在進行通話之使用者進入或離開一 WLAN服務區 時,藉由上述該使用者使用的行動終端中之智慧代理及公 共伺服器中之智慧伺服器的協作,行動終端將分別在前述 的六種工作狀態中轉換。下面,分別以正在進行通話之使 用者A與B為例,結合附圖6與7,描述兩個使用者A與B所使 用之使用者終端A與使用者終端B自使用WWAN介面切換 至使用WLAN介面進行通信及自使用WLAN介面切換至使 @ 用W WAN介面進行通信之過程。 一、自使用WWAN介面切換至使用WLAN介面 如圖6所示,當正在與使用者B進行WWAN通信之使用者 A進入WLAN服務區時,使用者終端A中之智慧代理偵測到 其WLAN介面可用,從而使使用者終端A自WWAN致能狀態 進入WWAN至WLAN狀態。當正在與使用者A進行WWAN 通信之使用者B亦進入該WLAN服務區時,使用者終端B中 之智慧代理偵測到其WLAN介面可用,從而使用者終端B亦 自WWAN致能狀態進入WWAN至WLAN狀態。 在WWAN至WLAN狀態中,使用者終端A與B分別向智慧 伺服器提供在線資訊,包括使用者終端A與B之網路地址、 連接類型、端口號等資訊。假定自使用WWAN至使用WLAN 之切換過程係由作為呼叫方之使用者終端A啓動的,則具體 過程為:首先,使用者終端A藉由上述Push或Pull方法’經 智慧伺服器獲取被呼叫方使用者終端B之網路地址。在得到 使用者終端B之網路地址後’根據區域配置資訊,使用者終 95782.doc •25- 1374633 端A確定是否採用WLAN介面與使用者終端b進行通信。若 區域配置資訊表明使用者終端Α較佳地使用WLAN介面進 行無線通信,則使用者終端A將使用所得到的使用者終端B 之網路地址,向使用者终端B發送一 WLAN呼叫請求。 使用者終端B在收到來自使用者終端A之WLAN呼叫請求 後’若使用者B之使用者配置允許其在通信過程中切換通信 之無線介面,則使用者終端B向使用者終端A發送一接受該 W]LAN呼叫請求之訊息,並進入WLAN致能狀態。使用者終 端A在收到來自使用者終端b的接受WLAN呼叫請求之訊息 後’進入WLAN致能狀態。在使用者終端A與B均進入WLAN 致能狀態後,釋放先前WWAN佔用之無線資源,兩個使用 者終端A與B藉由WLAN介面進行通信。使用WLAN介面進 行的通信,可以涉及音訊或視訊資訊(取決於使用者配置與 可利用之網路資源)。 但是,若使用者B之使用者配置不允許其在通信過程中切 換通信之無線介面,則使用者終端B向使用者終端a發送一 拒絕WLAN呼叫請求之訊息。在此情況下,使用者終端a與 B繼續保持在WWAN至WLAN狀態中。若使用者終端b的使 用者藉由使用者界面更改了其使用者配置(即:允許使用者 B在通信過程中切換通信之無線介面),或若使用者終端a 收到了來自其使用者界面之指令,則使用者終端A重新向使 用者終端B發送WLAN呼叫請求。 若在WWAN至WLAN狀態中,使用者終端A或B之WLAN 介面變為不可用,則WLAN介面變為不可用之一方的使用 95782.doc -26- 1374633 者終端將從WWAN至WLAN狀態返回到WWAN致能狀態。 二、自使用WLAN介面切換至使用WWAN介面 如圖7所示,假定正在進行WLAN通信之被呼叫方使用者 B即將離開WLAN服務區。使用者終端B中之智慧代理偵測 到其WLAN介面即將變為不可用,從而使得使用者終端B自 WLAN致能狀態進入WLAN至WWAN狀態。 在該過渡狀態中,使用者終端B首先向使用者終端A發送 一切換至WWAN之切換請求。使用者終端A在收到該切換請 求後,進入WLAN至WWAN狀態。在該狀態中,使用者終 端A向使用者終端B發送一接受該切換請求之訊息,同時亦 向使用者終端B發送一 WWAN呼叫之請求。在收到該WWAN 呼叫之請求後,使用者終端B進入WWAN致能狀態,並向使 用者終端A發送一接受WWAN呼叫請求之訊息。使用者終端 A在收到該接受WWAN呼叫請求之訊息後,自WLAN至 WWAN狀態進入WWAN致能狀態。在使用者終端A與B均進 入WWAN致能狀態後,釋放先前WLAN佔用之無線資源, 兩個使用者終端A與B藉由WWAN介面進行通信,同時,使 用者終端B亦會將其離線之資訊即刻通知智慧伺服器。 若在WLAN至WWAN狀態中,使用者終端BiWLAN介面 又變為可用了(即:使用者B仍滯留在該WLAN服務區中), 則使用者終端A與B將返回到WLAN致能狀態。 本發明的實現自使用WWAN介面切換至使用WLAN介面 或自使用WLAN介面切換至使用WWAN介面之過程,係由 分別置於使用者終端中之智慧代理及置於公共伺服器中之 95782.doc • 27· 智慧伺服器實現的,其中該智慧代理及智慧伺服器可由軟 體形式之功能模組實現,亦可由硬體形式之功能模組實現。 技術效果 綜上所述,本發明提供的用於在WLAN與WWAN介面之 間進行呼叫切換之方法及裝置,由於引入了智慧代理及智 慧伺服器,從而可使得在進入WLAN服務區域之前進行 WWAN通信之兩個行動終端,在進入WLAN服務區域之後 可以切換為進行WLAN通信,並在即將離開WLAN服務區域 時亦可以切換回進行WWAN通信,以此充分利用WLAN之 資源,且節約行動終端使用者之花費及營運商之WWAN資 源。 此外,本發明之在不同無線介面之間進行通信之方法, 不僅適用於兩個具有WLAN與WWAN無線介面之使用者終 端之間,而且亦適用於通信的一方係具有WLAN與WWAN 介面的使用者終端,而通信的另一方係一個結合了網路與 電話功能之其它裝置,如:一電話機與一電腦之組合裝置的 情況(此種組合主要是指邏輯上的組合》即,在對方的使用 者配置中把一電話號碼與一公共伺服器上的使用者組合在 一起’而此在公共伺服器上的使用者可以用任何一台電腦 使用該服務)。但是,若通信的一方係能夠接入網際網路並 支持網上通話業務之通信裝置,則自WWAN切換至WLAN 通信或自WLAN切換至WWAN通信之切換過程,必須由具 有WLAN與WWAN介面之使用者終端發起。 熟習此項技術者應理解,本發明所公開的用於在無線廣 95782.doc -28- 1374633 域網路與無線區域網路之間進行切換之通信方法及裝置, 可在不脫離本發明内容的基礎上進行各種改良。因此,本 發明的保護範圍應由隨附申請專利範圍之内容來判定。 【圖式簡單說明】 圖1係傳統無線區域網路(WLAN)及無線廣域網路 (WWAN)混合使用之示意圖; 圖2係根據本發明的行動終端在六個 意圖; 工 作狀態的轉移 不 圖3係根據本發明的智慧代理模組之組成 八久卉與智華 服器之連接示意圖; 〜'切 圖4係根據本發明的採用push(推)方法 交換IP(網際網路協定)地址之示意圖; 圖5係根據本發明的採用Pull(拉)方法 父換IP地址之示意圖; 圖6係根據本發明的自使用WWAN介面 WLAN介面通信之示意圖; 圖7係根據本發明的自使用WLAN介面切 子吳至借田 W WAN介面通信之示意圖。【主要元件符號說明】 在通信終端之間 在通信終端 之間 m 10 20 100 200 區域配置子模組 連接/位址偵測子模組 智慧代理 智慧伺服器 95782.doc -29·In addition, if the user's Gsm logo (IMSI: International Mobile User Identification) is further mapped to the user ID of the user on the msn and jabber server in the smart server, the user according to the GSM logo The network address of any communication partner (MSN or j abber) can be obtained directly from the smart server. In the above example, the configuration information of user A can be simplified to include only the Gsm identifier of the communication contact. 95782.doc 1374633 (2) Connection/address detection sub-field, and used to register with the smart server when entering or leaving the WLAN service area, 注销 甘 仏 注销 注销 注销 注销 注销 注销 注销 注销 注销 注销The smart server obtains the WLAN to be used with it; the network address of the other user terminal of the S is used in the system that uses the WWAN interface to communicate, and the user uses the respective view to establish the wireless link, and the deletion is not Changes as the user moves. However, in a system in which a wireless interface is established using a muscle interface, due to the user's mobility, the user may enter and exit the muscle tilt service area of different defect areas at any time, and therefore, the network address of the terminal used by the user' That is to say, the network address of the user terminal will change constantly with the maker's muscle-dumping service area. Therefore, it is necessary to implement the WLAN interface communication. According to the present invention, by means of the connection/address sensing sub-module, the user terminal - the _ _ _ ah ah ah owing I can be available / not available can be immediately entered / left _ WL is the service area online / offline information notification Wisdom Ship, #:Smart Server, as a hub, 'understand the online information of each user terminal and the offline information of each user; thus, with the smart server, each in the service area of the hunger service The user can know the current network address of each of the online communication partners in their communication partners. According to the different settings of the smart server t, the connection/address detection sub-module can obtain the network address of the other user's terminal by Push and Pul丨, and the following two methods are described one by one. Figure 4 illustrates the method of the present invention for obtaining the network address of a user terminal by the push method. As shown in Figure 4, when the user enters a wlan service area 95782.doc -18-1374633, the connection/address detection sub-module in the terminal (user terminal A) used by the user A is in the detective After detecting that the WLAN interface of the user terminal A is available, first register the online (avaUable) information of the user terminal A with the smart server, including: the network address of the user terminal a (such as the IP address), Connection type (TCP (Transmission Control Protocol), UDP (User Datagram Agreement), RTP (Instant Transfer Protocol) and port number, the Wisdom Server will save the online information of each online user's user terminal. Then, use A sends a request to the smart server to check its § roster, and after receiving the smart server to return to its communication, it updates each of its regional configuration information based on the status information. Online status of the communication partner (stage 1). In Figure 4, before user B enters the WLAN service area, the status of user B acquired by user a is "unavailable", and when the user B enters the WLAN service area In the Push method, the smart server will promptly notify all the communication partners of each host to enter or leave the WLAN service area. Therefore, the user A can immediately receive the use from the smart server. The new status information of the user B, so that the status of the user B in the area configuration information of the user A is updated to "available" (stage 2). The status information sent by the smart server to the user A The information may include not only the information of whether the user B is online, but also the network address of the terminal (user terminal B) used by the user 8. If the status information includes the network address of the user terminal B, With the status information, the user a can directly obtain the network address of the user terminal B, and if the status information does not include the network address of the user terminal B, the user A still needs to receive the smart server. Information about the network address of the user terminal B to establish a wireless connection using the network address when establishing a 95782.doc -19. 1374633 WLAN call with the user b (stage 3) ^ Figure 5 shows The method for obtaining the network address of the user terminal by the puii method of the present invention. As shown in FIG. 5, when a user a enters the WLAN service area, the terminal used by the user A is the same as the Push method. After detecting the WLAN interface of the user terminal eight, the connection/address detection sub-module in the terminal A) first registers the online information of the user terminal a with the smart server (step 10) 'smart server saves The online information registered by user A. Unlike the Push method, in the pull method, the smart feeding device does not actively inform the user of the status information of the communication partner entering each host of the WLAN service area, but Maintaining status information for each host, only when the user entering the WLAN service area wants to initiate a WLAN call or wants to switch to using the WLAN interface communication to send the status message to the smart feeder for the other party's user. 'The status information of the other party stored by the smart feeding device is provided to the user. Specifically, in FIG. 5, when the user a entering the WLAN service area wants to establish a wlan call with the user B or is in the middle, and the user A wants to switch to the user B to communicate using the WLAN interface, the user A Sending a status query request to the smart server to obtain the status information of the user B (step 2〇); if the user B is not in the WLAN service area at this time, the user receives the user from the smart server. B's status information is "offline" status. If the user A sends a status request to the smart server to query the user B (step 30), and the user B happens to have entered the WLAN service area, the user a receives the user B. The status information will include information such as the network address, connection type and port of the terminal (user terminal B) used by user B. Using the status information of User B obtained by the smart 95782.doc -20- 1374633 server, User A will attempt to establish a WLAN connection with User B using the WLAN interface. The above steps 1 and 20 are performed by the user A. With the Push or Pull method, the connection/address detection sub-module can not only inform the online information of the user terminal or the offline information of the user in time after detecting that the WLAN interface of the user terminal is available/not available. The smart server can also instantly obtain and update the status information of each communication partner of the user according to the status information of the communication partners of the user from the smart server, so that the user wants to communicate with one of the communication partners. When the partner establishes the WLAN connection, the instant and accurate network address of the communication partner can be obtained. (3) The WLAN communication sub-module is used to establish and release the WLAN call, and is used to automatically switch from the WWAN communication to the WLAN during the communication process. Switch from communication or WLAN communication to WWAN communication. When one of the mobile terminal users in the WLAN service area wants to communicate with another user in the WLAN service area, the WLAN interface of both parties can be utilized at this time, and the regional configuration information of both parties indicates that the WWAN and the WWAN are If the WLAN is available, the WLAN interface is preferably used for communication, and the WLAN communication sub-module of the mobile terminal uses the network address of the counterpart user terminal obtained by using the connection/address detection sub-module. Try to establish a WLAN link with another user and communicate using the mode or specific method described in the H.323 or SIP system. When a mobile terminal user who is communicating with another user terminal through the WWAN interface enters a WLAN service area, the WLAN interface of both parties 95782.doc -21 - 1374633 can be utilized, and the regional configuration of both parties is available. The information indicates that the WLAN interface is preferably used for communication when both the WWAN and the WLAN are available, and both user configurations allow the user to switch from using the WWAN interface to using the WLAN interface for communication during communication. The WLAN communication sub-module of the mobile terminal selects the connection with the other party according to the status information of the other party (including the network address, connection type and port information of the other user terminal) obtained by the connection/address detection sub-module. Type and use the network address corresponding to the selected connection type to try to establish a WLAN link with the other party. According to whether the WLAN link is successful, the WLAN communication sub-module instructs the mobile terminal to communicate using different wireless interfaces. If the WLAN link is successful, if the other party's confirmation uses the WLAN interface message, the WLAN interface is used for communication; if the WLAN link is unsuccessful, if the recipient's refusal to use the WLAN interface message or one of the two parties' WLAN interface becomes unavailable Used, continue to use WWAN interface communication. When either of the parties communicating through the WLAN interface is about to leave the WLAN service area, if both user configurations allow the user to switch from using the WLAN interface to communicating using the WWAN interface during the communication, Whether the party is the initiator of the WLAN link establishment, the WLAN communication sub-module performs different handover procedures. If the departing party is the initiator of the establishment of the WLAN link, then a request to establish a WWAN call is sent to the other party, and after receiving the confirmation message of the other party, switching to using the WWAN interface for communication; if the party leaving is not the WLAN link established The initiator first sends a request to the other party to switch to the WWAN interface, and after receiving the confirmation sent by the other party to receive the message of the handover request and the request to establish a 95782.doc • 22· 1374633 standing WWAN call, switch to use the WWAN. The interface communicates and sends a message to the other party confirming the establishment of the W WAN call, so that the other party also switches to use the WWAN interface for communication. The functions of the smart agent running in the mobile terminal are described in detail by the above description of the area configuration sub-module, the connection/address detection sub-module and the WLAN communication sub-module, which will be hereinafter described in the handover method of the present invention. Another important component involved is a smart server for specific description. 2. Smart Server A smart server is a functional module that runs in a public server known as a network address. It sets up a communication partner roster for each registered user. When each user enters or exits the WLAN service area, the smart server records the user's online information or offline information, and pushes or pulls the user. The user's online or offline information informs the user of all communication partners in the WLAN service area. The following is an example of User A's communication partner roster described by the programming language in the Wisdom Server: <user id='userb@wlan_wwan_server.com'><status>available</status></user><userid='userrc@wlan_wwan_server.com'><status>unavailable</status></user><userid='userd@wlan_wwan_server.com'><status>unavailable<;/status> 95782.doc -23- 1374633 </user> where the user id item is the user's unique user ID in the WLAN' status item indicates whether the user is currently in the WLAN service area. The information displayed by the communication partner roster of the user A indicates that the user A has three contacts in the WLAN service area under the jurisdiction of the smart server - users B, C, and D, and the three users are in the WLAN. The user IDs are userb@wlan_wwan_server.com, userc@wlan_wwan_server.com, userd@wlan_wwan_server.com, and only user B is in the WLAN service area. User C and D are not in the WLAN service area. At this time, the user A can only communicate with the user B through the WLAN interface, and can only connect with the user C or D through the WWAN. Here, user A and user B may be located in WLAN service areas of different hotspots, and WLAN service areas of different hotspots may be connected to each other through the Internet. As described above in describing the connection/address detection sub-module of the smart agent in the mobile terminal, the method for switching between different wireless interfaces according to the present invention, the smart server is within its jurisdiction Each user exchanges a hub of a network address with each other. With the smart server, a user who wants to communicate using the WLAN interface can know the network address of the other party, thereby establishing a WLAN connection by using the network address. The smart server can be an instant messenger server, such as MSN, yahoo message, jabber, or a separate server operated by a network service operator. In this embodiment, User A can change his or her communication partner roster in the Wisdom Server by means of an Internet page (Web), such as increasing or decreasing the communication 95782.doc -24· 1374633 buddy. When a user who is in a call enters or leaves a WLAN service area, the mobile terminal cooperates with the smart server in the mobile terminal used by the user and the smart server in the public server. Conversion in six working states. In the following, the user A and B who are in the middle of the call are taken as an example, and the user terminal A and the user terminal B used by the two users A and B are switched to use from the WWAN interface, as shown in FIGS. 6 and 7. The WLAN interface communicates and switches from using the WLAN interface to the process of communicating with the W WAN interface. 1. Switching from using the WWAN interface to using the WLAN interface As shown in FIG. 6, when the user A who is performing WWAN communication with the user B enters the WLAN service area, the smart agent in the user terminal A detects the WLAN interface. Available, so that user terminal A enters the WWAN to WLAN state from the WWAN enabled state. When the user B who is in WWAN communication with the user A also enters the WLAN service area, the smart agent in the user terminal B detects that the WLAN interface is available, so that the user terminal B also enters the WWAN from the WWAN enabled state. To WLAN status. In the WWAN to WLAN state, user terminals A and B respectively provide online information to the smart server, including information such as the network address, connection type, and port number of the user terminals A and B. Assuming that the switching process from the use of the WWAN to the use of the WLAN is initiated by the user terminal A as the calling party, the specific process is as follows: First, the user terminal A acquires the called party via the smart server by using the Push or Pull method described above. The network address of user terminal B. After obtaining the network address of the user terminal B, according to the area configuration information, the user terminal 95782.doc • 25-1374633 terminal A determines whether to use the WLAN interface to communicate with the user terminal b. If the area configuration information indicates that the user terminal preferably uses the WLAN interface for wireless communication, the user terminal A will use the obtained network address of the user terminal B to send a WLAN call request to the user terminal B. After the user terminal B receives the WLAN call request from the user terminal A, if the user of the user B configures the wireless interface that allows the user to switch communication during the communication, the user terminal B sends a message to the user terminal A. Accept the message of the W]LAN call request and enter the WLAN enabled state. The user terminal A enters the WLAN enabled state after receiving the message from the user terminal b accepting the WLAN call request. After both user terminals A and B enter the WLAN enabled state, the wireless resources occupied by the previous WWAN are released, and the two user terminals A and B communicate through the WLAN interface. Communication using the WLAN interface can involve audio or video information (depending on user configuration and available network resources). However, if the user of user B is configured to not allow the wireless interface to switch communications during communication, user terminal B sends a message rejecting the WLAN call request to user terminal a. In this case, user terminals a and B continue to remain in the WWAN to WLAN state. If the user of the user terminal b changes its user configuration through the user interface (ie, allows the user B to switch the wireless interface of the communication during the communication process), or if the user terminal a receives the user interface from the user interface The user terminal A resends the WLAN call request to the user terminal B. If the WLAN interface of user terminal A or B becomes unavailable in the WWAN to WLAN state, the WLAN interface becomes unavailable. 95782.doc -26-1374633 The terminal will return from WWAN to WLAN status. WWAN enabled state. 2. Switching from using the WLAN interface to using the WWAN interface As shown in Figure 7, it is assumed that the called party user B who is conducting WLAN communication is about to leave the WLAN service area. The smart agent in user terminal B detects that its WLAN interface is about to become unavailable, thereby causing user terminal B to enter the WLAN to WWAN state from the WLAN enabled state. In this transitional state, the user terminal B first sends a handover request to the user terminal A to switch to the WWAN. After receiving the handover request, user terminal A enters the WLAN to WWAN state. In this state, the user terminal A sends a message to the user terminal B accepting the handover request, and also sends a request for a WWAN call to the user terminal B. Upon receiving the request for the WWAN call, the user terminal B enters the WWAN enabled state and sends a message to the user terminal A accepting the WWAN call request. After receiving the message of accepting the WWAN call request, the user terminal A enters the WWAN enabled state from the WLAN to the WWAN state. After both user terminals A and B enter the WWAN enabled state, the wireless resources occupied by the previous WLAN are released, and the two user terminals A and B communicate through the WWAN interface, and the user terminal B also offline. The information immediately informs the smart server. If the user terminal BiWLAN interface becomes available again in the WLAN to WWAN state (ie, user B is still stuck in the WLAN service area), user terminals A and B will return to the WLAN enabled state. The implementation of the present invention is switched from using the WWAN interface to using the WLAN interface or switching from using the WLAN interface to using the WWAN interface, and is provided by the smart agent respectively placed in the user terminal and 95782.doc placed in the public server. 27· Implemented by the smart server, wherein the smart agent and the smart server can be implemented by a software module in a software form, or can be implemented by a function module in a hardware form. Technical Effects In summary, the present invention provides a method and apparatus for call handover between a WLAN and a WWAN interface, which introduces a smart agent and a smart server, thereby enabling WWAN communication before entering the WLAN service area. The two mobile terminals can switch to WLAN communication after entering the WLAN service area, and can also switch back to perform WWAN communication when leaving the WLAN service area, thereby fully utilizing the resources of the WLAN and saving the mobile terminal users. Cost and WWAN resources of the operator. In addition, the method for communicating between different wireless interfaces of the present invention is applicable not only to two user terminals having a WLAN and WWAN wireless interface, but also to a user having a WLAN and WWAN interface. The terminal, and the other party of the communication is a device that combines the functions of the network and the telephone, such as a combination of a telephone and a computer (the combination mainly refers to a logical combination), that is, the use of the other party. In the configuration, a phone number is combined with a user on a public server 'and the user on the public server can use the service with any computer). However, if the communicating party is capable of accessing the Internet and supporting the communication device of the online call service, the handover process from WWAN to WLAN communication or from WLAN to WWAN communication must be performed by using WLAN and WWAN interfaces. The terminal is initiated. It should be understood by those skilled in the art that the communication method and apparatus for switching between the wireless wide 95782.doc -28-1374633 domain network and the wireless local area network can be omitted without departing from the present invention. Based on various improvements. Therefore, the scope of the invention should be determined by the content of the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a mixed use of a conventional wireless local area network (WLAN) and a wireless wide area network (WWAN); FIG. 2 is a schematic diagram of a mobile terminal according to the present invention in six intents; A schematic diagram of a connection between a group of intelligent agent modules according to the present invention and an intelligent server; and FIG. 4 is a schematic diagram of exchanging IP (Internet Protocol) addresses using a push method according to the present invention; 5 is a schematic diagram of a parent exchange IP address using a pull method according to the present invention; FIG. 6 is a schematic diagram of self-use WWAN interface WLAN interface communication according to the present invention; FIG. 7 is a self-use WLAN interface switcher according to the present invention. A schematic diagram of the communication to the borrowing field of WAN. [Description of main component symbols] Between communication terminals Between communication terminals m 10 20 100 200 Area configuration sub-module Connection/address detection sub-module Smart agent Smart server 95782.doc -29·