This application is based upon and claims the benefit of priority from the prior Japanese Patent Application No. 2005-62998, filed on Mar. 7, 2005, the entire contents of which are incorporated herein by reference.
1. Field of the Invention
The present invention relates generally to a method of setting addresses in an electronic apparatus system with master nodes and slave nodes. More particularly, the present invention relates to address setting of slave nodes in an electronic apparatus system connecting at least one (1) master node with a plurality of slave nodes by use of a bus serial communication system.
2. Description of the Related Art
As a system connecting many devices or circuit boards with a common bus, a configuration is known which connects at least one (1) master node with a plurality of slave nodes by use of a bus serial communication. For such a configuration, it is further proposed to utilize a serial communication system using the I2C (I Square C) bus developed by Philips Inc. (THE I2C-BUS SPECIFICATION VERSION 2.1 January 2000, published by Philips Semiconductors Inc.)
In other words, as shown in
In such a network using the I2C (I Square C) bus, the master node MS takes all the control of communications, and each slave node SL cannot send a communication request to the master node MS or communicate with other slave nodes. In order to transmit data from the master node MS device to each slave node SL device (hereinafter, simply referred to as the I2C device), an identification ID must be added to each device.
For such a serial communication system using the I2C bus, a method for managing ID (address) of each node is proposed as prior art (Japanese Patent Application Laid-Open Publication No. 2001-134525). The invention described in Japanese Patent Application Laid-Open Publication No. 2001-134525 uses the I2C bus if a plurality of option equipments are serially connected. Also, by setting one-bit IDs to two-staged option equipments with the use of an inverter, the address setting is simplified.
As alternative technology, Japanese Patent Application Laid-Open Publication No. 2001-134525 shows avoiding an error of redundantly adding identical IDs to a plurality of nodes by managing the history of the ID setting from the master node in the slave nodes to enable to check whether IDs are correct or not.
As described above, in order for a master node MS device to access to a slave node SL device, a slave address must be specified. However, due to bugs in firmware, defects in wring or the like, an unintended slave address may be issued by one-bit modification.
For example, as shown in
If the I2C device SL1 is responsible to control the system, operation of the system is not guaranteed. For example, if the device has switch functions such as activating power-on or power-off processing, system operation is significantly affected.
However, a solution for such a problem is neither indicated nor disclosed in the above prior arts, THE I2C-BUS SPECIFICATION VERSION 2.1 January 2000, published by Philips Semiconductors Inc., and Japanese Patent Application Laid-Open Publication No. 2001-175584 and 2001-134525.
It is therefore the object of the present invention to provide an electronic apparatus system with master nodes and slave nodes, using I2C slave address allocation for avoiding wrong setting of access destinations due to above wrong address generation.
In order to achieve the above object, according to a first aspect of the present invention there is provided an electronic apparatus system comprising at least one (1) master node; and a plurality of slave nodes connected to the at least one (1) master node via an I2C interface, wherein each of the plurality of slave nodes is set to a slave address with an address distance of two (2) bits or greater with respect to one another.
To attain the above object, according to a second aspect of the present invention there is provided an electronic apparatus system comprising an I2C controller; a switch having a plurality of channel ports, the switch connected to the I2C controller via an I2C interface; and a plurality of groups of slave nodes connected to each of the plurality of channel port, wherein each of the plurality of slave nodes belonging to each grope of the plurality of groups is set to a slave address with an address distance of two (2) bits or greater with respect to one another.
The electronic apparatus system of the present invention may further comprise a processor operable to control the I2C controller. In this case, in accordance with a command from the processor, the I2C controller may transmit a frame including a slave node address of the switch and notification for which channel port is selected and connected, and then transmit a frame including a slave node address of one of a plurality of slave nodes belonging to a group of the selected and connected channel port, to thereby enable access to a slave node with the slave node address.
To attain the above object, according to a third aspect of the present invention there is provided an electronic apparatus system comprising an I2C controller; a first switch having a plurality of channel ports, the first switch connected to the I2C controller via an I2C interface; and a plurality of boards connected to each of the plurality of channel port of the first switch, wherein each of the plurality of board includes a second switch having a plurality of channel ports, and a plurality of groups of slave nodes connected to each of the plurality of channel ports of the second switch, and wherein each of the plurality of slave nodes belonging to each grope of the plurality of groups is set to a slave address with an address distance of two (2) bits or greater with respect to one another.
The present invention thus allows wrong addressing due to a one-bit error to be avoided, false operation of unintended devices to be avoided, and credibility of a communication system to be improved.
The above and other objects, aspects, features and advantages of the present invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings, in which:
Embodiments of the present invention will now be described with reference to the accompanying drawings. The embodiment is intended for understanding of the present invention, and the technical scope of the present invention is not limited thereto.
Because of such a feature that address distances of at least two (2) bits exit with respect to one another, as shown in
The information processing system shown in
The IO board 3 is mounted with various I2C devices for controlling and monitoring, chip sets which can be controlled by I2C, and an IO controller device. On the other hand, the system control unit 1 is mounted with a processor 10 for monitoring and controlling the system, and an I2C controller 11 connected to the processor 10 for controlling the I2C devices.
The I2C controller 11 is connected to the I2C devices on the IO board 3 through the I2C interface and controls the I2C devices on the IO board 3 by the processor 10 of the system control unit 1 controlling the I2C controller 11.
On the IO board 3, the I2C device 30 with a switch function (hereinafter, simply referred to as a switch) enables one (1) channel out of the plurality of controlled interfaces (channels CH #0 to #7 in
At this point, other channels CH are not involved (operated). Logically, the system control (I2C) interface is independent for each channel. Therefore, same addresses or addresses with only one-bit difference can be set to different channels.
One (1) switch 30 or I2C device exists and is allocated with an I2C address (in the example of the figure, “1110 000”). Therefore, an access to the switch 30 conforms to the I2C protocol.
In
For example, although the system may be significantly affected if an unintended chipset is improperly manipulated, such a possibility of impact can be avoided by application of the present invention.
In this way, by using the address allocation method of the present invention, credibility can be improved for the system control interface using the I2C devices.
Assuming an example when accessing to a chipset 3 belonging to a channel #1, the processor 10 controls the I2C control unit 11 such that the switch 30 is selected and switched to the channel #1.
In response to this control, the I2C control unit 11 sets an address “1110#000” of the switch 30 to a slave address region of the frame of
In this way, the switch 30 receives the frame and changes over the switch to select the slave nodes in a group belonging to followers of CH#1, corresponding to the channel selection command of CH#1.
Then, the I2C control unit 11 sets an address “1010 010” to the slave address region of the frame of
Also, since an address varied by at least two (2) bits or greater is set to each of the slave nodes belonging to the same channel Ch group, other slave nodes will not selected due to a one-bit error.
The processor 10 in the system control unit 1 has own I2C ports #1 and #2 and is a master node for controlled slave nodes connected via the I2C interface to the I2C ports #1 and #2.
The switch 12 selects and connects to one of channels Ch#0 to #2 due to a command from the processor 10. Out of boards 3a, 3b and 3c connected to the switch 12, only the selected and connected board can communicate with the processor which is the master node. A board 3d will be directly connected to the I2C port #2 of the processor 10 to be a slave node.
On the other hand, I2C controllers 11a to 11d are connected with the processor 10 in accordance with a specification different from the I2C interface. Also, each of boards 3e to 3h is connected to the I2C controllers 11a to 11d via the I2C controllers 11a to 11d. Therefore, the I2C controllers 11a to 11d are the master nodes of the boards 3e to 3h which is the slave nodes, respectively.
In the example shown in
Among the groups connected to the channel port ch#0, #1 and #2, the same slave node address can be set to the slave nodes. However, among the slave nodes connected to the same channel port, addresses varied by two (2) bits or greater are set, with respect to one another, according to the present invention. In this way, for one-bit address errors, the possibility can be avoided in terms of accessing to an unexpected slave node which is not intended for transmission and reception.
As described above in accordance with the drawings, by applying the present invention, for one-bit address errors, wrong slave nodes can be avoided to be accessed, and credibility of an electronic apparatus can be improved. Therefore, the present invention makes a huge contribution to industries.
While the illustrative and presently preferred embodiment of the present invention has been described in detail herein, it is to be understood that the inventive concepts may be otherwise variously embodied and employed and that the appended claims are intended to be construed to include such variations except insofar as limited by the prior art.
Number | Date | Country | Kind |
---|---|---|---|
2005-062998 | Mar 2005 | JP | national |