This application is based on and claims the benefit of priority from earlier Japanese Patent Application No. 2011-242454 filed Nov. 4, 2011, the description of which is incorporated herein by reference.
1. Technical Field
The present invention relates to a communications relay system and a relay device therein for connecting an external device to a communication network formed of a plurality of communication devices connected to a communication path.
2. Related Art
A known in-vehicle communication system uses a communication bus, such as a Controller Area Network (CAN) bus or a Local Interconnect Network (LIN) bus. In such an in-vehicle communication system, a communication network is formed of a plurality of electronic control units (ECUs) connected to the communication bus, where each of the ECUs serves as a node.
An eternal device may be connected to such an in-vehicle communication network to diagnose a failure of each node or to provide an additional function to the in-vehicle communication system. For example, a diagnostic tester, which is an external device, may be connected to the in-vehicle communication network to diagnose a failure of each node on the basis of a response of the node to a diagnostic request from the diagnostic tester.
A relay device may be provided between an external device and the in-vehicle communication network to perform communication protocol conversion therebetween. For example, when an external device communicable with an Ethernet® protocol is connected to the in-vehicle communication network, the relay device performs the communication protocol conversion between the CAN protocol used in the in-vehicle communication network and the Ethernet® protocol used by the external device.
A relay device may also be provided between an external device and the in-vehicle communication network to determine whether or not the external device is authorized and thereby prevent unauthorized tampering. For example, the relay device determines whether or not a frame outputted from the external device is valid, and when it is determined that the fame is valid, then forwards the frame to the in-vehicle communication network of the communication system.
In recent years, there lies a challenge to have an in-vehicle communication system having not only improved performance, but also power-saving capability. To this end, a relay device may be pre-incorporated in the in-vehicle communication network, where an external device may be connected to the in-vehicle communication network through the relay device. Such a relay device, however, has to be always supplied with electrical power from a vehicle so that the relay device can operate whenever the external device is connected to the in-vehicle communication network. Therefore, there still lies a challenge to reduce power consumption in the relay device.
As a solution to this, as disclosed in Japanese Patent Application Laid-Open Publication No. 2009-290271, a relay device having various functions is controlled so that only unnecessary functions are suspended when an external device is not connected to the in-vehicle communication network.
As above, in the disclosed solution, power is saved by suspending not all, but some of the functions of the relay device. Power feed to the relay device is therefore not fully interrupted. As such, the power feed to the relay device may still remain wasteful.
There is known a selective wake-up mode of the in-vehicle communication system, in which power is saved by interrupting power feed to each node. It can therefore be envisaged that the relay device may also be controlled to sleep in the selective wake-up mode. This, however, may lead to a more complicated hardware or software configuration for enabling the relay device to cooperate with the other nodes.
The in-vehicle communication network provided above is exemplary. A communications relay system, in which a relay device is pre-incorporated in a communication network formed of a plurality of personal computers, has also similar disadvantages as above.
In consideration of the foregoing, it would therefore be desirable to have a communications relay system, in which a relay device is operable to connect an external device to a communication network, capable of reducing power consumption in the relay device to thereby reduce power consumption over the communication network.
In accordance with an exemplary embodiment of the present invention, there is provided a communications relay system for establishing data communications between an external device and a plurality of communication devices. The system includes: a communication path to which the plurality of communication devices are connected to form a communication network; and a relay device connected to the communication path as a part of the communication network and operable to relay communications between the external device and the plurality of communication devices when being connected to and powered by the external device.
Conventionally, a relay device as a part of the communication network is supplied with power from the communication network. This may lead to wasteful power feed from the communication network to the relay device, for example, when an external device is not connected to the relay device, or may lead to a more complicated hardware or software configuration for deactivating the relay device.
The relay device only has to operate when an external device is connected to the communication network through the relay device. The relay device is therefore advantageously configured to be supplied with power from the external device. With this configuration, the relay device can operate only when the external device is connected to the relay device, which leads to power saving in the relay device and thus to power saving across the communication 10 network.
In the accompanying drawings:
The present inventions will be described more fully hereinafter with reference to the accompanying drawings. Like numbers refer to like elements throughout.
The diagnostic tester 20 is connected to the communication network 10 by a communication path 30 via a data link connector (not shown). The communication network 10 includes a gateway ECU (hereinafter referred to as a “GW-ECU”) 40, to which the diagnostic tester 20 is connected, and a plurality of ECUs 50. Serial communications are made between the diagnostic tester 20 and the GW-ECU 40 by use of the CAN protocol. The ECUs 50, each of which serves as a node, are connected to each other with the communication bus 60. Each ECU 50 may be an engine ECU, a transmission ECU, an air conditioner ECU, or a navigation ECU or the like. The GW-ECU 40 serves as a relay device, and each of the ECUs 50 serves as a communication device.
When a high-level signal and a low-level signal are placed on the communication bus 60 simultaneously by at least two different ECUs of the ECUs 40, 50, a signal level on the communication bus 60 becomes the low level, which enables arbitrations between the ECUs 40, 50 connected to the communication bus 60.
The communications between the ECUs 50 are made by use of frames. Each frame, as a communication signal, includes a header for specifying transmission data, and a variable-length response for transmitting the data specified by the header. The header includes an identifier (ID) for the transmission data such that wining in a bus arbitration depends on a value of ID. The response includes the transmission data, data-size information indicative of a size of transmission data (i.e., a size of response), and a CRC code used to check for errors.
Given such an in-vehicle communication network 10, in the present embodiment, the GW-ECU 40 is powered by the diagnostic tester 20.
As shown in
The GW-ECU 40 includes a power-feed controller 41 and a relay processor 42. The power-feed controller 41 is supplied with power from the power-supply processor 21 of the diagnostic tester 20. The power-feed controller 41 transforms power received from the power-supply processor 21 to output the transformed power to the relay processor 42.
The relay processor 42 receives a frame from the diagnostic tester 20 via the communication path 30, and then identifies an ID included in the received frame to determine whether or not the ID is valid. If it is determined that the ID is valid, then the relay processor 42 forwards the frame to the communication bus 60. In addition, the relay processor 42 receives a frame via the communication bus 60, and then forwards the received frame to the diagnostic tester 20 via the communication path 30.
Upon initiation of power feed from the power-supply processor 21 of the diagnostic tester 20 to the GW-ECU 40, the power-feed controller 41 initiates power feed to the relay processor 42 of the GW-ECU 40. On the other hand, upon termination of power feed from the power-supply processor 21 of the diagnostic tester 20 to the GW-ECU 40, the power-feed controller 41 terminates power feed to the relay processor 42 of the GW-ECU 40.
More specifically, as shown in
The power feed from the diagnostic tester 20 to the GW-ECU 40 may be initiated upon connection of the diagnostic tester 20 to the GW-ECU 40 or upon activation of the diagnostic tester 20 after connection of the diagnostic tester 20 to the GW-ECU 40. The power feed from the diagnostic tester 20 to the GW-ECU 40 may be terminated upon removal or disconnection of the diagnostic tester 20 from the GW-ECU 40 or upon deactivation of the diagnostic tester 20 while the diagnostic tester 20 is connected to the GW-ECU 40.
As described above in detail, as shown in
As described above, in the first embodiment, the GW-ECU 40 is turned on/off upon initiation/termination of power feed from the diagnostic tester 20 to the GW-ECU 40. There will now be explained a second embodiment where the power-feed controller 41 of the GW-ECU 40 performs a power-feed control process while being supplied with power from the diagnostic tester 20. Only differences of the second embodiment from the first embodiment will be explained.
In the present embodiment, as shown by double dashed lines 80, 90 in
In step S110, power feed to the relay processor 42 is initiated. Thereafter, the process is ended. In step S120, it is further determined whether or not a predetermined time period has elapsed since the last determination that a fame is placed on at least one of the communication paths 30, 60. If it is determined in step S120 that the predetermined time period has elapsed, then the power feed to the relay processor 42 is terminated in step S130. Thereafter, the process is ended. On the other hand, if it is determined in step 5120 that the predetermined time period has not elapsed yet, then the power feed to the relay processor 42 is maintained. Thereafter, the process is ended.
More specifically, as shown in
As described above in detail, in the present embodiment, the GW-ECU 40 is turned on just when a frame is placed on at least one of the communication paths 30, 60. With this configuration, the power feed to the relay processor 42 of the GW-ECU 40 is controlled on the basis of an electrical potential of each of the communication paths 30, 60 even during power feed operation of the diagnostic tester 20, which leads to more reliable power saving in the GW-ECU 40.
(Modifications)
There will now be explained some modifications of the first and second embodiments that may be devised without departing from the spirit and scope of the present invention.
(i) In the first and second embodiments, as shown in
(ii) In the first and second embodiments, as shown in
(iii) In first and second embodiments, the power-feed controller 41 of the GW-ECU 40 transforms received power from the diagnostic tester 20 prior to feeding power to the relay processor 42. Alternatively, when the transformation is not necessary, the power-feed controller 41 may be removed.
(iv) In the first and second embodiments, communications over the communication paths 30, 60 are made by use of the CAN protocol. Alternatively, communications over the communication paths 30, 60 may be made by use of another communication protocol, such as the Ethernet® protocol. In addition, when the communication protocol of the communication path 30 and the communication protocol of the communication path 60 are different, the relay processor 42 may have to perform protocol conversion therebetween.
(v) In the first and second embodiments, as shown in
(vi) In the first and second embodiments, the GW-ECU 40 serving as a relay device has the relay function only. Alternatively, the GW-ECU 40 serving as a relay device may further include other functions. For example, an engine ECU having not only an engine control function, but also the relay function, may be a relay device.
(vii) In the first and second embodiments, the diagnostic tester 20 as an external device is connected to the in-vehicle communication network 10. Alternatively, for example, an external device may be connected to a communication network of a plurality of computers, or an external device may be connected to a gaming machine which includes a communication network for distributed processing.
Many modifications and other embodiments of the invention will come to mind to one skilled in the art to which this invention pertains having the benefit of the teachings presented in the foregoing descriptions and the associated drawings. Therefore, it is to be understood that the invention is not to be limited to the specific embodiments disclosed and that modifications and other embodiments are intended to be included within the scope of the appended claims. Although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.
Number | Date | Country | Kind |
---|---|---|---|
2011-242454 | Nov 2011 | JP | national |