System and method for communicating data between control unit and master station applicable to automotive vehicle

Abstract: A system and method for communicating data between a master station (9) and a plurality of control units (1, 3) applicable to an automative vehicle are disclosed in which if an echoback communication in response to a control command is not received by the master station from the selected control unit with a predetermined period of time upon issuance of a continue command or diagnostic execution com­ mand, the controlled state of the electronic control unit is released. Furthermore, to effectively diagnose the control operation of one of the control units interac­ tively with the operation of other control units, an interrupt command may be is­ sued while the selected control unit continues the predetermined control opera­ tion, and the remaining control units are then initialized. A different control unit may then be selected and set to a controlled state. While the second selected control unit is in the controlled state an interrupt command may be issued, thus main­ taining the second selected control unit in a controlled state. A resume command is then issued to resume communication with the first selected control unit which has been maintained in a controlled state, so that the control operaton of a con­ trol unit which is affected by the operation of any one of the other control units can appropriately be diagnosed.

Description: BACKGROUND OF THE INVENTION : (1) Field of the invention: The present invention relates to a system for communicating data between control units such as an engine control unit in an automotive vehicle and a master station diagnosing a selected control unit. (2) Background art Recently, along with development in semiconductor technology, various parts of vehicles are being controlled electronically. Many vehicles are now equipped with microprocessors functioning as electronic control units (ECUs), for engine control, as one example. Such advanced elctronically controlled systems provide high performance and can enhance rider comfort in vehicles but faults in such systems are very difficult to diagnose. Since a large volume of input signals are subject to complex electronic processing, it is difficult to trace causal relationships between generated phenomena and their causes. In addition, a high level of knowledge is required to analyze these phenomena. Furthermore, intermittent disconnections of minute electrical signals are susceptible to external electrical noises which will affect results of analysis in the generated phenomena. In a case where each electronic control unit is diagnosed by means of the master station, the master station selects a desired electronic control unit to be diagnosed, from a plurality of electronic control units which may be present in a vehicle, and transmits a diagnostic control command to the selected electronic control unit, and receives a reply data from the electronic control unit. In this data communication, the master station initializes a communication line between the master station and each electronic control unit and transmits an initialize command to set each of the electronic control units in a stand-by state, waiting for reception of a system select command which selects the desired electronic control unit from among the plurality of electronic control units to establish a data link between the master station and a particular electronic control unit. Then, when a data link is established between the master station and the selected electronic control unit, the master station transmits a control command such as a parameter set command to carry out a desired control operation and, after the transmission of the control command, transmits continuously two information bytes related to the control command with predetermined intervals provided, the first information byte setting an item to be controlled and the second information byte setting a controlled variable of the item to be controlled. Thereafter, the master station transmits an execution command, monitors response performance of the vehicle, specifically, the engine with respect to a set state, thereby carrying out the diagnoses. Termination of the diagnosis is carried out when the master station transmits a termination (end) command. As described above, in an electronic control unit in which a data link is established with the master station, modification in the control state and output of the internal data are carried out in accordance with a control command issued from the master station and an information byte. These control operations are carried out until an end command is received from the master station. However, data communication between the master station and electronic control unit is carried out via signal transmission lines and connectors, and, therefore,inconvenience often occurs in a case where a connector which connects the master station and the selected control unit is disconnected after the control operation of the electronic control unit is modified by means of the control command derived from, e.g., the master station. That is to say, since each control unit has no detecting mean for detecting the connection state of the related connector, the control unit cannot detect the state where the connector is disconnected. This type of disconnection occurs frequently as many master stations are of a portable type and connection with the control unit is affected by an operator merely holding the connector in place, this makes it easy for the connection to be inadvertently interrupted or broken. If a control operation is initiated immediately before the connector is disconnnected, in order to release this control operation, the connector must again be connected and the end command must be transmitted from the master station or hardware resetting by means of a power switch is required. Furthermore, since the control operation when the connector is disconnected is set in order to perform the failure diagnosis or analysis, the vehicle may be set in a running condition which is extreme compared to that required for the normal running. If a connection is broken after initiation of a control command, the vehicle will maintain its running condition according to the command until the connection is resumed and and end command is received. Therefore, an improvement has been desired since it is not desirable to leave the vehicle in such a controlled state for an extended period of time. In systems employing a plurality of control units, control information generated by the operation of one control unit may cause one of the other control units in the vehicle to spontaneously change its controlled state according to the information. In a case where, after initialization, the master station selects one of the control units, for example an engine control unit, to be diagnosed (hereinafter, referred to as the electronic control unit A), the master station diagnoses whether a control in the electronic control unit is normally carried out and the reads the internal data indicating the controlled state of the electronic control unit A. Next, after reinitialization is carried out (initialization being required between testing of each control unit), a control parameter of the next electronic control unit, for example an air conditioner control unit (hereinafter, referred to as electronic control unit B), is set to a desired value. However, diagnoses of control unit B has an influence on the controlled state of the electronic control unit A and so, after completion of checking control unit B, after which reinitialization is again required, the master station again reads the internal data of the control unit A and checks how the internal data has been varied after and before the setting of the control parameter of the electronic control unit B. However, even though a value of the control parameter of the control unit B is modified as described above, and electronic control unit A is again checked, the value of the control parameter of the electronic control unit B after initialization is returned to the initial value in order to again select the control unit A. Therefore, since one control unit must be reset before checking of the next control unit, disadvantages occur such that the internal data of electronic control unit A cannot be read at the time when the control parameter for the control unit B is modified, thus making the causal relationships between the control units in a vehicular system hard to trace. This makes diagnoses of the units, as they interactively behave under actual driving conditions, difficult. Document EP-A-117 832 discloses a time-division multiplex system for use in an automotive vehicle electrical system which is subjected to an environment of electrical noise. The system includes a master controller, one or more remote slave controllers, and serial bus means connecting the master controller and the remote controllers. A main purpose of such system is to provide an improved serial multiplex system for use in the automotive vehicle electrical system having improved security against interferences from electrical noises. Each of the command messages is preceeded by a SYNC byte and includes an address byte for a particular remote controller, a command byte, and an error check such as a cyclic redundance check byte passed on the address and command bytes. It is noted that with such a device, the problems mentioned above cannot be solved. EP-A-195 665 discloses a system for remotely controlling operation of a device, which system has a transmitter unit and a receiving unit. The receiving unit has a receiving circuit which receives the transmitted signal, and the operation control circuit is responsive to the received signal for initiating and maintaining operation of a device provided a transmitted control signal continues to be received. SUMMARY OF THE INVENTION It is an object of the present invention to provide a system for communicating between a master station and electronic control units applicable to an automotive vehicle which can provide appropriate communication between a master station and an electronic control unit data during control unit diagnosis. The above-mentioned object can be achieved by providing a communication system, wherein said communication system comprises a plurality of transmission/reception units associated with respective control units for controlling operations of vehicle components, common bus lines for communicating data between the respective transmission/reception units, and a master station for diagnosing all of the control units including the transmission/reception units, said master station being connected to all of the transmission/reception units via a connector and common bus lines, characterized in that said master station comprises: a) first means for selecting any one of the control units from among the plurality of control units and for transmitting a selection command to the selected control unit to establish a communication state between the master station and the selected control unit via its associated transmission/reception unit; b) second means for transmitting a control command to the selected control unit instructing the selected control unit to perform a predetermined control operation; c) third means for transmitting an end command to the selected control unit to terminate the predetermined operation of the selected control unit, d) fourth means for transmitting a halt command to the selected control unit to halt the communication state of the selected control unit to the master station while the selected control unit continues the predetermined opration; and e) fifth means for transmitting a resumption command to the selected control unit to resume the communication state of the selected control unit to the master station. BRIEF DESCRIPTION OF THE DRAWINGS : Fig. 1 is a schematic system block diagram of a first preferred embodiment of a system for communicating data between master station and any one of a plurality of interconnected electronic control units. Fig. 2 is a data format used in the system for communicating data between the master station and any one of the plurality of interconnected electronic control units shown in Fig. 1. Fig. 3 (A) is a timing chart explaining a series of operations carried out between the master station and one of the electronic control units in Fig. 1. Fig. 3 (B) is an operational flowchart executed by the selected control unit shown in Fig. 1. Fig. 4 is a table indicating the operating procedure carried out in the system shown in Fig. 1. Fig. 5 is a timing chart of the system for communicating data between the master station and one of the electronic control units shown in Fig. 1 in a case where a diagnostic continue command is not received. Figs. 6 (A) and 6 (B) are integrally a timing chart for explaining a series of operations in the system for communicating data between the master station and any one of a plurality of interconnected electronic control units in a second preferred embodiment according to the present invention. Fig. 7 is a table indicating the operating procedure carried out in the second preferred embodiment of the system according to the invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS : Reference will hereinafter be made to the drawings in order to facilitate a better understanding of the present invention. In Fig. 1, a plurality of control devices for a vehicle 1, 3, --, e.g., an engine control unit constituting a control portion of the vehicle, an electronic control unit such as an A/T (automatic transmission) control unit, and so on are shown, interconnected by a signal line 5 and connector 7. The signal line 5 is constituted by the data transmission line Tx, data reception line Rx, and clock line CLK. The master station 9 constitutes an off-board diagnostic device which diagnoses a control portion of the vehicle, e.g., the plurality of control units 1 and 3. The diagnostic device includes a ten key 11 inputting each kind of information, a display 13 displaying the diagnostic information, a power supply switch 15, and an end key 17 terminating the diagnostic operation. It is noted that although only two control units, i.e., first and second control units 1, 3 are indicated in Fig. 1, other various kinds of control units are installed. The master station 9 selects a desired one of the control units 1 and 3, transmits various commands to the selected control unit in order to diagnose the selected control unit, receives a reply information to this command, and diagnoses the control unit in response to the reply information. Such a structure of control units, commands, and master station are exemplified by United States Patent Applications Serial No. 454, 542 filed on December 21, 1989, Serial No. 375, 409 filed on July 5, 1989, and Serial No. 450, 977 filed on December 15, 1989, the disclosures of which are hereby incorporated by reference. Various commands are transmitted to the respective control units from the master station 9 in order to diagnose the respective control units and the reply information is transmitted from the command receiving control unit to the master station 9. In this data transmission, a NRZ (Non-Return-To-Zero) method is used in coding the data transmission path (so called, data modulation method). UART has been used as the communication circuit. In addition, the data format is such that a start bit is added to a head portion of the data format as shown in Fig. 2, an eight bit data is inserted into a portion subsequent to the start bit, and finally a stop bit is added to a portion subsequent to the data. This data format is constituted by a command and an information byte used for each communication. Furthermore, a polling selection system is adopted as a transmission control method between a master station 9 and each control unit, the master station 9 being a master and each control unit being a subsidiary. In addition, the master station 9 selects a desired control unit from among the control units 1 and 3 on the basis of the above-described modulation method and transmission control method, transmits various kinds of commands and information bytes to the selected control unit and receives the echo back signal, which is the reply signal. Thus, the diagnostic operation is carried out. This selection of the control unit and control procedure for carrying out diagnosis are divided into the four phases 0 through 3 in the following table: (A) denotes circuit initialization, (B) denotes link termination, (C) denotes selection of the control unit, (D) denotes link establishment, (E) denotes setting of the mode, (F) denotes diagnostic mode execution, and (G) denotes end of diagnosis. An operation of the data communication system with reference to the Table and the timing chart shown in Fig. 3 (A), and operation table of Fig. 4, in a case where the engine revolutional speed is changed. Each phase 0 through 3 defined in the table is indicated along a time axis, in the lateral direction of the timing chart of Fig. 3 (A). The control procedure by means of the master station is sequentially executed in accordance with the phases listed in the above table. First, in order to diagnose each control unit 1 and 3 by means of the master station, the connector 7 is used to connect the master station to each control unit 1, 3 through the connector 7 noted under the heading "manual interface" of Fig. 4. Both power supplies are turned on so that the operation of diagnosing is initiated. In operation with the power supply turned to ON, the master station 9 enters phase 0. In the display 13 of the master station 9, all control units, i.e., ″1. (first control unit"), ″2. (second control unit)" which are presently connected to the master station 9 are displayed as denoted by 41 in Fig. 4. In addition, the master station 9 transmits an initialize command INIT continuously twice, at predetermined intervals, denoted by times t₁ and t₂ of Fig. 3 (A) in order to carry out the initialization of circuit (transmission line) and establishment of link. Each control unit 1 and 3 receives the initialization (initialize) command. Then, each control unit 1, 3 enters a wait state for a system selection command as will be described later. Together with the establishing of the wait state, the signal line 5, particularly the data transmission line T x of the signal line 5, is cleared so that the circuit line constituted by the signal line 5 is initialized (phase 0). In addition, when a control unit which is present in the a data link, that control unit terminates communication and similarly enters the wait state for the system selection command SC (i). It is noted that although the initialization command INIT is a command commonly transmitted to all control units, echoback data from the plurality of the control units is not read. The master station 9 reads echoback data only from the control unit with which a data link is presently established. As described above, when the circuit constituted by the signal line 5 is initialized and each control unit 1, 3 enters wait state for the system selection command. At this time, since the master station 9 is in place 1, the operator selects the desired control unit to be diagnosed from among the plurality of control units 1, 3. That is to say, a ten key pad 11 is used to key in the assigned number of the desired control unit and the system selection command SC (i) which exactly corresponds to the assigned number of the selected control unit is transmitted as denoted at t₃ of Fig. 3 (A). It is noted that Fig. 3 (A) exemplifies a case where the first control unit 1 is selected. Fig. 3 (B) shows an interrupt routine executed by the selected control unit in response to the receipt of EX command or CNT command. When the system selection command SC (i) transmitted from the master station is received by the first control unit 1 which is selected as described above, an echoback signal SC (i) which is a reverse of the system selection command SC (i) is returned to the master station 9 as denoted in t₄ of Fig. 3 (A) in order to inform the master station 9 of the reception of the system selection command. The data link is established between the first control unit 1 and master station 9 (phase 1) when the reversed echoback signal SC (i) is received and the master station confirms that the received reversed echoback signal SC (i) is derived from the selected (first) control unit 1. It is noted that each of the other control units, e.g., the second control unit 3 returns to the initialization command wait state and is held in this state until an initialization command is twice received. Hence, only the first control unit 1 selected during establishment of the data link can communicate with the master station 9. In the way described above, when the first control unit 1 is selected and the data link between the first control unit 1 and master station 9 is established, the master station 9 enters phase 2 to set the diagnostic mode. A list of the diagnostic functions which the master station 9 can execute is displayed on a display 13 as denoted by the numeral 42 in Fig. 4. In order to set the diagnostic mode in the phase 2, the master station 9 transmits the mode setting command. Various commands are present in the mode setting command, i.e., solely defined commands and control commands such as monitor item command MI and parameter set command PS. The parameter set command PS commands, for example, the engine to a particular state. Subsequent to the command PS, e.g., two information bytes are continuously transmitted with a predetermined interval provided. For example, in a case where the engine idling revolutional speed is set at 1500 r.p.m., the first information byte indicating " engine idling revolutional speed " and the second information byte indicating " 1500 r.p.m." may be transmitted. Hence, in a case where the operator sets the diagnostic mode such that the engine revolutional speed is set and selected at 1500 r. p. m., the master station 9 selects the diagnostic mode for the parameter set command through the display 13 of the master station 9. When the master station 9 specifies the information bytes of the parameter set command PS "engine revolution speed "and "1500 r.p.m." through the ten key pad 11, "engine revolutional speed" and "1500 r.p.m." are displayed as in 43 of Fig. 5. The parameter set command PS is transmitted as denoted by time t₅ for the first control unit 1 from the master station 9. The first control unit 1 receives the parameter set command PS from the master station 9. At this time, the first control unit 1 returns the echoback signal PS which is the reverse of the parameter set command PS for reception confirmation (time t₆ of Fig. 4) and assumes an information wait state. When the master station 9 confirms that the reversed echoback signal from the first control unit 1 is the reversed data of the parameter set command PS, the first information byte Item indicating "revolutional speed" is transmitted to the first control unit 1 as indicated by t₇ of Fig. 4. When the first control unit 1 receives the first information byte Item, the first control unit 1 returns an echoback signal which is not reversed, i.e., an echoback signal of data identical to the first information byte, to the master station 9 (t₈ of Fig. 4). When the master station 9 confirms that the echoback signal from the first control unit 1 is the same as the first information byte previously transmitted, the second information byte Item indicating "1500" r.p.m." is transmitted to the first control unit 1 (time t₉ of Fig. 4). The first control unit 1, after receiving the second information byte, returns an echoback signal identical to the second information byte Item to the master station 9 (at a time t₁₀ in Fig. 4). The master station 9 confirms that the echoback signal from the first control unit 1 is the same as the previously transmitted second information byte Item and terminates the setting of the parameter set command PS. The information byte Item can be set at an arbitrary value within a prescribed limit in order to allow an operator to check many items and controlled values therefor. The master station 9 ends the setting of the diagnostic mode by means of the parameter set command PS as described above. Then, phase 3 is entered. The diagnostic execution command EX as indicated by time t₁₁ of Fig. 4 is transmitted to the first control unit 1. The control unit 1 receives the diagnostic execution command EX from the master station 9. At this time, execution of the parameter setting, to the controlled value, such as "engine revolutional speed" and "1500 r.p.m." is carried out and diagnostic data on the engine revolutional speed when the execution is carried out is repeatedly returned to the master station 9 from the first control unit 1. After the diagnostic execution command EX is transmitted, the master station 9 transmits the diagnostic continuation (continue) command CNT at a time before the elapse of a constant time period t c . The diagnostic continuation command CNT is repeatedly transmitted at a shorter interval than a series of constant time intervals t c until the diagnostic end command STP is transmitted upon operation of the end key 17. While the first control unit 1 receives the diagnostic continuation command CNT from the master station 9 within the constant time t c , transmission of the diagnostic data for the assigned controlled value is carried out. However, if the diagnostic continuation command CNT is not received within the constant time t c after the diagnostic execution command EX or after a previously received diagnostic continuation command CNT, the modification of the controlled state and transmission of the diagnostic data are ended according to the program executed by the selected control unit, as shown in Fig. 3 (B). Then, the phase returns to phase 2 in which the control command is not set. It is noted that the diagnostic data thus returned are returned as a single frame constituted by data of a one byte header, one byte data indicating the length of the diagnostic data and the diagnostic data itself, which is less than 254 bytes, as shown at times t₁₂, and t₁₃ of Fig. 3 (A). The diagnostic data returned from the first control unit 1 is received by the master station 9, the received diagnostic data is displayed through the display 13 of the master station 9 as shown in Fig. 5. The controlled value is modified as specified to confirm that the engine relation is normal. In the example of Fig. 5, the engine revolutional speed of the diagnostic data indicated through the display 13 of the master station 9 is 1500 r. p. m. so confirming that it is substantially normal. If the diagnostic data is derived, the operator pushes the termination key 17 of the master station 9. When the termination key 17 is depressed, the master station 9 transmits the diagnostic end command STP to the first control unit 1 (time t₁₄ of Fig. 3 (A)). When the first control unit 1 receives the diagnostic end command STP, the setting of the control command is cleared and an echoback signal STP is sent from the control unit 1 to the master station 9, and so the diagnosis of the first control unit 1 is terminated. In the first preferred embodiment, although the diagnostic continue command CNT is transmitted at phase 3, the diagnostic continue command CNT may alternatively be transmitted at phase 2 and phase 3. In addition, when the diagnostic continuation command CNT is not received, the data link may be terminated after it is returned to phase 2. Fig. 6 shows a timing chart of data communication between one of the control units and the master station 9 in a second preferred embodiment according to the present invention. It is noted that the structure and data format in the second preferred embodiment are the same as those in the first preferred embodiment. The control procedure for carrying out this selection and diagnosis is divided into five phases 0-4 as shown in the following table. In the above table, (A) through (G) are the same as those recited in the first preferred embodiment and (H) denotes communication halt and resumption. Each phase 0 through 4 defined in the above table is indicated in a time axis in the lateral direction of the timing chart of Figs. 6 (A) and 6 (B). The control procedure by means of the master station 9 is sequentially executed in accordance with the phase. To diagnose each control unit 1, 3 through the master station 9, the connector 7 connects the master station 9 and each control unit 1, 3 as first described under the heading "manual interface" of Fig. 7. The power supplies are turned to ON and the system enters the operation state. With the power supplies turned on to operate both master station and control units, the master station 9 enters phase 0. The display 13 of the master station 9 displays all control units, 1. first control unit (1), 2. second control unit (3) which are presently connected to the master station 9, as denoted by 41 in Fig. 7. In addition, the master station 9 continuously transmits the initialization command INIT twice with a predetermined interval provided as denoted by t₁ and t₂ of Fig. 3 (A) in order to initialize the circuit and link at phase 0 when each control unit 1, 3 receives the initialization command INIT. At this time, each control unit 1, 3 enters a wait state for a system selection command as will be described later. Together with the establishing of the wait state, the signal line 5, particularly the data transmission line T x of the signal line 5, is cleared so that the circuit line constituted by the signal line 5 is initialized (phase 0). In addition, when a control unit which is present in the a data link, that control unit terminates communication and similarly enters the wait state for the system selection command. It is noted that although the initialization command INIT is a command commonly transmitted to all control units, echoback data from the plurality of the control units is not read. The master station 9 reads echoback data only from the control unit with which a data link is presently established. As described above, when the circuit constituted by the signal line 5 is initialized and each control unit 1, 3 enters wait state for the system selection command. At this time, since the master station 9 is in phase 1, the operator selects the desired control unit to be diagnosed from among the plurality of control units 1, 3. That is to say, a ten key pad, for example, may be used to select the desired control unit and the system selection command SC(E) which exactly corresponds to the assigned number of the selected control unit is transmitted as denoted at t³ of Fig. 6 (A). It is noted that Figs. 6 (A) and 6 (B) exemplify a case where the first control unit 1 is selected. When the system selection command SC (E) transmitted from the master station is received by the first control unit 1 which is selected as described above, an echoback signal SC (E) which is a reverse of the system selection command SC(E) is returned to the master station 9 as denoted in t₄ of Fig. 6 (A) in order to inform the master station 9 of the reception of the system selection command. The data link is established between the first control unit 1 and master station 9 (phase 1) when the reversed echoback signal SC(E) is received and the master station confirms that the received reversed echoback signal SC(E) is derived from the selected (first) control unit 1. It is noted that each of the other control units, e.g., the second control unit 3 returns to the initialization command wait state and is held in this state until an initialization command is twice received. Hence, only the first control unit 1 selected during establishment of the data link can communicate with the master station 9. In the way described above, when the first control unit 1 is selected and the data link with the master station 9 is established, the master station 9 enters phase 2, the diagnostic mode. In this state, a list of the diagnostic functions capable of being executed by the master station 9 is displayed through the display 13 of the master station 9. In order to set the diagnostic mode in the phase 2, the master station 9 transmits the mode setting command. Various commands are present in the mode setting command, i.e., solely defined commands and control commands such as monitor item command MI and parameter set command PS. The monitor item command MI is a command to monitor the internal data of the control unit, transmitting, e.g., one information byte to the command. For example, in a case where the engine revolutional speed is to be monitored, the information byte Item indicating the engine revolutional speed is transmitted subsequent to the monitor item command MI as shown at times t₅ and t₇ of Fig. 6 (A). In addition, the parameter set command PS is, e.g., a control command to instruct a state of, for example, an air conditioner. Two information bytes subsequent to this command are continuously transmitted at a time subsequent to the command. For example, in a case where a compressor of an air conditioner is set to ON, the first information byte indicating the compressor of the air conditioner (time t₂₀) and the second information byte indicating ON or OFF (time t₂₂) may be transmitted. The communication interruption command SIN is a command to interrupt only the communication state under a condition in which the control operation commanded for the control unit is continued. In addition, the control unit with which the communication is interrupted by means of the communication interruption command SIN resumes communication state in response to a resume command CRR without the necessity of again employing the initialization command INIT. Next, a procedure in a case where a disadvantage such that the compressor of the air conditioner is in the ON state and the engine revolutional speed becomes unstable and where the disadvantage is reproduced with the compressor in the ON state for a relatively long period of time will be described with reference to Figs. 6 (A) and 6 (B). First, the initialization command INIT is twice transmitted to all control units at times t₁ and t₂. The circuit is initialized by means of the initialization command INIT and each control unit enters a wait state (phase 0). The master station 9 transmits the system selection command SC (E) which selects the engine electronic control unit (hereinafter, referred simply to as engine ECU) which constitutes the first control unit at time t₃. When the engine ECU receives the system selection command SC(E), a reverse echoback signal SC(E) is returned to the master station 9 to confirm the reception of the system selection command SC(E) at the time t₄. The master station 9 establishes a data link to the engine ECU upon confirmation of the reversed echoback signal S C (E) (phase 1). Next, after the master station 9 transmits the monitor item command MI and information byte Item at times t₅ and t₇, the diagnostic execution command EX is transmitted at time t₉. The master station 9 sequentially monitors the internal data of the engine ECU at times t₁₀ and t₁₁ and confirms that the engine revolutional data can normally be monitored. Next, the master station 9 transmits the communication interruption command SIN at time t₁₂ and interrupts the communication between the master station 9 and engine ECU. Initialization commands are again transmitted at times t₁₄ and t₁₅ so that all control units are initialized except the interrupted engine ECU which maintains its status according to the SIN control as described previously. The master station 9 transmits the system selection command SC (A) which selects the air conditioner electronic control unit (hereinafter, simply referred to as air conditioner ECU) which constitutes the second control unit at time t₁₆ and, thereby, establishing a data link with the air conditioner ECU. In the following, the parameter set command PS is transmitted to the air-conditioner ECU at the time t₁₈ to set the air conditioner compressor to ON. Then, the diagnostic execution command E x is transmitted at time t₂₄ to monitor the internal data of the air conditioner. Thereafter, the communication interruption command SIN is transmitted at time t₂₇, to the air conditioner ECU and communication between the master station 9 and air-conditioner ECU is interrupted. At this time, the ON state of the air conditioner compressor being continued, a resume command CRR is transmitted to the engine ECU (E) inherent to the engine ECU at time t₂₉ by the master station 9. This resumes transmission of engine revolutional speed data, the data in this case being transmitted while the air conditioner compressor is in the ON state (times t₃₀, t₃₁). The master station 9 which has completed the diagnosis of the engine ECU, transmits the end command STP at time t₃₂. The data transmission of engine revolutional speed at the times t₃₀ and t₃₁ is stopped and the initialization command INIT is twice transmitted so that initialization of all control units, except the interrupted air conditioner ECU, is carried out at times t₃₄ and t₃₆. At time t₃₈, the master station 9 transmits the resume command CRR (A) inherent to the air conditioner ECU and resumes communication with the air conditioner ECU. Then, after the internal data of the air conditioner is monitored, the end command STP is transmitted to the air conditioner ECU (time t₄₁). Then with the ON state of the air compressor released, the control state is returned to normal. Furthermore, the initialization command INIT is twice transmitted at times t₄₃ and t₄₅ and initialization of all control units including the engine ECU and air conditioner ECU are carried out to terminate the diagnosis operation. In the preferred embodiment described above, the number of the control units is two. However, multiple numbers of the control units can respectively be diagnosed, the number of control units being sequentially controlled and their control states being maintainable via the interrupt command SIN. As described hereinabove, since in the system and method for communicating data between a control unit and master station applicable to the vehicle, a number of control units may be diagnosed while other control units are held in an active state that superior diagnostic capabilities are available. In addition, since, if communication is broken between the master control and the control unit for a predetermined time period, the controlled state is released and possible damage to a vehicle during diagnostic checking can be suitably avoided. (It is noted that both preferred embodiments can be combined.)

Claims: A communication system, wherein said communication system comprises a plurality of transmission/reception units (1, 3, ---) associated with respective control units for controlling operations of vehicle components, common bus lines (Tx, Rx, CLK) for communicating data between the respective transmission/reception units, and a master station (9) for diagnosing all of the control units including the transmission/reception units, said master station (9) being connected to all of the transmission/reception units via a connector (7) and common bus lines, characterized in that said master station comprises: a) first means (PHASE 1 of Fig. 3 (A)) for selecting any one of the control units (1, 3, ---) from among the plurality of control units and for transmitting a selection command (SC) to the selected control unit to establish a communication state between the master station and the selected control unit via its associated transmission/reception unit: b) second means (PHASE 2) for transmitting a control command to the selected control unit instructing the selected control unit to perform a predetermined control operation (PS); c) third means (PHASE 3) for transmitting an end command (STP) to the selected control unit to terminate the predetermined operation of the selected control unit; d) fourth means (PHASE 4) for transmitting a halt command (SIN) to the selected control unit to halt the communication state of the selected control unit to the master station while the selected control unit continues the predetermined operation (PHASE 4); and e) fifth means (PHASE 4) for transmitting a resumption command (CRR) to the selected control unit to resume the communication state of the selected control unit to the master station (9). A communication system as set forth in claim 1, characterized in that said communication system includes the master station (9), said master station further including f) sixth means (PHASE 0) for intermittently transmitting two initialize commands (INT, INT) to all of the control units (1, 2, ---) to initialize the control units so that all control units are initialized and enables to enter next command wait states, and that said two initialize commands (INT) are further transmitted from the master station (9) to the control units except the selected control unit after said halt command (SIN) is transmitted to the selected control unit by said fourth means (PHASE 4). A communication system as set forth in claim 2, characterized in that said transmission/reception unit associated with the selected control unit comprises g) seventh means (PHASE 1) for transmitting a reply signal to the master station when receiving the select command (SC(E)) from the master station, said reply signal having a level which is reverse to the selection command (SC(E)) to confirm that the selected control unit has received the selection command. A communication system as set forth in claim 3, characterized in that said control command includes a monitor item command (MI) which is transmitted from said master station to the selected control unit by said second means to monitor internal data from the selected control unit said monitor item command (MI) including at least one information byte indicating an item of control being subsequently transmitted to the selected control unit. A communication system as set forth in claim 4, characterized in that said selected control unit issues a reversed control command to the master station upon receipt of the control command (MI). A communication system as set forth in claim 5, characterized in that said transmission/reception unit associated with said selected control unit comprises h) eighth means for returning a reversed signal of the halt command (SIN) to said master station while the selected control unit performs the predetermined control operation. A communication system as set forth in claim 6, characterized in that said two initialize commands (INIT) are issued from said master station to all of the control units except the selected control unit after the selected control unit issues the reversed halt command ( SIN ) to said master station. A communication system as set forth in claim 7, characterized in that another selectionccommand (SC(A)) is issued from the master station to any one of the other control units than the selected control unit which has already received the halt command (SIN). A communication system as set forth in claim 8, characterized in that said control command includes a parameter set command (EX) to command the selected control unit to command a controlled variable of the selected control unit to be set in a particular state, at least one information byte being sequently transmitted to the selected control unit. A communication system as set forth in claim 9, characterized in that after said other control unit is newly selected after the halt command (SIN) is issued to a previously selected control unit, the newly selected control unit issues a reversed halt command ( SIN ) to said master station and the master station, in turn, issues the resumption command (CRR) to the previouly selected control unit to which the communication state of the master station was interrupted. A communication system as set forth in claim 10. characterized in that the communication system is applied to an automotive vehicle having the plurality of control units.

Inventors: FUTAMI TORU, INAGAKI HIDETOSHI, TAKAI HIDEO, FUTAMI, TORU, INAGAKI, HIDETOSHI, TAKAI, HIDEO
Applicants: NISSAN MOTOR, NISSAN MOTOR CO., LTD.
Application year: 1990
Main classification: G05B19
IPC codes: G05B19