CN1620157A - Method and apparatus for a mobile station application to identify specified status messages - Google Patents

Method and apparatus for a mobile station application to identify specified status messages Download PDF

Info

Publication number
CN1620157A
CN1620157A CN 200410089848 CN200410089848A CN1620157A CN 1620157 A CN1620157 A CN 1620157A CN 200410089848 CN200410089848 CN 200410089848 CN 200410089848 A CN200410089848 A CN 200410089848A CN 1620157 A CN1620157 A CN 1620157A
Authority
CN
China
Prior art keywords
mobile station
original
packet
application
protocol layer
Prior art date
Application number
CN 200410089848
Other languages
Chinese (zh)
Inventor
N·阿波罗
H·吉尔基
Original Assignee
高通股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority to US53949700A priority Critical
Application filed by 高通股份有限公司 filed Critical 高通股份有限公司
Publication of CN1620157A publication Critical patent/CN1620157A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/04Network layer protocols, e.g. mobile IP [Internet Protocol]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices

Abstract

本发明揭示了一种在无线通信系统中用于移动站应用程序识别指定状态消息的方法和装置。 The present invention discloses a method and apparatus for a mobile station to identify specified status messages application in a wireless communication system. 本发明包括方便与通信网络通信的移动站通信协议栈和移动站应用程序间的通信的应用程序接口(API)。 Communications between an application program interface of the present invention comprises a communication with a communication network to facilitate the mobile station and a mobile station communication protocol stack applications (API). 所述移动站应用程序调用函数。 The mobile station application program calls the function. 所述API根据其状态和所调用的函数选择至少一个指定状态消息。 API said at least one designated state and its status message selected according to the called function. 然后,所述API向所述移动站应用程序报告所选择的指定状态消息。 Then, the API of the selected mobile station to specify the application reports the status message.

Description

用于移动站应用识别指定状态消息的方法和装置 A method and apparatus is used for identifying the mobile station specified status messages

本发明申请是国际申请日为2001年3月29日的、国际申请号为PCT/US01/10144的、在中国的国家申请号为01807775.7的、名称为“用于移动站应用识别指定状态消息的方法和装置”的分案申请。 The present invention is an international application filing date of March 29, 2001, and International Application No. PCT / US01 / 10144, the National Application No. 01807775.7 in China for the name "applications for mobile station identification specified status message method and device "divisional applications.

技术领域 FIELD

本发明涉及无线通信领域。 The present invention relates to the field of wireless communications. 本发明尤其涉及在无线通信系统中使移动站应用程序能够识别指定状态消息的新颖的方法和装置。 The present invention particularly relates to a novel method and apparatus for a mobile station can identify the application status message specified in a radio communication system.

背景技术 Background technique

A.无线通信系统无线通信和与计算机有关的技术中的近来的革新,以及因特网订户的空前增长已经为移动计算铺平了道路。 Wireless communication technology and recent innovations in computer-related A. wireless communication systems, and unprecedented growth of Internet subscribers has paved the way for mobile computing. 实际上,移动计算的普及已提出了对当前的因特网基础结构的更大需求以向移动用户提供更多的支持。 In fact, the popularity of mobile computing has made greater demands on the current Internet infrastructure to provide more support to mobile users. 该基础结构的生命线是提供各种服务的面向分组的网际协议(IP),包括局域和广域网络(LAN和WAN)间的分组(数据报)的寻址和路由。 Lifeline infrastructure to provide the various services a packet-oriented Internet Protocol (IP), comprising addressing and routing packets between the local and wide area networks (LAN and the WAN) (datagram) is. 在1981年9月的因特网标准(草案)791(RFC),名为“INTERNET PROTOCOL DARPA INTERNET PROGRAM PROTOCOLSPECIFICATION”中定义了IP协议。 In September 1981 Internet standard (draft) 791 (RFC), entitled "INTERNET PROTOCOL DARPA INTERNET PROGRAM PROTOCOLSPECIFICATION" is defined in the IP protocol.

所述IP协议是网络层协议,将数据封装成IP分组用于传输。 The IP protocol is a network layer protocol, data is encapsulated into IP packets for transmission. 寻址和路由信息附于所述分组的首部。 Addressing and routing information attached to the packet header. 例如,IP首部包含识别发送和接收主机的32-比特地址。 E.g., IP header comprising identification transmitter and a 32-bit address of the receiving host. 由中间路由器使用这些地址,为该分组选择一条通过网络通向计划地址处的最终目的地的通路。 These addresses are used by the intermediate routers to select a path through the final destination address for the packet network access to programs. 从而,所述IP协议允许将世界上任何因特网节点发出的分组路由到世界上任何其它的因特网节点。 Thus, the IP protocol allows packets to route any Internet node in the world sent to the world to any other Internet node. 另一方面,使用传输层从事特定应用,所述传输层包括传输控制协议(TCP)或用户数据报协议(UDP)。 On the other hand, in a particular application using the transport layer, the transport layer comprises a Transport Control Protocol (TCP) or User Datagram Protocol (UDP).

移动用户的当前趋势是连同诸如蜂窝网或便携式电话机的无线通信设备一起,使用诸如膝上型或掌上型计算机的移动计算机访问因特网。 Current trends along with movement of the user is a wireless communication device such as a cellular network or a portable telephone, Internet access using a mobile computer such as a laptop or palmtop computer. 也就是说,正如用户常规地使用“有线”通信设备将其计算机与陆基网络连接那样,移动用户将使用通常称为“移动站”(MS)的无线通信设备使其移动终端与这样的网络连接。 That is, as users conventionally use a "wired" communication devices to connect their computers to land-based network, the mobile users will use wireless communication devices commonly referred to as "mobile station" (the MS) and the mobile terminal makes it such a network connection. 如这里所使用的,所述移动站或MS指的是公用无线电网络中的任何订户站。 As used herein, refers to the mobile station MS or the public radio network any subscriber station.

图1(先有技术)说明了无线数据通信系统的高级方块图,其中移动站110通过基站/移动交换中心(BS/MSC)106与互通功能(IWF)108通信。 Figure 1 (prior art) illustrates a high level block diagram of a wireless data communication system, wherein the communication mobile station 110 via the base station / mobile switching center (BS / MSC) 106 and the interworking function (IWF) 108. 所述IWF108用作因特网的访问接入点。 IWF108 as the Internet access point. IWF108耦合至BS/MSC106,并通常与其处于同一地点,如本领域中众所周知的那样所述BS/MSC106可以是常规无线基站。 IWF108 coupled to BS / MSC106, and usually at the same location therewith, as known in the art that the BS / MSC106 may be a conventional wireless base station. 另一致力于无线数据通信系统的标准协议是第3代伙伴计划2(“3GPP2”),1999年12月公布的名为“WIRELESS IP NETWORK STANDARD”。 Another committed standard protocol for wireless data communication system is the 3rd Generation Partnership Project 2 ( "3GPP2"), published in December 1999 titled "WIRELESS IP NETWORK STANDARD". 例如所述第3代无线IP网络标准包括分组数据服务节点(“PDSN”),它功能上类似所述IWF108。 For example, the third generation radio IP network standards include packet data serving node ( "PDSN"), its function is similar to the IWF108.

