The invention relates to a method for
error detection and correction and trajectory tracking of power meter
software. The method comprises the following steps of (1), adding a CS check
byte to a
data structure so as to perform a CS check, (2), adding a fore-and-aft tagged word
byte of a fixed value to the
data structure so as to perform a fore-and-aft tagged word check, (3), determining whether or not a
data buffer zone is overflown, (4), determining whether or not data stack space is smaller than a preset warning value, (5), conducting a validity check on important inlet parameters of an operation function, and if execution requirements of the operation function are not satisfied, outputting information of inefficiency, (6), designing an output function of the operation trajectory of the power meter
software, and outputting information of the operation trajectory of the power meter
software and information of operation status to a computer so as to facilitate checking of a current operation condition of the software. According to the method, various mechanisms of
error detection and correction are integrated, the problems which are found out are uniformly output through a trajectory function to the computer, and the problem locations are determined quickly and fed back to a developer for modification, so that the
software problem of a power meter is minimized.