Automatic configuration of a network printer

Abstract: A method of configuring a peripheral device (30) on a network (10) without user intervention includes a server node (20) receiving identification data (130) for identifying the peripheral device on the network and, if the peripheral device is a new device (135) on the network or a driver for the peripheral device is not registered (145) on the server node, the server node self-installing the driver (160) for the peripheral device. As such, newly connected peripheral devices are automatically seen on a network and a driver for the peripheral device is automatically configured on a print server without any user intervention. Additionally, a communication port and queue for the device are also automatically created (175,185). Moreover, device configurations are dynamically and automatically updated (190,192,195) on the print server for consistent, accurate network information.

Description: FIELD OF THE INVENTION This invention relates in general to network communications and, more particularly, to enabling network peripheral devices such as printers to be automatically configured without user intervention upon connection to a network. BACKGROUND OF THE INVENTION Enabling a user to employ a newly added printer over a network is often a complex task. At an overview level, initial set-up in current network environments generally requires the creation of print queues, printer objects and print servers. Then, such queues, objects and print servers must be properly linked and configured. Then, to send a print job to the network printer, the client processor usually directs the print job to a network queue on the print server, and then the print server processes the job from the queue and sends it to the printer. More specifically, adding a printer to a network environment is, conventionally, no small task. It requires a series of installation and configuration steps that are generally performed either by a user or a network administrator or both in cooperation with each other. Namely, the printer requires specific configuration steps to be performed and parameters to be applied for successful operation on the network, as also does any computer (client processor) on the network that will be sending data to the printer. For example, typically, a vendor's configuration application program must be executed on a client computer to identify the new printer (device) to be used on the network. Once the new printer is identified from a list of devices presented by the vendor's configuration application, then the configuration application provides proper configuration parameters for that new device. The configuration parameters are very specific to the device being added and to the client computer and network over which communication occurs. Additionally, a print server must be configured to enable use of the newly added printer on the network. Conventionally, the print server manages and monitors use of the printer relative to all client computers on the network, and all client computers access the printer via the print server. Accordingly, the print server must also be configured, in addition to the client computer, to enable use of the printer over the network. This includes, typically, a vendor's configuration application also being executed on the print server for that printer. In addition to a vendor's configuration application being executed to install and configure the printer on the print server, the network operating system must also execute its configuration routines on the print server in order to configure and enable the printer for the network via the print server. This often includes identifying appropriate printer files, registering the printer with the spooling system, establishing printer queues and printer ports, and defining client processor network share-access rights to the printer. Unfortunately, the vendor configuration application and the network operating system configuration routines are generally not integrated, and must also be accessed directly from the print server itself. Thus, a network administrator conventionally manually initiates this software configuration process for the newly added printer from the print server itself. While such a conventional network printer configuration system and method works well, when properly configured, it is more complex and cumbersome than what most users care to engage in. In addition, if the installation or configuration doesn't work quite right, troubleshooting can be both difficult and time-consuming. US-A-5,655,148 concerns a system for configuring a network adaptor of a computer without user intervention. Basically, two modes of operation are described, the first being connecting the device to a computer, powering the computer and using the computer to take advantage of the function supplied by the new device. In this mode, prior to adding the device, the system must be powered on as only upon power-up of the system, the new device can automatically be detected and configured. The second mode of operation is to the connection of a mobile computer to a base station while both the mobile computer and the base station are powered and in which the mobile computer is reconfigured for operation with the devices connected to the base station. The method starts with the collection of device information for each of the devices of the computer, i.e., at any time the computer is started or the mobile computer is hooked-up to a base station, information from all devices are collected to provide for the automatic configuration. It is the object of the present invention to enable a peripheral device, such as a printer, on a network to be automatically configured without user intervention upon connection of the device to the network and power-up of the device. This object is achieved by a method according to claim 1 and by an apparatus according to claim 9. Summary of the Invention According to the principles of the present invention in a preferred embodiment, a method of configuring a peripheral device on a network without user intervention includes the server node receiving identification data for identifying the peripheral device on the network and, if the peripheral device is a new device on the network or a driver for the peripheral device is not registered on the server node, the server node self-installing the driver for the peripheral device. Thus, newly connected peripheral devices are automatically seen on a network and a driver for the peripheral device is automatically configured on a server node without any user intervention. Additionally, a communication port and queue for the device are also automatically created. Moreover, device configurations are dynamically and automatically updated on the server for consistent, accurate network information. Other objects, advantages, and capabilities of the present invention will become more apparent as the description proceeds. DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of a communication network and attached devices and includes the present invention for automatically configuring a network printer. FIGs. 2-3 are flow charts depicting a preferred method of the present invention. DETAILED DESCRIPTION OF THE INVENTION FIG. 1 is a high level block diagram of a communication network 10 and attached devices including a client processor 15, print server 20, DHCP server 25, and network printer 30. The present invention is described in the context of communication network 10 being a conventional TCP/IP network. In the diagram, network 10 is illustrated as directional arrows to represent the TCP/IP communication links and data flow paths between each of the devices over the network in association with the present invention. The present invention is further described herein in the context of client processor 15, print server 20 and DHCP server 25 employing the Windows® or Windows NT® operating system produced by Microsoft Corporation. However, the present invention is also applicable to other networking environments and operating systems. Additionally, although a laser printer 30 is disclosed herein for purposes of discussion, it is understood that it is merely exemplary and that the present invention is equally applicable to other network peripheral devices, including ink jet printers, digital copiers, facsimile machines, etc. Moreover, each device 15, 20 and 25 includes a conventional network input/output (I/O) card for enabling communications with network 10. Printer 30 also includes a "conventional" network I/O card for general network communications purposes, but it is modified per the present invention as will be discussed hereafter. Print server 20 includes device cache memory 35, spooling system 40, and port monitor 42 as conventional in the art. Client processor 15 includes application software 45 as conventional in the art for sending a print job to printer 30. DHCP server 25 is a Dynamic Host Configuration Protocol (DHCP) server that holds TCP/IP configuration parameters available for printer 30 and/or other devices to be configured on network 10. DHCP server 25 is shown and discussed as a device that is physically separate from print server 20 for clarity of discussion and illustration. However, DHCP server 25 and print server 20 may be a single device having the separate functionalities combined therein. Overall, the present invention enables printer 30 to be automatically configured on network 10 for use by client processor 15 after it (the printer) is physically connected to the network by a user. Specifically, "network plug and play" software 50 depicts a key component of the present invention and resides in a memory on print server 20. A co-existing "network plug and play" module 55 resides (as firmware) on the network I/O card in printer 30. Thus, the network I/O card on printer 30 is modified from a conventional network I/O card in that it includes the "network plug and play" module 55 of the present invention. These software routines (50,55) execute and interact to enable the automatic configuration of printer 20 without any user intervention after the printer is connected to the network. Referring now to FIGs. 2-3 (in conjunction with FIG. 1), a flow chart describes the functionality and a preferred method of the present invention. First, 105 (FIG. 2), printer 30 is connected to the network 10 and turned on. Upon power up, printer 30 (module 55) issues a DHCP request packet 110 over network 10. DHCP server 25 responds with a DHCP reply packet 115 that contains the available TCP/IP configuration parameters for printer 30. Upon receiving those TCP/IP configuration parameters 120, printer 30 sets its memory configuration to reflect the parameters received. The printer now has its TCP/IP address. Next, 125, module 55 of printer 30 sends a Service Location Protocol (SLP) reply packet using IP multicast over network 10. This SLP reply packet serves as an announcement that the printer is up and running on the network. The SLP reply packet contains information specific to printer 30, including the printer's hardware (network I/O card) address, TCP/IP address, printer model name, network I/O card name, and TCP/IP hostname. When "network plug and play" service 50 receives the SLP packet data 130, it initiates a search of device cache 35 on print server 20 to determine whether printer 30 (as identified in the SLP reply packet data) is a new device on the network. If printer 30 is a new device 135 on the network (i.e., there is not an entry for printer 30 in cache 35), then it is added as a new entry 140 to cache 35. Additionally, and importantly, after adding printer 30 as a new entry to cache 35, "network plug and play" service 50 then installs the appropriate print driver for printer 35 onto printer server 20 based on the printer model provided in the SLP reply packet. Automatically installing the appropriate print driver includes communicating 145 (FIG. 3) with spooling system 40 to see if the appropriate print driver is already registered therein. If it is not, the installation source (location) of the network operating system is determined 150 (i.e., from a saved location in the Windows and Windows NT operating systems) and then that installation source (i.e., local or remote disk drive) is accessed in an attempt to automatically obtain the print driver. If the original disk that was used to install the network operating system is available at the source location 155 (i.e., in the drive), then the appropriate print driver for printer 30 is accessed 160 and registered with spooling system 40. Thus, the print driver installation is completely automated by "network plug and play" software 50, 55 of the present invention. Only if the original disk does not exist at the determined source location 150, 155 will a user be prompted for input 165 to identify the location of the installation disk. However, this prompting only occurs once because the "network plug and play" module subsequently stores 170 the user input source location. As such, upon a next attempt to install another printer, the newly identified installation location is automatically accessed for obtaining the appropriate print driver. Then, only if the installation disk is not in that location will another prompt occur for user input to identify a new installation location. Subsequent to accessing the print driver 150, 155, 160 and registering it with spooling system 40, "network plug and play" software 50 then creates a communication port 175 on print server 20 using the hostname from the SLP reply packet or a generated port name based on the hardware address of the device. Additionally, a print queue is created 180 on print server 20 using a unique name based on the model name of printer 30 (supplied in the SLP reply packet). The print queue is then designated with network share access rights 180 so client processor 15 can use printer 30 over network 10. Finally, after basic communication and configuration parameters have been established, "network plug and play" software 50 then queries printer 30 for additional attribute information 185, such as how much memory the printer has, text describing the printer, number of trays, print resolution, etc. This information is then sent to spooling system 40 to allow client processor 15 to locate printer 30 based on such attributes. At this point, client processor 15 is now able to send print data to printer 30 via print server 20. Referring back now for a moment to the determination 130, 135 (FIG. 2) of whether an entry already exists for printer 30 in cache 35, if an entry exists (i.e., the printer is not a new device on the network), then no change is made in cache 35. However, if some configuration parameters have changed 190 for printer 30 (as detected in the SLP reply packet information), but the printer model has not changed 192, then the spooler 40 configuration parameters are adjusted accordingly 195. For example, if an I/P address for printer 30 has changed, then the port address in spooling system 40 is modified accordingly. On the other hand, if the printer model has changed 192, then a determination is made 145 (FIG. 3) as to whether the print driver for that new (changed) model is already registered in the spooler. If the driver for the changed model is not already registered 145, then steps are taken 150, 155, 160 to access and install the appropriate driver (as previously discussed). If the driver is already registered 145, then we simply ensure that a proper communication port 175 and print queue 180 are created, and we verify attribute information 185. In either case, whether certain printer parameters are noted to have changed, or whether the printer model itself has changed, these processes discussed for capturing the changes represent a unique, dynamic updating capability of the present invention for automatically maintaining accurate network information for printer 30 on print server 20 without any user intervention. Advantageously, the present invention enables new peripheral devices (such as printer 30) to be automatically seen on a network with the only user input requirement being to physically connect the printer to the network. Importantly, the printer driver is automatically configured on print server 20 without any user intervention, the port and queue for the printer are likewise automatically created, and printer configurations are dynamically and automatically updated for consistent, accurate network information. In summary, the present invention provides an automatic configuration of a network peripheral device without user intervention. It will be obvious to one of ordinary skill in the art that the present invention is easily implemented utilizing any of a variety of components and tools existing in the art. Moreover, while the present invention has been described by reference to specific embodiments, it will be apparent that other alternative embodiments and methods of implementation or modification may be employed without departing from the scope of the invention.

