A method for managing a battery-exchange station, the method comprising: receiving, from a server, demand information for the battery-exchange station corresponding to a first time period; receiving, from a server, a first instruction set and storing, by the battery-exchange station, the first instruction set, wherein the first instruction set comprises one or more charging rules indicative of how to charge battery based on characteristics of battery and information indicative of assigning the one or more charging rules to each of the batteries positioned in the battery-exchange station; forming a charging plan for batteries positioned in the battery-exchange station corresponding to the first time period based on the first instruction set stored in the battery-exchange station and the demand information corresponding to the first time period; wherein the charging plan comprises one or more assigned charging rules for each of the batteries positioned in the battery-exchange station; and generating charging commands for each of the batteries positioned in the device-exchange station based on the one or more assigned charging rules for each of the batteries and a status of each of the batteries during the first time period; executing the charging commands to charge the batteries with a charging component of the battery-exchange station; the method characterized by further comprising: detecting, by the battery-exchange station, a disconnection between the server and the battery-exchange station when no response from the server is received by the battery-exchange station for a certain period of time, when the connection between the server and the battery-exchange station is detected as disconnected when no response from the server is received by the battery-exchange station for the certain period of time, entering, by the battery-exchange station, into an autonomous mode, in which the battery-exchange station keeps operating by using the first instruction set and demand information, which are stored in the battery-exchange station and which are the most current instruction set and the most current demand information, verifying whether the first instruction set is expired based on an aging policy, and replacing the first instruction set with a set of default rules when the first instruction set is expired. receiving, from a server, demand information for the battery-exchange station corresponding to a first time period; receiving, from a server, a first instruction set and storing, by the battery-exchange station, the first instruction set, wherein the first instruction set comprises one or more charging rules indicative of how to charge battery based on characteristics of battery and information indicative of assigning the one or more charging rules to each of the batteries positioned in the battery-exchange station; forming a charging plan for batteries positioned in the battery-exchange station corresponding to the first time period based on the first instruction set stored in the battery-exchange station and the demand information corresponding to the first time period; wherein the charging plan comprises one or more assigned charging rules for each of the batteries positioned in the battery-exchange station; and generating charging commands for each of the batteries positioned in the device-exchange station based on the one or more assigned charging rules for each of the batteries and a status of each of the batteries during the first time period; executing the charging commands to charge the batteries with a charging component of the battery-exchange station; the method characterized by further comprising: detecting, by the battery-exchange station, a disconnection between the server and the battery-exchange station when no response from the server is received by the battery-exchange station for a certain period of time, when the connection between the server and the battery-exchange station is detected as disconnected when no response from the server is received by the battery-exchange station for the certain period of time, entering, by the battery-exchange station, into an autonomous mode, in which the battery-exchange station keeps operating by using the first instruction set and demand information, which are stored in the battery-exchange station and which are the most current instruction set and the most current demand information, verifying whether the first instruction set is expired based on an aging policy, and replacing the first instruction set with a set of default rules when the first instruction set is expired. detecting, by the battery-exchange station, a disconnection between the server and the battery-exchange station when no response from the server is received by the battery-exchange station for a certain period of time, when the connection between the server and the battery-exchange station is detected as disconnected when no response from the server is received by the battery-exchange station for the certain period of time, entering, by the battery-exchange station, into an autonomous mode, in which the battery-exchange station keeps operating by using the first instruction set and demand information, which are stored in the battery-exchange station and which are the most current instruction set and the most current demand information, verifying whether the first instruction set is expired based on an aging policy, and replacing the first instruction set with a set of default rules when the first instruction set is expired.