The invention relates to a method for updating BMS embedded software of a shared battery. The method comprises the steps that 1, charging the battery; 2, detecting the version of the embedded softwareof the BMS; and 3, judging whether the version is the latest version or not, if so, continuing to charge, and otherwise, updating the BMS embedded software during battery charging. The BMS embedded software of a lithium battery in a two-wheeled vehicle or a three-wheeled vehicle can be updated on the premise of not increasing any hardware equipment, the scheme is simple to implement, and the hardware cost is not increased. Besides, the higher the utilization rate of the battery is, the more the charging and battery replacing times are, correspondingly, the shorter the time required for updating the BMS hidden danger software version is, and the more timely the updating is, so that the use safety of the battery is improved. Furthermore, for the user, BMS software updating is invisible, andthe user has no difference from normal battery charging and replacing in operation.