On-screen workspace or object

Techniques for programming event-driven transactions in mobile applications

7013329

Abstract

Techniques for interacting with a client process on a mobile device connected to a network over a wireless link include receiving, at a mobile interactions server, a first message from the client process. The first message indicates a first action by a user of the mobile device. The first action is related to a first graphical element displayed on the device for requesting a service from an application. Based on the first message, it is determined whether the action is associated with an event type of a plurality of predetermined event types. If it is determined the action is not associated with the event type, then, without invoking any method of the application, first data is generated. The first data describes any change in the first graphical element. The first data is sent to the client process for changing the display of the first graphical element.


Claims

What is claimed is:

1. A method of interacting with a client process on a mobile device connected to a network over a wireless link, the method comprising the steps of:

receiving at a mobile interactions server a first message from the client process indicating a first action by a user of the mobile device, the first action related to a first graphical element displayed on the device for requesting a service form an application;

based on the first message, determining whether the action is associated with an event type of a plurality of predetermined event types; wherein each of the predetermined event types corresponds to one or more application-specific event objects used for invoking a specific method of the application;

if it is determined the action is not associated with the event type, then, without invoking any method of the application,

generating first data describing any change in the first graphical element; and

sending the first data to the client process for changing the display of the first graphical element.

2. The method of claim 1, further comprising, if it is determined the action is associated with the event type, then performing the steps of:

generating second data describing a particular event of the event type;

invoking a particular event handling method of the application to provide the service, the particular event handling method associated with the event type; and

passing the second data to the event handling method.

3. The method of claim 1, further comprising, before said step of receiving the first message, the steps of:

receiving second data from the application describing the first graphical element and indicating one or more event handling methods associated with the first graphical element; and

passing the second data to the client process for displaying the first graphical element.

4. The method of claim 3, wherein each of the one or more event handling methods is associated with one event type of the plurality of predetermined event types.

5. The method of claim 2, wherein the particular event handling method is associated with one event type of the plurality of predetermined event types.

6. The method of claim 5, wherein a name of the particular event handling method indicates the one event type with which it is associated.

7. The method of claim 2, wherein the particular event handling method is associated with the first graphical element.

8. The method of claim 1, wherein the plurality of predetermined events types does not include an event type associated with the user of the mobile device pressing a character key.

9. The method of claim 1, wherein the plurality of predetermined event types includes an exit-graphical-element event type and an enter-graphical-element event type.

10. The method of claim 9, said step of determining whether the action is associated with an event type further comprising:

determining whether the first message indicates the first action corresponds to one of moving a cursor from the first graphical element and pressing an enter key; and

if the first action does correspond to one of moving the cursor from the first graphical element and pressing the enter key, then the first action is associated with the exit-graphical-element event type.

11. The method of claim 9, said step of determining whether the action is associated with an event type further comprising:

determining whether the first message indicates the first action corresponds to moving a cursor onto the first graphical element; and

if the first action does correspond to moving the cursor onto the first graphical element, then the first action is associated with the enter-graphical-element event type.

12. The method of claim 1, wherein

the first graphical element is included in a page of one or more graphical elements associated with requesting the service from the application; and

the plurality of predetermined event types includes an exit-page event type and an enter-page event type.

13. The method of claim 12, said step of determining whether the action is associated with an event type further comprising:

determining whether the first message indicates the first action corresponds to pressing an enter key on a graphical element associated with a reference to a different page; and

if the first action does correspond to pressing the enter key on the graphical element associated with the reference to the different page, then the first action is associated with the exit-page event type and the enter-page event type.

14. The method of claim 12, said step of determining whether the action is associated with an event type further comprising:

determining whether the first message indicates the first action corresponds to pressing an enter key on a last graphical element on the page; and

if the first action does correspond to pressing the enter key on the last graphical element on the page, then the first action is associated with the exit-page event type.

15. The method of claim 1, wherein

the first graphical element is included in a page of one or more graphical elements associated with requesting the service from the application; and

the plurality of predetermined event types includes an special-key-pressed event type.

16. The method of claim 15, said step of determining whether the action is associated with an event type further comprising:

determining whether the first message indicates the first action corresponds to one of pressing a page-back key, pressing a page-forward key and pressing a menu key; and

if the first action does correspond to one of pressing a page-back key, pressing a page-forward key and pressing a menu key, then the first action is associated with the special-key-pressed event type.

17. The method of claim 1, wherein the plurality of predetermined event types includes an exit-application event type and an enter-application event type.

18. The method of claim 17, said step of determining whether the action is associated with an event type further comprising:

determining whether the first message indicates the first action corresponds to pressing an enter key on a graphical element associated with a main menu item; and

if the first action does correspond to pressing the enter key on the graphical element associated with the main menu item, then the first action is associated with the enter-application event type.

19. The method of claim 17, wherein:

the first graphical element is included in a page of one or more graphical elements associated with requesting the service from the application;

the application includes one or more pages; and

said step of determining whether the action is associated with an event type further comprising

determining whether the first message indicates the first action corresponds to pressing an enter key on a last graphical element on a page without a reference to a different page; and

if the first action does correspond to pressing the enter key on the last graphical element on the page without the reference to the different page, then the first action is associated with the exit-application event type.

20. The method of claim 2, further comprising, if the particular event handling method determines no more pages of one or more graphical elements are to be provided by the application, then receiving third data indicating a particular exception in a particular event exception handling method of the mobile interactions server for exiting the application.

21. The method of claim 2, further comprising, if the particular event handling method determines a request is to be made to a network resource having a particular URL address, then receiving third data indicating a particular exception and the URL address in a particular event exception handling method of the mobile interactions server for sending the request to the network resource.

22. The method of claim 2, further comprising, if the particular event handling method determines not to complete processing of the particular event, then receiving third data indicating a particular exception in a particular event exception handling method of the mobile interactions server for skipping all remaining event handling methods for the particular event.

23. The method of claim 2, further comprising, if the particular event handling method determines not to complete processing of the particular event, then receiving third data indicating a particular exception in a particular event exception handling method of the mobile interactions server for invoking all remaining event handling methods of the application for the particular event.

24. The method of claim 2, further comprising, if the particular event handling method determines not to complete processing of the particular event, then receiving third data indicating a particular exception in a particular event exception handling method of the mobile interactions server for invoking only the event handling methods of the mobile interactions server for the particular event.

25. The method of claim 2, wherein the particular event handling method inherits from a first event handling interface provided by the mobile interactions server, the first event handling interface defining the plurality of event types.

26. The method of claim 25, wherein the first event handling interface inherits from a JAVA event handling interface.

27. A method of interacting with a client process on a mobile device connected to a network over a wireless link, the method comprising the steps of:

sending from an application to a mobile interactions server first data describing a first graphical element for displaying on the mobile device and one or more event handling methods of the application associated with the first graphical element;

receiving at a particular event handling method of the plurality of event handling methods second data describing an event having a particular event type of a plurality of predetermined event types in response to an action by a user of the mobile device; wherein each of the predetermined event types corresponds to one or more application-specific event objects used for invoking a specific method of the application; and

providing a service for the client process in response to receiving the second data, wherein

the particular event handling method is associated with the particular event type, and

the action is determined by the mobile interactions server to be associated with the particular event type.

28. The method of claim 27, the method further comprising the steps of:

determining whether to invoke an exception handling method of the mobile interactions server; and

if it is determined to invoke the exception handling method, then sending third data describing a particular exception to the exception handling method.

29. The method of claim 28, wherein the particular exception is associated with no more pages of one or more graphical elements for the client process.

30. The method of claim 28, wherein the particular exception is associated with redirecting the mobile interactions server to a network resource having a particular URL address.

31. The method of claim 28, wherein the particular exception is associated with aborting all event handlers for the event.

32. The method of claim 28, wherein the particular exception is associated with interrupting the particular event handler for the event.

33. The method of claim 28, wherein the particular exception is associated with invoking only an event handler of the mobile interactions server for the event.

34. A computer-readable storage medium carrying instructions for interacting with a client process on a mobile device connected to a network over a wireless link, the computer readable medium comprising instructions for causing one or more processors to perform the steps of:

receiving over the network a first message from the client process indicating a first action by a user of the mobile device, the first action related to a first graphical element displayed on the device for requesting a service form an application;

based on the first message, determining whether the action is associated with an event type of a plurality of predetermined event type; wherein each of the predetermined event types corresponds to one or more application-specific event objects used for invoking a specific method of the application;

if it is determined the action is not associated with the event type, then, without invoking any method of the application,

generating first data describing any change in the first graphical element; and

passing the first data to the client process for changing the display of the first graphical element.

35. The computer-readable medium of claim 34, the instructions further causing the one or more processors to perform the step of, if it is determined the action is associated with the event type, then:

generating second data describing a particular event of the event type;

invoking a particular event handling method of the application to provide the service, the particular event handling method defined for the event type; and

passing the second data to the event handling method.

36. The computer-readable medium of claim 34, the instructions further causing the one or more processors to perform the step of, before said step of receiving the first message:

receiving second data from the application describing the first graphical element and indicating one or more event handling methods associated with the first graphical element; and

passing the second data to the client process for displaying the first graphical element.

