A method for allocating charging and discharging power in a portable energy storage device, applied to a portable energy storage device capable of simultaneous multi-port charging and discharging, wherein:
- the portable energy storage device comprises a power allocation unit, at least two power input ports, and at least two charging output ports;
- the power allocation unit is configured to allocate power to the power input ports connected to charging devices and the charging output ports connected to receiving devices;
- the state in which the power input ports are connected to charging devices while the charging output ports are also connected to receiving devices is defined as the charge-discharge simultaneous operation state;
- the power allocation method for charging and discharging includes:
- defining the maximum allowable operating power of the portable energy storage device in the charge-discharge simultaneous operation state as Pmax;
- the power allocation unit configures ½ of Pmax as the maximum allowable input power for the power input ports and ensures that the total actual charging power of the power input ports equals the maximum total output power of the charging output ports;
- defining the maximum allowable input power of the power input ports as Pmax_in and the maximum total output power of the charging output ports as Pmax_out, the relationships are:
- Pmax_in=Pmax/2, Pmax_out=total actual charging power of the power input ports, with the condition Pmax_out≤Pmax_in;
- when the sum of the maximum allowable charging power of the connected power input ports
- is less than or equal to Pmax_in, the power allocation unit configures these power input ports to operate at their respective maximum allowable charging power;
- the maximum allowable charging power is the smaller value between the preconfigured maximum charging power of the power input port and the charging power that the connected charging device can provide when plugged into that port;
- when the sum of the maximum allowable charging power of the connected power input ports>Pmax_in, the power allocation unit configures these power input ports to operate with a total power equal to Pmax_in;
- when the sum of the preset power of the connected charging output ports is less than or equal to Pmax_out, the power allocation unit assigns each connected charging output port its corresponding preset power;
- the preset power is the smaller value between the maximum output power of the charging output port and the power requested by the load connected to that port;
- when the sum of the preset power of the connected charging output ports exceeds Pmax_out, the power allocation unit ensures that the total power allocated to these charging output ports is Pmax_out.