在所述MS110和所述IWF108之间存在致力于数据通信的各种协议。 Various protocols exist for data communication between the dedicated and the MS110 IWF108. 例如,电信行业协会(TIA)/电子行业协会(EIA)临时标准IS-95,1993年7月公布的名为“MOBILE STATION-BASE STATION COMPATIBILITY STANDARD FORDUAL-MODE WIDESPREAD SPECTRUM CELLULAR SYSTEM”,广泛地提供了用于宽带扩展频谱无线通信系统的标准。 For example, Telecommunications Industry Association (TIA) / Electronic Industries Association (EIA) Interim Standard IS-95, published in July 1993 entitled "MOBILE STATION-BASE STATION COMPATIBILITY STANDARD FORDUAL-MODE WIDESPREAD SPECTRUM CELLULAR SYSTEM", a widely available standard for wideband spread spectrum wireless communication system. 而且,1998年2月公布的名为“DATA SERVICEOPTIONS FOR WIDEBAND SPREAD SPECTRUM SYSTEMS:PACKET DATA SERVICES”的TIA/EIA IS-707.5标准,定义了在TIA/EIA IS-95系统上支持分组数据传输能力的要求并且规定了可以用于所述MS110和所述IWF108间通过所述BS/MSC 106通信的分组数据载体服务。 Furthermore, published February 1998 entitled: TIA / EIA IS-707.5 standard "DATA SERVICEOPTIONS FOR WIDEBAND SPREAD SPECTRUM SYSTEMS PACKET DATA SERVICES", the definition of required packet data transmission capability on TIA / EIA IS-95 systems and it specifies the MS110 can be used for inter-packet and the data carrier through the communication IWF108 the BS / MSC 106 services. 同样地,1999年3月公布的名为“DATASERVICE OPTIONS FOR SPREAD SPECTRUM SYSTEMS:PACKET DATA SERVICES”的TIA/EIA IS-707-A.5标准以及名为“DATA SERVICE OPTIONS FOR SPREADSPECTRUM SYSTEMS:HIGH-SPEED PACKET DATA SERVICES”的TIA/EIA IS-707-A.9标准,也定义了在TIA/EIA IS-95系统上支持分组数据传输的要求。 Similarly, in March 1999 published entitled: TIA / EIA IS-707-A.5 standard "DATASERVICE OPTIONS FOR SPREAD SPECTRUM SYSTEMS PACKET DATA SERVICES" and entitled "DATA SERVICE OPTIONS FOR SPREADSPECTRUM SYSTEMS: HIGH-SPEED PACKET dATA SERVICES "the TIA / EIA iS-707-A.9 standard, also defines the requirements to support packet data transmission on TIA / EIA iS-95 systems. 此外,另一致力于所述MS110和所述IWF108间的通信的标准协议是1999年7月公布的名为“INTRODUCTION TO CDMA 2000 STADARDS FOR SPREAD SPECTRUM SYSTEMS”的TIA/EIA IS-2000标准。 In addition, another committed standard protocol for communication between the MS110 and the IWF108 was published in July 1999 TIA named "INTRODUCTION TO CDMA 2000 STADARDS FOR SPREAD SPECTRUM SYSTEMS" a / EIA IS-2000 standard.

IS-707.5介绍了所述MS110和所述BS/MSC106间(Um接口)以及所述BS/MSC106和所述IWF108间(L接口)的通信协议选择模型。 IS-707.5 introduces the MS110 and the BS / MSC106 room (Um interface) and the BS / MSC106 and between the IWF108 (L Interface) communication protocol selection model. 例如,中继模型代表在所述MS110和所述IWF108间的Um接口上存在点到点协议(PPP)链路的情况。 For example, the case of point to point protocol (PPP) link model representing the presence of the relay on the Um interface between the MS110 and IWF108. 在因特网标准(草案)1661(RFC1661),名为“THE POINT-TO-POINTPROTOCOL(PPP)”中详细描述了所述PPP协议。 In Internet standard (draft) 1661 (RFC1661), entitled "THE POINT-TO-POINTPROTOCOL (PPP)" described in detail in the PPP protocol.

图2(先有技术)是所述IS-707.5中继模型中的每个实体中的协议栈的图。 Figure 2 (prior art) is the IS-707.5 relay model of the protocol stack in each entity of FIG. 该图的最左端是以常规纵向格式显示的通信协议栈,示出了在所述MS110上运行的协议层。 The figure is the leftmost protocol stack of a conventional vertical format, showing the protocol layers running on the MS110. 说明了所述MS110协议栈通过所述Um接口与BS/MSC106协议栈逻辑连接。 MS110 illustrates the protocol stack via the Um interface with the BS / MSC106 logical protocol stack. 接着说明了所述BS/MSC106协议栈通过所述L接口与IWF108协议栈逻辑连接。 Next, of the BS / MSC106 protocol stack via the L interface logic IWF108 protocol stack.

图2中描述的操作如下:诸如所述MS110运行的应用程序的顶层实体200需要在因特网上发送数据。 Operation depicted in Figure 2 as follows: the top-level entity such as an application running MS110 200 needs to send data over the Internet. 具有代表性的应用程序可以是web浏览器程序(如Netscape NavigatorTM,Microsoft Internet ExplorerTM)。 Representative application may be a web browser program (such as Netscape NavigatorTM, Microsoft Internet ExplorerTM). 所述web浏览器请求通用资源定位器(URL),如超链接“http://www.Qualcomm.com”。 The browser requests a universal resource locator (URL), such as hyperlinks "http://www.Qualcomm.com" web. 同样在所述顶层协议200中的域名系统(DNS)通过使用域名解析将文本主机名转换成32-比特的数字IP地址,该域名解析将名字转换成因特网中的地址。 Also in the top layer protocol 200 Domain Name System (DNS) by using a DNS hostname converting text into 32-bit numeric IP address, the DNS name converting an address in the Internet. 同样是所述顶层协议200的超文本传输协议(HTTP)为所请求的URL构造获取消息,并指定TCP将用于发送该消息以及用于HTTP操作。 The top layer is also configured URL protocol Hypertext Transfer Protocol (HTTP) 200 is requested to retrieve messages, and to specify the TCP will be used for transmitting the message and the HTTP operation. 传输层202使用本领域中众所周知的端口80作为目的端口,将HTTP操作发送到应用程序。 Transporting layer 202 are well known in the art using port 80 as the destination port sends an HTTP operation to the application.

作为传输层协议202的TCP协议开启到由DNS指定的IP地址的连接并且发送应用层HTTP获取消息。 Open TCP protocol as a transport layer protocol 202 is connected to the DNS IP address specified by the application layer and transmits the HTTP GET message. 所述TCP协议规定了IP协议将用于消息传输。 The TCP protocol specifies the IP protocol will be used for message transmission. 所述网络层协议204的IP协议向指定的IP地址发送TCP分组。 The network layer protocol IP protocol 204 transmits the TCP packets to the IP address specified. 链路层协议206的PPP编码所述IP分组并将它们发送到中继层协议208。 206 encoding the PPP link layer protocol IP packets and sends them to the relay layer protocol 208. 所述中继层协议208的一个例子是说明的TIA/EIA-232F标准,该标准在1997年10月公布的名为“INTERFACE BETWEEN DATA TERMINAL EQUIPMENT AND DATACIRCUIT-TERMINATING EQUIPMENT EMPLOYING SERIAL MINARY DATAINTERCHANGE”中定义。 One example of the relay layer protocol 208 are described in TIA / EIA-232F standard, which is defined in the October 1997 publication entitled "INTERFACE BETWEEN DATA TERMINAL EQUIPMENT AND DATACIRCUIT-TERMINATING EQUIPMENT EMPLOYING SERIAL MINARY DATAINTERCHANGE". 要理解到可以使用本领域的普通技术人员所知的其它标准或协议来定义跨越层的传输。 It is to be understood to other standards or protocols may be used by those of ordinary skill in the art to define the transmission across the layer. 例如,其它可用的协议可以包括1998年12月公布的“UNIVERSAL SERIAL BUS(USB)SPECIFICATION,Revision 1.1”以及1999年7月公布的“BLUETOOTH SPECIFICATION VERSION 1.0A CORE”。 For example, you can include other protocols available in December 1998 announced the "UNIVERSAL SERIAL BUS (USB) SPECIFICATION, Revision 1.1" and in July 1999 released "BLUETOOTH SPECIFICATION VERSION 1.0A CORE". 最后,所述中继层协议208将PPP分组传递给无线链路协议(RLP)210并且然后传递给IS-95协议212,用于在Um接口上向Bs/MSC106传输。 Finally, the relay layer protocol 208. PPP packet to the Radio Link Protocol (RLP) 210 and then passed to the IS-95 protocol 212 for / MSC106 transmission to Bs on the Um interface. 在1998年2月公布的名为“DATA SERVICE OPTIONS FOR WIDEBAND SPREAD SPECTRUM SYSTEMS:RADIO LINK PROTOCOL”的IS-707.2标准中定义了所述RLP协议210,并且在上面标识的IS-95标准中定义了所述IS-95协议。 The RLP protocol is defined IS-707.2 standard: "RADIO LINK PROTOCOL DATA SERVICE OPTIONS FOR WIDEBAND SPREAD SPECTRUM SYSTEMS" in 210, and is defined in the IS-95 standard identified above named published in February 1998 said IS-95 protocol.