37. The computer-readable medium of claim 36, wherein each of the one or more event handling methods is associated with one event type of the plurality of predetermined event types.

38. The computer-readable medium of claim 35, wherein the particular event handling method is associated with one event type of the plurality of predetermined event types.

39. The computer-readable medium of claim 38, wherein a name of the particular event handling method indicates the one event type with which it is associated.

40. The computer-readable medium of claim 35, wherein the particular event handling method is associated with the first graphical element.

41. The computer-readable medium of claim 34, wherein the plurality of predetermined events types does not include an event type associated with the user of the mobile device pressing a character key.

42. The computer-readable medium of claim 34, wherein the plurality of predetermined event types includes an exit-graphical-element event type and an enter-graphical-element event type.

43. The computer-readable medium of claim 42, said step of determining whether the action is associated with an event type further comprising:

determining whether the first message indicates the first action corresponds to one of moving a cursor from the first graphical element and pressing an enter key; and

if the first action does correspond to one of moving the cursor from the first graphical element and pressing the enter key, then the first action is associated with the exit-graphical-element event type.

44. The computer-readable medium of claim 42, said step of determining whether the action is associated with an event type further comprising:

determining whether the first message indicates the first action corresponds to moving a cursor onto the first graphical element; and

if the first action does correspond to moving the cursor onto the first graphical element, then the first action is associated with the enter-graphical-element event type.

45. The computer-readable medium of claim 34, wherein

the first graphical element is included in a page of one or more graphical elements associated with requesting the service from the application; and

the plurality of predetermined event types includes an exit-page event type and an enter-page event type.

46. The computer-readable medium of claim 45, said step of determining whether the action is associated with an event type further comprising:

determining whether the first message indicates the first action corresponds to pressing an enter key on a graphical element associated with a reference to a different page; and

if the first action does correspond to pressing the enter key on the graphical element associated with the reference to the different page, then the first action is associated with the exit-page event type and the enter-page event type.

47. The computer-readable medium of claim 45, said step of determining whether the action is associated with an event type further comprising:

determining whether the first message indicates the first action corresponds to pressing an enter key on a last graphical element on the page; and

if the first action does correspond to pressing the enter key on the last graphical element on the page, then the first action is associated with the exit-page event type.

48. The computer-readable medium of claim 34, wherein

the first graphical element is included in a page of one or more graphical elements associated with requesting the service from the application; and

the plurality of predetermined event types includes an special-key-pressed event type.

49. The computer-readable medium of claim 48, said step of determining whether the action is associated with an event type further comprising:

determining whether the first message indicates the first action corresponds to one of pressing a page-back key, pressing a page-forward key and pressing a menu key; and

if the first action does correspond to one of pressing a page-back key, pressing a page- forward key and pressing a menu key, then the first action is associated with the special-key-pressed event type.

50. The computer-readable medium of claim 34, wherein the plurality of predetermined event types includes an exit-application event type and an enter-application event type.

51. The computer-readable medium of claim 50, said step of determining whether the action is associated with an event type further comprising:

determining whether the first message indicates the first action corresponds to pressing an enter key on a graphical element associated with a main menu item; and

if the first action does correspond to pressing the enter key on the graphical element associated with the main menu item, then the first action is associated with the enter-application event type.

52. The computer-readable medium of claim 50, wherein:

the first graphical element is included in a page of one or more graphical elements associated with requesting the service from the application;

the application includes one or more pages; and

said step of determining whether the action is associated with an event type further comprises

determining whether the first message indicates the first action corresponds to pressing an enter key on a last graphical element on a page without a reference to a different page; and

if the first action does correspond to pressing the enter key on the last graphical element on the page without the reference to the different page, then the first action is associated with the exit-application event type.

53. The computer-readable medium of claim 35, the instructions further causing the one or more processors to perform the step of, if the particular event handling method determines no more pages of one or more graphical elements are to be provided by the application, then receiving third data indicating a particular exception in a particular event exception handling method of the mobile interactions server for exiting the application.

54. The computer-readable medium of claim 35, the instructions further causing the one or more processors to perform the step of, if the particular event handling method determines a request is to be made to a network resource having a particular URL address, then receiving third data indicating a particular exception and the URL address in a particular event exception handling method of the mobile interactions server for sending the request to the network resource.

55. The computer-readable medium of claim 35, the instructions further causing the one or more processors to perform the step of, if the particular event handling method determines not to complete processing of the particular event, then receiving third data indicating a particular exception in a particular event exception handling method of the mobile interactions server for skipping all remaining event handling methods for the particular event.

56. The computer-readable medium of claim 35, the instructions further causing the one or more processors to perform the step of, if the particular event handling method determines not to complete processing of the particular event, then receiving third data indicating a particular exception in a particular event exception handling method of the mobile interactions server for invoking all remaining event handling methods of the application for the particular event.

57. The computer-readable medium of claim 35, the instructions further causing the one or more processors to perform the step of, if the particular event handling method determines not to complete processing of the particular event, then receiving third data indicating a particular exception in a particular event exception handling method of the mobile interactions server for invoking only the event handling methods of the mobile interactions server for the particular event.

58. The computer-readable medium of claim 35, wherein the particular event handling method inherits from a first event handling interface provided by the mobile interactions server, the first event handling interface defining the plurality of event types.

59. The computer-readable medium of claim 58, wherein the first event handling interface inherits from a JAVA event handling interface.

60. A computer-readable storage medium carrying instructions for interacting with a client process on a mobile device connected to a network over a wireless link, the computer-readable medium comprising instructions for causing one or more processors to perform the steps of:

sending to a mobile interactions server first data describing a first graphical element for display on the mobile device an one or more event handling methods of the application associated with the first graphical element;

receiving at a particular event handling method of the plurality of event handling methods second data describing an event having a particular event type of a plurality of predetermined event types in response to an action by a user of the mobile device; wherein each of the predetermined event types corresponds to one or more application-specific event objects used for invoking a specific method of the application; and

providing a service for the client process in response to receiving the second data, wherein

the particular event handling method is associated with the particular event type, and

the action is determined by the mobile interactions server to be associated with the particular event type.

61. The computer-readable medium of claim 60, the instructions further causing the one or more processors to perform the steps of:

determining whether to invoke an exception handling method of the mobile interactions server; and

if it is determined to invoke the exception handling method, then sending third data describing a particular exception to the exception handling method.

62. The computer-readable medium of claim 61, wherein the particular exception is associated with no more pages of one or more graphical elements for the client process.

63. The computer-readable medium of claim 61, wherein the particular exception is associated with redirecting the mobile interactions server to a network resource having a particular URL address.

64. The computer-readable medium of claim 61, wherein the particular exception is associated with aborting all event handlers for the event.

65. The computer-readable medium of claim 61, wherein the particular exception is associated with interrupting the particular event handler for the event.

66. The computer-readable medium of claim 61, wherein the particular exception is associated with invoking only an event handler of the mobile interactions server for the event.


Description

CROSS REFERENCE TO RELATED APPLICATIONS

This application is related to U.S. patent application Ser. No. 09/872,066, filed May 31, 2001 entitled "Maintaining State Information in Mobile Applications," by Jyotirmoy Paul, Jeff Barton, Anit Chakraborty and Siva Dirisala.

This application is related to U.S. patent application Ser. No. 09/872,986, filed May 31, 2001 entitled "Techniques for Navigating in Mobile Applications," by Jyotirmoy Paul, Jeff Barton, Anit Chakraborty and Siva Dirisala.

This application is related to U.S. patent application Ser. No. 09/872,566, filed May 31, 2001 entitled "Techniques for Supporting Multiple Devices in Mobile Applications," by Jyotirmoy Paul, Jeff Barton, Anit Chakraborty and Siva Dirisala.

FIELD OF INVENTION

The present invention generally relates to network-based services for mobile, wireless devices. The invention relates more specifically to performing complex transactions for a network-based service using an event-driven interface.

BACKGROUND OF THE INVENTION

Society is becoming increasingly reliant on network-based services. Network-based services are any services provided to devices over a network. Common network-based services include, for example, services provided over the World Wide Web, database services, etc.

Services provided over the World Wide Web are typically presented in the form of one or more web pages. A web page is data expressed in a HyperText Markup Language (HTML) and transferred over a network using the hypertext transfer protocol (HTTP) of the Internet protocol (IP). The network can be a local network, a wide area network, or the Internet itself, a public network of computer networks.

Database services may be provided by a database application, which in turn may access a database through services provided by a database server. A database application is a software application that communicates with a database server process on the network to store data into and retrieve data from a database.

According to the Internet protocol (IP), a program on one device connected to the network interacts with another program located on another device with asynchronous stateless messages. The two programs run independently and interact only through these messages. The messages are asynchronous in that each can take an arbitrary amount of time to travel from source device to destination device. Consequently, two successive messages may arrive out of order. The messages are stateless in that each message is sent, transmitted and received independently, without inheriting or relying on characteristics from any previous messages sent.

The program that initiates the communication is a client process, and the program that waits for and responds to a request from the client process is the server process. The term "client" is often used to refer to either the client process, or the machine on which the client process runs, or both. The term "server" is similarly used to refer to either the server process, or the machine on which the server process is executing, or both.

