1. Technical Field
The present disclosure relates to an electronic device in which a bus is shared by different elements of the electronic device.
2. Description of Related Art
A baseboard management controller (BMC) of a server connects input devices by an intelligent platform management bus (IPMB) and responds to input of user to control the baseboard of the server. The BMC also can communicate with a firmware by the IPMB to obtain data, such as CPU temperature, storage temperature, or south-bridge temperature, sensed by sensors which are governed by the firmware. However, when the IPMB is shared by the input device and the firmware, the communication between the firmware and the BMC will interfere with the communication between the electronic device and BMC, which results in errors.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
The bus 20 further connects to a second electronic element 40 which is an inner element of the electronic device 1, such as a firmware. The second electronic element 40 connects to a number of sensors (not shown) which are for sensing the states or characteristics of some elements of the electronic device, such as CPU temperature, storage temperature, and south-bridge temperature. The BMC communicates with the second electronic element 40 to obtain the data from the sensing of the elements of the electronic device 1.
The controller 10 sets another LUN for the second electronic element 40 and designates a second temporary buffer identified by the other LUN for storing messages transmitting from or to the second electronic element 40. When a message needing to be transmitted is generated, the controller 10 obtains the LUN of the message, determines the temporary buffer which the message is to be stored according to the obtained LUN, and stores the message to the determined temporary buffer. The controller 10 transmits the message to the corresponding electronic element according to the obtained LUN. When a message transmitted from the electronic element (30 or 40) is received, the controller 10 determines the temporary buffer which the message is to be stored according to the obtained LUN, stores the message to the determined temporary buffer, and processes the message stored in the temporary buffer.
In step S202, the controller 10 obtains the LUN of a message, determines the temporary buffer in which the message is to be stored according to the obtained LUN, and stores the message to the determined temporary buffer.
In step S203, if the message is a message needed to be transmitted to an electronic element, the controller 10 transmits the message to the corresponding electronic element of the temporary buffer.
In step S204, if the message is a message transmitted from an electronic element, the controller 10 processes the message stored in the temporary buffer.
Although the present disclosure has been specifically described on the basis of preferred embodiments, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201210045392.4 | Feb 2012 | CN | national |