所述BS/MSC106上的互补的中继层协议220在所述Um接口上通过IS-95层218并随后通过RLP层216接收PPP分组。 The BS / complementary relay layer protocol 220 and the MSC 106 then receives the PPP packet by the RLP layer 216 over the Um interface layer 218 by IS-95. 所述中继层协议220在L接口上将这些分组传递给所述IWF108上的中继层协议228。 The relay layer protocol is transmitted to the relay layer protocol 220 on the IWF108 228 on the interface L in the packets. 所述IWF108上的PPP协议链路层226从所述中继层协议228接收所述PPP分组,并终止所述MS110和所述IWF108间的PPP连接。 The PPP link layer protocol on IWF108 226 from the relay layer protocol 228 receives the PPP packets and PPP termination IWF108 between said connector and the MS110. 所述分组在IWF108上从所述PPP层226传递到IP层224用于检验所述IP分组首部以作最后的路由选择,这在此情况下是www.Qualcomm.com。 The packet transmitted from the IWF108 on PPP layer 226 to verify the IP packet header to make the final routing for the IP layer 224, which in this case is www.Qualcomm.com.

假设由所述MS110产生的IP分组的最终目的地不是所述IWF108,就通过网络层协议224以及链路层协议225将所述分组传送到因特网上的下一路由器(未示出)。 Assume that the IP packets generated by the MS110 is not the final destination IWF108, it transmits the packet to the next router (not shown) on the Internet 224 through the network layer protocols 225 and the link layer protocol. 如此,根据所述IS-707.5标准中继模型,通过所述BS/MSC106和所述IWF108将来自所述MS110的IP分组传递到其最终的目的地。 Thus, according to the IS-707.5 standard relay model, by the BS / MSC106 and the IWF108 MS110 from the IP packets transmitted to its final destination.

在所述MS110分组到达其最终目的地之前,必需首先建立数据链路连接。 MS110 before the packet reaches its final destination, it is necessary first to establish a data link connection. 如在RFC1661中说明的那样,这要求所述点到点链路(即所述PPP协议206和226)的每一端首先发送PPP链路控制协议(LCP)分组,以建立、配置和测试该数据链路连接。 As explained in RFC1661, which requires a point to point link (i.e., the PPP protocol 206, and 226) first sends to each end of the PPP Link Control Protocol (LCP) packets for establishing, configuring and testing the data link connection. 在LCP建立了该链路之后,所述PPP协议206然后可以发送网络控制协议(NCP)分组以配置所述网络层协议204和224。 After the LCP link is established, the PPP protocol 206 then sends Network Control Protocol (NCP) packets to configure the network layer protocols 204 and 224. PPP链路中用于IP的NCP是IP控制协议(IPCP)。 NCP PPP link for IP is the IP Control Protocol (IPCP). 在1992年5月公布的名为“THE PPP INTERNETPROTOCOL CONTROL PROTOCOL(IPCP)”的因特网标准(草案)1332(RFC1332)中详细描述了IPCP。 In Internet standard called "THE PPP INTERNETPROTOCOL CONTROL PROTOCOL (IPCP)" published in May 1992 (draft) 1332 (RFC1332) are described in detail IPCP. 然而,在IPCP协商之前,可能需要验证阶段。 However, before IPCP negotiation, it may require validation phase. 在配置了所述网络层协议的每一个之后,可以在它们之间的链路上发送来自每个网络层协议的分组。 After configuring each of the network layer protocol can be sent from each network layer protocol packets on the link between them.

B.应用程序接口支持所述MS110上的通信协议栈的大多数处理(即使不是全部)由应用程序执行。 B. Application Programming Interface supports most of the communication protocol stack on the MS110 (if not all) performed by the application. 一般地,常规的数据网络使用应用程序接口(API)使在一个计算机上运行的应用程序能与在另一计算机上运行的应用程序通信。 Generally, a conventional data network using an application program interface (API) that the applications running on one computer can communicate with the application running on another computer. 所述API利用“套接件”,它使调用应用程序避开底层网络的协议的差异。 The difference between using API "socket member", which allows the calling application to avoid the underlying network protocol. 为了实现网络互连通信,API包括允许例如打开套接件、向网络发送数据、从网络接收数据以及关闭套接件的应用程序的功能。 In order to realize a communication network interconnection, including allowing the API, for example, opening socket member, transmits data to the network, the network receives data from the socket member, and closing the application's functionality. 公用网络程序接口包括在UnixTM操作系统下运行的伯克利系统开发(BSD)套接件接口以及在WindowsTM操作系统下运行的WindowsTM套接件接口(WinSockTM)。 Berkeley public network interface comprises system development program running under the operating system UnixTM (BSD) socket member WindowsTM socket interface and the interface member (WinSockTM) WindowsTM run under the operating system.

由于BSD套接件或WinSockTM都不支持所述无线MS110上的通信协议栈(见图2),就需要支持这样的栈的新的API。 Since WinSockTM BSD socket member or do not support the communication protocol stack on wireless MS 110 (see FIG. 2), it is necessary to support such a new stack API. 特别地,所需的是一种在无线通信系统中用于移动站应用程序识别指定状态消息的新颖的方法和装置。 In particular, what is needed is a method for identifying the application state of the mobile station message specifies novel apparatus and method in a wireless communication system.

发明内容 SUMMARY

本发明致力于上面确定的需要,提供了一种在无线通信系统中用于移动站应用程序识别指定状态消息的方法和装置。 The present invention addresses the needs identified above, provides a method and apparatus for a mobile station in a wireless communication system applications identifying specified status message. 在一个实现中,本发明包括应用程序接口(API),方便了与通信网络通信的移动站通信协议栈与移动站应用程序间的通信。 In one implementation, the present invention includes an application program interface (the API), to facilitate the communication between mobile stations communicating with the mobile station protocol stack application of the communication network. 所述移动站应用程序调用一函数。 The application calls a mobile station function. 所述API根据其状态和所调用的函数选择至少一个指定状态消息。 API said at least one designated state and its status message selected according to the called function. 然后,所述API向所述移动站应用程序报告所选择的指定状态消息。 Then, the API of the selected mobile station to specify the application reports the status message.

附图说明 BRIEF DESCRIPTION

图1(先有技术)是无线通信系统中的高级方块图,其中移动站连接到因特网。 Figure 1 (prior art) is a high level block diagram of a wireless communication system, wherein the mobile station is connected to the Internet.

图2(先有技术)示意地描述了TIA/EIA IS-707.5中继模型的每个实体中的协议栈。 Figure 2 (prior art) schematically describes the protocol stacks in each entity of the TIA / EIA IS-707.5 relay model of.

图3示意地描述了本发明的实施例的特点。 FIG 3 schematically depicts a feature of an embodiment of the present invention.

图4和图5是检测指定事件的流程图。 4 and FIG. 5 is a flowchart of the detection of the specified event.

图6是描述异步连接的方块图。 FIG 6 is a block diagram of the asynchronous connection described.

图7是描述异步套接件输入的方块图。 FIG 7 is a block diagram depicting an asynchronous input socket member.

图8至图10是本发明的实施例的状态图。 8 to FIG. 10 is a state diagram of an embodiment of the present invention.

具体实施方式 Detailed ways

本发明的实施例可以以各种实现方式实现,包括软件、固件和/或硬件。 Embodiments of the invention may be implemented in a variety of implementations, including software, firmware and / or hardware. 因此,将描述本发明的操作和性能而不具体涉及软件编码或硬件组成。 Accordingly, the description of the operation and performance of the present invention without particularly involving software code or hardware components. 理解到根据这里的说明,本领域的普通技术人员能够设计使移动站应用程序能够识别指定状态消息的软件和/或硬件来实现本发明。 The understood that the description herein, those of ordinary skill in the art that the mobile station can be designed to be able to identify the application software and / or hardware status message designated to implement the invention.

图3描述了MS110中的应用程序260、通信协议栈280以及API270。 Figure 3 depicts the application MS110 260, and a communication protocol stack 280 API270. 应用程序260和通信协议栈280(即协议层202、204、206、208、210、212)通过API270提供的函数调用进行通信。 Application communication protocol stacks 260 and 280 (i.e. protocol layer 202,204,206,208,210,212) function call provided by API270 communication. 换句话说,API270允许应用程序260和通信协议栈280在不同的处理器和操作系统上运行而不损害功能性。 In other words, API270 allows applications 260, and a communication protocol stack 280 run without compromising functionality on different operating systems and processors. 本领域普通技术人员将理解到所调用的功能的各种名字是可能的而不背离本发明的范围。 Those of ordinary skill in the art will appreciate that the functions called by various names are possible without departing from the scope of the invention.