A widely used client process supported by many servers on the Internet is a browser. A browser communicates with servers to retrieve and decode data expressed in HTML. HTML marks portions of the data with tags related to the manner in which the portions are to be displayed.

Adding programs, referred to as plug-ins, to a browser can extend a browser's functionality. A browser that has added functionality due to one or more plug-ins is referred to herein as an extended browser. Extended browsers may, for example, use input forms into which the user can enter data that is validated in some regard before being sent back to the server. Standard HTML does not provide for this client side validation process.

Portable devices capable of wireless communications are finding ever more uses and popularity. Some of these mobile devices are able to connect to a network. It is desirable to make network-based services available for access by such network capable mobile devices.

When making network-based services available for mobile devices, one cannot count on the ability to use software designed for a general-purpose computer. The smallest laptops are too cumbersome for some uses, such as for wireless telephony and for warehouse inventory control. Handheld devices used by agents of an enterprise in the field for these uses have limited hardware and software due to constraints imposed by limited size and low power availability.

For example, screen size, memory and plug-in functionality on the handheld device may be significantly less than what is available through a browser on a laptop, so that a Web page easily viewed on a low-end laptop is essentially unintelligible on the mobile device. A network-based service cannot rely on a particular mobile device having a screen of a needed size or having the power to execute a full browser or to accept plug-ins, such as those that allow the browser to use forms.

Some of these small footprint handheld devices may not run a World Wide Web browser at all. For example, mobile telephones use a wireless application protocol (WAP), which does not respond to the full set of HTML tags. These devices use data presented in a wireless markup language (WML), a specific implementation of the extensible markup language (XML) using a WML-specific document type definition (DTD). Other handheld devices used in industry, such as bar code readers, communicate with a network using a teletype protocol (Telnet), which accepts or sends one character at a time, with little or no display options such as font size, font type, italics, and color, and without the capability for displaying images.

Even the keys vary from one mobile device to another. Some devices may have a full keyboard like that on a PC, others may have just a few keys. For example, a mobile telephone typically has a twelve-key keypad and one or more function keys for performing certain functions such as answering the telephone or dialing a call. It is extremely burdensome for an application to monitor and respond to user actions involving each key of each keypad arrangement.

Complex interactions, such as those involving shopping online or employing an expert system to diagnose symptoms of a problem, require many messages to be sent back and forth between a client process and one or more server processes. In some cases, a first process must pass along "state information" with a first message to a second process, so that the second process will pass the state information back in a subsequent message to the first process. The state information received by the first process in the subsequent message lets the first process know that the subsequent message is related to the same transaction as the first message.

Because there is a wide variety of mobile devices, with a wide range of screen sizes, colors, memory sizes, page buffers, processor types and client protocols, among other properties, it is generally cost prohibitive to try to duplicate all the functionality of a network-based service for each possible mobile device.

Based on the foregoing, there is a clear need for techniques that allow network-based services to be made readily available to a wide range of mobile devices or to support complex transactions, or both, without having to explicitly program each network-based service to support all forms of mobile devices. There is also a need for a way to insulate an application providing the network service from the details of handling every keystroke by the user or a mobile device.

SUMMARY OF THE INVENTION

Techniques are provided for interacting with a client process on a mobile device connected to a network over a wireless link. According to one aspect of the invention, the techniques include receiving at a mobile interactions server a first message from the client process. The first message indicates a first action by a user of the mobile device. The first action is related to a first graphical element displayed on the device for requesting a service from an application. Based on the first message, it is determined whether the action is associated with an event type of a plurality of predetermined event types. If it is determined the action is not associated with the event type, then, without invoking any method of the application, first data is generated. The first data describes any change in the first graphical element. The first data is sent to the client process for changing the display of the first graphical element.

According to one embodiment of this aspect, if it is determined that the action is associated with the event type, then second data is generated. The second data describes a particular event of the event type. A particular event handling method of the application is invoked to provide the service. The particular event handling method is associated with the event type. The second data is passed to the event handling method.

According to another embodiment, the plurality of predetermined events types does not include an event type associated with the user of the mobile device pressing a character key.

According to another aspect of the invention, the techniques include sending from an application to a mobile interactions server first data. The first data describes a first graphical element for display on the mobile device. The first data also describes one or more event handling methods of the application associated with the first graphical element. Second data is received at a particular event handling method of the plurality of event handling methods. The second data describes an event having a particular event type of a plurality of predetermined event types. The second data is received in response to an action by a user of the mobile device. A service is provided for the client process in response to receiving the second data. The particular event handling method is associated with the particular event type. The mobile interactions server determines whether the action is associated with the particular event type.

An advantage of these event handling techniques is that the application developer can employ the observer-observable paradigm for software development. In the observer-observable paradigm a program element deals only with observable objects and ignores other objects. The observer registers the objects that are to be observable and the system notifies the observer when an observable object is generated, changes, or terminates. As applied to mobile applications developers, the mobile application is built to observe events of certain predefined event types. Other events, such as those associated with the user pressing each character key while entering data into a text field, or the user moving a cursor up and down on a list, are not registered observables for the application; and the developer does not develop instructions to handle events associated with those actions. As implemented in several embodiments, the built-in methods of the mobile interactions server handle the intra-field actions, and most of the intra-page actions, by the user.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements and in which:

FIG. 1A is a block diagram that illustrates one embodiment of a mobile applications server connected to a network with which a mobile device communicates over a wireless link.

FIG. 1B is a block diagram that illustrates a graphical object used by an embodiment of the mobile applications server 110 to interact with a mobile device.

FIG. 1C is a block diagram that illustrates an embodiment of an application comprised of a hierarchy of graphical objects and methods.

FIG. 1D is a block diagram that illustrates one embodiment of a mobile interactions server used in the mobile applications server of FIG. 1A.

FIG. 2A is a flowchart that illustrates one embodiment of a method for a mobile interactions server to respond to a client making an initial request for services.

FIG. 2B is a block diagram of a main menu on a screen of a mobile device produced in response to requesting applications from a mobile applications server.

FIG. 2C is a flowchart that illustrates one embodiment of a method for a mobile interactions server to respond to a subsequent action by a user of the client process.

FIG. 2D is a block diagram of an event object used by the mobile interactions server.

FIG. 3 is a block diagram that illustrates an embodiment of a data structure for storing session state information by the mobile applications server 110.

FIG. 4A is a flowchart that illustrates a method for handling a special key event.

FIG. 4B is a flow chart that illustrates exception handling methods of the mobile interactions server.

FIG. 5A is a diagram that illustrates an embodiment of a page on a display of a mobile device.

FIG. 5B is a diagram that illustrates an embodiment of a next page on a display of a mobile device.

FIG. 6A is a flowchart that illustrates one embodiment of a method for a device-sensitive presentation manager to prepare page output for a particular mobile device.

FIG. 6B is a flowchart that illustrates one embodiment of a method for an XML to protocol converter to manage page output for a particular mobile device.

FIG. 7 is a flowchart that illustrates one embodiment of a method for an application developer to utilize a mobile interactions server.

FIG. 8 is a block diagram that illustrates a computer system upon which an embodiment may be implemented.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to avoid unnecessarily obscuring the present invention.

Operational Context

To illustrate network applications interacting with mobile devices employing a wireless link, consider FIG. 1A. FIG. 1A is a block diagram that illustrates one embodiment of a mobile applications server 110 connected to a network 108 with which a mobile device 101 communicates over a wireless link 106.

The mobile device 101 includes a screen display 102, one or more keys 104 and a client process 103 running on a microprocessor (not shown) in the mobile device 101. Some mobile devices may include a sensor 105, such as a microphone or barcode reader. The mobile device 101 communicates with a base station 107 using a wireless link 106 that may be proprietary. Examples of wireless links include a local radio frequency link such as IEEE 802.11, a wide area radio frequency link, a satellite link, and a personal communication services (PCS) data link through a WAP Gateway.

The base station 107 is connected to the network 108. The base station 107 passes network message traffic between the client 103 and the servers on the network 108. The network 108 may be any network using an asynchronous stateless protocol like TCP/IP, including a local network, a private wide area network, or the Internet.

The mobile applications server 110 includes one or more processes executing on a machine connected to the network 108. According to one embodiment, the mobile applications server 110 provides functionality for the mobile device 101 beyond the functionality built into the processor and client 103 on board the mobile device itself.

In one embodiment, the mobile applications server 110 provides one or more applications 116 that may be used by a mobile device over the network 108. For example, assume that mobile device 101 is a device having a barcode reader as the sensor 105. Such a device may be used in conjunction with an inventory application to update an inventory database. The update may be performed by scanning the barcode on an item and pressing a key to indicate whether the item is being added to the inventory, or is being removed from the inventory due to damage, due to sale, or due to transport to another warehouse.

For another example, a database application for mobile device 101 having a microphone, such as a mobile phone, could identify the user of the mobile device based on a comparison of the user's voice with a voice print for the user. The voice print may be maintained in a database by a database server on the same platform as the mobile applications server 110 or some other server platform on the network 108.

The mobile applications server 110 may also provide non-database applications. For example, if the sensor 105 is a global positioning system (GPS), then the mobile application could compute the area walked off by a user carrying the mobile device 101 based on positions output from the sensor 105 and transmitted to the mobile applications server 110.

