An integrated charging device and a main controller, the integrated charging device comprising a main circuit, a controller, and a communication module, wherein an input terminal of the main circuit serves as a power input terminal of the integrated charging device, and a first output terminal of the main circuit serves as a power output terminal of the integrated charging device, and is configured to be connected to a power input terminal of a charging gun corresponding to the integrated charging device; the controller is configured to control the main circuit to convert alternating current into direct current (AC to DC) based on a determined parameter to charge a load; a first end of the communication module is communicatively connected to the controller, and a second end of the communication module comprises an external communication port, wherein the external communication port is configured to be communicatively connected to a battery management system, BMS, of the load via a communication line in the charging gun; and characterised in that the second end of the communication module further comprises: an internal communication port configured to be connected to a module communication bus to perform internal communication within a charging pile in which the integrated charging device is arranged, wherein the internal communication comprises communication with a main controller of the charging pile and communication with other integrated charging devices in the charging pile; and the main controller in the charging pile transmits, in response to a command for starting a first charging gun, a primary group operation command to a first integrated charging device corresponding to the first charging gun among N charging guns. an input terminal of the main circuit serves as a power input terminal of the integrated charging device, and a first output terminal of the main circuit serves as a power output terminal of the integrated charging device, and is configured to be connected to a power input terminal of a charging gun corresponding to the integrated charging device; the controller is configured to control the main circuit to convert alternating current into direct current (AC to DC) based on a determined parameter to charge a load; a first end of the communication module is communicatively connected to the controller, and a second end of the communication module comprises an external communication port, wherein the external communication port is configured to be communicatively connected to a battery management system, BMS, of the load via a communication line in the charging gun; and characterised in that the second end of the communication module further comprises: an internal communication port configured to be connected to a module communication bus to perform internal communication within a charging pile in which the integrated charging device is arranged, wherein the internal communication comprises communication with a main controller of the charging pile and communication with other integrated charging devices in the charging pile; and the main controller in the charging pile transmits, in response to a command for starting a first charging gun, a primary group operation command to a first integrated charging device corresponding to the first charging gun among N charging guns.