METHOD AND APPARATUS FOR DEVICE CONTROL

Abstract: A method and apparatus are provided by which one device (12) can be used to control another device (11) without any requirement that the controlling device (12) has any knowledge of the nature or functionality of the controlled device (11). The controlled device (11) transmits to the controlling device (12) a set of possible parameter choices, together with information identifying the possible parameter choices. The controlling device (12) then displays (or otherwise provides to the user) both the set of parameter choices and the information so that a user (13) is able to select a set of actual parameter choices through the user interface of the controlling device (12). The set of actual parameter choices is then transmitted back to the controlled device (11), whose operational parameters are then modified in accordance with the set of actual parameter choices. The controlling device (12) thus needs no knowledge of the nature of controlled device (11), as it only has to present the information and choices provided by the controlled device itself to the user (13). The nature of this presentation can be determined by the display and user interface capabilities of the controlling device (12).

Description: METHOD AND APPARATUS FOR DEVICE CONTROL The invention relates to a method and apparatus for device control. In particular, the mvention relates to a method for control of one device through another device with which a user can interact, and to apparatus with which the method can be employed. It is common for a user to use one device with convenient mteraction features to control another device with less convenient mteraction features. For example, a remote control unit is frequently used for control of a television. The remote control unit is convement for the user to use: it is portable, while the user interface attached to the television itself is less convement to use (as it is fixed at the television). Computers are similarly often used to control other equipment, as the user interface of a computer is well understood by the user and in many cases interaction between the equipment and the computer is required anyway (for example, if data is to be passed to or received from the equipment). A vaπety of approaches are provided for control of equipment by computers m the different programming options for different computer operating systems. In Microsoft Wmdows, for example, devices must either conform to a pre-defined geneπc model (for which an API is provided) under which a set of control commands deemed appropπate to the device class must be understood, or else must be supplied with a device-specific control program, or dπver, which must be loaded into the computer before control can take place. In the API case, for example, a TV API might have function calls to turn the TV on or off, change the channel to a specific set of values and set the volume, all televisions being able to offer those and only those controls through the API. In either case, if Microsoft Wmdows is to be used for control of, say, a fax machine by a personal computer, it is necessary for the functionality of the fax machine to be "known" by the personal computer. User events are sensed by the personal computer and then interpreted in the context of the controls required by the fax machine Another example is provided by X-Windows, which is a GUI built (typically) on Unix and can be used for control of other devices X- Wmdows recognises a vaπety of input devices, such as mouse and keyboard. It is adapted to provide applications with events which descπbe what is happening to those input devices (e.g. right mouse button pressed at co-ordinate 345,678). The application then decides how to interpret this action (e.g. turn TV on). The control program therefore mvolves both the functionality of the controlled device and user interface features of the controlling device. Although such control approaches can be very powerful, they are not flexible. Either a discrete control program must be devised for every device combination (or at any rate for any controlled device for a class of controlling device - such as a personal computer running a version of the Windows operatmg system) or the device's functionality must conform to a predetermined generic model of the device's type. It is therefore desirable to achieve more flexible control methods, m which fully featured control could be achieved without extensive re- work in devismg control programs for new devices and maintaining the highest level effectiveness achievable with a given device combination. The present mventors realised that these goals could be reached through removing the need for the controlling device to have specific knowledge of the controlled device. Accordingly, the mvention provides m a first aspect a method for tiie control of a controlled device by means of a controlling device, compnsmg. establishment of a means for transmitting signals between the controlling device and the controlled device; provision by the controlled device of a set of possible parameter choices and information identifymg said possible parameter choices and transmission thereof to the controlling device; display at the controlling device of the set of possible parameter choices and of information identifymg possible parameter choices to enable user selection of a set of actual parameter choices with a user selection means; transmission of the set of actual parameter choices to the controlled device; and modification of operational parameters of the controlled device m accordance with the set of actual parameter choices; wherem the set of possible parameter choices and set of actual parameter choices are provided in a form mdependent of the user selection means. Where the controlled device provides to the controllmg device only a set of choices and mformation relating to those choices, that leaves the controllmg device free to display the set of choices and the information relatmg to them in any way that it chooses, or that is convement for it. This means that the same approach can be used for mteraction between essentially any controllmg device and the controlled device. If the controllmg device has only limited user mteraction capabilities, a very limited user interface for the controlled device can be constructed. However, if the controllmg device has πch possibilities for user interaction, these can be exploited to create a πch user interface for the controlled device at the controllmg device. This arrangement divides responsibility for the process of control and device operation ideally between the controlled device and the controllmg device. The functionality of the controlled device, and how that functionality may be changed, only needs to be understood by the controlled device instead. The controllmg device needs to understand nothing of the functionahty of the controlled device, but is instead left to determine how it should display the available parameter choices: this allows the display options to be matched to the capabilities of the controllmg device. In a second aspect the mvention provides an information handling device adapted for the function of a controllmg device in the method mdicated above, the information handling device compnsmg: means for communication of mformation with a controlled device; user interface means for displaying information to a user and for returning values denved from a user input; and means for presentmg the set of possible parameter choices and associated mformation received from the controlled device through the user interface means, and for returning the set of actual parameter choices from the user interface means to the controlled device. In a third aspect, the mvention provides a control script to enable provision by a controlled device of a set of possible parameter choices and mformation identifymg said possible parameter choices and transmission thereof to a controllmg device, compnsmg for each parameter the possible parameter choices, a type for that parameter, and user interpretable parameter mformation. Specific embodiments of the mvention are descnbed below, by way of example, with reference to the accompanying drawings, m which: Figure 1 shows a schematic representation of a control arrangement to which the present mvention is applicable; Figure 2 indicates schematically steps followed m control processes accordmg to aspects of the mvention; Figure 3 shows a device environment for which aspects of the mvention can be employed; Figure 4 shows the creation of a surface impression on one device from the surface expression of another; Figure 5 shows the components of the JetSend architecture and their logical relationship to each other; Figures 6a to 6j show the use of messages of the JetSend mteraction protocol m exchange of information between appliances; Figure 7 shows a JetSend policy for provision of a virtual control panel at a controllmg device; Figure 8 shows a JetSend policy for user control of a controlled device usmg a virtual control panel; Figure 9 shows a minimal user interface supported by the Control Scπpt encodmg; Figures 10a and 10b show Wmdows user interfaces automatically generated from Control Scπpt encodings; Figures 1 la and 1 lb show user interfaces generated from HTML encodmgs; and Figure 12 shows a fax machine user interface which can be generated with an encodmg which defines a set of user interface controls. A geneπc implementation is shown schematically m Figures 1 and 2 and descπbed m detail below. Figure 1 shows the basic requirements for application of aspects of the present mvention. There exists a controlled device 11 that performs a device function in accordance with certain user- determinable parameters. Controlled device 11 could be a household appliance such as a television, a music system, or a washing machine, an office appliance such as a printer or a scanner, another item of machmery or substantially any device capable of external control. There is also a controllmg device 12, which acts to provide control information to controlled device 11. Again, controllmg device 12 could be a remote controller, a personal computer, or substantially any other device with a user interface. There must also be a mechanism for two-way communication between controllmg device 12 and controlled device 11- both a means for exchanging messages between the two devices and a protocol such that meamngfiil messages can be exchanged - again, substantially any medium and associated protocol can be used. A user 13 interacts with the controllmg device 12. The steps m a control process accordmg to an aspect of the mvention are set out m Figure 2. It is assumed that there is already established a means for transmitting signals conveymg messages (m both directions) between the controllmg device 12 and the controlled device 11. The user 13 can interact with the user interface of controllmg device 12 Step 21 consists of the provision by the controlled device 11 of a set of possible parameter choices to the controllmg device 12. Such choices may be a binary choice such as " ON OR OFF ", a selection from a senes of values such as " 1, 2, 3, 4, 5 " or " 'Parsley', 'Sage', 'Rosemary' 'Thyme' " a selection from a range such as " an integer value between 1 and 12 ". Tokens need not be text strings: m appropπate implementations they could be, for example, images or icons. Essentially any defined set of choices is possible for this purpose. There must also be provided information identifymg said possible parameter choices. For example, a label such as "Volume" could be provided, with an associated parameter choice of " an integer value between 1 and 12 ", or a label of "Recording" with an associated parameter choice of " ON OR OFF " This label serves a dual function: it is associated by controlled device 11 with a specific parameter for determining its function, so controlled device 11 is adapted to change its state to reflect a specific choice for that parameter - it is also sufficiently descπptive of the parameter that the user 13, when provided with the label mformation, will be capable of making an appropnate choice for the associated parameter. It however need have no meaning for controllmg device 12 - for controllmg device 12 the label is merely a label. Controllmg device 12 need not be adapted m any way to the function of controlled device 11. Step 22 consists of the display at the controllmg device 12 of the set of possible parameter choices and of mformation identifymg the possible parameter choices. This requires presentation to the user of information identifymg each parameter choice available: this may mvolve simple presentation to the user of the label attached to a given parameter choice, together with an indication of the possible selections a user could make for that parameter choice. For example, taking the parameters discussed m the precedmg paragraph, the controllmg device may have a display mdicatmg the label "Volume", with a user operable dial or slider next to it showing values of 1 to 12, and a button which can be "pressed" by the user labelled "Recording" Step 23 is the selection by the user of a set of actual parameter choices. This is done by whatever means is appropπate to the user mterface of controllmg device 12. Advantageously, this user mterface ensures that the user is only able to make a choice for a given parameter that is among those provided by controlled device 11. The user makes selections on the basis of the mformation provided by controlled device 11 and the user's own knowledge and understanding Controllmg device 12 has no role m the selection of choices for any of these parameters. Step 24 is the transmission of the set of actual parameter choices made by the user 13 from the controllmg device to the controlled device 11. This set of actual parameter choices must be provided in such a way that the controlled device can determine to which parameter each parameter choice relates (for example, by attachment of the appropπate label to each parameter choice) Step 25 is the modification of operational parameters of the controlled device 11 in accordance with the set of actual parameter choices. The function of controllmg device 12 is thus limited to exchanging mformation with controlled device 11 and enabling user mteraction such that the user can control the controlled device 11, and these functions operate m the same way irrespective of the nature or functionality of the controlled device 11 The controllmg device 12 does have control of the mechanisms by which mformation is displayed to the user and by which the user makes his or her choices: consequently, choices can be made appropnate to the πchness of the user mterface of controllmg device 12. Control may require repeatmg of one or more of these steps. Steps 23 to 25 could be repeated over time, as the user decides to change the operation of the controlled device 11. If there is a hierarchical control structure (such that selection of one parameter choice requires the making of another parameter choice), steps 21 to 25 may need repeatmg as a sequence one or more tunes before operation of the device function of controlled device 11. Although the mvention is descπbed here m the context of a human user 13, this is not essential to the mvention m its broadest aspects "User" 13 may be replaced by another device, or even controllmg device 12 m another aspect of its operation (for example, a separate program). All that is required of user 13 is the capacity to make a selection for the parameters mdicated by controlled device 11 accordmg to the mformation presented by controlled device 11. This could be achieved by a program adapted to recognise labels attached to parameters, or information made in those labels, and to return a parameter choice from the selection available based on those labels. It may be necessary for this "user" 13 to have more or less detailed knowledge of the function of controlled device 11, but communication between controllmg device 12 and controlled device 11 still does not depend on the function of controlled device 11, and neither does presentation of parameter choices and associated mformation by controllmg device 12 to user 13 (even if user 13 is a program mtemal to controllmg device 12!) A useful and practical instance of a non-human user is a control program which compπses a predetermined set of preferred user choices for a particular virtual control panel. The effect of the control program is that whenever controllmg device 12 "sees" that virtual control panel, the program will run so as to return these preferred choices. Such a control program is analagous to a macro of a conventional word processmg or spreadsheet program. As indicated above, the present mvention has very general application. A particularly useful application is for controllmg device 12 to be adapted as a universal remote controller, provided with a well featured user mterface compnsmg a display and user means to identify choices (one or more of buttons, a touch screen with a stylus, a keypad etc.) and a communication means (for example an infra-red tranceiver) and means to interpret messages received and provide mformation as messages for transmission through the communication means. Such a device could be, say, a handheld controller useful for mteractmg with substantially any controllable device adapted to communicate with it, as the controllmg device itself need have no knowledge of, or adaption to, the function of the controlled device. This offers a highly versatile and relatively low cost solution for remote control - so, for example, the television, music centre (and even wmdows and washmg machine) could be controlled from the same controller, which itself has no adaption to the function of any of these devices. A particular application of the mvention will now be descnbed m detail which is m accordance with the principles of operation mdicated above This application is m the context of the JetSend architecture of Hewlett-Packard Company. This is descnbed m detail m the HP JetSend Communications Technology Protocol Specification, available from Hewlett-Packard Company and descnbed at, inter alia, the World Wide Web site http://www jetsend.hp.com/. JetSend is an architecture accordmg to which devices transfer information directly without need for intermediaπes where network considerations allow, mformation bemg transferred accordmg to a common protocol whatever it relates to Devices have no need to have knowledge of the functionality of other devices. In the context of a computer network, this means that, say, a scanner and a printer can communicate without the mediation of a personal computer, and there is no requirement for a dπver to be loaded on one device to enable mteraction with another device. Figure 3 illustrates the environment in which JetSend devices operate. A network 341 of some kind (m the broadest sense of means to enable communication between devices) exists between devices such as a printer 342, a personal computer 343, and a scanner 344 Each of these devices must possess a processor 346 of some land, together of course with a connection means 345 to allow mterface with the network 341. It is necessary m this implementation for each of the devices to have some measure of processmg capacity, as such capacity is necessary for processes integral to JetSend. The JetSend architecture can be employed effectively for communication of mformation between one device and another. This has been discussed in other applications of Hewlett-Packard Company, in particular Bntish Patent Application No. 9707551.9 filed on 15 April 1997 and entitled "Method of Passmg Information" and US Patent Application Seπal No. 60/054,047 filed on 18 July 1997 and entitled "HP JetSend Protocol Specification" and subsequent applications m the Umted States of Amenca and elsewhere (entitled "Method and Apparatus for Device Interaction by Protocol" and "Method and Apparatus for Device Interaction by Format") claiming pπoπty therefrom, the contents of these applications bemg incorporated by reference herem. As is mdicated below, the present mvention can readily be applied to the JetSend architecture and protocols to achieve particularly effective control of one device by another. The basic prmciples and elements of the JetSend architecture are discussed bπefly below, and then the application of the present mvention m the context of relevant specific elements of the JetSend architecture is discussed m more detail below The basis for communication between devices m JetSend is the surface mteraction model. A surface is a representation of some aspect of internal state possessed by a device The representation is umversal, and is not determmed by the functions performed by the device. A surface m this context is analagous to the surface provided by a physical object (such as a telephone, or a bnc ). The way m which the object operates is determmed by how the "functional" parts of the object connect to the surface, but the surface itself can be descπbed m a simple umversal way, irrespective of function, and provides the medium through which the object is connectable to other physical ob j ects m the world - the nature of the connection between physical objects bemg mdependent of any device function. In JetSend, the surface is the fundamental unit of mformation exchange, and images, documents, status messages, device labels and the like are all transferred through use of one or more surfaces. A surface consists of a number of elements: descnption, content, properties and class - these will be discussed further below. The surface mteraction model defines mechanisms for creating, sharmg, modifying and deleting surfaces. Only a fixed number of generic operations can be performed on a surface, usmg the messages defined by the JetSend Interaction Protocol (JIP), which will be discussed further below The ongmal copy of a surface is here termed an expression. There is one expression mvolved m any surface mteraction. Devices that have mformation to share with other devices create one or more expressions to represent that information. Surface expressions can be impressed on other devices. This creates an impression of that surface - also known as sharing the surface. Impressions are copies of other device's expressions, and connections are maintained between the devices to ensure that impressions are up-to-date with their correspondmg expression. Typically, two devices will share several surfaces at a given time; surfaces that represent the elements of a job, status mformation from each device, secuπty mformation, and so forth. Figure 4 shows how an expression 1 on one device (Device A) is shared with another device (Device B), thereby creatmg a new impression 2. The same expression can be impressed multiple times on multiple devices. This creates multiple impressions of the same surface expression. When the expression changes, or is deleted, all impressions will be notified. A surface compπses a descnption of the surface, and the content contained within the surface. The distinction is fundamental to JetSend and of significance m aspects of the present mvention. The surface descnption establishes the full range of possible forms m which information associated with a surface (this mformation bemg provided as surface content data) can be shared with another device. The descnption consists of a data format hierarchy, and can be represented as a tree structure with a number of nodes each representmg a definable aspect of the data format (refeπed to as an attπbute, and discussed m greater detail elsewhere). A specific data format for the information associated with the surface is a path through this tree structure from a root node down to a terminal node (a leaf node of the tree). Such specific paths are reached through a process of negotiation. The process of negotiation, in this context, compπses the surface owner sharing the surface descnption, or a part of the surface descnption, with another device. The other device then chooses the options it prefers (generally such options will be selected so that the receiving device can use its own functionality in the πchest manner available given the choices offered, but this is essentially a matter for the designer of any given device) and this process continues until a specific path, and thus a specific data format, is chosen. The surface content is the mformation associated with the surface, and is provided in a format determmed by negotiation as mdicated above. The content data can be provided m all the formats mdicated by the data format hierarchy embodied in the surface descnption, but for a given surface mteraction will generally only be provided m one of the formats available. Content data need not exist pnor to completion of the negotiation: for some or all of the choices m the data format hierarchy the data may only be generated after the format choice is known. Alternatively, for some choices the content data may be provided directly together with the descnpnon identifymg a particular pomt in the data format hierarchy as a part of the negotiation process (so no separate step of provision of content is required for that format choice). This is termed providmg content data inline. These issues are discussed m the context of control information at a later pomt. A surface descnption can also conta references to other surfaces. These surfaces are known as subsurfaces (or child surfaces) and they must be requested separately from the owner of the parent surface. Each sub-surface contam its own descnption and content, mdependent of its parent. A surface reference, or a surface name, is simply an ASCII string - like a URL. All surfaces are identified by their name, and may belong to a particular class All surfaces possess a class. Class is a property mdicatmg the purpose for which the surface is used: m the present implementation, each surface must have one, and only one, class. Specific rules exist, or may be devised, for use of surfaces of a particular class. Classes are used particularly in the context of specific policies. Where a particular class of surface plays a fundamental role m execution of a given policy, surfaces of that class are termed "well-known surfaces" for that policy. Policies applicable to control mformation are discussed further below A policy, or interaction policy, is a set of conventions for use of geneπc surface interactions to achieve a particular task. The advantage of using a policy for a particular task is that it enables all JetSend devices adapted to perform, or require another device to perform, the particular task to mteract successfully and in a predictable way with other devices m order to achieve that particular task. This does not exclude the possibility of, for example, a pair of devices adapted to perform such a task m a different way not open to other JetSend devices usmg a different class of surface to do so However, it is desirable that such devices still support the relevant JetSend policy so that they can achieve this task with other JetSend devices too. The available set of surface interactions is discussed m greater detail below in the context of control information. E-mateπal, a term corned as a shortened version of "electronic matenal", is the form taken by mformation through which surfaces are expressed and shared. It compπses descnption and content. The descnption mdicates a hierarchy of choices of format m which the associated content data can be provided. The content is the data associated with the surface itself. The descnption mdicates the ways m which the data can be presented, whereas the content is the mformation itself, presented m a form chosen to be suitable for the device sending it and the device receiving it. The existence of this choice is key to the concept of e-matenal, and the mechanism by which this choice is made is discussed further below E-mateπal is not a file format. E-mateπal defines the format of the data that devices exchange, but it does not define how devices process or store that data. Devices that consume e-matenal do so on a manner that is specific to that device. For example, a receiving device such as a printer will process e-mateπal differently than a receivmg device such as a PC. The most fundamental division of e-mateπal types is mto encodings. An encodmg is an e-mateπal representation of a fundamental form m which mformation can be presented in the world. For control applications, there is a specific encodmg for e-mateπal used m a control mteraction. An attribute is a feature of a piece of e-mateπal that is defined m the e-matenal descnption (or defined for the piece of e-matenal after the completion of the negotiation process). Essentially, each node m the data format hierarchy provided m the e-matenal descnption represents an attπbute. From this equivalence between nodes and attributes there is deπved the concept of an "attπbute level": essentially, an attπbute level is shared by all nodes equally distant from the root node of the data format hierarchy. Attnbutes compπse a quality that can be provided for the e-matenal content, and a choice or value for that quality, and the choice or value may itself represent a further attπbute (a quality requiring a choice or value). The quality itself is represented by an attπbute name (sometimes shortened to "attπbute" in this descnption), whereas the choice or value is represented by an "attπbute value" (sometimes shortened to value m this descnption): consequently the nodes of the data format hierarchy can be considered as providing a specific quality and either a specific choice or a range of choices for that quality. Attπbute names are keywords, for which the available values or choices are predefined, so the options offered m a given surface descnption for a given keyword must be some selection from these predefined choices. For different encodmgs, certain attributes will be required, others will be optional, and others not used at all. E-matenal thus expresses the encodmg choices of a surface with a number of attπbute-value pairs arranged m a hierarchy. All surface descriptions contam the attribute vEncoding (all attπbute and value names are prefixed with a lower case v) As mdicated above, this determines the overall encodmg of the surface - for example, if it is control information, vEncoding will be vControl. Each encodmg has a number of standard attπbute-value pairs associated with it. Some of these attnbutes can also contam choices. In fact, the owner of the surface can express quite complex choices by addmg options to many of the attnbutes m the surface descnption There are three primary areas of functionality that make up JetSend for a device- the transports in the device, the JetSend protocols themselves, and device specific code. Figure 5 identifies the components of the JetSend architecture and their logical relationships to each other This is followed by an overview of each of the components. Details for each component are provided at a later pomt. It should be noted that Figure 5 is not an implementation diagram. It shows the relationship between the protocol, not between software components. Actual implementations can have similar components, or combme the implementation of multiple protocols mto a smgle module. The JetSend architecture is applicable mdependent of transport . JetSend devices can address each other directly over any bi-directional transport 36 usmg unique addressing. It is necessary for the transport to be reliable, therefore for an unreliable transport such as UDP, a further protocol layer must be added to make transmissions over the transport reliable (a further protocol here termed Reliable Message Transport Protocol (RMTP) 37 is used for this purpose). Possible transports mclude TCP IP, SPX/IPX, IrDA, IEEE 1284, IEEE 1394, and others A device can implement one or more transports, allowing it to communicate with other devices usmg those same transports Communication between JetSend appliances occurs usmg a number of layered protocols, as can be seen from Figure 5. These layers are similar to most networkmg systems, where each protocol layer communicates with the equivalent layer m the other device The layers that compnse the JetSend protocol are the Interaction Policies 35, the Interaction Protocol 33 and the Session Protocol 34 The RMTP Protocol 37 is not stnctly a part of JetSend, but rather a protocol to allow use of transport protocols which are not both reliable and ordered. The policies have been discussed bnefly above and will be discussed further m the context of control, as will be the mteraction protocol which contains messages for requesting and transferring surface descnptions, transferring content data for a surface, and updating surfaces In conjunction with E-matenal, this provides the mechanism for negotiating data types between devices. The session protocol defines messages for setting up sessions and channels between two devices. A session manages the establishment and termination of data transport between the two JetSend entities. It can create logical channels within that context for commimications. All these interactions take place over whatever transport is provided by the transport layer below. JSP is also used m gateways between JetSend and non- JetSend devices. When a channel uses an unreliable transport such as UDP, RMTP provides the reliability service for that channel. RMTP is a reliable, sequenced delivery protocol. RMTP is not transport specific, and a smgle mstance of it can maintain connections through all of the transport stacks simultaneously The Device Code is the term used for the logic needed to he the JetSend protocols mto an actual device. The Device Code 31 m Figure 3 can exist m any device that is capable of either producing or consuming mformation. Typical producing devices are scanners and PC applications Typical consumers are printers and PC viewers A device must be able to convert between the device specific information/data formats and the e-mateπal used by the JetSend protocols. For further discussion of transport protocols, the reader is directed to US Patent Application Seπal No 60/054,047 filed on 18 July 1997 and entitled "HP JetSend Protocol Specification" and subsequent applications m the United States of Amenca and elsewhere (entitled "Method and Apparams for Device Interaction by Protocol" and "Method and Apparatus for Device Interaction by Format") claiming pπoπty therefrom. The skilled man will appreciate how appropπate device code can be generated for any specific device accordmg to the architecture and operation of the device itself. The JetSend Interaction Protocol (JIP) and the messages formmg the protocol will now be described. Use of the JSP by the JIP to allow appliances to exchange and share information will also be discussed generally and with reference to exchange of control information The JIP is made up of a small number of messages that allow any number of devices to share pieces of mformation termed surfaces accordmg to the surface exchange model. In any mteraction one device owns the surface. The owner's copy is referred to as the expression of the surface, and the owner itself is known as the expressive device. All other copies of the surface are referred to as impressions, and the devices holding them are called impressive devices. The messages provided by the JIP allow the expressive device to create and destroy expressions, the impressive devices to destroy impressions they hold, and any device to modify the ongmal surface expression. In order to implement the concept of surfaces, expressions, impressions and so forth, a list of messages has been created It is through the use of these messages that all "surface-interaction" takes place The following messages make up the Interaction Protocol. • SurfaceMsg (Impress) - creates new impressions of surfaces on target device, also used to reject requests for impressions. • SurfaceDeleteMsg (Delete) - notifies impressive devices that the expressive device has deleted the ongmal expression • SurfaceReleaseMsg (Unimpress) - notifies the expressive device that an impressive device has deleted an impression • SurfaceRequestMsg (Surface Request) - allows a device to request an impression of a named surface • DescnptionRequestMsg (Descnption Request) - allows a device to request the descnption for a surface it has an impression of • DescπptionReplyMsg (Descnption Reply) - transmits the descnption for an impression m response to a descnption request • ContentRequestMsg (Content Request) - allows an impressive device to request some content data from the expressive device • ContentReplyMsg (Content Data) - transmits some content data from the expressive device to an impressive device m response to a content request: there may be a sequence of these messages m response to a content request, and this message is also used to reject a content request • SurfaceChangeMsg (Change) - notifies a device that the information has changed (ie by expressive devices to notify impressive devices of a change, and by impressive devices to request a change of an expression - also rejections of these requests) A surface has a number of attributes. They are a name, an identifier, a class, a set of properties, a descnption, some content data and a version. The name is a NULL terminated ASCII string. The identifier is allocated to each surface and uniquely identifies it m the JIP. The class is used to determme the purpose of the surface. The set of properties controls what JIP messages an expressive device will respond to. The descnption contams a descnption of the formats the data is available m, or which the expressive device is willing to provide. The content data contams the actual bytes of the mformation itself. The version is used by the change mechanism so expressive and impressive devices know which version of a surface a change relates to. A typical mteraction proceeds as follows. First, the device with information to transfer, which will be the expressive device, creates an expression. To do this it needs to create a name, allocate a umque identifier, create a set of properties, and create a descnption. At this pomt it does not need to create any content data, although it must be able to produce the content descπbed m the surface descnption. Next, the expressive device uses these attnbutes and attempts to create impressions of this surface by sendmg a SurfaceMsg to the target device or devices. Note that such SurfaceMsgs may be sent out unsolicited or they may be sent m response to an earlier SurfaceRequestMsg received from another device. Also note that m order to create an impression usmg the SurfaceMsg, the expressive device must have a "target surface" on which to "impress" the expression. When the SurfaceMsg is in response to an earlier SurfaceRequestMsg, this target-surface identifier can be found m the SurfaceRequestMsg. If, however, the expressive device is creating an unsolicited impression, the target-surface identifier can be that of an existing impression, m which case the expression must already exist, or it may be set to the "default target" identifier. The default target identifier is sometimes referred too as the "work surface". The existence of such a default is important for proper implementation of JIP. Otherwise, there is a bootstrap problem when an expressive device is first sendmg a message to an impressive device: the expressive device does not know where to create an impression on the impressive device (of which it has no knowledge at this pomt), and the impressive device cannot conveniently tell the expressive device (without sending some kmd of global message) as it is not aware that the expressive device wishes to create an impression. The solution is the existence for all devices accepting impressions of a default or work surface with a default target identifier (m this implementation the default target identifier has been set at 1). This enables any expressive device to create an impression on an impressive device by setting the target identifier field to 1. The impressive device can then enter mto communication with the expressive device (for example, with a SurfaceRequestMsg message requestmg impressions to a new target surface). A senes of examples illustrating use of the messages of the JIP is provided below, with reference to Figures 6a to 6k. Figure 6a is essentially similar to Figure 4, but is provided as Figure 6a for convenience Example 1. Figure 6a An expressive device wishes to create an unrequested impression. First, a surface expression 121 is created. This is then impressed on the impressive device with SurfaceMsg and an impression 122 of the surface exists at the impressive device. Example 2: Figure 6b An expressive device creates a surface expression for mformation that it wishes to exchange with other appliances. In this example, the expression already exists before it is requested, but this is not necessaπly the case (for example, child surfaces may not m some cases be created until they are actually requested). The expressive device then receives a request for a surface impression m a SurfaceRequestMsg from the impressive device, and m response attempts to create the impression with a SurfaceMsg. The end result is as in Example 1, with an impression 122 created at the impressive device. Example 3: Figure 6c An expressive device creates a surface expression and attempts to create an unrequested impression on an impressive device, as m Example 1. The impression 122 is created, but is then immediately released 129 with a SurfaceReleaseMsg from the impressive device to the expressive device. The end state is with an expression 121 of the surface at the expressive device, but with no impression of the surface at the impressive device. Example 4: Figure 6d As in Example 1, an unrequested impression 122 is successfully impressed on the impressive device. The impressive device then can use the descnption in the impression 122 to determme what action to take next. In some cases, such as that m this example, the surface descnption contained m the onginal SurfaceMsg is not complete. The impressive device can then request more mformation from the expressive device with a DescnptionRequestMsg message. The expressive device replies to the DescnptionRequestMsg with a DescπptionReplyMsg, which contains the further surface description. Example 5: Figure 6e A surface descnption may contam reference to sub-surfaces, or child-surfaces, of the top-level surface (for example e-material encoded as an association will in practice always contam child surfaces. Example 5 relates to a surface A which has a child surface Al. An expression 121, 123 of each surface is provided at the expressive device (alternatively, only an expression 121 of surface A may be provided at this pomt). Surface A is then impressed on the impressive device with a SurfaceMsg. The impressive device may then request an impression of the child surface Al from the expressive device with a SurfaceRequestMsg. This request can be rejected, or accepted, m which latter case the expressive device sends a further SurfaceMsg (after first creatmg an expression of child surface Al if such an expression does not already exist). The end state is with an expression 121 of surface A and an expression 123 of child surface Al at the expressive device, and conespondmg impressions 122, 124 of surface A and child surface Al at the impressive device. Example 6. Figure 6f Once an impression of a surface is provided at an impressive device, the impressive device may request content with a ContentRequestMsg . On receivmg a ContentRequestMsg, the expressive device may reject the request or provide content 125 m the format requested. This content may be sent as a ContentReplyMsg message (as here), a seπes of ContentReplyMsg messages, or through another means such as a stream. Example 7: Figure 6g When an impressive device decides that it no longer needs an impression (for example, it is a printer, and it has corifirmed that the surface represents a document which it has now successfully printed), it can release the impression by sendmg a SurfaceReleaseMsg to the expressive device. This situation is shown m Figure 6g, which follows on from the situation of Example 6- after content has been requested by the impressive device and received, a SurfaceReleaseMsg is sent back to the expressive device to tell the expressive device that the impression is bemg "unimpressed". The expressive device will then ignore any subsequent messages that relate to the unimpressed surface. Example 8: Figure 6h An expressive device can itself delete an expression 128 It does this by sendmg a SurfaceDeleteMsg to all impressive devices which have an unpression 122 of the ongmal expression 121: the message mdicates mat the expression has been deleted, and the expressmg device will then ignore any messages relating to the deleted expression surface. Example 9: Figure 6ι The properties of an expression surface may be set so that the impressive device may or may not be able to change the expression surface (the expressive device can always do this). Figure 6ι shows a change of expression surface 126 by the expressive device. The change of expression surface is reflected by the sendmg of a SurfaceChangeMsg message from the expressive device to all impressive devices to indicate that there has been a change to the ongmal expression . This will be followed, typically, by new content requests, and possibly even new descnption requests Example 10 Figure 6 In this example, the impressive device requests a change to the ongmal expression. Again, this is done by means of a SurfaceChangeMsg. This can be either allowed or rejected by the expressive device. If the change is accepted, the expressive device sends a further SurfaceChangeMsg to all impressive devices confirming the change to the requesting unpressive device and notifying the remaining impressive devices. If the change is rejected, the expressive device notifies the requesting impressive device that the request failed. Where a requesting impressive device has successfully requested a change to the expression, it wdl generally not need to request updated content (though other impressive devices may well need to do so). This is because the impressive device will normally be able to update its own content based on the descnption change that it asked of the expressive device. The JIP runs over the JetSend Session Protocol (JSP). As discussed above, the JSP manages all aspects of a session between two devices mcludmg creating and deleting sessions as well as decidmg when a session has become unusable. The JSP also provides access to the basic addressing, reliable message transport protocols, and any other transport protocols used by the JIP. As mdicated above, JSP is discussed m detail elsewhere in other documents incorporated by reference or otherwise publicly available. The skilled man will also understand the transport requirements for a protocol of this type. Each message of the JetSend Interaction Protocol will now be specified m further detail SurfaceMsg (Impress) This message is used m three situations' first to initiate a transfer of a surface from the expressive device to another device. Secondly it is used as the response to a SurfaceRequestMsg from another device. Thirdly it is used to reject a SurfaceMsg from an expressive device. A status field- is set to indicate which interpretation is to be used. When this message is used either to initiate a surface transfer or as a response to a surface request, the sendmg device creates an entry m its surface table, so the impressive device can be notified of any changes. On receipt of the message, if the destination chooses to accept the impression, it creates an entry in its surface table associating the unpression with the expression. This allows it to notify the expressive device subsequently of when it wants to request changes to the surface or when it has finished with it. If the destination chooses not to accept the impression, then it should send back a release message to reject it and not create a table entry. Any subsequent messages relating to the "impression" should then be ignored. When a sendmg device receives a release message for an impression it should delete the entry relatmg to the impression from its table. This ensures that the device which released the impression will not receive any messages related to the impression. There is a short peπod between the sendmg of an impression and the receipt of a release message rejecting it. Duπng this penod the expressive device may consider the impression to exist. This will not cause any practical problem, as the issue will be resolved at the receivmg end: the "impressing device" is required to ignore messages relating to impressions which it has not accepted, or which it no longer has. The message provides a source surface identifier: this is an identifier allocated by the expressive device to the surface which is unique for the time between when the first impression is created and the last unpression is unimpressed. This identifier is used by the protocol to identify a surface uniquely The values 0 and 1 are reserved 0 meaning a NULL surface and 1 bemg used to designate the "default target" surface expression (used for the work surface, as discussed above) Also provided is the source surface class: this is the class of the source surface Class is used to determme the use of the surface. The use of each class is addressed further below m the context of control. It is possible that devices will not be able to handle specific classes of surface: such devices may be configured either to ignore all such surfaces or to treat all surfaces of that class as surfaces of a different class which the device is configured to handle. The protocol maintains a version number for each surface m use, also identifed m the message. This is updated each time the expressive device changes the surface. The properties of the surface bemg impressed are also identified. The values for this field and their associated meanings are set out m Table 1 below Value Meaning 1 The expressive device will respond to a SurfaceMsg on this surface 2 The expressive device will accept a SurfaceChangeMsg from an unpressive device Table 1: Properties of surface impressed with SurfaceMsg This could be extended in other implementations by addmg a value of 3, for which the expressive device will both respond to a SurfaceMsg and accept a SurfaceChangeMsg. Also provided is a field mdicatmg the surface identifier for the target surface If this value is set to 1, then the target is assumed to be the default target surface, or work surface, of the destination Otherwise, this field must contam the surface identifier from an earlier impression of a target surface. A status field identifies the status of this SurfaceMsg. The following values are defined. Value Meaning 0 This is an unsolicited SurfaceMsg 1 This is an impress m response to a SurfaceRequestMsg. The request identifier field is set to the coπesponding request identifier 2 This is a rejection of a previous SurfaceRequestMsg. The request identifier field is set to the correspondmg request identifier Table 2. Defined values for SurfaceMsg status There is also a request identifier field- for a SurfaceMsg which is a result of a previous SurfaceRequestMsg, this field will be set to the request identifier contained m the correspondmg surface SurfaceRequestMsg For all other situations this field should be set to 0 Also provided is an impress identifier field, this is a unique identifier that is allocated by the expressive device It can be used to distinguish between different impressions of the same surface Note that this identifier need only be unique for each impression of a surface. Impressions of other surfaces may use the same identifier. Thus, while expression identifiers are unique across all local surfaces, an impress identifier need only be unique within the set of impressions related to a specific local surface A further field is the target address: the target address is the Session Protocol address of the target device. Impress operations always have a target device and a target surface. In most transactions only a source and a target are mvolved However the protocol allows one device to impress an impression from a second device onto an impression from a third device. In this case the third device can only be identified by its JetSend Session Protocol address. Hence the protocol allows an explicit specification of the target devices Session Protocol address. In the case where the target address is the same as the destination of the SurfaceMsg the address length field should be set to 0 and no target address should be mcluded. The use of SurfaceMsg m response to other messages is summarised in Table 3 below Table 3: SurfaceMsg in response to other JIP messages SurfaceDeleteMsg (Delete) This message is used by an expressive device to notify unpressive devices that the expression has been deleted. When an expressive device deletes an expression, it must notify all impressive devices which hold an unpression of the delete It should also delete the entnes for the expression and all impressions of it from its surface table. It must ignore any subsequent messages relating to the expression or any of its impressions. When an impressive device receives a delete message, it should delete all entπes relating to impressions of the deleted surface from its surface table. It should no longer generate any messages relating to these impressions. There will be a short penod between the expressive device issumg this message and the impressive device receivmg it and deleting the impression from its surface table. The impressive device may therefore send messages relating to the expression duπng this peπod, but no practical difficulty results as the expressive device will ignore any messages relatmg to expressions that it has deleted This message requires a deleted expression identifier: this is the surface identifier of the surface which the expressive device is deleting. The expressive device will ignore any subsequent messages containing this surface identifier. As the protocol is asynchronous, there may be messages referring to this surface which are still m the network. SurfaceReleaseMsg (Unimpress) This message is used by an unpressive device to notify the expressive device that the impression has been unimpressed. When an impressive device no longer requires an unpression, it deletes it from its surface table and sends the expressive device a SurfaceReleaseMsg message. The unpressive device must then ignore all messages relatmg to the deleted impression. It is possible that a device has multiple impressions of the same surface, in this case, the impressive device will only ignore messages where they relate specifically to the unimpressed unpression. When an expressive message receives such a message, it should delete the entry relating to that specific unpression from its surface table. It should no longer send any messages relating to that impression to the relevant impressive device There will be a short peπod between the impressive device issumg this message and the expressive device receivmg it and deletmg the entry from its surface table. The expressive device may therefore send messages relatmg to the impression during this period, but no practical difficulty results as the impressive device will ignore any messages relatmg to expressions that it has unimpressed. This message requures an unimpressed expression identifier: this is the surface identifier for the expression of which an impression has been unimpressed by the impressive device. If this is the last remammg impression of the expression on the impressive device, then that device will ignore all subsequent messages involving this surface identifier. Also required is an unimpressed impress identifier: each SurfaceMsg is allocated a unique identifier by the expressive device. This allows devices to distinguish between multiple impressions of the same surface. When an unpression is bemg unimpressed, the use of the impress identifier m the SurfaceReleaseMsg allows the expressive device to determme which impression was unimpressed. The use of SurfaceReleaseMsg m response to other messages is summansed m Table 4 below. Table 4: SurfaceReleaseMsg as response to other messages SurfaceRequestMsg (Surface Request) This message is used by a device to request an unpression from anomer device. The message requests one device to create an unpression on the requestor. The name may or may not be a valid surface name on the remote device. If the name is valid, the remote device should create an unpression on the requestor: if the name is not valid, the request should be rejected. The target surface identifier must be a valid identifier for an expression of which the remote device has an impression: otherwise, the request will be rejected. When an expressive device receives a surface request, it should if necessary create the requested surface and use the impress message to impress it on the requesting device. Alternatively if the request is invalid, the expressive device should reject the request. The request identifier m the impress or reject message must be the same as the request identifier in the ongmal request message Required for this message is a source surface name: this is the name of the surface of which the device wants an impression. The name is a NULL-termmated ASCII string. Also required is a source surface class: this is the class of the surface of which the device wants an impression. Two expressions may have the same name, and be distinguished by their respective classes. A target surface identifier is also required, as is a request identifier so that the surface request can be identified umquely. Use m relation to other JIP messages is summansed in Table 5. Table 5: SurfaceRequestMsg as response to other messages DescnptionRequestMsg (Descnption Request) This message is used by an impressive device to request the descnption for a surface of which the device has an impression. The impression identifier must be a valid unpression held by the requesting device When the expressive device receives a request for further descnption it should use the descnption reply to return the requested descnption. Descnption requests may not be rejected, although the resulting reply may contam no data. An impression surface identifier and a unique identifier for the request are required. Table 6: DescnptionRequestMsg as response to other messages DescnptionReplvMsg (Descnption Reply) This message is used to return a descnption for a surface m response to a DescnptionRequestMsg message. The result of a bad request should contam no data, mdicatmg that there is no more descnption for that specific request. There is no possibility of "rejectmg" a descnption request, as a device which provides an unpression of a surface has to be prepared to provide a complete descnption of that surface. The descnption reply must contam the request identifier from the description request to which it is a response. Table 7 DescnptionReplyMsg as response to other messages ContentRequestMsg (Content Request) This message is used by an impressive device to request some content data from an expressive device The unpression identifier must be a vahd impression held by the requesting device. A source surface identifier and a unique identifier for the request are required: mformation can also be provided to establish a separate communication channel for the content. Table 8 ContentRequestMsg as response to other messages ContentReplyMsg (Content Data) This message is used by an expressive device to send some content data to an unpressive device. There may be a sequence of content data messages m response to a smgle content request. This message is also used to reject a request for content data. If the content provider is providing the data over a stream, it sets the stream field to the stream identifier and leaves the content length and data empty. If the content provider does not support streams, or is unable to use a stream for this purpose, it sets the stream identifier to 0 and transmits the content data as a senes of content reply messages: m this case, the content length and data are used to convey the contents of the message. Typically, the ContentReplyMsg will only be used to reject a content request if the content provider can no longer satisfy the request for mtemal reasons, or if the request is invalid. In all cases, the request identifier m the reply must be set to the request identifier contained m the ongmal request. When a device receives a content reply it must first determme if the reply is a rejection. If so, the device has to make a decision as to its next action. If the reply is not a rejection, then the device must determme if the content is bemg supplied over a stream or not If the content is bemg supplied over a stream, it should be read from there: if not, then the content should be read from this and subsequent replies which have the same request identifier (as transport is ordered such replies will be in sequence, and the status field will identify the final reply m the senes). A source surface identifier and a request identifier are required. A status field is provided, with legal values set out in Table 9 below. Value Meaning This is a ContentReplyMsg contammg content data - there will be more blocks coming for this request 1 This is the last ContentReplyMsg with data for this request id. 2 This is a ContentReplyMsg rejecting the correspondmg content request. The content data will be empty. Table 9: Legal values of the status field for ContentReplyMsg Use of ContentReplyMsg m response to other JIP messages is set out m Table 10 below. In response to: Purpose Explanation ContentRequestMsg Sends content to requesting An impressive device requestmg content will device. send a ContentRequestMsg to the expressive device. If the ContentRequestMsg signals that the data should come over a message channel, the expressive device can then send the requested content through the use of the ContentReplyMsg. The expressive device may send one or more ContentReplyMsgs to satisfy the request. ContentRequestMsg Rejects the request for content An expressive device may reject the request for content by sendmg a ContentReplyMsg with the status value field of the header set to 2 across the message channel. Note that this is the procedure used for rejecting all content-requests, mcludmg those requesting that the data be sent over a stream channel. Table 10. ContentReplyMsg as response to other messages SurfaceChangeMsg (Change) This message is used for three purposes: first, by an expressive device to notify impressive devices of a change to a surface; second, by unpressive devices to request a change to an expression; and third, to notify an unpressive device of a failed request to change an expression. When an expressive device makes a change to one of its expressions, it must notify all impressive devices of the change. It does this by looking up the unpressions m its surface table and sendmg each impressive device a change message. Where a device has multiple unpressions, it is not necessary for a change message to be sent for each unpression: the impressive device maintains a link between the expression and the impressions. When an impressive device receives a change message, it needs to perform the change on each of its impressions of the changed expression. In some cases the change message contams the change itself, whereas at other times the message may only contam a notification and the impressive device has to re-fetch the content for the changed surface. If the expressive device knows the encodmg of content requued by each impressive device, then the expressive device can be configured to provide separate change messages each containing the content m the form required by the relevant unpressive device. When an impressive device wants to make a change to one of its impressions, it must use the change message to send a request for the change to the expressive device. The unpressive device must mclude m the message the version of the expression to which die requested change applies. On receiving a change request message, an expressive device must decide whether to accept the change or reject it The decision can be based on the version and the nature of the request. An expressive device notifies the requestor as to whether the change is accepted or rejected through a change message with the appropnate status set. The expressive device also notifies all the impressive devices of an accepted change usmg the change message, as previously descnbed. An unpressive device which issues a successful change request will thus receive two notifications of the change, one bemg the change acceptance (sent specifically to it), and the other is the change notification, which is sent to all devices with impressions of the expression. These messages can be identified as relating to the same change from either the request identifier or the version information. The expression identifier of the surface bemg changed is requued Also required is an ongmal surface version: each surface has a version number to allow an expressive device to determme what version of a surface is bemg changed and what state impressions of a surface are in. This field contams the version number of the surface before this change was apphed. Also required is new surface version: when an expressive device issues a SurfaceChangeMsg to notify unpressive devices of a change to a surface, this field contams the new version number of the surface after the change was apphed. This allows the expressive device to skip version numbers. Otherwise this field should be set to 0. A status field is provided, with values as set out in Table 11 below. Table 11 Legal values of status for SurfaceChangeMsg The use of SurfaceChangeMsg m response to other JIP messages is summansed m Table 12 below Table 12. SurfaceChangeMsg as response to other messages The use of these messages m the context of control will now be descπbed with respect to two aspects of a control policy. Typically, each policy relates to a group of surfaces of a given class: control surfaces consequently have a specific class (or may be given a group of classes) Within a given policy, surfaces of a given class are distinguished by name or by the context m which they appear Such surfaces are here termed "well-known surfaces" because they have a known meaning to devices that exchange them. Policies are generally optional. If two devices support a particular policy they will exchange mformation implementing that policy. If only one device mvolved m a session supports a policy, that policy will be ignored. It is entirely possible for control to be achieved usmg JetSend with a different set of messages to those mdicated below: this control policy merely provides an effective example of how control can be achieved The first aspect of the policy is the provision of a "control panel" at a controllmg device which provides the user with the capability to determme the parameters of the controlled device. This provides essentially steps 21 and 22 of the geneπc control operation shown m Figure 2. The messages employed are illustrated m Figure 7, which is descπbed m detail below. Figure 7 shows a controllmg device 12 and a controlled device 11, and illustrates the steps mvolved m the communication process between them. Firstly, m step 91, each device is initialized to enable exchange of control mformation. in essence, each device must be connected and aware of each others existence- a session is established between the devices. The process is initiated by the controllmg device 12, which mdicates a desire to control the controlled device 11 by sendmg a SurfaceRequestMsg m step 92 for a control surface from controlled device 11. Different mechanisms can be established to ensure that the coπect surface is requested: an appropπate solution is for the default surface of the control class to be requested (alternatively, the controllmg device 12 may already have been provided with an identifier for the appropπate control surface of controlled device 11) Controllmg device 12 requires no knowledge of the function of controlled device 11 all it requires is a means to ensure that it receives the appropπate surface. Controlled device 11 receives this request and responds, m accordance with the protocol, with a SurfaceMsg m step 93 to impress its control surface upon controllmg device 12. This control surface contains the choices for a senes of parameters requured for control of controlled device 11, together with information necessary to enable the user to make a selection from these choices: impression of this surface is effectively step 21 from Figure 2 This mformation may be provided m different encodmgs and negotiation through a data format hierarchy may require one or more parrs of DescnptionRequestMsg and DescnptionReplyMsg messages- the e-matenal associated with such a SurfaceMsg message is discussed at a later pomt where encodmgs for control mformation are discussed. An encodmg choice is made by the controllmg device 12 m step 94 with the sendmg of a ContentRequestMsg message for a chosen data format. This is followed with a ContentReplyMsg from the controlled device 12, which provides all the control data: this identifies all the parameter choices to be made and provides any supporting mformation. The controllmg device 12 now has available all the information necessary for provision of control mformation, which will generally be m the form of a control panel display for a user. It should be noted that the control panel may comprise a plurality of surfaces (a parent surface with one or more child surfaces), m which case a number of surface and content requests and replies will be required for this step to be completed. Processmg of the information to provide such a display follows m step 96, which corresponds to step 22 m Figure 2 The provision of such a display from e-mateπal is discussed further below- however, it is important to mdicate at this pomt that the nature of the display itself may be highly dependent on the display functionahty of controllmg device 12. This may be reflected m either the encodmg negotiated between die devices, or m the manner m which the controllmg device is able to display control information of a particular type: both will be discussed further at a later pomt. The controllmg device 12 thus renders the mformation received m the form of a virtual control panel for controlled device 11 Controllmg device 12 clearly requues a user mterface sufficient that a user can interact with the virtual control panel to select parameter values. Controllmg device 12 then needs to pass these selections back to the controlled device 11 The controllmg device 12 needs have no knowledge of the meaning of a particular parameter (for example, what it means for a paramater labelled "Power" to be set to ON), but it does need to have an understandmg of the types of operation which a user is allowed to make: however, this should be provided in the e-mateπal already provided by the controlled device 11. A second aspect of the control policy relates to these steps of passmg user selections back to the controlled device, correspondmg to steps 23 to 25 m Figure 2. This aspect is illustrated m Figure 8, and discussed further below User mteraction with the virtual control panel has given nse to a parameter choice selection which is to be passed back to the controlled device 11 This is accomplished with a SurfaceChangeMsg message in step 101: as the controllmg device 12 has only an impression of the control surface, it cannot make changes itself but only request the controlled device 11 to make changes to the expression, which it owns. Although not explicitly discussed above with respect to SurfaceChangeMsg, this step may be followed with additional steps providmg change content: however, the most practical approach will generally be to identify all changes requured m the SurfaceChangeMsg The controlled device 11 is now able to accept or reject the changes to the control panel with a further SurfaceChangeMsg m step 102. If the choices offered by the controllmg device 12 are legal and can be understood by the controlled device 11, the change to the control surface identified with the ongmal SurfaceChangeMsg will generally be accepted. If requured, further content may be provided by the controlled device at this pomt. The virtual control panel will generally reflect the current parameter choices, and local updating from the updated surface will be requured after any accepted change at both controllmg and controlled devices: at the controlled device 11 to change the device function accordmg to the selected parameter choices, and at controllmg device 12 so that the virtual control panel reflects the choices adopted. The nature and format of e-mateπal will now be bnefly described, after which e-matenal types and considerations useful m aspects of the mvention will be discussed As previously mdicated, e-matenal is the form m which a surface is expressed E-matenal compnses both descnption and content. The descnption is used by JetSend to negotiate the exchange of content. The description sets out die attnbutes of the surface. These attributes typically form a hierarchy of choices encompassmg a number of attribute levels. These attributes indicate how information can be conveyed: the content itself is the perceivable information to be transferred. A successful exchange of a surface between appliances requires that each attπbute level descπbmg the surface be identified and processed. The process of identifymg and processmg these levels between the appliances is called negotiation Once the complete surface descnption has been negotiated, the surface content is exchanged. The exchange of a surface between two JetSend appliances involves surface mteraction messages as defined m the JIP. A surface description may be completed usmg descnption requests and descnption replies. The surface content exchange is completed usmg content requests and content replies. Under limited circumstances, surface content may be mcluded m the surface descnption; this is called m-lme content With m-lme content and a small description, an exchange may require only a smgle message. More commonly several messages are exchanged. E-mateπal is provided m the form of e-mateπal blocks. At one level an e-matenal block can be represented in a two column table with attnbute names in the first column and attπbute values m the second column. An attπbute name is a smgle specific keyword: an attπbute value is a value, or a number of values, associated with an attπbute. When an attnbute value is specified as a list of values, they appear as a space-separated list in the value field. The attπbute-value pairs which appear m the e-mateπal block are applicable to some portion of a JetSend surface. These attπbute- value pairs may apply to the whole surface or to a specific portion of the surface. All attributes and some values are drawn from a limited set of predefined keywords. These are denoted m this specification by a "v" prefix such as vEncoding. Some values are drawn from a set of data types These are denoted m this specification by an "em" prefix such as emListType. In this specification, there are a number of representational types defined to simplify the discussion of the grammar-like structure of JetSend surfaces: these will be mdicated by appropπate identifiers, generally m the value field Certain attnbutes are associated with a set of values which offer a selection. Each set of values is called a selection list. Selection lists appear as a space-separated list m the value column of a two- column table. Duπng the negotiation process, each attnbutes takes one value from the selection list The selection of each value lends to the identification and processmg of each attnbute level of die surface descnption. For convenience m this implementation, it is made a rule that attnbute data that can be lists must be encoded as lists - even if they contam only one value. As the levels are identified and processed, the attnbutes which take selection lists and the selected values are enumerated m an e-matenal block. Attributes which do not take selection lists are omitted. This e-matenal block is called a decision block, smce it represents the decisions as to the specific attributes of the e-matenal. The descnption request and content request mclude an e-mateπal block which mdicates the attnbutes of the e-mateπal bemg requested. An attπbute block is an e-mateπal block which sets out all the attribute-value pairs pertaining to a specific attπbute level of the surface descnption A surface descnption block is an ordered set of attπbute blocks. A surface descnption block may be represented as a three-column table with attnbute blocks occupymg the last two columns. The first column of the table contains a decision pa± applicable to each attnbute block. A decision path is constructed usmg the values from the decision block. These are concatenated together m a dot notation m the same order as me attnbute blocks. Thus an attπbute block applicable to an image might be qualified by a decision path such as vlmage.vGray 8 (300,300) vRLE, mdicatmg that it is a run-length encoded image with 300 by 300 dpi resolution and 8 bits per pixel gray scale. This notation descπbes the composition of the surface which is called the encodmg hierarchy. The root of this hierarchy is called the null level. The encodmg hierarchy forms a tree-like structure. Each node m this structure is an attπbute level. A level is terminal if none of the attnbutes that it contains takes selection lists or requires further descnption. The decision path gives the set of decisions down the tree to the level mdicated m the encodmg hierarchy field. Each value m the decision path mdicates descent to a next level down the encodmg hierarchy tree, and the last value m the decision path is the name of the attπbute level. A surface descnption is known to be complete when the level m the encodmg hierarchy is known to be terminal. Some surfaces within the surface hierarchy have one or more child surfaces These child surfaces are organized m one or more ordered child lists which are distinct for each parent surface. A child list may be well characterized, such as a list of images and text blocks on one side of one page. However it may not be fully available at any given tune. Consider a stack of pages bemg scanned by a multi-page scanner While a number, designation, and content exists for each page, die child list which reflects the composition of d e stack is not so readily available at any given time. Such surfaces may not be created until they are requested, or at some other future time appropπate for relevant device operation. The child list when characterized gives the names of the child surfaces related to a parent surface. In the surface descnption table, this is called a reference list. A decision path is constructed from the values m a decision block. These values are m turn taken from selection lists. The encodmg hierarchy is expressed in terms of these decision paths. The decision paths are used to identify the level of each attπbute block. Further details of the e-mateπal grammar and terminology are provided m US Patent Application Senal No 60/054,047 filed on 18 July 1997 and entitled "HP JetSend Protocol Specification" and subsequent applications m the Umted States of Ameπca and elsewhere (entitled "Method and Apparatus for Device Interaction by Protocol" and "Method and Apparatus for Device Interaction by Format") claiming pnoπty therefrom, and also m other publicly available matenal such as the World Wide Web site http://www jetsend.hp com/. To ensure that JetSend appliances communicate under all circumstances, specific decision padis must m general be present. These are called default encodmgs. Sendmg appliances must be able to produce e-mateπal with the attnbutes descnbed by these default decision paths. Similarly receivmg appliances must be able to interpret e-mateπal with these charactenstics. Default encodmgs are present to ensure that appliances will exchange e-matenal under normal conditions. These encodmgs are the lowest common charactenstics. (It should be noted that this does not necessanly apply to the change of an existing surface: if a surface with an impression, such as the controllmg device 12 m the control policy discussed above, requests a change through a SurfaceChangeMsg message, it is not sensible for the message to be requured to relate to any encodmg other than that already selected for the impression ) Base encodmgs are recommended decision paths which permit appliances to exchange e-mateπal with a higher degree of fidelity. Other attnbutes and values are considered optional. The default encodmgs are decision paths, each element of which comes from a selection list. Associated with each selection list is an attnbute. Each of the attnbutes whose values make up a default encodmg must be present m the surface descnption. The application of these principles to control will now be discussed. Firstly, necessary and optional features of a control encodmg will be considered For a control encodmg to be useful, it is necessary for it to be able to address two basic requirements. One of ese requirements is for the encodmg to represent the control panel m such a way that it can be rendered on an appliance other than that from which it oπgmates. The other is that the encodmg must define a way of representmg changes made to the control panel m such a way mat the device receivmg the representation of the change can interpret the representation of the changes unambiguously. Other features are desirable, rather than essential. One is for the encodmg to be useful for a range of platforms. This is not essential, as alternative encodmgs can be offered, provided that at least one encodmg is offered that can be understood by any possible controllmg device. While an ideal encodmg should allow the virtual control panel to be displayed and manipulated on as many different appliances as possible, there is a trade-off between the capabdity to allow user-mterface designers to specify precisely the appearance and behaviour of a user mterface, and the achievement of a degree of abstraction sufficient to enable the virtual control panel to be rendered on devices with a wide range of capabilities. However, even with highly specific encodmgs, it is mtended that device capabilities (eg screen size, input device) should determme whether an encodmg can be accepted, rather than device type features such as device operatmg system. High levels of abstraction allow for a wide range of representation possibilities for devices of different capability: this will be discussed further below with respect to a choice of mandatory encodmg for control, Control Script. A further desirable feature is for the encodmg to require little data to represent the virtual control panel and any changes made to it. As the bandwidth of any communications channel is finite, and as the network mdependence of JetSend means that it could be employed over substantially any communications channel, dns feature is desirable to minimise the likelihood of very long response tunes m establishing and usmg the virtual control panel. It is not essential for the operation of control in JetSend that a negotiation as to encodmg occurs: it is possible for all control operations to be specified under a standard Control Scnpt encodmg and m such a way that only one Control Scnpt is provided. However, it is desirable for a plurality of encodmgs to be provided to enable optimal display to be made for different devices: an example of an alternative encodmg here is HTML, and elements of an HTML encodmg are bnefly descπbed after the discussion of Control Scπpt Another useful encodmg choice employs Java applications to describe the control choices and their presentation. It is also often desirable for negotiation to occur for a given encodmg: for example, if Control Scnpt is requested, different Control Scnpt content may be provided accordmg to the capabilities of the controllmg device 12, as could be established through negotiation. Control Script will now be discussed. Control Scnpt is adapted to descnbe a senes of control options, rather than attempting to define the appearance of a control panel. A minimal number of assumptions about the display or input capabilities of the controllmg device are made: consequently even a very simple controllmg device can be used for a complex and sophisticated controlled device Controllmg devices capable of sophisticated mteraction are however capable of usmg the Control Script descnption to provide user interfaces appropπate to their capabilities. Control Scπpt can thus be used as an encodmg for any controllmg device, from a minimal controller to a data glove or a virtual reality headset. As Control Scπpt is mtended for use as a mandatory encodmg, it is adapted for use with a minimal user mterface. Obviously, it is advisable to require certain features of a minimal user mterface: it will not be practical to design an encodmg suitable for conttol with, say, one LED and one button (m principle such an encodmg could be designed and used m accordance with the mvention - it would however only be useful m certain limited contexts) as the mandatory control encodmg, as such an encodmg would be extremely inefficient for most control panels. The limit chosen for Control Scnpt is a display capable of showmg two lmes of sixteen alphanumeπc characters, together with four control buttons. A computer simulation of such a display is provided in Figure 9. The minimal display 201 of Figure 9 has a first display lme 206 and a second display lme 207. To the left and nght, as implemented here, of the first display lme 206 are first button 202 and second button 203. To the left and πght, as implemented here, of the second display lme 207 are thurd button 204 and fourth button 205. The proposed method of use of such a minimal display is for a parameter label to be displayed on first display lme 206 with a choice for that parameter bemg displayed on second display lme 207. First and second buttons 202, 203 are used to move backward and forward respectively through the parameters available for selection. Third and fourth buttons 204, 205 are used to move backward and forward respectively through the choices available for the parameter mdicated m the first display lme 206. An exemplary grammar for Control Scnpt is now mdicated. It is clear from the above descnption of the minimal appliance user mterface that parameters can only take one of two types of value: a text string chosen from a list of possibilities (an enumerated choice), or a number set between upper and lower limits (a range). A grammar is not here explicitly defined, but is illustrated with examples for each of these types, with Control Scnpt shown m italics. Enumerated Choices: Channel: [BBC1/BBC2/ITV/C4] This scπpt mdicates mat the user may choose between a number of options. In this case the parameter labelled "Channel" may take on the value of "BBC1", "BBC2", "ITV" or "C4". The symbols "[" and "]" delimit the start and end of the values available, and / mdicates a logical exclusive OR. "." is used to link a parameter and its available values. Ranges: Copies [1 10] In this example, the parameter labelled "Copies" is to have a user selected value between 1 and 10. The grammar may be defined such that tins has to be an mteger value Mixed Types: Volume [Mute/ 1 10] A range may be an element m an enumerated choice list. Here, "Volume" may take on the value "Mute" or a number between 1 and 10. Aggregation of Controls. Television! Power [on/off] & Volume [Mute/ 1 10] & Channel [BBC1/BBC2/ITV/C4] ] In this scnpt, a number of controls have been combined together to form a group usmg the "&" symbol to mdicate a logical AND operation. The outer brackets are used to define a meta-control, Television: this meta-conttol (which could here act as the label for the virtual control panel) consists of a control "Power" which can take the values "on" and "off and "Volume" and "Channel" controls as descnbed above Complex Controls Camera[ Manual [ Aperture [1 50] & Shutter Speed [1 50] ] / Pre-set [Pre-set 1 /Preset 2/Pre-set 3] / Automatic J This complex control for a simple camera is obtained by combmmg the features descπbed above. The user can choose to set the camera to be m any one of three different modes. In "Manual", the user must specify values for both aperture and shutter speed, whereas m "Pre-set" the user must choose from three pre-set modes and in "Automatic" no further user mput is requured. The application of these scπpts to the minimal user mterface is straightforward. For example, for the camera example above, only die parameters arising for the default choice could be initially presented as options scrollable with the buttons, other parameters appearing when a different choice is made for the camera mode. For a more nchly specified user mterface (havmg buttons, pull-down menus, sliders, radio buttons, duectory trees etc.), it is necessary for a set of rules to be put mto place to allow an appropπate user mterface to be generated. Such a set of rules can be device-specific (or user mterface specific) as it relates only to how the displaying device itself displays different classes of mformation (regardless of the actual information content). Style guides for common user interfaces are available, and by imposition of additional rules the skdled man would appreciate that these can readily be converted mto a process for automatic user mterface generation. Examples m the literature are provided by Olsen D. in "A Programming Language Basis for User Interface Management", Human Factors in Computing Systems, CHF89 Conference Proceedmgs, May 1989, pp 171-176, which relates to generation of a Macmtosh user mterface from embedded Pascal, by Wiecha, C. et al m "Generating Highly Interactive User Interfaces", Human Factors m Computing Systems, CHI'89 Conference Proceedmgs, May 1989, pp 277-282 and by Zanden, B. Vander and Myers, B.A. m "Automatic, Look-and-feel mdependent Dialog Creation for Graphical User Interfaces" Human Factors m Computing Systems, CHI'90 Conference Proceedmgs, Apπl 1990, pp 27-34, which both relate to creation of Motif dialog boxes; by de Baar, D et al m "Coupling Application Design and User Interface Design", Human Factors m Computmg Systems, CHI'92 Conference Proceedmgs, May 1992, pp 259-266 which relates to the OpenLook GUI; and by Johnson, J. m "Selectors- Gomg Beyond User-Interface Widgets", Human Factors m Computing Systems, CHF92 Conference Proceedmgs, May 1992, pp 273-279, which relates to semi-automatic construction of user interfaces from objects classified accordmg to then mterface semantics rather than their appearance As an example of automatic generation of a virtual conttol panel from Control Scπpt for a πcher user interface, a pseudocode program is provided below which generates a dialog box accordmg to die following sets of rules. Control Choice As Control Scnpt contams no mformation about user mterface controls, the programmer is free to make a sensible choice for the user mterface concerned. 1 Any parameter that is descnbed by a range only is represented by a slider bar labelled with the parameter name. 2. Any parameter that has 5 or more simple choices (ie choices that do not tiiemselves require further controls to be set) is represented by a list box. 3. A parameter descπbed by a choice of a range or a smgle alternative is represented by a slider bar and a check box. 4. Any remammg parameter is represented by a collection of radio buttons Layout of Controls Similarly, the programmer is free to choose sensible rules for layout. 1. Controls are placed from top to bottom of the dialog box, m the order that they appear m the Control Scnpt. 2. Controls whose use is dependent on otiier controls bemg set (sub-controls) are indented with respect to their "parent" control. 3. The dialog box is resized to accommodate the controls within it. The pseudocode parses a control scnpt mto an alternative data structure, then from this data stracmre and the set of basic rules above, calculates which of a set of widgets to represent each control element with. It then calls a set of functions (not given here) to generate these widgets and place accordmg to die rules above on a dialog box The pseudocode is not specific to a particular operating system, but the man skilled m the art will readily understand how to apply this pseudocode to a given operation system, such as Microsoft Wmdows /* ControiElementType - structure used represent each element in the Control Script * / struct { String Name; ControiElementType * NextSιbling; ControiElementType *PrevSιblιng; SelectorType *ParentSelector; SelectorType "ChildSelector; ControlWidgetType Widget; } ControiElementType; / * SelectorType - structure used to link a Control Element to the various values it can take * / struct { SelectorType *NextSelector; SelectorType *PrevSelector; ControiElementType * ParentControl Element; ControiElementType * ParentControlEiement, } SelectorType; /* ControlWidgetType - union of all available types of control elements (widgets, etc) * / union { "GROUP_OF_RADIO_BUTTONS" "SLIDER_BAR" "CHOICE" ControlWidgetType; /* * * MAIN FUNCTION ***/ MainQ { ControiElementType *TheControlStructure; TheControlStructure = ParseControlFromStπng(ControlScrιpt, NULL), AnalyseControl(TheControlStructure); CreateControlWιdget(T eControlStructure), ResιzeDιalogBoxToFιtControls(....), } / * ** PARSE THE CONTROL SCRIPT INTO A DIFFERENT DATA STRUCTURE •** / ControiElementType* ParseControlFromStrιng(Strιng "ControlScπpt, void * ParentSelector) { // Read the next Symbol from the control script String Symbol(GetNextSymbol(TheStrιng)); // Initialise the record of this Control Element p_ControlElement = new ControiElementType, p_ControlElement->Name, Symbol); p_ControlElement->NextSibling = NULL; p_ControlElement->PrevSibling = NULL; p_ControlElement->ChildSelector = NULL; p_ControlElement->ParentSelector = ParentSelector; p_FirstControl = p_Control; // Read the next Symbol from the control script String Symbol(GetNextSymbol(TheString)); while ( (Symbol != "]") && (StriπgLength(TheControlScript)>0) ) { // While not the end of the Control Element or the end of the Control Script if (Symbol == "[") { // Create a new Selector to be the child of this Control Element p_NewSelector = new SelectorType; p_ControlElement->ChildSelector = p_NewSelector; p_NewSelector->NextSelector = NULL; p_NewSelector->PrevSelector = NULL; p_NewSelector->ParentControlElement = p_ControlElement; p_NewSelector->ChildControlElement = ParseControlFromString(TheControlScript, p_NewSelector); } else if (Symbol == "|") { // Create a new Control Element to be a sibling to this Control Element p_NewControlElement = new ControiElementType; p_ControlElement->NextSibling = p_NewControlEiement; p_NewControlElement->PrevSibling = p_ControlElement; p_NewControlElement->NextSibling = NULL; p_NewControlElement->ChildSelector = NULL; p_NewControlElement->ParentSelector = ParentSelector; p_NewControiElement->Name = GetNextSymbol(TheString)); p_ControlElement = p_NewControiElement; } else if (Symbol == "&") { // Create a new Selector to be a sibling to the current Selector p_NewSelector = new SelectorType; p_CurrentSelector = p_ControlElement->ParentSelector; p_ParentControlElement = p_CurrentSelector- >ParentControlElement; p_CurrentSelector->NextSelector = p_NewSelector; p_NewSelector->PrevSelector = p_CurrentSelector; p_NewSelector->NextSelector = NULL; p_NewSelector->ParentControlEiement = p_ParentControlElement; p_NewSelector->ChildControlElement = ParseControlFromString(TheControlScript, p_NewSelector); } // Read the next Symbol from the control script String Symbol(GetNextSymbol(TheString)); } return p_FirstControl; } /*** DETERMINE WHICH WIDGET TYPE TO USE FOR EACH CONTROL ELEMENT * * */ ControlWidgetType AnalyseControl(ControlElementType *ControlElement) { TheSelector = ControlElement->ChildSelector; if (TheSelector != NULL) { // if the Control Element has at least one Child Selector; NumberOfChoices = 0; NumberOfRanges = 0; NumberOfSubControls = 0; do { SubControl = TheSelector->ChildControl; do { ControlType = AnalyseControl(SubControl); if (ControlType = "RANGE") { NumberOfRanges++; } if (ControlType = "CHOICE") { NumberOfChoices++; } if (ControlType, "SUB_CONTROL") { NumberOfSubControls++; } } while( (SubControl = SubControi->NextSibling) !=NULL ); } while( (Selector = Selector->NextSelector) !=NULL ); if ((Ranges==1 )&&(Choices==0)) { // This control element will be represented by a slider bar; - ControlElement->Widget = "SLIDER_BAR"; } if ((Ranges==1 )&&(Choices==1)) { // This control element will be represented by a slider bar and a check box; ControlElement->Widget = "SLIDER_BAR_AND_CHECK_BOX" } if ((Choices<5)&&(Choices>1 )) { // This control element will be represented by a group of radio buttons; Control Element->Widget = "GROUP_OF_RADIO_BUTTONS"; } if ((Choices>=5)) { // This control element will be represented by a list box; ControlElement->Widget = "LIST_BOX"; } if (Controls>0) { // This control element will be represented by a label only; ControlElement->Widget = "LABEL"; } return "SUB_CONTROL"; } else { int Min, Max, Value; if (sscanf(ControlElement->Name, "%d..%d..%d", &Min, &Max, &value)==3) { ControlElement->Widget = "RANGE"; return "RANGE"; } else { ControlElement->Widget = "LABEL"; return "CHOICE"; " CREATE THE WIDGET FOR EACH CONTROL ELEMENT *** / void CreateControlWidget(ControlElementType* ControlElement) { DistanceFromTop = 10; IndentFromLeft = 10; if (ControlElement->Widget == "LABEL") { if (Control Element->ParentSelector != NULL) { if ( (ControlElement->NextSibling==NULL) && (ControlElement- >PrevSibling==NULL) ) CreateLabel(ControlElement->Name, ...); else CreateRadioButton(ControlElement->Name, ...); PreviouslndentFromLeft = IndentFromLeft; IndentFromLeft += 20; DistanceFromTop += 20; } Selector = ControlElement->ChildSelector; do { NewControlElement = Selector->ChildControlElement; do { CreateControl(NewControiElement); } while( (NewControlElement = NewControlElement->NextSibling) != NULL ); }while( (Selector = Selector->NextSelector) != NULL ); if (ControlElement->ParentSelector != NULL) { IndentFromLeft = PreviouslndentFromLeft; DistanceFromTop += 10; } } else if(ControlElement-> Widget == "GROUP_OF_RADIO_BUTTONS") { if ( (ControlElement->NextSibling == NULL) && (Control Element- >PrevSibiing == NULL) ) CreateLabel(ControlElement->Name, ...); else CreateRadioButton(ControlElement->Name,...); PreviouslndentFromLeft = IndentFromLeft; IndentFromLeft += 20; DistanceFromTop += 16; Selector = (SelectorType*)ControlElement->ChildSelector; do { NewControl = Selector->ChildControl; do { CreateControl(NewControl); } while((NewControl = NewControl->NextSibling) != NULL); } while( (Selector = Selector->NextSelector) != NULL); IndentFromLeft += PreviouslndentFromLeft; DistanceFromTop += 10; } else if( Control Element-> Widget == "SLIDER_BAR" ) { if ((Control->NextSibling==NULL)&&(Control->PrevSibling==NULL)) CreateLabel(Control Element->Name, ... ); else CreateRadioButton(ControlElement->Name, ...); CreateSliderBarO; } else if ... } } Such rules as mdicated above are of course exemplary Any such sensible selection of rules may be chosen for this or other user interfaces, with appropnate utilisation of the available user mterface capabilities Virtual control panels for the "Television" and "Camera" examples above are shown m Figures 10a and 10b respectively As can be seen, perfectly satisfactory uses of the Wmdows user mterface result. However, for such a user mterface it may be desirable to negotiate a more powerful encodmg which allows for a πcher use of the functionality of the user mterface. This could be still Control Scπpt, but mcludmg optional elements not mcluded m the basic grammar, for example, specific scπpts could be provided for colour wheels, or for rendering patterns or other images. An alternative approach is to provide an encodmg which defines a set of controls that can be used by a target range of appliances together with layout mformation. For example, implementable controls could be a bellpush button changeable by a "push" and then retummg a value on activation (useful m constructing an on display keypad), a bistable button (an on-off switch) changeable by a "push" and togglmg the value from a choice of two on activation, a slider changeable by movement, with the new slider position providmg a returnable value, a menu with value changeable by selection of a menu item, and text with value changeable upon user entry of new text. From such controls and placement mformation, a user mterface can be created- Figure 12 shows a fax user mterface with bellpush buttons 301, bistable button 302, menu 304 and text field 305 In an appropnate implementation, a number can be entered mto text field 305 by separate keyboard entry or by use of the virtual keyboard created with bellpush buttons 301 Alternatively, a different encoding type altogether may be negotiated: an example is an HTML encoding employing the Forms extension. Arbitrary text strings, basic layout information and widget types are defined in the HTML encoding, but appearance of the resulting page can be largely determined by the client and can thus be adapted to a wide range of displays. An exemplary part of an HTML script for the "Power" example given above is <HR> <Hl>Power Conttol</Hl> Click to turn the power <A HREF="Power=on">ON</A> or <A HREF="Power=off '>OFF</A> <HR> without the Forms extension, and <HR> <HΪ>Power</Hl> <INPUT TYPE=SUBMIT VALUE="On"> <INPUT TYPE=SUBMIT VALUE="Off '> <HR> which can be rendered by the controlling device as shown in Figures 11a and 1 lb respectively. The method of controlling one device from another described here is valuably and effectively implemented in the context of the JetSend protocol. However, as indicated above, the present mvention has very general application in control of one device by another, and is not limited to application in JetSend or similar protocols, but is applicable to almost any problem of control of one device by another.