应该注意到通信协议栈280包含多个存储数据的发送队列和接收队列。 It should be noted that the communication protocol stack 280 comprises a plurality of transmission queues for storing data and receive queues. 输出函数从应用程序260的存储器读取数据,将该数据存储于通信协议栈280的一个发送队列之中。 Output data from the memory function reads the application program 260, the data memory stack in a transmission queue 280 communication protocol. 输入函数从通信协议栈280的一个接收队列读取数据,将该数据存储于应用程序260的存储器中。 Input function from the stack 280 receives a communication protocol to read data queue, the data is stored in the memory 260 of the application.

为了说明操作,所述MS110接收IP分组。 To illustrate the operation of the IP packet received MS110. 所述MS110的通信协议栈280对所述IP分组拆去封装,并且将它们传递到传输层202(见图3)。 The communication protocol stack 280 MS110 remove the encapsulated packet to the IP, and they pass them to the transport layer 202 (see FIG. 3). 所述IP分组的首部的域指示该传送,可以是TCP或UDP。 Field of the IP packet header indicates that the transmission may be a TCP or UDP. 根据所述传输层首部中指定的目的地端口号,将所述数据路由到通信协议栈280的适当的接收队列,该队列对应于某一套接件。 The destination port number of the transport layer is specified in a header, the data is routed to an appropriate communication protocol stack 280 receive queue, the queue corresponding to a certain set of connection members. 然后可以把该数据传送到应用程序260。 Then transfers the data to the application 260.

在某些情况下,需要用绕过所述协议栈280的各个层的分组操作来降低等待时间效应。 In some cases, the need to use the protocol stack packet to bypass the operation of the individual layers 280 to reduce latency effects. 这样的分组包括缺少目的地信息(即目的地端口号)的原始分组数据,如原始IP分组。 Such missing data packets includes an original packet destination information (i.e., destination port number), as the original IP packet. 如此,从该原始IP分组中不能确定目的应用程序。 Thus, application object can not be determined from the original IP packet. 例如在这样的情况下,通信协议栈280可以向所有注册支持所述IP协议的套接件发送接收到的原始IP分组。 For example, in this case, a communication protocol stack 280 may be sent to all registered received IP protocol supports the socket member original IP packet. 这允许有效负荷数据被发送到目的地应用程序。 This allows payload data to be transmitted to the destination application. 响应IP分组的网际控制消息协议(ICMP)分析引擎也可以接收所述原始分组数据。 Responsive IP packet Internet Control Message Protocol (ICMP) analysis engine may also receive the original data packet. 在RFC792名为“INTERNET CONTROL MESSAGE PROTOCOL”中定义了著名的ICMP分析引擎。 The definition of the famous ICMP RFC792 analysis engine named "INTERNET CONTROL MESSAGE PROTOCOL" in. 从该说明书中应该清楚地看到,例如,通信协议栈280在将接收到的分组沿栈向上传递到应用程序260之前处理所述分组,这减少了应用程序260进行的去封装的量。 It should be apparent from the specification, for example, communication protocol stacks 280 in the received packet is passed up in the stack to the amount of processing before the application packet 260, which reduces to encapsulated application 260 is performed.

相反地,通过使用所述套接件应用程序260可以在Um接口上传送原始分组数据,这将促进通信协议栈280和应用程序260间的通信。 Conversely, the original packet 260 can be transmitted over the Um interface data in said socket member through the use of application, which will facilitate communication protocol stack 280 and applications 260 of the communication. 此外,应用程序260可以在所述Um接口上传送原始分组数据。 Further, the application 260 may transmit an original data packet on the Um interface. 例如通信协议栈280依次将分组的或原始分组数据封装成IP分组并在所述Um接口上传送它们。 For example communication protocol stack 280 sequentially original packet or data packet encapsulated into IP packets and transmits them over the Um interface. 在该例子中,通信协议栈280提供IP首部和校验和以产生所述IP分组。 In this example, a communication protocol stack 280 provides IP header and checksum to the IP packet generation. 另一方面,对于ICMP,指定的协议类型将被复制进所述IP首部之中。 On the other hand, for ICMP, the protocol type specified to be copied in into the IP header.

如上面所表明的,应用程序260可以创建一套接件,允许在至少一个协议层202、204、206、208、210、212和应用程序260间数据通信,以减少通信协议栈280的使用中所固有的等待延时。 As indicated above, the application 260 may create a connection member allowing at least one application protocol layer 260 202,204,206,208,210,212 and data communication, in order to reduce the communication protocol stack 280 using inherent latency. 也就是说,应用程序260可以创建绕过所述传输层202、所述网络层204以及所述链路层206的套接件,从而允许应用程序260向RLP层210发送有效负荷数据或从其上接收有效负荷数据。 That is, the application 260 may create bypass the transport layer 202, network layer, the link layer 204 and the socket member 206 so as to allow application 260 to transmit payload data from the RLP layer 210 or receiving payload data. 同样地,应用程序260可以创建允许应用程序260向IS-95层212发送有效负荷数据或从其上接收有效负荷数据的套接件。 Similarly, the application 260 may allow the application 260 to create the transmission payload data to IS-95 layer 212 to or from the socket member receiving payload data.

在一个实施例中,应用程序260调用函数open_netlib()打开通信协议栈280并分配应用程序标识符。 In one embodiment, the application 260 calls the function open_netlib () to open the communication protocol stack 280 and applications assigned identifier. 所述应用程序标识符允许多个应用程序与通信协议栈280进行通信(即多任务处理)。 The application identifier allows multiple applications to communicate with a communication protocol stack 280 (i.e., multitasking). 例如,作为函数open_netlib( )调用的一部分,应用程序260规定了指向网络回调函数的指针和指向套接件回调函数的指针。 For example, as a function open_netlib () part of, the calling application 260 defines the socket member pointers and pointers to the callback function of the callback function points to the network. 无论何时发生(或启用)诸如读取、写入以及关闭话务信道(即Um)和/或链路层(即PPP206)的网络子系统指定的事件,调用所述网络回调函数以通知应用程序260。 Whenever the occurrence (or enable) such as read, write, and close the traffic channel (i.e. Um) and / or data link layer (i.e. PPP206) network subsystem-specific event, invoking the callback function to notify the application network program 260. 无论何时发生(或启用)诸如读取、写入以及关闭传输层(即TCP)的套接件指定事件,调用所述套接件回调函数以通知应用程序260。 Whenever the occurrence (or enable) such as read, write, and close the transport layer (i.e., TCP) socket member of a specified event, invoking the callback function socket member 260 to notify the application. 对于本领域的普通技术人员,通信网络包括所述话务信道、所述链路层、所述传输层中的至少一条应该是显而易见的。 For those of ordinary skill in the art, the communication network comprising a traffic channel, the link layer, the transport layer is at least one should be obvious.

一旦打开了通信协议栈280,调用函数pppopen( )来初始化包括所述话务信道和所述链路层的网络子系统连接。 Once the open communication protocol stack 280, the calling function pppopen () to initialize the network subsystem comprises a traffic channel and the link layer connection. 这是不基于个别套接件的整个应用程序范围内的调用。 This is a call to the whole range of individual applications is not based on socket pieces. 然而,它要求所述的应用程序标识符。 However, it requires the application identifier. 一当网络子系统连接建立或失败,调用所述网络回调函数提供指定事件通知。 When a network connection is established or subsystem fails, call a callback function to provide a specified network event notification. 例如,如果没有建立话务信道,所述网络子系统失败。 For example, if the traffic channel is not established, the network subsystem failure. 此外,用net_ioctl( )函数调用可以设置所述网络子系统的特性。 Further, with net_ioctl () function call characteristics may be provided in the network subsystem. 例如该调用可以规定所述套接件的数据速率。 For example, the call may specify a data rate of said socket member.

