Patent ID: 8391162

Claim:
An apparatus for testing simple network management protocol (SNMP) cards, each of the SNMP cards comprising an inter integrated circuit (I2C) port and a general purpose input-output (GIPO) port, the apparatus being connected to a circuit board comprising a plurality of slots and an I2C bus, the apparatus comprising: a storage device; at least one processor; and a test unit comprising one or more modules that is stored in the storage device and executed by the at least one processor, the one or more modules comprising: a parameter setting module that predefines an I2C address for each of the slots, and sets an interval time for sending communication data by each of the SNMP cards; a mode detection module that detects an I2C address of each of the GPIO ports when the SNMP card is plugged into a slot via the GPIO port, and determines one of the SNMP cards as a slave device and the other SNMP cards as master devices by checking whether the I2C address of each of the GPIO ports is equal to a predefined binary number; and a communication control module that controls each of the master devices to send the communication data to the slave device through the I2C bus according to the interval time, controls the slave device to send a response message to each of the master devices when the slave device receives the communication data from each of the master devices, and generates information that indicates that an SNMP card corresponding to a master device has malfunctioned when the master device does not receive the response message from the slave device.