Claims: CLAIMS 1. A metiiod for the control of a controlled device by means of a controllmg device, compnsmg: establishment of a means for transmitting signals between the controllmg device and the controlled device; provision by the controlled device of a set of possible parameter choices and information identifymg said possible parameter choices and transmission thereof to the controllmg device; display at the controllmg device of the set of possible parameter choices and of mformation identifymg possible parameter choices to enable user selection of a set of actual parameter choices with a user selection means; transmission of the set of actual parameter choices to the controlled device; and modification of operational parameters of the controlled device m accordance with the set of actual parameter choices; wherem the set of possible parameter choices and set of actual parameter choices are provided m a form mdependent of the user selectton means. 2. A method as claimed in claun 1, wherem the steps of user selection of a set of actual parameter choices, of transmission of the set of actual parameter choices, and of modification of the operational parameters of the controlled device m accordance with the set of actual parameter choices are repeated as a sequence whenever the user wishes to modify his selection of actual parameter choices. 3 A method as claimed m claim 1 or claim 2, wherem the set of possible parameter choices is aπanged as a hierarchy, wherem user selectton of a given parameter choice may require user selection of another parameter choice not required if the given parameter choice had not been selected 4 A method as claimed m any precedmg claim, wherem between establishment of a means for transmitting signals between the controllmg device and the controlled device and transmission by the controlled device of a set of possible parameter choices and information identifymg said possible parameter choices to the controllmg device, there is provided the step of the controllmg device requesting a set of possible parameter choices and mformation identifymg said possible parameter choices from the controlled device 5 A method as claimed m any preceding claun, wherem the set of possible parameter choices and information relating to the possible parameter choices is provided m the form of a conttol scnpt mdicatmg for each parameter the possible parameter choices, a type for that parameter, and user lnterpretable parameter information. 6 A method as claimed m claim 5, wherem the controllmg device is adapted to display each type of parameter accordmg to a predetermined display rule 7 A method as claimed m any of claims 1 to 4, wherem the set of possible parameter choices and mformation relating to the possible parameter choices is provided m a markup language 8 A method as claimed in any precedmg claim, wherem the display at the controllmg device of the set of possible parameter choices and of information identifymg possible parameter choices compnses rendermg of a control panel for display to a user wherem the user can mteract with the control panel to provide a set of actual parameter choices. 9 A method as claimed m claim 8, wherem the representation of a given parameter choice m the conttol panel is independent of a function of the parameter but dependent on the type of choices available for that parameter. 10 A method as claimed m any of claims 1 to 7, wherem the display at the controllmg device of the set of possible parameter choices and of mformation identifymg possible parameter choices compnses makmg the set of possible parameter choices and the information available to a means capable of interpreting the information and retummg a selection of actual parameter choices from the set of possible parameter choices 11 A method as claimed m any precedmg claim, wherem each passage of information between the controllmg device and uie controlled device consists of one or more interactions from an mteraction set, none of the interactions of the mteraction set bemg dependent on the function to be earned out on die mformation by either of the devices. 12 A method accordmg to claim 11 , wherem each passage of information relates to sharmg of a surface between the devices, wherem the surface is a representation of the internal state of the controlled device 13 A method accordmg to claim 12, wherem each surface compnses data and a set of formats in which the data can be provided by the controlled device 14 A method as claimed m claim 12 or claim 13, wherem the mteraction set compnses an mteraction for the sharmg of a surface m one surface with one or more devices not havmg that surface 15 A method as claimed m any of claims 12 to 14, wherem the mteraction set compnses interactions relating to transfer of content between a surface m a first device and the correspondmg surface m one or more second devices 16. A metiiod as claimed m any of claims 12 to 15, wherem the mteraction set compnses interactions relating to deletion or modification of surfaces m one or more second devices correspondmg to a surface m a first device. 17. A method as claimed m any of claims 12 to 16, wherem the surface compnses a class mdicatmg the function of the surface. 18. A method as claimed m any of claims 12 to 17, wherem the mteraction set compnses a request for a surface by a second device from a first device. 19 A method as claimed m any of claims 12 to 18, wherem the mteraction set compnses a request for a description of a surface by a second device from a first device, wherem the descnption of a surface compnses a hierarchy of choices for provision of data associated with that surface. 20. A method as claimed m any of claims 2 to 19, wherem the mteraction set comprises a request for provision of data associated with the surface. 21 A method as claimed m claim 20, wherem the mteraction set compnses a response to a request for provision of data associated with the surface. 22. A method as claimed m any of claims 12 to 21, wherem the mteraction set compnses a message requesting a change to a surface. 23. A method as claimed m claim 22, wherem the message for requestmg a change to a surface is also usable to effect or deny a change to a surface 24. A method as claimed m any precedmg claim, wherem for mformation passed between the controllmg device and uie controlled device, the information ttansmitted compnses a data format hierarchy, wherein a device mtended to receive transmitted data evaluates the data format hierarchy and determines the format m which the data is then received thereby 25. A method as claimed m claim 24, wherem the receivmg device determines the format m which e data is then received by a response to the transmitting device compnsmg a path through the data format hierarchy. 26 A method as claimed m claim 24 or claim 25, wherem all data formats compnse one or more of a plurality of data format types, and wherem for each data format type, there exists a data format receivable by any device supporting that data format type. 27 A method as claimed m any of damns 24 to 26 wherem a data format hierarchy compnses a hierarchical structure, a set of keywords relatmg to properties of the information ttansmitted and values associated with each of the keywords. 28. A method as claimed m claim 27, wherem each data format hierarchy compnses a smgle encodmg, wherem each encodmg represents a different basic form m which mformation can be presented. 29. A method as claimed m any precedmg claim, wherem the controllmg device and controlled device are mformation handlmg devices 30 A metiiod as claimed m claim 29, wherem the controllmg device and the controlled device are connected through an mformation transmission network. 31. A method as claimed m any precedmg claun, wherem the user selection means compnses a graphical user mterface 32. An mformation handlmg device adapted for the function of a controllmg device m the method of claim 29, the information handlmg device compnsmg: means for communication of mformation with a controlled device; user mterface means for displaying information to a user and for retummg values deπved from a user mput; and means for presentmg the set of possible parameter choices and associated mformation received from the controlled device through die user mterface means, and for retummg the set of actual parameter choices from the user mterface means to the controlled device. 33. An mformation handlmg device adapted for the function of a controlled device in the method of claim 29, the information handlmg device compnsmg: means for communication with a controllmg device; and means for providing the set of possible parameter choices and associated mformation to a controllmg device, and for modification of the operational parameters of the device m accordance with the set of actual parameter choices. 34 A control scnpt to enable provision by a controlled device of a set of possible parameter choices and mformation identifymg said possible parameter choices and transmission thereof to a controllmg device, compnsmg for each parameter the possible parameter choices, a type for that parameter, and user lnterpretable parameter mformation. 35 A conttol scnpt as claimed m claun 34, wherem one parameter type is a set of stnngs. 36 A control scnpt as claimed m claim 34 or claun 35, wherem one parameter type is a range of numeπcal values. 37 A control script as claimed m any of claims 34 to claim 36, wherem one parameter type is one or more stnngs and one or more numeπcal values 38 A conttol scnpt as claimed m any of claims 34 to 37, further compnsmg means to establish a hierarchy of parameters wherem certain parameter choices are dependent on the results of other parameter choices.

Inventors: ARNOLD PATRICK SIMON, MACER PETER JAMES, WILLIAMS PETER MICHAEL, ARNOLD, PATRICK, SIMON, MACER, PETER, JAMES, WILLIAMS, PETER, MICHAEL
Applicants: ARNOLD PATRICK SIMON, HEWLETT PACKARD CO, MACER PETER JAMES, WILLIAMS PETER MICHAEL, ARNOLD, PATRICK, SIMON, HEWLETT-PACKARD COMPANY, MACER, PETER, JAMES, WILLIAMS, PETER, MICHAEL
Application year: 1998
Main classification: G06F15
IPC codes: G06F3, G06F13, G06F15, H04L29, H04N1, H04N5, H04Q9