Network arrangement for glassware forming system

Abstract: A glassware forming machine comprising at least one event driven database operating on one protocol, at least one workstation operating on a second protocol including a library of API calls in the one protocol, a socket library for sending call packets in the second protocol, a gateway library for transporting an API call in said one protocol to a call packet in the second protocol, a network gateway including a socket library for receiving call packets in the second protocol, and a gateway service for translating a call packet received by the network gateway socket library in the second protocol to an API call in said first protocol and for delivering the translation call to the event driven data base.

Description: A glassware factory has a number of computer controlled machines, which together, define the glassware forming process. These machines may include, for example, an I.S. machine, such as disclosed in US-A-4,641,269, which includes a plurality of sections, each controlled by an independent controller. Archive data for these controllers is centralized at a control room console. Formed bottles are inspected by inspection equipment which may comprise one or more discrete machines each having its own independent controller. Such I.S. machines and inspection equipment sold by the present applicant operate on the non-standard QNX platform (a multi-tasking, multiuser, real-time operating system for microcomputer systems marketed by Quantum Software Systems, Ltd). Such a non-standard platform can not be accessed by outside computers operating on standard platforms such as UNIX, VAX/VMS and Novell's Netware in the standard ETHERNET TCP/IP (Transmission Control Protocol/Internet Protocol) network environment, and accordingly, such user workstations in the glassware factory can not access the databases of these I.S. machines or the inspection equipment. The invention is directed to a system generally of the type disclosed in EP-A-O 381 365, comprising at least one event driven database operating on one protocol, at least one workstation operating on a second protocol including a library of API (Applications Programming Interface) calls in said one protocol, a socket library for sending call packets in said second protocol, and a gateway library for translating an API call in said one protocol to a call packet in said second protocol. The system also comprises a network gateway including a socket library for receiving call packets in said second protocol, and a gateway service for translating a call packet received by said network gateway socket library in said second protocol to an API call in said first protocol and for delivering said translation call to said event driven data base. More particularly, the system disclosed in the above EP-A, and defined in the preamble of claim 1, comprises a network gateway operating on a first platform and a work station operating on a second platform, said network gateway including a first BSD (Berkeley Socket Distribution) socket library, and said work station including application means for making and receiving API (Application Programming Interface) calls, and a second BSD (Berkeley Socket Distribution) socket library, and said BSD socket libraries being adapted to communicate bidirectionally via TCP/IP (Transmission Control Protocol/Internet Protocol) packets. According to the present invention and as defined in the characterising clause of claim 1, said work station further comprises an event driven data base library, and a gateway library, said event driven data base library being adapted to bidirectionally interconnect said application means and said gateway library, and said gateway library being adapted to bidirectionally interconnect said event driven data base library and said second BSD socket library, and said network gateway further comprises an event driven database, and a gateway service adapted to bidirectionally interconnect said network gateway first BSD socket library and said event driven database. Reference will now be made to the accompanying drawings which illustrate a presently preferred embodiment incorporating the principles of the invention, and in which: Figure 1 is a block diagram illustrating the system architecture depicting the relationship between the network gateway, the local computers and the external application environment; Figure 2 is a block diagram illustrating an event driven database API design in QNX Environment; Figure 3 is a block diagram illustrating the distributed software design of the network gateway; Figure 4 is a top level context data flow diagram depicting the network gateway software as a whole, supporting the connection between the production lines consoles and the hosts; Figure 5 is a next level data flow diagram for the network gateway; Figure 6 is a data flow diagram depicting the flow of data among the various modules of the Gateway Library shown in Figure 5; Figure 7 is a data flow diagram depicting the intertask communication and data interfaces between the Gateway Service shown in Figure 5 and its resources; Figure 8 is a structure diagram depicting the main program structure for the Gateway Service; Figure 9 is a structure diagram illustrating the Gateway Communication Task structure; Figure 10 is a structure diagram illustrating the Gateway Task Data structure; and Figure 11 is a structure diagram illustrating the Gateway Task Rush structure. Referring to Figure 1, a glassware forming I.S. machine has a number of Production Line Consoles - Each console contains an event driven database that supports all this supervisory control information for that I.S. machine. Archive Data for all of these event driven databases of multiple machines is centralized at a Control Room Console hard drive (disk) database. Also available on the QNX network are the cold-end production consoles running Inspection Connection Software that accesses the Inspection Equipment database via ARCnet. It is the goal of this invention to allow user application access to these QNX-based databases from workstations running either UNIX, VAX/VMS or Novell's Netware in the standard Ethernet TCP/IP network environment through the Network Gateway. The Network Gateway is an IBM PC compatible computer that consists of the following hardware and software components: 486/33 MHz IBM-PC with 8 MB memory (no hard drive); QNX operating system V2.15F or later; QNXnet board; Fastech's TCP/IP Connectivity for QNX Device Driver, including the Berkeley Socket Library and the CMC-640 Ethernet interface card; and Gateway Server Software for accessing the databases. This allows the workstation, by way of Ethernet, to collect the required database information on the QNX network. The gateway traffic is two-way, however, meaning that the Network Gateway can also initiate the data transfer to reach the workstations. In implementation, the initiated events are limited to only the database item changes defined and requested by the workstation. The Network Gateway Software supports multiple user "ports" which can reside in multiple processes within a single user workstation or in a single or multiple process among multiple users' workstations. The Network Gateway Software itself can also reside in a single CPU or multiple PC's, each with a different name. The cold-end production line console (PLC), is another IBM-PC compatible computer interfacing with both the ARCnet and QNX network. The ARCnet interface collects data from all of the Inspection Equipment while QNXnet makes the cold-end PLC a node on the QNX network. The Inspection Connection software is running under QNX on the cold-end PLC. An alternative way of architecting the system is to combine the cold-end PLC and the Network Gateway hardware into one PC box by simply plugging the ARCNet card into the Gateway PC and running the Inspection Connection and Gateway service software in the same PC. To a limit, this approach offers advantages both in reduced cost and increased performance. When more than one cold-end inspection machine is added to the system, however, the regular configuration of having a separate PC running the Inspection Connection will give user flexibility of adding additional PC's to meet the increased demands. The Gateway software is partitioned into client (workstation) and server (Gateway) parts. The client software will include a set of API library files in "C" source code format so that the user can compile and link it with his application code and TCP/IP socket library. Running on the Gateway under QNX is the server software that services the data acquisition requests (from the user to the databases) as well as database change events (from the database to user application). The server software supports multiple client connections as well as multiple sessions. For QNX application developers, the assignee of the present application has published the Event Driven Database (EDDB) Tool kit that contains standard (native) EDDB Library API's for EDDB database access in a QNX environment (Figure 2). In the QNX environment, the application task can issue EDDB API calls from the local EDDB Library to open (locate) a local or remote EDDB database and access data from it thereafter. In this network intrinsic environment, the user does not need to know the location of the database. The geographical locations of the EDDB databases are resolved transparently by the QNX networking facility. The Gateway design extends the EDDB/IC (Inspection Connection) Library API's across the network to enable developers to write user application programs on UNIX, VAX/VMS/Novell workstations using the same EDDB/IC programming interface. In order to achieve this goal, the EDDB/IC Library on the user's node must be enhanced by adding a layer of software below it to support packet transfer between the user and the Gateway. A corresponding set of software must also exist on the Gateway node to service the request. Figure 3 depicts the distributed software design of this approach: Part of the software -- Gateway Library -- is distributed upon user's platform while the other part -- Gateway Service -- resides on the Gateway, both of them use the Berkeley Sockets Library (BSD 4.3) to perform low-level TCP socket setup, session connection and packet transfer tasks. By making EDDB/IC calls, the UNIX/VMS/Novell application program can now access the remote databases as if they were available locally. The user applications make EDDB/IC API calls, but the Gateway Library converts the "name locate," "send" and "vc release" system calls that are unique for the QNX environment to TCP/IP command packets and sends the packets to Gateway. The Gateway Service running under QNX will then provide the real "name locate," "send" and "vc release" calls to access EDDB databases information and send the data and status back to user application program over the same pair of network sockets. All of the packet transfer mechanism is transparent to the developer, thus it is as if the data were available to him locally on his machine. The Gateway Library is written in ANSI "C" and requires minimum porting work to make it available to the developer's target system. No change will be necessary in the Gateway Service, which is available only in the executable form and will run forever in the Gateway memory as long as Gateway PC is running. From the software point of view, the Gateway is a nonstandard TCP/IP protocol application in a distributed environment. In the Gateway design, the user is the third party application who initiates the request for communication and waits for a response from server. The user "lives" in a user machine. By comparison, a server resides in the Gateway (forever) and waits for incoming communication requests from a user. When it receives a user request, the server performs the necessary database access and returns the result to the client. In essence, the server "lives" in the Gateway and acts like a universal database engine. The Gateway provides dynamic event driven data updates from a database to the user as long as the data items are being attached by the user application. The user program is, accordingly, notified by the server (which was first notified by the EDDB/IC database) only when there was a real change in the selected database item. This additional requirement calls for a pair of dedicated sockets on the Gateway and user's node to communicate with each other (connecting from Gateway to user). The TCP transport protocol is used. The Gateway provides services that will connect multiple user nodes to the EDDB databases. Each connection has its own unique socket established with the user throughout the session. A session is defined as user making connection with the Gateway to request information. When a session is over, the socket is released to the system for use in the future. The number of sockets available is only limited by what the TCP/QNX device driver can provide. The top-level context diagram shown in Figure 4 depicts the Gateway Software as a whole, supporting the connection between Production Line Consoles (PLC's) and user's UNIX/VMX/Novell workstations. The user application makes the EDDB/IC API calls to locate and read the EDDB/IC database. The function calls return with database handle and item contents for user's applications. The Gateway also supports EDDB/IC exceptions that came in from PLC's or Inspection Connection as signals to user's task for asynchronous event update. For example, these external events could be Event Angle change or Inspection results packets. Thus, there are two main data flows in the Gateway design: (1) the data acquisition from UNIX/VMS/Novell workstations to PLC's and (2) the secondary event updates from PLC's back to the UNIX/VMS/Novell workstations. The Gateway handles all the detail session connection and data packet transfers between two different operating systems (UNIX/VMS/Novell and QNX) and networking environments (TCP/IP on Ethernet and QNXnet on ARCnet). The Gateway design is implemented in two parts as depicted in Figure 5. The Gateway Library (user application library) is the part that "lives" on client's node. It interfaces with user's applications and converses with Gateway Service (Server Application Software) in the Gateway via TCP packets on the Ethernet network. The Gateway Service consists of a set of user application tasks to locate and access an EDDB database in the QNX environment. The Server Application gives the results back to the Client Application via TCP packets. The results could be due to either database inquiry or EDDB exception. The Gateway Library is the layer of software for the user application programmer to link with in order to access the database. Figure 6 depicts the data flow among the various modules of the Gateway Library as used by the application. The functions for user interface are contained in the following modules: Name Locate, Send, and PrepareForEvents. The Client Call Module handles TCP packet transfer by making "send" and "recv" calls in the Berkeley Sockets Library. The PrepareForEvents function initializes the socket for data transfer on user's node and sets up the user event signal handling mechanism by establishing a separate event queing socket. After the client has made connection with the Gateway Service, the Gateway Service, besides fulfilling other responsibilities, will attempt to set up its own event queing socket and make a connection to the client's event queing socket. If this connection is established, any attached database item changes in EDDB/IC will be sent back to the user via event queing socket. The message is packaged locally and sent from the client to the Gateway Server where the packets are unpacked and decoded before doing the QNX "send" message passing. The received packets will then be sent back to the client application task buffer space in the EDDB/CI Library, and ultimately transferred to client's application. Figure 7 depicts intertask communication within the Gateway Service as well as data interfaces between the Gateway Service and its outside resources. The Gateway Server functions as a universal, session-oriented database server, and its design consists of the following coordinating tasks: The Main Program of the "server" task starts execution when it is fired up and will run forever. It obtains a protocol port, registers the program with the port mapper, and then waits (listens) to receive a user request that comes in as TCP/IP message packets from the data socket. Due to the fact that multiple clients can access up to sixteen (16) PLC's at one time, the main program must await more incoming connections while data on the channel gets processed concurrently by the child processes. The set of child processes spawned off include "coms" and "data". One for each session connection. These tasks communicate with each other via QNX local name registrations. The Communication Task, "coms" first attaches itself with the local QNX clearinghouse name. It then stays in the do forever loop to receive any incoming data packets in blocking mode. After receiving a packet, "coms" first checks the operation code to see whether it is the port number packet. The port number packet is sent by the client at the beginning of the session establishment process in order to inform the Gateway Service which port to send to for the database exception events. The port number packet will cause "coms" to spawn off the "rush" task to connect to the client on the event queing socket. Other op-codes supported are: name locate, send or vc release. The difference among these QNX operations is the reply packet size. The task "coms" then sends the packet to the task "data" via QNX message transfer. Since the QNX send call also receives a message back, as soon as the send call returns, the program will send the reply TCP packet back to the client over the TCP/IP network. The Database Link Task, "data," starts by attaching itself with the clearinghouse locally under the name. It then stays in the receive block loop forever until: The "coms" task sends it a message after receiving data packet from the client application, or The EDDB/IC exception signaling the database attached items had changed. If the task wakes up because "coms" sent over a message, it first decodes the operation code (name locate, send or vc release) and performs the QNX operation accordingly. The task will then reply to the sender task "coms" with the results. If the task receives an EDDB/IC database exception signal, it will send a QNX message immediately to the task "rush" to notify the event source. The Event Notification Task, "rush," is spawned off by the "coms" task and first attaches itself locally with the clearinghouse. It then sets up the exception event queing socket at the server for event notification. In the Event Notification, the Gateway server actually acts like a client, so the socket it created will have to call connect () to make the connection with the event queing socket on the client mode. The task then falls into the do-forever-loop to receive from the task "data" for any exception events. Upon receiving the exceptions, it proceeds to do two things right away: 1. Send reply message back to task "data" just for the purpose of unblocking it. 2. Sends event notification packet via the event queuing socket to the client node for processing. Figure 8 illustrates the program structure diagram for the Main Program that first sets up the socket in "listening mode" for client connection request. Once the task gets into the do-forever-loop to accept () for more connections, each connection that comes in will result in a different socket id and child task extension number. These two parameters are then used for spawning off a set of child tasks: "coms" and "data" to service a particular session. Since multiple sessions can be opened in the Gateway, several copies of "coms" or "data" might exist on the task table at the same time. Task-to-task communications must therefore be handled according to the task registration name not the task name. Figure 9 shows the program structure diagram for the task "coms" designed as a separate task to process packets from the client and replies over the same open channel. The Register Task Name section consists of a QNX system call "name attach" to attach itself with the local clearinghouse so the "data" task can be communicated with. During the preparation stage, "coms" would also try to locate the corresponding "data" task name by calling "name-locate." Both the task name registration and location use the same command line parameters, consisting of socket id and child task number. Receiving Packets are supposed to go on forever until the socket connection is disrupted, due to, for example, client application exiting, in which case the "coms" task must send a message to the "data" task to force it to exit before the task itself died. This provision is designed to avoid "zombie" processes remained in the system when a session is terminated. After receiving a packet, the task "coms" first decodes the op-code to decide if it's "name locate," "send," or "vc-receive." The send message and reply packet sizes are different and must be specified accordingly. The program will then forward the message to the "data" task for processing, get the result back, and return it to the client application over the network. Figure 10 illustrates the program structure diagram for the task "data" to process either the messages from "coms" task or database (EDDB or CI) exceptions. After the Task registration and Event preparation (for setting up the exception handler), the Get Events routine is receive-blocked until either a Database Event comes in from the attached database item (s) or it gets a message from task "coms." To process the Database Event, "data" will attempt to locate the task "rush" by name and send the exception to it. To process the message came in from "coms," it could be. "Data" will first decode the command message and then perform the QNX call accordingly. The result of this operation will be sent back to "coms" as a reply message to get it unblocked. As soon as "coms" gets the reply message, it will generate a packet for returning to the client application. In the case of task "rush" (Figure 11), its function is waiting to receive exception messages from "data," forward each message to client application over the event queing socket and reply to "data" to unblock the sender.

Claims: A glassware forming machine comprising a network gateway operating on a first platform and a work station operating on a second platform, said network gateway including a first BSD, Berkeley Socket Distribution, socket library, and said work station including application means for making and receiving API, Application Programming Interface, calls, and a second BSD, Berkeley Socket Distribution, socket library, and said first and second BSD socket libraries being adapted to communicate bidirectionally via TCP/IP, Transmission Control Protocol/Internet Protocol, packets, characterized by said work station further comprising an event driven data base library, and a gateway library, said event driven data base library being adapted to bidirectionally interconnect said application means and said gateway library, and said gateway library being adapted to bidirectionally interconnect said event driven data base library and said second BSD socket library, said network gateway further comprising an event driven database, and a gateway service adapted to bidirectionally interconnect said network gateway first BSD socket library and said event driven database.

Inventors: HWANG DAVID K, HWANG, DAVID K.
Applicants: EMHART GLASS SA, EMHART GLASS S.A.
Application year: 1995
Main classification: H04L12
IPC codes: C03B9, G05B19, C03B11, H04L29