According to several embodiments, applications 116 on mobile applications server 110 interact with mobile device 101 through a mobile interactions server 150 in the applications layer. The network device on which mobile applications server 110 executes also includes processes that execute in a network layer, a transport layer, and a security layer that are not significantly modified by the invention and are not described further.

Overview of Functional Components

Referring to FIG. 1A, mobile applications server 110 is one or more processes executing on a computing device connected to the network 108 that provides services for a mobile device 101 in response to one or more requests for services from the client process 103 executing on the mobile device 101.

Mobile applications server 110 includes one or more applications 116. In general, an application is a set of instructions that can be called to cause one or more processors to perform a series of related tasks for providing a requested service. An application often requires input data and produces output data. An application often comprises one or more methods that can be invoked separately each with their own input and output.

Many ways of producing applications are known in the art. For example, in one embodiment, the application is a package of JAVA classes containing public methods that can be invoked separately by the name of the method and the name of the class. Input for each public method is provided as one or more data structures called parameters and output is provided as a returned data structure. The names of the public methods, and the names and definitions of the input and returned data structures are published as an application programming interface (API). In another embodiment, the application is a library of methods created in another language that also has a published API. In still other embodiments, the application is a compiled program executed by a command line in the operating system language for the platform on which the applications reside. The compiled program operates on input in data files or on an input stream and produces output in data files or on an output stream, all defined in the operating system language. In yet other embodiments, the application is a script in the operating system language that executes several compiled programs in sequence.

Each application of the mobile applications 116 on the mobile applications server 110 provides functionality for mobile devices. As described in the background section, different mobile devices may have different characteristics. For example, different devices may communicate on the network through their base stations with different protocols (e.g., WAP, HTTP, Telnet), may have different keys and sensors, and may have different screen sizes, different memory capacities and different processing power. Such differences in characteristics complicate obtaining input for the application and presenting output from the application. These applications 116 are special in that they communicate with the mobile device 101 through a mobile interactions server 150, described next, in a manner that does not require developers of the application 116 to address specific characteristics of the individual mobile device 101.

The mobile applications server 110 includes the mobile interactions server 150 that provides data or methods or both for obtaining input data from the mobile device, for presenting output data at the mobile device, and for managing the data communicated with the mobile device. The mobile interactions server 150 receives requests from the client process 103 through the mobile device base station 107 and returns responses to the client process 103 through the base station 107. The mobile interactions server also passes data to the applications 116 involved, causes methods of the applications 116 involved to be executed, and receives any output from the applications 116 for the mobile device 101. The mobile interactions server thus operates to intercede between the application 116 and the mobile device 101 to insulate the application 116 from dealing with specific characteristics of individual mobile devices.

In the embodiment of FIG. 1A, the mobile interactions server 150 generates additional components at runtime in response to an initial request from the client process 103. These additional components include a listener 152, a state machine 154 and a state information database 155. The listener 152 is a process launched by the mobile interactions server 150. The listener monitors a port associated with input having a particular protocol (e.g., HTTP, WAP, or Telnet) on the mobile applications server. The listener acts in response to requests received from a client process on the port and causes data to be sent back to the client process over the network.

In the embodiment depicted, the listener produces descriptions in the extensible Markup Language (XML) of graphical elements for display on the screen 102 of mobile device 101 which are sent to a conventional XML converter 112 described below. When monitoring some ports, however, the listener 152 does not send an XML document. Instead, the listener 152 produces a response for the mobile device in the protocol used by the base station 107. For example, when listening on a Telnet port, the listener produces a response using the Telnet protocol. In this case, the response is sent to the base station via the network 108 and bypasses the conventional XML converter 112. If the response produced by the listener 152 for the client process uses the methods of an application 116 or information from previous requests and responses, then the listener causes a method of a state machine 154 to be executed and the listener bases the response for the client process on the data returned from the state machine 154.

The state machined 154 is a process that is launched by the listener. In some embodiments, the state machine 154 is a library of methods invoked as controlled by the listener 152. In other embodiments, the state machine 154 is a background process that executes in parallel waiting for a particular message upon which to act. The state machine 154 receives data from the listener 152 based on requests from the client process and returns responses to the listener 152 for the client process. The state machine 154 also determines which methods of which applications 116 are involved and causes the involved methods to be executed.

The state machine 154 also manages information about multiple requests and responses involving the client process for each client process communicating over the port. The state information database 155 is persistent storage for the information managed by the methods of the state machine 154 for the client process during the client communication session with the mobile interactions server. Thus, the state machine 154 and state information database 155 enable applications to perform complex transactions in which a response passed to the client in response to a request contains or depends on information carried in a previous request or response. In some embodiments the state information database survives for a limited time after communication with the client terminates—in case the break in communications is an unintentional interruption. If the client reestablishes communication within the limited time, then the state machine method invoked by the listener to commence a session with the client identifies the existing state information database for the client and employs the existing database instead of creating a new one.

The mobile applications server also includes a conventional XML converter process 112, which translates descriptions in the eXtensible Markup Language (XML) of graphical elements for display on the screen 102 of mobile device 101 to descriptions used by the base station 107 for several protocols. Conventional XML converters use an eXtensible Stylesheet Language (XSL) to translate from XML to any of several markup languages used by a variety of base stations. However, there is not a standard markup language for Telnet devices, and conventional XML converters do not translate XML descriptions into a markup language for Telnet. In an alternative embodiment, shown in FIG. 1D, the listener 152 produces Telnet protocol responses that are sent to the network 108, bypassing the conventional XML converter 112.

FIG. 1D is a block diagram showing an embodiment 150b of mobile interactions server 150. This embodiment includes an embodiment 152b of listener 152 in which the listener 152 includes a device-sensitive presentation manager 140 and an XML to protocol converter 114. The device-sensitive presentation manager is a process that modifies the format of data received from the state machine for display on the screen 102 of the mobile device 101 based on information particular to the mobile device before sending the information to the client process.

For example, the data from the state machine indicates a menu of 10 items, but the screen 102 of the particular mobile device 101 has only five lines. The device-sensitive presentation manager 140 receives data indicating the menu with the ten items, determines that the mobile device has a display screen that only shows five lines, and reformats the data to send one of three subsets of the data, each subset indicating five lines of graphical display or less. For example, the first subset of data indicates four menu items for the first four lines and a button labeled "next items" for the fifth line. The second subset of data indicates three menu items for the middle three lines, a button labeled "prev items" for the first line and a button labeled "next items" for the fifth line. The third subset of data indicates a button labeled "prev items" on the first line followed by the last three menu items on the next three lines.

In the illustrated embodiment, the information particular to a mobile device comes from a device profile database 145 holding information about the characteristics of mobile devices. In other embodiments, the information comes from prompting the mobile device for its characteristics and obtaining an answer in a process called negotiating. In some embodiments the process is performed by invoking a method in a library of methods, in another embodiment the process executes in the background waiting for input from the listener.

In the illustrated embodiment, the output from the device sensitive presentation manager 140 is in XML, which is used as a common markup language relatively easily converted to device-specific protocols. In another embodiment, a different markup language is used as the common markup language.

Listener 152b also includes an internal XML to protocol converter 114. The internal converter 114 is a process that receives data in XML and converts it to a protocol used by the base station 107 of the mobile device 101. Some protocols use data in mark up languages produced by an external conventional XML converter 112. For these protocols, the internal XML to protocol converter 114 sends the XML data to the external conventional XML converter 112 with little or no change, as shown in FIG. 1A by arrow 113a. The external XML converter 112 uses XSL to produce different markup languages tailored to types of mobile device and sends data in these markup languages over the network as shown in FIG. 1A by arrow 113b. The external XML converter 112 produces various versions of HTML for HTTP clients like web browsers, a Handheld Device Markup Language (HDML) for some devices, a markup language for voice capable gateways (VoxML), and various versions of WML, such as for ERICSSON™ and NOKIA™ 7110 devices. An Example of a conventional XML converter suitable for the external converter 112 is PORTAL-TO-GO™ of the ORACLE™ Corporation.

For other protocols for which there is not a standard markup language, the internal XML to protocol converter 114 performs parsing of the XML data and converts the data to messages that follow the protocol. For example, for the Telnet protocol, the internal XML to protocol converter 114 determines which XML elements are displayed on the next line and sends the contents of those elements, character by character, to the base station 107, as dictated by the Telnet protocol. These Telnet responses are not sent to the external conventional XML converter 112 but are sent directly to the network as indicated by arrow 113c in FIG. 1D for the base station, bypassing the external conventional XML converter 112. This internal XML to protocol converter 114 is especially useful with industrial devices, for example, with industrial bar code readers used on the floor of a warehouse or factory, which communicate with an inventory database application over a local area network using the Telnet protocol.

Graphical Elements

