Background of the Invention
The present invention is directed to a data processing system and more particularly to a local area network communication system which includes a plurality of remote processing devices connected to a common communication channel for transferring data between the processing devices and a host processing device, which each remote processing device may operate under a different communication protocol.
With the advent of low cost data processing devices such as personal computers, point-of-sale data terminal devices, etc., local communication networks have been developed to handle a large number of processing devices that may be used within a local business environment. In prior data processing systems, because of the complexity of the communication protocol associated with each processing device, a single communication protocol was utilized for each data processing system. Thus, if a processing device is added to a processing system after it had been installed and in operation, such processing device would have been required to operate with the same communication protocol as that of the other processing devices in the system. This restriction has limited the sales appeal of such data processing system.
It is therefore the principal object of this invention to provide a processing system which can accommodate a plurality of remote processing devices each of which can operate under a different communication protocol.
It is a further object of this invention to provide a system for selecting the communication protocol associated with each of the processing devices found in a data processing system.
Summary of the Invention
In order to fulfill these objects, there is disclosed a local area network processing system in which a plurality of remote processing devices such as point-of-sale data terminals are connected to a host processor over a communication channel. Associated with each of the data terminal devices is a communication controller on which is mounted a rotary switch member which is selectively set to output binary signals comprising the address of the controller. When a power-up condition occurs for the system, each controller will send a message including its address to the host processor identifying the controller. The host processor, using the address of the controller as an address, will retrieve from a look-up table stored in the processor the program instructions comprising the communication protocol which will be used by the controller in controlling the transfer of data between the host processor and the remote processing devices. The instructions are loaded into a RAM memory located within the controller. The address switch is manually set so that each controller will have a different address.
Brief Description of the Drawings
Additional advantages and features of the present invention will become apparent and fully understood from the reading of the following description, taken together with the annexed drawings, in which;
FIG. 1 is a block diagram of a data processing system in which the present invention is incorporated;
FIG. 2 is a block diagram of the communication controller of the present invention which is found in the data processing system;
FIG. 3 is a schematic representation of the rotary switch mounted on the controller for generating binary signals representing the address of the controller;
FIG. 4 is a flow chart of some of the events which occur during the power-up operation of the controller of the present invention;
FIG. 5 is a flow chart of some of the events which occur during a power-up operation of the host processor of the present invention.
Description of the Preferred Embodiment
Referring now to FIG. 1, there is shown a block diagram of a data processing system in which a host processor 20 is coupled over a communication channel or link 22 to a plurality of remote processing devices wich may include a data terminal device 24 and a communication controller 26 which controls the transfer of data between the terminal device 24 and the host processor 20. The controller 26, the processor 20 and the terminal device 24 are each connected to the channel 22 through a tap box 28 and a bus 30. As will be described more fully hereinafter, each of the controllers 26 is capable of being coupled over communication lines 32 through modems 33 or directly to a remote controller 34 which in turn controls the transferring of data between the host processor 22 and processing devices such as data terminal devices 35 connected to the remote controller 34. A disk file memory 36 connected to the host processor 20 over line 38 includes a look-up table 37 which contains a plurality of programs associated with different types of communication protocol such as A sync, bisync and bit sync that are used by the remote processing devices in transferring data over the channel 22. For a complete description of the different types of communication protocols, reference should be made to U.S. Pat. No. 4,346,440 issued Aug. 25, 1982.
Referring now to FIG. 2, there is shown a block diagram of the controller 26. Included in the controller is a Motorola 68008 microprocessor 40 which is commercially available from the Motorola Corporation of Phoenix, Ariz. The microprocessor 40 is supported by a 32K ROM memory 42 and a 32K dynamic ram memory 44. An Intel 82586 controller device 46 which is commercially available from the Intel corporation of Santa Clara, Calif., interfaces the controller 26 through a link transceiver 48 to the communication channel 22. The controller 46 also interferes with a local control bus generally indicated by the numeral 50 which includes an address line 52, a data line 54 and a control line 56. The controller 46 is also connected to the microprocessor 40 over the bus request line 58 and the bus granted line 60. The clock generators 62 and 64 supply 8 Mhz clock signals over line 66 to the microprocessor 40.
Further included in the controller 26 is a Zilog Z8030 serial controller 68 which controls the transfer of data through transceivers 74 and 76, and over a pair of RS-232 ports, and over lines 32 to the remote controllers 34 (FIG. 1). The serial controller 68 is commercially available from the Zilog Corporation of Santa Clara, Calif. The lines 32 are normally connected to the controllers 34 for use in transferring data between the controller 68 and the processing devices associated with the controllers 34 in a manner that is well known in the art. The controller 68 is capable of supporting a large variety of communication protocols such as SDLC/HDLC, asynchronous data formats, and all RS232 type synchronous formats including character, byte and bit oriented protocols. Further included in the controller 26 is interval timer 78, an I/O select logic circuit 80, an interrupt logic circuit 82 and an address switch 84, the details of which will be described more fully hereinafter. Associated with the RAM memory 44 is a Texas Instrument TWS4500A controller 86 while a timing generator 88 and a 4.608 MHZ clock source 90 are associated with the serial controller 68. The controller 86 is commercially available from the Texas Instrument Corporation of Dallas, Tex.
Referring now to FIG. 3, there is shown a schematic diagram of the address switch 84 (FIG. 2). The switch 84 comprises a 16 position hexadecimal rotary switch which is manually set to provide the address of a controller 26. The switch 84 is commercially available from ALPS USA of Rockville Center, N.Y. as Part No. SRQH010. The setting of the switch 84 results in a four bit binary word, representing the address of a selected controller 26, appearing on the output lines 86-92 inclusive of the switch which is transmitted to a 74LS244 buffer member 94. The binary signals for each of the output lines are derived from a 5-volt power source 95 applied through a pull-up resistor 97. The buffer member 94 is enabled by the signal CR/W appearing on the control line 96 of the control bus 50 (FIG. 2) and the signal SELASW/appearing on the control line 98. These signals are outputted by the microprocessor 40 and the I/O select logic circuit 80 respectively. When the signal SELASW/is low, the buffer member 94 will be enabled to output on lines 106 the binary signals applied to the buffer 94 on input lines 86-92 inclusive, upon the signal CR/W going high. The signal CR/W is transmitted through an inverter gate 100 and into one input of an AND gate 102 which also receives the signal SELASW/on line 98. The AND gate 102 will output a control signal over line 104 to the buffer 94, enabling the buffer to output the binary signals appearing on input lines 86-92 inclusive over the output lines 106 to the microprocessor 40.
Referring now to FIG. 4, there is shown a flow diagram of the events which occur during a power-up operation of the controller 26. Upon the application of power (block 108) to the controller 26, the microprocessor 40 will initialize the memory 44 (block 109) and read (block 110) the binary signals appearing on the output lines 106 (FIG. 3) of the buffer 94. The microprocessor 40 will then multiply the address value read by two (block 112) and add the base of 190 to the product (block 114) to obtain an address identifying the selected controller 26. The microprocessor 40 will then store the address in the RAM memory 44 (block 116) and the controller 46 then transmit the address (block 118) as part of an identification message to the host processor 20. The microprocessor 40 will then initialize buffers (not shown) in the RAM memory 44 (block 120) preparatory to receiving the data from the host processor, which data includes the communication protocol for the selected controller 26. After the buffers in the RAM memory 44 have been initialized, the microprocessor 40 will send a message to the host processor 20 requesting (block 122) data for use in its operation.
The host processor 20, during a power-up operation (block 124) (FIG. 5), will wait until it receives a power-up message (block 126) from the controller 26 identifying the controller, which message includes the controller address. The host processor 20 will then store the power-up message including the address (block 128) in a RAM memory located in the processor (not shown) and wait (block 130) until it receives a message from the controller 26 requesting a load message. By sending this request, the controller 26 indicates that the RAM memory 44 (FIG. 2) is ready to receive the load data. The host processor 20 then retrieves the controller address from its storage in memory, and using this address to address the table 37 (FIG. 1), located in the processor 20, will obtain the communication protocol instructions (block 132) stored in the look-up table 37 assigned to the controller 26. The processor then sends a message (block 134) to the controller 26 indicating that it is ready to download the data. After receiving an acknowledge message (block 136) from the controller indicating that it is ready to receive the data, the host processor 20 proceeds to transmit the data message including the instructions for the particular communication protocol (block 138) assigned to the controller 26 to the controller where it is stored in the RAM memory 44 (FIG. 2). This procedure will be repeated with respect to any communication controller that is coupled to the host processor 20.
The following comprises a detailed program listing for the transfer of the communication protocol to the controller shown in FIGS. 4 and 5. The actual machine codes and instructions shown relate to the Motorola 68008 microprocessor chip in the embodiment described, however the techniques employed herein may be extended to other processors. Definition of the various machine codes and instructions may be obtained from, for example, the publications entitled "Motorola MC68008, 16 Bit Processor with 8 Bit Data Bus", and "Motorola MC68008-UM, 16 Bit Microprocessor User Manual-3rd Ed.", published by Prentice-Hall, Inc. in 1982.
While the form of the invention shown and described herein is adapted to fulfill the objects previously stated, it is to be understood that it not intended to confine the invention to forms or embodiments disclosed herein for it is susceptible of the embodiment in various other forms within the scope of the appended claims.