一旦建立了网络子系统连接,通过socket()函数调用可以创建并初始化一个套接件(或多个套接件)。 Once a network subsystem connection () function is called to create and initialize a socket piece (or more sheathing component) by socket. 然而,在能够使用所述套接件功能之前,所述socket()函数调用返回套接件描述符。 However, before the socket member function can be used, the socket () function call returns socket descriptors. 然后,应用程序260可以调用函数async_select()注册指定事件以接收异步通知。 Then, the application 260 may call functions async_select () registers the specified event to receive asynchronous notification. 应用程序260可以作为所述函数调用的一部分实现该注册,规定请求通知的所述指定事件的套接件描述符和比特掩码(即多个事件OR'ed一起)。 Application 260 may be implemented as part of the registration of the function call, the predetermined notification request specifying event descriptor and the socket member the bit mask (i.e., a plurality of events OR'ed together). 例如,如果发生指定事件(即启用)并且由通信协议栈280或API270检测出,调用所述套接件回调函数提供异步通知。 For example, if the specified event (i.e., enabled) occurs and the stack 280 or the communication protocol detected by the API270, invoking the socket member providing asynchronous notification callback function. 所述回调函数可以通过使用包括远程过程调用(RPC)上的消息或者硬件或软件中断的信号、消息通知应用程序260所述指定事件。 The callback function message may include a signal by using hardware or software or a remote procedure call (RPC) on interruption of the message notification application 260 specified event.

一旦通知应用程序260所述指定事件,那么将调用函数getnextevent()来确定要服务的指定事件。 Once the notification application 260 specified event, then call the function getnextevent () to determine the specified event to be served. 该函数为所述指定套接件描述符返回所述发生的指定事件的掩码。 This function specifies the socket descriptor Returns the member of the specified event occurring mask. 并且它清除所述发生的指定事件的掩码中的比特。 It is clear mask and the occurrence of a specified event in bits. 从而,应用程序260可以不再接收禁用的指定事件的通知。 Thus, the specified event notification application 260 may no longer receive disabled. 应用程序260必需通过随后的async_select()函数调用来重新注册(即重新启用)这些指定事件。 260 applications required by subsequent async_select () function call to re-register (ie, re-enable) the specified event.

此外,应用程序260可以通过清除指定事件的比特掩码中相应的比特来改变注册的指定事件。 Further, the application 260 may be changed by clearing the register specified event specified event mask bit corresponding bit. 如果早已清除所述比特掩码中的比特,那么就简单地忽略该请求。 If already clearing the bit in the bit mask, then it simply ignores the request. 简单地说,例如通过async_deselect()函数调用可以以每事件的方式禁用事件通知。 Simply put, for example, by async_deselect () function call can disable event notifications by way of each event.

图4和图5是用于检测所述指定事件的流程图。 4 and FIG. 5 is a flowchart for the detection of the specified event. 例如,如图4中所示,在块400中通信协议栈280等待应用程序260注册指定事件。 For example, as shown in Figure 4, in block 400 the communication protocol stack register 280 waits for the application 260 to specify the event. 在注册了指定事件之后,在块402中通信协议栈280轮询存储器。 After registering the specified event, at block 402 a communication protocol stack 280 polling memory. 在块404中,根据块402的轮询信息可以检测所述指定事件。 In block 404, according to the polling information block 402 may detect the specified event. 在块406中,例如当所述通信协议栈280的存储器(即所述发送队列)可用于接受足够量的数据时,就检测到写事件。 In block 406, for example, when the communication protocol stack memory 280 (i.e., the send queue) can be used for receiving a sufficient amount of data, the write event is detected. 可以从应用程序260发送数据。 260 can transmit data from the application. 如果块404的轮询信息不符合要求(即没有发生所述指定事件),那么如同在块402中一样,通信协议栈280继续轮询所述存储器。 If the polling information block 404 does not meet the requirements (i.e., without the specified event occurs), then as in block 402, the communication protocol stack 280 continues to poll the memory.

在图5中,如块500中描述的那样,通信协议栈280等待应用程序260注册指定事件。 In FIG. 5, block 500 as described above, the communication protocol stack register 280 waits for the application 260 to specify the event. 在这段时间中,可以禁用中断通知。 During this time, you can disable interrupt notification. 如此,所述中断通知不能触发或被触发。 Thus, the interruption notification can not be activated or triggered. 如块500中所示,在注册了指定事件之后,在块502中可以根据所述指定时间的出现触发中断通知。 As shown in block 500, after the registration of the specified event, at block 502 the interrupt notification may trigger occurs according to the designated time. 例如,当将数据写入通信协议栈280的存储器(即所述接收队列)中时,发生读事件。 For example, when data is written to a memory communication protocol stack 280 (i.e., the receive queue) is, the read event. 从而,在块504中,当接收到所述中断通知时,通信协议栈280检测到所述读事件。 Thus, in block 504, when receiving the interrupt notification, the communication protocol stack 280 to the read event is detected. 所述存储于通信协议栈280的存储器的数据可以来自通信网络。 The data communications protocol stack stored in the memory 280 may be from the communication network. 此外,对于所述读事件,可以将所述存储的数据传送到应用程序260。 Further, for the reading event, the stored data can be transferred to the application program 260.

最后,当由于例如诸如传输层的数据链路连接终止而套接件可重新使用时,检测到关闭事件。 Finally, when, for example, because the data link, such as a transport layer connection termination socket member and can be reused, off event is detected.

提供了下面的异步连接(见图6)和异步输入(间图7)的例子来说明异步事件通知的使用。 The following provides asynchronous connection (see FIG. 6) and an example of asynchronous input (between FIG. 7) will be described using asynchronous event notification.

参考图6,通过open_netlib()函数调用,进入了通信协议栈280并且规定了回调函数。 Referring to FIG 6, by open_netlib () function call into the prescribed communication protocol stack 280 and the callback function. 所述pppopen()函数调用(A)初始化所述网络子系统连接(B)。 The pppopen () function call (A) to initialize the network subsystem is connected (B). 在建立了所述网络子系统连接之后,调用(C)所述回调函数来报告所述网络子系统的可用性。 After establishing the connection to the network subsystem, call (C) the callback function to report the availability of the network subsystem.

假设已经打开并分配了套接件,connect()函数调用初始化TCP连接(E)。 Assumed to have been opened and assigned socket member, connect () function call to initialize the TCP connection (E). 进一步,应用程序260调用函数async_select()(F)注册指定事件以接收通知。 Further, the application 260 calls the function async_select () (F) the specified event registered to receive notifications. 在该例子中,所关心的指定事件是一当建立连接就发生的写事件。 In this example, the specified event are concerned when a connection is established to write event occurred.

一当建立了连接,如果在掩码中注册了所述指定事件,就调用所述回调函数。 When a connection is established, if the specified event is registered in the mask, it calls the callback function. 如果是这样的话,那么调用所述回调函数(G)提供异步通知。 If so, then invoking the callback function (G) providing asynchronous notification. 一旦通知了应用程序260,它调用函数getnextevent()(H)确定发生了哪个指定事件(I)。 (H) is determined once the notification application 260, it calls the function getnextevent () which specified events (I) has occurred. 同样地,该调用清除所述掩码(J)中的事件的比特(即写事件)。 Similarly, the call clears the mask bit (J) of an event (i.e., write event). 应用程序260必需通过async_select()函数调用重新注册随后的指定事件的通知。 260 applications required by async_select () function call to re-register the subsequent notification of the specified event.

在图7中,给出了异步套接件读的说明。 In FIG. 7, a description is given of the asynchronous read socket member. 为了初始化读,应用程序260发出read()函数调用(A)。 For initializing read, the application 260 issuing read () function call (A). 假设缺少读数据,应用程序260调用函数async_select()(B)注册事件(即在所述掩码中设置相应的比特)以接收通知。 Suppose the read data is missing, the application 260 calls the function async_select () (B) the registration event (i.e. provided in the corresponding bit mask) to receive notifications. 在该例子中,所关心的指定事件是当有应用程序260要读取的数据时就发生的读事件。 In this example, the specified event of interest is read event when there are application data 260 to be read to occur.

一当数据存储于所述接收队列中,如果在所述掩码中指定了读事件就调用所述回调函数。 Once the data is stored in the receive queue, if specified in the read event mask the callback function is called. 如果是这样的话,那么就调用所述回调函数(C)提供异步通知。 If this is the case, then it calls the callback function (C) provides asynchronous notification. 一旦通知了应用程序260,它调用函数getnextevent()(D)确定发生了哪个指定事件(E)。 (D) is determined once the notification application 260, it calls the function getnextevent () to specify which event (E) has occurred. 同样地,该调用清除所述掩码(F)中的事件的比特。 Similarly, the call clears the mask bit (F) in the event. 应用程序260必需通过async_select()函数调用重新注册随后的指定事件的通知。 260 applications required by async_select () function call to re-register the subsequent notification of the specified event. 最后,为了读取存储于所述接收队列中的数据,应用程序260必需发出read()函数调用(G)。 Finally, in order to read data stored in the reception queue, the application program 260 required for issuing read () function call to (G).

