The invention provides a switching power supply based on edge calculation. The switching power supply comprises a driving module which is used for supplying power to terminal equipment, a data acquisition module which is used for acquiring the operation state parameters of the terminal equipment, an edge calculation module which is used for analyzing and processing the operation state parameters acquired by the data acquisition module, controlling the operation state of the terminal equipment based on the operation state parameters, and reporting the processed effective operation state parameters to the cloud processing center of a power supply system, and a communication module which is used for interactive communication between the edge computing module and the cloud processing center ofthe power supply system. According to the switching power supply based on edge calculation of the invention, an Internet of Things embedded communication protocol stack technology is utilized, and data are sent to an edge computing data management center for analysis and processing, so that resources and services sink to an edge position; and therefore, interaction time delay can be effectively reduced, network burden is reduced, cloud pressure is reduced, service types are enriched, service processing is optimized, and service quality and user experience are improved.