According to the present invention, the applications 116 communicate indirectly with the mobile devices through the mobile interactions server 150 using data that describes one or more graphical elements that may be displayed on the screens of the mobile devices and may be associated with actions by a user of the mobile device, such as moving a cursor and pressing a key. Several types of known graphical elements are associated with known actions by a user who manipulates a cursor on the screen of the mobile device and coordinates the use of one or more keys on the mobile device. Among the known graphical elements are a text field, a button, a check list, a set of radio buttons, and a pull down menu (also called a popup menu). According to the disclosed techniques, the application employs these graphical elements and others to prompt for and obtain a series of inputs from a user of the mobile device in order to conduct a complex transaction. The techniques allow an application designer to include graphical elements without the application designer providing the details of how the graphical elements are communicated to the mobile device or how much information is stored on the mobile device.

For example, an application can be built to allow a mobile telephone user to search for a name in a telephone directory maintained in a telephone directory database by a third party and to download the name and number to the mobile telephone's speed dial list maintained in persistent memory on the mobile telephone. The application constructs a first set of graphical elements for the mobile telephone to prompt the user of the telephone to input each character of the name being searched for. This set of graphical elements used together is called a page. The application uses the name input by the user to construct a query to send to the third party database to obtain a list of names and numbers that match the name being searched for. The application then constructs another page of one or more graphical elements to present the one or more resulting names and prompt for the user to select one or more. In response to further user action, the application then constructs another page of graphical elements to prompt the user to indicate whether the selected names should be added to the speed dial directory or dialed or ignored. Based on the response the application issues a command that causes the telephone to add the numbers to the telephone's speed dial directory or to dial a selected one number or to simply end the application. According to the techniques described below, this application can employ all the graphical elements needed without dealing with the details of the protocol to communicate with the device, or how the graphical element is rendered on the screen of the mobile device, or maintaining all the user inputs in persistent storage.

The Structures for Graphical Elements

The fundamental building block for a graphical user interface for interacting with a user of the mobile device is the graphical element. A page is constructed of one or more graphical elements that are intended to be used together by a user of the mobile device. An application is built of one or more pages. When a user first requests services from the mobile applications server, the user is presented with a main menu including a menu item for each selectable application on the mobile applications server. When the user selects one of the menu items, the user is presented with the first page of the corresponding application.

The graphical element and the page and the menu item are implemented as objects in an object-oriented language like JAVA™. In object-oriented implementations, an object is a data structure that is a particular instance of a data structure type defined in a class. The objects are said to be instantiated from the class. The class defines the attributes and methods for all the objects in the class. While all objects instantiated from the same class have the same attributes, the values that those objects store for those attributes may vary from object to object. Furthermore, an attribute may be defined to refer to an object of a second class, so that the value this attribute takes is an object of the second class. Classes can inherit some or all of their attributes and methods from other classes which themselves may inherit attributes and methods from other classes. In JAVA, the classes form a hierarchy and a class can only inherit from classes above them in the hierarchy to avoid cyclic inheritance. In JAVA several classes are stored together in a package. Each class in the package has a unique name and the names together constitute a namespace.

According to the object oriented implementation, a menu item object corresponding to the application includes one or more page objects as attribute values, and each page object includes one or more field objects as attribute values. A field object corresponds to a graphical element.

Mobile Applications Bean Objects

A bean is a class of objects with at least a minimum set of attributes and methods, including a bean name and a method for listing the attributes (i.e., properties) and attribute values of each object. This method gives the bean class the behavior of introspection. In one embodiment the bean class methods includes a method for setting a value for an attribute of the object, and a method for getting the value of the attribute. These methods give the bean class the behavior of persistence, and, by providing a standard format for storing and retrieving information, give the bean class the behavior of serialization. In this embodiment, the methods provide the functionality to store and retrieve the attributes and attribute values of instances of the bean class or of instances of classes that inherit from the bean class.

In another embodiment, the bean class includes a vector of event handling methods. An event is an object generated by a listener in response to a message from a client process. Different listeners produce different event types. The event received from the listener is the input parameter for the event handler corresponding to the event type. The vector of event handlers in the bean class handle events in response to a user of the mobile device activating a control of the mobile device 101, such as by pressing a key 104 of the mobile device, using a pointing device on the mobile device, or turning on the sensor 105. In some embodiments, event handling methods are implementations of interfaces for handling event objects. An interface is data that defines the name for a method and the names of the parameters used as input to the method, and the class of the objects used as values for the parameters, and the class of the object returned, if any. The class is often identified by the name of the class; the name of the class of which an object is an instance is also called the type of the object. An implementation of an interface provides the instructions to use the parameters to produce the returned value.

A JavaBeans class is a commercially available, published bean class including methods for providing introspection, persistence and event handling.

According to the present disclosed techniques, mobile applications beans are provided to an application developer and used in the application. A mobile applications bean is a class that inherits the attributes, attribute values and methods of a bean class and extends them for describing a graphical element, a page or an application menu item. The mobile applications bean extends the bean class by providing an additional one or more attributes or by replacing one or more methods or by adding one or more methods or interfaces, or by some combination of these changes. A menu item bean is a mobile applications bean extended to provide the attributes and methods used when an application is invoked or launched and when the application terminates. A page bean is a mobile applications bean extended to provide the attributes and methods used when a page is entered and exited. A field type bean class is a mobile applications bean class extended for each graphical element. A different field type bean class is defined for each of the known graphical elements used to interact with a user of a mobile device. For example, a field type bean class is defined for a text field, a button, a radio button, a checklist, a list, and a list of selectable values, as described in more detail below.

FIG. 1B shows some of the main attributes and methods included in a mobile applications bean 180. A mobile applications bean 180 includes a bean name 181 and a bean value 182 as required by all beans. The mobile applications bean also includes zero or more attributes and attribute values 184 particular to the type of mobile applications bean. In this context the type of a mobile applications bean is used to indicate one of the menu item bean, the page bean, and the field type beans, such as the text bean, the button bean and other beans mentioned above or described in more detail below.

The mobile applications bean 180 includes a method 187 for generating an XML document that describes the graphical element to be displayed on a screen of the mobile device to represent an object of the mobile applications bean. An XML document that describes a graphical element for display on a variety of mobile devices is described in more detail in the related application incorporated by reference in its entirety above.

The mobile applications bean 180 includes a method 188 for handling an event generated by a listener when a graphical element corresponding to the bean is involved in an action by the user of the mobile device. For some mobile applications beans this method 188 is just an abstract method naming the method and the parameters and the parameter types and including a return statement to end the method, but not performing any significant functions. The event handling method is to be written by the application programmer when the application is built in order to have the event handling method perform the desired tasks of the application as described with an example below. The mobile applications beans include default event handlers for all events generated by the mobile interactions server. In addition, a set of event handlers, corresponding to a limited set of predefined events, is defined in a mobile applications interface so that the application developer can provide the instructions to execute upon occurrence of one of the predefined events. The predefined events are high-level, generic events that insulate the application from the device-specific details of user actions on the mobile device, such as keys stroked and pointing device characteristics manipulated.

For example, a predefined field-entered event is generated when a cursor on the screen 102 of the mobile device 101 enters a graphical element associated with a field type bean. A pre-defined special-key-pressed event is generated when a special key of the keys 104 is pressed to move to a different page without completing and submitting the current page. A pre-defined page-exited event is generated when a user indicates the user is finished with the page, such as when an enter key is pressed with the cursor placed on a button labeled "submit." If the application does not include instructions for the event handling methods for these events, the mobile interactions server employs one of the built-in event handlers for these events. More details on the event handling methods and interfaces are described in a later section.

The Field Bean

The field beans describe the attributes and behavior of the graphical elements displayed on the screen 102 of the mobile device 101 and used to display information to the user or collect data from the user or both.

According to one embodiment, a set of nine field types are defined by corresponding field type bean subclasses of a field bean subclass of the mobile applications bean. The set of nine field bean types are provided to the application developer to instantiate and add event handlers to provide the behavior for the application being developed. The nine field type beans include a text field bean, a list of values (LOV) field bean, a list field bean, a multi-list field bean, a checkbox field bean, a radio field bean, a button field bean, a heading field bean, and a separator field bean. The values assigned to properties of the field beans are used to customize the instantiated field type for particular applications. For example, the "hidden" property of a text bean may be set to "true" to suppress display of the value. Similarly, the "editable" property of a text bean may be set to "true" to allow the user to type characters that replace the characters currently in the value of the bean. Default values provided for some attributes are assigned if the application does not explicitly assign other values. In the preferred embodiment, a method 187 for generating an XML document for each field type bean is built-in and need not be written or replaced by the application developer.

FIG. 5A shows how text field beans are rendered on a Telnet device having a fourteen line display. This display is based on the XML document produced by method 187 for this subclass and subsequently processed by the XML to protocol converter 114. A device using the Telnet protocol adds one character at a time to the current line of a display device, except that a special "line-feed" character displays a new line with no characters. Some Telnet devices display only the current line, others display several lines. On Telnet display 501, text field bean 514 is displayed as a string of characters including a text field prompt 515 and a text field value 516. A prompt is an attribute (i.e., property) of this text field subclass, which has a value of "ACCT" for the object displayed. The "ACCT" prompt value indicates the text field 514 contains a value for an account number.