在图8至图10中,说明了本发明的实施例的状态机。 In FIG. 8 to FIG. 10, the state machine embodiment described embodiment of the present invention. 在图8-9中,假设通信协议栈280开启并且建立了网络子系统连接(即话务信道以及链路层(如有必要)—原始套接件可以绕过所述网络子系统)。 In Figure 8-9, it assumed that the communication protocol stack 280 is turned on and established a network connection subsystem (i.e., the traffic channel link layer and (if necessary) - original socket member may bypass the network subsystem). 本领域的普通技术人员将理解到状态的各种名字是可能的而不背离本发明的范围。 Those of ordinary skill in the art will appreciate that the names of the various states are possible without departing from the scope of the invention.

在状态间异步转换的状态机控制(即启用或禁用)所述指定事件,如读、写和关闭。 Specifies the conversion between the asynchronous state machine control (i.e., enabled or disabled) events, such as read, write, and close. 在操作的开始可以禁用所述指定事件并且在预定状态启用该指定事件来帮助应用程序260识别MS110的状态。 At the beginning of operation can be disabled and enabled the event specified in a predetermined state that the specified event to help application 260 identifies MS110 state.

并且,API270根据API270的状态和应用程序260调用的函数类型报告指定状态消息,该消息为应用程序260所特有(即不仅仅是一般的)。 And, API270 status message specifies a function of the type of report API270 call state and application program 260, the message 260 is a specific application (i.e., not just in general). 所述指定状态消息可以反映出底层通信网络的状态。 The status message specifies state may reflect the underlying communication network. 例如以函数调用的参数将所述状态消息报告给应用程序260。 For example, a parameter of the function call status message is reported to the application program 260.

例如在图8中,说明了API270的TCP套接件的状态图。 For example, in FIG. 8, a state diagram of the TCP socket member API270. 未初始化的套接件以“空”状态800开始。 Uninitialized socket piece begins with "empty" state 800. 由于未分配,所述套接件不“存在”。 Because unassigned, said socket member does not "present." 通过socket()函数调用可以建立并初始化所述套接件,该调用返回用于套接件相关的函数的套接件描述符。 By socket () function call to be established and initializing the socket member, socket member for the call returns the associated socket descriptor member functions. 在socket()函数调用之后,所述状态机转换到“初始化”状态805。 The socket () function call then the state machine transitions to "initialize" state 805.

在初始化状态805中,无论何时由于close()函数调用而可能终止TCP连接时所述状态机转换回到所述空状态800。 In initialization state 805, since whenever close () function call may terminate the TCP connection state machine transitions back to the idle state 800. 所述close()函数调用释放所有套接件相关的资源。 The close () function call to release all resources related to the socket pieces. 另一方面,connect()函数调用初始化TCP连接并将所述状态机转换到“开启”状态810。 On the other hand, connect () function call to initialize the TCP connection and the state machine transitions to the "on" state 810.

在所述开启状态810中,当(1)发生网络子系统故障,(2)建立所述TCP连接失败或(3)改变的IP地址时,所述状态机转换到“已关闭”状态815。 In the open state 810, when (1) a network subsystem failure occurs, (2) establishing the TCP connection failure, or (3) to change the IP address, the state machine transitions to the "off" state 815. 并且,在终止所述TCP连接的close()函数调用之后,所述状态机将所述套接件转换到“关闭”状态820而启动终止过程。 Then, after terminating the TCP connection close () function call, the state machine transitions to the socket member "off" state 820 to terminate the startup process. 最后,一当建立了TCP连接,所述状态机转换到“打开”状态825。 Finally, when a TCP connection is established, the state machine transitions to "open" state 825.

在所述打开状态825中,打开所述套接件进行读写。 In the open state 825, the socket member is opened for reading and writing. 特别地是,立刻启用所述写事件,而根据数据是否存储于所述通信协议栈280的存储器之中启用所述读事件。 In particular, the write event is enabled immediately, and according to whether the data stored in the memory 280 in the communication protocol stack enabling the reading event. 当(1)发生网络子系统故障;(2)建立所述TCP连接失败;(3)试图终止TCP连接,如由网络服务器发起的TCP复位、TCP中断或TCP关闭以及(4)IP地址的改变时,所述状态机转换到所述已关闭状态815。 When (1) network subsystem fault occurs; (2) establishing the TCP connection failure; (3) attempts to terminate a TCP connection, initiated by the network server such as TCP resets, interrupts, or change the TCP TCP off and (4) IP addresses when the state machine transitions to the closed state 815. 诸如通过close()函数调用的应用程序发起的TCP连接终止将状态机转换到关闭状态820。 Such as by close () function call an application initiates a TCP connection termination converting the state machine 820 into the closed state.

在所述已关闭状态815中,发生了所述读、写和关闭事件。 In the closed state 815, the occurrence of the read, write, and close the event. 在终止所述TCP连接的close()函数调用之后,所述状态机将所述套接件转换到所述空状态800,释放所述套接件并使其可重新使用。 After the termination of the TCP connection close () function call, the state machine transitions to the socket member the idle state 800, releasing the socket member, and it can be reused.

在关闭状态820中,当(1)发生网络故障;(2)试图终止TCP连接,如由网络服务器发起的TCP复位或TCP关闭;(3)计时器到期以及(4)IP地址的改变时,所述状态机转换到“等待关闭”状态830。 In the closed state 820, when (1) a network failure; changing (3) timer expires and (4) IP addresses; (2) attempts to terminate a TCP connection, initiated by the network server as a TCP or TCP reset off the state machine transitions to "Close wait" state 830. 为了防止终止TCP连接中的延迟,所述API270使用一当所述TCP连接终止开始就启动的计时器。 In order to prevent termination of the TCP connection delay, the API270 using a TCP connection is terminated when the timer started in the beginning. 如所见,所述计时器的期满将所述状态机转换到所述等待关闭状态830。 As can be seen, the expiration of the timer to convert the state machine to the waiting state 830 closed.

在所述等待关闭状态830中,close()函数调用终止所述TCP连接并将所述状态机转换到所述空状态800。 In the waiting state 830 closed, close () function call to terminate the TCP connection and the state machine transitions to the idle state 800. 在该状态830中发生了所述关闭事件。 The event occurred in this closed state 830.

表1-3说明了API270支持的指定状态消息。 Table 1-3 describes the status message specifies API270 support. 在所述空状态(表1-3中未示出)中,描述的“没有额外资源可用”的指定状态消息可以报告给应用程序260。 In the idle state (not shown in Tables 1-3), the "no additional resources available" message described in the specified state can be reported to the application program 260.

表1 Table 1

表2 Table 2

表3 table 3

图9用例子说明了API270的UDP套接件的状态图。 Figure 9 illustrates an example of a state diagram of the UDP socket member API270. 未初始化的套接件开始于“空”状态900。 Uninitialized sheathing member begins to "empty" state 900. 如上面关于所述空状态800所述阐述的那样,由于未分配,所述套接件不“存在”。 As described above with respect to the empty state of the 800 set forth above, since not allocated, the socket member does not "present." 通过socket()函数调用可以建立并初始化所述套接件,该调用返回用于套接件相关的函数的套接件描述符。 By socket () function call to be established and initializing the socket member, socket member for the call returns the associated socket descriptor member functions. 在socket()函数调用之后,所述状态机转换到“打开”状态905。 The socket () function call then the state machine transitions to "open" state 905.

在所述打开状态905中,打开所述套接件进行读写。 In the open state 905, the socket member is opened for reading and writing. 特别地是,立刻启用所述写事件,而根据数据是否存储于所述通信协议栈280的存储器之中启用所述读事件。 In particular, the write event is enabled immediately, and according to whether the data stored in the memory 280 in the communication protocol stack enabling the reading event. 当发生网络子系统故障时所述状态机转换到“已关闭”状态910。 When a fault occurs the network subsystem state machine transitions to the "closed" state 910. 诸如通过close()函数调用的应用程序发起的UDP连接终止将状态机转换到空状态900。 Such as by close () function call application initiated converts UDP connection termination state machine 900 to the idle phase.

