A method for storing data in an electronic control system for a vehicle, wherein the electronic control system comprises a plurality of electronic control units, the plurality of electronic control units communicating with each other via a bus, each of the plurality of electronic control units has a respective memory EEPROM, electrically erasable programmable read only memory, and each of the plurality of electronic control units performs a write operation and a read operation on the respective memory EEPROM, being characterized in that , the method comprises: writing (S101), by a first electronic control unit of the plurality of electronic control units, a first variable, and sending a storage request message to a remaining of the plurality of electronic control units, such that the remaining of the plurality of electronic control units respectively determines whether to allow to store the first variable and, respectively, sends a first response message to the first electronic control unit; when determining, by the first electronic control unit according to the first response message, that one or more second electronic control units from the remaining of the plurality of electronic control units allows to store the first variable, sending (S102), by the first electronic control unit, a data frame to the one or more second electronic control units, such that the one or more second electronic control units respectively write data contained in the data frame and a serial number of a node of the bus, and respectively provide a feedback to the first electronic control unit, wherein the data contained in the data frame comprises a variable serial number of the first variable and a variable value of the first variable; and writing (S103), by the first electronic control unit according to the feedback, a corresponding serial number of the node of the bus and the variable serial number of the first variable to the first electronic control unit. writing (S101), by a first electronic control unit of the plurality of electronic control units, a first variable, and sending a storage request message to a remaining of the plurality of electronic control units, such that the remaining of the plurality of electronic control units respectively determines whether to allow to store the first variable and, respectively, sends a first response message to the first electronic control unit; when determining, by the first electronic control unit according to the first response message, that one or more second electronic control units from the remaining of the plurality of electronic control units allows to store the first variable, sending (S102), by the first electronic control unit, a data frame to the one or more second electronic control units, such that the one or more second electronic control units respectively write data contained in the data frame and a serial number of a node of the bus, and respectively provide a feedback to the first electronic control unit, wherein the data contained in the data frame comprises a variable serial number of the first variable and a variable value of the first variable; and writing (S103), by the first electronic control unit according to the feedback, a corresponding serial number of the node of the bus and the variable serial number of the first variable to the first electronic control unit. <EOS>