Computing device and serial communication method of the computing device
AssigneesHONG FU JIN PRECISION INDUSTRY (ShenZhen) CO., LTD., Hon Hai Precision Industry Co., Ltd.
InventorsJian Peng, Ji-Zhi Yin
Life of this patent
Estimating the term…
Abstract
A serial communication method is applied in a computing device to communicate serially with any external serial device. The computing device includes a baseboard management controller (BMC) and an operating system (OS). The BMC includes at least one physical serial port. The method generates a virtual serial port for the OS by emulating serial port functionality of the physical serial port. When the BMC is initializing the physical serial port and a serial device is connected to the physical serial port, an interrupt handler is activated to handle an interrupt triggered to the BMC by the serial device. The interrupt handler is deactivated when the physical serial port has been initialized by the BMC.
Claims18
A computing device, comprising:
- a baseboard management controller (BMC) comprising at least one physical serial port;
- an operating system (OS);
- a storage system;
- at least one processor;
- a serial communication unit comprising computerized codes in the form of one or more programs, which are stored in the storage system and executed by the at least one processor, the one or more programs comprising:
- a generation module operable to generate a virtual serial port for the OS by emulating serial port functionality of the physical serial port;
- a first detection module operable to detect whether the BMC is initializing the physical serial port, and detect whether a serial device is connected to the physical serial port when the BMC is initializing the physical serial port;
- an activation module operable to activate an interrupt handler to handle an interrupt triggered to the BMC by the serial device in a timely manner;
- a second detection module operable to detect whether the physical serial port has been initialized by the BMC;
- and
- a deactivation module operable to deactivate the interrupt handler when the physical serial port has been initialized by the BMC.
A serial communication method of a computing device, the computing device comprising a baseboard management controller (BMC) and an operating system (OS), the BMC comprising at least one physical serial port, the method comprising:
- generating a virtual serial port for the OS by emulating serial port functionality of the physical serial port;
- detecting whether the BMC is initializing the physical serial port, and detecting whether a serial device is connected to the physical serial port when the BMC is initializing the physical serial port;
- activating an interrupt handler to handle an interrupt triggered to the BMC by the serial device in a timely manner;
- detecting whether the physical serial port has been initialized by the BMC;
- and
- deactivating the interrupt handler when the physical serial port has been initialized by the BMC.
A non-transitory storage medium having stored thereon instructions that, when executed by a processor of a computing device, causes the computing device to execute a serial communication method, the computing device comprising a baseboard management controller (BMC) and an operating system (OS), the BMC comprising at least one physical serial port, the method comprising:
- generating a virtual serial port for the OS by emulating serial port functionality of the physical serial port;
- detecting whether the BMC is initializing the physical serial port, and detecting whether a serial device is connected to the physical serial port when the BMC is initializing the physical serial port;
- activating an interrupt handler to handle an interrupt triggered to the BMC by the serial device;
- detecting whether the BMC has finished initializing the physical serial port;
- and
- deactivating the interrupt handler when the physical serial port has been initialized by the BMC.
Dependencies are inferred from the claim text.