在所述已关闭状态910中,启用所述读、写和关闭事件。 In the closed state 910, enabling the read, write, and close the event. 在终止所述UDP连接的close()函数调用之后,所述状态机将所述套接件转换到所述空状态900,释放所述套接件并使其可重新使用。 After the termination of the UDP connection close () function call, the state machine transitions to the socket member the idle state 900, releasing the socket member, and it can be reused.

表4-6说明了API270支持的指定状态消息。 Table 4-6 describes the status message specifies API270 support. 在所述空状态(表1-3中未示出)中,如上面所声明的,“没有额外资源可用”的指定状态消息可以报告给应用程序260。 In the idle state (not shown in Table 1-3), as stated above, "no additional resources available" status message may be reported to the specified application 260.

表4 Table 4

表5 table 5

表6 Table 6

图10说明了控制诸如话务信道(即Um)和链路层(即PPP206)的网络子系统的状态图。 10 illustrates a control such as a traffic channel (i.e. Um) and a link layer (i.e. PPP206) of the network subsystem state in FIG. open_netlib()函数调用开启所述网络子系统,并将套接件初始化成“已关闭”状态1000。 open_netlib () function call to the network subsystem is turned on, and the socket member is initialized to "closed" state 1000. pppopen()函数调用初始化所述网络子系统连接,将所述套接件转换到“开启”状态1005。 pppopen () function is called to initialize the network subsystem is connected to said socket member to convert "on" state 1005. 由输入PPP呼叫发出的向MS110的寻呼也将所述套接件转换到所述开启状态。 PPP call issued by the input will also be converted to a paging MS110 said socket member to the open state. 在两种情况中,一当成功协商,所述MS110试图通过话务信道同步并建立RLP和PPP。 In both cases, when a successful negotiation, the MS110 by attempting to synchronize the traffic channel and establish RLP and PPP.

在所述开启状态1005中,一当建立了网络子系统连接,所述套接件转换到“打开”状态1010。 In the on state 1005, the network subsystem when establishing a connection, said socket member switched to "open" state 1010. 另一方面,如果没有建立所述网络子系统连接,所述套接件就转换回到所述已关闭状态1000。 On the other hand, if the connection is not established to the network subsystem, the socket member is converted back into the closed state 1000.

在所述打开状态1010中,调用回调函数识别应用程序1060启用的指定事件,如读、写和关闭。 In the open state 1010, the application calls the callback function 1060 to enable identification of a specified event, such as read, write, and close. 在此时刻,所述MS110能够通过话务信道通信。 At this time, the MS110 through traffic channel communications. 然而,当发生网络子系统故障时所述套接件转换到所述已关闭状态1000,这调用了所述回调函数。 However, when a fault occurs said socket member network subsystem to convert said closed state 1000, which calls the callback function. 诸如通过close()函数调用的应用程序发起的网络子系统连接终止将所述套接件转换到“关闭”状态1015。 Such as by close () function call an application subsystem network initiated connection termination socket member to convert the "off" state 1015.

在所述关闭状态1015中,当所述网络子系统连接终止时所述套接件转换到所述已关闭状态1000。 1015 in the closed state, when the connection terminating network subsystem to the conversion of the socket member 1000 has a closed state. 在所述已关闭状态1000中,调用所述回调函数识别应用程序260启用的指定事件。 In the closed state 1000, the function call specifying the event recognition application 260 to enable the callback.

表7说明了API270支持的对应于特定函数调用的指定状态消息。 Table 7 illustrates the status message specifies API270 support corresponds to a specific function calls.

表7 Table 7

在另一实施例中,一种机器可以读取机器可读的包括诸如编码软件代码的编码信息的媒体,以使上述的处理能使移动站应用程序识别指定状态消息。 In another embodiment, a machine may read the machine-readable encoded information comprising software code encoding, such as media, so that the process enables the mobile station to identify specified status messages application. 所述机器可读媒体可以从诸如存储器或存储磁盘的存储设备或从所述通信网络接受编码信息。 The machine-readable medium such as a storage device from a disk memory or storage or receiving coded information from the communication network. 当制造所述媒体时还可以对所述机器可读媒体以编码信息进行编程。 When manufacturing the medium can have machine-readable medium for encoding said programming information. 所述机器可以包括应用程序260、通信协议栈280和API270的至少一个,而所述机器可读媒体可以包括存储器或存储磁盘。 The machine may include an application program 260, at least one communication protocol stack 280 and API270, and the machine-readable medium may include a memory or storage disk.

虽然关于某些实施例示出了本发明,但不应认为它是如此限制的。 Although it illustrated with respect to certain embodiments of the present invention, but it should not be so limited.

Claims (18)

1.一种用于移动站应用程序的接收原始分组数据的方法,其特征在于,此方法包括:由移动站应用程序建立至少一个套接件;由多个移动站协议层中至少一个接收来自通信网络的封装的原始分组数据,该原始分组数据缺少目的端口信息;由至少一个移动站协议层把未封装的原始分组数据发送到至少一个套接件;以及由该至少一个套接件把该原始分组数据发送至所述移动站应用程序。 The method of receiving an original data packet 1. A mobile station for application, characterized in that the method comprises: establishing at least one socket member by the application program of the mobile station; a plurality of mobile stations receiving at least one protocol layer from a encapsulated original packet data communication network, the original data packet destination port information is missing; the mobile station transmitted by the at least one protocol layer is not encapsulated original packet data to the at least one socket member; and a socket member to the at least one of the original packet data to the mobile station application.
2.如权利要求1所述的方法,其特征在于,进一步包括把原始分组数据发送至网际控制消息协议分析引擎。 2. The method according to claim 1, characterized in that, further comprising sending the original packet to the ICMP data analysis engine.
3.如权利要求1所述的方法,其特征在于,原始分组分组括原始IP分组。 The method according to claim 1, wherein the packet includes an original IP packet original packet.
4.如权利要求1所述的方法,其特征在于,多个移动站协议层包括移动站无线链路协议层和移动站IS-95协议层中的至少一个。 4. The method according to claim 1, wherein the mobile station protocol layer comprises a plurality of mobile station radio link protocol layer and IS-95 mobile station at least one protocol layer.
5.如权利要求1所述的方法,其特征在于,多个移动站协议层包括一移动站通信协议栈。 5. The method according to claim 1, wherein the plurality of protocol layers comprising a mobile station a mobile station communication protocol stack.
6.一种用于移动站应用程序接收原始分组数据的装置,其特征在于,此装置包括:建立至少一个套接件的移动站应用程序;以及多个移动站协议层,其中,至少一个移动站协议层适用于接收来自通信网络的封装的原始分组数据,该原始分组数据缺少目的端口信息;其中,至少一个移动站协议层适用于把未封装的原始分组数据发送到至少一个套接件;以及其中,该至少一个套接件适用于把原始分组数据发送至移动站应用程序。 A mobile station apparatus for the application of the original data packet is received, wherein, the device comprising: establishing at least one mobile station application socket member; protocol layers and a plurality of mobile stations, wherein the at least one mobile station protocol layer adapted to receive a package from the communication network of the original data packet, the data packet is missing the original destination port; wherein the at least one mobile station protocol layer suitable for transmitting the data is not encapsulated original packet to the at least one socket member; and wherein the at least one sheathing element suitable for transmitting the packet data to the mobile station the original application.
7.如权利要求6所述的装置,其特征在于,至少一个套接件适用于把原始分组数据发送至网际控制消息协议分析引擎。 7. The apparatus according to claim 6, characterized in that at least one sheathing element suitable for transmitting the original packet to the ICMP data analysis engine.
8.如权利要求6所述的装置,其特征在于,原始分组分组括原始IP分组。 8. The apparatus according to claim 6, wherein the packet includes an original IP packet original packet.
9.如权利要求6所述的装置,其特征在于,多个移动站协议层包括移动站无线链路协议层和移动站IS-95协议层中的至少一个。 9. The apparatus according to claim 6, wherein the mobile station protocol layer comprises a plurality of mobile station radio link protocol layer and IS-95 mobile station at least one protocol layer.
10.如权利要求6所述的装置,其特征在于,多个移动站协议层包括一移动站通信协议栈。 10. The apparatus according to claim 6, wherein the plurality of protocol layers comprising a mobile station a mobile station communication protocol stack.
11.一种用于移动站应用程序发送原始分组数据的方法,其特征在于,此方法包含:由移动站应用程序建立至少一个套接件;由至少一个套接件把移动站程序的原始分组数据发送到多个移动站协议层中至少一个;以及由多个移动站协议层中至少一个把封装的原始分组数据发送至通信网络。 11. A mobile station for transmitting the application data of the original packet, characterized in that the method comprises: establishing at least one socket member by a mobile station application; socket member by at least one of the original packet to the mobile station program a plurality of mobile stations transmit data to at least one protocol layer; and at least one of the plurality of mobile stations transmit protocol layer encapsulating the original data packet to the communications network.
12.如权利要求10所述的方法,其特征在于,原始分组数据包括原始IP分组。 12. The method according to claim 10, wherein the original data packet includes an original IP packet.
13.如权利要求10所述的方法,其特征在于,多个移动站协议层包括移动站无线链路协议层和移动站IS-95协议层中的至少一个。 13. The method according to claim 10, wherein the mobile station protocol layer comprises a plurality of mobile station radio link protocol layer and the IS-95 mobile station at least one protocol layer.
14.如权利要求10所述的方法,其特征在于,多个移动站协议层包括一移动站通信协议栈。 14. The method according to claim 10, wherein the plurality of protocol layers comprising a mobile station a mobile station communication protocol stack.
15.一种用于移动站应用程序发送原始分组数据的装置,其特征在于,此装置包括:建立至少一个套接件的移动站应用程序;以及多个移动站协议层,其中,至少一个套接件适用于把移动站应用程序的原始分组数据发送到至少一个移动站协议层;以及其中,至少一个移动站协议层适用于把封装的原始分组数据发送至通信网络。 15. A mobile station for application of the original packet data transmitting apparatus, wherein, the device comprising: establishing at least one mobile station application socket member; protocol layers and a plurality of mobile stations, wherein the at least one sleeve the contact member suitable for the mobile station transmits the original data packet to the application protocol layer, the at least one mobile station; and wherein the at least one mobile station protocol layer suitable for transmitting the encapsulated data packet to the original communications network.
16.如权利要求15所述的装置,其特征在于,此原始分组数据包括原始IP分组。 16. The apparatus according to claim 15, characterized in that, the original data packet includes an original IP packet.
17.如权利要求15所述的装置,其特征在于,多个移动站协议层包括移动站无线链路协议层和移动站IS-95协议层中的至少一个。 17. The apparatus according to claim 15, wherein the mobile station protocol layer comprises a plurality of mobile station radio link protocol layer and the IS-95 mobile station at least one protocol layer.
18.如权利要求15所述的装置,其特征在于,多个移动站协议层包括移动站通信协议栈。 18. The apparatus according to claim 15, wherein the mobile station protocol layer comprises a plurality of mobile station communication protocol stack.
CN 200410089848 2000-03-30 2001-03-29 Method and apparatus for a mobile station application to identify specified status messages CN1620157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US53949700A true 2000-03-30 2000-03-30

