Method of detecting a cable fault and switching to a redundant cable in a universal local area network

Abstract: A method by which the each module of a token passing local area network (24) complying with IEEE standard 802.4 determines if the communication cable (28A) from which it is receiving signals is faulty and switches to a second, or redundant cable (28A). Each module transmits the same signals over both cables, but can receive signals from only one, its selected cable. In normal operations, all modules (30,36) receive signals from the same cable. Each of the modules has the capability of detecting faults in its selected cable, and of switching cables so that its second cable becomes its selected cable. Each module also has the capability of initiating the process of re-establishing the network whenever a module switches cables in response to detecting a fault. Each module in response to the process of initiating re-establishing the network, switching cables so that all modules are listening to, or receiving signals from the same cable. Each module periodically checks to determine if low level noise is present on its selected cable, and if it is, the module switches cables. A module in the listen only mode of operation will periodically check to determine if the signals it is receiving or valid. If not, it will switch cables. A module whose redundant cable has been identified as being silent, will periodically check to determine if its redundant cable remains silent.

Description: RELATED PATENT APPLICATIONS The present patent application is related to U.S. Patent Application, Serial No.07/402,954 granted as US Patent 5 146 401, corresponding to European Patent Application Filing no. 90 308 706.1, entitled "APPARATUS FOR PROVIDING A UNIVERSAL INTERFACE TO A PROCESS CONTROL SYSTEM", by Amand J. Hahn and Ravinder Bansal, filed on September 5, 1989, and assigned to Honeywell Inc., the assignee of the present application. BACKGROUND OF THE INVENTION 1) Field of the Invention: This invention is in the field of methods by which each module of a local area network (LAN) satisfying IEEE Standard 802.4 and having redundant cables over which cables the modules of the LAN communicate, detects a fault in a cable from which the module is receiving signals and switches to the redundant cable to receive signals from it. 2) Description of the Prior Art: The Institute of Electrical and Electronics Engineers, Inc. (IEEE) has established a standard for Token Passing Local Area Networks, IEEE 802.4. An advantage of a standardized, or universal, token passing LAN result is that users of such a LAN can connect equipment to the LAN supplied by any vendor whose equipment satisfies the IEEE Standard 802.4. There are presently commercially available devices such as Motorola Inc.'s, MC 68824, "Token Bus Controllers," which implement the Media Access Control (MAC) portion of IEEE 802.4. IEEE 802.4 defines the physical and MAC portions of the data link layer standards of the Manufacturing Automation Protocol (MAP) specification. Also commercially available are Concord Communication, Inc.'s "Carrierband Modular Modems" which are also designed to meet the requirements of IEEE 802.4. When a LAN is utilized to control an industrial process, reliability of the LAN is a high priority requirement. Reliability of a LAN can be significantly increased by redundancy of the modules, or nodes, of the LAN and the media, over which the modules communicate, such as a coaxial cable. However, the IEEE 802.4 standard for a token passing LAN is satisfied by a single bus medium such as a bidirectional coaxial cable so that problems associated with the use of redundant cables are not present in such a LAN. Commercially available modems satisfying IEEE 802.4 such as the Concord's "Carrierband Modular Modems" have the capability of transmitting simultaneously over two parallel bidirectional coaxial cables, but they can receive signals from only one of the two cables at any one time. Thus the nodes, or modules, of a token passing LAN satisfying IEEE 802.4 using commercially available token bus controllers (TBC) and modems do not have the capability to determine when either, or both of the redundant cables has a fault, indicated by no signals being received for a predetermined period of time over one of the cables or by the fact that the line or cable is too noisy, so that valid signals, or messages, are not being received properly; and, thus, when a module should switch to the redundant cable. European Patent Specification No. 0287992 discloses a bus system incorporating two parallel paths each transmitting the same information and one being redundant, whereby switching to the redundant path occurs upon failure of the path in use. SUMMARY OF THE INVENTION The present invention provides a method as defined in Claim 1 hereinafter. The present invention also provides apparatus as defined in Claim 11 hereinafter. In this way, the modules of a token passing LAN detects a faulty cable and switches to the second, or redundant, cable such switching to the redundant cable can be achieved without requiring physical modifications to the components of each of the modules. The present invention may include any one or more features as defined in dependent Claims 2 to 10 and 12 to 20. DESCRIPTION OF THE DRAWING Other objects, features, and advantages of the invention will be readily apparent from the following description of a preferred embodiment thereof taken in conjunction with the accompanying drawings, although variations and modifications may be affected without departing from the scope of the novel concepts of the disclosure as defined by the appended claims, and in which; Fig. 1 is a schematic block diagram of a universal token passing local area network (UCN) and of a plant control network (PCN) which is a token passing LAN. Fig. 2 is a schematic block diagram of a process module (PN) of the UCN of Fig. 1, identifying the subsystems which are common to each module of the UCN. Fig. 3 is a flow chart of one subroutine of the invention. Fig. 4 is a flow chart of a second subroutine of the invention. Fig. 5 is a flow chart of a third subroutine of the invention. Fig. 6 is a flow chart of a fourth subroutine of the invention. Fig. 7 is a flow chart of a fifth subroutine of the invention. Fig. 8 is a flow chart of a sixth subroutine of the invention. DETAILED DESCRIPTION Referring to Fig. 1, plant control network (PCN) 10, the components of which lie above dashed line 12 is a token passing LAN which does not comply with IEEE 802.4 in the preferred embodiment. Modules 14, 16, 18, and 20 have various specialized functions and each is connected to a communication medium, dual redundant cables, of plant control bus, 22 over which the modules 14, 16, 18, and 20 communicate. A more complete description of PCN 10, its functions and operation is found in U.S. Patent 4,607,256. PCN 10 communicates with distributed digital process control and data acquisition subsystems, however only one such subsystem, universal control network (UCN) 24 is illustrated in Fig. 1. UCN 24, in the preferred embodiment, is a token passing LAN that satisfies IEEE Standard 802.4. IEEE Standard 802.4 is entitled Token Passing Bus Access Method and Physical Layer Specification, Draft H, which was copyrighted by the Institute of Electrical Engineers, Inc., 345 East 47th Street, New York, in 1988 NY 10017. UCN 24 communicates with PCN 10 through network interface module (NIM) 26 which provides communications and data translation facilities between plant control bus 22 and the dual redundant trunk cables 28A and 28B universal control bus 28 of UCN 24. NIM 26 is connected to cables 28A and 28B by drop cables 29A and 29B, respectively. Modules 30, 32, 34, 36, in the preferred embodiment, are process modules, which in addition to controlling devices such as valves, switches, etc., also provide an interface between universal control cables 28 and cables 38, 40, 42, 44 of a process control network which may or may not satisfy IEEE 802.4 and may also be redundant but are not so illustrated. I/0 modules 46-1, 48-2, 50-1, 52-2 provide an interface to field devices, such as valves, pressure switches, pressure gauges, thermocouples. I/O module 46-1 converts analogue signals from a source of analog signals, to signals acceptable to PM module 30 and is designated for analogue input AI. I/O module 48-2 converts digital output signals of process controller 32 to analogue signals and is designated AO. I/O module 50-1 converts digital signals applied to module 50-1 to signals acceptable to process control module 34 and is designated DI. I/O module 52-2 converts output signals of process module 36 to digital signals for a control device and is designated DO. Each of the PM's 30, 32, 34, 36 is connected by a pair of drop cables 54A, 54B, 56A, 56B, 58A, 58B, and 60A, 60B to corresponding trunk cables 28A, 28B. NIM 26 is connected to trunk cable 28A, 28B by drop cable 29A, 29B. The terminals, or ends, of trunk cables 28A, 28B are connected to cable terminators 62A, 62B and 64A and 64B, the values of the impedances of which are chosen to match those of trunk cables 28A, 28B to minimize reflection of signals from the ends or terminations of cables 28A or 28B. Such reflections can produce excess noise on trunk cables 28 which interferes with the operation of UCN 24. In Fig. 2 the common elements, or subsystems, of each module of UCN 24 are illustrated such as module 30, for example. Module 30 includes modem 66 which transmits signals over both drop cables 54A, 54B to trunk cables 28A, 28B, and receives signals from only one of the redundant cables 28A, 28B over it's drop cables 54A, or 54B, at any given period of time. Concord Communications, Inc.'s "Carrierband Modular Modem" which is commercially available is used as the modems of the modules of UCN 24 in the preferred embodiment. TBC 68, in the preferred embodiment, is a Motorola MC 68824 "Token Bus Controller" which implements the media access control (MAC) portion of IEEE 802.4 and is also commercially available. Processor 70, in the preferred embodiment, is a standard commercially available microprocessor such as Motorola 68000 and memory 72 is also a commercially available solid state digital data storage device, part of which is a read only memory and the balance a random access memory. It should be noted that each of the modules 26, 30, 32, 34 and 36 include a modem, a token bus controller, a processor, and a memory. For a more complete description of the function and operation of UCN 24 reference is made to "IEEE Standard 802.4", which was copyrighted in 1988 by the IEEE; to Motorola Inc.'s "MC 68824 Token Bus Controller Users Manual" which was copyrighted in 1987, and Concord Communications, Inc.'s "Carrierband Modular Modem Product Description" which was copyrighted in 1986. When token passing is established on UCN 24, one of the first events to happen is for the module having the smallest, or lowest, address to issue a cable alignment command that is broadcast to all modules on the network. This command causes all modules of the network to receive signals from, or to listen to, the same trunk cable such as cable 28A. It should be noted that each module of the network is assigned a unique address. All frames are transmitted over both cables 28A, 28B, by the modems of each module, but each modem receives or listens to only one cable at any one time, initially the trunk cable specified by the cable alignment command. In each module, the Trunk cable to which a module's modem, such as modem 66 of module 30 is listening, is determined by a select cable command issued by the modules processor, such as processor 70 of module 30 to the line switch logic of modem 66. That cable is then designated as that module's selected cable. Modem 66 also detects the presence or absence of signals received from the selected cable, and if no signals are received for a predetermined period of time, 6, or 7 slot times, where a slot time is defined in IEEE Standard 802.4 and is in the preferred embodiment approximately 200 nanoseconds, a TBC such as TBC 68 of module 30 will produce a bus idle timeout interrupt. The TBC68 does not interrupt its host computer 70 of module 30, for example, when module 30 receives the token, but does produce an interrupt after the TBC has successfully passed the token to its successor module in the logical ring. If the token is not successfully passed, the TBC tries a second time to pass the token to its successor. It waits one slot time; and then, if the proper response is not received by the TBC, the TBC transmits a who follows frame over trunk cables 28A and 28B and waits for three slot times for a response. If no response is received, the TBC will transmit a who follows frame a second time, and if no response is received to the second transmittal of a who follows frame, the TBC generates a no-successor interrupt. The TBC then transmits a solicit-successor frame and waits for a response. If no response is received, the TBC assumes the token is lost and starts transmitting claim-token frames. The TBC interrupts its host if it wins the claim token or if it loses the address sort. The TBC will interrupt its host computer if it receives a claim token frame by producing a claim token interrupt. A TBC will produce a bus idle time out interrupt after 7 slot times of silence on the selected trunk cable if it does not have any frames to transmit. If the TBC has a frame to transmit, the TBC will start the claim-token frame procedure. A win address sort or lose address sort interrupt is generated by the TBC of each module after the claim token procedure is completed. The TBC also counts the number of detected noise bursts, or frame fragments, and produces a noise/frame fragment counter interrupt, when this number exceeds a predetermined threshold or value. It should be noted that periods of silence of up to 3 slot times are normal on UCN 24. The method of this invention is practiced by each module of the network, with each module utilizing interrupts, particularly those produced by its TBC to initiate a sub-algorithm or submethod. Each module, if it detects a cable fault or in response to a cable fault detected by another module of the network, switches to the redundant cable, the second cable which then is the selected cable from which each module will receive signals or to which it listens. A cable fault is detected by silence, by signals not being received by a module within a given period of time, from its selected cable or by excessive noise or garbled signals being received by a module from its selected cable. Silence is usually the result of a drop cable, such as cable 54A of module 30, for example, being severed when cable 28A is the selected cable for module 30. Silence can also be caused by a break in trunk cable 28A between modules 34 and 36 for example, since when that occurs, module 36 will be unable to receive signals from any other module over cable 28A. A break in the selected trunk cable also produces noise since both ends of each segment of the selected trunk cable on both sides of the break are not properly terminated by matching impedances. Reflections of transmitted signals from the unterminated ends of the severed selected cable can garble signals being transmitted over the cable as well as cause the selected cable to be too noisy for proper operation of the network. Damage or removal of one or both terminators of a cable, such as terminators 62A and 64A of cable 28A, would result in the cable becoming unacceptably noisy. Because of the number of independent variables affecting cable performance of UCN 24, such as the proximity of the modules to the cause of the cable fault, such as a cable break, the number and states of the modules of the network at the time a fault occurs, the behavior of the network at the time a cable fault occurs is essentially non-deterministic. Thus, the method, or algorithm, of this invention is reactive; that is, each of the sub-methods, sub-algorithms, or subroutines is initiated or executed in response to a particular condition or set of conditions, as determined by each module primarily by interrupts produced by the TBC, for example. Stated another way, the sub-algorithms executed by each module are determined by the health, or state, of the selected trunk cable from which the module is receiving signals at any given time as determined by that module. Thus the method, or algorithm of this invention is a collection of sub-algorithms, each of which is designed to detect a cable fault, and to respond to the detected fault, essentially by switching the modem to receive signals from the redundant cable. These sub-algorithms cause the module to select a properly functioning or healthy, cable for communication with the other modules of the network if one is available. Thus upon detecting a fault, noise or silence, in the selected cable, the algorithms of this invention cause the fault to be reported and the module to select, or listen, to the redundant cable. The execution of the method by each module results in all the modules of the network switching to the healthy cable with the module first identifying the fault transmitting a cable switch command addressed to all the modules of the network, or to multi-cast such a command to the network. TBC 68 of Module 30, for example, will produce a bus idle time out interrupt, which is applied to processor 70 if no signals are received or no traffic is heard for 7 slot times, or 6 slot times for the module having the lowest address. The bus idle timeout interrupt service 73, illustrated in Fig 3, is invoked, or begins execution by processor 70 when TBC 68 generates a bus idle timeout interrupt for the first time after module 30 has become a token passer, or is in the logical ring of network 24 and is passing the token to its successor. The bus idle timeout interrupt service provides each module with the capability of detecting an absence of traffic due to a cut in the selected drop or trunk cable. Subroutine 73 will switch to the redundant cable if the redundant cable is healthy, or hunt for a healthy cable if the redundant cable appears to be faulty, that is silent or noisy for 200 slot times which turns out to be in the preferred embodiment approximately 40 milliseconds. The 200 slot times is based on the claim token procedure which the TBC initiates when the token is lost on the network. The claim token phase consists of 25 claim token frames with a data field length of from 0-6 slot times. The TBC delays one slot time after each claim token frame before listening for traffic. Therefore, the worst case timing for the claim token phase is approximately 175 slot times. However, if the module address is 48 bits long and all ones, no traffic can be detected by the traffic detector logic of the module for a longer period of time up to 200 slot times. The reason is that the traffic detector logic does not receive, or listen while its module is transmitting. Since the module is the highest address node, no traffic can be detected during one slot time of delay between the claim token frames, therefore to find a healthy cable the subroutine must look for traffic after the module has won the token and starts searching for a successor which to pass the token. As a result, the subroutine tries to find traffic in a healthy cable for the next 25 slot times after the claim token phase. The TBC of a module will generate a bus idle time out interrupt if no traffic is heard for 7 slot times, or 6, as stated above, and it will continue to generate this interrupt after every 7 or 6 slot times has elapsed as long as no traffic is being detected. A process module utilizes the bus idle time out interrupt to find the healthy cable when it joins the network, and will switch to the redundant cable if its selected cable becomes silent. Referring to Fig. 3, in response to the first bus idle timeout (BIT) interrupt produced by a TBC, the BIT interrupt service subroutine 73 is initiated, block 74. Subroutine 73 checks to see if this is the first time a BIT interrupt has been produced since the token has been passed, block 76. If it is the first time, then subroutine 73 checks to see if there is a problem with the redundant cable, i.e., has it previously been detected as being faulty, block 78. If the redundant cable has previously been determined to be faulty, then subroutine 73 terminates, and returns from the interrupt block 80. If the redundant cable is presumably not previously identified as being faulty, then a watchdog timer is set for 200 slot times, block 82, and sub-algorithm 84 is executed. Subroutine 84 will switch the cable to the redundant cable and wait for 40 microseconds, block 86. If any traffic is detected on the cable to which the module has just switched, the subroutine will wait for two slot times, block 90, and check to see if there is any traffic on the selected cable, block 92. If a valid frame has been received, block 94, a healthy cable has been found, block 96, the periodic swap function is disabled, block 98 and subroutine 73 terminate, and the processor returns from the interrupt, block 100. If a valid frame has not been received as determined by block 94, then a check is made to determine if 20 slot times have elapsed, block 102. If the answer to block 102 is yes, then a check is made to determine if 200 slot times have elapsed, since subroutine 73 was initiated, block 104. If the answer is yes, the swap function of the module is disabled, block 98, and the subroutine terminated by a return from the interrupt block 100. If the answer to block 102 is no, then the sub-algorithm is reentered between blocks 88 and 90, and if the answer to the test of block 104 is no, the selected cable is switched, block 106, and sub-algorithm is reentered between blocks 88 and 90. If no healthy cable is determined during the 200 slot time period during which sub-algorithm 84 is in execution, the TBC will continue to produce BIT interrupts. When the first BIT interrupt is produced after 200 slot time has elapsed, since the first BIT interrupt the answer to block 76 is no, which transfers to sub-algorithm 108. Sub-algorithm 108 checks to determine if there has been any traffic since the previous BIT interrupt, block 110. If the answer to block 110 is nc, a check is made to determine if there been any traffic in the last 8 seconds, block 112, if the answer is no, the cables are switched, and subroutine 73 returns from the interrupt block 116. If the answer to the test of block 112 is yes, subroutine 73 returns from the interrupt, block 116. If there has been traffic detected in executing block 110 and the answer to the question posed by block 110 is yes, a check is made to determine if a valid frame has been received, block 118. If the answer is yes, then the module will stay on the same cable for 8 seconds, block 120, and return from the interrupt, block 116. If the answer is no the test of block 118, then the sub-algorithm checks to determine if the selected cable is noisy, block 122. If the answer is yes, the subroutine causes the cable to be switched, block 124, restarts an 8 second counter, block 126, and returns from the interrupt, block 116. If the answer to the test of block 122 is no, namely, that the selected cable is not noisy, then a check is made to determine if the selected cable was switched within the past 8 seconds, block 130. If the answer is yes, the cable is switched again, block 124, the 8-second counter is restarted, block 126, and the subroutine is terminated, block 116. If the answer is no, then the subroutine is terminated, or returns from the interrupt, block 116. When a module detects a fault on its selected cable and switches to its redundant cable, it is necessary to cause the remaining modules to switch to the healthy cable so that the network can be restored to full operations. If the TBC produces a no successor interrupt indicating that its successor is not receiving the token addressed to it, then the subroutine servicing this interrupt will cause the modem to switch to the redundant cable, particularly if the cable is cut when the node or module has the token. The no successor interrupt is generated by the TBC when it cannot pass the token to any other module on the network so that the TBC thinks it is alone on the network. The no successor interrupt is produced when the node has the token and the selected cable or trunk is cut right before the token is passed to the next module. In this situation, the TBC tries to pass the token to its successor and then to any other module without any success. Finally, after failing to pass the token, the no successor interrupt is generated which indicates that the module believes it is the only module in the network. Alternatively, this interrupt is produced when the module is connected to the network and no other module is in the token passing mode. Subroutine 132 as illustrated in Fig. 4 is initiated by a module's TBC producing a no successor interrupt, block 134. As a result, the module's selected cable is switched to the redundant cable, block 136, and the subroutine 132 terminates, or returns from the interrupt, block 138. The function of the subroutine initiated in response to the TBC of a module producing a successor change interrupt is to switch the cable. As a result of the switch, the module can now hear its successor and the two modules can communicate providing the successor module has also switched to the redundant cable after its TBC has produced the first BIT interrupt. The TBC will produce a successor change interrupt when the module has a new successor. The typical reason for producing this interrupt is that the successor module's drop cable has been cut so that the successor module can no longer be communicated with over the selected cable. The module with the token will then by-pass its present successor and seek another at which time the TBC of the module generates a successor change interrupt for its host processor. Alternatively, if the successor module leaves the token ring by going off the network or by being powered down, the TBC will react in the same way as if the drop cable to its successor module were cut. When a successor change interrupt is produced, it is serviced by, or initiates, an interrupt service which, subroutine 140 is initiated in response to successor a change interrupt, block 142, which disables the periodic swap function, block 144, enables the TBC's no response interrupt, block 146, and checks the number of no response interrupts, block 148, until 3 have been produced. When three no response interrupts are produced consecutively, the address of any new successor is checked, block 150. If the answer to block 150 is yes, the cables are switched on a token pass interrupt, block 152. If the answer is no, block 152 is bypassed and the no response interrupt is disabled, block 154, which terminates the subroutine or it returns from the interrupt, block 156. If a successors drop cable is faulty all modules will switch to the redundant cable within a short period of time. If the successor module is no longer on the network, its predecessor module will switch back to the original cable after 16 seconds via a command from its processor. The cables are not switched right away after a successor change interrupt. The cables are switched when it is believed the network is stable and successor module changes are not occurring caused by marginal connections. Other routines are responsible for switching to the redundant cable in the case of a loose connection. After a successor change interrupt, a token bus controller is enabled to produce no response interrupts. No response interrupts are generated by the TBC if no response is received from any other module in the network, when the TBC opens a window to permit other modules to join the token ring following a successor change interrupt. The cables are switched after three consecutive no response interrupts from the TBC. This subroutine prevents switching back and forth caused by a successor change interrupt due to a marginal circuit connection. However, if marginal circuit connections cause excessive noise and/or frame fragments on the network, then the cable is switched by the node detecting the noise by producing a noise/frame fragment interrupt. The TBC of a module will produce a claim token interrupt when for any reason the token passing stops in the network. As a result, a module receiving the claim token will switch to the redundant cable which enables the modules to reestablish token passing and communications between modules if the problem is with the cable to which they were listening. In general when the token is lost after 7 slot times, or 6 slot times for the lowest address module, the modules start the claim token procedure according to IEEE 802.4 to regain the token. However, only one module, or node, the one with the lowest address becomes the token holder at the end of the claim token phase. The node which wins the token will generate a win address sort interrupt for its host and invite other nodes into the token ring. Other modules participating in the claim token procedure will generate a lost address sort interrupt for their host processor and wait to get invited to the network. Modules which have not participated in the claim token procedure but have received a claim token frame will generate a claim token interrupt for the host and wait to enter the token ring. When these interrupts are produced, a module will switch cables when, a claim token win address sort or lost address sort interrupt is received. It should be noted that in a steady state network, a sudden collapse of the network is usually due to one or more cable faults in the selected cable. The TBC of a module will produce a noise/frame fragment counter interrupt if the number of times the noise threshold of signals received by the modem of the module is exceeded or the number of frame fragments received within a predetermined period, 300 millisecond in the preferred embodiment, and the number of such incidents equals or exceeds 25. Interrupt service subroutine 160, which is illustrated in Fig. 6, is initiated in response to a claim token (CT) interrupt, a win address sort interrupt, a loss address sort (LAS) interrupt, produced by a module's TBC, block 162, initiates subroutine 160. Subroutine 160 disables the periodic swap function, block 164, switches the cable to the redundant cable, block 166, and returns from the interrupt or ends subroutine 160, block 168. Interrupt service subroutine 170 which is illustrated in Fig. 7 is initiated in response to the noise/frame fragment counter of the TBC exceeding a predetermined number in a predetermined time period which causes the TBC to produce a noise frame counter interrupt. This interrupt initiates subroutine 170, block 172. Subroutine 170 disables the module's periodic swap function, block 174, and switches cables, block 176. Subroutine 170 then notifies the operating system of its processor that its previously-selected cable is noisy, block 178, and terminates or returns from the interrupt, block 180. While the execution of the subroutines of this invention initiated by the TBCs of the modules of UCN 24 solve most of the problems caused by faults in the communication cables 28A and 28 B of UCN 24, there is a further need for a module to be able to detect the presence of low level noise on its selected cable, noise which is not of sufficient intensity or frequency to cause a module's TBC to produce a noise/frame fragment counter interrupt, but which noise can cause intermittent problems for a module receiving such signals. It is not requirement of UCN 24 that all modules be regularly transmitting signals; i.e. , some may merely be listening, or receiving signals from other modules of UCN 24 or from modules of PCN 10. A module in a listening mode of operation does not check the quality of the signals being received, only that signals are being received from its selected cable. Thus, there is a need for a module in the listening only mode to verify that the signals received over its selected cable are valid, constitute a valid frame from which it is concluded that the modules selected cable is not noisy. It is also desirable that a module whose redundant cable has been identified as being silent be checked periodically to determine if it remains silent, and if it is no longer silent, then the redundant cable is available to be swapped with the presently selected cable in the future. Subroutine 182 illustrated in Fig. 8 has as its purpose to check for low level noise on a module's selected cable, to check if the signals received by a module in the listening mode are valid, and to determine if a module's redundant cable which has been identified as being silent is currently silent or continues to be silent. Subroutine 182 is initiated by an interrupt produced by a conventional timer called, in the preferred embodiment, a silence timer, which is incorporated in each module of UCN 24. The silence timer produces a periodic interrupt, once every 300 msec. in the preferred embodiment. The silence timer is restarted every 7 msec after the communication cables are switched. This enables the processor of each module to monitor and clear its TBC's faulty transmitter counter if the presently selected trunk cable is not healthy. The timer is restarted after each successful token pass on its selected cable. An additional function of the silence timer is to make certain that the faulty transmitter counter of a module's TBC does not reach 7 after a cable fault to prevent having to reinitialize the TBC. The faulty transmitter counter of the TBC is incremented each time the TBC concludes that its transmitter is faulty. This can happen if the transmitter of the modem is faulty or during a cable fault before all modules switch to the redundant cable. This situation generally occurs when a module is receiving signals from a healthy cable while its predecessor is receiving signals from a faulty cable. As a result a module can hear its predecessor without being heard by it. Subroutine 182 after token passing is established on UCN 24 also tests the perceived faulty cable for silence for 900 msec after a cable switch due to a cable fault by restarting the silence timer every 300 msec. The 900 msec period starts after token passing has been established. Testing the redundant cable after 900 msec allows sufficient time for all the modules on the network to switch to the healthy cable, and the network to stabilize, since testing a faulty cable otherwise could disturb the network. Subroutine 182 prevents further cable switching for approximately 7.5 seconds after a cable switch due to a cable fault. This 7.5 second period starts after token passing has been established on the newly selected cable. This subroutine also initiates a cable switch when a module detects the sustained presence, or occurrence of noise or frame fragments due to loose or marginal connections, for example, which are insufficient to cause the TBC to produce a noise/frame interrupt. Such noise will degrade the performance of the network without resulting in a complete collapse. A cable switch is performed if for 3 consecutive periods of 300 msec noise and frame fragments above a set threshold are detected. This prevents a cable switch caused by a motor startup or lightning, for example, while resulting in the cables being switched for sustained noise caused by faulty hardware. If the module with the token cannot pass the token to its successor because of such noise, the cable is switched every 3 seconds until token passing has been re-established. A module in the listening mode of operation will switch cables every 8 seconds if no valid frame is received within that period. This subroutine causes a module, or node, in the listening only mode to seek a healthy cable if its selected cable is noisy. Fig. 8 is the flow chart of subroutine 182. Subroutine 182 is initiated by the 300 millisecond timer interrupt, block 184. The subroutine checks to see if the module has the token, block 186. If it does not, then the subroutine will switch cables every 8 seconds until a valid frame is detected, block 188. When a valid frame is received, subroutine 182 restarts the 300 m.sec. timer, block 190, and returns from the interrupt, block 192. If the module has the token, a check is made to determine if the token is being passed, block 194. If the token is being passed, a check is made to determine if the cable was switched due to a fault, block 196. If the answer is yes, then a check is made to determine if 900 m.sec. has elapsed since the switch of the trunk cables, block 198. If the answer is yes, then after the module has passed the token to a successor, a test is made to determine if the redundant cable is silent, block 200. If it is, this fact is reported, block 200. If the redundant cable is silent, switching of trunk cables by the module is inhibited for 7.5 seconds, block 202 and block 190 and 192 are then executed. If the answer to block 196 is no, subroutine 182 will check to see if the selected cable is noisy, block 204. If the answer is yes, a second check of the selected cable is made to determine if the selected cable is still noisy, block 206. If it is, the cable is identified as being noisy, and the trunk cable is switched, but only if the redundant cable has not been reported as being faulty, block 208; then blocks 190 and 192 are executed. If the redundant cable is determined not be noisy while executing block 204, or block 206, then blocks 190 and 192 are executed. From the foregoing it is believed obvious that method of this invention provides a solution to the problem in a universal token passing local area network satisfying the IEEE Standard 802.4, but provided with redundant trunk cables which can detect a faulty cable and provide a method for identifying or switching between the trunk cables until a properly functioning trunk cable is found.