The editable attribute of this text field element is indicated by the XML document produced by method 187 for this bean. The editable field is rendered as a reversed background highlight 517 according to the XML to protocol converter 114 based on information in the device profile database 145 about the display used by this device. For example, it is determined from the device profile database that the display on the particular mobile device in which the client process is executing supports reverse background text. Then the editable text is highlighted on this Telnet display by reversing black and white for the characters and background. The user of the mobile device may replace the characters in the value of this field bean with other characters indicating a different account number. As the user strokes each character key, the built-in event handling method 188 for the text field bean automatically uses the XML generating method 187 to produce an XML document that describes the new character in the field and the cursor moved to the next position. The application developer does not have to replace either method 187 or 188 and therefore does not need to know the details of communicating with the mobile device.

Sample attributes of the nine field bean classes are provided in Tables 1 through 9. Values are assigned to these attributes by the application to specify the layout of the graphical elements with which a user of the mobile device receives and enters data. The information in each of the following tables is also used in the method 187 to generate XML documents for the objects instantiated from the bean. The method 187 to generate XML uses an XML document type definition (DTD) for the bean. The DTD defines XML element tags that correspond to the field bean types and attributes that correspond to the entries in the "Attribute" column. The DTD also specifies data types for the attributes that correspond to the entries in the "Allowed Values" column and default values that correspond to the entries in the "Default Value" column in the Tables 1 through 9. A corresponding style sheet is used by the XML converters 112 and 114 to translate the XML document into other markup languages or protocols.

If an attribute is inherited from the field bean of the mobile applications bean, a "yes" appears in the "Inherited" column in Tables 1 through 9. A short description of the graphical effect of the attribute on a corresponding graphical element ultimately produced on the screen of a mobile device is included in the column titled "Graphical Effect." The "get", "set" and "is" columns refers to the bean class methods used to access the attribute; the "is" method is used to get an attribute value that holds a logical value "true" or "false".

A text field bean object is used to display text or receive text input from a user. Constraints on user input, if any, are described by some of the attributes for this bean. Table 1 shows attributes of the text field bean.

TABLE 1
Text field bean attributes
Allowed Default
Attribute Inherited Graphical Effect Values Value get set is
Name yes none any string NULL X X
Prompt yes displayed text to any string NULL X X
prompt user input 9 characters in
length or less
Hidden yes do not display the "true" "false" "false" X X
field
Required no field cannot be "true" "false" "false" X X
exited until a
character is input
AlterCase no forces the input "U" for upper "N" X X
characters to "L" for lower
appear in upper or "N" for no
lower case forcing
Value no displayed text in consistent with NULL X X
input area ValueType
attribute
ValueType no refuses input of the "S" for string "S" X X
wrong type "N" for number
"D" for date
"R" for range
NextPageName no controls navigation string for NULL X X
upon exiting field unique name of
next page
Editable yes Value attribute "true" "false" "true" X X
changed by user
input indicated by
highlighting
Password no do not display "true" "false" "false" X X
Value attribute
Length no maximum number any number "10" X X
of characters
allowed on input


A list of values (LOV) field bean object is used to present the user with a pop-up list of selectable items and obtain user input signifying one of the selectable items, such as in a pop-up (or pull down) menu. The bean for these objects allows the list of selectable items to be determined dynamically at runtime by providing an attribute to store a command that launches a procedure to generate the list. The command is a structured query language (SQL) statement or a call to a packaged procedure in JAVA or PL/SQL, a proprietary extension of SQL supported by the ORACLE™ Corp. A result set produced in response to executing the procedure may include more than one subfield for each listed item, so the bean provides attributes to describe the subfields and their display. An example of how a LOV bean object is displayed on a Telnet device is provided later. Table 2 shows attributes of the LOV bean.

TABLE 2
List of values (LOV) field bean attributes
Allowed Default
Attribute Inherited Graphical Effect Values Value get set is
Name yes none any string NULL X X
Prompt yes displayed text to any string NULL X X
prompt user input 9 characters in
length or less
Hidden yes do not display the "true" "false" "false" X X
LOV field
Required no field cannot be "true" "false" "false" X X
exited until a
choice is input
AlterCase no forces the input "U" for upper "N" X X
characters to "L" for lower
appear in upper or "N" for no
lower case forcing
Value no displayed text in consistent with NULL X X
input area ValueType
attribute
ValueType no refuses input of the "S" for string "S" X X
wrong type "N" for number
"D" for date
"R" for range
NextPageName no controls navigation string for NULL X X
upon exiting field unique name of
next page
Editable yes Value attribute "true" "false" "true" X X
changed by user
input indicated by
highlighting
Length no maximum number any number "10" X X
of characters
allowed on input
LOVstatement no command that SQL query, or NULL X X
causes a processor packaged
to generate list of procedure with
values from which one results set
user will select output
Input no none array of strings NULL X X
Parameters with input
parameters for
procedure in
LOVstatement
InputParameter no none array of strings NULL X X
Types with input
parameter types
"S" string in
session memory
"N" number in
session memory
"D" date in
session memory
"T" time in
session memory
"AS" string
"AN" number
"AD" date
"AT" time
SubfieldNames no none array of strings NULL X X
with names of
subfields on
each listed item
in results set
Subfield no text displayed array of strings NULL X X
Prompts proximate to each for each
subfield displayed subfield
Subfield no display subfield array of "true" NULL X X
Displays "false" values
SelectedValues no none array of strings NULL X X
for all subfields
in selected list
item

The input for the procedure in the LOV statement attribute may be provided directly when the object is instantiated from the LOV bean. The LOV bean also allows the parameters input to the procedures to be obtained from the information managed by the state machine for the session, as indicated in Table 2 by the expression

"session memory." In the illustrated embodiment session memory is the state information database 155. If the input parameter comes from session memory, the input parameter is provided not by a value but instead by the reference to the information in the session memory. In some embodiments the reference is a unique name for the information as described in more detail later. The InputParameterTypes attribute holds strings that indicate whether each input parameter is an actual string (AS), number (AN), date (AD) or time (AT), in which case the type begins with the letter "A", or whether each input parameter is a reference to a string (S), number (N), date (D) or time (T), in the session memory, in which case there is no "A" prefix.

A list field bean object is used to display lists of related items or receive text input from a user for some or all of the listed items or both. Constraints on user input, if any, are described by some of the attributes for this bean. Table 3 shows attributes of this field bean.

TABLE 3
List field bean attributes
Allowed Default
Attribute Inherited Graphical Effect Values Value get set is
Name yes none any string NULL X X
Value yes number of items in any number NULL X X
list if all displayed
Prompt yes displayed text to string of 9 NULL X X
prompt user input characters in
length or less
Hidden yes do not display the "true" "false" "false" X X
field
Values no displayed text in array of values NULL X X
input area consistent with
ValueType
attribute
ValuesTypes no refuses input of the array of types NULL X X
wrong type "S" for string
"N" for number
"D" for date
"R" for range
ValuesLabels no text displayed array of strings NULL X X
adjacent to listed of 9 characters
item or less
NextPageName no controls navigation string for NULL X X
upon exiting field unique name of
next page
Editable yes One item on list "true" "false" "true" X X
selected by user
input indicated by
highlighting
SelectedItem no determines which number ≦ NULL X X
item is highlighted Value


A multi-list field bean object is used to display multiple lists of related items or receive text input from a user for some or all of the listed items or both. Constraints on user input, if any, are described by some of the attributes for this bean. A multi-list bean is useful for receiving input into a table of rows and columns. Table 4 shows attributes of this field bean.

TABLE 4
Multi-list field bean attributes
Allowed Default
Attribute Inherited Graphical Effect Values Value get set is
Name yes none any string NULL X X
Value yes number of lists in any number NULL X X
object if all
displayed
Prompt yes displayed text to string of 9 NULL X X
prompt user input characters in
length or less
Hidden yes do not display the "true" "false" "false" X X
field
Numbers no number of items in array of NULL X X
each list numbers
Values no displayed text in array of values NULL X X
input area of all consistent with
items in all lists ValueType
attribute
ValueType no refuses input of the array of types NULL X X
wrong type "S" for string
"N" for number
"D" for date
"R" for range
ValuesLabels no text displayed array of strings NULL X X
adjacent to listed of 9 characters
item or less
NextPageName no controls navigation string for NULL X X
upon exiting field unique name of
next page
Editable no Values attribute array of "true" "true" X X
changed by user "false" values
input indicated by
highlighting
Length no maximum number array of NULL X X
of characters numbers
allowed on input
for each list


A checkbox field bean object is used to allow a user to select none, one, some or all of one or more options. The checkbox is especially useful when the options require many characters to specify. Table 5 shows attributes of the checkbox field bean.

TABLE 5
Checkbox field bean attributes
Allowed Default
Attribute Inherited Graphical Effect Values Value get set is
Name yes none any string NULL X X
Prompt yes displayed text to any string NULL X X
prompt user input
Hidden yes do not display the "true" "false" "false" X X
field
Required no field cannot be "true" "false" "false" X X
exited until a
choice is input
Checked no check mark "true" "false" "false" X X
appears in box or
equivalent
NextPageName no controls navigation string for NULL X X
upon exiting field unique name of
next page
Editable yes Checked attribute "true" "false" "true" X X
changed by user
input


A radio button field bean object is used allow a user to select one or more of several related options. The radio button is especially useful when the options are mutually exclusive. Table 6 shows attributes of the radio button field bean.

