The application discloses an event reporting method, a setting device, a target device and a
system based on MCTP, and the method comprises the following steps: the setting device sends a setting event message with the MCTP
message type code being 0x77 to the target device, the message at least containing an event
label, a data length and an event condition described by a formatted string key-value pair; the target device receives and stores the event condition; when the event condition is met, the target device actively sends a reporting event message with the code being 0x77 to the setting device. By using the event notification mechanism, the setting device does not need to poll frequently, the monitoring condition is configured on the target device by one time setting, the target device actively reports when the condition is met, repeated
information transmission is avoided, the MCTP
bus communication flow is greatly reduced, and the
system load is reduced; meanwhile, the key information and the change information can be sent in real time, the information updating
delay problem caused by reducing the
polling frequency is solved, and the balance between the
system load and the real-
time response is realized.