Claims: A method by which each active module (26) of a token passing local area network which satisfies IEEE Standard 802.4 communicates over a pair of cables (28A and B), the method comprising each module transmitting the same signals over both cables and receiving signals transmitted over the cables from only one of the cables at a given time, the cable from which a module receives signals at any given time being designated as that modules selected cable and the second cable being its redundant cable, with the selected cable of all modules being the same cable when the network is operating properly, checking to determine if a module's selected cable has a fault, a module when detecting a fault in its selected cable switching cables to receive signals from its second cable, the other modules in response to a module of the network so switching to initiate re-establishing the network switching to their second cable so that the second cable becomes the selected cable of the modules of the network, the method characterised by: a) switching to the second cable if no signals are received from the first cable for a first period of time; b) testing the second cable to determine if valid sets of signals are being received from the second cable for a second period of time; c) moving to step k hereafter if valid sets of signals are received in step b; d) repeating steps a and b if no valid sets of signals are received in step b until terminated by step c or until a third period of time has elapsed; e) moving to step k hereafter when the third period of time has elapsed; f) testing to determine if any signals have been received during said first period of time after step e is completed, g) if valid sets of signals are received in step f, continuing to receive signals from the same cable for a fifth period of time and moving to step k hereafter; h) if no signals are received in step f, testing to determine if any signals have been received during the most recent fifth period; i) if signals were received during the most recent fifth period, moving to step k hereafter; j) if no signals were received during the most recent fifth period, switching cables and moving to step k hereafter; k) determining if the cable from which a module is receiving signals is noisy; I) switching cables if the cable is determined to be noisy; and m) moving to step n hereafter after completing step 1. n) switching to the second cable any time a module begins the process of re-establishing the LAN; o) each active module periodically checking the cable from which it is receiving signals for low level noise; p) moving to step r hereafter if the noise level of its selected cable is acceptable; q) switching to the redundant cable if the noise level of the received signals exceeds a predetermined threshold; and r) concluding the sequence of steps initiated by the module having detected the fault. A method according to Claim 1, characterised in that a fault in a cable is defined by silence for a predetermined period of time. A method according to Claim 1 or 2, characterised in that a fault in a cable is defined by the presence of noise exceeding a predetermined threshold. A method according to any preceding Claim characterised by each module periodically checking its redundant cable, if its redundant cable has been identified as being silent, to determine if signals are presently being transmitted over its redundant cable. A method according to any preceding Claim, characterised in that each module includes a token bus controller (TBC) that produces interrupts when certain conditions are detected, the interrupts being serviced by: 1, in response to a TBC producing a bus idle time-out interrupt; a, checking to see if the redundant cable has a fault; b, if not, switching cables and checking to see if valid signals have been received from the second cable, and c, if valid signals have been received, returning from the interrupt. 2, in response to a TBC producing a noise/frame fragment counter interrupt; a, switching to the redundant cable; and b, returning from the interrupt; 3, in response to a TBC producing a successor change interrupt, a claim token interrupt, a win address sort interrupt, or a lost address sort interrupt; a, switching to its redundant cable; and b, returning from the interrupt. A method according to any preceding Claim characterised in that each module includes a timer which periodically produces a timer interrupt and which further comprises the steps of: in response to said timer producing a timer interrupt; a, checking its selected cable to determine if low level noise below the said threshold is being received; b, identifying its selected cable as being noisy; c, switching to its redundant cable; and d, returning from the interrupt. A method according to Claim 6 characterised by the steps of: a module in the listening mode of operation in response to said time producing a timer interrupt; a, checking to determine if signals received from its selected cable are valid; b, switching to its redundant cable if the signals are not valid; and c, returning from the interrupt. A method according to Claim 7 characterised by the steps of: 1, a module whose redundant cable has been identified as having a fault defined by silence for a predetermined period in response to a timer fault a, checking to determine if its redundant cable is presently silent; b, reporting that its redundant cable is silent if it is; and c, returning from the interrupt. A method according to any preceding Claim characterised by the steps of a passive module periodically checking to determine if it is receiving valid signals from its selected cable, switching cables if it is not, and terminating execution. A method according to any preceding Claim characterised by the steps of an active module periodically checking its redundant cable, which has been determined to be silent, is presently functioning properly, and reporting it to be silent if it remains silent. Apparatus by which each active module of a token passing local area network (24) which satisfies IEEE Standard 802.4 communicates over a pair of cables (28A and B), the apparatus comprising each module (26) having means to transmit the same signals over both cables and to receive signals transmitted over the cables from only one of the cables at a given time, the cable from which a module receives signals at any given time being designated as that modules selected cable and the second cable being its redundant cable, with the selected cable of all modules being the same cable when the network is operating properly, checking means to determine if a module's selected cable has a fault, means when a module detects a fault in its selected cable to switch cables to receive signals from its second cable, and means for the other modules, in response to a module of the network so switching to initiate re-establishing the network, to switch to their second cable, so that the second cable becomes the selected cable of the modules of the network, the apparatus characterised by: a) means (68) to switch to the second cable if no signals are received from the first cable for a first period of time; b) means (68) to test the second cable to determine if valid sets of signals are being received from the second cable for a second period of time; c) means (68) to terminate operation of the switch means and test means of (a) and (b) above, if valid sets of signals are received by the test means of (b) above; d) means (68) to repeat operations by the switch means and test means of (a) and (b) above if no valid sets of signals are received by the test means of (b) above until terminated by the termination means of (c) above or until a third period of time has elapsed; e) means (68) to terminate operation of the switch means and test means of (a) and (b) above when the third period of time has elapsed; f) means (68) to test to determine if any signals have been received during said first period of time after output from the termination means of (e) above; g) means (68), if valid sets of signals are received from the test means of (f) above, to continue to receive signals from the same cable for a fifth period of time and to terminate operation of the switch means and test means of (a) and (b) above; h) means (68), if no signals are received from the test means of (f) above, to test to determine if any signals have been received during the most recent fifth period; i) means (68), if signals were received during the most recent fifth period, to terminate operation of the switch means and test means of (a) and (b) above; j) means (68), if no signals were received during the most recent fifth period, to switch cables and to terminate operation of the switch means and test means of (a) and (b) above; k) means (68) to determine if the cable from which module is receiving signals is noisy; l) means (68) to switch cables if the cable is determined to be noisy; and m) means (68) to switch to the second cable any time a module begins the process of re-establishing the LAN; and n) means (68) for each active module to periodically check the cable from which it is receiving signals for low level noise; o) means (68) to terminate a subroutine 4 if the noise level of its selected cable is acceptable; p) means (68) to switch to the redundant cable if the noise level of the received signals exceeds a predetermined threshold. Apparatus according to Claim 11 characterised in that a fault in a cable is defined by silence for a predetermined period of time. Apparatus according to Claim 11 or 12 characterised in that a fault in a cable is defined by the presence of noise exceeding a predetermined threshold. Apparatus according to any of Claims 11 to 13 characterised by means (68) for each module to periodically check its redundant cable, if its redundant cable has been identified as being silent, to determine if signals are presently being transmitted over its redundant cable. Apparatus according to any of Claims 11 to 14 characterised in that each module (26) includes a token bus controller (TBC) (68) that produces interrupts when certain conditions are detected, the interrupts being serviced by: means, in response to a TBC producing a bus idle time-out interrupt, to check to see if the redundant cable has a fault; means, if a TBC does not so produce, to switch cables and to check to see if valid signals have been received from the second cable; means, if valid signals have been received, to return from the interrupt; means, in response to a TBC producing a noise/frame fragment counter interrupt, to switch to the redundant cable and to return from the interrupt; means, in response to a TBC producing a successor change interrupt a claim token interrupt a win address sort interrupt or a lost address sort interrupt, to switch to its redundant cable and to return from the interrupt. Apparatus according to any of Claims 11 to 15, characterised in that each module includes a timer which periodically produces a timer interrupt and means, in response to said timer producing a timer interrupt, to check its selected cable to determine if low level noise below the said threshold is being received, means to identify its selected cable as being noisy, means to switch to its redundant cable and means to return from the interrupt. Apparatus according to any of Claims 11 to 16 characterised by a module in the listening mode of operation, in response to said timer producing a timer interrupt, to check to determine if signals received from its selected cable are valid, to switch to its redundant cable if the signals are not valid and to return from the interrupt. Apparatus according to any of Claims 14 to 17 characterised by a module, whose redundant cable has been identified as having a fault defined by silence for a predetermined period response to a timer fault, having means to check to determine if its redundant cable is presently silent, to report that its redundant cable is silent if is and to return from the interrupt. Apparatus according to any of Claims 11 to 18 characterised by a passive module to periodically check to determine if it is receiving valid signals from its selected cable, to switch cables if it is not, and to terminate execution. Apparatus according to any of Claims 11 to 19 characterised by an active module to periodically check its redundant cable, which has been determined to be silent, is presently functioning properly, and to report it to be silent if it remains silent.

Inventors: MOSTASHARI SCOTT S, MOSTASHARI, SCOTT S.
Applicants: HONEYWELL INC, HONEYWELL INC.
Application year: 1990
Main classification: H04L12
IPC codes: H04L12, H04L29