TABLE 6
Radio button field bean attributes
Allowed Default
Attribute Inherited Graphical Effect Values Value get set is
Name yes none any string NULL X X
Prompt yes displayed text to any string NULL X X
prompt user input
Hidden yes do not display the "true" "false" "false" X X
field
GroupName no relates several any string NULL X X
radio buttons with
same GroupName
GroupLabel no displays text any string NULL X X
proximate to
several radio
buttons
Required no field cannot be "true" "false" "false" X X
exited until a
choice is input
Checked no solid dot appears "true" "false" "false" X X
in circle
or equivalent
Exclusive no only one radio "true" "false" "true" X X
button in group
may be checked
NextPageName no controls navigation string for NULL X X
upon exiting field unique name of
next page
Editable yes Checked attribute "true" "false" "true" X X
changed by user
input


A button field bean object is used to present a button to a user of a mobile device and receive input indicating completion of input for the current page. For example, a "SUBMIT" or "DONE" or "OK" button is instantiated from the button field bean. Typically a task is performed by the application and then a new page is displayed to the user. Table 7 shows attributes of the button field bean.

TABLE 7
Button field bean attributes
Allowed Default
Attribute Inherited Graphical Effect Values Value get set is
Name yes none any string NULL X X
Prompt yes displayed text to any string NULL X X
prompt user input 9 characters in
length or less
Hidden yes do not display the "true" "false" "false" X X
field
NextPageName no controls navigation string for NULL X X
upon exiting field unique name of
next page


The header field bean is used to insert text into the header or title area of a screen on a mobile device. Attributes of a header field bean are shown in Table 8.

TABLE 8
Attributes of a header text bean
In- Graphical Allowed Default
Attribute herited Effect Values Value get set is
Name yes none any string NULL X X
Value yes displayed text any string NULL X X


The separator bean is used by some of the other beans to provide a consistent use of characters that signal to a user of the mobile device the type of input expected after a prompt. For example, in one embodiment a colon (:) is used as a separator between a prompt and a text value in a text field bean and a greater-than sign (>) is used as a separator between a prompt and a value selected from a list of values in a list of values bean. Attributes of a separator bean are shown in Table 9.

TABLE 9
Attributes of a separator bean
In- Graphical Allowed Default
Attribute herited Effect Values Value get set is
Name yes none any string NULL X X
Value yes displayed single NULL X X
separator character
character
Type no type of field "text" NULL X X
bean in which "LOV"
separator is "list"
used "multilist"
"check-
box"
"radio"
"button"
"heading"


The Page Bean

A page object is intended to represent a group of graphical elements that are used together. A page object includes instances of one or more field beans listed in the page bean's attribute named field beans vector. The page bean extends the bean class to include a constructor method that instantiates the page and a method to add field beans to the field beans vector attribute. The page bean also extends the bean class to include page event handling methods. Logic can be included in the page bean's event handling methods to add field beans at runtime so that the pages can respond dynamically, for example in response to the information managed by the state machine.

The page bean class also includes a multiple-instance attribute, which determines whether a user can navigate to a particular page object more than once. For example, the user may press a "submit" button that returns the user to a page named "Shopping Cart". This can either be treated as a return to a Shopping Cart page with values for the attributes as they were when the page was left, e.g., with one or more items in the cart, or treated as a new instance of the page with newly generated attributes, e.g. a second shopping cart that is empty. The multiple instance attribute allows the second instance of the shopping cart page in the example. The mobile interactions server 150 allows for multiple instances of a page bean if this attribute has a value of "true." The two pages with the same name are distinguished by an instance number. For example, the mobile applications server allows a Shopping Cart 1 page and a Shopping Cart 2 page.

The Menu Item Bean

A menu item bean extends the mobile applications bean with methods that should be executed when an application is first started, or when the application is exited. An applications developer extends the menu item bean for a particular application by providing event handlers. One of the event handlers includes a reference to the first page bean of the application. Any application-specific start up and exit procedures are provided as event handling methods.

The file and name of the menu item bean for a particular application are registered with the mobile interactions server by the applications developer when the application is ready for offering to users of mobile devices. At the time of registration, the applications developer also provides the mobile applications server with a label to be presented to a user when the user first starts a communication session with the mobile applications server. The label becomes one item in a menu presented to the user as a first response after the user logs in with the mobile applications server 110.

Furthermore, in one embodiment, the value of the menu item bean name attribute is used with the values of the page name and field name to uniquely identify every graphical element in the application. This property is very useful for maintaining state information as it is described in more detail in a later section.

Structure of an Application

FIG. 1C is a block diagram that illustrates how, according to one embodiment, an application may be implemented using a hierarchy of application specific mobile applications beans. At the top of the hierarchy is an application specific menu item bean 170. In this embodiment the application specific menu item bean extends the menu bean described above by including a method 171 to be executed when the application is exited. The application specific menu bean also includes a reference 179a to the first application specific page bean. In some embodiments the reference is a file name where the application specific first page bean is stored. In some embodiments the page reference is in an event handling method for the application entered event.

The first page bean 172a includes a method 175a to construct the page object and a vector 174a listing one or more application specific event handling methods 174a associated with the page. The methods may be included in the file with the page or may be in any class file associated with the application. In the illustrated embodiment, the first page constructor 175a creates instances of several field beans including field bean objects 173a and 173b. The first page constructor also lists an application specific event handling method associated with field bean 173b. The event handling methods for the page listed in vector 174 are for generic events, described in more detail below, which insulate the application from details of the mobile device 103.

With this structure the page can generate instances of field beans that depend on conditions at the time the page is generated. That is, the page-entered method of the page event handlers listed in vector 174a may include instructions that determine what additional field beans to instantiate and the values of field bean attributes based on the date or time, the identity of the user, or any information managed by the state machine about the current session with the client at the time the page is generated. For example, if the user had indicated on a previous page that the telephone numbers of two people with the name John Smith are desired, the current page can obtain that information from the state information database and add two instances of text field beans to the page built by the constructor, and use the two new text fields to display the phone numbers of the two John Smiths.

The first page bean also includes a reference 179b to a subsequent page, e.g. the next page. In the embodiment shown, the reference 179b to the next page is an attribute external to page event handling methods listed in vector 174a. In another embodiment the exit page event handling method of the listed page event handlers in vector 174a makes the reference to the next page. In still another embodiment, a field bean 173 includes the reference to the next page. In one embodiment, the application specific value of the "Next Page" attribute in a field bean object indicates the reference to the next page. An application specific page bean may include different references to different pages in the "Next Page" attributes of several different field bean objects; in this case, the next page generated by the application depends upon the field object a user of the mobile device is acting on. In some embodiments the reference is a file name where the next application specific page bean is stored.

The page beans continue for as many pages as necessary to provide the desired functionality for the application. When the last page is exited, the page event handler method of the last page issues a message indicating that no more pages follow. In this embodiment, an exit application event occurs, and the exit application event handler method 171, if any, in the menu item bean is executed. In one embodiment, to deal with any circumstance that results in no new page being generated, the application specific methods generate an exception that is a message to the mobile interactions server. Such circumstances include exiting the application, redirecting control to another network-based service, or encountering an error while executing the logic of the event handler method.

An advantage of this arrangement is that the overall application is broken up into a series of pages that each approximately correspond to the amount of information that a user of the mobile device should consider at one time. The pages are constructed and operated independently and in series so that only one occupies the processor at any one time for one session. As a result, the number of program instructions that must occupy the memory of the processor at any one time is a small subset of the overall instructions needed to provide all the functionality of the application. What information needs to be shared between one page and another is stored in the session state information maintained by the state machine of the mobile interactions server.

Another advantage of this arrangement is that each page of the application may be extended without regard to the detailed properties of individual mobile devices. Those details are handled by the methods and attributes inherited from the mobile applications beans provided to the application developer.

Mobile Interactions Server Processes

The operation of the mobile interactions server shall now be described with reference to the structures of the embodiment illustrated in FIGS. 1A, 1B, 1C and 1D. The steps followed when a client process first contacts the mobile interactions server are described in the following section on client log-in. The steps followed by the mobile interactions server 150 after receiving a subsequent request message from the client indicating actions by the user are described in the next sections. The state information maintained by the mobile interactions server to facilitate interaction during the entire course of a session between the client and the mobile applications server 110 is described in the section on session state maintenance. Separate sections below are directed to describing in more detail navigation between pages, the event-driven interface, the presentation manager, and application development. A hardware overview section is also provided.

Client Log-in

FIG. 2A is a flowchart that illustrates one embodiment 210 of a method for a mobile interactions server 150 to respond to a request from a client on a mobile device for services from the mobile applications server 110. For example, a user employs the mobile device to log on to the mobile applications server 110. This initial request can also be made without the log-in procedure, if the security policy does not require log-in.

In step 201, the mobile interactions server waits for a request from the client to start a session. In step 202, the mobile interactions server determines whether a request was received from the client to start a session. In other embodiments, steps 201 and 202, are replaced by different steps. For example, steps 201 and 202 are replaced by steps of an event trigger mechanism that passes control to the following steps when a request is received, without intermediate checking. Alternatively, steps 201 and 202 are replaced by a step that calls routines that implement the following steps on a predetermined schedule.

