A non-transitory computer readable storage medium having computer programs stored thereon, wherein the computer programs are executable by a processor of a control device of a battery heating system, and the battery heating system comprises an inverter and a motor, and the motor is connected to a battery via switch components in the inverter, and wherein the computer programs, when executed by the processor, cause the processor to:
- acquire a temperature rise rate parameter of the battery;
- determine proportions of a square wave signal and a sine wave signal in a first control signal of the switch components according to the temperature rise rate parameter;
- generate the first control signal of the switch components according to the proportions of the square wave signal and the sine wave signal;
- output the first control signal to the switch components to control switching on or off of the switch components via the first control signal, so as to generate an alternating current in a loop connecting the battery and the motor and heat the battery using the alternating current.