Claims: A method of configuring a peripheral device (30) on an operating network (10) without user intervention, the network having a server node (20) connected thereto, the server node (20) and the peripheral device (30) both including a network plug and play module (50,55), the method comprising: (a) after connecting (115) the peripheral device (30) to the network (10) and after turning on the peripheral device (30), the peripheral device's network plug and play module (55) starting (110) a logon routine for initiating a communication (120) with the network (10); (b) the peripheral device's network plug and play module (55) issuing (125) a message to the network (10), the message comprising information related to the peripheral device's hardware, configuration and network parameters; (c) the server node's network plug and play module (50) receiving (130) the message from the peripheral device for identifying the peripheral device (30) on the network (10); and (d) upon detecting the received message and if the driver is not already installed (145) on the server node (20), determining (150) an installation source of an appropriate peripheral device driver on the network, and (d.1) in case the installation source is determined, the server node (20) automatically installing (160) the driver, and (d.2.) in case the installation source is not determined, prompting (165,170) the user to indicate the installation source, and installing (160) the driver from the indicated installation source. The method of claim 1 wherein the peripheral device (30) is selected from a printing device, digital copying device, or facsimile device. The method of claim 1 or 2 wherein the step (d1) of automatically installing the driver (160) includes accessing a driver file for the peripheral device and registering the driver file with the server node. The method of claim 3 wherein accessing the driver file includes accessing a storage device (150,155) identified from a memory location in the server node (20), the storage device being identified as a source from which the server node was network enabled. The method of claim 1, 2, 3 or 4 wherein the peripheral device is a printer (30) and wherein the step (d.1) of automatically installing the driver (160) includes registering the peripheral device with a spooling system associated with the server node. The method of claim 1, 2, 3, 4 or 5 further including, upon detecting the received message, the server node (20) self-creating a communication line (175,180) to the peripheral device. The method of claim 1, 2, 3, 4, 5, or 6 further including the server node (20) self-modifying (190,192,195) to embody changed configuration parameters of the peripheral device as identified from the received message. An apparatus for configuring a peripheral device (30) on an operating network (10) without user intervention, the network having a server node (20) connected thereto, the apparatus comprising: (a) a network plug and play module (55) of the peripheral device (30), the module being configured to start (110) a logon routine for initiating a communication (120) with the network (10),after connecting (115) the peripheral device (30) to the network (10) and after turning on the peripheral device (30), and to issue (125) a message to the network (10), the message comprising information related to the peripheral device's hardware, configuration and network parameters, and (b) a network plug and play module (50) of the server node (20), the module being configured to receive (130) the message from the peripheral device for identifying the peripheral device (30) on the network (10), and to determine (150) an installation source of an appropriate peripheral device driver on the network, wherein, in case the installation source is determined, the server node (20) is configured to automatically install (160) the driver, and wherein, in case the installation source is not determined, the server node is configured to prompt (165,170) the user to indicate the installation source, and to install (160) the driver from the indicated installation source. The apparatus of claim 8 further including means for enabling the server node (20) to self-modify (190,192,195) to embody changed configuration parameters of the peripheral device (30) as identified from the received message.

Inventors: ALBRIGHT SHIVAUN, WHITE CRAIG R, ALBRIGHT, SHIVAUN, WHITE, CRAIG R.
Applicants: HEWLETT PACKARD CO, HEWLETT-PACKARD COMPANY
Application year: 1998
Main classification: G06F3
IPC codes: G06F3