The embodiment of the present invention provides an electronic device comprising a first module and at least one second module, wherein the first module comprises a first interface comprising a first serial interface exposed outside the electronic device and/or a virtual port for wireless data transmission. Each second module has a communication connection with the first module, and the first module is used to obtain the serial port log of the second module to be tested in each second module and transmit the serial port log through the first interface. If the first interface is the first serial interface, since the first serial interface is exposed outside the electronic device, there is no need to disassemble the electronic device. If the first interface is a virtual port, the first module can send the serial port log to the debugging electronic device through a wireless communication network. Thus no need for maintenance personnel to arrive at the scene of the electronic equipment. There is no need to disassemble electronic equipment.
【技术实现步骤摘要】
电子设备
本专利技术涉及结构
,更具体涉及电子设备。
技术介绍
电子设备可以包括多个具有串行接口的模块,例如,BMC(BaseboardManagementController,基板管理控制器)、UEFI(UnifiedExtensibleFirmwareInterface,统一的可扩展固件接口),RAID(磁盘阵列,RedundantArraysofIndependentDisks)卡,硬盘背板,电源背板,网(Network)卡,HBA(Hostbusadapter,主机总线适配器)卡等等,这些模块均具有串行接口。若某个模块出现故障,调试电子设备可以通过模块的串口日志对该模块进行诊断和调试,一个模块的串口日志包括:该模块通过串行接口进行通信过程中的详细信息,例如串口通信的收发动作与串口通信的数据情况等。目前基于模块的串口日志对模块进行诊断和调试的过程如下:维修人员到电子设备所在现场,打开电子设备的机壳,查找到待检测的模块的串行接口,将调试电子设备通过串口线与待检测的模块的串行接口相连。综上,目前基于模块的串口日志对模块进行诊断和调试的方法,需要维修人员对电子设备拆卸(例如打开机壳)。
技术实现思路
有鉴于此,本专利技术提供了一种电子设备,以克服现有技术中目前基于模块的串口日志对模块进行诊断和调试的方法,需要维修人员对电子设备拆卸的问题。为实现上述目的,本专利技术提供如下技术方案:一种电子设备,包括:第一模块,所述第一模块包括第一接口,所述第一接口包括:裸露在所述电子设备外侧的第一串行接口,和/或,用于通过无线通信网络进行数据传输的虚拟端口;至少一个第二 ...
【技术保护点】
1.一种电子设备,其特征在于,包括:第一模块,所述第一模块包括第一接口,所述第一接口包括:裸露在所述电子设备外侧的第一串行接口,和/或,用于通过无线通信网络进行数据传输的虚拟端口;至少一个第二模块,所述至少一个第二模块分别包括第二串行接口,所述第二串行接口未裸露在所述电子设备的外侧;所述至少一个第二模块分别与所述第一模块具有通信连接;所述第一模块用于获取待测第二模块的串口日志,所述待测第二模块为所述至少一个第二模块中任一第二模块;通过所述第一接口传输所述串口日志。
【技术特征摘要】
1.一种电子设备,其特征在于,包括:第一模块,所述第一模块包括第一接口,所述第一接口包括:裸露在所述电子设备外侧的第一串行接口,和/或,用于通过无线通信网络进行数据传输的虚拟端口;至少一个第二模块,所述至少一个第二模块分别包括第二串行接口,所述第二串行接口未裸露在所述电子设备的外侧;所述至少一个第二模块分别与所述第一模块具有通信连接;所述第一模块用于获取待测第二模块的串口日志,所述待测第二模块为所述至少一个第二模块中任一第二模块;通过所述第一接口传输所述串口日志。2.根据权利要求1所述电子设备,其特征在于,所述至少一个第二模块包括多个第二模块,所述至少一个第二模块的第二串行接口分别与所述第一模块具有通信连接,具体为:各所述第二模块的第二串行接口分别与多路选择器中相应的输入端相连;所述多路选择器的输出端与所述第一模块相连。3.根据权利要求2所述电子设备,其特征在于,所述第一模块在执行获取待测第二模块的串口日志时,具体用于:接收用于表征获取所述待测第二模块的串口日志的指示信息;基于所述指示信息控制所述多路选择器的输出端与所述待测第二模块连接所述多路选择器的输入端相连;通过所述多路选择器从所述待测第二模块中获...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。