If a login is required, then control is transferred to a log-in process (not shown) and returned to step 204, if successful.

When control passes to step 204, the mobile interactions server launches listeners to respond to further requests from the client process. The client process is identified by the network address of the mobile device and the port through which the messages are arriving at the platform on which the mobile interactions server 150 is executing. A different port is assigned by the operating system of the mobile applications server for each communication protocol and the port is passed to the mobile interactions server. For example, messages using HTTP are typically assigned port 80 and Telnet messages are typically assigned to a port with a different port number. One listener responds to the initial request. A second listener responds when the request message from the client indicates the user has pressed a key. The request includes data indicating the value of the key pressed and the name of the graphical element where the cursor was located when the key was pressed. A third listener responds to a logoff request. In other embodiments the first, second and third listeners are combined. The steps in FIG. 2A performed by a listener are performed by the listener that responds to the initial request.

In step 206, information about the mobile device on which the client is executing is obtained and stored in the device profile for the session by the listener. In some mobile devices, some of this information is obtained by negotiating directly with the client process on the mobile device. During negotiations one or more messages are sent to the mobile device from the mobile applications server, and the responses are used to construct the mobile device profile or determine the device type. For example, negotiations are used in some embodiments with industrial devices such as bar code readers that communicate via the Telnet protocol. For mobile devices that do not negotiate, such as devices using the WAP protocol, information pertinent to the devices and available from the manufacturer or published sources are maintained by the mobile interactions server in a database of device properties. Based on the request from the mobile device, which includes some identifying information, such as a manufacturer name and model name and date, a device type for the mobile device is determined. The listener, or, in some embodiments, the separate presentation manager, of the mobile interactions server then retrieves device profile information from the database based on the device type.

In step 208, the listener checks a list of registered menu items, corresponding to available applications, and determines which menu items should be made available to the client requesting the session, based on the device profile. If a log-in procedure has been required, then the security policy also determines which clients have access to which applications.

In step 210, the listener invokes a new session method of a state machine library of methods to initiate management of session state information generated during the session with the client. Included in the session state information passed to the state machine method from the listener for management is information describing the connection used to route packets to the client, such as the IP address of the base station, the port number at the base station used for the wireless connection, the port number of the platform on which the mobile interactions server 150 is executing, and the menu items available to the client. The state machine generates a session object to store this state information and places the passed information into the session object. The structure of the session object is described in more detail below. In the illustrated embodiment, the state machine stores the session object in a session state database. In other embodiments, the session object is stored in other manners, such as in main memory within a special memory buffer called session memory.

In step 212, the state machine method generates a page for the mobile device. In the illustrated embodiment, the page is represented as an XML document listing the menu items to be displayed on the mobile device. The state machine method returns the XML document to the listener 152. The listener 152b employs the presentation manager 140, which reformats the page for the particular mobile device based on the device profile database 145. The presentation manager is described with more detail in a later section.

FIG. 2B shows a sample menu presented to a user on the screen of a mobile device in response to the client process request for applications from the mobile applications server 110. This screen includes a title text field 272 and three lines of selectable applications each represented by a line number in a text field 276 and a label for the application in a text field 274. A fourth option, to exit from the server, is represented by a line number in a text field 276d and a text field 277 displaying the text "exit server." An editable text input field 278 is represented by a prompt text field 278a and an input text field 278b. A user selects an option by typing a line number into text field input area 278b. The graphical elements of this screen are sent to the mobile device by the listener based on the XML document received from the state machine in step 212. The listener maintains a mapping between graphical elements, as referenced by the mobile device, and the field bean names on the current page. For example, the listener maps the graphical element reference for the text field 278 to the name of its corresponding field bean, say "Selected Menu Item" included in the XML document.

All the steps described in FIG. 2A occur outside the application specific menu item bean, page beans, and field beans. The only involvement of the application developer for these steps to occur is that the developer register the application with the mobile interactions server as described in more detail below so that the application appears as one of the options on the main menu presented to the user. In the illustrated embodiment, the state machine and the listeners handle subsequent interactions between the application and the client.

In the illustrated embodiment, control then passes back to step 201, to wait for another client to request a session.

Processing User Actions as Events

FIG. 2C is a flowchart that illustrates one embodiment of a method for a mobile interactions server to respond to a subsequent action by a user of the client process. In this embodiment, all these actions cause events to be generated that are passed as input parameters to event handler methods. Most events are handled by the event handling methods inherited from the bean superclass, the mobile applications bean, and the nine field type beans. The application developer generates application-specific event handling methods for a set of predefined generic events. In the following the term "handler" is used as a short form for the expression "event handling method."

In the depicted embodiment the client process 103 communicates with the mobile applications server 110 using the Telnet protocol in which each key pressed is communicated to the server as a request message. In this case the listener detects when a request message arrives on the Telnet port from the client process indicating a user has pressed a key. In other embodiments, the client may communicate with another protocol, such as HTTP extended with forms, in which the request message may indicate a higher level action, such as indicating that the user has submitted a completed form without intervening messages indicating each character typed by the user. Using HTTP, the listener detects when a request message arrives on port 80 with a string of characters indicating some of the attributes and values of the completed form.

In step 221 a Telnet listener, launched by the mobile interactions server 150 during step 204, waits for a request message from the client process indicating a user of the mobile device has pressed a key. Step 222 represents a branch point based on receiving the request message indicating a user action. If a request message indicating a user action is not received, the listener continues to wait as represented by the arrow returning control to step 221. If a request message indicating a user action is detected, control passes to step 223. For example, if a message indicates the user has pressed a numeric key while the cursor is located in the text input field 278b, then the user action is "key pressed." As another example, on the screen of FIG. 5A, the cursor may be on text field graphical element 514 placed after the character "4" when the user presses the "enter" key of the keys 104 on the mobile device.

In step 223, the listener generates an event object and invokes a handler of the state machine with the event object as an input parameter. The event object has an attribute for the key pressed and an attribute naming the field in which the cursor was located when the key was pressed. In this embodiment, an event object is an extension of a JAVA event object class. One embodiment of an event object 280 is depicted in FIG. 2D. The event object 280 includes several attributes and corresponding values 288 that hold the name of the field bean associated with the graphical element in which the cursor was located at the start of the user action and the name of the key that was pressed. For example, the attribute Name may have the value "Selected Menu Item" and the key pressed attribute may have value "3". The event object is formed to pass information about the user action to the handlers implemented in the mobile applications beans.

The event object 280 includes several methods for retrieving information from the state information managed by the state machine methods. The event object inherits a "get source" method 282 from the JAVA event object class. The get source method returns a field bean object based on the stored state information for the field bean associated with the graphical element where the cursor was located. For example, the get source method returns the text field bean object named "Selected Menu Item" associated with the text field graphical element 278 displayed on the screen of the mobile device.

The "get session" method of the event object 280 returns the session object in which information about all the field beans sent to the client and all attributes modified by a user of the mobile device. In one embodiment, a reference to the session object that can be employed to access the information in the session object is returned rather than the session object itself. An embodiment of the session object is described in more detail later.

The "get action" method of the event object returns the user action in the source field. For example, the get action method returns the string "key 3 pressed" or the string "enter key pressed."

The state machine has a handler for the example "key 3 pressed" event and generates other more generic events with more generic actions for the generic event handlers of the application, as described below. The generic events produced by the state machine include "field entered," "field exited," "page entered," "page exited," "special page key pressed," "application entered," and "application exited." Six generic actions are associated with events passed to handlers of an application. The six generic actions are "next field," "previous field," "submit page," "back page," "forward page," and "menu page." The generic events and actions insulate the application from details of determining which keys are on which mobile devices and how cursors are used in each device to move from field to field on a page.

In step 224 the state machine method determines whether the key pressed action corresponds to one of the generic events, an exit field event. For example, a field is exited when an enter key is pressed or a pointing device is clicked on a button field, or if the field does not involve a list and either a cursor up key is pressed or a cursor down key is pressed. If the key pressed indicates a field is being exited, then the state machine handler sets the action in the event object to "previous field" if the exit is indicated by a cursor up key, and "next field" if the exit is indicated otherwise. If the action does not correspond to exiting a field, then control passes to step 226. The "key 3 pressed" does not correspond to a generic event, such as field exited; thus, in this example control passes to step 226.

In step 226 a field handler of the state machine specific to the field bean type is invoked with the event object as the input parameter to deal with the pressed key. A different handler is available for each type of field bean. Handlers for the nine field type beans are built-in for the state machine and are not produced by the application developer, and are not considered application handlers. In step 228, the state machine field handler revises the field based on the key pressed, updates the state information stored about the field in the session object and generates an XML document to return to the listener for sending on to the client process on the mobile device. After step 228, control then passes to step 221 to wait for further user action.

For example, the built-in text field handler for the "key 3 pressed" event revises the Value attribute of the "Selected Menu Item" to "3" and stores this Value in the Session object and generates an XML document with the new value. In one embodiment, the XML document includes descriptions of the entire page, recovered from the session object. In another embodiment, the XML document includes just the description of the revised field object. The XML document is returned to the listener that causes the new value to be rendered on the mobile d