Publications (1)

Publication Number Publication Date
CN1620157A true CN1620157A (en) 2005-05-25

Family

ID=24151469

Family Applications (2)

Application Number Title Priority Date Filing Date
CN 200410089848 CN1620157A (en) 2000-03-30 2001-03-29 Method and apparatus for a mobile station application to identify specified status messages
CN 01807775 CN1449614A (en) 2000-03-30 2001-03-29 Method and apparatus for a mobile station application to identify specified status messages

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN 01807775 CN1449614A (en) 2000-03-30 2001-03-29 Method and apparatus for a mobile station application to identify specified status messages

Country Status (9)

Country Link
EP (1) EP1273150A2 (en)
JP (1) JP2004500785A (en)
KR (1) KR20040007214A (en)
CN (2) CN1620157A (en)
AU (1) AU5110601A (en)
CA (1) CA2403813A1 (en)
IL (1) IL151707D0 (en)
MX (1) MXPA02009507A (en)
WO (1) WO2001076279A2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222443B (en) 2008-01-30 2012-04-25 杭州华三通信技术有限公司 Method and network appliance for processing packet

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100901715B1 (en) 2003-03-12 2009-06-08 엘지전자 주식회사 Layer architecture for interfacing personal digital assistant and wireless communication module
KR100539903B1 (en) 2004-01-17 2005-12-28 삼성전자주식회사 Method for processing vod data in the mobile terminal
US7742444B2 (en) 2005-03-15 2010-06-22 Qualcomm Incorporated Multiple other sector information combining for power control in a wireless communication system
US8750908B2 (en) 2005-06-16 2014-06-10 Qualcomm Incorporated Quick paging channel with reduced probability of missed page
US9055552B2 (en) 2005-06-16 2015-06-09 Qualcomm Incorporated Quick paging channel with reduced probability of missed page
CA2513016A1 (en) 2005-07-22 2007-01-22 Research In Motion Limited A secure method of synchronizing cache contents of a mobile browser with a proxy server
CA2513018A1 (en) 2005-07-22 2007-01-22 Research In Motion Limited Method for training a proxy server for content delivery based on communication of state information from a mobile device browser
CA2513022A1 (en) 2005-07-22 2007-01-22 Research In Motion Limited System and method for communicating state management between a browser user-agent and a mobile data server
KR100965449B1 (en) 2005-10-27 2010-06-24 퀄컴 인코포레이티드 A method and apparatus for processing a multi-code word assignment in wireless communication systems
US20090207790A1 (en) 2005-10-27 2009-08-20 Qualcomm Incorporated Method and apparatus for settingtuneawaystatus in an open state in wireless communication system
WO2008075580A1 (en) * 2006-12-20 2008-06-26 Nec Corporation Communication terminal, terminal, communication system, communication method, and program
CN103582170B (en) * 2012-07-23 2018-08-10 百度在线网络技术(北京)有限公司 Providing a communication connection for a plurality of candidate application in a mobile device method and apparatus for

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222443B (en) 2008-01-30 2012-04-25 杭州华三通信技术有限公司 Method and network appliance for processing packet

Also Published As

Publication number Publication date
WO2001076279A2 (en) 2001-10-11
IL151707D0 (en) 2003-04-10
AU5110601A (en) 2001-10-15
CA2403813A1 (en) 2001-10-11
JP2004500785A (en) 2004-01-08
WO2001076279A3 (en) 2002-03-14
MXPA02009507A (en) 2003-05-14
EP1273150A2 (en) 2003-01-08
CN1449614A (en) 2003-10-15
KR20040007214A (en) 2004-01-24

Similar Documents

Publication Publication Date Title
JP4071862B2 (en) A method and system to join the mobile station to the data communication
US6941386B2 (en) Protocol processing stack for use with intelligent network interface device
US6757731B1 (en) Apparatus and method for interfacing multiple protocol stacks in a communication network
US5931913A (en) Methods, system and computer program products for establishing a session between a host and a terminal using a reduced protocol
CN1293734C (en) Method and apparatus for providing multiple quality of service levels in wireless packet data services connection
EP1317113B1 (en) Wireless communication system
JP4440509B2 (en) The method terminates the sleep mode in the packet data session and radio systems
JP4464138B2 (en) Updating of the mobile communication system is initiated by the packet data serving node
AU727016B2 (en) Device for data communications between wireless application protocol terminal and wireless application server, and method thereof
JP4930377B2 (en) The method of communication with the (u) sim card and a client in server mode
CN1214594C (en) Method of and network for handling wireless session protocol (WSP) sessions
FI105978B (en) A method for coupling a wireless terminal to the communication network and the wireless terminal
US6427171B1 (en) Protocol processing stack for use with intelligent network interface device
US7830804B2 (en) Quality of service application programming interface over socket
US20040131078A1 (en) Apparatus and method for supporting multiple wireless technologies within a device
KR100605837B1 (en) Multiple service method and apparatus in data only mobile telecommunication system
KR100414648B1 (en) Communication control system, communication method, server device, terminal, relay device, and communication system
US5265239A (en) Method for remotely accessing service programs of a local processing system supporting multiple protocol stacks and multiple device drivers
CN100438523C (en) Autoamtic invocation of mobile IP registration in wireless communication network
CN1742473B (en) A generic protocol layer architecture and method between different network protocols for transmitting data, and General Packet Protocol
US6167450A (en) Data communications management system and protocol replacement method for mobile communication environments
CN1618252B (en) Efficient re-registration of mobile IP nodes in wireless communication system
CN1498489B (en) Telecommunication
US20040186918A1 (en) Method and apparatus for dispatching incoming data in a multi-application terminal
EP1763964B1 (en) Devices and methods for push message initiated service

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C02 Deemed withdrawal of patent application after publication (patent law 2001)