The invention discloses a method and
system for diagnosing hardware module faults based on indicator lights. The method includes the steps that first, a fault detection mechanism is added, a test interface and an identification code are added at each hardware module drive program inlet, and each hardware module corresponds to one test interface and one identification code; second, the indicator light flickering types corresponding to the identification codes are set, and one identification code corresponds to one indicator light flickering type; third, a
database is established, and the one-to-one corresponding relation of the
hardware modules, the identification codes and the indicator light flickering types is stored; fourth, the fault detection mechanism is started, when the hardware module faults are detected, the identification codes are read according to the indicator light flickering types, and corresponding hardware module names are read according to the identification codes. According to the method and
system for diagnosing the hardware module faults based on the indicator lights, when the faults happen, the hardware faults can be detected quickly, time is saved, overhauling efficiency is improved, and analysis early warning and automatic repairing can be conducted on the hardware module faults, the faults can be automatically repaired conveniently and rapidly, and the after-sales repair cost is saved.